File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -212,9 +212,9 @@ GazeboSimROS2ControlPluginPrivate::GetEnabledJoints(
212212 }
213213 case sdf::JointType::FIXED:
214214 {
215- RCLCPP_INFO_STREAM (
216- node_->get_logger (),
217- " [gz_ros2_control] Fixed joint [ " << jointName << " ] (Entity= " << jointEntity << " ) is skipped "
215+ RCLCPP_INFO (
216+ node_->get_logger (), " [gz_ros2_control] Fixed joint ['%s'] (Entity='%s') is skipped. " ,
217+ jointName. c_str (), std::to_string ( jointEntity). c_str ()
218218 );
219219 continue ;
220220 }
@@ -223,10 +223,11 @@ GazeboSimROS2ControlPluginPrivate::GetEnabledJoints(
223223 case sdf::JointType::BALL:
224224 case sdf::JointType::UNIVERSAL:
225225 {
226- RCLCPP_WARN_STREAM (
226+ RCLCPP_WARN (
227227 node_->get_logger (),
228- " [gz_ros2_control] Joint [" << jointName << " ] (Entity=" << jointEntity
229- << " is of unsupported type. Only joints with a single axis are supported."
228+ " [gz_ros2_control] Joint ['%s'] (Entity='%s') is of unsupported type."
229+ " Only joints with a single axis are supported." ,
230+ jointName.c_str (), std::to_string (jointEntity).c_str ()
230231 );
231232 continue ;
232233 }
You can’t perform that action at this time.
0 commit comments