Gazebo | Ignition | Community
Ask Your Question
0

Collision and collada meshes

asked 2015-05-28 10:13:54 -0500

mehdi gravatar image

I am using .dae meshes for my robot and it seems that when I define the collision tag using that mesh, objects can just go through and no collision is simulated. Why is that? example of my urdf

<link name="disk${index}">
  <visual>
    <geometry>
      <mesh filename="package://maru_simulation/meshes/disk.dae"/>
    </geometry>
    <origin xyz="0 0 -0.01" rpy="0 0 0"/>
  </visual>
<inertial>
  <mass value="0.01" />
  <inertia ixx="1.0" ixy="0.0" ixz="0.0"
  iyy="1.0" iyz="0.0"
  izz="1.0" />
</inertial>
  <collision>
    <geometry>
      <mesh filename="package://maru_simulation/meshes/disk.dae"/>
    </geometry>
    <origin xyz="0 0 -0.01" rpy="0 0 0"/>
  </collision>
</link>
edit retag flag offensive close merge delete

Comments

I don't have an answer but usually collada meshes are used for visualization. Textureless format with less vertices are usually used for collision, format as stl are best suited for this use case.

marguedas gravatar imagemarguedas ( 2015-05-29 02:12:21 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-11-29 15:32:50 -0500

mehdi gravatar image

I figured out that models loaded from urdf's have by default "self collide" set to false so any joint from that model won't collide with any other joint, but if you spawn another object and make it collide with your mesh model, the simulator will take into consideration the collision.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2015-05-28 10:13:54 -0500

Seen: 3,756 times

Last updated: Nov 29 '18