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

Bridge /rosout #21

Merged
merged 3 commits into from
Oct 31, 2024
Merged

Conversation

hoffmann-stefan
Copy link
Member

@hoffmann-stefan hoffmann-stefan commented Oct 30, 2024

ref ros2#391

This fixes the conversion between rosgraph_msgs/Log and rcl_interfaces/Log.

What is missing is a custom converter for the level constant values, as they differ between ROS1 and ROS2...

This already works for foxglove/lichtblick as it seems to accept both set of constants.
But rqt crashes when it sees an unknown (to ROS1) level constatnt.

So we need to extend this with a custom converter for this message pair.->Done

This happens for rcl_interfaces/Log

'header.stamp' gets mapped to 'stamp'. For the old check on both messages where some fields missing: 'topics' in ros2 and 'stamp' in ros1. That 'stamp' was mapped via the custom rule above wasn't recognized by the old logic. For now we say if there a custom field mappings for a field we skip this check.
Deleh
Deleh previously approved these changes Oct 30, 2024
Copy link

@Deleh Deleh left a comment

Choose a reason for hiding this comment

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

Works as expected 👍

Deleh
Deleh previously approved these changes Oct 30, 2024
@Deleh Deleh merged commit 02dcbf3 into mojin-robotics:mojin-devel Oct 31, 2024
1 check passed
@Deleh Deleh deleted the feature/bridge-log branch October 31, 2024 12:35
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