Robotics StackExchange | Archived questions

How to automate simulation through C++

Hi everyone,

This is from Jason. I am a new user of ros-gazebo. I use jade ros with gazebo 5. In my case, I need to control hector quadrotor through c++ code. In the algorithm of the controller, when each hector quadrotor reach the destination I set, it will be deemed as achieving the goal and will be removed from the gazebo space. I almost figure most parts of the simulation I need except for an issue. I need to run thousands of simulations in order to get enough data for my research. So, I am wondering is there any ways that I can reset simulatin settings in c++ code so that simulations can be automated.

Does anyone have relevant experiences about running many simulations in ros-gazebo automatically?

Thank you very much for any reply from you

Jason

Asked by jasonwang538@gmail.com on 2017-05-19 03:15:00 UTC

Comments

Answers

Never used regression testing on both ROS and Gazebo at the same time (just on Gazebo for now). Here is the info about regression testing I have found, hope it will help you.

http://wiki.ros.org/UnitTesting

http://gazebosim.org/tutorials?tut=contrib_code&cat=development#WriteTests

And here are the tutorials to connect between ROS and Gazebo :

http://gazebosim.org/tutorials?cat=connect_ros

Asked by dbrodeur on 2017-05-19 07:10:46 UTC

Comments

Thank you very much Sir

Asked by jasonwang538@gmail.com on 2017-05-24 23:52:20 UTC