ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The short answer is that rospy and roscpp are not designed to initialize multiple times.

When I've wanted to do things like this, I usually run a separate ROS core for each simulation run, and the program that runs the simulation is generally not a ROS node. If you need to collect data from each run you could write it to a bag file or a custom data file and read that from your runner.