TrackRobot Class Reference
This class provides tracking possibilies of a robot.
More...
#include <trackrobots.h>
List of all members.
Detailed Description
This class provides tracking possibilies of a robot.
The position, speed, and orientation can be logged. This is used by the agent class,
- See also:
- Agent::setTrackOptions()
Constructor & Destructor Documentation
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.
- Parameters:
-
| 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) |
Member Function Documentation
void close |
( |
|
) |
[protected] |
bool isDisplayTrace |
( |
|
) |
const [inline] |
returns whether tracing is activated
bool isTrackingSomething |
( |
|
) |
const [inline] |
returns whether something is to be tracked
bool open |
( |
const Trackable * |
robot |
) |
[protected] |
void track |
( |
const Trackable * |
robot, |
|
|
double |
time | |
|
) |
| | [protected] |
Friends And Related Function Documentation
friend class Agent [friend] |
Member Data Documentation
The documentation for this class was generated from the following files: