Unable to Load mesh onto RViz

RViz will not load any of the mesh files

URDF
Errors loading geometries:
• for link 'base_link':
Could not load mesh resource 'package://home/ubuntu/ros3_ws/install/tortoisebot_description/share/tortoisebot_description/models/meshes/base_link.dae'
Could not load mesh resource 'package://home/ubuntu/ros3_ws/install/tortoisebot_description/share/tortoisebot_description/models/meshes/base_link.dae'
Could not load mesh resource 'package://home/ubuntu/ros3_ws/install/tortoisebot_description/share/tortoisebot_description/models/meshes/base_link.dae'
Could not load mesh resource 'package://home/ubuntu/ros3_ws/install/tortoisebot_description/share/tortoisebot_description/models/meshes/base_link.dae'
• for link 'camera_holder':
Could not load mesh resource 'package://home/ubuntu/ros3_ws/install/tortoisebot_description/share/tortoisebot_description/models/meshes/camera_holder.dae'
Could not load mesh resource 'package://home/ubuntu/ros3_ws/install/tortoisebot_description/share/tortoisebot_description/models/meshes/camera_holder.dae'
Could not load mesh resource 'package://home/ubuntu/ros3_ws/install/tortoisebot_description/share/tortoisebot_description/models/meshes/camera_holder.dae'


Here is what i have tried

  • package://
  • file://$(find tortoisebot_description)
  • i have tried providing the absolute path
    i checked CMakeLists.txt but that has the directory mentioned like this:-
install(
  DIRECTORY launch models rviz worlds
  DESTINATION share/${PROJECT_NAME}
)

I have also tried sourcing a couple of times. I am not sure what is wrong.
Hoping for a response as i did not get a response to my previous question as well.

Hi @visheshuni ,

There is a major issue in the folder name. ros3_ws???
Did you release a new ROS version that we are yet to be aware of?
We know only of ROS and ROS2 so far! Please let us know if you have invented ROS3! We will be very excited to learn whats new!

Now coming to why RViz does not show the robot model:

  1. Are you sure that the paths to the mesh files actually exist?
  2. Are you sure that the dae mesh files do actually contain any substance?
  3. Are you sure that you are running robot state publisher? Or are you loading URDF from file in RViz?
  4. We usually specify relative path to the mesh files in the URDF/XACRO files. Like this: <mesh filename="package://package_name/meshes/mesh_name.dae" scale="1.0 1.0 1.0"/>. If you have used absolute paths, then it may not show up on RViz.

Check all the steps above. You can then easily solve the issue!

Regards,
Girish

I named the folder ros3_ws just so that i can give distinguish between changes
i know i can use github to keeping track of changes will be using it in the future.

i have checked and the paths to the mesh files do exist. they are there in the models/meshes directory.

Yes the dae files do have substances infact the dae files came by default with the tortoisebot
I am running robot state publisher i can see that it runs.

and regarding file path i have tried whatt you mentioned and absolute path both don’t work.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.