u/Crims0nV0id

▲ 3 r/ROS

I'm running ROS2 Humble in a Docker container and having a weird issue with RViz. My robot model won't render properly — all I see are red collision primitives instead of the actual 3D mesh.

The error in RViz:

text

URDF
Errors loading geometries:
• for link 'base_link':
Could not load mesh resource '/ros2_ws/install/limo_car/share/limo_car/meshes/limo_base.dae'
Could not load mesh resource '/ros2_ws/install/limo_car/share/limo_car/meshes/limo_base.dae'
• for link 'front_left_wheel_link':
Could not load mesh resource '/ros2_ws/install/limo_car/share/limo_car/meshes/limo_wheel.dae'
Could not load mesh resource '/ros2_ws/install/limo_car/share/limo_car/meshes/limo_wheel.dae'
• for link 'front_right_wheel_link':
Could not load mesh resource '/ros2_ws/install/limo_car/share/limo_car/meshes/limo_wheel.dae'
Could not load mesh resource '/ros2_ws/install/limo_car/share/limo_car/meshes/limo_wheel.dae'
• for link 'rear_left_wheel_link':
Could not load mesh resource '/ros2_ws/install/limo_car/share/limo_car/meshes/limo_wheel.dae'
Could not load mesh resource '/ros2_ws/install/limo_car/share/limo_car/meshes/limo_wheel.dae'
• for link 'rear_right_wheel_link':
Could not load mesh resource '/ros2_ws/install/limo_car/share/limo_car/meshes/limo_wheel.dae'
Could not load mesh resource '/ros2_ws/install/limo_car/share/limo_car/meshes/limo_wheel.dae'

What I've checked so far:

  • The mesh files exist in my source directory: /ros2_ws/src/limo_car/meshes/limo_base.dae and limo_wheel.dae
  • They're installed as symlinks in the install space pointing to the source files
  • The symlinks aren't broken — I can cat the files just fine from the terminal
  • I'm running as root inside the container
  • The URDF tree loads fine (I can see all the links/joints), it's just the visual meshes that fail

Screenshot:

https://preview.redd.it/7syytcfwgpyg1.png?width=1203&format=png&auto=webp&s=e3b87acc9fc1a6eb84b1a9c12475d727da57001a

I'm stumped because the files are clearly there and readable. What am I missing? Anyone seen this before with Docker and symlinked installs?

Setup: ROS2 Humble, colcon build with default symlink install, Docker container, RViz2

reddit.com
u/Crims0nV0id — 13 days ago