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

URDF Export Error and Collision Object Error with Left-Handed Rotation Matrix #377

Open
1270645409 opened this issue Mar 6, 2025 · 0 comments

Comments

@1270645409
Copy link

Describe the bug
I have created mutiple .obj files in blender, then composite them to a urdf
I encountered two issues when exporting Blender models to URDF using Phobos.

PLEASE NOTE THAT No transformation has been applied to the origin .obj mesh

Issue 1: Rotation Matrix Error

Error Message:
'''
Rot.from_matrix(R).as euler(EULER CONVENTION)
Non-positive determinant (left-handed or null coordinate frame) in rotation matrix
'''
Also, I meet this error when creating collision object

Context:

This occurs when exporting a URDF containing multiple objects assembled as links.
Temporary Fix: Flipping/mirroring the problematic object sometimes resolves the error, but this approach is unreliable.

Issue 2: Collision Object Pose Mismatch

Problem:

When creating a collision object (mesh), its pose differs from the original visual object. Specifically, the collision mesh requires an additional 90-degree rotation around the X-axis to align with the visual geometry.
Sometimes, the same problem occurs as the issue 1.

I don't know whether it is normal

To Reproduce
Steps to reproduce the behavior:

  1. import two obj(body and lid)
  2. set them to visual
  3. create link for them
  4. set the body link to root
  5. set "bone relative" for the two link
  6. select one visual obj, create collision for it, then error occurs
  7. also, when i try to export the whole urdf, the same error occurs

Expected behavior
for issue 1, I want to export urdf successfully
I want to know why the rotation matrix is left-handed

for issue 2, I want to know why the created collision obj pose is not the same as visual one.

Screenshots
Image

Desktop (please complete the following information):

  • OS: Ubuntu 22.04
  • Blender version 3.3LTS

Additional context
scipy==1.13.1
phobos=2.0.0

E.g. URDF version, mesh type/version etc

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