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
c67c0abc
Commit
c67c0abc
authored
Feb 10, 2020
by
Pierre Fernbach
Browse files
add method ContactSequence::concatenateWrenchTrajectory
parent
105b42b0
Changes
2
Show whitespace changes
Inline
Side-by-side
include/multicontact-api/bindings/python/scenario/contact-sequence.hpp
View file @
c67c0abc
...
...
@@ -181,6 +181,9 @@ struct ContactSequencePythonVisitor : public bp::def_visitor<ContactSequencePyth
.
def
(
"concatenateZMPtrajectories"
,
&
CS
::
concatenateZMPtrajectories
,
"Return a piecewise curve wchich is the concatenation of the m_zmp curves"
" for each contact phases in the sequence."
)
.
def
(
"concatenateWrenchTrajectories"
,
&
CS
::
concatenateWrenchTrajectories
,
"Return a piecewise curve wchich is the concatenation of the m_wrench curves"
" for each contact phases in the sequence."
)
.
def
(
"concatenateQtrajectories"
,
&
CS
::
concatenateQtrajectories
,
"Return a piecewise curve wchich is the concatenation of the m_q curves"
" for each contact phases in the sequence."
)
...
...
include/multicontact-api/scenario/contact-sequence.hpp
View file @
c67c0abc
...
...
@@ -941,6 +941,19 @@ struct ContactSequenceTpl : public serialization::Serializable<ContactSequenceTp
return
res
;
}
/**
* @brief concatenateWrenchTrajectories Return a piecewise curve which is the concatenation
* of the m_wrench curves for each contact phases in the sequence.
* @return
*/
piecewise_t
concatenateWrenchTrajectories
()
const
{
piecewise_t
res
=
piecewise_t
();
for
(
const
ContactPhase
&
phase
:
m_contact_phases
){
res
.
add_curve_ptr
(
phase
.
m_wrench
);
}
return
res
;
}
/**
* @brief concatenateQtrajectories Return a piecewise curve which is the concatenation
* of the m_q curves for each contact phases in the sequence.
...
...
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