Revision history [back]

How to call gazebo_msg/GetLinkState service for a sensor mounted on a robot?

Hi all,

I have the following problem:

To make my own robot in gazebo (a diff-drive with a laser and a kinect) I wrote the following urdf:

https://github.com/schizzz8/lucrezio_simulation_environments/blob/master/urdf/lucrezio_with_logical.urdf.xacro

Now, I'd like to call gazebo_msgs/GetLinkState service to retrieve the pose of the sensor with respect to the gazebo world.

If I do that, that's the output I get:

In fact, in the gazebo window, the robot seems to be made of just few links:

How can I have gazebo to see also camera_link in order to retrieve its pose?

Thanks.