Gazebo | Ignition | Community
Ask Your Question

Gazebo simulation automation

asked 2018-11-28 08:27:57 -0500

Eisenhorn gravatar image


I want to run gazebo simulations automatically over night. I am not sure where to start. The idea is, that a robot executes a specific mission. Eventually I would like a report or snapshots of checkpoints or a report.

Is there some support from gazebo or some kind of framework / plugins to help? Maybe someone has had a similar challange?


edit retag flag offensive close merge delete



Not really frameworks, but the ServerFixture and RenderFixture classes might be useful. They are used in Gazebo for testing.,

azeey gravatar imageazeey ( 2018-11-28 17:02:56 -0500 )edit

Thanks for your reply @azeey. Is there maybe a tutorial or demo implementation on how this classes are used best?

Eisenhorn gravatar imageEisenhorn ( 2018-11-29 03:26:13 -0500 )edit

I wonder, whether the OP have found a solution for this. I have the exact same use case and don't want to reinvent the wheel.

tahsinkose gravatar imagetahsinkose ( 2019-06-21 03:42:26 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2019-09-02 03:25:58 -0500

Eisenhorn gravatar image

In the end I wrote a pyhton test script using the actionlib.SimpleActionClient ( interface. You can then create a json file with all your goals/actions.

edit flag offensive delete link more

answered 2018-11-29 10:48:59 -0500

azeey gravatar image

The ServerFixture and RenderFixture classes might be useful for automating simulations. I don't know of any tutorial that covers how to use the classes, but most of the tests in gazebo use them. Here is an example of a test that spawns a PR2 and saves some pictures from its camera.

If you are manually running the simulation but want an output at the end of the simulation, you might be able to use world or system plugins, which are more accessible and have tutorials.

edit flag offensive delete link more


For an example outside of Gazebo, you may want to look at gazebo_ros_pkgs tests on the ROS 2 branch, for example:

chapulina gravatar imagechapulina ( 2018-11-29 21:07:36 -0500 )edit
Login/Signup to Answer

Question Tools



Asked: 2018-11-28 08:27:57 -0500

Seen: 927 times

Last updated: Sep 02 '19