Logging sensor data to files and playing it back. More...
Detailed Description
Logging sensor data to files and playing it back.
Two player drivers support data logging and playback: readlog and writelog. See the docs for those drivers for details on usage.
Player log files have a simple text format. Messages are new-line separated, and any line beginning with a '#' is ignored. Every message line starts with common meta-data:
The fields are:
- time (double): Timestamp, in seconds, associated with the message
- host (uint): The 'host' part of the device's Player address
- robot (uint): The 'robot' part of the device's Player address
- interface (string): The 'interf' part of the device's Player address (written as a string)
- index (string): The 'index' part of the device's Player address
- type (uint): The type of the message
- subtype (uint): The subtype of the message
Following this common meta-data is the message payload, the format of which will depend on the interface, type, and subtype. See the "Modules" section below for links to interface-specific message formats.
By convention, configuration response messages such as geometry information are put at the beginning of the logfile. The writelog driver will try to get geometry and log it at the beginning of the file, and the readlog driver will read in configuration response messages from the file until a data message is encountered.
Modules | |
Laser format | |
Laser log format. | |
Ranger format | |
Ranger log format. | |
Localize format | |
localize log format | |
Position2d format | |
position2d log format | |
PTZ format | |
PTZ log format. | |
Opaque format | |
opaque log format | |
Sonar format | |
sonar log format | |
WiFi format | |
wifi log format | |
WSN format | |
WSN log format. | |
CoopObject format | |
CoopObject log format. | |
IMU format | |
IMU log format. | |
Pointcloud3d format | |
PointCloud3D log format. | |
Actarray format | |
Actarray log format. | |
AIO format | |
AIO log format. | |
DIO format | |
DIO log format. | |
RFID format | |
RFID log format. | |
IR format | |
IR log format. | |
Bumper format | |
bumper log format | |
Blobfinder format | |
blobfinder log format | |
Camera format | |
camera data format | |
Fiducial format | |
fiducial log format | |
GPS format | |
gps log format | |
Joystick format | |
joystick log format | |
Position3d format | |
position3d format | |
Power format | |
power log format | |