载入中...
搜索中...
未找到
app.h
浏览该文件的文档.
1
11#pragma once
12
13#include "backend.h"
14#include "camera.h"
15#include "common_include.h"
16#include "config.h"
17#include "dataset.h"
18#include "frontend.h"
19#include "map.h"
20#include "viewer.h"
21
23
29public:
30 typedef std::shared_ptr<Application> Ptr;
31
32 Application(const Application &other) = delete;
33 Application &operator=(const Application &other) = delete;
34
35 static Ptr getInstance() {
36 static Ptr app(new Application);
37 return app;
38 }
43 void run();
44
45private:
51
58};
59
编写后端优化类Backend
定义Camera相机类
初始化和启动前端,后端和展示线程
Definition app.h:28
Camera::Ptr m_camera
相机
Definition app.h:57
Frontend::Ptr m_frontend
前端
Definition app.h:52
Application(const Application &other)=delete
void run()
启动三个线程
Definition app.cc:35
Dataset::Ptr m_dataset
数据集
Definition app.h:56
Map::Ptr m_map
地图
Definition app.h:55
static Ptr getInstance()
Definition app.h:35
Application & operator=(const Application &other)=delete
std::shared_ptr< Application > Ptr
Definition app.h:30
Application()
初始化三个线程
Definition app.cc:8
Backend::Ptr m_backend
后端
Definition app.h:53
Viewer::Ptr m_viewer
展示
Definition app.h:54
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef std::shared_ptr< Backend > Ptr
Definition backend.h:29
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef std::shared_ptr< Camera > Ptr
Definition camera.h:27
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef std::shared_ptr< Dataset > Ptr
Definition dataset.h:29
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef std::shared_ptr< Frontend > Ptr
Definition frontend.h:40
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef std::shared_ptr< Map > Ptr
Definition map.h:125
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef std::shared_ptr< Viewer > Ptr
Definition viewer.h:29
引入所有所需头文件,定义所有所需超参数
#define NAMESPACE_END
Definition common_include.h:41
#define NAMESPACE_BEGIN
Definition common_include.h:40
编写slam系统的超参数信息类
定义Dataset数据集类
定义Frontend前端类
定义slam系统的数据结构包括Feature、Frame、MapPoint、Map
展示Frontend的m_currFrame和Map的m_activeFrames和activePoints