NAME
rawlog-edit - Command-line robotic datasets (rawlogs) manipulation tool
SYNOPSIS
rawlog-edit [--undistort] [--rename-externals] [--stereo-rectify<SENSOR_LABEL,0.5>] [--camera-params <SENSOR_LABEL,file.ini>] [--sensors-pose <file.ini>][--generate-3d-pointclouds] [--cut] [--export-2d-scans-txt][--export-txt] [--export-rawdaq-txt] [--recalc-odometry][--export-anemometer-txt] [--export-enose-txt][--export-odometry-txt] [--export-imu-txt][--export-gps-all] [--export-gps-txt][--export-gps-gas-kml] [--export-gps-kml] [--keep-label<label[,label...]>] [--remove-label <label[,label...]>][--list-range-bearing] [--remap-timestamps <a;b>][--list-timestamps] [--list-poses] [--list-images] [--info][--de-externalize] [--externalize] [-q] [-w] [--odo-D <D>][--odo-KR <KR>] [--odo-KL <KL>] [--to-time <T1>][--from-time <T0>] [--to-index <N1>] [--from-index <N0>][--text-file-output <out.txt>] [--rectify-centers-coincide][--image-size <COLSxROWS>] [--txt-externals][--image-format <jpg,png,pgm,...>] [--out-dir <.>] [-p<mylib.so>] [-o <dataset_out.rawlog>] -i <dataset.rawlog>[--] [--version] [-h]
USAGE EXAMPLES
Quick overview of a dataset file:
rawlog-edit --info -i in.rawlog
Cut the entries [1000,2000] into another rawlog file:
rawlog-edit --cut --from-index 1000 --to-index 2000 \
-i in.rawlog -o out.rawlog
Cut the entries from the beginning up to timestamp 1281619819:
rawlog-edit --cut --to-time 1281619819 \
-i in.rawlog -o out.rawlog
Export all suitable observations to TXT/CSV files:
rawlog-edit --export-txt -i in.rawlog
Generate a Google Earth KML file with the GPS data in a dataset:
rawlog-edit --export-gps-kml -i in.rawlog
Remove all observations named "REAR_LASER":
rawlog-edit --remove-label REAR_LASER -i in.rawlog -o out.rawlog
Remove all observations not named "REAR_LASER":
rawlog-edit --keep-label REAR_LASER -i in.rawlog -o out.rawlog
Convert all images to external storage mode:
rawlog-edit --externalize -i in.rawlog -o out.rawlog
rawlog-edit --externalize --image-format jpg -i in.rawlog \
-o out.rawlog
DESCRIPTION
rawlog-edit is a command-line application to inspect and manipulate robotic dataset files in the "rawlog" standardized format.
These are the supported arguments and operations:
--undistortOp: Undistort all images in the rawlog.--rename-externalsOp: Renames all the external storage file names within the rawlog (itdoesn't change the external files, which may even not exist).--stereo-rectify <SENSOR_LABEL,0.5>Op: creates a new set of external images for allCObservationStereoImages with the given SENSOR_LABEL, using the cameraparameters stored in the observations (which must be a validcalibration) and with the given alpha value. Alpha can be -1 for auto,or otherwise be in the range [0,1] (see OpenCV's docs forcvStereoRectify).Requires: -o (or --output)Optional: --image-format to set image format (default=jpg),--image-size to resize output images (example: --image-size 640x480)--camera-params <SENSOR_LABEL,file.ini>Op: change the camera parameters of all CObservationImage's with thegiven SENSOR_LABEL, with new params loaded from the given file,section '[CAMERA_PARAMS]' for monocular cameras, or'[CAMERA_PARAMS_LEFT]' and '[CAMERA_PARAMS_RIGHT]' forstereo.Requires: -o (or --output)--sensors-pose <file.ini>Op: batch change the poses of sensors from a rawlog-grabber-likeconfiguration file that specifies the pose of sensors by theirsensorLabel names.Requires: -o (or --output)--generate-3d-pointcloudsOp: (re)generate the 3D pointclouds within CObservation3DRangeScanobjects that have range data.Requires: -o (or --output)--cutOp: Cut a part of the input rawlog.Requires: -o (or --output)Requires: At least one of --from-index, --from-time, --to-index,--to-time. Use only one of the --from-* and --to-* at once.If only a --from-* is given, the rawlog will be saved up to its end.If only a --to-* is given, the rawlog will be saved from itsbeginning.--export-2d-scans-txtOp: Export 2D scans to TXT files.Generates two .txt files for each different sensor label of 2D scanobservations, one with the timestamps and the other with rangedata.The generated .txt files will be saved in the same path than the inputrawlog, with the same filename + each sensorLabel.--export-txtOp: Generic export observations to TXT/CSV files.Generates one .txt file for each different sensor label of allobservation classes that supports the export-to-txt API.The generated .txt files will be saved in the same path than the inputrawlog, as `<rawlog_filename>_<sensorLabel>.txt`.--export-rawdaq-txtOp: Export raw DAQ readings to TXT files.Generates one .txt file for each different sensor label + DAQ task.The generated .txt files will be saved in the same path than the inputrawlog.--recalc-odometryOp: Recomputes odometry increments from new encoder-to-odometryconstants.Requires: -o (or --output)Requires: --odo-KL, --odo-KR and --odo-D.--export-anemometer-txtOp: Export anemometer readigns to TXT files.Generates one .txt file for each different sensor label of ananemometer observation in the dataset. The generated .txt files willbe saved in the same path than the input rawlog, with the samefilename + each sensorLabel.--export-enose-txtOp: Export e-nose readigns to TXT files.Generates one .txt file for each different sensor label of an e-noseobservation in the dataset. The generated .txt files will be saved inthe same path than the input rawlog, with the same filename + eachsensorLabel.--export-odometry-txtOp: Export absolute odometry readings to TXT files.Generates one .txt file for each different sensor label of an odometryobservation in the dataset. The generated .txt files will be saved inthe same path than the input rawlog, with the same filename + eachsensorLabel.--export-imu-txtOp: Export IMU readings to TXT files.Generates one .txt file for each different sensor label of an IMUobservation in the dataset. The generated .txt files will be saved inthe same path than the input rawlog, with the same filename + eachsensorLabel.--export-gps-allOp: Generic export all kinds of GPS/GNSS messages to separate TXTfiles.Generates one .txt file for each different sensor label and for eachmessage type in the dataset, with a first header line describing eachfield.--export-gps-txtOp: Export GPS GPGGA messages to TXT files.Generates one .txt file for each different sensor label of GPSobservations in the dataset. The generated .txt files will be saved inthe same path than the input rawlog, with the same filename + eachsensorLabel.--export-gps-gas-kmlOp: Export GPS paths to Google Earth KML files coloured by the gasconcentration.Generates one .kml file with different sections for each differentsensor label of GPS observations in the dataset. The generated .kmlfiles will be saved in the same path than the input rawlog, with thesame filename + each sensorLabel.--export-gps-kmlOp: Export GPS paths to Google Earth KML files.Generates one .kml file with different sections for each differentsensor label of GPS observations in the dataset. The generated .kmlfiles will be saved in the same path than the input rawlog, with thesame filename + each sensorLabel.--keep-label <label[,label...]>Op: Remove all observations not matching the given sensorlabel(s).Several labels can be provided separated by commas.Requires: -o (or --output)--remove-label <label[,label...]>Op: Remove all observation matching the given sensor label(s).Severallabels can be provided separated by commas.Requires: -o (or --output)--list-range-bearingOp: dump a list of all landmark observations of typerange-bearing.Optionally the output text file can be changed with--text-file-output.--remap-timestamps <a;b>Op: Change all timestamps t replacing it with the linear map'a*t+b'.The parameters 'a' and 'b' must be given separated with asemicolon.Requires: -o (or --output)--list-timestampsOp: generates a list with all the observations' timestamp, sensorlabel and C++ class name.Optionally the output text file can be changed with--text-file-output.--list-posesOp: dump a list of all the poses of the observations in thedataset.Optionally the output text file can be changed with--text-file-output.--list-imagesOp: dump a list of all external image files in the dataset.Optionally the output text file can be changed with--text-file-output.--infoOp: parse input file and dump information and statistics.--de-externalizeOp: the opposite that --externalize: generates a monolitic rawlog filewith all external files integrated in one.Requires: -o (or --output)--externalizeOp: convert to external storage.Requires: -o (or --output)Optional: --image-format, --txt-externals-q, --quietTerse output-w, --overwriteForce overwrite target file without prompting.--odo-D <D>Distance between left-right wheels (meters), used in--recalc-odometry.--odo-KR <KR>Constant from encoder ticks to meters (right wheel), used in--recalc-odometry.--odo-KL <KL>Constant from encoder ticks to meters (left wheel), used in--recalc-odometry.--to-time <T1>End time for --cut, as UNIX timestamp, optionally with fractions ofseconds.--from-time <T0>Starting time for --cut, as UNIX timestamp, optionally with fractionsof seconds.--to-index <N1>End index for --cut--from-index <N0>Starting index for --cut--text-file-output <out.txt>Output for a text file--rectify-centers-coincideIn stereo rectification, force that both image centers after coincideafter rectifying.--image-size <COLSxROWS>Resize output images--txt-externalsWhen externalizing CObservation3DRangeScan objects, switched frombinary files (default) to plain text.--image-format <jpg,png,pgm,...>External image format--out-dir <.>Output directory (used by some commands only)-p <mylib.so>, --plugins <mylib.so>Single or comma-separated list of .so/.dll plugins to load foradditional user-supplied classes-o <dataset_out.rawlog>, --output <dataset_out.rawlog>Output dataset (*.rawlog)-i <dataset.rawlog>, --input <dataset.rawlog>(required) Input dataset (required) (*.rawlog)--, --ignore_restIgnores the rest of the labeled arguments following this flag.--versionDisplays version information and exits.-h, --helpDisplays usage information and exits.
--
BUGS
Please report bugs at https://github.com/MRPT/mrpt/issues
SEE ALSO
The GUI program RawLogViewer, and the application wiki pages at https://www.mrpt.org/
AUTHORS
rawlog-edit is part of the Mobile Robot Programming Toolkit (MRPT), and was originally written by the MAPIR laboratory (University of Malaga).
This manual page was written by Jose Luis Blanco <[email protected]>.
COPYRIGHT
This program is free software; you can redistribute it and/or modify it under the terms of the BSD License.
On Debian GNU/Linux systems, the complete text of the BSD License can be found in `/usr/share/common-licenses/BSD'.