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

#include <empty_predictor.h>

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

Public 成员函数

 EmptyPredictor ()
 Constructor
 
virtual ~EmptyPredictor ()=default
 Destructor
 
bool Predict (const ADCTrajectoryContainer *adc_trajectory_container, Obstacle *obstacle, ObstaclesContainer *obstacles_container) override
 Make prediction
 
- Public 成员函数 继承自 apollo::prediction::Predictor
 Predictor ()=default
 Constructor
 
virtual ~Predictor ()=default
 Destructor
 
int NumOfTrajectories (const Obstacle &obstacle)
 Get trajectory size
 
virtual void Clear ()
 Clear all trajectories
 
void TrimTrajectories (const ADCTrajectoryContainer &adc_trajectory_container, Obstacle *obstacle)
 Trim prediction trajectories by adc trajectory
 
const ObstacleConf::PredictorTypepredictor_type ()
 get the predictor type
 

额外继承的成员函数

- Protected 成员函数 继承自 apollo::prediction::Predictor
void SetEqualProbability (const double probability, const int start_index, Obstacle *obstacle_ptr)
 Set equal probability to prediction trajectories
 
bool TrimTrajectory (const ADCTrajectoryContainer &adc_trajectory_container, Obstacle *obstacle, Trajectory *trajectory)
 Trim a single prediction trajectory, keep the portion that is not in junction.
 
bool SupposedToStop (const Feature &feature, const double stop_distance, double *acceleration)
 Determine if an obstacle is supposed to stop within a distance
 
- 静态 Protected 成员函数 继承自 apollo::prediction::Predictor
static Trajectory GenerateTrajectory (const std::vector< apollo::common::TrajectoryPoint > &points)
 Generate trajectory from trajectory points
 
- Protected 属性 继承自 apollo::prediction::Predictor
ObstacleConf::PredictorType predictor_type_
 

详细描述

在文件 empty_predictor.h29 行定义.

构造及析构函数说明

◆ EmptyPredictor()

apollo::prediction::EmptyPredictor::EmptyPredictor ( )

Constructor

在文件 empty_predictor.cc22 行定义.

◆ ~EmptyPredictor()

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

Destructor

成员函数说明

◆ Predict()

bool apollo::prediction::EmptyPredictor::Predict ( const ADCTrajectoryContainer adc_trajectory_container,
Obstacle obstacle,
ObstaclesContainer obstacles_container 
)
overridevirtual

Make prediction

参数
Obstaclepointer
Obstaclescontainer
返回
If predicted successfully

实现了 apollo::prediction::Predictor.

在文件 empty_predictor.cc26 行定义.

28 {
29 obstacle->SetPredictorType(predictor_type_);
30 return true;
31}

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