ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Hello!
I've created this very short Video that shows exactly how to do this. Maybe by watching how to do it step by step it's easier to understand. Hope it helps!
2 | No.2 Revision |
Hello!
I've created this very short Video that shows exactly how to do this. Maybe by watching how to do it step by step it's easier to understand. Hope it helps!
EDIT: Well, basically I've implemented a solution to the question using the following code:
#! /usr/bin/env python
import rospy
from std_srvs.srv import Empty
rospy.init_node('reset_world')
rospy.wait_for_service('/gazebo/reset_world')
reset_world = rospy.ServiceProxy('/gazebo/reset_world', Empty)
reset_world()
In the Video, I just show an example of how to implement this solution using the ROS Development Studio. It might be helpful for someone to visualize step by step how it can be done.
3 | No.3 Revision |
Hello!
I've created this very short Video that shows exactly how to do this. Maybe by watching how to do it step by step it's easier to understand. Hope it helps!
EDIT: Well, basically I've implemented a solution to the question using the following code:
#! /usr/bin/env python
import rospy
from std_srvs.srv import Empty
rospy.init_node('reset_world')
rospy.wait_for_service('/gazebo/reset_world')
reset_world = rospy.ServiceProxy('/gazebo/reset_world', Empty)
reset_world()
In the Video, I just show an example of how to implement this solution using the ROS Development Studio. solution. It might be helpful for someone to visualize step by step how it can be done.
4 | No.4 Revision |
Hello!
I've created this very short Video that shows exactly how to do this. Maybe by watching how to do it step by step it's easier to understand. Hope it helps!
EDIT: Well, basically I've implemented In the Video, I just show an example of how to implement a solution to the question using the following code: question. It might be helpful for someone to visualize step by step how it can be done. Code used:
#! /usr/bin/env python
import rospy
from std_srvs.srv import Empty
rospy.init_node('reset_world')
rospy.wait_for_service('/gazebo/reset_world')
reset_world = rospy.ServiceProxy('/gazebo/reset_world', Empty)
reset_world()
In the Video, I just show an example of how to implement this solution. It might be helpful for someone to visualize step by step how it can be done.