Sparse point-cloud map for visualization and export. Hold each keyframe's depth-valid feature points in the keyframe camera frame; cloud() lifts them to the world frame using the loop-corrected keyframe anchors. Output-only; not used for tracking.
| 13 | // to the world frame using the loop-corrected keyframe anchors. Output-only; |
| 14 | // not used for tracking. |
| 15 | class SparseMap { |
| 16 | public: |
| 17 | void add_keyframe(size_t keyframe_id, const std::vector<gtsam::Point3>& camera_points); |
| 18 | std::vector<gtsam::Point3> cloud(const std::map<size_t, gtsam::Pose3>& anchors) const; |
| 19 | size_t keyframe_count() const { return points_.size(); } |
| 20 | |
| 21 | private: |
| 22 | std::map<size_t, std::vector<gtsam::Point3>> points_; |
| 23 | }; |
| 24 | |
| 25 | } // namespace superslam |
nothing calls this directly
no outgoing calls
no test coverage detected