How to get position from Gazebo Garden within a ROS2 Node

asked 2023-03-17 09:01:14 -0600

Mildred34 gravatar image

Hello,

I'm into a ROS2 Project where I have to use Gazebo (Ignition) Garden. I used the ROS/Ign bride that allow me at start within the launch file to set the object location.

But I don't know how to get the object location, and the contact between my robot and an object within a ROS Node?

Is there any tutorial ?

Looking forward to hearing from you !

edit retag flag offensive close merge delete

Comments

Did you try subscribing to the model_state topic ? (first launch your world and check that it exist by using a ros2 topic list)

jeajea gravatar imagejeajea ( 2023-03-28 04:42:55 -0600 )edit