I am trying to use a convex mesh as collision geometry in drake. In my simple example I have a ground plane as the first collision geometry and load the object from the urdf file below. Where tri_cube.obj
is a convex mesh from drake/multibody/parsing/test/urdf_parser_test
. When I run the simulation it proceeds until the cube would impact on the ground plane. Then it stops and I get the following error message: Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
. Any help would be greatly appreciated.
<?xml version="1.0"?>
<robot name="my_ball">
<material name="Black">
<color rgba="0.0 0.0 0.0 1.0"/>
</material>
<link name="base_link">
<inertial>
<origin rpy="0 0 0" xyz="0.0 0.0 0.0"/>
<mass value="5"/>
<inertia ixx="0.05" ixy="0" ixz="0" iyy="0.05" iyz="0" izz="0.05"/>
</inertial>
<visual>
<geometry>
<mesh filename="tri_cube.obj" scale="1.0 1.0 1.0">
</mesh>
</geometry>
<material name="Black"/>
</visual>
<collision name='collision'>
<geometry>
<mesh filename="tri_cube.obj" scale="1.0 1.0 1.0">
<drake:declare_convex/>
</mesh>
</geometry>
<drake:proximity_properties>
<drake:mu_dynamic value="1.0" />
<drake:mu_static value="1.0" />
</drake:proximity_properties>
</collision>
</link>
</robot>