|
Apollo 11.0
自动驾驶开放平台
|
#include <obstacle_clusters.h>
Public 成员函数 | |
| ObstacleClusters ()=default | |
| Constructor | |
| void | Init () |
| Remove all lane graphs | |
| LaneGraph | GetLaneGraph (const double start_s, const double length, const bool consider_lane_split, std::shared_ptr< const apollo::hdmap::LaneInfo > lane_info_ptr) |
| Obtain a lane graph given a lane info and s | |
| LaneGraph | GetLaneGraphWithoutMemorizing (const double start_s, const double length, const bool is_on_lane, std::shared_ptr< const apollo::hdmap::LaneInfo > lane_info_ptr) |
| Obtain a lane graph given a lane info and s, but don't memorize it. | |
| bool | ForwardNearbyObstacle (const LaneSequence &lane_sequence, const double s, LaneObstacle *const lane_obstacle) |
| Get the nearest obstacle on lane sequence at s | |
| void | AddObstacle (const int obstacle_id, const std::string &lane_id, const double lane_s, const double lane_l) |
| Add an obstacle into clusters | |
| void | ClearObstacle () |
| void | SortObstacles () |
| Sort lane obstacles by lane s | |
| bool | ForwardNearbyObstacle (const LaneSequence &lane_sequence, const int obstacle_id, const double obstacle_s, const double obstacle_l, NearbyObstacle *const nearby_obstacle_ptr) |
| Get the forward nearest obstacle on lane sequence at s | |
| bool | BackwardNearbyObstacle (const LaneSequence &lane_sequence, const int obstacle_id, const double obstacle_s, const double obstacle_l, NearbyObstacle *const nearby_obstacle_ptr) |
| Get the backward nearest obstacle on lane sequence at s | |
| StopSign | QueryStopSignByLaneId (const std::string &lane_id) |
| Query stop sign by lane ID | |
| std::unordered_map< std::string, std::vector< LaneObstacle > > & | GetLaneObstacles () |
在文件 obstacle_clusters.h 第 33 行定义.
|
default |
Constructor
| void apollo::prediction::ObstacleClusters::AddObstacle | ( | const int | obstacle_id, |
| const std::string & | lane_id, | ||
| const double | lane_s, | ||
| const double | lane_l | ||
| ) |
Add an obstacle into clusters
| obstacle | id |
| lane | id |
| lane | s |
| lane | l |
在文件 obstacle_clusters.cc 第 48 行定义.
| bool apollo::prediction::ObstacleClusters::BackwardNearbyObstacle | ( | const LaneSequence & | lane_sequence, |
| const int | obstacle_id, | ||
| const double | obstacle_s, | ||
| const double | obstacle_l, | ||
| NearbyObstacle *const | nearby_obstacle_ptr | ||
| ) |
Get the backward nearest obstacle on lane sequence at s
| Lane | sequence |
| s | offset in the first lane of the lane sequence |
| the | forward obstacle on lane |
在文件 obstacle_clusters.cc 第 103 行定义.
| void apollo::prediction::ObstacleClusters::ClearObstacle | ( | ) |
在文件 obstacle_clusters.cc 第 59 行定义.
| bool apollo::prediction::ObstacleClusters::ForwardNearbyObstacle | ( | const LaneSequence & | lane_sequence, |
| const double | s, | ||
| LaneObstacle *const | lane_obstacle | ||
| ) |
Get the nearest obstacle on lane sequence at s
| Lane | sequence |
| s | offset in the first lane of the lane sequence |
| the | forward obstacle on lane |
| bool apollo::prediction::ObstacleClusters::ForwardNearbyObstacle | ( | const LaneSequence & | lane_sequence, |
| const int | obstacle_id, | ||
| const double | obstacle_s, | ||
| const double | obstacle_l, | ||
| NearbyObstacle *const | nearby_obstacle_ptr | ||
| ) |
Get the forward nearest obstacle on lane sequence at s
| Lane | sequence |
| s | offset in the first lane of the lane sequence |
| the | forward obstacle on lane |
在文件 obstacle_clusters.cc 第 73 行定义.
| LaneGraph apollo::prediction::ObstacleClusters::GetLaneGraph | ( | const double | start_s, |
| const double | length, | ||
| const bool | consider_lane_split, | ||
| std::shared_ptr< const apollo::hdmap::LaneInfo > | lane_info_ptr | ||
| ) |
Obtain a lane graph given a lane info and s
| lane | start s |
| lane | total length |
| if | consider lane split ahead |
| lane | info |
在文件 obstacle_clusters.cc 第 29 行定义.
| LaneGraph apollo::prediction::ObstacleClusters::GetLaneGraphWithoutMemorizing | ( | const double | start_s, |
| const double | length, | ||
| const bool | is_on_lane, | ||
| std::shared_ptr< const apollo::hdmap::LaneInfo > | lane_info_ptr | ||
| ) |
Obtain a lane graph given a lane info and s, but don't memorize it.
| lane | start s |
| lane | total length |
| if | the obstacle is on lane |
| lane | info |
在文件 obstacle_clusters.cc 第 39 行定义.
|
inline |
在文件 obstacle_clusters.h 第 128 行定义.
| void apollo::prediction::ObstacleClusters::Init | ( | ) |
Remove all lane graphs
| StopSign apollo::prediction::ObstacleClusters::QueryStopSignByLaneId | ( | const std::string & | lane_id | ) |
Query stop sign by lane ID
| lane | ID |
在文件 obstacle_clusters.cc 第 165 行定义.
| void apollo::prediction::ObstacleClusters::SortObstacles | ( | ) |
Sort lane obstacles by lane s
在文件 obstacle_clusters.cc 第 63 行定义.