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

Display issues with hector drone in pin3 #2291

Closed
fabinsch opened this issue Jun 20, 2024 · 7 comments
Closed

Display issues with hector drone in pin3 #2291

fabinsch opened this issue Jun 20, 2024 · 7 comments

Comments

@fabinsch
Copy link
Contributor

Since I use pinocchio3 from conda, the hector drone from example-robot-data is not displayed properly in meshcat. This is not blocking me, I just thought I raise the issue as maybe others will experience display issues as well. I displayed a couple other quadrupeds and manipulator models from erd and they all look fine.

Steps to reproduce:

conda create --name erd_debug python=3.11 pinocchio example-robot-data meshcat-python ipython

then in ipython

import example_robot_data as erd
from pinocchio.visualize import MeshcatVisualizer
robot = erd.load("hector")
vizer =  MeshcatVisualizer(
    robot.model, robot.collision_model, robot.visual_model
)
vizer.initViewer(loadModel=True, open=True)
vizer.display(robot.q0)

It works as expected with

conda create --name erd_debug python=3.11 pinocchio==2.7.1 example-robot-data meshcat-python ipython

Screenshot from 2024-06-20 09-38-59
Screenshot from 2024-06-20 09-38-16

@jorisv
Copy link
Contributor

jorisv commented Jun 20, 2024

I think @ManifoldFR have found a similar issue with the UR5 end effector.

@ManifoldFR
Copy link
Member

ManifoldFR commented Jun 20, 2024

What is the file extension for the meshes for this robot ?

If it's STL or DAE I have a fix over on our own fork of meshcat-python on the Simple-Robotics org

Probably related to my PR: meshcat-dev/meshcat#170

@fabinsch
Copy link
Contributor Author

You are right, the UR5 end-effector has also display issues. However, they look different than what we see on your PR @ManifoldFR .

The drone has both DAE for visual and STL for collisions. I installed the latest master from our fork of meshcat-python but this does not solve the problem.

image

@ManifoldFR
Copy link
Member

Oh, the branch to install is not master, but topic/update-meshcatjs I think.

The current master on the fork is just the master from upstream if I recall correctly.

@ManifoldFR
Copy link
Member

That one should point to the right branch on our fork of meshcat (JS) which has all of the patches I wanted to upstream. Unfortunately nothing has advanced on that front.

@fabinsch
Copy link
Contributor Author

mmh, I tried also the branch topic/update-meshcatjs with commit 819526d46f9c63efad7a0f3df9a15db0cc2ce0c9 but it looks still the same.

@fabinsch
Copy link
Contributor Author

The issue is solved for me by #2294.

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

3 participants