Skip to main content

A simple, continuous-control environment for OpenAI Gym

Project description

PyPI

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gym-cartpole-swingup-0.1.4.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

gym_cartpole_swingup-0.1.4-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file gym-cartpole-swingup-0.1.4.tar.gz.

File metadata

  • Download URL: gym-cartpole-swingup-0.1.4.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.8.11 Linux/5.8.0-1036-azure

File hashes

Hashes for gym-cartpole-swingup-0.1.4.tar.gz
Algorithm Hash digest
SHA256 1bacd517ec68ec196c7c2875b93cd9a3990b50b1030af93e709b7f06f47304c0
MD5 d5739fa76719c7047caa98a38f6260c6
BLAKE2b-256 c043a2f2284c6eca0ac0c6769eb0ee18eb3deea5492b6379ac07686aabe15849

See more details on using hashes here.

File details

Details for the file gym_cartpole_swingup-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for gym_cartpole_swingup-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 00e4ec990622159531121fb2ada95e33ebc85011f876734309d3d82219f10b69
MD5 349b0b514929f89ee48e19aa6fa98cb0
BLAKE2b-256 a19db9e8a07e30fa66c0debe55df59128052dc38cd756732d98f67a8a940df92

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page