Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #include <iostream>
00035 #include <stdint.h>
00036 #include <boost/interprocess/sync/interprocess_mutex.hpp>
00037
00038 #ifndef MRPT_RAWLOG_RECORD_H
00039 #define MRPT_RAWLOG_RECORD_H
00040
00041 #include <mrpt/version.h>
00042 #include <mrpt/obs/CRawlog.h>
00043 #include <mrpt/obs/CActionRobotMovement2D.h>
00044 #include <mrpt/obs/CObservationOdometry.h>
00045 #include <mrpt/obs/CObservation2DRangeScan.h>
00046 #include <mrpt/obs/CObservationBearingRange.h>
00047 #include <mrpt/obs/CObservationBeaconRanges.h>
00048
00049 using mrpt::obs::CActionRobotMovement2D;
00050 using mrpt::obs::CRawlog;
00051
00052 #include <mrpt/poses/CPose2D.h>
00053 #include <mrpt_bridge/mrpt_log_macros.h>
00054
00055 #include <mrpt_rawlog_record/rawlog_record_defaults.h>
00056
00057 class RawlogRecord
00058 {
00059 MRPT_VIRTUAL_LOG_MACROS;
00060
00061 public:
00062 struct Parameters
00063 {
00064 Parameters() = default;
00065
00066 bool debug{RAWLOG_RECORD_DEFAULT_DEBUG};
00067 std::string raw_log_folder{RAWLOG_RECORD_DEFAULT_RAW_FOLDER};
00068 std::string raw_log_name{RAWLOG_RECORD_DEFAULT_RAW_LOG_NAME};
00069 std::string raw_log_name_asf{RAWLOG_RECORD_DEFAULT_RAW_LOG_NAME_ASF};
00070 bool record_range_scan{true};
00071 bool record_bearing_range{false};
00072 bool record_beacon_range{false};
00073 double bearing_range_std_range{0.1};
00074 double bearing_range_std_yaw{0.01};
00075 double bearing_range_std_pitch{0.01};
00076 CActionRobotMovement2D::TMotionModelOptions motionModelOptions;
00077 };
00078 RawlogRecord() = default;
00079 ~RawlogRecord();
00080
00081 protected:
00082 Parameters base_param_;
00083
00084 CRawlog pRawLog;
00085 CRawlog pRawLogASF;
00086 void updateRawLogName(const mrpt::system::TTimeStamp& t);
00087 boost::interprocess::interprocess_mutex mutexRawLog;
00088 };
00089
00090 #endif // MRPT_RAWLOG_RECORD_H