5#include <glim/mapping/sub_mapping.hpp>
6#include <glim/util/concurrent_vector.hpp>
34 void insert_image(
const double stamp,
const cv::Mat& image);
43 void insert_imu(
const double stamp,
const Eigen::Vector3d& linear_acc,
const Eigen::Vector3d& angular_vel);
73 std::atomic_bool kill_switch;
74 std::atomic_bool end_of_sequence;
85 std::shared_ptr<glim::SubMappingBase> sub_mapping;
SubMapping executor to wrap and asynchronously run a sub mapping object.
Definition async_sub_mapping.hpp:14
AsyncSubMapping(const std::shared_ptr< glim::SubMappingBase > &sub_mapping)
Construct a new Async Sub Mapping object.
void insert_frame(const EstimationFrame::ConstPtr &odom_frame)
Insert an odometry estimation frame.
void insert_imu(const double stamp, const Eigen::Vector3d &linear_acc, const Eigen::Vector3d &angular_vel)
Insert an IMU data.
int workload() const
Number of data in the input queue (for load control)
~AsyncSubMapping()
Destroy the Async Sub Mapping object.
void join()
Wait for the sub mapping thread.
std::vector< SubMap::Ptr > get_results()
Get the created submaps.
Simple thread-safe vector with mutex-lock.
Definition concurrent_vector.hpp:48