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()
Metadata
Release files for gym-cartpole-swingup 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gym-cartpole-swingup-0.1.4.tar.gz | 18.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gym_cartpole_swingup-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 37.1 kB
Release files / gym-cartpole-swingup-0.1.4.tar.gz
| Download URL | gym-cartpole-swingup-0.1.4.tar.gz |
|---|---|
| Size | 18.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1bacd517ec68ec196c7c2875b93cd9a3990b50b1030af93e709b7f06f47304c0
|
|
BLAKE2b-256 checksum How to use checksums |
c043a2f2284c6eca0ac0c6769eb0ee18eb3deea5492b6379ac07686aabe15849
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.7 CPython/3.8.11 Linux/5.8.0-1036-azure
|
Release files / gym_cartpole_swingup-0.1.4-py3-none-any.whl
| Download URL | gym_cartpole_swingup-0.1.4-py3-none-any.whl |
|---|---|
| Size | 19.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
00e4ec990622159531121fb2ada95e33ebc85011f876734309d3d82219f10b69
|
|
BLAKE2b-256 checksum How to use checksums |
a19db9e8a07e30fa66c0debe55df59128052dc38cd756732d98f67a8a940df92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.7 CPython/3.8.11 Linux/5.8.0-1036-azure
|