Home | Tutorials | Wiki | Issues
Ask Your Question
0

spawn world after gzserver start

asked 2017-10-13 12:10:00 -0500

GuillaumeB gravatar image

Hello,

I would like to know if it's possible to spawn a world (sdf .world file) once gazebo is launched. I tried to use the service /gazebo/spawn_sdf_model but I got this error: GazeboRosApiPlugin SpawnModel Failure: input xml format not recognized (I was loading the default willowgarage.world).

Did someone has already succed to spawn a world after gzserver startup?

thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-10-13 15:19:15 -0500

chapulina gravatar image

updated 2017-10-13 15:22:35 -0500

If you don't give Gazebo a world on startup, it will load empty.world. Unfortunately, "closing" a world and opening a new one is not supported yet. So the answer is no, but that doesn't mean someone can't have found a hacky way of doing it.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-10-13 12:10:00 -0500

Seen: 202 times

Last updated: Oct 13 '17