https://github.com/jslee02/dartenv
OpenAI Gym with DART support
https://github.com/jslee02/dartenv
dart gym openai reinforcement-learning
Last synced: about 2 months ago
JSON representation
OpenAI Gym with DART support
- Host: GitHub
- URL: https://github.com/jslee02/dartenv
- Owner: jslee02
- License: mit
- Created: 2017-02-22T20:19:40.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-22T15:39:21.000Z (over 9 years ago)
- Last Synced: 2025-03-25T15:55:17.571Z (about 1 year ago)
- Topics: dart, gym, openai, reinforcement-learning
- Language: Python
- Homepage:
- Size: 294 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.rst
Awesome Lists containing this project
README
# DartEnv
Openai Gym with Dart support
###About
**DartEnv** provides 3D multi-body simulation environments based on the **openai gym** environment. The physics simulation is carried out by Dart and PyDart2, which is a python binding for Dart.
###Requirements
You need to install these packages first:
###Install
To facilitate installation, we have uploaded the entire project base including the original openai gym code. To install, simply do
git clone https://github.com/VincentYu68/DartEnv.git
cd DartEnv
pip install -e .
Please find the detailed installation instruction of using Rllab to learn DartEnv in the wiki page.
###Example
After installation, you can run DartEnv using the same API as openai gym. One example of running the dart version of the Hopper model is shown below:
import gym
env = gym.make('DartHopper-v1')
observation = env.reset()
for i in range(100):
observation, reward, done, envinfo = env.step(env.action_space.sample())
env.render()