models icon indicating copy to clipboard operation
models copied to clipboard

Discrepancy in relative pose between visual and collision meshes between drake and non-drake tools

Open siddancha opened this issue 1 year ago • 2 comments

I'm looking at the 010_potted_meat_can_textured model, where I converted the SDF into a URDF.

Files for reproduction

Problem

  • Drake: When I view the URDF in the Drake visualizer, the visual and collision meshes are aligned.

    unzip 010_potted_meat_can_textured.zip -d files
    python3 -m pydrake.visualization.model_visualizer files/010_potted_meat_can_textured.urdf
    

    In Drake, visual and collision geometries are aligned

  • Other tools: When using other open source tools to visualize the URDF, such as trimesh and a web URDF viewer, the two are not aligned:

    In non-drake tools, visual and collision geometries are mis-aligned

siddancha avatar Jun 19 '24 22:06 siddancha

One suggestion: make sure the other tools know that glTF meshes use a y-up coordinate system, whereas OBJ meshes are typically understood to be z-up.

jwnimmer-tri avatar Jun 20 '24 20:06 jwnimmer-tri

Thanks! That might be the issue.

  • https://github.com/mikedh/trimesh/issues/1759
  • https://github.com/mikedh/trimesh/issues/1938

siddancha avatar Jun 20 '24 21:06 siddancha