#include <predictor.h>
|
void | SetEqualProbability (const double probability, const int start_index, Obstacle *obstacle_ptr) |
| Set equal probability to prediction trajectories. More...
|
|
bool | TrimTrajectory (const ADCTrajectoryContainer &adc_trajectory_container, Obstacle *obstacle, Trajectory *trajectory) |
| Trim a single prediction trajectory, keep the portion that is not in junction. More...
|
|
bool | SupposedToStop (const Feature &feature, const double stop_distance, double *acceleration) |
| Determine if an obstacle is supposed to stop within a distance. More...
|
|
|
static Trajectory | GenerateTrajectory (const std::vector< apollo::common::TrajectoryPoint > &points) |
| Generate trajectory from trajectory points. More...
|
|
◆ Predictor()
apollo::prediction::Predictor::Predictor |
( |
| ) |
|
|
default |
◆ ~Predictor()
virtual apollo::prediction::Predictor::~Predictor |
( |
| ) |
|
|
virtualdefault |
◆ Clear()
virtual void apollo::prediction::Predictor::Clear |
( |
| ) |
|
|
virtual |
◆ GenerateTrajectory()
static Trajectory apollo::prediction::Predictor::GenerateTrajectory |
( |
const std::vector< apollo::common::TrajectoryPoint > & |
points | ) |
|
|
staticprotected |
Generate trajectory from trajectory points.
- Parameters
-
A | vector of trajectory points |
- Returns
- Generated trajectory
◆ NumOfTrajectories()
int apollo::prediction::Predictor::NumOfTrajectories |
( |
const Obstacle & |
obstacle | ) |
|
Get trajectory size.
- Returns
- Size of trajectories
◆ Predict()
◆ predictor_type()
const ObstacleConf::PredictorType& apollo::prediction::Predictor::predictor_type |
( |
| ) |
|
get the predictor type
- Returns
- the predictor type
◆ SetEqualProbability()
void apollo::prediction::Predictor::SetEqualProbability |
( |
const double |
probability, |
|
|
const int |
start_index, |
|
|
Obstacle * |
obstacle_ptr |
|
) |
| |
|
protected |
Set equal probability to prediction trajectories.
- Parameters
-
probability | total probability |
start_index | The start index to set equal probability |
obstacle | |
◆ SupposedToStop()
bool apollo::prediction::Predictor::SupposedToStop |
( |
const Feature & |
feature, |
|
|
const double |
stop_distance, |
|
|
double * |
acceleration |
|
) |
| |
|
protected |
Determine if an obstacle is supposed to stop within a distance.
- Parameters
-
The | latest feature of obstacle |
The | distance to stop |
The | output param of acceleration |
- Returns
- If the obstacle is supposed to stop within a distance
◆ TrimTrajectories()
Trim prediction trajectories by adc trajectory.
- Parameters
-
ADC | trajectory container |
obstacle | |
◆ TrimTrajectory()
bool apollo::prediction::Predictor::TrimTrajectory |
( |
const ADCTrajectoryContainer & |
adc_trajectory_container, |
|
|
Obstacle * |
obstacle, |
|
|
Trajectory * |
trajectory |
|
) |
| |
|
protected |
Trim a single prediction trajectory, keep the portion that is not in junction.
- Parameters
-
adc_segments | trajectory segments of ADC trajectory |
obstacle | |
trajectory | The trimed prediction trajectory |
- Returns
- If the prediction trajectory is trimed
◆ predictor_type_
ObstacleConf::PredictorType apollo::prediction::Predictor::predictor_type_ |
|
protected |
The documentation for this class was generated from the following file: