| 16 | #include "utils/UtilsOpenCV.h" |
| 17 | |
| 18 | LoopClosure::LoopClosure(Parameters& params) |
| 19 | : params_(params), |
| 20 | pose_graph_(nullptr), |
| 21 | global_map_(nullptr), |
| 22 | keyframe_tracking_queue_("keyframe_queue"), |
| 23 | raw_image_buffer_(kBufferLengthNs), |
| 24 | primitive_estimator_poses_buffer_(kBufferLengthNs) { |
| 25 | frame_index_ = 0; |
| 26 | last_translation_ = Eigen::Vector3d(-100, -100, -100); |
| 27 | |
| 28 | setup(); |
| 29 | shutdown_ = false; |
| 30 | } |
| 31 | |
| 32 | void LoopClosure::setup() { |
| 33 | pose_graph_ = std::unique_ptr<PoseGraph>(new PoseGraph()); |
nothing calls this directly
no outgoing calls
no test coverage detected