-
Notifications
You must be signed in to change notification settings - Fork 12
/
mapper.hpp
44 lines (33 loc) · 1 KB
/
mapper.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef SLAM_MAPPER_HPP
#define SLAM_MAPPER_HPP
#include <memory>
#include <vector>
#include <Eigen/Dense>
#include "../api/slam.hpp"
#include "slam_implementation.hpp"
#include "keyframe.hpp"
#include "map_point.hpp"
#include "id.hpp"
namespace odometry { struct Parameters; }
namespace slam {
class Keyframe;
class ViewerDataPublisher;
class Mapper {
public:
static std::unique_ptr<Mapper>
create(const odometry::Parameters ¶meters);
virtual ~Mapper() = default;
/**
* @param mapperInput Data for constructing input keyframe
* @param resultPose output: The SLAM-corrected pose
* @param pointCloud output: The currently visible map points
*/
virtual void advance(
std::shared_ptr<const MapperInput> mapperInput,
Eigen::Matrix4d &resultPose,
Slam::Result::PointCloud &pointCloud) = 0;
virtual void connectDebugAPI(DebugAPI &debug) = 0;
virtual bool end(const std::string &mapSavePath) = 0;
};
} // namespace slam
#endif //SLAM_MAPPER_HPP