Commit e8b59d50 authored by Olivier Stasse's avatar Olivier Stasse Committed by olivier stasse
Browse files

[tools/device] When CONTROL_NO_INTEGRATION is set

then not doing test on position if there is no
proper integration.
This should be fixed by sot-pinocchio-device.
parent 60b34b46
......@@ -254,10 +254,6 @@ setState( const Vector& st )
throw std::invalid_argument ("Upper and/or lower velocity bounds "
"do not match state size. Set them first with setVelocityBounds");
if ( s != lowerPosition_.size()
|| s != upperPosition_.size() )
throw std::invalid_argument ("Upper and/or lower position bounds "
"do not match state size. Set them first with setPositionBounds");
throw std::invalid_argument ("Invalid control mode type.");
......@@ -527,7 +523,6 @@ void Device::integrate( const double & dt )
state_.tail(controlIN.size()) = controlIN;
CHECK_BOUNDS(state_, lowerPosition_, upperPosition_, "position");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment