Apollo 10.0
自动驾驶开放平台
|
#include <component.h>
Public 成员函数 | |
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) |
![]() | |
virtual | ~ComponentBase () |
virtual bool | Initialize (const TimerComponentConfig &config) |
virtual void | Shutdown () |
template<typename T > | |
bool | GetProtoConfig (T *config) const |
额外继承的成员函数 | |
![]() | |
template<typename M > | |
using | Reader = cyber::Reader< M > |
![]() | |
virtual bool | Init ()=0 |
virtual void | Clear () |
const std::string & | ConfigFilePath () const |
void | LoadConfigFiles (const ComponentConfig &config) |
void | LoadConfigFiles (const TimerComponentConfig &config) |
![]() | |
std::atomic< bool > | is_shutdown_ = {false} |
std::shared_ptr< Node > | node_ = nullptr |
std::string | config_file_path_ = "" |
std::vector< std::shared_ptr< ReaderBase > > | readers_ |
The Component can process up to four channels of messages. The message type is specified when the component is created. The Component is inherited from ComponentBase. Your component can inherit from Component, and implement Init() & Proc(...), They are picked up by the CyberRT. There are 4 specialization implementations.
M0 | the first message. |
M1 | the second message. |
M2 | the third message. |
M3 | the fourth message. |
在文件 component.h 第 60 行定义.
|
inline |
在文件 component.h 第 62 行定义.
|
inlineoverride |
在文件 component.h 第 63 行定义.
|
inlineoverridevirtual |
init the component by protobuf object.
config | which is defined in 'cyber/proto/component_conf.proto' |
重载 apollo::cyber::ComponentBase .
在文件 component.h 第 152 行定义.
bool apollo::cyber::Component< M0, M1, M2, M3 >::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 | ||
) |
在文件 component.h 第 505 行定义.