Apollo 10.0
自动驾驶开放平台
|
High-precision map loader interface. 更多...
#include <hdmap.h>
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 |
AreaInfoConstPtr apollo::hdmap::HDMap::GetAreaById | ( | const Id & | id | ) | const |
int apollo::hdmap::HDMap::GetAreas | ( | const apollo::common::PointENU & | point, |
double | distance, | ||
std::vector< AreaInfoConstPtr > * | areas | ||
) | const |
get all areas in certain range
point | the central point of the range |
distance | the search radius |
areas | store all areas in target range |
BarrierGateInfoConstPtr apollo::hdmap::HDMap::GetBarrierGateById | ( | const Id & | id | ) | const |
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
point | the central point of the range |
distance | the search radius |
barrier_gates | store all barrier_gates in target range |
ClearAreaInfoConstPtr apollo::hdmap::HDMap::GetClearAreaById | ( | const Id & | id | ) | const |
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
point | the central point of the range |
distance | the search radius |
clear_areas | store all clear areas in target range |
CrosswalkInfoConstPtr apollo::hdmap::HDMap::GetCrosswalkById | ( | const Id & | id | ) | const |
int apollo::hdmap::HDMap::GetCrosswalks | ( | const apollo::common::PointENU & | point, |
double | distance, | ||
std::vector< CrosswalkInfoConstPtr > * | crosswalks | ||
) | const |
get all crosswalks in certain range
point | the central point of the range |
distance | the search radius |
crosswalks | store all crosswalks in target range |
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
point | the target position |
distance | the forward search distance |
barrier_gates | all barrier_gates match conditions |
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
point | the target position |
distance | the forward search distance |
central_heading | the base heading |
max_heading_difference | the heading range |
rsus | all rsus that match search conditions |
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.
point | the target position |
distance | the forward search distance |
signals | all signals match conditions |
JunctionInfoConstPtr apollo::hdmap::HDMap::GetJunctionById | ( | const Id & | id | ) | const |
int apollo::hdmap::HDMap::GetJunctions | ( | const apollo::common::PointENU & | point, |
double | distance, | ||
std::vector< JunctionInfoConstPtr > * | junctions | ||
) | const |
get all junctions in certain range
point | the central point of the range |
distance | the search radius |
junctions | store all junctions in target range |
LaneInfoConstPtr apollo::hdmap::HDMap::GetLaneById | ( | const Id & | id | ) | const |
int apollo::hdmap::HDMap::GetLanes | ( | const apollo::common::PointENU & | point, |
double | distance, | ||
std::vector< LaneInfoConstPtr > * | lanes | ||
) | const |
get all lanes in certain range
point | the central point of the range |
distance | the search radius |
lanes | store all lanes in target range |
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
point | the target position |
distance | the search radius |
central_heading | the base heading |
max_heading_difference | the heading range |
nearest_lane | all lanes that match search conditions |
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.
point | the target position |
range | the size of local map region, [width, height] |
local_map | local map in proto format |
bool apollo::hdmap::HDMap::GetMapHeader | ( | Header * | map_header | ) | const |
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,
point | the target point |
nearest_lane | the nearest lane that match search conditions |
nearest_s | the offset from lane start point along lane center line |
nearest_l | the lateral offset from lane center line |
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,
point | the target point |
distance | the search radius |
nearest_lane | the nearest lane that match search conditions |
nearest_s | the offset from lane start point along lane center line |
nearest_l | the lateral offset from lane center line |
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
point | the target position |
distance | the search radius |
central_heading | the base heading |
max_heading_difference | the heading range |
nearest_lane | the nearest lane that match search conditions |
nearest_s | the offset from lane start point along lane center line |
nearest_l | the lateral offset from lane center line |
OverlapInfoConstPtr apollo::hdmap::HDMap::GetOverlapById | ( | const Id & | id | ) | const |
ParkingSpaceInfoConstPtr apollo::hdmap::HDMap::GetParkingSpaceById | ( | const Id & | id | ) | const |
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
point | the central point of the range |
distance | the search radius |
parking | spaces store all clear areas in target range |
PNCJunctionInfoConstPtr apollo::hdmap::HDMap::GetPNCJunctionById | ( | const Id & | id | ) | const |
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
point | the central point of the range |
distance | the search radius |
junctions | store all junctions in target range |
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
point | the target position |
radius | the search radius |
road_boundaries | the roads' boundaries |
junctions | the junctions' boundaries |
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
point | the target position |
radius | the search radius |
road_boundaries | the roads' boundaries |
junctions | the junctions |
RoadInfoConstPtr apollo::hdmap::HDMap::GetRoadById | ( | const Id & | id | ) | const |
int apollo::hdmap::HDMap::GetRoads | ( | const apollo::common::PointENU & | point, |
double | distance, | ||
std::vector< RoadInfoConstPtr > * | roads | ||
) | const |
get all roads in certain range
point | the central point of the range |
distance | the search radius |
roads | store all roads in target range |
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
point | the target position |
radius | the search radius |
roads_roi | the roads' boundaries |
polygons_roi | the junctions' boundaries |
RSUInfoConstPtr apollo::hdmap::HDMap::GetRSUById | ( | const Id & | id | ) | const |
SignalInfoConstPtr apollo::hdmap::HDMap::GetSignalById | ( | const Id & | id | ) | const |
int apollo::hdmap::HDMap::GetSignals | ( | const apollo::common::PointENU & | point, |
double | distance, | ||
std::vector< SignalInfoConstPtr > * | signals | ||
) | const |
get all signals in certain range
point | the central point of the range |
distance | the search radius |
signals | store all signals in target range |
SpeedBumpInfoConstPtr apollo::hdmap::HDMap::GetSpeedBumpById | ( | const Id & | id | ) | const |
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
point | the central point of the range |
distance | the search radius |
speed_bumps | store all speed bumps in target range |
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
id | id of stop sign |
lanes | all lanes match conditions |
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
id | id of stop sign |
stop_signs | stop signs associated |
StopSignInfoConstPtr apollo::hdmap::HDMap::GetStopSignById | ( | const Id & | id | ) | const |
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
point | the central point of the range |
distance | the search radius |
stop | signs store all stop signs in target range |
YieldSignInfoConstPtr apollo::hdmap::HDMap::GetYieldSignById | ( | const Id & | id | ) | const |
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
point | the central point of the range |
distance | the search radius |
yield | signs store all yield signs in target range |
int apollo::hdmap::HDMap::LoadMapFromFile | ( | const std::string & | map_filename | ) |
load map from local file
map_filename | path of map data file |
int apollo::hdmap::HDMap::LoadMapFromProto | ( | const Map & | map_proto | ) |
load map from a given protobuf message.
map_proto | map data in protobuf format |