Not able to read data from contact sensor - gazebo [closed]

asked 2016-07-28 05:02:05 -0600

giovadema85 gravatar image

Hi, I have created a world in gazebo and I have added a contact sensor to it. This is the code I used

<robot xmlns:xacro="http://ros.org/wiki/xacro"> <xacro:macro name="gazebo_fsensor_link_v0"> <gazebo reference="fsensor_link"> <mu1>0.2</mu1> <mu2>0.2</mu2> <selfcollide>true</selfcollide> <material>Gazebo/Red</material> <sensor type="contact" name="fsensor_link_contact_sensor" &gt;="" <!--="" <geom="">sensor_link_geom</geom> --> <always_on>true</always_on> <update_rate>100</update_rate> <contact> <collision>fsensor_link_collision</collision> </contact> <plugin name="fsensor_link_plugin" filename="libgazebo_ros_bumper.so"> <bumpertopicname>fsensor_link_sensor_state</bumpertopicname> <framename>fsensor_link</framename> </plugin> </sensor> </gazebo> </xacro:macro> </robot>

This code is working in gazebo 2 + ROS indigo, but not in gazebo 7 + ROS indigo.

Thank you for your help, Giovanni

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by NEngelhard
close date 2016-07-28 06:12:49.914991