bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
cart_pole_lqr_mpc::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

◆ gravity

◆ max_force

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

◆ pole_half_length

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

◆ pole_mass

◆ track_half_length

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


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