Main MRPT website > C++ reference for MRPT 1.9.9
carmen_log_tools.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 
10 #ifndef CARMEN_LOG_TOOLS_H
11 #define CARMEN_LOG_TOOLS_H
12 
13 #include <mrpt/system/datetime.h>
14 #include <mrpt/obs/CObservation.h>
15 
16 namespace mrpt
17 {
18 namespace obs
19 {
20 /** Parse one line from an text input stream and interpret it as a CARMEN log
21  *entry,
22  * returning its MRPT observation representation.
23  *
24  * The first word in each line determines the type of that entry. Supported
25  * line entries in this class are the following:
26  * - "ROBOTLASER(.*)": A joint odometry-laser entry. This function will
27  *return
28  *both an mrpt::obs::CObservationOdometry and an
29  *mrpt::obs::CObservation2DRangeScan
30  * - "FLASER": (Idem)
31  * - "RLASER": (Idem)
32  * - "PARAM": This case is special (read below).
33  *
34  * Note that the sensor position on the robot will be always deduced from the
35  *corresponding CARMEN log line automatically.
36  *
37  * The following entry types will be IGNORED, since with the tags above will
38  *be enough in most applications.
39  * - "ODOM"
40  * - "RAWLASER"
41  *
42  * About the PARAM entries: This functions has an internal static status
43  *consisting on some PARAM values
44  * which have effects on the future read observations. When the function finds
45  *one of these, it stores the
46  * parameter value, return an empty vector of observations, and use those
47  *values for future laser entries of types FLASER or RLASER.
48  * Currently, only these parameters are processed:
49  * - "robot_front_laser_max"
50  * - "laser_front_laser_resolution"
51  * - "robot_rear_laser_max"
52  * - "laser_rear_laser_resolution"
53  *
54  * \param time_start_log The real timestamp that corresponds to a "0" in the
55  *CARMEN log (you can get a mrpt::system::now() once and pass that same value
56  *with each call).
57  *
58  * References: http://carmen.sourceforge.net/doc/binary__loggerplayback.html
59  *
60  * \return true on success, false on end-of-file (EOF).
61  * \exception std::runtime_error On any invalid line found.
62  * \ingroup mrpt_obs_grp
63  */
65  std::istream& in_stream,
66  std::vector<mrpt::obs::CObservation::Ptr>& out_imported_observations,
67  const mrpt::system::TTimeStamp& time_start_log);
68 
69 } // end NS
70 } // end NS
71 #endif
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition: CKalmanFilterCapable.h:30
mrpt::system::TTimeStamp
uint64_t TTimeStamp
A system independent time type, it holds the the number of 100-nanosecond intervals since January 1,...
Definition: datetime.h:31
mrpt::obs::carmen_log_parse_line
bool carmen_log_parse_line(std::istream &in_stream, std::vector< mrpt::obs::CObservation::Ptr > &out_imported_observations, const mrpt::system::TTimeStamp &time_start_log)
Parse one line from an text input stream and interpret it as a CARMEN log entry, returning its MRPT o...
Definition: carmen_log_tools.cpp:27
CObservation.h
datetime.h



Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST