bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
bitsim::dynamics::CartPoleParameters Struct Reference

The cart and the pole. The defaults are those of the classic cart-pole of Barto, Sutton and Anderson (1983), which Gymnasium's CartPole uses too. More...

#include <cart_pole_dynamics.h>

Public Attributes

real_t cart_mass {1.0}
 [kg]
real_t pole_mass {0.1}
 [kg]
real_t pole_half_length {0.5}
 from the pivot to the centre of the pole [m]
real_t gravity {9.8}
 [m/s^2]
real_t max_force {10.0}
 the largest push on the cart, either way [N]
real_t track_half_length {2.4}
 the cart must stay within this of the centre [m]

Detailed Description

The cart and the pole. The defaults are those of the classic cart-pole of Barto, Sutton and Anderson (1983), which Gymnasium's CartPole uses too.

Member Data Documentation

◆ cart_mass

real_t bitsim::dynamics::CartPoleParameters::cart_mass {1.0}

[kg]

◆ gravity

real_t bitsim::dynamics::CartPoleParameters::gravity {9.8}

[m/s^2]

◆ max_force

real_t bitsim::dynamics::CartPoleParameters::max_force {10.0}

the largest push on the cart, either way [N]

◆ pole_half_length

real_t bitsim::dynamics::CartPoleParameters::pole_half_length {0.5}

from the pivot to the centre of the pole [m]

◆ pole_mass

real_t bitsim::dynamics::CartPoleParameters::pole_mass {0.1}

[kg]

◆ track_half_length

real_t bitsim::dynamics::CartPoleParameters::track_half_length {2.4}

the cart must stay within this of the centre [m]


The documentation for this struct was generated from the following file: