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

Subscribe to the ROS2 topic in ignition gazebo #33

Closed
omr-web opened this issue Feb 1, 2023 · 2 comments
Closed

Subscribe to the ROS2 topic in ignition gazebo #33

omr-web opened this issue Feb 1, 2023 · 2 comments

Comments

@omr-web
Copy link

omr-web commented Feb 1, 2023

I am using ROS2 Humble. I want to subscribe to a float type message published with ROS2 in the ignition gazebo plugin.
Using ROS2 bridge I can see the float type message by typing ign topic -l command. But I cannot subscribe using the node->Subscribe function in the transport library. In summary, how can I subscribe to the ros2 topic on ignition gazebo?

Thank you your help.

@omr-web
Copy link
Author

omr-web commented Feb 6, 2023

I use transport 11 instead 12 then I solved it.

@omr-web omr-web closed this as completed Feb 6, 2023
@knmcguire
Copy link
Member

Thanks for the update! We haven't looked at the gazebo simulation for a while but it is good to know it works.

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

No branches or pull requests

2 participants