techlist.io
OpenAI2017-05-143 min read

Curated summary

Roboschool

Read original(opens in new tab)

Roboschool: Open-Source Robot Simulation for OpenAI Gym

OpenAI released Roboschool, an open-source robot simulation package integrated with OpenAI Gym. It offers free alternatives to eight MuJoCo environments, re-tuned for more realistic motion, along with new challenging tasks and support for training multiple agents in the same environment. Built on the permissively licensed Bullet Physics Engine, it removes the paid-license barrier that MuJoCo imposed on researchers.

Free Alternative to MuJoCo

  • The MuJoCo dependency required a paid license, a common complaint among Gym users, though MuJoCo later added free student licenses.
  • Roboschool is built on the Bullet Physics Engine, an open-source library also used by simulators such as Gazebo and V-REP.
  • Twelve environments ship with the package, including ported MuJoCo tasks modified for more realistic behavior and new challenges.
  • Trained policies for these environments are available in the agent_zoo folder, and a demo_race script lets three robots race each other.

Interactive and Robust Locomotion

  • Earlier Gym walking tasks only required moving forward, so learned policies often settled into a single cyclic gait, left most of the state space unexplored, and fell over after small pushes.
  • HumanoidFlagrun requires the 3D humanoid to run toward a flag whose position changes randomly, teaching it to slow down and turn.
  • HumanoidFlagrunHarder adds more difficulty: episodes start with the robot upright or lying down, the robot may fall and must get back up, and white cubes are constantly thrown at it to knock it off course.
  • The resulting policies are less fast and natural-looking than the regular humanoid's walk, but they recover from many disturbances and steer well. Because the policy is a multilayer perceptron with no internal state, the authors suspect the agent sometimes uses its arms to store information.

Multiplayer Training

  • Roboschool supports running and training multiple agents in one environment, starting with a multiplayer Pong environment.
  • Setups include self-play (one agent playing both sides), two agents trained with the same algorithm, or two agents trained with different algorithms.
  • Training both players simultaneously with policy gradient methods caused oscillation: each agent learned a counter-strategy, then overfit to it, and neither improved after hours of training.
  • The authors note that adversarial learning is difficult, much like GANs, but it can produce sophisticated strategies in simple environments and a natural curriculum, making it a worthwhile research problem.

Related Work

  • Other community projects have built Gym environments on open-source physics simulators. One fork replaced MuJoCo with the DART simulator and showed that policies transfer between MuJoCo and DART.

Continue with another curated summary.