GCOP
1.0
|
#include <rccar1.h>
Public Member Functions | |
Rccar1 () | |
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) |
double | bind (const double &input, int index) |
Public Attributes | |
double | msteer |
double | csteer |
Transform for converting input into steering angle. | |
double | mdrive |
double | cdrive |
Transform for converting input into desired velocity. | |
double | ktorque |
Proportional constant for how much torque is applied for matching the current velocity with the desired velocity. |
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
Rccar1::Rccar1 | ( | ) |
double gcop::Rccar1::bind | ( | const double & | input, |
int | index | ||
) | [inline] |
Referenced by Step().
double Rccar1::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 from gcop::Rccar.
References bind(), cdrive, csteer, ktorque, gcop::Rccar::l, mdrive, and msteer.
double gcop::Rccar1::cdrive |
Transform for converting input into desired velocity.
Referenced by Step().
double gcop::Rccar1::csteer |
Transform for converting input into steering angle.
Referenced by Step().
double gcop::Rccar1::ktorque |
Proportional constant for how much torque is applied for matching the current velocity with the desired velocity.
Referenced by Step().
double gcop::Rccar1::mdrive |
Referenced by Step().
double gcop::Rccar1::msteer |
Referenced by Step().