load custom world in gazebo from launch file

asked 2014-11-20 16:33:29 -0600

Kasra gravatar image

Hello everyone,

I've built a custom wold for gazebo (dae file) and I'm trying to load this file from a launch file. When I run the world file directly from gazebo, it woks and I can see the world (gazebo maze.world). But when I build a launch file and include the world file inside the launch file, I get the following error:

Error [SystemPaths.cc:367] File or path does not exist[""]
Error [Visual.cc:2138] No mesh specified

Here is the content of the world file (maze.world):

image description

and here is the launch file(maze.launch):

image description

both launch file and world file are in the same directory and I've set the GAZEBO_MODEL_PATH to that directory. Can someone tell me what's the problem here?

Thanks

edit retag flag offensive close merge delete

Comments

The launch file should work as far as I can tell, so it's not a ROS problem probably. Would try out your sdf, to reproduce, but I'm not going to type the text from the image. How exactly does it work from Gazebo directly? By running $ gazebo maze.world in the terminal in p3dx_gazebo folder?

Reamees gravatar imageReamees ( 2018-07-11 02:01:39 -0600 )edit

you can also add the debug argument to your launch file to see if it gives any more information

<arg name="debug" value="true"/>

most probably gazebo just can't find the files. Also just noticed the question is ancient. So never mind.

Reamees gravatar imageReamees ( 2018-07-11 02:12:52 -0600 )edit