1 | initial version |
Hello Guys,
I found the solution to programmatically reset gazebo. So I am posting it here for others to benefit:
std_srvs::Empty empty_packet; if(resetworld_client.call(empty_packet)) { ROS_INFO("Reset World); } else { ROS_INFO("Failed to reset the world"); }
And that's it. This particular code should be in the call back function of the subscriber that you made in ROS.