|
Apollo 10.0
自动驾驶开放平台
|
#include <lane_sequence_predictor.h>
Public 成员函数 | |
| LaneSequencePredictor () | |
| Constructor | |
| virtual | ~LaneSequencePredictor ()=default |
| Destructor | |
| bool | Predict (const ADCTrajectoryContainer *adc_trajectory_container, Obstacle *obstacle, ObstaclesContainer *obstacles_container) override |
| Make prediction | |
Public 成员函数 继承自 apollo::prediction::SequencePredictor | |
| SequencePredictor ()=default | |
| Constructor | |
| virtual | ~SequencePredictor ()=default |
| Destructor | |
| bool | Predict (const ADCTrajectoryContainer *adc_trajectory_container, Obstacle *obstacle, ObstaclesContainer *obstacles_container) override |
| Make prediction | |
| FRIEND_TEST (SequencePredictorTest, General) | |
Public 成员函数 继承自 apollo::prediction::Predictor | |
| Predictor ()=default | |
| Constructor | |
| virtual | ~Predictor ()=default |
| Destructor | |
| int | NumOfTrajectories (const Obstacle &obstacle) |
| Get trajectory size | |
| void | TrimTrajectories (const ADCTrajectoryContainer &adc_trajectory_container, Obstacle *obstacle) |
| Trim prediction trajectories by adc trajectory | |
| const ObstacleConf::PredictorType & | predictor_type () |
| get the predictor type | |
Protected 成员函数 | |
| void | DrawLaneSequenceTrajectoryPoints (const Obstacle &obstacle, const LaneSequence &lane_sequence, const double total_time, const double period, std::vector< apollo::common::TrajectoryPoint > *points) |
| Draw lane sequence trajectory points | |
Protected 成员函数 继承自 apollo::prediction::SequencePredictor | |
| bool | GetLongitudinalPolynomial (const Obstacle &obstacle, const LaneSequence &lane_sequence, const std::pair< double, double > &lon_end_state, std::array< double, 5 > *coefficients) |
| bool | GetLateralPolynomial (const Obstacle &obstacle, const LaneSequence &lane_sequence, const double time_to_end_state, std::array< double, 4 > *coefficients) |
| void | FilterLaneSequences (const Feature &feature, const std::string &lane_id, const Obstacle *ego_vehicle_ptr, const ADCTrajectoryContainer *adc_trajectory_container, std::vector< bool > *enable_lane_sequence) |
| Filter lane sequences | |
| LaneChangeType | GetLaneChangeType (const std::string &lane_id, const LaneSequence &lane_sequence) |
| Get lane change type | |
| double | GetLaneChangeDistanceWithADC (const LaneSequence &lane_sequence, const Obstacle *ego_vehicle_ptr, const ADCTrajectoryContainer *adc_trajectory_container) |
| Get lane change distance with ADC | |
| void | DrawConstantAccelerationTrajectory (const Obstacle &obstacle, const LaneSequence &lane_sequence, const double total_time, const double period, const double acceleration, std::vector< apollo::common::TrajectoryPoint > *points) |
| Draw constant acceleration trajectory points | |
| double | GetLaneSequenceCurvatureByS (const LaneSequence &lane_sequence, const double s) |
| Get lane sequence curvature by s | |
| void | Clear () |
| Clear private members | |
| std::string | ToString (const LaneSequence &sequence) |
| Convert a lane sequence to string | |
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 | |
额外继承的成员函数 | |
Public 类型 继承自 apollo::prediction::SequencePredictor | |
| enum class | LaneChangeType { LEFT , RIGHT , STRAIGHT , ONTO_LANE , INVALID } |
静态 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_ |
在文件 lane_sequence_predictor.h 第 31 行定义.
| apollo::prediction::LaneSequencePredictor::LaneSequencePredictor | ( | ) |
Constructor
在文件 lane_sequence_predictor.cc 第 34 行定义.
|
virtualdefault |
Destructor
|
protected |
Draw lane sequence trajectory points
| Obstacle | |
| Lane | sequence |
| Total | prediction time |
| Prediction | period |
| A | vector of generated trajectory points |
在文件 lane_sequence_predictor.cc 第 120 行定义.
|
overridevirtual |
Make prediction
| ADC | trajectory container |
| Obstacle | pointer |
| Obstacles | container |
实现了 apollo::prediction::Predictor.
在文件 lane_sequence_predictor.cc 第 38 行定义.