webots icon indicating copy to clipboard operation
webots copied to clipboard

Possible mesh path bug when converting proto to nodes

Open kbala444 opened this issue 2 years ago • 1 comments

Hello, I used urdf2proto to get a proto file from this urdf file that relies on some mesh files. The generated proto file references the meshes using an absolute path: /home/redux/webots/mearm/protos/mearm_model/meshes/base.stl

After adding the proto file to the stage, the robot renders fine with all meshes:

first-render-fine

But after converting the proto to nodes, the meshes disappear, even though the paths are the same second-same-path-doesnt-work

Reselecting the paths manually seems to fix the problem.

Screenshot from 2024-02-01 11-00-16

Here is my full directory structure: Screenshot from 2024-02-01 11-02-34

Thank you.

System Ubuntu 22.04, WeBots R2023B

kbala444 avatar Feb 01 '24 19:02 kbala444

Mearm.proto needed to be one directory up (protos/Mearm.proto). With this change it works :sweat_smile:

kbala444 avatar Feb 01 '24 19:02 kbala444