41 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
48 void SyncGroundEstimator(
const std::string &sensor,
49 const Eigen::Matrix3f &camera_k_matrix,
50 int img_width,
int img_height) {
51 if (ground_estimator_mapper_.find(sensor) ==
52 ground_estimator_mapper_.end()) {
53 auto &ground_estimator = ground_estimator_mapper_[sensor];
54 const float fx = camera_k_matrix(0, 0);
55 const float fy = camera_k_matrix(1, 1);
56 const float cx = camera_k_matrix(0, 2);
57 const float cy = camera_k_matrix(1, 2);
58 std::vector<float> k_mat = {fx, 0, cx, 0, fy, cy, 0, 0, 1};
59 ground_estimator.Init(k_mat, img_width, img_height,
algorithm::IRec(fx));
65 std::map<std::string, std::vector<Reference>> reference_;
66 std::map<std::string, std::vector<std::vector<int>>> ref_map_;
67 std::vector<std::vector<int>> init_ref_map_;
74 std::map<std::string, CameraGroundPlaneDetector> ground_estimator_mapper_;