Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Architecture

OGym separates the environment contract, typed spaces, and simulation backends. Native environments implement their transition equations directly. Rapier environments own a PhysicsWorld; feature-gated MuJoCo environments own an MjEnv loaded from embedded or custom XML.

Environment
├── EnvSpace<StateSpace, ActionSpace>
├── reset(seed) -> (state, info)
└── step(action) -> Experience
    ├── current and next state
    ├── reward and action
    ├── info
    └── Terminal

The crate also defines dynamic and const-generic batch interfaces. It does not currently ship a concrete VecEnv or native CartPoleVec implementation.