Apollo 10.0
自动驾驶开放平台
|
#include <interaction_predictor.h>
Public 成员函数 | |
InteractionPredictor () | |
Constructor | |
virtual | ~InteractionPredictor ()=default |
Destructor | |
bool | Predict (const ADCTrajectoryContainer *adc_trajectory_container, Obstacle *obstacle, ObstaclesContainer *obstacles_container) override |
Make prediction | |
![]() | |
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) | |
![]() | |
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 | |
额外继承的成员函数 | |
![]() | |
enum class | LaneChangeType { LEFT , RIGHT , STRAIGHT , ONTO_LANE , INVALID } |
![]() | |
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 | |
![]() | |
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 | |
![]() | |
static Trajectory | GenerateTrajectory (const std::vector< apollo::common::TrajectoryPoint > &points) |
Generate trajectory from trajectory points | |
![]() | |
ObstacleConf::PredictorType | predictor_type_ |
在文件 interaction_predictor.h 第 31 行定义.
apollo::prediction::InteractionPredictor::InteractionPredictor | ( | ) |
Constructor
在文件 interaction_predictor.cc 第 42 行定义.
|
virtualdefault |
Destructor
|
overridevirtual |
Make prediction
Obstacle | pointer |
Obstacles | container |
实现了 apollo::prediction::Predictor.
在文件 interaction_predictor.cc 第 46 行定义.