Gazebo | Ignition | Community
Ask Your Question

How to create a simple world file?

asked 2013-09-19 22:59:47 -0500

Hello eveyone!!

How to create a simple world file?

a lot of thanks,

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-09-19 23:38:09 -0500

rnunziata gravatar image

Open gazebo place all your objects go to SaveAs and save it, then change your launch file to reference you saved file. After that if you want to replace it, just repeat the process using the SaveAs to replace your launch file.

edit flag offensive delete link more


what about if the terminal show some errors like " Error [] Unable to set value [-nan -nan -nan -nan -nan -nan] for key acceleration"? and when i reopen the world file after i saved it ,the world has not changed?

Jack37 gravatar imageJack37 ( 2018-06-18 08:32:44 -0500 )edit

answered 2013-09-20 21:19:47 -0500

updated 2013-09-21 09:05:32 -0500


I did it!

But now I have problems with this tutorial:

I edit a file world and copy this:

<sdf version="1.4">

<world name="default">







<model name="my_mesh">

   <pose>0 0 0  0 0 0</pose>


  <link name="body">

    <visual name="visual">









and files duck.dae and duck.png in the sime folder but I can't see the duck

In the terminal I have used:


cd ~gazebo/worlds/



gazebo ~/gazebo/worlds/

get this error:

Error [] File or path does not exist[""]

Error [] No mesh specified

edit flag offensive delete link more


Please post a new question.

rnunziata gravatar imagernunziata ( 2013-09-21 08:11:17 -0500 )edit

Question Tools


Asked: 2013-09-19 22:59:47 -0500

Seen: 3,951 times

Last updated: Sep 21 '13