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
Guilhem Saurel
sot-hrp2
Commits
d2bf2ac0
Commit
d2bf2ac0
authored
Jul 26, 2013
by
Francois Keith
Browse files
Correct an error in the debug message.
If the two vectors have a different sizes this crashes.
parent
7e5de6da
Changes
1
Show whitespace changes
Inline
Side-by-side
src/sot-hrp2-device.cpp
View file @
d2bf2ac0
...
...
@@ -161,7 +161,8 @@ void SoTHRP2Device::getControl(map<string,dgsot::ControlValues> &controlOut)
increment
(
timestep_
);
sotDEBUG
(
25
)
<<
"state = "
<<
state_
<<
std
::
endl
;
sotDEBUG
(
25
)
<<
"diff = "
<<
state_
-
previousState_
<<
std
::
endl
;
sotDEBUG
(
25
)
<<
"diff = "
<<
((
previousState_
.
size
()
==
state_
.
size
())
?
(
state_
-
previousState_
)
:
state_
)
<<
std
::
endl
;
previousState_
=
state_
;
// Specify the joint values for the controller.
...
...
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