ros-naoqi / nao_virtual

all tools to simulate nao robot
Apache License 2.0
43 stars 26 forks source link

Meshes not found #7

Closed awesomebytes closed 9 years ago

awesomebytes commented 9 years ago

This is probably a temporary problem while you are updating stuff but trying to checkout all the last packages and launching a simulated nao (football field one or simple empty world):

roslaunch nao_gazebo_plugin nao_gazebo.launch

Gives:

Error [SystemPaths.cc:367] File or path does not exist["/home/sam/nao_ws/src/nao_meshes/nao_meshes/meshes/V40/Torso.dae"] Error [Visual.cc:2133] No mesh specified Error [SystemPaths.cc:367] File or path does not exist["/home/sam/nao_ws/src/nao_meshes/nao_meshes/meshes/V40/Torso_0.10.stl"] Error [Visual.cc:2133] No mesh specified Error [SystemPaths.cc:367] File or path does not exist["/home/sam/nao_ws/src/nao_meshes/nao_meshes/meshes/V40/HeadYaw.dae"] Error [Visual.cc:2133] No mesh specified Error [SystemPaths.cc:367] File or path does not exist["/home/sam/nao_ws/src/nao_meshes/nao_meshes/meshes/V40/HeadPitch.dae"] Error [Visual.cc:2133] No mesh specified Error [SystemPaths.cc:367] File or path does not exist["/home/sam/nao_ws/src/nao_meshes/nao_meshes/meshes/V40/HeadYaw_0.10.stl"] ... Etc

I see that nao_meshes (nao_meshes/nao_meshes/meshes/V40) contains now collision and visual. And that path has not been updated in the generated URDF. As a temporal workaround I just copied everything from the visual and collision folder to one folder up (the V40 folder). But there are still meshes missing and it's trying to go back in the path wrongly:

Error [Material.cc:93] Unable to find texture[../../../texture/textureNAO.png] in path[/home/sam/nao_ws/src/nao_meshes/nao_meshes/meshes/V40]

(should be ../../texture/textureNAO.png)

And after this, well, the robot falls into the ground infinitely. But that's another problem (related to not finding collision meshes maybe?).

Also a last extra, the contents of my current rosinstall:

awesomebytes commented 9 years ago

Ok, I was using https://github.com/vrabaud/nao_meshes_generator and not https://github.com/ros-naoqi/nao_meshes_installer

So I was using old ones, my bad, sorry. Closing. I'll try again another day!

vrabaud commented 9 years ago

actually, you should use that package: https://github.com/ros-naoqi/nao_meshes/ please follow the README. If you are on Ubuntu, just install the package, it is easier.