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
6da88137
Commit
6da88137
authored
Jan 31, 2020
by
Pierre Fernbach
Browse files
[C++] fix mistakes in outputs messages in CS::have COM trajectory
parent
e826878a
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/multicontact-api/scenario/contact-sequence.hpp
View file @
6da88137
...
...
@@ -440,7 +440,7 @@ struct ContactSequenceTpl : public serialization::Serializable<ContactSequenceTp
}
if
(
phase
.
m_ddc_init
.
isZero
()){
if
(
!
(
*
phase
.
m_ddc
)(
phase
.
m_ddc
->
min
()).
isZero
()
){
std
::
cout
<<
"CoM
velocity
trajectory do not start at ddc_init for phase : "
<<
i
<<
std
::
endl
;
std
::
cout
<<
"CoM
acceleration
trajectory do not start at ddc_init for phase : "
<<
i
<<
std
::
endl
;
return
false
;
}
}
...
...
@@ -464,12 +464,12 @@ struct ContactSequenceTpl : public serialization::Serializable<ContactSequenceTp
}
if
(
phase
.
m_ddc_final
.
isZero
()){
if
(
!
(
*
phase
.
m_ddc
)(
phase
.
m_ddc
->
max
()).
isZero
()
){
std
::
cout
<<
"CoM
velocity
trajectory do not end at ddc_final for phase : "
<<
i
<<
std
::
endl
;
std
::
cout
<<
"CoM
acceleration
trajectory do not end at ddc_final for phase : "
<<
i
<<
std
::
endl
;
return
false
;
}
}
else
if
(
!
(
*
phase
.
m_ddc
)(
phase
.
m_ddc
->
max
()).
isApprox
(
phase
.
m_ddc_final
)
){
std
::
cout
<<
"CoM
velocity
trajectory do not end at ddc_final for phase : "
<<
i
<<
std
::
endl
;
std
::
cout
<<
"CoM
acceleration
trajectory do not end at ddc_final for phase : "
<<
i
<<
std
::
endl
;
return
false
;
}
++
i
;
...
...
Write
Preview
Markdown
is supported
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