24 #ifndef __TRACKROBOTS_H
25 #define __TRACKROBOTS_H
101 TrackRobot(
bool trackPos,
bool trackSpeed,
bool trackOrientation,
bool displayTrace,
102 const char* scene =
"",
int interval = 1)
bool autoFilename
whether to create a unique filename with date, scene and robotname
Definition: trackrobots.h:51
int id
Definition: trackrobots.h:52
std::string scene
used as part of the filename (used as is (+id), if autoFilename=false)
Definition: trackrobots.h:50
bool trackSpeed
Definition: trackrobots.h:42
double displayTraceThickness
if thickkness is 0 (default) then a line is used otherwise a cylinder
Definition: trackrobots.h:46
This class provides tracking possibilies of a robot.
Definition: trackrobots.h:60
int interval
every how many control steps a record is written
Definition: trackrobots.h:49
TrackRobot(TrackRobotConf conf=getDefaultConf())
constructor for no tracking at all
Definition: trackrobots.h:68
FILE * file
Definition: trackrobots.h:142
Abstract class (interface) for trackable objects (used for robots)
Definition: trackable.h:39
bool writeFile
whether to write a log file
Definition: trackrobots.h:48
bool enabledDuringVideo
Definition: trackrobots.h:135
~TrackRobot()
Definition: trackrobots.h:117
bool isEnabled()
Definition: trackrobots.h:129
static TrackRobotConf getDefaultConf()
Definition: trackrobots.h:75
Definition: trackrobots.h:40
The Agent contains a controller, a robot and a wiring, which connects robot and controller.
Definition: agent.h:52
bool isDisplayTrace() const
returns whether tracing is activated
Definition: trackrobots.h:122
bool open(const Trackable *robot)
Definition: trackrobots.cpp:32
Specialised agent for ode robots.
Definition: odeagent.h:62
void close()
Definition: trackrobots.cpp:108
double displayTraceDur
duration in second to display the trace
Definition: trackrobots.h:45
bool trackOrientation
Definition: trackrobots.h:43
bool trackPos
Definition: trackrobots.h:41
void track(const Trackable *robot, double time)
Definition: trackrobots.cpp:77
TrackRobotConf conf
Definition: trackrobots.h:133
TrackRobot(bool trackPos, bool trackSpeed, bool trackOrientation, bool displayTrace, const char *scene="", int interval=1)
Constructor that allows individial setting of tracking options.
Definition: trackrobots.h:101
Definition: odeagent.h:37
bool isTrackingSomething() const
returns whether something is to be tracked
Definition: trackrobots.h:125
Abstract class (interface) for robot in general.
Definition: abstractrobot.h:41
long cnt
Definition: trackrobots.h:143
bool displayTrace
Definition: trackrobots.h:44