Robotics StackExchange | Archived questions

How to get position from Gazebo Garden within a ROS2 Node

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 !

Asked by Mildred34 on 2023-03-17 09:01:14 UTC

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)

Asked by jeajea on 2023-03-28 04:42:55 UTC

Answers