Why is Rviz not loading my .dae file for my robot?

asked 2020-09-23 10:21:16 -0500

ARMWilkinson gravatar image

I am working on designing a small recon robot and have developed a number of meshes in blender for use in the robot. I am now trying to implement them in a .urdf file so as to be able to load them in rviz. However, whenever I try to load them using the command:

roslaunch urdf_tutorial display.launch model:=urdf/bilkins.urdf

rviz does not load up the model and this error repeats on the terminal:

[ERROR] [1600873487.235408365]: Could not load resource [package://urdf_tutorial/meshes/chassis.dae]: Unable to open file `"package://urdf_tutorial/meshes/chassis.dae".`
[ WARN] [1600873487.236670494]: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource `package://urdf_tutorial/meshes/chassis.dae in resource group Autodetect or any other group. in `ResourceGroupManager::openResource at /build/ogre-1.9-B6QkmW/ogre-1.9- 1.9.0+dfsg1/OgreMain/src/OgreResourceGroupManager.cpp (line 756)

The .urdf file for my robot is as follows:

<?xml version="1.0"?>
<robot name="myfirst">
  <link name="base_link">
    <visual>
      <origin rpy="0.0 0 0" xyz="0 0 0"/>
      <geometry>
        <mesh filename="package://urdf_tutorial/meshes/chassis.dae"/>
      </geometry>
    </visual>
    <collision>
      <geometry>
        <mesh filename="package://urdf_tutorial/meshes/chassis.dae"/>
      </geometry>
      <origin rpy="0.0 0 0" xyz="0 0 0"/>
    </collision>
    <inertial>
      <mass value="0.05"/>
      <inertia ixx="1.0" ixy="0.0" ixz="0.0" iyy="1.0" iyz="0.0" izz="1.0"/>
    </inertial>
  </link>
</robot>

I am using Melodic on Ubuntu 18.04.4 LTS

edit retag flag offensive close merge delete

Comments

First thing to check: is the .dae actually located in urdf_tutorial/meshes? What is the output of rosls urdf_tutorial/meshes?

gvdhoorn gravatar image gvdhoorn  ( 2020-09-24 03:50:21 -0500 )edit

The output lists the meshes that were already in it, but don't actually list the chassis.dae mesh I'm calling. I've moved it into that folder though.

ARMWilkinson gravatar image ARMWilkinson  ( 2020-09-24 07:39:13 -0500 )edit

So if rosls does not show the chassis.dae file, that's the reason you get that error.

How did you install urdf_tutorial?

gvdhoorn gravatar image gvdhoorn  ( 2020-09-24 08:16:45 -0500 )edit

I cloned it into my workspace with git

ARMWilkinson gravatar image ARMWilkinson  ( 2020-09-24 08:29:22 -0500 )edit

And you copied your meshes to the urdf_tutorial which is in your workspace?

And then you built your workspace, and source devel/setup.bash?

What is the output of rospack find urdf_tutorial?

gvdhoorn gravatar image gvdhoorn  ( 2020-09-25 02:14:15 -0500 )edit