|
GCOP
1.0
|
#include <rccar.h>


Public Member Functions | |
| Rccar (int np=2) | |
| virtual double | Step (Vector4d &xb, double t, const Vector4d &xa, const Vector2d &u, double h, const VectorXd *p, Matrix4d *A=0, Matrix42d *B=0, Matrix4pd *C=0) |
| virtual void | StateAndControlsToFlat (VectorXd &y, const Vector4d &x, const Vector2d &u) |
| virtual void | FlatToStateAndControls (Vector4d &x, Vector2d &u, const std::vector< VectorXd > &y) |
Public Attributes | |
| double | l |
| distance between axles | |
| double | r |
| Gain on the car acc vs wheel torque. | |
| double | h |
| Internal step size. | |
A simple rear-drive Rccar model with 2nd order dynamics.
The state is
and controls are
correspond to forward acceleration a and steering angle phi
Author: Marin Kobilarov marin(at)jhu.edu
| Rccar::Rccar | ( | int | np = 2 | ) |
| void Rccar::FlatToStateAndControls | ( | Vector4d & | x, |
| Vector2d & | u, | ||
| const std::vector< VectorXd > & | y | ||
| ) | [virtual] |
References l, r, sgn, and gcop::System< T, _nx, _nu, _np >::x.
| void Rccar::StateAndControlsToFlat | ( | VectorXd & | y, |
| const Vector4d & | x, | ||
| const Vector2d & | u | ||
| ) | [virtual] |
| double Rccar::Step | ( | Vector4d & | xb, |
| double | t, | ||
| const Vector4d & | xa, | ||
| const Vector2d & | u, | ||
| double | h, | ||
| const VectorXd * | p, | ||
| Matrix4d * | A = 0, |
||
| Matrix42d * | B = 0, |
||
| Matrix4pd * | C = 0 |
||
| ) | [virtual] |
Reimplemented in gcop::Bulletrccar, gcop::Bulletrccar1, and gcop::Rccar1.
| double gcop::Rccar::h |
Internal step size.
Referenced by Step(), gcop::Bulletrccar::Step(), and gcop::Bulletrccar1::Step1().
| double gcop::Rccar::l |
distance between axles
Referenced by gcop::Bulletrccar::Bulletrccar(), gcop::Bulletrccar1::Bulletrccar1(), FlatToStateAndControls(), gcop::RccarView::Render(), gcop::Rccar1::Step(), and Step().
| double gcop::Rccar::r |
Gain on the car acc vs wheel torque.
Referenced by FlatToStateAndControls(), and Step().
1.7.6.1