65 bool Proc(
const std::shared_ptr<LidarFrameMessage>& message)
override;
69 const std::shared_ptr<LidarFrameMessage>& message,
70 std::vector<BarrieGate>& gates);
72 bool QueryPoseAndGates(
const double ts,
const Eigen::Affine3d& pose,
73 std::vector<apollo::hdmap::BarrierGate>* gates);
76 std::vector<double>& world_polygon);
78 bool MakeProtobufMsg(
double msg_timestamp,
int seq_num,
79 std::vector<BarrieGate> gates,
83 uint32_t seq_num_ = 0;
84 double forward_distance_to_queries_ = 20;
85 double last_gates_ts_ = -1.0;
86 double valid_hdmap_interval_ = 1.5;
87 double tf2_timeout_second_ = 0.01;
89 std::string tf2_frame_id_;
90 std::string tf2_child_frame_id_;
97 std::vector<apollo::hdmap::BarrierGate> last_gates_;
98 Buffer* tf2_buffer_ = Buffer::Instance();
101 std::shared_ptr<cyber::Writer<PerceptionBarrierGate>> writer_;