DynamicInitializer.h
Go to the documentation of this file.
1 /*
2  * OpenVINS: An Open Platform for Visual-Inertial Research
3  * Copyright (C) 2018-2023 Patrick Geneva
4  * Copyright (C) 2018-2023 Guoquan Huang
5  * Copyright (C) 2018-2023 OpenVINS Contributors
6  * Copyright (C) 2018-2019 Kevin Eckenhoff
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <https://www.gnu.org/licenses/>.
20  */
21 
22 #ifndef OV_INIT_DYNAMICINITIALIZER_H
23 #define OV_INIT_DYNAMICINITIALIZER_H
24 
26 
27 namespace ov_core {
28 class FeatureDatabase;
29 struct ImuData;
30 } // namespace ov_core
31 namespace ov_type {
32 class Type;
33 class IMU;
34 class PoseJPL;
35 class Landmark;
36 class Vec;
37 } // namespace ov_type
38 
39 namespace ov_init {
40 
63 public:
70  explicit DynamicInitializer(const InertialInitializerOptions &params_, std::shared_ptr<ov_core::FeatureDatabase> db,
71  std::shared_ptr<std::vector<ov_core::ImuData>> imu_data_)
72  : params(params_), _db(db), imu_data(imu_data_) {}
73 
85  bool initialize(double &timestamp, Eigen::MatrixXd &covariance, std::vector<std::shared_ptr<ov_type::Type>> &order,
86  std::shared_ptr<ov_type::IMU> &_imu, std::map<double, std::shared_ptr<ov_type::PoseJPL>> &_clones_IMU,
87  std::unordered_map<size_t, std::shared_ptr<ov_type::Landmark>> &_features_SLAM);
88 
89 private:
92 
94  std::shared_ptr<ov_core::FeatureDatabase> _db;
95 
97  std::shared_ptr<std::vector<ov_core::ImuData>> imu_data;
98 };
99 
100 } // namespace ov_init
101 
102 #endif // OV_INIT_DYNAMICINITIALIZER_H
ov_init::InertialInitializerOptions
Struct which stores all options needed for state estimation.
Definition: InertialInitializerOptions.h:49
ov_init::DynamicInitializer::imu_data
std::shared_ptr< std::vector< ov_core::ImuData > > imu_data
Our history of IMU messages (time, angular, linear)
Definition: DynamicInitializer.h:97
ov_init::DynamicInitializer::DynamicInitializer
DynamicInitializer(const InertialInitializerOptions &params_, std::shared_ptr< ov_core::FeatureDatabase > db, std::shared_ptr< std::vector< ov_core::ImuData >> imu_data_)
Default constructor.
Definition: DynamicInitializer.h:70
ov_init::DynamicInitializer
Initializer for a dynamic visual-inertial system.
Definition: DynamicInitializer.h:62
ov_init::DynamicInitializer::params
InertialInitializerOptions params
Initialization parameters.
Definition: DynamicInitializer.h:91
ov_init::DynamicInitializer::_db
std::shared_ptr< ov_core::FeatureDatabase > _db
Feature tracker database with all features in it.
Definition: DynamicInitializer.h:94
ov_init
State initialization code.
Definition: Factor_GenericPrior.h:27
ov_init::DynamicInitializer::initialize
bool initialize(double &timestamp, Eigen::MatrixXd &covariance, std::vector< std::shared_ptr< ov_type::Type >> &order, std::shared_ptr< ov_type::IMU > &_imu, std::map< double, std::shared_ptr< ov_type::PoseJPL >> &_clones_IMU, std::unordered_map< size_t, std::shared_ptr< ov_type::Landmark >> &_features_SLAM)
Try to get the initialized system.
Definition: DynamicInitializer.cpp:44
ov_type
InertialInitializerOptions.h
ov_core


ov_init
Author(s): Patrick Geneva , Kevin Eckenhoff , Guoquan Huang
autogenerated on Mon Dec 16 2024 03:06:51