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

print bridged type names #96

Merged
merged 1 commit into from
Oct 9, 2017
Merged

print bridged type names #96

merged 1 commit into from
Oct 9, 2017

Conversation

dirk-thomas
Copy link
Member

Fixes #95.

Build Status

@dirk-thomas dirk-thomas added the in review Waiting for review (Kanban column) label Oct 6, 2017
@dirk-thomas dirk-thomas self-assigned this Oct 6, 2017
Copy link
Member

@wjwwood wjwwood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing it up. I just had two comments.

: ros1_type_name_(ros1_type_name),
ros2_type_name_(ros2_type_name)
{
fprintf(stderr, "Factory(%s, %s)\n", ros1_type_name_.c_str(), ros2_type_name_.c_str());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be left in or removed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. I removed the debug output.

_ros1_bridge_type_to_name(ROS2_T) " (showing msg only once per type)");
"ros1_bridge",
"Passing message from ROS 1 %s to ROS 2 %s (showing msg only once per type)",
ros1_type_name.c_str(), ros2_type_name.c_str());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice if this included the topic it was doing this on.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was only aiming to fix the bug with this. Please feel free to extend the patch to add additional information.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we wait for this to be updated or merge it as-is and make additional improvements in a separate PR?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can merge it as is, I’ll open another pr if I have a minute to add the topic name.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can merge it as is, I’ll open another pr if I have a minute to add the topic name.

_ros1_bridge_type_to_name(ROS1_T) " (showing msg only once per type)");
"ros1_bridge",
"Passing message from ROS 2 %s to ROS 1 %s (showing msg only once per type)",
ros1_type_name.c_str(), ros2_type_name.c_str());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

@dirk-thomas dirk-thomas merged commit 5c14d9e into master Oct 9, 2017
@dirk-thomas dirk-thomas deleted the print_type_names branch October 9, 2017 22:39
@dirk-thomas dirk-thomas removed the in review Waiting for review (Kanban column) label Oct 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants