Crate gym_rs[][src]

The gym-rs crate is a pure rust implementation of OpenAI’s Gym

Structs

CartPoleEnv

Description: A pole is attached by an un-actuated joint to a cart, which moves along a frictionless track. The pendulum starts upright, and the goal is to prevent it from falling over by increasing and reducing the cart’s velocity.

GifRender

Viewer is used for rendering the state of an environment

MountainCarEnv

Description: The agent (a car) is started at the bottom of a valley. For any given state, the agent may choose to accelerate to the left, right or cease any acceleration.

PendulumEnv

Description: The inverted pendulum swingup problem is a classic problem in the control literature. In this version of the problem, the pendulum starts in a random position, and the goal is to swing it up so it stays upright.

Enums

ActionType

Defines the type of action to take in the environment

Traits

GymEnv

The trait which defines the needed methods an environment needs to provide

Functions

scale

scales a value from one range to another range generic over all float type such as f32 or f64