Public Member Functions | |
State () | |
Construct a state instance. More... | |
State (const arma::colvec &data) | |
Construct a state instance from given data. More... | |
double | AngularVelocity1 () const |
Get value of Angular velocity (one). More... | |
double & | AngularVelocity1 () |
Modify the angular velocity (one). More... | |
double | AngularVelocity2 () const |
Get value of Angular velocity (two). More... | |
double & | AngularVelocity2 () |
Modify the angular velocity (two). More... | |
arma::colvec & | Data () |
Modify the state representation. More... | |
const arma::colvec & | Encode () const |
Encode the state to a column vector. More... | |
double | Theta1 () const |
Get value of theta (one). More... | |
double & | Theta1 () |
Modify value of theta (one). More... | |
double | Theta2 () const |
Get value of theta (two). More... | |
double & | Theta2 () |
Modify value of theta (two). More... | |
Static Public Attributes | |
static constexpr size_t | dimension = 4 |
Dimension of the encoded state. More... | |
Definition at line 35 of file acrobot.hpp.
|
inline |
Construct a state instance.
Definition at line 41 of file acrobot.hpp.
Referenced by Acrobot::InitialSample().
|
inline |
Construct a state instance from given data.
data | Data for the theta and angular velocity of two links. |
Definition at line 48 of file acrobot.hpp.
|
inline |
Get value of Angular velocity (one).
Definition at line 65 of file acrobot.hpp.
Referenced by Acrobot::Sample().
|
inline |
Modify the angular velocity (one).
Definition at line 67 of file acrobot.hpp.
|
inline |
Get value of Angular velocity (two).
Definition at line 70 of file acrobot.hpp.
Referenced by Acrobot::Sample().
|
inline |
Modify the angular velocity (two).
Definition at line 72 of file acrobot.hpp.
|
inline |
Modify the state representation.
Definition at line 52 of file acrobot.hpp.
|
inline |
Encode the state to a column vector.
Definition at line 75 of file acrobot.hpp.
|
inline |
Get value of theta (one).
Definition at line 55 of file acrobot.hpp.
Referenced by Acrobot::IsTerminal(), and Acrobot::Sample().
|
inline |
Modify value of theta (one).
Definition at line 57 of file acrobot.hpp.
|
inline |
Get value of theta (two).
Definition at line 60 of file acrobot.hpp.
Referenced by Acrobot::IsTerminal(), and Acrobot::Sample().
|
inline |
Modify value of theta (two).
Definition at line 62 of file acrobot.hpp.
|
static |
Dimension of the encoded state.
Definition at line 78 of file acrobot.hpp.