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

Pausing simulation for reinforcement learning does not work

asked 2022-12-28 03:17:06 -0500

updated 2022-12-28 07:25:58 -0500

gvdhoorn gravatar image

Dears, I am trying to train my turtlebot2 using openAI ros package. The problem I am facing is that I can't unpause and pause the simulation at each timestep.

    self.gazebo.unpauseSim()
    self.move_base(linear_vel, angular_vel, time_step=self.time_step)
    self.gazebo.pauseSim()

The above code odes not work. However, I need my simulation which has actors (pedestrians) to pause after each time step. I tried serviceProxy which works at first, I mean if the simulation is paused and I wanted to unpause it, but the pause service is not working again. any help please.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-12-28 04:21:18 -0500

ljaniec gravatar image

Can you add a link to these packages? OpenAI ROS especially.

Regarding your question - I found others who had to implement their own Gazebo plugins to have this level of the simulation control. Users have added some examples of how they did it here:

edit flag offensive delete link more

Comments

Thanks, I will check out these link and be back soon.

seif_seghiri gravatar image seif_seghiri  ( 2022-12-28 08:07:52 -0500 )edit
1

Here is the github repo for the openai_ros package I am currently using https://github.com/edowson/openai_ros

seif_seghiri gravatar image seif_seghiri  ( 2022-12-28 12:45:43 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2022-12-28 03:17:06 -0500

Seen: 50 times

Last updated: Dec 28 '22