In the sample .alog file (named QuadTree_Alog.alog), we wish to extract range data from a laser called LMS_LASER_2D_LEFT.
- Run the executable uALogParser.exe without any input arguments to see the various configuration parameters that can be used.
- Range data is in the LMS_LASER_2D_LEFT message, and it is stored in a field Range. To extract the time, Range and Reflectance data, we issue the following command:
ualogparser.exe QuadTree_Alog.alog LMS_LASER_2D_LEFT –fields time,@Range,@Reflectance -o QuadTree_laser
- The resultant data will be stored in a file called QuadTree_laser.txt in the current directory.
- By default, the entire file is parsed. If this behaviour is not required/wanted, a time range (in seconds) can be specified. If only 20 seconds are required, the following command could be executed:
ualogparser.exe QuadTree_Alog.alog LMS_LASER_2D_LEFT –fields @Range,scanCount –time start 20(Note: A start AND end time must be specified.)(Note: The keywords ‘start’ and ‘end’ can be combined with numeric values, e.g. –time start end, or –time 60 end
(Note: If you wish to load data from this file into Matlab without making use of the built-in Mex functionality, the Matlab function importdata is very useful.