29 #include "modules/prediction/proto/prediction_obstacle.pb.h" 36 namespace prediction {
92 const std::vector<apollo::common::TrajectoryPoint>& points);
112 Obstacle* obstacle, Trajectory* trajectory);
121 bool SupposedToStop(
const Feature& feature,
const double stop_distance,
122 double* acceleration);
static Trajectory GenerateTrajectory(const std::vector< apollo::common::TrajectoryPoint > &points)
Generate trajectory from trajectory points.
void SetEqualProbability(const double probability, const int start_index, Obstacle *obstacle_ptr)
Set equal probability to prediction trajectories.
Prediction obstacle.
Definition: obstacle.h:52
virtual ~Predictor()=default
Destructor.
Definition: obstacles_container.h:39
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
void TrimTrajectories(const ADCTrajectoryContainer &adc_trajectory_container, Obstacle *obstacle)
Trim prediction trajectories by adc trajectory.
ObstacleConf::PredictorType predictor_type_
Definition: predictor.h:125
Definition: predictor.h:38
int NumOfTrajectories(const Obstacle &obstacle)
Get trajectory size.
ADC trajectory container.
bool SupposedToStop(const Feature &feature, const double stop_distance, double *acceleration)
Determine if an obstacle is supposed to stop within a distance.
const ObstacleConf::PredictorType & predictor_type()
get the predictor type
Predictor()=default
Constructor.
Definition: adc_trajectory_container.h:37
virtual void Clear()
Clear all trajectories.
virtual bool Predict(const ADCTrajectoryContainer *adc_trajectory_container, Obstacle *obstacle, ObstaclesContainer *obstacles_container)=0
Make prediction.
bool TrimTrajectory(const ADCTrajectoryContainer &adc_trajectory_container, Obstacle *obstacle, Trajectory *trajectory)
Trim a single prediction trajectory, keep the portion that is not in junction.