mrpt_ekf_slam_3d.h
Go to the documentation of this file.
1 /*
2  * File:mrpt_ekf_slam_3d.h
3  * Author: Vladislav Tananaev
4  *
5  */
6 
7 #pragma once
8 
9 #include <mrpt/config/CConfigFile.h>
10 #include <mrpt/io/CFileGZInputStream.h>
11 #include <mrpt/io/CFileGZOutputStream.h>
12 #include <mrpt/system/os.h>
13 #include <mrpt/system/string_utils.h>
14 #include <mrpt/system/filesystem.h>
15 #include <mrpt/slam/CRangeBearingKFSLAM.h>
16 #include <mrpt/math/ops_containers.h>
17 #include <mrpt/opengl/CGridPlaneXY.h>
18 #include <mrpt/opengl/CSetOfLines.h>
19 #include <mrpt/opengl/COpenGLScene.h>
20 #include <mrpt/opengl/stock_objects.h>
21 #include <mrpt/gui/CDisplayWindow3D.h>
22 #include <mrpt/obs/CActionRobotMovement2D.h>
23 #include <mrpt/obs/CActionRobotMovement3D.h>
24 #include <mrpt/obs/CActionCollection.h>
25 #include <mrpt/obs/CObservationOdometry.h>
26 #include <mrpt/obs/CSensoryFrame.h>
27 #include <mrpt/maps/CMultiMetricMap.h>
28 #include <mrpt/obs/CObservationBearingRange.h>
29 #include <mrpt/obs/CRawlog.h>
30 
35 class EKFslam
36 {
37  public:
41  EKFslam();
45  virtual ~EKFslam();
49  void init3Dwindow();
53  void run3Dwindow();
57  void landmark_to_3d(
58  const mrpt::slam::CRangeBearingKFSLAM::KFArray_FEAT& lm,
59  mrpt::math::TPoint3D& p);
65  void read_iniFile(std::string ini_filename);
72  void observation(
73  mrpt::obs::CSensoryFrame::Ptr _sf,
74  mrpt::obs::CObservationOdometry::Ptr _odometry);
75 
76  protected:
77  mrpt::slam::CRangeBearingKFSLAM mapping;
78 
79  mrpt::system::TTimeStamp
81 
82  mrpt::obs::CActionCollection::Ptr action;
83  mrpt::obs::CSensoryFrame::Ptr sf;
84 
85  mrpt::poses::CPose3D
87  mrpt::obs::CActionRobotMovement3D::TMotionModelOptions
89 
90  mrpt::gui::CDisplayWindow3D::Ptr win3d;
93  std::vector<mrpt::math::TPose3D> meanPath;
94  mrpt::poses::CPose3DQuatPDFGaussian robotPose_;
95  std::vector<mrpt::math::TPoint3D> LMs_;
96  std::map<unsigned int, mrpt::maps::CLandmark::TLandmarkID> LM_IDs_;
98  mrpt::math::CMatrixDouble fullCov_;
99  mrpt::math::CVectorDouble fullState_;
100 };
mrpt::obs::CActionCollection::Ptr action
actions
mrpt::slam::CRangeBearingKFSLAM mapping
EKF slam 3d class.
bool SHOW_3D_LIVE
EKFslam()
constructor
std::vector< mrpt::math::TPoint3D > LMs_
void run3Dwindow()
run 3D window update from mrpt lib
mrpt::obs::CSensoryFrame::Ptr sf
observations
void init3Dwindow()
init 3D window from mrpt lib
mrpt::obs::CActionRobotMovement3D::TMotionModelOptions motion_model_options_
used with odom value motion noise
mrpt::math::CVectorDouble fullState_
full state vector
void observation(mrpt::obs::CSensoryFrame::Ptr _sf, mrpt::obs::CObservationOdometry::Ptr _odometry)
calculate the actions from odometry model for current observation
mrpt::poses::CPose3DQuatPDFGaussian robotPose_
current robot pose
bool CAMERA_3DSCENE_FOLLOWS_ROBOT
mrpt::system::TTimeStamp timeLastUpdate_
last update of the pose and map
virtual ~EKFslam()
destructor
void landmark_to_3d(const mrpt::slam::CRangeBearingKFSLAM::KFArray_FEAT &lm, mrpt::math::TPoint3D &p)
convert landmark to 3d point
mrpt::poses::CPose3D odomLastObservation_
last observation of odometry
The EKFslam class provides EKF SLAM 3d from MRPT libraries.
std::map< unsigned int, mrpt::maps::CLandmark::TLandmarkID > LM_IDs_
vector of the landmarks ID
mrpt::gui::CDisplayWindow3D::Ptr win3d
MRPT window.
void read_iniFile(std::string ini_filename)
read ini file
mrpt::math::CMatrixDouble fullCov_
full covariance matrix
std::vector< mrpt::math::TPose3D > meanPath


mrpt_ekf_slam_3d
Author(s): Jose Luis, Vladislav Tananaev
autogenerated on Fri Apr 14 2023 02:15:56