Skip to Content
Hands-On ROS for Robotics Programming
book

Hands-On ROS for Robotics Programming

by Bernardo Ronquillo Japón
February 2020
Intermediate to advanced
432 pages
10h 50m
English
Packt Publishing
Content preview from Hands-On ROS for Robotics Programming

Installing OpenAI Gym

As we did in the previous chapter, we are going to create a virtual environment for the Python setup of this chapter, which we will call gym. The following two commands allow for the creation and then the activation of gym:

$ conda create -n gym pip python=2.7$ conda activate gym

Following this, install the specific Python packages that we are going to need for the examples:

  • The Keras package (https://keras.io/), which is a high-level neural network API that it used within OpenAI Gym. Remember that it was also used in the previous chapter, but we need to install it again because this is a new gym environment. Keras will let us train an agent using the DQN (short for Deep Q-Network) algorithm, which is deep learning-b ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering ROS for Robotics Programming

Mastering ROS for Robotics Programming

Lentin Joseph
ROS Robotics By Example - Second Edition

ROS Robotics By Example - Second Edition

Lentin Joseph, Carol Fairchild, Dr. Thomas L. Harman

Publisher Resources

ISBN: 9781838551308Supplemental Content