A simple, continuous-control environment for OpenAI Gym
Project description
gym-cartpole-swingup
A simple, continuous-control environment for OpenAI Gym
Installation
pip install gym-cartpole-swingup
Usage example
# coding: utf-8
import gym
import gym_cartpole_swingup
# Could be one of:
# CartPoleSwingUp-v0, CartPoleSwingUp-v1
# If you have PyTorch installed:
# TorchCartPoleSwingUp-v0, TorchCartPoleSwingUp-v1
env = gym.make("CartPoleSwingUp-v0")
done = False
while not done:
action = env.action_space.sample()
obs, rew, done, info = env.step(action)
env.render()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for gym_cartpole_swingup-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb419fa2b2fe9a270bee72d0921f8bdda796193dc84644619f9e4c57f0cc8b5e |
|
MD5 | 8f13004b29944016e03a3d8cea68975d |
|
BLAKE2b-256 | 31aeabfbefb127efe024a11af86b75575ec17c4d126414c10e66dd22168bf971 |