|
SaDVIO
|
A Frame class representing a set of sensors and landmarks at a specific timestamp. More...
#include <frame.h>


Public Member Functions | |
| Frame ()=default | |
| void | init (const std::vector< std::shared_ptr< ImageSensor >> &sensors, unsigned long long timestamp) |
| Initialization of a frame with images. More... | |
| void | init (std::shared_ptr< IMU > &imu, unsigned long long timestamp) |
| Initialization of a frame with IMU. More... | |
| void | init (const std::vector< std::shared_ptr< ASensor >> &sensors, unsigned long long timestamp) |
| Initialization of a frame with a set of Sensors. More... | |
| std::vector< std::shared_ptr< ImageSensor > > | getSensors () const |
| std::shared_ptr< IMU > | getIMU () const |
| void | setIMU (std::shared_ptr< IMU > &imu, Eigen::Affine3d T_s_f) |
| void | cleanSensors () |
| free all the pointers related to sensors More... | |
| void | setWorld2FrameTransform (Eigen::Affine3d T_f_w) |
| Set the pose of the world wrt the frame. More... | |
| Eigen::Affine3d | getWorld2FrameTransform () const |
| Get the pose of the world wrt to the frame. More... | |
| Eigen::Affine3d | getFrame2WorldTransform () const |
| Get the pose of the frame in the world frame. More... | |
| void | addLandmark (std::shared_ptr< ALandmark > ldmk) |
| void | addLandmarks (isae::typed_vec_landmarks ldmks) |
| typed_vec_landmarks | getLandmarks () const |
| uint | getInMapLandmarksNumber () const |
| uint | getLandmarksNumber () const |
| void | cleanLandmarks () |
| unsigned long long | getTimestamp () const |
| void | setKeyFrame () |
| void | unsetKeyFrame () |
| bool | isKeyFrame () const |
| Return true if the frame is a keyframe, false otherwise. More... | |
| bool | hasPrior () const |
| void | setPrior (Eigen::Affine3d T_prior, Vector6d inf_prior) |
| Eigen::Affine3d | getPrior () const |
| Vector6d | getInfPrior () const |
| void | setdTCov (Eigen::MatrixXd dT_cov) |
| Eigen::MatrixXd | getdTCov () const |
Public Attributes | |
| int | _id |
| Unique ID for the frame, assigned at initialization. More... | |
Static Public Attributes | |
| static int | _frame_count = 0 |
| Static counter for frame IDs. More... | |
A Frame class representing a set of sensors and landmarks at a specific timestamp.
A frame is the core component of a SLAM system. It gathers measurements for one or more sensors (e.g., cameras, IMUs) at a specific timestamp. It contains pointers to sensor objects as well as pointer to landmarks that serves for mapping and localization. A frame will be located in space with its pose and eventually, a covariance will be assoiated to it. If a frame is considered as a keyframe, it will be incorporated in a map.
|
default |
|
inline |
|
inline |
| void isae::Frame::cleanLandmarks | ( | ) |
|
inline |
free all the pointers related to sensors
|
inline |
|
inline |
Get the pose of the frame in the world frame.
|
inline |
|
inline |
| uint isae::Frame::getInMapLandmarksNumber | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get the pose of the world wrt to the frame.
|
inline |
| void isae::Frame::init | ( | const std::vector< std::shared_ptr< ASensor >> & | sensors, |
| unsigned long long | timestamp | ||
| ) |
Initialization of a frame with a set of Sensors.
| void isae::Frame::init | ( | const std::vector< std::shared_ptr< ImageSensor >> & | sensors, |
| unsigned long long | timestamp | ||
| ) |
Initialization of a frame with images.
| void isae::Frame::init | ( | std::shared_ptr< IMU > & | imu, |
| unsigned long long | timestamp | ||
| ) |
Initialization of a frame with IMU.
|
inline |
Return true if the frame is a keyframe, false otherwise.
|
inline |
| void isae::Frame::setIMU | ( | std::shared_ptr< IMU > & | imu, |
| Eigen::Affine3d | T_s_f | ||
| ) |
|
inline |
|
inline |
|
inline |
Set the pose of the world wrt the frame.
|
inline |
|
static |
Static counter for frame IDs.
| int isae::Frame::_id |
Unique ID for the frame, assigned at initialization.
1.8.17