Apollo 10.0
自动驾驶开放平台
|
The msg adapter module is used to forwarding message inside the perception module.
Channel names for internal messages usually have an inner field inner
. These messages are only passed between threads, not between processes, so you can't use cyber_monitor
to view them. Because these messages are generally relatively large, such as image and point cloud data, in order to avoid copying, serialization and deserialization, we use the method of directly passing objects, so these messages can only be passed within the thread.
For the convenience of debugging, you can use the msg adapter module to forward messages, so that you can view them through cyber_monitor
.
apollo::perception::MsgAdapterComponent
Input channel | Type | Description |
---|---|---|
/perception/inner/location_refinement | apollo::perception::onboard::CameraFrame | camera detection message |
/perception/lidar/detection | apollo::perception::onboard::LidarFrameMessage | lidar detection message |
/perception/inner/PrefusedObjects | apollo::perception::onboard::SensorFrameMessage | camera/lidar/radar tracking message |
Each of the above channels corresponds to a conversion function. It is best to enable only one at a time. If multiple channels are to be enabled, it is best to modify the output channel at the same time.
Out channel | Type | Description |
---|---|---|
/apollo/perception/obstacles | apollo::perception::PerceptionObstacles | obstacles detected |
The msg adapter module is used with other modules to forward messages, so it is generally not started separately.
You can modify input and output topics in modules/perception/data/flag/perception_common.flag
.
You can follow below steps to add new convert.
modules/perception/msg_adapter/convert/convert.h
.modules/perception/msg_adapter/msg_adapter_component.cc
. And add input and output topics.如果您在使用文档的过程中,遇到任何问题,请到我们在【开发者社区】建立的 反馈意见收集问答页面,反馈相关的问题。我们会根据反馈意见对文档进行迭代优化。