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

Gazebo 4 Contact sensor issue using URDF

asked 2015-09-10 16:42:18 -0600

arjunmenon03 gravatar image

I am having an issue after I upgraded to Gazebo4 from Gazebo2. My reason to upgrade was to have the ability to use multiple contact sensor which apparently is only available 4.1 and higher. I am using URDF instead of SDF since I do plan on using the description for Rviz as well.

My environment is: Ubuntu 14.04; Gazebo 4, Ros Indigo. I am using the "" plugin.

Here is my code:

<gazebo reference="left_bump_link">
<sensor type="contact" name="lside_bump_link">
  <plugin name="lside_bumper_plugin" filename="">

The links and the joints work just fine and like I said, this code worked perfectly fine in Gazebo 2.

When I echo the rostopic "lside_bumper", it shows that it never makes a contact. When I did this on Gazebo2 it gave me all the values when the contact was made.

Has anybody experienced anything similar or anything obvious I am missing?

edit retag flag offensive close merge delete


You will probably have better luck here:

David Lu gravatar image David Lu  ( 2015-09-11 07:49:05 -0600 )edit

David Lu : I did post it on Gazebosim and I'm waiting for a response there. Once I do, I will copy/link the solution here.

arjunmenon03 gravatar image arjunmenon03  ( 2015-09-15 12:45:18 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-11-10 23:44:05 -0600

Alexander Graber-Tilton gravatar image

I had a similar issue, which I believe is due to gazebo itself. I created a urdf that had a bunch of contact sensors, which were not registering contact on the gz topics even when they were visibly in contact with the ground. This was using Ros Jade and Gazebo 5

After reading this post I switched to Ros Indigo and Gazebo 2, where contacts did register.

Not sure if there were changes in functionality or what, but there is obviously a difference between the two versions.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-09-10 16:36:27 -0600

Seen: 1,104 times

Last updated: Nov 10 '15