Home | Tutorials | Wiki | Issues
Ask Your Question
0

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
0

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

Comments

what about if the terminal show some errors like " Error [Param.cc:363] 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
0

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

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

Great!

I did it!

But now I have problems with this tutorial:

http://gazebosim.org/wiki/Tutorials/1...

I edit a file world and copy this:

<sdf version="1.4">

<world name="default">

<include>

    <uri>model://ground_plane</uri>

</include>

<include>

    <uri>model://sun</uri>

</include>

<model name="my_mesh">

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

  <static>true</static>

  <link name="body">

    <visual name="visual">

      <geometry>

        <mesh><uri>file://my_mesh.dae</uri></mesh>

      </geometry>

    </visual>

  </link>

</model>

</world>

</sdf>

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

In the terminal I have used:

first

cd ~gazebo/worlds/

gazebo my_mesh.world

Second

gazebo ~/gazebo/worlds/my_mesh.world

get this error:

Error [SystemPaths.cc:370] File or path does not exist[""]

Error [Visual.cc:2069] No mesh specified

edit flag offensive delete link more

Comments

Please post a new question.

rnunziata gravatar imagernunziata ( 2013-09-21 08:11:17 -0500 )edit
Login/Signup to Answer

Question Tools

Stats

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

Seen: 1,556 times

Last updated: Sep 21 '13