31 namespace prediction {
57 void DrawJunctionTrajectoryPoints(
58 const Feature& feature,
const JunctionExit& junction_exit,
59 const double total_time,
const double period,
60 std::vector<apollo::common::TrajectoryPoint>* trajectory_points);
62 std::vector<JunctionExit> MostLikelyJunctions(
const Feature& feature);
68 double GetBestTime(
const std::array<double, 2>& start_x,
69 const std::array<double, 2>& end_x,
70 const std::array<double, 2>& start_y,
71 const std::array<double, 2>& end_y);
73 double CostFunction(
const std::array<double, 4>& x_coeffs,
74 const std::array<double, 4>& y_coeffs,
75 const double time_to_exit);
77 std::vector<double> GenerateCandidateTimes();
Define the predictor base class.
Prediction obstacle.
Definition: obstacle.h:52
Definition: obstacles_container.h:39
bool Predict(const ADCTrajectoryContainer *adc_trajectory_container, Obstacle *obstacle, ObstaclesContainer *obstacles_container) override
Make prediction.
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Definition: predictor.h:38
Definition: junction_predictor.h:33
JunctionPredictor()
Constructor.
virtual ~JunctionPredictor()=default
Destructor.
Definition: adc_trajectory_container.h:37