Not able to read data from contact sensor - gazebo 7
Hi, I have created a world in gazebo and I have added a contact sensor to it. in gazebo 2 it was working, but in gazebo 7 is not working using the same code. This is my code using ros indigo and gazebo 7.
<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" >="" <!--="" <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>
thank you, Giovanni