jrl-umi3218 / jvrc_description

Description package for the JVRC robot
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Textures not rendering in PyBullet #2

Open stephane-caron opened 9 months ago

stephane-caron commented 9 months ago

Textures don't render properly when loading the JVRC model with:

image

Expected behavior

Either textures or (if not present) colors should appear. I'm not sure if we can realize this if-then-else behavior in URDF though :thinking:

Reproduction steps

Steps to reproduce the behavior:

  1. Close robot_descriptions.py
  2. Go to the examples directory
  3. Run python ./show_in_meshcat.py jvrc_description
  4. Check out the opened web-browser tab

Additional context

For Pinocchio: this is likely due to Pinocchio 2 not loading textures properly. I tried in Pinocchio 3 and textures are loaded fine there:

image

System

stephane-caron commented 9 months ago

If it's only in Pinocchio 2 we may actually skip this, as it will be fixed in future releases. I'll check if the issue happens with any other visualizer.

stephane-caron commented 9 months ago

OK, well I hate to be the bearer of bad news, but the same happens in PyBullet :sweat_smile:

image

Reproduction steps: same as above, with:

python ./show_in_pybullet.py jvrc_description
gergondet commented 9 months ago

I tried the pinocchio 2 + meshcat version locally and it fails indeed. If you look at the javascript console, it fails to fetch the texture files from the server. So I'm guessing this has more to do with the meshcat version or the meshcat/pinocchio integration. I stumbled upon this: https://github.com/meshcat-dev/meshcat-python/pull/112 which has some version of it integrated in https://github.com/duburcqa/jiminy/pull/533 so maybe this somehow also made its way into pinocchio 3?

I'm less familiar with bullet but the collada importer might be a little limited?

stephane-caron commented 9 months ago

Yes, no worries about Pinocchio 2, the texture loading fix is on its way. I don't know more about Bullet's collada importer.

Feel free to close this issue if you are OK with both outcomes (one of them being only temporary).

stephane-caron commented 4 months ago

This issue is now fixed in Pinocchio. I've updated the issue title accordingly.