MCPcopy Create free account
hub / github.com/adityamwagh/SuperSLAM / SparseMap

Class SparseMap

include/SparseMap.h:15–23  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

13// to the world frame using the loop-corrected keyframe anchors. Output-only;
14// not used for tracking.
15class SparseMap {
16public:
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
21private:
22 std::map<size_t, std::vector<gtsam::Point3>> points_;
23};
24
25} // namespace superslam

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected