Apollo 10.0
自动驾驶开放平台
apollo::hdmap::HDMap类 参考

High-precision map loader interface. 更多...

#include <hdmap.h>

apollo::hdmap::HDMap 的协作图:

Public 成员函数

int LoadMapFromFile (const std::string &map_filename)
 load map from local file
 
int LoadMapFromProto (const Map &map_proto)
 load map from a given protobuf message.
 
LaneInfoConstPtr GetLaneById (const Id &id) const
 
JunctionInfoConstPtr GetJunctionById (const Id &id) const
 
SignalInfoConstPtr GetSignalById (const Id &id) const
 
CrosswalkInfoConstPtr GetCrosswalkById (const Id &id) const
 
StopSignInfoConstPtr GetStopSignById (const Id &id) const
 
YieldSignInfoConstPtr GetYieldSignById (const Id &id) const
 
ClearAreaInfoConstPtr GetClearAreaById (const Id &id) const
 
SpeedBumpInfoConstPtr GetSpeedBumpById (const Id &id) const
 
OverlapInfoConstPtr GetOverlapById (const Id &id) const
 
RoadInfoConstPtr GetRoadById (const Id &id) const
 
ParkingSpaceInfoConstPtr GetParkingSpaceById (const Id &id) const
 
PNCJunctionInfoConstPtr GetPNCJunctionById (const Id &id) const
 
RSUInfoConstPtr GetRSUById (const Id &id) const
 
AreaInfoConstPtr GetAreaById (const Id &id) const
 
BarrierGateInfoConstPtr GetBarrierGateById (const Id &id) const
 
int GetAreas (const apollo::common::PointENU &point, double distance, std::vector< AreaInfoConstPtr > *areas) const
 get all areas in certain range
 
int GetLanes (const apollo::common::PointENU &point, double distance, std::vector< LaneInfoConstPtr > *lanes) const
 get all lanes in certain range
 
int GetJunctions (const apollo::common::PointENU &point, double distance, std::vector< JunctionInfoConstPtr > *junctions) const
 get all junctions in certain range
 
int GetSignals (const apollo::common::PointENU &point, double distance, std::vector< SignalInfoConstPtr > *signals) const
 get all signals in certain range
 
int GetBarrierGates (const apollo::common::PointENU &point, double distance, std::vector< BarrierGateInfoConstPtr > *barrier_gates) const
 get all barrier_gates in certain range
 
int GetCrosswalks (const apollo::common::PointENU &point, double distance, std::vector< CrosswalkInfoConstPtr > *crosswalks) const
 get all crosswalks in certain range
 
int GetStopSigns (const apollo::common::PointENU &point, double distance, std::vector< StopSignInfoConstPtr > *stop_signs) const
 get all stop signs in certain range
 
int GetYieldSigns (const apollo::common::PointENU &point, double distance, std::vector< YieldSignInfoConstPtr > *yield_signs) const
 get all yield signs in certain range
 
int GetClearAreas (const apollo::common::PointENU &point, double distance, std::vector< ClearAreaInfoConstPtr > *clear_areas) const
 get all clear areas in certain range
 
int GetSpeedBumps (const apollo::common::PointENU &point, double distance, std::vector< SpeedBumpInfoConstPtr > *speed_bumps) const
 get all speed bumps in certain range
 
int GetRoads (const apollo::common::PointENU &point, double distance, std::vector< RoadInfoConstPtr > *roads) const
 get all roads in certain range
 
int GetParkingSpaces (const apollo::common::PointENU &point, double distance, std::vector< ParkingSpaceInfoConstPtr > *parking_spaces) const
 get all parking spaces in certain range
 
int GetPNCJunctions (const apollo::common::PointENU &point, double distance, std::vector< PNCJunctionInfoConstPtr > *pnc_junctions) const
 get all pnc junctions in certain range
 
int GetNearestLaneWithDistance (const apollo::common::PointENU &point, const double distance, LaneInfoConstPtr *nearest_lane, double *nearest_s, double *nearest_l) const
 get nearest lane from target point with search radius,
 
int GetNearestLane (const apollo::common::PointENU &point, LaneInfoConstPtr *nearest_lane, double *nearest_s, double *nearest_l) const
 get nearest lane from target point,
 
int GetNearestLaneWithHeading (const apollo::common::PointENU &point, const double distance, const double central_heading, const double max_heading_difference, LaneInfoConstPtr *nearest_lane, double *nearest_s, double *nearest_l) const
 get the nearest lane within a certain range by pose
 
int GetLanesWithHeading (const apollo::common::PointENU &point, const double distance, const double central_heading, const double max_heading_difference, std::vector< LaneInfoConstPtr > *lanes) const
 get all lanes within a certain range by pose
 
int GetRoadBoundaries (const apollo::common::PointENU &point, double radius, std::vector< RoadROIBoundaryPtr > *road_boundaries, std::vector< JunctionBoundaryPtr > *junctions) const
 get all road and junctions boundaries within certain range
 
int GetRoadBoundaries (const apollo::common::PointENU &point, double radius, std::vector< RoadRoiPtr > *road_boundaries, std::vector< JunctionInfoConstPtr > *junctions) const
 get all road boundaries and junctions within certain range
 
int GetRoi (const apollo::common::PointENU &point, double radius, std::vector< RoadRoiPtr > *roads_roi, std::vector< PolygonRoiPtr > *polygons_roi)
 get ROI within certain range
 
int GetForwardNearestSignalsOnLane (const apollo::common::PointENU &point, const double distance, std::vector< SignalInfoConstPtr > *signals) const
 get forward nearest signals within certain range on the lane if there are two signals related to one stop line, return both signals.
 
int GetForwardNearestBarriersOnLane (const apollo::common::PointENU &point, const double distance, std::vector< BarrierGateInfoConstPtr > *barrier_gates) const
 get forward nearest barrier_gates within certain range on the lane
 
int GetStopSignAssociatedStopSigns (const Id &id, std::vector< StopSignInfoConstPtr > *stop_signs) const
 get all other stop signs associated with a stop sign in the same junction
 
int GetStopSignAssociatedLanes (const Id &id, std::vector< LaneInfoConstPtr > *lanes) const
 get all lanes associated with a stop sign in the same junction
 
int GetLocalMap (const apollo::common::PointENU &point, const std::pair< double, double > &range, Map *local_map) const
 get a local map which is identical to the origin map except that all map elements without overlap with the given region are deleted.
 
int GetForwardNearestRSUs (const apollo::common::PointENU &point, double distance, double central_heading, double max_heading_difference, std::vector< RSUInfoConstPtr > *rsus) const
 get forward nearest rsus within certain range
 
bool GetMapHeader (Header *map_header) const
 

详细描述

High-precision map loader interface.

在文件 hdmap.h54 行定义.

成员函数说明

◆ GetAreaById()

AreaInfoConstPtr apollo::hdmap::HDMap::GetAreaById ( const Id id) const

在文件 hdmap.cc42 行定义.

42 {
43 return impl_.GetAreaById(id);
44}
AreaInfoConstPtr GetAreaById(const Id &id) const

◆ GetAreas()

int apollo::hdmap::HDMap::GetAreas ( const apollo::common::PointENU point,
double  distance,
std::vector< AreaInfoConstPtr > *  areas 
) const

get all areas in certain range

参数
pointthe central point of the range
distancethe search radius
areasstore all areas in target range
返回
0:success, otherwise failed

在文件 hdmap.cc100 行定义.

101 {
102 return impl_.GetAreas(point, distance, areas);
103}
int GetAreas(const apollo::common::PointENU &point, double distance, std::vector< AreaInfoConstPtr > *areas) const
get all areas in certain range

◆ GetBarrierGateById()

BarrierGateInfoConstPtr apollo::hdmap::HDMap::GetBarrierGateById ( const Id id) const

在文件 hdmap.cc50 行定义.

50 {
51 return impl_.GetBarrierGateById(id);
52}
BarrierGateInfoConstPtr GetBarrierGateById(const Id &id) const

◆ GetBarrierGates()

int apollo::hdmap::HDMap::GetBarrierGates ( const apollo::common::PointENU point,
double  distance,
std::vector< BarrierGateInfoConstPtr > *  barrier_gates 
) const

get all barrier_gates in certain range

参数
pointthe central point of the range
distancethe search radius
barrier_gatesstore all barrier_gates in target range
返回
0:success, otherwise failed

在文件 hdmap.cc110 行定义.

112 {
113 return impl_.GetBarrierGates(point, distance, barrier_gates);
114}
int GetBarrierGates(const apollo::common::PointENU &point, double distance, std::vector< BarrierGateInfoConstPtr > *barrier_gates) const
get all barrier_gates in certain range

◆ GetClearAreaById()

ClearAreaInfoConstPtr apollo::hdmap::HDMap::GetClearAreaById ( const Id id) const

在文件 hdmap.cc66 行定义.

66 {
67 return impl_.GetClearAreaById(id);
68}
ClearAreaInfoConstPtr GetClearAreaById(const Id &id) const

◆ GetClearAreas()

int apollo::hdmap::HDMap::GetClearAreas ( const apollo::common::PointENU point,
double  distance,
std::vector< ClearAreaInfoConstPtr > *  clear_areas 
) const

get all clear areas in certain range

参数
pointthe central point of the range
distancethe search radius
clear_areasstore all clear areas in target range
返回
0:success, otherwise failed

在文件 hdmap.cc132 行定义.

134 {
135 return impl_.GetClearAreas(point, distance, clear_areas);
136}
int GetClearAreas(const apollo::common::PointENU &point, double distance, std::vector< ClearAreaInfoConstPtr > *clear_areas) const
get all clear areas in certain range

◆ GetCrosswalkById()

CrosswalkInfoConstPtr apollo::hdmap::HDMap::GetCrosswalkById ( const Id id) const

在文件 hdmap.cc54 行定义.

54 {
55 return impl_.GetCrosswalkById(id);
56}
CrosswalkInfoConstPtr GetCrosswalkById(const Id &id) const

◆ GetCrosswalks()

int apollo::hdmap::HDMap::GetCrosswalks ( const apollo::common::PointENU point,
double  distance,
std::vector< CrosswalkInfoConstPtr > *  crosswalks 
) const

get all crosswalks in certain range

参数
pointthe central point of the range
distancethe search radius
crosswalksstore all crosswalks in target range
返回
0:success, otherwise failed

在文件 hdmap.cc116 行定义.

117 {
118 return impl_.GetCrosswalks(point, distance, crosswalks);
119}
int GetCrosswalks(const apollo::common::PointENU &point, double distance, std::vector< CrosswalkInfoConstPtr > *crosswalks) const
get all crosswalks in certain range

◆ GetForwardNearestBarriersOnLane()

int apollo::hdmap::HDMap::GetForwardNearestBarriersOnLane ( const apollo::common::PointENU point,
const double  distance,
std::vector< BarrierGateInfoConstPtr > *  barrier_gates 
) const

get forward nearest barrier_gates within certain range on the lane

参数
pointthe target position
distancethe forward search distance
barrier_gatesall barrier_gates match conditions
返回
0:success, otherwise failed

在文件 hdmap.cc223 行定义.

225 {
226 return impl_.GetForwardNearestBarriersOnLane(point, distance, barrier_gates);
227}
int GetForwardNearestBarriersOnLane(const apollo::common::PointENU &point, const double distance, std::vector< BarrierGateInfoConstPtr > *barrier_gates) const
get forward nearest barrier_gates within certain range on the lane

◆ GetForwardNearestRSUs()

int apollo::hdmap::HDMap::GetForwardNearestRSUs ( const apollo::common::PointENU point,
double  distance,
double  central_heading,
double  max_heading_difference,
std::vector< RSUInfoConstPtr > *  rsus 
) const

get forward nearest rsus within certain range

参数
pointthe target position
distancethe forward search distance
central_headingthe base heading
max_heading_differencethe heading range
rsusall rsus that match search conditions
返回
0:success, otherwise failed

在文件 hdmap.cc245 行定义.

248 {
249 return impl_.GetForwardNearestRSUs(point, distance,
250 central_heading,
251 max_heading_difference, rsus);
252}
int GetForwardNearestRSUs(const apollo::common::PointENU &point, double distance, double central_heading, double max_heading_difference, std::vector< RSUInfoConstPtr > *rsus) const
get forward nearest rsus within certain range

◆ GetForwardNearestSignalsOnLane()

int apollo::hdmap::HDMap::GetForwardNearestSignalsOnLane ( const apollo::common::PointENU point,
const double  distance,
std::vector< SignalInfoConstPtr > *  signals 
) const

get forward nearest signals within certain range on the lane if there are two signals related to one stop line, return both signals.

参数
pointthe target position
distancethe forward search distance
signalsall signals match conditions
返回
0:success, otherwise failed

在文件 hdmap.cc217 行定义.

219 {
220 return impl_.GetForwardNearestSignalsOnLane(point, distance, signals);
221}
int GetForwardNearestSignalsOnLane(const apollo::common::PointENU &point, const double distance, std::vector< SignalInfoConstPtr > *signals) const
get forward nearest signals within certain range on the lane if there are two signals related to one ...

◆ GetJunctionById()

JunctionInfoConstPtr apollo::hdmap::HDMap::GetJunctionById ( const Id id) const

在文件 hdmap.cc38 行定义.

38 {
39 return impl_.GetJunctionById(id);
40}
JunctionInfoConstPtr GetJunctionById(const Id &id) const

◆ GetJunctions()

int apollo::hdmap::HDMap::GetJunctions ( const apollo::common::PointENU point,
double  distance,
std::vector< JunctionInfoConstPtr > *  junctions 
) const

get all junctions in certain range

参数
pointthe central point of the range
distancethe search radius
junctionsstore all junctions in target range
返回
0:success, otherwise failed

在文件 hdmap.cc95 行定义.

96 {
97 return impl_.GetJunctions(point, distance, junctions);
98}
int GetJunctions(const apollo::common::PointENU &point, double distance, std::vector< JunctionInfoConstPtr > *junctions) const
get all junctions in certain range

◆ GetLaneById()

LaneInfoConstPtr apollo::hdmap::HDMap::GetLaneById ( const Id id) const

在文件 hdmap.cc34 行定义.

34 {
35 return impl_.GetLaneById(id);
36}
LaneInfoConstPtr GetLaneById(const Id &id) const

◆ GetLanes()

int apollo::hdmap::HDMap::GetLanes ( const apollo::common::PointENU point,
double  distance,
std::vector< LaneInfoConstPtr > *  lanes 
) const

get all lanes in certain range

参数
pointthe central point of the range
distancethe search radius
lanesstore all lanes in target range
返回
0:success, otherwise failed

在文件 hdmap.cc90 行定义.

91 {
92 return impl_.GetLanes(point, distance, lanes);
93}
int GetLanes(const apollo::common::PointENU &point, double distance, std::vector< LaneInfoConstPtr > *lanes) const
get all lanes in certain range

◆ GetLanesWithHeading()

int apollo::hdmap::HDMap::GetLanesWithHeading ( const apollo::common::PointENU point,
const double  distance,
const double  central_heading,
const double  max_heading_difference,
std::vector< LaneInfoConstPtr > *  lanes 
) const

get all lanes within a certain range by pose

参数
pointthe target position
distancethe search radius
central_headingthe base heading
max_heading_differencethe heading range
nearest_laneall lanes that match search conditions
返回
0:success, otherwise, failed.

在文件 hdmap.cc188 行定义.

192 {
193 return impl_.GetLanesWithHeading(point, distance, central_heading,
194 max_heading_difference, lanes);
195}
int GetLanesWithHeading(const apollo::common::PointENU &point, const double distance, const double central_heading, const double max_heading_difference, std::vector< LaneInfoConstPtr > *lanes) const
get all lanes within a certain range by pose

◆ GetLocalMap()

int apollo::hdmap::HDMap::GetLocalMap ( const apollo::common::PointENU point,
const std::pair< double, double > &  range,
Map local_map 
) const

get a local map which is identical to the origin map except that all map elements without overlap with the given region are deleted.

参数
pointthe target position
rangethe size of local map region, [width, height]
local_maplocal map in proto format
返回
0:success, otherwise failed

在文件 hdmap.cc239 行定义.

241 {
242 return impl_.GetLocalMap(point, range, local_map);
243}
int GetLocalMap(const apollo::common::PointENU &point, const std::pair< double, double > &range, Map *local_map) const
get a local map which is identical to the origin map except that all map elements without overlap wit...

◆ GetMapHeader()

bool apollo::hdmap::HDMap::GetMapHeader ( Header map_header) const

在文件 hdmap.cc254 行定义.

254 {
255 return impl_.GetMapHeader(map_header);
256}
bool GetMapHeader(Header *map_header) const
Definition hdmap_impl.cc:66

◆ GetNearestLane()

int apollo::hdmap::HDMap::GetNearestLane ( const apollo::common::PointENU point,
LaneInfoConstPtr nearest_lane,
double *  nearest_s,
double *  nearest_l 
) const

get nearest lane from target point,

参数
pointthe target point
nearest_lanethe nearest lane that match search conditions
nearest_sthe offset from lane start point along lane center line
nearest_lthe lateral offset from lane center line
返回
0:success, otherwise, failed.

在文件 hdmap.cc170 行定义.

172 {
173 return impl_.GetNearestLane(point, nearest_lane, nearest_s, nearest_l);
174}
int GetNearestLane(const apollo::common::PointENU &point, LaneInfoConstPtr *nearest_lane, double *nearest_s, double *nearest_l) const
get nearest lane from target point,

◆ GetNearestLaneWithDistance()

int apollo::hdmap::HDMap::GetNearestLaneWithDistance ( const apollo::common::PointENU point,
const double  distance,
LaneInfoConstPtr nearest_lane,
double *  nearest_s,
double *  nearest_l 
) const

get nearest lane from target point with search radius,

参数
pointthe target point
distancethe search radius
nearest_lanethe nearest lane that match search conditions
nearest_sthe offset from lane start point along lane center line
nearest_lthe lateral offset from lane center line
返回
0:success, otherwise, failed.

在文件 hdmap.cc161 行定义.

165 {
166 return impl_.GetNearestLaneWithDistance(point, distance, nearest_lane,
167 nearest_s, nearest_l);
168}
int GetNearestLaneWithDistance(const apollo::common::PointENU &point, const double distance, LaneInfoConstPtr *nearest_lane, double *nearest_s, double *nearest_l) const
get nearest lane from target point with search radius,

◆ GetNearestLaneWithHeading()

int apollo::hdmap::HDMap::GetNearestLaneWithHeading ( const apollo::common::PointENU point,
const double  distance,
const double  central_heading,
const double  max_heading_difference,
LaneInfoConstPtr nearest_lane,
double *  nearest_s,
double *  nearest_l 
) const

get the nearest lane within a certain range by pose

参数
pointthe target position
distancethe search radius
central_headingthe base heading
max_heading_differencethe heading range
nearest_lanethe nearest lane that match search conditions
nearest_sthe offset from lane start point along lane center line
nearest_lthe lateral offset from lane center line
返回
0:success, otherwise, failed.

在文件 hdmap.cc176 行定义.

182 {
183 return impl_.GetNearestLaneWithHeading(point, distance, central_heading,
184 max_heading_difference, nearest_lane,
185 nearest_s, nearest_l);
186}
int GetNearestLaneWithHeading(const apollo::common::PointENU &point, const double distance, const double central_heading, const double max_heading_difference, LaneInfoConstPtr *nearest_lane, double *nearest_s, double *nearest_l) const
get the nearest lane within a certain range by pose

◆ GetOverlapById()

OverlapInfoConstPtr apollo::hdmap::HDMap::GetOverlapById ( const Id id) const

在文件 hdmap.cc74 行定义.

74 {
75 return impl_.GetOverlapById(id);
76}
OverlapInfoConstPtr GetOverlapById(const Id &id) const

◆ GetParkingSpaceById()

ParkingSpaceInfoConstPtr apollo::hdmap::HDMap::GetParkingSpaceById ( const Id id) const

在文件 hdmap.cc82 行定义.

82 {
83 return impl_.GetParkingSpaceById(id);
84}
ParkingSpaceInfoConstPtr GetParkingSpaceById(const Id &id) const

◆ GetParkingSpaces()

int apollo::hdmap::HDMap::GetParkingSpaces ( const apollo::common::PointENU point,
double  distance,
std::vector< ParkingSpaceInfoConstPtr > *  parking_spaces 
) const

get all parking spaces in certain range

参数
pointthe central point of the range
distancethe search radius
parkingspaces store all clear areas in target range
返回
0:success, otherwise failed

在文件 hdmap.cc149 行定义.

151 {
152 return impl_.GetParkingSpaces(point, distance, parking_spaces);
153}
int GetParkingSpaces(const apollo::common::PointENU &point, double distance, std::vector< ParkingSpaceInfoConstPtr > *parking_spaces) const
get all parking space in certain range

◆ GetPNCJunctionById()

PNCJunctionInfoConstPtr apollo::hdmap::HDMap::GetPNCJunctionById ( const Id id) const

在文件 hdmap.cc86 行定义.

86 {
87 return impl_.GetPNCJunctionById(id);
88}
PNCJunctionInfoConstPtr GetPNCJunctionById(const Id &id) const

◆ GetPNCJunctions()

int apollo::hdmap::HDMap::GetPNCJunctions ( const apollo::common::PointENU point,
double  distance,
std::vector< PNCJunctionInfoConstPtr > *  pnc_junctions 
) const

get all pnc junctions in certain range

参数
pointthe central point of the range
distancethe search radius
junctionsstore all junctions in target range
返回
0:success, otherwise failed

在文件 hdmap.cc155 行定义.

157 {
158 return impl_.GetPNCJunctions(point, distance, pnc_junctions);
159}
int GetPNCJunctions(const apollo::common::PointENU &point, double distance, std::vector< PNCJunctionInfoConstPtr > *pnc_junctions) const
get all pnc junctions in certain range

◆ GetRoadBoundaries() [1/2]

int apollo::hdmap::HDMap::GetRoadBoundaries ( const apollo::common::PointENU point,
double  radius,
std::vector< RoadROIBoundaryPtr > *  road_boundaries,
std::vector< JunctionBoundaryPtr > *  junctions 
) const

get all road and junctions boundaries within certain range

参数
pointthe target position
radiusthe search radius
road_boundariesthe roads' boundaries
junctionsthe junctions' boundaries
返回
0:success, otherwise failed

在文件 hdmap.cc197 行定义.

200 {
201 return impl_.GetRoadBoundaries(point, radius, road_boundaries, junctions);
202}
int GetRoadBoundaries(const apollo::common::PointENU &point, double radius, std::vector< RoadROIBoundaryPtr > *road_boundaries, std::vector< JunctionBoundaryPtr > *junctions) const
get all road and junctions boundaries within certain range

◆ GetRoadBoundaries() [2/2]

int apollo::hdmap::HDMap::GetRoadBoundaries ( const apollo::common::PointENU point,
double  radius,
std::vector< RoadRoiPtr > *  road_boundaries,
std::vector< JunctionInfoConstPtr > *  junctions 
) const

get all road boundaries and junctions within certain range

参数
pointthe target position
radiusthe search radius
road_boundariesthe roads' boundaries
junctionsthe junctions
返回
0:success, otherwise failed

在文件 hdmap.cc204 行定义.

207 {
208 return impl_.GetRoadBoundaries(point, radius, road_boundaries, junctions);
209}

◆ GetRoadById()

RoadInfoConstPtr apollo::hdmap::HDMap::GetRoadById ( const Id id) const

在文件 hdmap.cc78 行定义.

78 {
79 return impl_.GetRoadById(id);
80}
RoadInfoConstPtr GetRoadById(const Id &id) const

◆ GetRoads()

int apollo::hdmap::HDMap::GetRoads ( const apollo::common::PointENU point,
double  distance,
std::vector< RoadInfoConstPtr > *  roads 
) const

get all roads in certain range

参数
pointthe central point of the range
distancethe search radius
roadsstore all roads in target range
返回
0:success, otherwise failed

在文件 hdmap.cc144 行定义.

145 {
146 return impl_.GetRoads(point, distance, roads);
147}
int GetRoads(const apollo::common::PointENU &point, double distance, std::vector< RoadInfoConstPtr > *roads) const
get all roads in certain range

◆ GetRoi()

int apollo::hdmap::HDMap::GetRoi ( const apollo::common::PointENU point,
double  radius,
std::vector< RoadRoiPtr > *  roads_roi,
std::vector< PolygonRoiPtr > *  polygons_roi 
)

get ROI within certain range

参数
pointthe target position
radiusthe search radius
roads_roithe roads' boundaries
polygons_roithe junctions' boundaries
返回
0:success, otherwise failed

在文件 hdmap.cc211 行定义.

213 {
214 return impl_.GetRoi(point, radius, roads_roi, polygons_roi);
215}
int GetRoi(const apollo::common::PointENU &point, double radius, std::vector< RoadRoiPtr > *roads_roi, std::vector< PolygonRoiPtr > *polygons_roi)
get ROI within certain range

◆ GetRSUById()

RSUInfoConstPtr apollo::hdmap::HDMap::GetRSUById ( const Id id) const

◆ GetSignalById()

SignalInfoConstPtr apollo::hdmap::HDMap::GetSignalById ( const Id id) const

在文件 hdmap.cc46 行定义.

46 {
47 return impl_.GetSignalById(id);
48}
SignalInfoConstPtr GetSignalById(const Id &id) const

◆ GetSignals()

int apollo::hdmap::HDMap::GetSignals ( const apollo::common::PointENU point,
double  distance,
std::vector< SignalInfoConstPtr > *  signals 
) const

get all signals in certain range

参数
pointthe central point of the range
distancethe search radius
signalsstore all signals in target range
返回
0:success, otherwise failed

在文件 hdmap.cc105 行定义.

106 {
107 return impl_.GetSignals(point, distance, signals);
108}
int GetSignals(const apollo::common::PointENU &point, double distance, std::vector< SignalInfoConstPtr > *signals) const
get all signals in certain range

◆ GetSpeedBumpById()

SpeedBumpInfoConstPtr apollo::hdmap::HDMap::GetSpeedBumpById ( const Id id) const

在文件 hdmap.cc70 行定义.

70 {
71 return impl_.GetSpeedBumpById(id);
72}
SpeedBumpInfoConstPtr GetSpeedBumpById(const Id &id) const

◆ GetSpeedBumps()

int apollo::hdmap::HDMap::GetSpeedBumps ( const apollo::common::PointENU point,
double  distance,
std::vector< SpeedBumpInfoConstPtr > *  speed_bumps 
) const

get all speed bumps in certain range

参数
pointthe central point of the range
distancethe search radius
speed_bumpsstore all speed bumps in target range
返回
0:success, otherwise failed

在文件 hdmap.cc138 行定义.

140 {
141 return impl_.GetSpeedBumps(point, distance, speed_bumps);
142}
int GetSpeedBumps(const apollo::common::PointENU &point, double distance, std::vector< SpeedBumpInfoConstPtr > *speed_bumps) const
get all speed bumps in certain range

◆ GetStopSignAssociatedLanes()

int apollo::hdmap::HDMap::GetStopSignAssociatedLanes ( const Id id,
std::vector< LaneInfoConstPtr > *  lanes 
) const

get all lanes associated with a stop sign in the same junction

参数
idid of stop sign
lanesall lanes match conditions
返回
0:success, otherwise failed

在文件 hdmap.cc234 行定义.

235 {
236 return impl_.GetStopSignAssociatedLanes(id, lanes);
237}
int GetStopSignAssociatedLanes(const Id &id, std::vector< LaneInfoConstPtr > *lanes) const
get all lanes associated with a stop sign in the same junction

◆ GetStopSignAssociatedStopSigns()

int apollo::hdmap::HDMap::GetStopSignAssociatedStopSigns ( const Id id,
std::vector< StopSignInfoConstPtr > *  stop_signs 
) const

get all other stop signs associated with a stop sign in the same junction

参数
idid of stop sign
stop_signsstop signs associated
返回
0:success, otherwise failed

在文件 hdmap.cc229 行定义.

230 {
231 return impl_.GetStopSignAssociatedStopSigns(id, stop_signs);
232}
int GetStopSignAssociatedStopSigns(const Id &id, std::vector< StopSignInfoConstPtr > *stop_signs) const
get all other stop signs associated with a stop sign in the same junction

◆ GetStopSignById()

StopSignInfoConstPtr apollo::hdmap::HDMap::GetStopSignById ( const Id id) const

在文件 hdmap.cc58 行定义.

58 {
59 return impl_.GetStopSignById(id);
60}
StopSignInfoConstPtr GetStopSignById(const Id &id) const

◆ GetStopSigns()

int apollo::hdmap::HDMap::GetStopSigns ( const apollo::common::PointENU point,
double  distance,
std::vector< StopSignInfoConstPtr > *  stop_signs 
) const

get all stop signs in certain range

参数
pointthe central point of the range
distancethe search radius
stopsigns store all stop signs in target range
返回
0:success, otherwise failed

在文件 hdmap.cc121 行定义.

122 {
123 return impl_.GetStopSigns(point, distance, stop_signs);
124}
int GetStopSigns(const apollo::common::PointENU &point, double distance, std::vector< StopSignInfoConstPtr > *stop_signs) const
get all stop signs in certain range

◆ GetYieldSignById()

YieldSignInfoConstPtr apollo::hdmap::HDMap::GetYieldSignById ( const Id id) const

在文件 hdmap.cc62 行定义.

62 {
63 return impl_.GetYieldSignById(id);
64}
YieldSignInfoConstPtr GetYieldSignById(const Id &id) const

◆ GetYieldSigns()

int apollo::hdmap::HDMap::GetYieldSigns ( const apollo::common::PointENU point,
double  distance,
std::vector< YieldSignInfoConstPtr > *  yield_signs 
) const

get all yield signs in certain range

参数
pointthe central point of the range
distancethe search radius
yieldsigns store all yield signs in target range
返回
0:success, otherwise failed

在文件 hdmap.cc126 行定义.

128 {
129 return impl_.GetYieldSigns(point, distance, yield_signs);
130}
int GetYieldSigns(const apollo::common::PointENU &point, double distance, std::vector< YieldSignInfoConstPtr > *yield_signs) const
get all yield signs in certain range

◆ LoadMapFromFile()

int apollo::hdmap::HDMap::LoadMapFromFile ( const std::string &  map_filename)

load map from local file

参数
map_filenamepath of map data file
返回
0:success, otherwise failed

在文件 hdmap.cc23 行定义.

23 {
24 AINFO << "Loading HDMap: " << map_filename << " ...";
25 return impl_.LoadMapFromFile(map_filename);
26}
int LoadMapFromFile(const std::string &map_filename)
load map from local file
Definition hdmap_impl.cc:51
#define AINFO
Definition log.h:42

◆ LoadMapFromProto()

int apollo::hdmap::HDMap::LoadMapFromProto ( const Map map_proto)

load map from a given protobuf message.

参数
map_protomap data in protobuf format
返回
0:success, otherwise failed

在文件 hdmap.cc28 行定义.

28 {
29 ADEBUG << "Loading HDMap with header: "
30 << map_proto.header().ShortDebugString();
31 return impl_.LoadMapFromProto(map_proto);
32}
int LoadMapFromProto(const Map &map_proto)
load map from a protobuf message
Definition hdmap_impl.cc:74
#define ADEBUG
Definition log.h:41

该类的文档由以下文件生成: