Tips and tricks
How to convert the SVH urdf to a MuJoCo model
run xacro to create the urdf, e.g.
xacro /home/stefan/src/ros2_workspaces/svh/src/schunk_svh_ros_driver/schunk_svh_driver/urdf/schunk_svh_driver.xacro control:=right_hand plugin:=schunk_svh_simulation/Simulator device_file:=unused mujoco_model:=/home/stefan/src/ros2_workspaces/svh/src/schunk_svh_ros_driver/schunk_svh_simulation/etc/svh_mujoco.xml mesh_directory:=/home/stefan/src/ros2_workspaces/svh/src/schunk_svh_ros_driver/schunk_svh_simulation/meshes >> svh.urdf
add a
<mujoco> <compiler discardvisual="false"/> </mujoco>
to the
<robot>tag.Inside the generated
.urdf, replace the.daewith.stlfilesConvert the actual
.daefiles into binary.stlwith BlenderPut all
.stlfiles into MuJoCo’scompileexecutable binaryCompile with
compile svh.urdf svh.xmlCopy the content inside the
<worldbody>tagRemove lines with duplicate meshes that don’t have
contypeorcoaffinity. They will lead to constant collisions and destabilize the engine.