29#include "modules/common_msgs/prediction_msgs/prediction_obstacle.pb.h"
92 const std::vector<apollo::common::TrajectoryPoint>& points);
122 double* acceleration);
Predictor()=default
Constructor
const ObstacleConf::PredictorType & predictor_type()
get the predictor type
bool TrimTrajectory(const ADCTrajectoryContainer &adc_trajectory_container, Obstacle *obstacle, Trajectory *trajectory)
Trim a single prediction trajectory, keep the portion that is not in junction.
void TrimTrajectories(const ADCTrajectoryContainer &adc_trajectory_container, Obstacle *obstacle)
Trim prediction trajectories by adc trajectory
void SetEqualProbability(const double probability, const int start_index, Obstacle *obstacle_ptr)
Set equal probability to prediction trajectories
static Trajectory GenerateTrajectory(const std::vector< apollo::common::TrajectoryPoint > &points)
Generate trajectory from trajectory points
virtual bool Predict(const ADCTrajectoryContainer *adc_trajectory_container, Obstacle *obstacle, ObstaclesContainer *obstacles_container)=0
Make prediction
ObstacleConf::PredictorType predictor_type_
bool SupposedToStop(const Feature &feature, const double stop_distance, double *acceleration)
Determine if an obstacle is supposed to stop within a distance
virtual void Clear()
Clear all trajectories
int NumOfTrajectories(const Obstacle &obstacle)
Get trajectory size
virtual ~Predictor()=default
Destructor