-
Notifications
You must be signed in to change notification settings - Fork 68
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
Visualization fails for some more complex URDFs #284
Comments
Thanks for reporting @ndahn . Is the mesh that you are trying to load a collada file (.dae)? I assume this line is failing: https://github.com/dfki-ric/pytransform3d/blob/main/pytransform3d/_mesh_loader.py#L98 Or do you use a different version? Maybe we can find a workaround for the error here?
I don't think this is critical. We would just have to make sure that the frames are linked correctly. |
Yes, that's the line, as the resulting object does not have a |
The |
Please check if this works for you: #285 |
@ndahn confirmed that it works in his case. |
Works like a charm, thank you! |
We have a more complex URDF that fails when passing it to the visualizer. The reason seems to be that trimesh can't compact it into one mesh and returns a
trimesh.Scene
instead. I have a messy monkey patch that works as follows:visualization._artists._objects_to_artist
, instead of letting the Mesh artist andload_mesh
handle it. If a scene is returned, one artist per submesh is added.trimesh.TriangleMesh
instead of a filename.However, there are some issues with this solution:
The text was updated successfully, but these errors were encountered: