|
Apollo 10.0
自动驾驶开放平台
|
Prediction obstacle. 更多...
#include <obstacle.h>
Public 成员函数 | |
| Obstacle ()=default | |
| virtual | ~Obstacle ()=default |
| Destructor | |
| void | SetJunctionAnalyzer (JunctionAnalyzer *junction_analyzer) |
| bool | Insert (const perception::PerceptionObstacle &perception_obstacle, const double timestamp, const int prediction_id) |
| Insert a perception obstacle with its timestamp. | |
| bool | InsertFeature (const Feature &feature) |
| Insert a feature proto message. | |
| void | ClearOldInformation () |
| void | TrimHistory (const size_t remain_size) |
| perception::PerceptionObstacle::Type | type () const |
| Get the type of perception obstacle's type. | |
| bool | IsPedestrian () const |
| int | id () const |
| Get the obstacle's ID. | |
| double | timestamp () const |
| Get the obstacle's timestamp. | |
| bool | ReceivedOlderMessage (const double timestamp) const |
| const Feature & | feature (const size_t i) const |
| Get the ith feature from latest to earliest. | |
| Feature * | mutable_feature (const size_t i) |
| Get a pointer to the ith feature from latest to earliest. | |
| const Feature & | latest_feature () const |
| Get the latest feature. | |
| const Feature & | earliest_feature () const |
| Get the earliest feature. | |
| Feature * | mutable_latest_feature () |
| Get a pointer to the latest feature. | |
| void | SetNearbyObstacles () |
| Set nearby obstacles. | |
| size_t | history_size () const |
| Get the number of historical features. | |
| bool | IsStill () |
| Check if the obstacle is still. | |
| bool | IsSlow () |
| Check if the obstacle is slow. | |
| bool | IsOnLane () const |
| Check if the obstacle is on any lane. | |
| bool | ToIgnore () |
| Check if the obstacle can be ignored. | |
| bool | IsNearJunction () |
| Check if the obstacle is near a junction. | |
| bool | IsInJunction (const std::string &junction_id) const |
| Check if the obstacle is a junction. | |
| bool | IsCloseToJunctionExit () const |
| Check if the obstacle is close to a junction exit. | |
| bool | HasJunctionFeatureWithExits () const |
| Check if the obstacle has junction feature. | |
| void | BuildJunctionFeature () |
| Build junction feature. | |
| void | BuildLaneGraph () |
| Build obstacle's lane graph | |
| void | BuildLaneGraphFromLeftToRight () |
| Build obstacle's lane graph with lanes being ordered. | |
| void | SetCaution () |
| Set the obstacle as caution level | |
| bool | IsCaution () const |
| void | SetInteractiveTag () |
| Set the obstacle as interactive obstacle. | |
| void | SetNonInteractiveTag () |
| Set the obstacle as noninteractive obstacle. | |
| bool | IsInteractiveObstacle () const |
| void | SetEvaluatorType (const ObstacleConf::EvaluatorType &evaluator_type) |
| void | SetPredictorType (const ObstacleConf::PredictorType &predictor_type) |
| const ObstacleConf & | obstacle_conf () |
| PredictionObstacle | GeneratePredictionObstacle () |
静态 Public 成员函数 | |
| static std::unique_ptr< Obstacle > | Create (const perception::PerceptionObstacle &perception_obstacle, const double timestamp, const int prediction_id, ObstacleClusters *clusters_ptr) |
| Constructor | |
| static std::unique_ptr< Obstacle > | Create (const Feature &feature, ObstacleClusters *clusters_ptr) |
Prediction obstacle.
在文件 obstacle.h 第 52 行定义.
|
default |
|
virtualdefault |
Destructor
| void apollo::prediction::Obstacle::BuildJunctionFeature | ( | ) |
Build junction feature.
在文件 obstacle.cc 第 242 行定义.
| void apollo::prediction::Obstacle::BuildLaneGraph | ( | ) |
Build obstacle's lane graph
在文件 obstacle.cc 第 804 行定义.
| void apollo::prediction::Obstacle::BuildLaneGraphFromLeftToRight | ( | ) |
Build obstacle's lane graph with lanes being ordered.
This would be useful for lane-scanning algorithms.
在文件 obstacle.cc 第 981 行定义.
| void apollo::prediction::Obstacle::ClearOldInformation | ( | ) |
在文件 obstacle.cc 第 205 行定义.
|
static |
在文件 obstacle.cc 第 1417 行定义.
|
static |
Constructor
在文件 obstacle.cc 第 1406 行定义.
| const Feature & apollo::prediction::Obstacle::earliest_feature | ( | ) | const |
| const Feature & apollo::prediction::Obstacle::feature | ( | const size_t | i | ) | const |
Get the ith feature from latest to earliest.
| i | The index of the feature. |
在文件 obstacle.cc 第 67 行定义.
| PredictionObstacle apollo::prediction::Obstacle::GeneratePredictionObstacle | ( | ) |
在文件 obstacle.cc 第 1494 行定义.
| bool apollo::prediction::Obstacle::HasJunctionFeatureWithExits | ( | ) | const |
Check if the obstacle has junction feature.
在文件 obstacle.cc 第 622 行定义.
| size_t apollo::prediction::Obstacle::history_size | ( | ) | const |
Get the number of historical features.
在文件 obstacle.cc 第 93 行定义.
| int apollo::prediction::Obstacle::id | ( | ) | const |
| bool apollo::prediction::Obstacle::Insert | ( | const perception::PerceptionObstacle & | perception_obstacle, |
| const double | timestamp, | ||
| const int | prediction_id | ||
| ) |
Insert a perception obstacle with its timestamp.
| perception_obstacle | The obstacle from perception. |
| timestamp | The timestamp when the perception obstacle was detected. |
在文件 obstacle.cc 第 140 行定义.
| bool apollo::prediction::Obstacle::InsertFeature | ( | const Feature & | feature | ) |
Insert a feature proto message.
| feature | proto message. |
在文件 obstacle.cc 第 198 行定义.
| bool apollo::prediction::Obstacle::IsCaution | ( | ) | const |
在文件 obstacle.cc 第 1453 行定义.
| bool apollo::prediction::Obstacle::IsCloseToJunctionExit | ( | ) | const |
Check if the obstacle is close to a junction exit.
在文件 obstacle.cc 第 274 行定义.
| bool apollo::prediction::Obstacle::IsInJunction | ( | const std::string & | junction_id | ) | const |
Check if the obstacle is a junction.
| junction | ID |
在文件 obstacle.cc 第 223 行定义.
| bool apollo::prediction::Obstacle::IsInteractiveObstacle | ( | ) | const |
在文件 obstacle.cc 第 1475 行定义.
| bool apollo::prediction::Obstacle::IsNearJunction | ( | ) |
Check if the obstacle is near a junction.
在文件 obstacle.cc 第 130 行定义.
| bool apollo::prediction::Obstacle::IsOnLane | ( | ) | const |
Check if the obstacle is on any lane.
在文件 obstacle.cc 第 107 行定义.
| bool apollo::prediction::Obstacle::IsPedestrian | ( | ) | const |
在文件 obstacle.cc 第 56 行定义.
| bool apollo::prediction::Obstacle::IsSlow | ( | ) |
| bool apollo::prediction::Obstacle::IsStill | ( | ) |
Check if the obstacle is still.
在文件 obstacle.cc 第 95 行定义.
| const Feature & apollo::prediction::Obstacle::latest_feature | ( | ) | const |
| Feature * apollo::prediction::Obstacle::mutable_feature | ( | const size_t | i | ) |
Get a pointer to the ith feature from latest to earliest.
| i | The index of the feature. |
在文件 obstacle.cc 第 72 行定义.
| Feature * apollo::prediction::Obstacle::mutable_latest_feature | ( | ) |
|
inline |
在文件 obstacle.h 第 246 行定义.
| bool apollo::prediction::Obstacle::ReceivedOlderMessage | ( | const double | timestamp | ) | const |
在文件 obstacle.cc 第 1425 行定义.
| void apollo::prediction::Obstacle::SetCaution | ( | ) |
Set the obstacle as caution level
在文件 obstacle.cc 第 1447 行定义.
| void apollo::prediction::Obstacle::SetEvaluatorType | ( | const ObstacleConf::EvaluatorType & | evaluator_type | ) |
在文件 obstacle.cc 第 1484 行定义.
| void apollo::prediction::Obstacle::SetInteractiveTag | ( | ) |
Set the obstacle as interactive obstacle.
在文件 obstacle.cc 第 1461 行定义.
|
inline |
在文件 obstacle.h 第 72 行定义.
| void apollo::prediction::Obstacle::SetNearbyObstacles | ( | ) |
Set nearby obstacles.
在文件 obstacle.cc 第 1279 行定义.
| void apollo::prediction::Obstacle::SetNonInteractiveTag | ( | ) |
Set the obstacle as noninteractive obstacle.
在文件 obstacle.cc 第 1468 行定义.
| void apollo::prediction::Obstacle::SetPredictorType | ( | const ObstacleConf::PredictorType & | predictor_type | ) |
在文件 obstacle.cc 第 1489 行定义.
| double apollo::prediction::Obstacle::timestamp | ( | ) | const |
| bool apollo::prediction::Obstacle::ToIgnore | ( | ) |
Check if the obstacle can be ignored.
在文件 obstacle.cc 第 123 行定义.
| void apollo::prediction::Obstacle::TrimHistory | ( | const size_t | remain_size | ) |
在文件 obstacle.cc 第 217 行定义.
| PerceptionObstacle::Type apollo::prediction::Obstacle::type | ( | ) | const |
Get the type of perception obstacle's type.
在文件 obstacle.cc 第 54 行定义.