How to use a custom mesh in .world file
Hi all, This is low level, as I am a noob at Gazebo and ROS. I follow the custom world build tutorial http://gazebosim.org/wiki/Tutorials/1.9/UsingroslaunchFilestoSpawn_Models just fine and create a gas station but I want to sub in a custom mesh. The mesh was created in MeshLab from a .stl and I exported it as a .dae file to the /models folder in my gazebo package. The code is below for the world file, I simply replaced
<uri>model://gas_station</uri>
with
<mesh><uri>file://~/catkinws/src/iarmgazebo/models/HardHat.dae</uri></mesh>
but I'm not sure if this is the right format or if the file needs to be in a different folder for it to be scene. Perhaps I need to modify my package.xml or CMakeLists.txt or source something to recognize it. The full file is below along with the error produced when I run
gazebo iarm.world
from my package path
> <?xml version="1.0" ?>
<sdf version="1.4">
<world name="default">
<include>
<uri>model://ground_plane</uri>
</include>
<include>
<uri>model://sun</uri>
</include>
<model name="hardhat">
<pose>0 0 0 0 0 0</pose>
<static>true</static>
<link name="body">
<visual name="visual">
<geometry>
<mesh><uri>file://~/catkin_ws/src/iarm_gazebo/models/HardHat.dae</uri></mesh>
</geometry>
</visual>
</link>
</model>
</world>
</sdf>
The error:
> Error [SystemPaths.cc:371] File or path does not exist[""]
Error [Visual.cc:2072] No mesh specified
Any and all help is appreciated. Kinda need to spell it out for me. Thanks for your time, guys.