|
Apollo
6.0
Open source self driving car software
|
Prediction obstacle. More...
#include <obstacle.h>

Public Member Functions | |
| Obstacle ()=default | |
| virtual | ~Obstacle ()=default |
| Destructor. More... | |
| 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. More... | |
| bool | InsertFeature (const Feature &feature) |
| Insert a feature proto message. More... | |
| void | ClearOldInformation () |
| void | TrimHistory (const size_t remain_size) |
| perception::PerceptionObstacle::Type | type () const |
| Get the type of perception obstacle's type. More... | |
| bool | IsPedestrian () const |
| int | id () const |
| Get the obstacle's ID. More... | |
| double | timestamp () const |
| Get the obstacle's timestamp. More... | |
| bool | ReceivedOlderMessage (const double timestamp) const |
| const Feature & | feature (const size_t i) const |
| Get the ith feature from latest to earliest. More... | |
| Feature * | mutable_feature (const size_t i) |
| Get a pointer to the ith feature from latest to earliest. More... | |
| const Feature & | latest_feature () const |
| Get the latest feature. More... | |
| const Feature & | earliest_feature () const |
| Get the earliest feature. More... | |
| Feature * | mutable_latest_feature () |
| Get a pointer to the latest feature. More... | |
| void | SetNearbyObstacles () |
| Set nearby obstacles. More... | |
| size_t | history_size () const |
| Get the number of historical features. More... | |
| bool | IsStill () |
| Check if the obstacle is still. More... | |
| bool | IsSlow () |
| Check if the obstacle is slow. More... | |
| bool | IsOnLane () const |
| Check if the obstacle is on any lane. More... | |
| bool | ToIgnore () |
| Check if the obstacle can be ignored. More... | |
| bool | IsNearJunction () |
| Check if the obstacle is near a junction. More... | |
| bool | IsInJunction (const std::string &junction_id) const |
| Check if the obstacle is a junction. More... | |
| bool | IsCloseToJunctionExit () const |
| Check if the obstacle is close to a junction exit. More... | |
| bool | HasJunctionFeatureWithExits () const |
| Check if the obstacle has junction feature. More... | |
| void | BuildJunctionFeature () |
| Build junction feature. More... | |
| void | BuildLaneGraph () |
| Build obstacle's lane graph. More... | |
| void | BuildLaneGraphFromLeftToRight () |
| Build obstacle's lane graph with lanes being ordered. This would be useful for lane-scanning algorithms. More... | |
| void | SetCaution () |
| Set the obstacle as caution level. More... | |
| bool | IsCaution () const |
| void | SetEvaluatorType (const ObstacleConf::EvaluatorType &evaluator_type) |
| void | SetPredictorType (const ObstacleConf::PredictorType &predictor_type) |
| const ObstacleConf & | obstacle_conf () |
| PredictionObstacle | GeneratePredictionObstacle () |
Static Public Member Functions | |
| static std::unique_ptr< Obstacle > | Create (const perception::PerceptionObstacle &perception_obstacle, const double timestamp, const int prediction_id, ObstacleClusters *clusters_ptr) |
| Constructor. More... | |
| static std::unique_ptr< Obstacle > | Create (const Feature &feature, ObstacleClusters *clusters_ptr) |
Prediction obstacle.
|
default |
|
virtualdefault |
Destructor.
| void apollo::prediction::Obstacle::BuildJunctionFeature | ( | ) |
Build junction feature.
| void apollo::prediction::Obstacle::BuildLaneGraph | ( | ) |
Build obstacle's lane graph.
| void apollo::prediction::Obstacle::BuildLaneGraphFromLeftToRight | ( | ) |
Build obstacle's lane graph with lanes being ordered. This would be useful for lane-scanning algorithms.
| void apollo::prediction::Obstacle::ClearOldInformation | ( | ) |
|
static |
Constructor.
|
static |
| const Feature& apollo::prediction::Obstacle::earliest_feature | ( | ) | const |
Get the earliest feature.
| 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. |
| PredictionObstacle apollo::prediction::Obstacle::GeneratePredictionObstacle | ( | ) |
| bool apollo::prediction::Obstacle::HasJunctionFeatureWithExits | ( | ) | const |
Check if the obstacle has junction feature.
| size_t apollo::prediction::Obstacle::history_size | ( | ) | const |
Get the number of historical features.
| int apollo::prediction::Obstacle::id | ( | ) | const |
Get the obstacle's ID.
| 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. |
| bool apollo::prediction::Obstacle::InsertFeature | ( | const Feature & | feature | ) |
Insert a feature proto message.
| feature | proto message. |
| bool apollo::prediction::Obstacle::IsCaution | ( | ) | const |
| bool apollo::prediction::Obstacle::IsCloseToJunctionExit | ( | ) | const |
Check if the obstacle is close to a junction exit.
| bool apollo::prediction::Obstacle::IsInJunction | ( | const std::string & | junction_id | ) | const |
Check if the obstacle is a junction.
| junction | ID |
| bool apollo::prediction::Obstacle::IsNearJunction | ( | ) |
Check if the obstacle is near a junction.
| bool apollo::prediction::Obstacle::IsOnLane | ( | ) | const |
Check if the obstacle is on any lane.
| bool apollo::prediction::Obstacle::IsPedestrian | ( | ) | const |
| bool apollo::prediction::Obstacle::IsSlow | ( | ) |
Check if the obstacle is slow.
| bool apollo::prediction::Obstacle::IsStill | ( | ) |
Check if the obstacle is still.
| const Feature& apollo::prediction::Obstacle::latest_feature | ( | ) | const |
Get the latest feature.
| 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. |
| Feature* apollo::prediction::Obstacle::mutable_latest_feature | ( | ) |
Get a pointer to the latest feature.
|
inline |
| bool apollo::prediction::Obstacle::ReceivedOlderMessage | ( | const double | timestamp | ) | const |
| void apollo::prediction::Obstacle::SetCaution | ( | ) |
Set the obstacle as caution level.
| void apollo::prediction::Obstacle::SetEvaluatorType | ( | const ObstacleConf::EvaluatorType & | evaluator_type | ) |
|
inline |
| void apollo::prediction::Obstacle::SetNearbyObstacles | ( | ) |
Set nearby obstacles.
| void apollo::prediction::Obstacle::SetPredictorType | ( | const ObstacleConf::PredictorType & | predictor_type | ) |
| double apollo::prediction::Obstacle::timestamp | ( | ) | const |
Get the obstacle's timestamp.
| bool apollo::prediction::Obstacle::ToIgnore | ( | ) |
Check if the obstacle can be ignored.
| void apollo::prediction::Obstacle::TrimHistory | ( | const size_t | remain_size | ) |
| perception::PerceptionObstacle::Type apollo::prediction::Obstacle::type | ( | ) | const |
Get the type of perception obstacle's type.
1.8.13