|
Apollo 11.0
自动驾驶开放平台
|
NaviObstacleDecider is used to make appropriate decisions for obstacles around the vehicle in navigation mode. 更多...
#include <navi_obstacle_decider.h>
Public 成员函数 | |
| NaviObstacleDecider () | |
| virtual | ~NaviObstacleDecider ()=default |
| bool | Init (const PlannerNaviConfig &config) override |
| Initialization parameters | |
| double | GetNudgeDistance (const std::vector< const Obstacle * > &obstacles, const ReferenceLine &reference_line, const PathDecision &path_decision, const std::vector< common::PathPoint > &path_data_points, const common::VehicleState &vehicle_state, int *lane_obstacles_num) |
| get the actual nudgable distance according to the position of the obstacle | |
| void | GetUnsafeObstaclesInfo (const std::vector< common::PathPoint > &path_data_points, const std::vector< const Obstacle * > &obstacles) |
| get the unsafe obstacles between trajectory and reference line. | |
| const std::vector< std::tuple< std::string, double, double > > & | UnsafeObstacles () |
| Get unsafe obstacles' ID | |
Public 成员函数 继承自 apollo::planning::NaviTask | |
| NaviTask (const std::string &name) | |
| virtual | ~NaviTask ()=default |
| virtual const std::string & | Name () const |
| virtual apollo::common::Status | Execute (Frame *frame, ReferenceLineInfo *reference_line_info) |
额外继承的成员函数 | |
Protected 属性 继承自 apollo::planning::NaviTask | |
| bool | is_init_ = false |
| Frame * | frame_ = nullptr |
| ReferenceLineInfo * | reference_line_info_ = nullptr |
NaviObstacleDecider is used to make appropriate decisions for obstacles around the vehicle in navigation mode.
Note that NaviObstacleDecider is only used in navigation mode (turn on navigation mode by setting "FLAGS_use_navigation_mode" to "true") and do not use it in standard mode.
在文件 navi_obstacle_decider.h 第 53 行定义.
| apollo::planning::NaviObstacleDecider::NaviObstacleDecider | ( | ) |
在文件 navi_obstacle_decider.cc 第 45 行定义.
|
virtualdefault |
| double apollo::planning::NaviObstacleDecider::GetNudgeDistance | ( | const std::vector< const Obstacle * > & | obstacles, |
| const ReferenceLine & | reference_line, | ||
| const PathDecision & | path_decision, | ||
| const std::vector< common::PathPoint > & | path_data_points, | ||
| const common::VehicleState & | vehicle_state, | ||
| int * | lane_obstacles_num | ||
| ) |
get the actual nudgable distance according to the position of the obstacle
在文件 navi_obstacle_decider.cc 第 261 行定义.
| void apollo::planning::NaviObstacleDecider::GetUnsafeObstaclesInfo | ( | const std::vector< common::PathPoint > & | path_data_points, |
| const std::vector< const Obstacle * > & | obstacles | ||
| ) |
get the unsafe obstacles between trajectory and reference line.
在文件 navi_obstacle_decider.cc 第 356 行定义.
|
overridevirtual |
Initialization parameters
重载 apollo::planning::NaviTask .
在文件 navi_obstacle_decider.cc 第 47 行定义.
|
inline |
Get unsafe obstacles' ID
在文件 navi_obstacle_decider.h 第 191 行定义.