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 Plan Route plugin in ROS2 Humble #765

Merged

Conversation

pjreed
Copy link
Contributor

@pjreed pjreed commented Oct 10, 2022

The Plan Route plugin was previously creating a publisher for the swri_route_util::Route class, which is not an actual ROS message but a wrapper around the marti_nav_msgs::Route message. ROS2 Humble appears to have a compile-time check that prevents creating publishers for classes that are not ROS2 message definitions, so that will fail.

This changes the type of the publisher to marti_nav_msgs::Route and manually converts the message to that type before publishing it.

Signed-off-by: P. J. Reed phillipreed@hatchbed.com

The Plan Route plugin was previously creating a publisher for the
swri_route_util::Route class, which is not an actual ROS message but
a wrapper around the marti_nav_msgs::Route message.  ROS2 Humble appears
to have a compile-time check that prevents creating publishers for
classes that are not ROS2 message definitions, so that will fail.

This changes the type of the publisher to marti_nav_msgs::Route and
manually converts the message to that type before publishing it.

Signed-off-by: P. J. Reed <phillipreed@hatchbed.com>
@pjreed
Copy link
Contributor Author

pjreed commented Oct 10, 2022

After merging this and swri-robotics/marti_common#693, mapviz should work on ROS2 Humble now.

@danthony06 danthony06 merged commit 6d9df2f into swri-robotics:ros2-devel Oct 10, 2022
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