Apollo 11.0
自动驾驶开放平台
apollo::prediction::FakePredictionComponent类 参考

class FakePredictionComponent This class generates fake prediction messages. 更多...

类 apollo::prediction::FakePredictionComponent 继承关系图:
apollo::prediction::FakePredictionComponent 的协作图:

Public 成员函数

bool Init () override
 
bool Proc () override
 The Proc logic of the component, which called by the CyberRT frame.
 
- Public 成员函数 继承自 apollo::cyber::TimerComponent
 TimerComponent ()
 
 ~TimerComponent () override
 
bool Initialize (const TimerComponentConfig &config) override
 init the component by protobuf object.
 
void Clear () override
 
bool Process ()
 
uint32_t GetInterval () const
 
- Public 成员函数 继承自 apollo::cyber::ComponentBase
virtual ~ComponentBase ()
 
virtual bool Initialize (const ComponentConfig &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
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_
 

详细描述

class FakePredictionComponent This class generates fake prediction messages.

The prediction message only has valid headers.

This tool is used to trigger modules that depends on prediction message.

在文件 fake_prediction.cc38 行定义.

成员函数说明

◆ Init()

bool apollo::prediction::FakePredictionComponent::Init ( )
inlineoverridevirtual

实现了 apollo::cyber::ComponentBase.

在文件 fake_prediction.cc40 行定义.

40 {
41 prediction_writer_ =
42 node_->CreateWriter<PredictionObstacles>(FLAGS_prediction_topic);
43 return true;
44 }
std::shared_ptr< Node > node_

◆ Proc()

bool apollo::prediction::FakePredictionComponent::Proc ( )
inlineoverridevirtual

The Proc logic of the component, which called by the CyberRT frame.

返回
returns true if successful, otherwise returns false

实现了 apollo::cyber::TimerComponent.

在文件 fake_prediction.cc45 行定义.

45 {
46 auto prediction = std::make_shared<PredictionObstacles>();
47 common::util::FillHeader("fake_prediction", prediction.get());
48 prediction_writer_->Write(prediction);
49 return true;
50 }

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