Apollo 10.0
自动驾驶开放平台
apollo::prediction::StoryTellingContainer类 参考

#include <storytelling_container.h>

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

Public 成员函数

 StoryTellingContainer ()=default
 Constructor
 
virtual ~StoryTellingContainer ()=default
 Destructor
 
void Insert (const ::google::protobuf::Message &message) override
 Insert a data message into the container
 
std::shared_ptr< const hdmap::JunctionInfoADCJunction () const
 Get ADC junction
 
const std::string & ADCJunctionId () const
 Get ADC junction id
 
double ADCDistanceToJunction () const
 Compute ADC's distance to junction
 
- Public 成员函数 继承自 apollo::prediction::Container
 Container ()=default
 Constructor
 
virtual ~Container ()=default
 Destructor
 

详细描述

在文件 storytelling_container.h34 行定义.

构造及析构函数说明

◆ StoryTellingContainer()

apollo::prediction::StoryTellingContainer::StoryTellingContainer ( )
default

Constructor

◆ ~StoryTellingContainer()

virtual apollo::prediction::StoryTellingContainer::~StoryTellingContainer ( )
virtualdefault

Destructor

成员函数说明

◆ ADCDistanceToJunction()

double apollo::prediction::StoryTellingContainer::ADCDistanceToJunction ( ) const

Compute ADC's distance to junction

返回
ADC's distance to junction

在文件 storytelling_container.cc39 行定义.

39 {
40 return close_to_junction_.distance();
41}

◆ ADCJunction()

std::shared_ptr< const hdmap::JunctionInfo > apollo::prediction::StoryTellingContainer::ADCJunction ( ) const

Get ADC junction

返回
A pointer to ADC junction information

在文件 storytelling_container.cc29 行定义.

30 {
31 std::string adc_junction_id = close_to_junction_.id();
32 return PredictionMap::JunctionById(adc_junction_id);
33}
static std::shared_ptr< const hdmap::JunctionInfo > JunctionById(const std::string &id)
Get a shared pointer to a junction by junction ID.

◆ ADCJunctionId()

const std::string & apollo::prediction::StoryTellingContainer::ADCJunctionId ( ) const

Get ADC junction id

返回
A reference of ADC_junction_id

在文件 storytelling_container.cc35 行定义.

35 {
36 return close_to_junction_.id();
37}

◆ Insert()

void apollo::prediction::StoryTellingContainer::Insert ( const ::google::protobuf::Message &  message)
overridevirtual

Insert a data message into the container

参数
Datamessage to be inserted in protobuf

实现了 apollo::prediction::Container.

在文件 storytelling_container.cc24 行定义.

24 {
25 Stories story_message = dynamic_cast<const Stories&>(message);
26 close_to_junction_.CopyFrom(story_message.close_to_junction());
27}

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