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

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!

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.

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.

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.