Apollo 10.0
自动驾驶开放平台
apollo::perception::MsgAdapterComponent类 参考final

#include <msg_adapter_component.h>

类 apollo::perception::MsgAdapterComponent 继承关系图:
apollo::perception::MsgAdapterComponent 的协作图:

Public 成员函数

 MsgAdapterComponent ()=default
 
 ~MsgAdapterComponent ()=default
 
bool Init () override
 
- Public 成员函数 继承自 apollo::cyber::Component< M0, M1, M2, M3 >
 Component ()
 
 ~Component () override
 
bool Initialize (const ComponentConfig &config) override
 init the component by protobuf object.
 
bool Process (const std::shared_ptr< M0 > &msg0, const std::shared_ptr< M1 > &msg1, const std::shared_ptr< M2 > &msg2, const std::shared_ptr< M3 > &msg3)
 
- Public 成员函数 继承自 apollo::cyber::ComponentBase
virtual ~ComponentBase ()
 
virtual bool Initialize (const TimerComponentConfig &config)
 
virtual void Shutdown ()
 
template<typename T >
bool GetProtoConfig (T *config) const
 

额外继承的成员函数

- Public 类型 继承自 apollo::cyber::ComponentBase
template<typename M >
using Reader = cyber::Reader< M >
 
- Protected 成员函数 继承自 apollo::cyber::ComponentBase
virtual void Clear ()
 
const std::string & ConfigFilePath () const
 
void LoadConfigFiles (const ComponentConfig &config)
 
void LoadConfigFiles (const TimerComponentConfig &config)
 
- Protected 属性 继承自 apollo::cyber::ComponentBase
std::atomic< bool > is_shutdown_ = {false}
 
std::shared_ptr< Nodenode_ = nullptr
 
std::string config_file_path_ = ""
 
std::vector< std::shared_ptr< ReaderBase > > readers_
 

详细描述

在文件 msg_adapter_component.h27 行定义.

构造及析构函数说明

◆ MsgAdapterComponent()

apollo::perception::MsgAdapterComponent::MsgAdapterComponent ( )
default

◆ ~MsgAdapterComponent()

apollo::perception::MsgAdapterComponent::~MsgAdapterComponent ( )
default

成员函数说明

◆ Init()

bool apollo::perception::MsgAdapterComponent::Init ( )
overridevirtual

实现了 apollo::cyber::ComponentBase.

在文件 msg_adapter_component.cc24 行定义.

24 {
25 msg_converter_ = std::make_shared<MsgConverter>(node_);
26 // register message conversion
27 msg_converter_->Add(FLAGS_cameraframe_to_obstacles_in,
28 FLAGS_cameraframe_to_obstacles_out,
30 AINFO << "cameraframe_to_obstacles_in: "
31 << FLAGS_cameraframe_to_obstacles_in
32 << " cameraframe_to_obstacles_out: "
33 << FLAGS_cameraframe_to_obstacles_out;
34
35 msg_converter_->Add(FLAGS_sensorframe_message_to_obstacles_in,
36 FLAGS_sensorframe_message_to_obstacles_out,
38 AINFO << "sensorframe_message_to_obstacles_in: "
39 << FLAGS_sensorframe_message_to_obstacles_in
40 << " sensorframe_message_to_obstacles_out: "
41 << FLAGS_sensorframe_message_to_obstacles_out;
42
43 msg_converter_->Add(FLAGS_lidarframe_to_obstacles_in,
44 FLAGS_lidarframe_to_obstacles_out,
46 AINFO << "lidarframe_to_obstacles_in: "
47 << FLAGS_lidarframe_to_obstacles_in
48 << " lidarframe_to_obstacles_out: "
49 << FLAGS_lidarframe_to_obstacles_out;
50
51 return true;
52}
std::shared_ptr< Node > node_
#define AINFO
Definition log.h:42
bool ConvertCameraFrame2Obstacles(const std::shared_ptr< onboard::CameraFrame > &frame, PerceptionObstacles *obstacles)
Definition convert.h:33
bool ConvertLidarFrameMessage2Obstacles(const std::shared_ptr< onboard::LidarFrameMessage > &msg, PerceptionObstacles *obstacles)
Definition convert.h:81
bool ConvertSensorFrameMessage2Obstacles(const std::shared_ptr< onboard::SensorFrameMessage > &msg, PerceptionObstacles *obstacles)
Definition convert.h:57

该类的文档由以下文件生成: