Skip to content

Commit 9648f1f

Browse files
show model topic name
1 parent 43689d2 commit 9648f1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mujoco_ros2_control/src/mujoco_system_interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ mjModel* loadModelFromTopic(rclcpp::Node::SharedPtr node, const std::string& top
465465

466466
rclcpp::QoS qos_profile(rclcpp::QoSInitialization::from_rmw(rmw_qos_profile_default));
467467
qos_profile.reliable().transient_local().keep_last(1);
468-
RCLCPP_INFO(node->get_logger(), "Trying to get the MuJoCo model from topic");
468+
RCLCPP_INFO_STREAM(node->get_logger(), "Trying to get the MuJoCo model from topic '" << topic_name << "'");
469469

470470
// Try to get mujoco_model via topic
471471
auto mujoco_model_sub = node->create_subscription<std_msgs::msg::String>(

0 commit comments

Comments
 (0)