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

#include <pose_container.h>

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

Public 成员函数

 PoseContainer ()=default
 Constructor
 
virtual ~PoseContainer ()=default
 Destructor
 
void Insert (const ::google::protobuf::Message &message) override
 Insert a data message into the container
 
const perception::PerceptionObstacleToPerceptionObstacle ()
 Transform pose to a perception obstacle.
 
double GetTimestamp ()
 Get timestamp
 
- Public 成员函数 继承自 apollo::prediction::Container
 Container ()=default
 Constructor
 
virtual ~Container ()=default
 Destructor
 

静态 Public 属性

static const perception::PerceptionObstacle::Type type_
 

详细描述

在文件 pose_container.h33 行定义.

构造及析构函数说明

◆ PoseContainer()

apollo::prediction::PoseContainer::PoseContainer ( )
default

Constructor

◆ ~PoseContainer()

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

Destructor

成员函数说明

◆ GetTimestamp()

double apollo::prediction::PoseContainer::GetTimestamp ( )

Get timestamp

在文件 pose_container.cc92 行定义.

92 {
93 if (obstacle_ptr_ != nullptr) {
94 return obstacle_ptr_->timestamp();
95 } else {
96 return 0.0;
97 }
98}

◆ Insert()

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

Insert a data message into the container

参数
Datamessage to be inserted in protobuf

实现了 apollo::prediction::Container.

在文件 pose_container.cc30 行定义.

30 {
31 localization::LocalizationEstimate localization;
32 localization.CopyFrom(dynamic_cast<const LocalizationEstimate&>(message));
33 Update(localization);
34}

◆ ToPerceptionObstacle()

const PerceptionObstacle * apollo::prediction::PoseContainer::ToPerceptionObstacle ( )

Transform pose to a perception obstacle.

返回
A pointer to a perception obstacle.

在文件 pose_container.cc100 行定义.

100 {
101 return obstacle_ptr_.get();
102}

类成员变量说明

◆ type_

const perception::PerceptionObstacle::Type apollo::prediction::PoseContainer::type_
static

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