GLIM
Loading...
Searching...
No Matches
Public Member Functions | List of all members
glim::AsyncSubMapping Class Reference

SubMapping executor to wrap and asynchronously run a sub mapping object. More...

#include <async_sub_mapping.hpp>

Public Member Functions

 AsyncSubMapping (const std::shared_ptr< glim::SubMappingBase > &sub_mapping)
 Construct a new Async Sub Mapping object.
 
 ~AsyncSubMapping ()
 Destroy the Async Sub Mapping object.
 
void insert_imu (const double stamp, const Eigen::Vector3d &linear_acc, const Eigen::Vector3d &angular_vel)
 Insert an IMU data.
 
void insert_frame (const EstimationFrame::ConstPtr &odom_frame)
 Insert an odometry estimation frame.
 
void join ()
 Wait for the sub mapping thread.
 
int workload () const
 Number of data in the input queue (for load control)
 
std::vector< SubMap::Ptr > get_results ()
 Get the created submaps.
 

Detailed Description

SubMapping executor to wrap and asynchronously run a sub mapping object.

Note
All the exposed public methods are thread-safe

Constructor & Destructor Documentation

◆ AsyncSubMapping()

glim::AsyncSubMapping::AsyncSubMapping ( const std::shared_ptr< glim::SubMappingBase > &  sub_mapping)

Construct a new Async Sub Mapping object.

Parameters
sub_mappingsub mapping object

Member Function Documentation

◆ get_results()

std::vector< SubMap::Ptr > glim::AsyncSubMapping::get_results ( )

Get the created submaps.

Returns
Created submaps

◆ insert_frame()

void glim::AsyncSubMapping::insert_frame ( const EstimationFrame::ConstPtr &  odom_frame)

Insert an odometry estimation frame.

Parameters
odom_frameMarginalized odometry estimation frame

◆ insert_imu()

void glim::AsyncSubMapping::insert_imu ( const double  stamp,
const Eigen::Vector3d &  linear_acc,
const Eigen::Vector3d &  angular_vel 
)

Insert an IMU data.

Parameters
stampTimestamp
linear_accLinear acceleration
angular_velAngular velocity

◆ workload()

int glim::AsyncSubMapping::workload ( ) const

Number of data in the input queue (for load control)

Returns
Input queue size

The documentation for this class was generated from the following file: