apollo icon indicating copy to clipboard operation
apollo copied to clipboard

How Fusion_conmponet gets target object data?

Open Amazingmum opened this issue 2 years ago • 3 comments

In the code ,no related reader functions are seen,and how does it get the target data

Amazingmum avatar Mar 28 '22 13:03 Amazingmum

https://github.com/ApolloAuto/apollo/blob/master/modules/perception/onboard/component/fusion_component.cc#L54

bool FusionComponent::Proc(const std::shared_ptr<SensorFrameMessage>& message) {
  if (message->process_stage_ == ProcessStage::SENSOR_FUSION) {
    return true;
  }

When the fusion module is started, the proc function always waits for the message to come in. Fusion module gets data from SensorFrameMessage. SensorFrameMessage comes from all sensor perception result.

liouyx avatar Aug 19 '22 08:08 liouyx

https://github.com/ApolloAuto/apollo/blob/master/modules/perception/onboard/component/fusion_component.cc#L54

bool FusionComponent::Proc(const std::shared_ptr<SensorFrameMessage>& message) {
  if (message->process_stage_ == ProcessStage::SENSOR_FUSION) {
    return true;
  }

When the fusion module is started, the proc function always waits for the message to come in. Fusion module gets data from SensorFrameMessage. SensorFrameMessage comes from all sensor perception result.

Sorry ,I don't understand the Proc(const std::shared_ptr<SensorFrameMessage>& message) ,and Where is the "const std::shared_ptr<SensorFrameMessage>& message" comes from? I don't see reader function to subscribe to that msg in the code.

Amazingmum avatar Aug 21 '22 11:08 Amazingmum

https://github.com/ApolloAuto/apollo/blob/master/modules/perception/onboard/component/fusion_component.h#34 FusionComponent is an inherited class of cyber::Component, it gets target data in the cyber framework.

dreamholy avatar Sep 01 '22 04:09 dreamholy

Closed due to inactivity. If the problem persists, pls feel free to reopen it or create a new one and refer to it.

liouyx avatar Sep 28 '22 02:09 liouyx