Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix log messages #182

Merged
merged 1 commit into from
Apr 4, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions include/ros1_bridge/factory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ class Factory : public FactoryInterface
const boost::shared_ptr<ros::M_string> & connection_header =
ros1_msg_event.getConnectionHeaderPtr();
if (!connection_header) {
RCLCPP_WARN(logger, "Dropping ROS 1 message %s without connection header", ros1_type_name);
RCLCPP_WARN(
logger, "Dropping ROS 1 message %s without connection header", ros1_type_name.c_str());
return;
}

Expand All @@ -177,7 +178,7 @@ class Factory : public FactoryInterface
convert_1_to_2(*ros1_msg, *ros2_msg);
RCLCPP_INFO_ONCE(
logger, "Passing message from ROS 1 %s to ROS 2 %s (showing msg only once per type)",
ros1_type_name, ros2_type_name);
ros1_type_name.c_str(), ros2_type_name.c_str());
typed_ros2_pub->publish(ros2_msg);
}

Expand Down Expand Up @@ -209,7 +210,7 @@ class Factory : public FactoryInterface
convert_2_to_1(*ros2_msg, ros1_msg);
RCLCPP_INFO_ONCE(
logger, "Passing message from ROS 2 %s to ROS 1 %s (showing msg only once per type)",
ros2_type_name, ros1_type_name);
ros2_type_name.c_str(), ros1_type_name.c_str());
ros1_pub.publish(ros1_msg);
}

Expand Down