mrpt_localization.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/config/CConfigFile.h>
37 #include <mrpt/gui/CDisplayWindow3D.h>
38 #include <mrpt/opengl/COpenGLScene.h>
39 #include <mrpt/io/CFileGZInputStream.h>
41 #include <stdint.h>
42 
43 #include <iostream>
44 
46 {
47  public:
48  struct Parameters
49  {
51  bool debug;
52  bool gui_mrpt;
53  std::string ini_file;
54  std::string map_file;
55  std::string sensor_sources;
59  CActionRobotMovement2D::TMotionModelOptions* motion_model_options;
60  CActionRobotMovement2D::TMotionModelOptions*
62  };
64  virtual ~PFLocalization();
65 
66  protected:
68  void init();
69  void init3DDebug();
70  void show3DDebug(CSensoryFrame::Ptr _observations);
71  void configureFilter(const mrpt::config::CConfigFile& _configFile);
72  virtual bool waitForMap() { return false; }
73  mrpt::gui::CDisplayWindow3D::Ptr win3D_;
74  mrpt::opengl::COpenGLScene scene_;
75 
80 };
bool SHOW_PROGRESS_3D_REAL_TIME_
virtual ~PFLocalization()
mrpt::gui::CDisplayWindow3D::Ptr win3D_
mrpt::opengl::COpenGLScene scene_
int SHOW_PROGRESS_3D_REAL_TIME_DELAY_MS_
CActionRobotMovement2D::TMotionModelOptions * motion_model_options
virtual bool waitForMap()
CActionRobotMovement2D::TMotionModelOptions * motion_model_default_options
void show3DDebug(CSensoryFrame::Ptr _observations)
PFLocalization(Parameters *parm)
void configureFilter(const mrpt::config::CConfigFile &_configFile)
Parameters * param_


mrpt_localization
Author(s): Markus Bader, Raphael Zack
autogenerated on Thu Jun 1 2023 03:07:06