Apollo 10.0
自动驾驶开放平台
|
ReferenceLineInfo holds all data for one reference line. 更多...
#include <reference_line_info.h>
Public 类型 | |
enum class | LaneType { LeftForward , LeftReverse , RightForward , RightReverse } |
enum | OverlapType { CLEAR_AREA = 1 , CROSSWALK = 2 , OBSTACLE = 3 , PNC_JUNCTION = 4 , SIGNAL = 5 , STOP_SIGN = 6 , YIELD_SIGN = 7 , JUNCTION = 8 , AREA = 9 } |
Public 成员函数 | |
ReferenceLineInfo ()=default | |
ReferenceLineInfo (const common::VehicleState &vehicle_state, const common::TrajectoryPoint &adc_planning_point, const ReferenceLine &reference_line, const hdmap::RouteSegments &segments) | |
bool | Init (const std::vector< const Obstacle * > &obstacles, double target_speed) |
bool | AddObstacles (const std::vector< const Obstacle * > &obstacles) |
Obstacle * | AddObstacle (const Obstacle *obstacle) |
const common::VehicleState & | vehicle_state () const |
PathDecision * | path_decision () |
const PathDecision & | path_decision () const |
const ReferenceLine & | reference_line () const |
ReferenceLine * | mutable_reference_line () |
double | SDistanceToDestination () const |
double | SDistanceToRefEnd () const |
bool | ReachedDestination () const |
void | SetTrajectory (const DiscretizedTrajectory &trajectory) |
const DiscretizedTrajectory & | trajectory () const |
double | Cost () const |
void | AddCost (double cost) |
void | SetCost (double cost) |
double | PriorityCost () const |
void | SetPriorityCost (double cost) |
void | SetLatticeStopPoint (const StopPoint &stop_point) |
void | SetLatticeCruiseSpeed (double speed) |
const PlanningTarget & | planning_target () const |
void | SetCruiseSpeed (double speed) |
void | LimitCruiseSpeed (double speed) |
Limit the cruise speed based on the "base_cruise_speed_". | |
double | GetBaseCruiseSpeed () const |
double | GetCruiseSpeed () const |
hdmap::LaneInfoConstPtr | LocateLaneInfo (const double s) const |
bool | GetNeighborLaneInfo (const ReferenceLineInfo::LaneType lane_type, const double s, hdmap::Id *ptr_lane_id, double *ptr_lane_width) const |
bool | IsStartFrom (const ReferenceLineInfo &previous_reference_line_info) const |
check if current reference line is started from another reference line info line. | |
planning_internal::Debug * | mutable_debug () |
const planning_internal::Debug & | debug () const |
LatencyStats * | mutable_latency_stats () |
const LatencyStats & | latency_stats () const |
const PathData & | path_data () const |
const PathData & | fallback_path_data () const |
const SpeedData & | speed_data () const |
PathData * | mutable_path_data () |
PathData * | mutable_fallback_path_data () |
SpeedData * | mutable_speed_data () |
const RSSInfo & | rss_info () const |
RSSInfo * | mutable_rss_info () |
bool | CombinePathAndSpeedProfile (const double relative_time, const double start_s, DiscretizedTrajectory *discretized_trajectory) |
bool | AdjustTrajectoryWhichStartsFromCurrentPos (const common::TrajectoryPoint &planning_start_point, const std::vector< common::TrajectoryPoint > &trajectory, DiscretizedTrajectory *adjusted_trajectory) |
const SLBoundary & | AdcSlBoundary () const |
std::string | PathSpeedDebugString () const |
void | PrintReferenceSegmentDebugString () |
bool | IsChangeLanePath () const |
Check if the current reference line is a change lane reference line, i.e., ADC's current position is not on this reference line. | |
bool | IsNeighborLanePath () const |
Check if the current reference line is the neighbor of the vehicle current position | |
void | SetDrivable (bool drivable) |
Set if the vehicle can drive following this reference line A planner need to set this value to true if the reference line is OK | |
bool | IsDrivable () const |
void | ExportEngageAdvice (common::EngageAdvice *engage_advice, PlanningContext *planning_context) const |
const hdmap::RouteSegments & | Lanes () const |
std::list< hdmap::Id > | TargetLaneId () const |
void | ExportDecision (DecisionResult *decision_result, PlanningContext *planning_context) const |
void | SetJunctionRightOfWay (const double junction_s, const bool is_protected) const |
ADCTrajectory::RightOfWayStatus | GetRightOfWayStatus () const |
hdmap::Lane::LaneTurn | GetPathTurnType (const double s) const |
bool | GetIntersectionRightofWayStatus (const hdmap::PathOverlap &pnc_junction_overlap) const |
double | OffsetToOtherReferenceLine () const |
void | SetOffsetToOtherReferenceLine (const double offset) |
const std::vector< PathBoundary > & | GetCandidatePathBoundaries () const |
void | SetCandidatePathBoundaries (std::vector< PathBoundary > &&candidate_path_boundaries) |
const std::vector< PathData > & | GetCandidatePathData () const |
std::vector< PathData > * | MutableCandidatePathData () |
void | SetCandidatePathData (std::vector< PathData > &&candidate_path_data) |
Obstacle * | GetBlockingObstacle () const |
void | SetBlockingObstacle (const std::string &blocking_obstacle_id) |
bool | is_path_lane_borrow () const |
void | set_is_path_lane_borrow (const bool is_path_lane_borrow) |
void | set_is_on_reference_line () |
uint32_t | GetPriority () const |
void | SetPriority (uint32_t priority) |
void | set_trajectory_type (const ADCTrajectory::TrajectoryType trajectory_type) |
ADCTrajectory::TrajectoryType | trajectory_type () const |
StGraphData * | mutable_st_graph_data () |
const StGraphData & | st_graph_data () |
const std::vector< std::pair< OverlapType, hdmap::PathOverlap > > & | FirstEncounteredOverlaps () const |
int | GetPnCJunction (const double s, hdmap::PathOverlap *pnc_junction_overlap) const |
int | GetJunction (const double s, hdmap::PathOverlap *junction_overlap) const |
int | GetArea (const double s, hdmap::PathOverlap *area_overlap) const |
std::vector< common::SLPoint > | GetAllStopDecisionSLPoint () const |
void | SetTurnSignal (const common::VehicleSignal::TurnSignal &turn_signal) |
void | SetEmergencyLight () |
void | set_path_reusable (const bool path_reusable) |
bool | path_reusable () const |
hdmap::PathOverlap * | GetOverlapOnReferenceLine (const std::string &overlap_id, const OverlapType &overlap_type) const |
void | set_key (std::size_t key) |
std::size_t | key () const |
void | set_index (std::size_t index) |
std::size_t | index () const |
void | set_id (std::string id) |
std::string | id () const |
void | GetRangeOverlaps (std::vector< hdmap::PathOverlap > *path_overlaps, double start_s, double end_s) |
const std::vector< double > & | reference_line_towing_l () const |
std::vector< double > * | mutable_reference_line_towing_l () |
const PathBoundary & | reference_line_towing_path_boundary () const |
PathBoundary * | mutable_reference_line_towing_path_boundary () |
ReferenceLineInfo holds all data for one reference line.
在文件 reference_line_info.h 第 55 行定义.
|
strong |
枚举值 | |
---|---|
CLEAR_AREA | |
CROSSWALK | |
OBSTACLE | |
PNC_JUNCTION | |
SIGNAL | |
STOP_SIGN | |
YIELD_SIGN | |
JUNCTION | |
AREA |
在文件 reference_line_info.h 第 238 行定义.
|
default |
apollo::planning::ReferenceLineInfo::ReferenceLineInfo | ( | const common::VehicleState & | vehicle_state, |
const common::TrajectoryPoint & | adc_planning_point, | ||
const ReferenceLine & | reference_line, | ||
const hdmap::RouteSegments & | segments | ||
) |
在文件 reference_line_info.cc 第 53 行定义.
const SLBoundary & apollo::planning::ReferenceLineInfo::AdcSlBoundary | ( | ) | const |
在文件 reference_line_info.cc 第 366 行定义.
|
inline |
在文件 reference_line_info.h 第 87 行定义.
在文件 reference_line_info.cc 第 394 行定义.
bool apollo::planning::ReferenceLineInfo::AddObstacles | ( | const std::vector< const Obstacle * > & | obstacles | ) |
在文件 reference_line_info.cc 第 441 行定义.
bool apollo::planning::ReferenceLineInfo::AdjustTrajectoryWhichStartsFromCurrentPos | ( | const common::TrajectoryPoint & | planning_start_point, |
const std::vector< common::TrajectoryPoint > & | trajectory, | ||
DiscretizedTrajectory * | adjusted_trajectory | ||
) |
在文件 reference_line_info.cc 第 593 行定义.
bool apollo::planning::ReferenceLineInfo::CombinePathAndSpeedProfile | ( | const double | relative_time, |
const double | start_s, | ||
DiscretizedTrajectory * | discretized_trajectory | ||
) |
在文件 reference_line_info.cc 第 531 行定义.
|
inline |
在文件 reference_line_info.h 第 86 行定义.
|
inline |
在文件 reference_line_info.h 第 127 行定义.
void apollo::planning::ReferenceLineInfo::ExportDecision | ( | DecisionResult * | decision_result, |
PlanningContext * | planning_context | ||
) | const |
在文件 reference_line_info.cc 第 873 行定义.
void apollo::planning::ReferenceLineInfo::ExportEngageAdvice | ( | common::EngageAdvice * | engage_advice, |
PlanningContext * | planning_context | ||
) | const |
在文件 reference_line_info.cc 第 1008 行定义.
const PathData & apollo::planning::ReferenceLineInfo::fallback_path_data | ( | ) | const |
在文件 reference_line_info.cc 第 513 行定义.
|
inline |
在文件 reference_line_info.h 第 251 行定义.
std::vector< common::SLPoint > apollo::planning::ReferenceLineInfo::GetAllStopDecisionSLPoint | ( | ) | const |
在文件 reference_line_info.cc 第 1164 行定义.
int apollo::planning::ReferenceLineInfo::GetArea | ( | const double | s, |
hdmap::PathOverlap * | area_overlap | ||
) | const |
在文件 reference_line_info.cc 第 1143 行定义.
double apollo::planning::ReferenceLineInfo::GetBaseCruiseSpeed | ( | ) | const |
在文件 reference_line_info.cc 第 165 行定义.
|
inline |
在文件 reference_line_info.h 第 210 行定义.
const std::vector< PathBoundary > & apollo::planning::ReferenceLineInfo::GetCandidatePathBoundaries | ( | ) | const |
在文件 reference_line_info.cc 第 148 行定义.
const std::vector< PathData > & apollo::planning::ReferenceLineInfo::GetCandidatePathData | ( | ) | const |
在文件 reference_line_info.cc 第 139 行定义.
double apollo::planning::ReferenceLineInfo::GetCruiseSpeed | ( | ) | const |
在文件 reference_line_info.cc 第 170 行定义.
bool apollo::planning::ReferenceLineInfo::GetIntersectionRightofWayStatus | ( | const hdmap::PathOverlap & | pnc_junction_overlap | ) | const |
在文件 reference_line_info.cc 第 1101 行定义.
int apollo::planning::ReferenceLineInfo::GetJunction | ( | const double | s, |
hdmap::PathOverlap * | junction_overlap | ||
) | const |
在文件 reference_line_info.cc 第 1127 行定义.
bool apollo::planning::ReferenceLineInfo::GetNeighborLaneInfo | ( | const ReferenceLineInfo::LaneType | lane_type, |
const double | s, | ||
hdmap::Id * | ptr_lane_id, | ||
double * | ptr_lane_width | ||
) | const |
在文件 reference_line_info.cc 第 186 行定义.
hdmap::PathOverlap * apollo::planning::ReferenceLineInfo::GetOverlapOnReferenceLine | ( | const std::string & | overlap_id, |
const OverlapType & | overlap_type | ||
) | const |
在文件 reference_line_info.cc 第 1192 行定义.
hdmap::Lane::LaneTurn apollo::planning::ReferenceLineInfo::GetPathTurnType | ( | const double | s | ) | const |
在文件 reference_line_info.cc 第 1079 行定义.
int apollo::planning::ReferenceLineInfo::GetPnCJunction | ( | const double | s, |
hdmap::PathOverlap * | pnc_junction_overlap | ||
) | const |
在文件 reference_line_info.cc 第 1111 行定义.
|
inline |
在文件 reference_line_info.h 第 220 行定义.
void apollo::planning::ReferenceLineInfo::GetRangeOverlaps | ( | std::vector< hdmap::PathOverlap > * | path_overlaps, |
double | start_s, | ||
double | end_s | ||
) |
在文件 reference_line_info.cc 第 1255 行定义.
ADCTrajectory::RightOfWayStatus apollo::planning::ReferenceLineInfo::GetRightOfWayStatus | ( | ) | const |
在文件 reference_line_info.cc 第 342 行定义.
|
inline |
在文件 reference_line_info.h 第 279 行定义.
|
inline |
在文件 reference_line_info.h 第 276 行定义.
bool apollo::planning::ReferenceLineInfo::Init | ( | const std::vector< const Obstacle * > & | obstacles, |
double | target_speed | ||
) |
在文件 reference_line_info.cc 第 77 行定义.
|
inline |
在文件 reference_line_info.h 第 213 行定义.
bool apollo::planning::ReferenceLineInfo::IsChangeLanePath | ( | ) | const |
Check if the current reference line is a change lane reference line, i.e., ADC's current position is not on this reference line.
在文件 reference_line_info.cc 第 682 行定义.
bool apollo::planning::ReferenceLineInfo::IsDrivable | ( | ) | const |
在文件 reference_line_info.cc 第 680 行定义.
bool apollo::planning::ReferenceLineInfo::IsNeighborLanePath | ( | ) | const |
Check if the current reference line is the neighbor of the vehicle current position
在文件 reference_line_info.cc 第 686 行定义.
bool apollo::planning::ReferenceLineInfo::IsStartFrom | ( | const ReferenceLineInfo & | previous_reference_line_info | ) | const |
check if current reference line is started from another reference line info line.
The method is to check if the start point of current reference line is on previous reference line info.
在文件 reference_line_info.cc 第 498 行定义.
|
inline |
在文件 reference_line_info.h 第 273 行定义.
const hdmap::RouteSegments & apollo::planning::ReferenceLineInfo::Lanes | ( | ) | const |
在文件 reference_line_info.cc 第 356 行定义.
|
inline |
在文件 reference_line_info.h 第 129 行定义.
void apollo::planning::ReferenceLineInfo::LimitCruiseSpeed | ( | double | speed | ) |
Limit the cruise speed based on the "base_cruise_speed_".
If the new setting speed > "base_cruise_speed_", it will be ignored.
speed | The new speed. |
在文件 reference_line_info.cc 第 158 行定义.
hdmap::LaneInfoConstPtr apollo::planning::ReferenceLineInfo::LocateLaneInfo | ( | const double | s | ) | const |
在文件 reference_line_info.cc 第 174 行定义.
|
inline |
在文件 reference_line_info.h 第 126 行定义.
PathData * apollo::planning::ReferenceLineInfo::mutable_fallback_path_data | ( | ) |
在文件 reference_line_info.cc 第 521 行定义.
|
inline |
在文件 reference_line_info.h 第 128 行定义.
PathData * apollo::planning::ReferenceLineInfo::mutable_path_data | ( | ) |
在文件 reference_line_info.cc 第 519 行定义.
ReferenceLine * apollo::planning::ReferenceLineInfo::mutable_reference_line | ( | ) |
在文件 reference_line_info.cc 第 380 行定义.
std::vector< double > * apollo::planning::ReferenceLineInfo::mutable_reference_line_towing_l | ( | ) |
在文件 reference_line_info.cc 第 1281 行定义.
PathBoundary * apollo::planning::ReferenceLineInfo::mutable_reference_line_towing_path_boundary | ( | ) |
在文件 reference_line_info.cc 第 1290 行定义.
RSSInfo * apollo::planning::ReferenceLineInfo::mutable_rss_info | ( | ) |
在文件 reference_line_info.cc 第 529 行定义.
SpeedData * apollo::planning::ReferenceLineInfo::mutable_speed_data | ( | ) |
在文件 reference_line_info.cc 第 525 行定义.
|
inline |
在文件 reference_line_info.h 第 233 行定义.
std::vector< PathData > * apollo::planning::ReferenceLineInfo::MutableCandidatePathData | ( | ) |
在文件 reference_line_info.cc 第 1251 行定义.
|
inline |
在文件 reference_line_info.h 第 194 行定义.
const PathData & apollo::planning::ReferenceLineInfo::path_data | ( | ) | const |
在文件 reference_line_info.cc 第 511 行定义.
PathDecision * apollo::planning::ReferenceLineInfo::path_decision | ( | ) |
在文件 reference_line_info.cc 第 370 行定义.
const PathDecision & apollo::planning::ReferenceLineInfo::path_decision | ( | ) | const |
在文件 reference_line_info.cc 第 372 行定义.
|
inline |
在文件 reference_line_info.h 第 268 行定义.
std::string apollo::planning::ReferenceLineInfo::PathSpeedDebugString | ( | ) | const |
在文件 reference_line_info.cc 第 690 行定义.
|
inline |
在文件 reference_line_info.h 第 94 行定义.
void apollo::planning::ReferenceLineInfo::PrintReferenceSegmentDebugString | ( | ) |
在文件 reference_line_info.cc 第 1294 行定义.
|
inline |
在文件 reference_line_info.h 第 89 行定义.
bool apollo::planning::ReferenceLineInfo::ReachedDestination | ( | ) | const |
在文件 reference_line_info.cc 第 815 行定义.
const ReferenceLine & apollo::planning::ReferenceLineInfo::reference_line | ( | ) | const |
在文件 reference_line_info.cc 第 376 行定义.
const std::vector< double > & apollo::planning::ReferenceLineInfo::reference_line_towing_l | ( | ) | const |
在文件 reference_line_info.cc 第 1277 行定义.
const PathBoundary & apollo::planning::ReferenceLineInfo::reference_line_towing_path_boundary | ( | ) | const |
在文件 reference_line_info.cc 第 1285 行定义.
const RSSInfo & apollo::planning::ReferenceLineInfo::rss_info | ( | ) | const |
在文件 reference_line_info.cc 第 527 行定义.
double apollo::planning::ReferenceLineInfo::SDistanceToDestination | ( | ) | const |
在文件 reference_line_info.cc 第 824 行定义.
double apollo::planning::ReferenceLineInfo::SDistanceToRefEnd | ( | ) | const |
在文件 reference_line_info.cc 第 842 行定义.
|
inline |
在文件 reference_line_info.h 第 278 行定义.
|
inline |
在文件 reference_line_info.h 第 275 行定义.
|
inline |
在文件 reference_line_info.h 第 218 行定义.
|
inline |
在文件 reference_line_info.h 第 214 行定义.
|
inline |
在文件 reference_line_info.h 第 272 行定义.
|
inline |
在文件 reference_line_info.h 第 264 行定义.
|
inline |
在文件 reference_line_info.h 第 224 行定义.
void apollo::planning::ReferenceLineInfo::SetBlockingObstacle | ( | const std::string & | blocking_obstacle_id | ) |
在文件 reference_line_info.cc 第 1159 行定义.
void apollo::planning::ReferenceLineInfo::SetCandidatePathBoundaries | ( | std::vector< PathBoundary > && | candidate_path_boundaries | ) |
在文件 reference_line_info.cc 第 153 行定义.
void apollo::planning::ReferenceLineInfo::SetCandidatePathData | ( | std::vector< PathData > && | candidate_path_data | ) |
在文件 reference_line_info.cc 第 143 行定义.
|
inline |
在文件 reference_line_info.h 第 88 行定义.
|
inline |
在文件 reference_line_info.h 第 96 行定义.
void apollo::planning::ReferenceLineInfo::SetDrivable | ( | bool | drivable | ) |
Set if the vehicle can drive following this reference line A planner need to set this value to true if the reference line is OK
在文件 reference_line_info.cc 第 678 行定义.
void apollo::planning::ReferenceLineInfo::SetEmergencyLight | ( | ) |
在文件 reference_line_info.cc 第 804 行定义.
void apollo::planning::ReferenceLineInfo::SetJunctionRightOfWay | ( | const double | junction_s, |
const bool | is_protected | ||
) | const |
在文件 reference_line_info.cc 第 333 行定义.
void apollo::planning::ReferenceLineInfo::SetLatticeCruiseSpeed | ( | double | speed | ) |
在文件 reference_line_info.cc 第 494 行定义.
void apollo::planning::ReferenceLineInfo::SetLatticeStopPoint | ( | const StopPoint & | stop_point | ) |
在文件 reference_line_info.cc 第 490 行定义.
|
inline |
在文件 reference_line_info.h 第 197 行定义.
|
inline |
在文件 reference_line_info.h 第 222 行定义.
|
inline |
在文件 reference_line_info.h 第 90 行定义.
void apollo::planning::ReferenceLineInfo::SetTrajectory | ( | const DiscretizedTrajectory & | trajectory | ) |
在文件 reference_line_info.cc 第 384 行定义.
void apollo::planning::ReferenceLineInfo::SetTurnSignal | ( | const common::VehicleSignal::TurnSignal & | turn_signal | ) |
在文件 reference_line_info.cc 第 799 行定义.
const SpeedData & apollo::planning::ReferenceLineInfo::speed_data | ( | ) | const |
在文件 reference_line_info.cc 第 517 行定义.
|
inline |
在文件 reference_line_info.h 第 235 行定义.
std::list< hdmap::Id > apollo::planning::ReferenceLineInfo::TargetLaneId | ( | ) | const |
在文件 reference_line_info.cc 第 358 行定义.
const DiscretizedTrajectory & apollo::planning::ReferenceLineInfo::trajectory | ( | ) | const |
在文件 reference_line_info.cc 第 486 行定义.
|
inline |
在文件 reference_line_info.h 第 229 行定义.
|
inline |
在文件 reference_line_info.h 第 70 行定义.