rawlog_record.h
Go to the documentation of this file.
00001 /***********************************************************************************
00002  * Revised BSD License *
00003  * Copyright (c) 2014, Markus Bader <markus.bader@tuwien.ac.at> *
00004  * All rights reserved. *
00005  *                                                                                 *
00006  * Redistribution and use in source and binary forms, with or without *
00007  * modification, are permitted provided that the following conditions are met: *
00008  *     * Redistributions of source code must retain the above copyright *
00009  *       notice, this list of conditions and the following disclaimer. *
00010  *     * Redistributions in binary form must reproduce the above copyright *
00011  *       notice, this list of conditions and the following disclaimer in the *
00012  *       documentation and/or other materials provided with the distribution. *
00013  *     * Neither the name of the Vienna University of Technology nor the *
00014  *       names of its contributors may be used to endorse or promote products *
00015  *       derived from this software without specific prior written permission. *
00016  *                                                                                 *
00017  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00018  *AND *
00019  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00020  **
00021  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE *
00022  * DISCLAIMED. IN NO EVENT SHALL Markus Bader BE LIABLE FOR ANY *
00023  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES *
00024  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
00025  **
00026  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND *
00027  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT *
00028  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00029  **
00030  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
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::CRawlog;
00050 using mrpt::obs::CActionRobotMovement2D;
00051 
00052 #include <mrpt/poses/CPose2D.h>
00053 #include <mrpt_bridge/mrpt_log_macros.h>
00054 
00055 class RawlogRecord
00056 {
00057         MRPT_VIRTUAL_LOG_MACROS;
00058 
00059    public:
00060         struct Parameters
00061         {
00062                 Parameters();
00063                 bool debug;
00064                 std::string raw_log_folder;
00065                 std::string raw_log_name;
00066                 std::string raw_log_name_asf;
00067         bool record_range_scan;
00068         bool record_bearing_range;
00069         bool record_beacon_range;
00070         double bearing_range_std_range;
00071         double bearing_range_std_yaw;
00072         double bearing_range_std_pitch;
00073                 CActionRobotMovement2D::TMotionModelOptions motionModelOptions;
00074         };
00075         RawlogRecord(Parameters* parm);
00076         ~RawlogRecord();
00077 
00078    protected:
00079         Parameters* param_;
00080         CRawlog* pRawLog;
00081         CRawlog* pRawLogASF;
00082         void updateRawLogName(const mrpt::system::TTimeStamp& t);
00083         boost::interprocess::interprocess_mutex mutexRawLog;
00084 };
00085 
00086 #endif  // MRPT_RAWLOG_RECORD_H


mrpt_rawlog
Author(s):
autogenerated on Mon Sep 18 2017 03:12:13