23#include "modules/common_msgs/basic_msgs/geometry.pb.h"
24#include "modules/common_msgs/map_msgs/map_area.pb.h"
25#include "modules/common_msgs/map_msgs/map_barrier_gate.pb.h"
26#include "modules/common_msgs/map_msgs/map_clear_area.pb.h"
27#include "modules/common_msgs/map_msgs/map_crosswalk.pb.h"
28#include "modules/common_msgs/map_msgs/map_junction.pb.h"
29#include "modules/common_msgs/map_msgs/map_lane.pb.h"
30#include "modules/common_msgs/map_msgs/map_overlap.pb.h"
31#include "modules/common_msgs/map_msgs/map_parking_space.pb.h"
32#include "modules/common_msgs/map_msgs/map_road.pb.h"
33#include "modules/common_msgs/map_msgs/map_signal.pb.h"
34#include "modules/common_msgs/map_msgs/map_speed_bump.pb.h"
35#include "modules/common_msgs/map_msgs/map_stop_sign.pb.h"
36#include "modules/common_msgs/map_msgs/map_yield_sign.pb.h"
94 std::vector<AreaInfoConstPtr>* areas)
const;
104 std::vector<LaneInfoConstPtr>* lanes)
const;
113 std::vector<JunctionInfoConstPtr>* junctions)
const;
122 std::vector<SignalInfoConstPtr>* signals)
const;
131 std::vector<BarrierGateInfoConstPtr>* barrier_gates)
const;
140 std::vector<CrosswalkInfoConstPtr>* crosswalks)
const;
149 std::vector<StopSignInfoConstPtr>* stop_signs)
const;
158 std::vector<YieldSignInfoConstPtr>* yield_signs)
const;
167 std::vector<ClearAreaInfoConstPtr>* clear_areas)
const;
176 std::vector<SpeedBumpInfoConstPtr>* speed_bumps)
const;
185 std::vector<RoadInfoConstPtr>* roads)
const;
195 std::vector<ParkingSpaceInfoConstPtr>* parking_spaces)
const;
205 std::vector<PNCJunctionInfoConstPtr>* pnc_junctions)
const;
217 const double distance,
219 double* nearest_s,
double* nearest_l)
const;
231 double* nearest_l)
const;
244 const double distance,
245 const double central_heading,
246 const double max_heading_difference,
248 double* nearest_s,
double* nearest_l)
const;
259 const double distance,
const double central_heading,
260 const double max_heading_difference,
261 std::vector<LaneInfoConstPtr>* lanes)
const;
271 std::vector<RoadROIBoundaryPtr>* road_boundaries,
272 std::vector<JunctionBoundaryPtr>* junctions)
const;
282 std::vector<RoadRoiPtr>* road_boundaries,
283 std::vector<JunctionInfoConstPtr>* junctions)
const;
293 std::vector<RoadRoiPtr>* roads_roi,
294 std::vector<PolygonRoiPtr>* polygons_roi);
306 std::vector<SignalInfoConstPtr>* signals)
const;
317 std::vector<BarrierGateInfoConstPtr>* barrier_gates)
const;
327 const Id&
id, std::vector<StopSignInfoConstPtr>* stop_signs)
const;
336 std::vector<LaneInfoConstPtr>* lanes)
const;
347 const std::pair<double, double>& range,
Map* local_map)
const;
359 double distance,
double central_heading,
360 double max_heading_difference,
361 std::vector<RSUInfoConstPtr>* rsus)
const;
High-precision map loader implement.
High-precision map loader interface.
RSUInfoConstPtr GetRSUById(const Id &id) const
StopSignInfoConstPtr GetStopSignById(const Id &id) const
int GetSpeedBumps(const apollo::common::PointENU &point, double distance, std::vector< SpeedBumpInfoConstPtr > *speed_bumps) const
get all speed bumps in certain range
PNCJunctionInfoConstPtr GetPNCJunctionById(const Id &id) const
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
YieldSignInfoConstPtr GetYieldSignById(const Id &id) const
int GetSignals(const apollo::common::PointENU &point, double distance, std::vector< SignalInfoConstPtr > *signals) const
get all signals in certain range
int GetCrosswalks(const apollo::common::PointENU &point, double distance, std::vector< CrosswalkInfoConstPtr > *crosswalks) const
get all crosswalks in certain range
BarrierGateInfoConstPtr GetBarrierGateById(const Id &id) const
ClearAreaInfoConstPtr GetClearAreaById(const Id &id) const
int GetLanes(const apollo::common::PointENU &point, double distance, std::vector< LaneInfoConstPtr > *lanes) const
get all lanes in certain range
LaneInfoConstPtr GetLaneById(const Id &id) const
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 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 LoadMapFromProto(const Map &map_proto)
load map from a given protobuf message.
int GetAreas(const apollo::common::PointENU &point, double distance, std::vector< AreaInfoConstPtr > *areas) const
get all areas in certain range
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 GetParkingSpaces(const apollo::common::PointENU &point, double distance, std::vector< ParkingSpaceInfoConstPtr > *parking_spaces) const
get all parking spaces in certain range
AreaInfoConstPtr GetAreaById(const Id &id) const
int GetRoads(const apollo::common::PointENU &point, double distance, std::vector< RoadInfoConstPtr > *roads) const
get all roads in certain range
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
int GetClearAreas(const apollo::common::PointENU &point, double distance, std::vector< ClearAreaInfoConstPtr > *clear_areas) const
get all clear areas in certain range
RoadInfoConstPtr GetRoadById(const Id &id) const
int GetNearestLane(const apollo::common::PointENU &point, LaneInfoConstPtr *nearest_lane, double *nearest_s, double *nearest_l) const
get nearest lane from target point,
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...
JunctionInfoConstPtr GetJunctionById(const Id &id) const
int GetBarrierGates(const apollo::common::PointENU &point, double distance, std::vector< BarrierGateInfoConstPtr > *barrier_gates) const
get all barrier_gates in certain range
int LoadMapFromFile(const std::string &map_filename)
load map from local file
OverlapInfoConstPtr GetOverlapById(const Id &id) const
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 GetPNCJunctions(const apollo::common::PointENU &point, double distance, std::vector< PNCJunctionInfoConstPtr > *pnc_junctions) const
get all pnc junctions in certain range
ParkingSpaceInfoConstPtr GetParkingSpaceById(const Id &id) const
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 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,
bool GetMapHeader(Header *map_header) const
int GetStopSignAssociatedLanes(const Id &id, std::vector< LaneInfoConstPtr > *lanes) const
get all lanes associated with a stop sign in the same junction
CrosswalkInfoConstPtr GetCrosswalkById(const Id &id) const
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 ...
int GetYieldSigns(const apollo::common::PointENU &point, double distance, std::vector< YieldSignInfoConstPtr > *yield_signs) const
get all yield signs in certain range
SignalInfoConstPtr GetSignalById(const Id &id) const
int GetJunctions(const apollo::common::PointENU &point, double distance, std::vector< JunctionInfoConstPtr > *junctions) const
get all junctions in certain range
SpeedBumpInfoConstPtr GetSpeedBumpById(const Id &id) const
int GetStopSigns(const apollo::common::PointENU &point, double distance, std::vector< StopSignInfoConstPtr > *stop_signs) const
get all stop signs in certain range
std::shared_ptr< const PNCJunctionInfo > PNCJunctionInfoConstPtr
std::shared_ptr< const JunctionInfo > JunctionInfoConstPtr
std::shared_ptr< const StopSignInfo > StopSignInfoConstPtr
std::shared_ptr< const AreaInfo > AreaInfoConstPtr
std::shared_ptr< const LaneInfo > LaneInfoConstPtr
std::shared_ptr< const ClearAreaInfo > ClearAreaInfoConstPtr
std::shared_ptr< const BarrierGateInfo > BarrierGateInfoConstPtr
std::shared_ptr< const SignalInfo > SignalInfoConstPtr
std::shared_ptr< const SpeedBumpInfo > SpeedBumpInfoConstPtr
std::shared_ptr< const RoadInfo > RoadInfoConstPtr
std::shared_ptr< const CrosswalkInfo > CrosswalkInfoConstPtr
std::shared_ptr< const RSUInfo > RSUInfoConstPtr
std::shared_ptr< const YieldSignInfo > YieldSignInfoConstPtr
std::shared_ptr< const ParkingSpaceInfo > ParkingSpaceInfoConstPtr
std::shared_ptr< const OverlapInfo > OverlapInfoConstPtr