@@ -25,13 +25,13 @@ void Joint::prepareActuation()
2525 this ->name .c_str (), this ->getActuationMode ().toString ().c_str ());
2626 if (this ->allowActuation )
2727 {
28- ROS_INFO (" Preparing joint %s for actuation" , this ->name .c_str ());
28+ ROS_INFO (" [%s] Preparing for actuation" , this ->name .c_str ());
2929 this ->iMotionCube .goToOperationEnabled ();
30- ROS_INFO (" \t Joint %s successfully prepared for actuation" , this ->name .c_str ());
30+ ROS_INFO (" [%s] Successfully prepared for actuation" , this ->name .c_str ());
3131 }
3232 else
3333 {
34- ROS_ERROR (" Trying to prepare joint %s for actuation while it is not "
34+ ROS_ERROR (" [%s] Trying to prepare for actuation while it is not "
3535 " allowed to actuate" ,
3636 this ->name .c_str ());
3737 }
@@ -44,9 +44,9 @@ void Joint::resetIMotionCube()
4444
4545void Joint::actuateRad (float targetPositionRad)
4646{
47- ROS_ASSERT_MSG (this ->allowActuation , " Joint %s is not allowed to actuate, "
48- " yet its actuate method has been "
49- " called. " ,
47+ ROS_ASSERT_MSG (this ->allowActuation ,
48+ " Joint %s is not allowed to actuate, "
49+ " yet its actuate method has been called" ,
5050 this ->name .c_str ());
5151 // TODO(BaCo) check that the position is allowed and does not exceed (torque)
5252 // limits.
@@ -57,17 +57,17 @@ float Joint::getAngleRad()
5757{
5858 if (!hasIMotionCube ())
5959 {
60- ROS_WARN (" Joint %s has no iMotionCube" , this ->name .c_str ());
60+ ROS_WARN (" [%s] Has no iMotionCube" , this ->name .c_str ());
6161 return -1 ;
6262 }
6363 return this ->iMotionCube .getAngleRad ();
6464}
6565
6666void Joint::actuateTorque (int targetTorque)
6767{
68- ROS_ASSERT_MSG (this ->allowActuation , " Joint %s is not allowed to actuate, "
69- " yet its actuate method has been "
70- " called. " ,
68+ ROS_ASSERT_MSG (this ->allowActuation ,
69+ " Joint %s is not allowed to actuate, "
70+ " yet its actuate method has been called" ,
7171 this ->name .c_str ());
7272 this ->iMotionCube .actuateTorque (targetTorque);
7373}
@@ -76,7 +76,7 @@ float Joint::getTorque()
7676{
7777 if (!hasIMotionCube ())
7878 {
79- ROS_WARN (" Joint %s has no iMotionCube" , this ->name .c_str ());
79+ ROS_WARN (" [%s] Has no iMotionCube" , this ->name .c_str ());
8080 return -1 ;
8181 }
8282 return this ->iMotionCube .getTorque ();
@@ -86,7 +86,7 @@ int Joint::getAngleIU()
8686{
8787 if (!hasIMotionCube ())
8888 {
89- ROS_WARN (" Joint %s has no iMotionCube" , this ->name .c_str ());
89+ ROS_WARN (" [%s] Has no iMotionCube" , this ->name .c_str ());
9090 return -1 ;
9191 }
9292 return this ->iMotionCube .getAngleIU ();
@@ -96,7 +96,7 @@ float Joint::getTemperature()
9696{
9797 if (!hasTemperatureGES ())
9898 {
99- ROS_WARN (" Joint %s has no temperature sensor" , this ->name .c_str ());
99+ ROS_WARN (" [%s] Has no temperature sensor" , this ->name .c_str ());
100100 return -1 ;
101101 }
102102 return this ->temperatureGES .getTemperature ();
0 commit comments