Skip to content

Class AIAC::LayerSlam

ClassList > AIAC > LayerSlam

Inherits the following classes: AIAC::Layer

Public Attributes

Type Name
tslam::TSlam Slam
bool ToEnhance = = false
bool ToProcess = = true
bool ToShowTag = = false

Public Functions

Type Name
const cv::Mat GetCamPoseCv ()
glm::mat4 GetCamPoseGlm ()
void GetCamPoseInObjCoord (cv::Mat & rotationMatrix, cv::Mat & tvec)
void GetCamPoseQuaternionAndTvec (cv::Vec4f & quaternion, cv::Vec3f & tvec)
glm::mat4 GetInvCamPoseGlm ()
const int GetNumLostFrame ()
AIAC::Image & GetProcessedFrame ()
void InitSlamMapGOs ()
const bool IsMapping () const
const bool IsTracked ()
LayerSlam () = default
virtual void OnAttach () override
Is called when the layer is attached to the application.
virtual void OnFrameStart () override
Is called when frame starts.
void StartMapping ()
void StopMapping ()
void UpdateMap (std::string path)
~LayerSlam () = default

Public Functions inherited from AIAC::Layer

See AIAC::Layer

Type Name
virtual void OnAttach ()
Is called when the layer is attached to the application.
virtual void OnDetach ()
Is called when the layer is detached from the application (~app).
virtual void OnFrameAwake ()
Is calle before GLFW poll events, GL frame and Imgui Frame.
virtual void OnFrameEnd ()
Is called when frame ends.
virtual void OnFrameFall ()
Is called when the GLFW, GL and Imgui frame is updated and rendered.
virtual void OnFrameStart ()
Is called when frame starts.
virtual ~Layer () = default

Public Attributes Documentation

variable Slam

tslam::TSlam AIAC::LayerSlam::Slam;

variable ToEnhance

bool AIAC::LayerSlam::ToEnhance;

variable ToProcess

bool AIAC::LayerSlam::ToProcess;

variable ToShowTag

bool AIAC::LayerSlam::ToShowTag;

Public Functions Documentation

function GetCamPoseCv

inline const cv::Mat AIAC::LayerSlam::GetCamPoseCv () 

function GetCamPoseGlm

glm::mat4 AIAC::LayerSlam::GetCamPoseGlm () 

function GetCamPoseInObjCoord

void AIAC::LayerSlam::GetCamPoseInObjCoord (
    cv::Mat & rotationMatrix,
    cv::Mat & tvec
) 

function GetCamPoseQuaternionAndTvec

void AIAC::LayerSlam::GetCamPoseQuaternionAndTvec (
    cv::Vec4f & quaternion,
    cv::Vec3f & tvec
) 

function GetInvCamPoseGlm

glm::mat4 AIAC::LayerSlam::GetInvCamPoseGlm () 

function GetNumLostFrame

inline const int AIAC::LayerSlam::GetNumLostFrame () 

function GetProcessedFrame

inline AIAC::Image & AIAC::LayerSlam::GetProcessedFrame () 

function InitSlamMapGOs

void AIAC::LayerSlam::InitSlamMapGOs () 

function IsMapping

inline const bool AIAC::LayerSlam::IsMapping () const

function IsTracked

inline const bool AIAC::LayerSlam::IsTracked () 

function LayerSlam

AIAC::LayerSlam::LayerSlam () = default

function OnAttach

Is called when the layer is attached to the application.

virtual void AIAC::LayerSlam::OnAttach () override

Implements AIAC::Layer::OnAttach


function OnFrameStart

Is called when frame starts.

virtual void AIAC::LayerSlam::OnFrameStart () override

Implements AIAC::Layer::OnFrameStart


function StartMapping

void AIAC::LayerSlam::StartMapping () 

function StopMapping

void AIAC::LayerSlam::StopMapping () 

function UpdateMap

void AIAC::LayerSlam::UpdateMap (
    std::string path
) 

function ~LayerSlam

AIAC::LayerSlam::~LayerSlam () = default


The documentation for this class was generated from the following file src/AIAC/LayerSlam.h