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

How do i reset my world without objects getting moved around?

asked 2021-02-28 03:20:10 -0500

Roneee gravatar image

Hi guys,

im currently trying to implement a DRL agent as a robot in an environment.

after each episode im want to reset my world with these commands:

rospy.wait_for_service('/gazebo/reset_world')
reset_world = rospy.ServiceProxy('/gazebo/reset_world',Empty)

reset_world()

It works quite good but some of my obstacles get moved around to places where they werent meant to be.

Is there something that causes this and how can i get rid of it ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-03-04 19:36:23 -0500

LucasGV gravatar image

You can try adding your obstacles into gazebo and save the .world file and then loading it. your 'reseted' version of the simulation would be the one with your positioned obstacles.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2021-02-28 03:20:10 -0500

Seen: 220 times

Last updated: Feb 28 '21