Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
loco-3d
Multicontact-api
Commits
7aac53f6
Commit
7aac53f6
authored
Feb 06, 2020
by
Pierre Fernbach
Browse files
[Python] add bindings for cs::phaseAtTime method
parent
ad3c119e
Changes
1
Show whitespace changes
Inline
Side-by-side
include/multicontact-api/bindings/python/scenario/contact-sequence.hpp
View file @
7aac53f6
...
...
@@ -206,6 +206,16 @@ struct ContactSequencePythonVisitor : public bp::def_visitor<ContactSequencePyth
"for each contact phases in the sequence.
\n
"
"During the phases where no contact normal forces are defined,"
"the trajectory is constant with the value of 0."
)
.
def
(
"phaseIdAtTime"
,
&
CS
::
phaseIdAtTime
,
bp
::
arg
(
"time"
),
"return the index of a phase in the sequence such that "
"phase.timeInitial <= t < phase.timeFinal
\n
"
"if t equal to the last phase timeFinal, this index is returned."
)
.
def
(
"phaseAtTime"
,
&
CS
::
phaseAtTime
,
bp
::
arg
(
"time"
),
bp
::
return_internal_reference
<>
(),
"return a phase of the sequence such that "
"phase.timeInitial <= t < phase.timeFinal
\n
"
"if t equal to the last phase timeFinal, this index is returned."
)
.
def
(
bp
::
self
==
bp
::
self
)
.
def
(
bp
::
self
!=
bp
::
self
)
.
def
(
"copy"
,
&
copy
,
"Returns a copy of *this."
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment