Why is Rviz not loading my .dae file for my robot?
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
First thing to check: is the
.dae
actually located inurdf_tutorial/meshes
? What is the output ofrosls urdf_tutorial/meshes
?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.
So if
rosls
does not show thechassis.dae
file, that's the reason you get that error.How did you install
urdf_tutorial
?I cloned it into my workspace with git
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
?