ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Gazebo Contacts Bumper

asked 2015-03-19 09:37:33 -0500

How to get position of a contact with respect to to frame of the link that is in contact?

I am using Gazebo 1.9 and ROS Indigo. I am getting contact positions wrt world frame.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-03-21 08:10:49 -0500

lucasw gravatar image

Put your contact into a geometry_msgs/PointStamped and set the frame_id to world, then use tf transformPoint to transform the point into the link frame.

edit flag offensive delete link more



Thank you! One comment is that the /tf should be publishing data at sufficient rate. Use rostopic hz /tf to see the rate. Gazebo publishes link states at 1kHz by default. But using tf methods simplifies transformations.

Nomad gravatar image Nomad  ( 2015-03-23 09:03:44 -0500 )edit

Question Tools

1 follower


Asked: 2015-03-19 09:37:33 -0500

Seen: 710 times

Last updated: Mar 21 '15