Apollo 11.0
自动驾驶开放平台
apollo::old_routing_adapter::OldRoutingAdapter类 参考

The external interface for processing external commands. 更多...

#include <old_routing_adapter.h>

类 apollo::old_routing_adapter::OldRoutingAdapter 继承关系图:
apollo::old_routing_adapter::OldRoutingAdapter 的协作图:

Public 成员函数

 OldRoutingAdapter ()
 
 ~OldRoutingAdapter ()=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< Node > node_ = nullptr
 
std::string config_file_path_ = ""
 
std::vector< std::shared_ptr< ReaderBase > > readers_
 

详细描述

The external interface for processing external commands.

在文件 old_routing_adapter.h 第 52 行定义.

构造及析构函数说明

◆ OldRoutingAdapter()

apollo::old_routing_adapter::OldRoutingAdapter::OldRoutingAdapter ( )

在文件 old_routing_adapter.cc 第 41 行定义.

41: command_id_(0), hdmap_(nullptr) {}

◆ ~OldRoutingAdapter()

apollo::old_routing_adapter::OldRoutingAdapter::~OldRoutingAdapter ( )
default

成员函数说明

◆ Init()

bool apollo::old_routing_adapter::OldRoutingAdapter::Init ( )
overridevirtual

实现了 apollo::cyber::ComponentBase.

在文件 old_routing_adapter.cc 第 43 行定义.

43 {
45 // Load the config.
46 OldRoutingAdapterConfig config;
47 if (!GetProtoConfig(&config)) {
48 AERROR << "Unable to load OldRoutingAdapter conf file: "
49 << ConfigFilePath();
50 return false;
51 }
52 // Init the readers, writers and service clients.
53 routing_request_reader_ = node_->CreateReader<routing::RoutingRequest>(
54 config.routing_request_topic(),
55 [this](const std::shared_ptr<routing::RoutingRequest>& routing_request) {
56 ADEBUG << "Received routing request: run callback.";
57 OnRoutingRequest(routing_request);
58 });
59 lane_follow_command_client_ =
62 config.lane_follow_command_topic());
63 valet_parking_command_client_ =
66 config.valet_parking_command_topic());
67 return true;
68}
bool GetProtoConfig(T *config) const
const std::string & ConfigFilePath() const
std::shared_ptr< Node > node_
static const HDMap * BaseMapPtr()
#define ADEBUG
Definition log.h:41
#define AERROR
Definition log.h:44

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