@@ -217,6 +217,7 @@ void MarchHardwareInterface::init()
217217 joint.prepareActuation ();
218218 }
219219 }
220+ ROS_INFO (" Successfully actuated all joints" );
220221}
221222
222223void MarchHardwareInterface::update (const ros::TimerEvent& e)
@@ -501,6 +502,7 @@ void MarchHardwareInterface::iMotionCubeStateCheck(int joint_index)
501502 errorStream << " Motion Error: " << iMotionCubeState.motionErrorDescription << " (" << iMotionCubeState.motionError
502503 << " )" << std::endl;
503504
505+ ROS_FATAL (" %s" , errorStream.str ().c_str ());
504506 throw std::runtime_error (errorStream.str ());
505507 }
506508 }
@@ -512,16 +514,17 @@ void MarchHardwareInterface::outsideLimitsCheck(int joint_index)
512514 if (joint_position_[joint_index] < soft_limits_[joint_index].min_position ||
513515 joint_position_[joint_index] > soft_limits_[joint_index].max_position )
514516 {
515- ROS_ERROR_THROTTLE (1 , " Joint %s is outside of its soft_limits_ (%f, %f). Actual position: %f" ,
517+ ROS_ERROR_THROTTLE (1 , " Joint %s is outside of its soft limits (%f, %f). Actual position: %f" ,
516518 joint_names_[joint_index].c_str (), soft_limits_[joint_index].min_position ,
517519 soft_limits_[joint_index].max_position , joint_position_[joint_index]);
518520
519521 if (joint.canActuate ())
520522 {
521523 std::ostringstream errorStream;
522- errorStream << " Joint " << joint_names_[joint_index].c_str () << " is out of its soft_limits_ ("
524+ errorStream << " Joint " << joint_names_[joint_index].c_str () << " is out of its soft limits ("
523525 << soft_limits_[joint_index].min_position << " , " << soft_limits_[joint_index].max_position
524526 << " ). Actual position: " << joint_position_[joint_index];
527+ ROS_FATAL (" %s" , errorStream.str ().c_str ());
525528 throw ::std::runtime_error (errorStream.str ());
526529 }
527530 }
0 commit comments