Hi,
I have been trying to figure this out for a couple of days now and am having trouble. Basically I want to create a world file to be launched via roslaunch that is composed of number of model sdf's that reference local meshes from within my package (e.g., file://mesh_name.dae). I then want to spawn one or more robots into said world using 'gazebo_ros spawn_model'.
When using roslaunch Gazebo can't seem to find any files outside of the .gazebo folder and I get the following errors:
Error [SystemPaths.cc:371] File or path does not exist[""]
Error [Visual.cc:2072] No mesh specified
I have read over the tutorials about making custom worlds at gazebosim.org but all of the tutorials use models from the Gazebo model data base (i.e., < uri>model://pioneer2dx/meshes/chassis.dae< /uri>). There is also text on how to use spawn_model with urdf's but not collada's?
What is the best way to do this while keeping the models local to a package? I seem to remember seeing someone mention using Gazebo's environment variables but this seems like an awkward solution.
Thanks, Brett
Originally posted by BrettHemes on ROS Answers with karma: 525 on 2014-10-20
Post score: 0