can't see contact sensor data [closed]

asked 2014-12-29 21:27:01 -0600

forinkzan gravatar image

hello everyone , i have a question that i follow this tutorial link text,that i create a work dir "$ mkdir ~/gazebo_contact_tutorial; cd ~/gazebo_contact_tutorial" and next make an SDF world file with a box that has a contact sensor. "vim contact.world" ,the code is below ; then i run "$ gazebo contact.world " and i can see a box on the ground ,but when i type "$ gz topic -l" i can't see /gazebo/default/box/link/my_contact

if anyone know why , help me please ~

<pre>

<sdf version="1.4"> <world name="default"> <include> <uri>model://ground_plane</uri> </include>

 <include>
  <uri>model://sun</uri>
</include>

<model name="box">
  <link name="link">
    <pose>0 0 0.5 0 0 0</pose>

    <collision name="box_collision">
      <geometry>
        <box>
          <size>1 1 1</size>
        </box>
      </geometry>
    </collision>

    <visual name="visual">
      <geometry>
        <box>
          <size>1 1 1</size>
        </box>
      </geometry>
    </visual>

    <sensor name='my_contact' type='contact'>
      <contact>
        <collision>box_collision</collision>
      </contact>
    </sensor>
  </link>
</model>

</world> </sdf>

edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant. Please see http://wiki.ros.org/Support for more details. by ahendrix
close date 2014-12-30 00:32:43.460719

Comments

This is a gazebo question; you'll probably get a better answer on the gazebo answers site: http://answers.gazebosim.org/questions/

ahendrix gravatar imageahendrix ( 2014-12-30 00:32:18 -0600 )edit