26 #include "modules/perception/camera/lib/obstacle/tracker/omt/proto/omt.pb.h" 32 namespace perception {
43 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
44 void Init(
const omt::ReferenceParam &ref_param,
float width,
float height);
46 const EigenVector<Target> &targets);
50 void SyncGroundEstimator(
const std::string &sensor,
52 int img_width,
int img_height) {
53 if (ground_estimator_mapper_.find(sensor) ==
54 ground_estimator_mapper_.end()) {
55 auto &ground_estimator = ground_estimator_mapper_[sensor];
56 const float fx = camera_k_matrix(0, 0);
57 const float fy = camera_k_matrix(1, 1);
58 const float cx = camera_k_matrix(0, 2);
59 const float cy = camera_k_matrix(1, 2);
60 std::vector<float> k_mat = {fx, 0, cx, 0, fy, cy, 0, 0, 1};
61 ground_estimator.Init(k_mat, img_width, img_height,
common::IRec(fx));
66 omt::ReferenceParam ref_param_;
67 std::map<std::string, std::vector<Reference>> reference_;
68 std::map<std::string, std::vector<std::vector<int>>> ref_map_;
69 std::vector<std::vector<int>> init_ref_map_;
76 std::map<std::string, CameraGroundPlaneDetector> ground_estimator_mapper_;
std::vector< EigenType, Eigen::aligned_allocator< EigenType > > EigenVector
Definition: eigen_defs.h:32
Definition: camera_frame.h:33
Definition: obstacle_reference.h:41
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
float IRec(float a)
Definition: i_basic.h:69
float ymax
Definition: obstacle_reference.h:38
float area
Definition: obstacle_reference.h:36
Eigen::Matrix3f Matrix3f
Definition: base_map_fwd.h:27
Definition: obstacle_reference.h:35
Definition: object_template_manager.h:49
bool Init(const char *binary_name)
float k
Definition: obstacle_reference.h:37