@@ -48,9 +48,11 @@ bool YarpSensorBridge::initialize(std::weak_ptr<const IParametersHandler> handle
48
48
log ()->info (" {} Joint accelerations will not be streamed." , logPrefix);
49
49
}
50
50
51
- if (!ptr->getParameter (" stream_motor_temperature" , m_pimpl->metaData .bridgeOptions .isMotorTemperatureSensorEnabled ))
51
+ if (!ptr->getParameter (" stream_motor_temperature" ,
52
+ m_pimpl->metaData .bridgeOptions .isMotorTemperatureSensorEnabled ))
52
53
{
53
- log ()->info (" {} Unable to get stream_motor_temperature. Set to false by default" , logPrefix);
54
+ log ()->info (" {} Unable to get stream_motor_temperature. Set to false by default" ,
55
+ logPrefix);
54
56
}
55
57
if (!m_pimpl->metaData .bridgeOptions .isMotorTemperatureSensorEnabled )
56
58
{
@@ -449,8 +451,8 @@ bool YarpSensorBridge::getJointVelocities(Eigen::Ref<Eigen::VectorXd> jointVeloc
449
451
450
452
if (jointVelocties.size () != m_pimpl->controlBoardRemapperMeasures .jointVelocities .size ())
451
453
{
452
- log ()->error (" [YarpSensorBridge::getJointVelocities] Joint velocities and positions have "
453
- " different sizes ." );
454
+ log ()->error (" [YarpSensorBridge::getJointVelocities] The size of the input vector does not "
455
+ " match the number of joints ." );
454
456
return false ;
455
457
}
456
458
@@ -519,7 +521,8 @@ bool YarpSensorBridge::getJointAccelerations(Eigen::Ref<Eigen::VectorXd> jointAc
519
521
if (jointAccelerations.size ()
520
522
!= m_pimpl->controlBoardRemapperMeasures .jointAccelerations .size ())
521
523
{
522
- log ()->error (" {} Joint accelerations and positions have different sizes." , logPrefix);
524
+ log ()->error (" {} The size of the input vector does not match the number of joints." ,
525
+ logPrefix);
523
526
return false ;
524
527
}
525
528
@@ -1211,4 +1214,4 @@ bool YarpSensorBridge::getMotorTemperatures(Eigen::Ref<Eigen::VectorXd> motorTem
1211
1214
= m_pimpl->controlBoardRemapperMeasures .receivedTimeInSeconds ;
1212
1215
1213
1216
return true ;
1214
- }
1217
+ }
0 commit comments