Skip to content

Commit 6830060

Browse files
authored
fix failing pre-commit (#741)
1 parent 7567b80 commit 6830060

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

gz_ros2_control/src/gz_ros2_control_plugin.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)