28 #include "modules/perception/onboard/proto/fusion_component_config.pb.h" 31 namespace perception {
39 bool Proc(
const std::shared_ptr<SensorFrameMessage>& message)
override;
42 bool InitAlgorithmPlugin();
43 bool InternalProc(
const std::shared_ptr<SensorFrameMessage const>& in_message,
44 std::shared_ptr<PerceptionObstacles> out_message,
45 std::shared_ptr<SensorFrameMessage> viz_message);
48 static std::mutex s_mutex_;
49 static uint32_t s_seq_num_;
51 std::string fusion_name_;
52 std::string fusion_method_;
53 std::vector<std::string> fusion_main_sensors_;
54 bool object_in_roi_check_ =
false;
55 double radius_for_roi_object_check_ = 0;
57 std::unique_ptr<fusion::BaseMultiSensorFusion> fusion_;
59 std::shared_ptr<apollo::cyber::Writer<PerceptionObstacles>> writer_;
60 std::shared_ptr<apollo::cyber::Writer<SensorFrameMessage>> inner_writer_;
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
bool Proc(const std::shared_ptr< SensorFrameMessage > &message) override
FusionComponent()=default
~FusionComponent()=default
The Component can process up to four channels of messages. The message type is specified when the com...
Definition: component.h:58
CYBER_REGISTER_COMPONENT(CameraObstacleDetectionComponent)
Definition: fusion_component.h:34