Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glTF meshes shown with incorrect orientation #1229

Open
calderpg-tri opened this issue Jul 9, 2024 · 0 comments
Open

glTF meshes shown with incorrect orientation #1229

calderpg-tri opened this issue Jul 9, 2024 · 0 comments

Comments

@calderpg-tri
Copy link

ROS 2 distro: Humble
Rviz version: 11.2.12
OS: Ubuntu 22.04.4

At TRI, we use glTF assets for most of our URDF and Sdformat models. These models are displayed in Rviz with an incorrect orientation due to differences in the frame conventions between Rviz, Assimp, and glTF:

  • ROS and Rviz use +X forward/+Y left/+Z up
  • Assimp uses the OpenGL convention +X right/+Y up/+Z backwards
  • glTF uses +Z forward/+Y up/+X left

An example of incorrect mesh orientations using glTF assets (note the transparent gray spheres/boxes are the collision model)
before_gltf

For now, we work around the issue by applying an additional offset transform to meshes we send (via visualization_msgs::Marker) to Rviz, so that glTF assets are displayed correctly
after_gltf

Other tools/viewers (e.g. Meshcat) display the same glTF assets with the correct orientation.

cc @EricCousineau-TRI @IanTheEngineer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant