@@ -117,8 +117,8 @@ void ImplTestSotMockDevice::setSensorsForce(
117117 sotDEBUG (15 ) << " Force sensor " << i << std::endl;
118118 int idx_sensor = map_sot_2_urdf[i];
119119 for (std::vector<double >::size_type j = 0 ; j < 6 ; ++j) {
120- dgforces_ (static_cast <Eigen::Index>(j)) =
121- forcesIn [static_cast <std::vector<double >::size_type>(idx_sensor * 6 ) + j];
120+ dgforces_ (static_cast <Eigen::Index>(j)) = forcesIn
121+ [static_cast <std::vector<double >::size_type>(idx_sensor * 6 ) + j];
122122 sotDEBUG (15 ) << " Force value " << j << " :"
123123 << dgforces_ (static_cast <Eigen::Index>(j)) << std::endl;
124124 }
@@ -202,7 +202,8 @@ void ImplTestSotMockDevice::setSensorsVelocities(
202202 const vector<double >& velocitiesIn = it->second .getValues ();
203203 dgRobotVelocity_.resize (static_cast <Eigen::Index>(velocitiesIn.size ()) + 6 );
204204 for (unsigned i = 0 ; i < 6 ; ++i) dgRobotVelocity_ (i) = 0 .;
205- for (unsigned i = 0 ; i < static_cast <Eigen::Index>(velocitiesIn.size ()); ++i) {
205+ for (unsigned i = 0 ; i < static_cast <Eigen::Index>(velocitiesIn.size ());
206+ ++i) {
206207 dgRobotVelocity_ (i + 6 ) = velocitiesIn[i];
207208 }
208209 robotVelocity_.setConstant (dgRobotVelocity_);
@@ -298,7 +299,8 @@ void ImplTestSotMockDevice::getControl(
298299 sotDEBUGIN (25 );
299300 vector<double > anglesOut, velocityOut;
300301 anglesOut.resize (static_cast <std::vector<double >::size_type>(state_.size ()));
301- velocityOut.resize (static_cast <std::vector<double >::size_type>(state_.size ()));
302+ velocityOut.resize (
303+ static_cast <std::vector<double >::size_type>(state_.size ()));
302304
303305 // Integrate control
304306 sotDEBUG (25 ) << " state = " << state_ << std::endl;
@@ -317,8 +319,10 @@ void ImplTestSotMockDevice::getControl(
317319 // warning: we make here the asumption that the control signal contains the
318320 // velocity of the freeflyer joint. This may change in the future.
319321 if ((int )anglesOut.size () != state_.size () - 6 ) {
320- anglesOut.resize (static_cast <std::vector<double >::size_type>(state_.size () - 6 ));
321- velocityOut.resize (static_cast <std::vector<double >::size_type>(state_.size () - 6 ));
322+ anglesOut.resize (
323+ static_cast <std::vector<double >::size_type>(state_.size () - 6 ));
324+ velocityOut.resize (
325+ static_cast <std::vector<double >::size_type>(state_.size () - 6 ));
322326 }
323327
324328 dg::sigtime_t time = controlSIN.getTime ();
0 commit comments