Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to add collision properties to an actor

Hello,

I'm trying to add collision properties to this simple actor in Gazebo 5. It works nice, but keeps going through objects. Maybe I'm missing something. Any ideas? This is my world file:

<world name="actor_world">  
<actor name="actor1">       
     <skin>
        <filename>moonwalk.dae</filename>
        <scale>1.0</scale>
     </skin>
     <pose>0 0 0 0 0 0</pose>
     <link name="actor_link">
        <pose>-0 0 0 0 0 0</pose>
        <collision name="actor_collision">
          <pose>0 0 0 0 0 0</pose>
          <geometry>
            <mesh>
                <uri>mesh://moonwalk.dae</uri>
            </mesh>
          </geometry>
        </collision>
    </link>
     <animation name="walking">
        <filename>walk.dae</filename>
        <scale>1.000000</scale>
        <interpolate_x>true</interpolate_x>
     </animation>
    <script>
    <loop>true</loop>
        <delay_start>0.000000</delay_start>
        <auto_start>true</auto_start>
        <trajectory id="0" type="walking">
            <waypoint>
              <time>0.000000</time>
              <pose>0.000000 0.000000 0.000000 0.000000 0.000000 0.000000</pose>
           </waypoint>
           <waypoint>
              <time>10.000000</time>
              <pose>5.000000 0.000000 0.000000 0.000000 0.000000 0.000000</pose>
           </waypoint>
        </trajectory>
    </script>
</actor>  </world>

Thanks!