| 61 | LandmarkMap; |
| 62 | |
| 63 | class GlobalMap { |
| 64 | private: |
| 65 | // Map of all points. |
| 66 | |
| 67 | LandmarkMap map_points_; |
| 68 | uint64_t last_loop_closure_optimization_time_; |
| 69 | |
| 70 | public: |
| 71 | EIGEN_MAKE_ALIGNED_OPERATOR_NEW |
| 72 | |
| 73 | GlobalMap(); |
| 74 | virtual ~GlobalMap() = default; |
| 75 | |
| 76 | void addLandmark(const Eigen::Vector3d& global_pos, |
| 77 | uint64_t landmark_id, |
| 78 | double quality, |
| 79 | uint64_t keyframe_id, |
| 80 | const Eigen::Vector3d& local_pos, |
| 81 | const Eigen::Vector3d& color); |
| 82 | |
| 83 | void updateLandmark(uint64_t landmark_id, |
| 84 | const Eigen::Vector3d& global_pos, |
| 85 | double quality, |
| 86 | const Eigen::Vector3d& color); |
| 87 | |
| 88 | LandmarkMap getMapPoints() const { return map_points_; } |
| 89 | |
| 90 | void loopClosureOptimizationFinishCallback(const Timestamp time); |
| 91 | bool loop_closure_optimization_finished_; // this flag is set to true when loop closure optimization is done |
| 92 | |
| 93 | // Save mapping of landmark -> list of observing keyframe IDs to a text file. |
| 94 | // Format: |
| 95 | // # landmark_id, [keyframe_id1, keyframe_id2, ...] |
| 96 | // 123, [10, 11, 25] |
| 97 | // 124, [12] |
| 98 | bool saveKeyframeObservationsToFile(const std::string& file_path) const; |
| 99 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected