bitcraze / crazyflie-simulation

MIT License
64 stars 27 forks source link

Subscribe to the ROS2 topic in ignition gazebo #33

Closed omr-web closed 1 year ago

omr-web commented 1 year ago

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 commented 1 year ago

I use transport 11 instead 12 then I solved it.

knmcguire commented 1 year ago

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