Home | Tutorials | Wiki | Issues
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

bumper sensor topic not available

Hi,

I've added a bumper sensor to husky by adding the following code snippet to 'husky.urdf.xacro'. Now, when I spawn the robot, I can see the front bumper turning orange (which means that the contact sensor has been detected). However, I cannot see the desired topic being published in my topics list. Any idea why would this happen ?

Config: Ubuntu 14.04, ROS - Indigo, Gazebo - 2.2

 <gazebo reference="front_bumper">
  <sensor name="front_bumper_contact" type="contact">
    <always_on>1</always_on>
    <update_rate>100</update_rate>
    <contact>
      <!-- When using ROS Indigo and Gazebo 2.2.3, the name specified here
           must be <link name>_collision. -->
      <collision>front_bumper_collision</collision>
    </contact>
    <plugin filename="libgazebo_ros_bumper.so" name="front_bumper_gazebo_ros_bumper_controller">
      <always_on>1</always_on>
      <update_rate>100</update_rate>
      <frameName>front_bumper_link</frameName>
      <bumperTopicName>front_bumper_contact_state</bumperTopicName>
    </plugin>
  </sensor>
  <material>Gazebo/Orange</material>
</gazebo>