Skip to content

Latest commit

 

History

History
 
 

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Examples

This folder contains some example scripts for running SenseAct in various environments.

Basic

Run basic/sim_double_pendulum.py to start a simple random agent on the simulated Double Inverted Pendulum Environment for 1000 episodes. In addition to the standard SenseAct requirements, this environment also requires mujoco 1.50. You should see a mujoco_py window pop up showing a 3D rendering of the pendulum when you run the example.

Advanced

We also provided examples that use the OpenAI Baselines implementation of Trust Region Policy Optimization (TRPO) and Proximal Policy Optimization (PPO) for actual learning. To run these examples, first install the Baselines prerequisites shown on OpenAI Baselines README, then install Baselines version 0.1.5 by running:

pip install baselines==0.1.5

Each examples also require its corresponding hardware, with the exception of advanced/sim_double_pendulum.py, which requires mujoco 1.50.

Example list

Below is a list of examples provided with a learning agent. Each is marked in terms of difficulty of hardware and physical environment setup.