rawlog_play.h
Go to the documentation of this file.
1 /***********************************************************************************
2  * Revised BSD License *
3  * Copyright (c) 2014, Markus Bader <markus.bader@tuwien.ac.at> *
4  * All rights reserved. *
5  * *
6  * Redistribution and use in source and binary forms, with or without *
7  * modification, are permitted provided that the following conditions are met: *
8  * * Redistributions of source code must retain the above copyright *
9  * notice, this list of conditions and the following disclaimer. *
10  * * Redistributions in binary form must reproduce the above copyright *
11  * notice, this list of conditions and the following disclaimer in the *
12  * documentation and/or other materials provided with the distribution. *
13  * * Neither the name of the Vienna University of Technology nor the *
14  * names of its contributors may be used to endorse or promote products *
15  * derived from this software without specific prior written permission. *
16  * *
17  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18  *AND *
19  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20  **
21  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE *
22  * DISCLAIMED. IN NO EVENT SHALL Markus Bader BE LIABLE FOR ANY *
23  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES *
24  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25  **
26  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND *
27  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT *
28  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29  **
30  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  ** *
32  ***********************************************************************************/
33 
34 #pragma once
35 
36 #include <mrpt/io/CFileGZInputStream.h>
37 #include <mrpt/obs/CActionRobotMovement2D.h>
38 #include <mrpt/poses/CPose3DPDFGaussian.h>
39 
40 #include <boost/interprocess/sync/interprocess_mutex.hpp>
41 #include <cstdint>
42 #include <iostream>
43 
45 {
46  public:
47  struct Parameters
48  {
49  Parameters();
50  bool debug;
51  std::string rawlog_file;
52  mrpt::obs::CActionRobotMovement2D::TMotionModelOptions
54  };
55 
56  RawlogPlay(Parameters* parm);
57  ~RawlogPlay();
58 
59  protected:
61  mrpt::io::CFileGZInputStream rawlog_stream_;
62  mrpt::poses::CPose3DPDFGaussian robotPose;
63  size_t entry_ = 0;
64 };
RawlogPlay::Parameters::debug
bool debug
Definition: rawlog_play.h:112
RawlogPlay::robotPose
mrpt::poses::CPose3DPDFGaussian robotPose
Definition: rawlog_play.h:93
RawlogPlay::Parameters::rawlog_file
std::string rawlog_file
Definition: rawlog_play.h:113
RawlogPlay::Parameters::motionModelOptions
mrpt::obs::CActionRobotMovement2D::TMotionModelOptions motionModelOptions
Definition: rawlog_play.h:115
RawlogPlay::Parameters::Parameters
Parameters()
Definition: rawlog_play_parameters.cpp:37
RawlogPlay::RawlogPlay
RawlogPlay(Parameters *parm)
Definition: rawlog_play.cpp:38
RawlogPlay::~RawlogPlay
~RawlogPlay()
Definition: rawlog_play.cpp:37
RawlogPlay::param_
Parameters * param_
Definition: rawlog_play.h:91
RawlogPlay::Parameters
Definition: rawlog_play.h:78
RawlogPlay::rawlog_stream_
mrpt::io::CFileGZInputStream rawlog_stream_
Definition: rawlog_play.h:92
RawlogPlay::entry_
size_t entry_
Definition: rawlog_play.h:94
RawlogPlay
Definition: rawlog_play.h:44


mrpt_rawlog
Author(s):
autogenerated on Tue Sep 17 2024 02:10:22