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
9a0216d6
Commit
9a0216d6
authored
May 06, 2020
by
Pierre Fernbach
Browse files
ContactSequence::have{COM, AM, ZMP}trajectories now check the dimension of the curves
parent
82adf61b
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/multicontact-api/scenario/contact-sequence.hpp
View file @
9a0216d6
...
...
@@ -415,6 +415,18 @@ struct ContactSequenceTpl : public serialization::Serializable<ContactSequenceTp
std
::
cout
<<
"CoM acceleration trajectory not defined for phase : "
<<
i
<<
std
::
endl
;
return
false
;
}
if
(
phase
.
m_c
->
dim
()
!=
3
){
std
::
cout
<<
"CoM trajectory is not of dimension 3 for phase : "
<<
i
<<
std
::
endl
;
return
false
;
}
if
(
phase
.
m_dc
->
dim
()
!=
3
){
std
::
cout
<<
"CoM velocity trajectory is not of dimension 3 for phase : "
<<
i
<<
std
::
endl
;
return
false
;
}
if
(
phase
.
m_ddc
->
dim
()
!=
3
){
std
::
cout
<<
"CoM acceleration trajectory is not of dimension 3 for phase : "
<<
i
<<
std
::
endl
;
return
false
;
}
if
(
phase
.
m_c
->
min
()
!=
phase
.
timeInitial
())
{
std
::
cout
<<
"CoM trajectory do not start at t_init for phase : "
<<
i
<<
std
::
endl
;
return
false
;
...
...
@@ -508,6 +520,14 @@ struct ContactSequenceTpl : public serialization::Serializable<ContactSequenceTp
std
::
cout
<<
"AM velocity trajectory not defined for phase : "
<<
i
<<
std
::
endl
;
return
false
;
}
if
(
phase
.
m_L
->
dim
()
!=
3
){
std
::
cout
<<
"AM trajectory is not of dimension 3 for phase : "
<<
i
<<
std
::
endl
;
return
false
;
}
if
(
phase
.
m_dL
->
dim
()
!=
3
){
std
::
cout
<<
"AM derivative trajectory is not of dimension 3 for phase : "
<<
i
<<
std
::
endl
;
return
false
;
}
if
(
phase
.
m_L
->
min
()
!=
phase
.
timeInitial
())
{
std
::
cout
<<
"AM trajectory do not start at t_init for phase : "
<<
i
<<
std
::
endl
;
return
false
;
...
...
@@ -829,6 +849,10 @@ struct ContactSequenceTpl : public serialization::Serializable<ContactSequenceTp
std
::
cout
<<
"ZMP trajectory not defined for phase : "
<<
i
<<
std
::
endl
;
return
false
;
}
if
(
phase
.
m_zmp
->
dim
()
!=
3
){
std
::
cout
<<
"ZMP trajectory is not of dimension 3 for phase : "
<<
i
<<
std
::
endl
;
return
false
;
}
if
(
phase
.
m_zmp
->
min
()
!=
phase
.
timeInitial
())
{
std
::
cout
<<
"ZMP trajectory do not start at t_init for phase : "
<<
i
<<
std
::
endl
;
return
false
;
...
...
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