#include <trackrobots.h>
Public Member Functions | |
TrackRobot () | |
constructor for no tracking at all | |
TrackRobot (bool trackPos, bool trackSpeed, bool trackOrientation, bool displayTrace, const char *scene="", int interval=1) | |
Constructor that allows individial setting of tracking options. | |
TrackRobot (const TrackRobot &rhs) | |
const TrackRobot & | operator= (const TrackRobot &rhs) |
~TrackRobot () | |
bool | isDisplayTrace () const |
returns whether tracing is activated | |
Protected Member Functions | |
bool | open (const AbstractRobot *robot) |
void | track (AbstractRobot *robot, double time) |
void | close () |
Protected Attributes | |
bool | trackPos |
bool | trackSpeed |
bool | trackOrientation |
bool | displayTrace |
int | interval |
FILE * | file |
char * | scene |
long | cnt |
Friends | |
class | Agent |
class | lpzrobots::OdeAgent |
The position, speed, and orientation can be logged.
TrackRobot | ( | ) | [inline] |
constructor for no tracking at all
TrackRobot | ( | bool | trackPos, | |
bool | trackSpeed, | |||
bool | trackOrientation, | |||
bool | displayTrace, | |||
const char * | scene = "" , |
|||
int | interval = 1 | |||
) | [inline] |
Constructor that allows individial setting of tracking options.
The tracked data is written into a file with the current date and time appended by a name given by scene.
trackPos | if true the trace (position vectors) of the robot are logged | |
trackSpeed | if true the speed vectors (linear and angular) of the robot are logged | |
trackOrientation | if true the orientation matrices of the robot are logged | |
displayTrace | if true the trace of the robot should be displayed (used in ODE simulations) | |
scene | name of the scene (is appended to log file name) | |
interval | timesteps between consequent logging events (default 1) |
TrackRobot | ( | const TrackRobot & | rhs | ) | [inline] |
~TrackRobot | ( | ) | [inline] |
void close | ( | ) | [protected] |
bool isDisplayTrace | ( | ) | const [inline] |
returns whether tracing is activated
bool open | ( | const AbstractRobot * | robot | ) | [protected] |
const TrackRobot& operator= | ( | const TrackRobot & | rhs | ) | [inline] |
void track | ( | AbstractRobot * | robot, | |
double | time | |||
) | [protected] |
friend class Agent [friend] |
friend class lpzrobots::OdeAgent [friend] |
long cnt [protected] |
bool displayTrace [protected] |
FILE* file [protected] |
int interval [protected] |
char* scene [protected] |
bool trackOrientation [protected] |
bool trackPos [protected] |
bool trackSpeed [protected] |