rViz not loading the mesh .dae file
Hi, I checked for this question in rosanswers and google and none of the previous answers solved my problem. I'm sure I'm missing something obvious here. I'm opening rViz and I'm trying to visualize my robot with the RobotModel plugin, and I get this error on rViz:
URDF Errors loading geometries: • for link 'bucket': Could not load mesh resource '/home/<user_name>/catkin_ws/src/robot_sim/robot/meshes/stl/Mesh.033.stl'
(I'm getting this error on all of the mesh files of this robot, so you might see different file names in this post)
And I get this error in the terminal running rViz:
[ERROR] [1660867019.412119678, 168.560000000]: Could not load resource [/home/<user_name>/catkin_ws/src/robot_sim/robot/meshes/stl/Mesh.040.stl]: Unable to open file "/home/<user_name>/catkin_ws/src/robot_sim/robot/meshes/stl/Mesh.040.stl".
- First thing I checked was whether that file exists in that location: and this is my output of the ls command:
ls -al `rospack find robot`/meshes/stl/Mesh.033.stl
and I see that this file exists. It has this permissions: -rw-rw-r-- 1
2. Next thing I checked was my URDF file: this is how it loads the file:
<mesh filename="$(find robot)/meshes/stl/Mesh.005.stl" scale="1.0 1.0 1.0"/>
I tried changing this to accept the absolute path with /home/<user_name>/..
, I also tried package://
prefix but I'm still getting this error.
Please help me fix this. Thank you.
/home/<user_name>/catkin_ws/