Home | Tutorials | Wiki | Issues
Ask Your Question
0

How to Modify a Running Gazebo Simulation?

asked 2014-05-21 14:46:22 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi all,

So I am using roslaunch command to simulate a simple Gazebo world file which contains some cubic obstacles. I have a question which I have not been able find any solution for: Once the simulation is up and running, can I add any objects to Gazebo simulation without having to use the graphical user interface? I am using ROS Hydro and Gazebo-1.9.

I would appreciate any kind of help.

Cheers,

Ali

edit retag flag offensive close merge delete

Comments

Could you please update the answer and include which version of gazebo are you using?

Jose Luis Rivero gravatar imageJose Luis Rivero ( 2014-05-21 17:18:45 -0500 )edit

Sure, it is ROS Hydro and Gazebo -1.9

ali_mohandes gravatar imageali_mohandes ( 2014-05-21 17:25:18 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-05-21 18:02:47 -0500

Jose Luis Rivero gravatar image

There are at least two ways of doing this:

  1. From the command line: using the gzfactory tool (look at the spawn parameter). The user guide described it perfectly.
  2. Programmatically: using a world plugin as described in the corresponding tutorial

Hope it helps.

edit flag offensive delete link more

Comments

Thanks a lot. I used gzfactory and it worked. I appreciate your help.

ali_mohandes gravatar imageali_mohandes ( 2014-05-21 22:36:39 -0500 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2014-05-21 14:46:22 -0500

Seen: 116 times

Last updated: May 21 '14