GCOP  1.0
Public Member Functions | Public Attributes
gcop::Rccar Class Reference

#include <rccar.h>

Inheritance diagram for gcop::Rccar:
Inheritance graph
[legend]
Collaboration diagram for gcop::Rccar:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

A simple rear-drive Rccar model with 2nd order dynamics.

The state is $ \bm x = (x,y,\theta, v) \in\mathbb{R}^4$ and controls are $ \bm u = (a, tan(phi) ) \in\mathbb{R}^5$ correspond to forward acceleration a and steering angle phi

Author: Marin Kobilarov marin(at)jhu.edu


Constructor & Destructor Documentation

Rccar::Rccar ( int  np = 2)

Member Function Documentation

void Rccar::FlatToStateAndControls ( Vector4d &  x,
Vector2d &  u,
const std::vector< VectorXd > &  y 
) [virtual]
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.

References h, l, and r.


Member Data Documentation

Internal step size.

Referenced by Step(), gcop::Bulletrccar::Step(), and gcop::Bulletrccar1::Step1().

Gain on the car acc vs wheel torque.

Referenced by FlatToStateAndControls(), and Step().


The documentation for this class was generated from the following files: