GCOP
1.0
|
#include <unicycleview.h>
Public Member Functions | |
UnicycleView (const Unicycle &sys, vector< Vector5d > *xs=0, vector< Vector2d > *us=0) | |
virtual | ~UnicycleView () |
void | Render (const Vector5d *x=0, const Vector2d *u=0) |
void | Render (const vector< Vector5d > *xs, const vector< Vector2d > *us=0, bool rs=true, int is=-1, int ie=-1, int dis=1, int dit=1, bool dl=false) |
Public Attributes | |
const Unicycle & | sys |
GLUquadricObj * | qobj |
UnicycleView::UnicycleView | ( | const Unicycle & | sys, |
vector< Vector5d > * | xs = 0 , |
||
vector< Vector2d > * | us = 0 |
||
) |
Create a particle view of trajectory traj
sys | particle |
xs | trajectory |
References gcop::SystemView< Vector5d, Vector2d >::lineWidth, qobj, and gcop::SystemView< Vector5d, Vector2d >::rgba.
UnicycleView::~UnicycleView | ( | ) | [virtual] |
References qobj.
void UnicycleView::Render | ( | const Vector5d * | x = 0 , |
const Vector2d * | u = 0 |
||
) | [virtual] |
Implements gcop::SystemView< Vector5d, Vector2d >.
References gcop::Unicycle::dx, qobj, and sys.
void UnicycleView::Render | ( | const vector< Vector5d > * | xs, |
const vector< Vector2d > * | us = 0 , |
||
bool | rs = true , |
||
int | is = -1 , |
||
int | ie = -1 , |
||
int | dis = 1 , |
||
int | dit = 1 , |
||
bool | dl = false |
||
) | [virtual] |
Render a trajectory
traj | trajectory |
rs | render state |
is | start index |
ie | end index |
dis | index step for rendering bodies along trajectory |
dit | index step for rendering states(points) along trajectory |
dl | always draw last state |
Implements gcop::SystemView< Vector5d, Vector2d >.
References gcop::SystemView< Vector5d, Vector2d >::dis, gcop::SystemView< Vector5d, Vector2d >::dit, gcop::SystemView< Vector5d, Vector2d >::lineWidth, gcop::SystemView< Vector5d, Vector2d >::Render(), gcop::SystemView< Vector5d, Vector2d >::rgba, and gcop::SystemView< Vector5d, Vector2d >::SetColor().
GLUquadricObj* gcop::UnicycleView::qobj |
Referenced by Render(), UnicycleView(), and ~UnicycleView().
const Unicycle& gcop::UnicycleView::sys |
Referenced by Render().