26 #include <boost/thread/locks.hpp> 27 #include <boost/thread/shared_mutex.hpp> 29 #include "modules/dreamview/proto/simulation_world.pb.h" 31 #include "nlohmann/json.hpp" 48 double raidus, MapElementIds *ids)
const;
51 std::vector<apollo::hdmap::Path> *paths)
const;
62 bool GetStartPoint(apollo::common::PointENU *start_point)
const;
73 routing::LaneWaypoint *laneWayPoint)
const;
76 const double x,
const double y,
const double heading,
77 routing::LaneWaypoint *laneWayPoint)
const;
90 bool GetNearestLane(
const double x,
const double y,
92 double *nearest_s,
double *nearest_l)
const;
94 bool GetNearestLaneWithHeading(
const double x,
const double y,
96 double *nearest_s,
double *nearest_l,
97 const double heading)
const;
99 bool CreatePathsFromRouting(
const routing::RoutingResponse &routing,
100 std::vector<apollo::hdmap::Path> *paths)
const;
102 bool AddPathFromPassageRegion(
const routing::Passage &passage_region,
103 std::vector<apollo::hdmap::Path> *paths)
const;
105 static const char kMetaFileName[];
107 const bool use_sim_map_;
111 bool MapReady()
const;
113 double x_offset_ = 0.0;
114 double y_offset_ = 0.0;
117 mutable boost::shared_mutex mutex_;
bool CheckRoutingPointLaneType(apollo::hdmap::LaneInfoConstPtr lane) const
bool ReloadMap(bool force_reload)
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
void CollectMapElementIds(const apollo::common::PointENU &point, double raidus, MapElementIds *ids) const
double GetYOffset() const
Definition: map_service.h:45
bool ConstructLaneWayPointWithHeading(const double x, const double y, const double heading, routing::LaneWaypoint *laneWayPoint) const
Definition: map_service.h:40
hdmap::Map RetrieveMapElements(const MapElementIds &ids) const
bool ConstructLaneWayPoint(const double x, const double y, routing::LaneWaypoint *laneWayPoint) const
The function fills out proper routing lane waypoint from the given (x,y) position.
bool GetStartPoint(apollo::common::PointENU *start_point) const
bool GetPoseWithRegardToLane(const double x, const double y, double *theta, double *s) const
MapService(bool use_sim_map=true)
High-precision map loader interface.
Definition: hdmap.h:53
std::shared_ptr< const LaneInfo > LaneInfoConstPtr
Definition: hdmap_common.h:125
bool GetPathsFromRouting(const apollo::routing::RoutingResponse &routing, std::vector< apollo::hdmap::Path > *paths) const
double GetXOffset() const
Definition: map_service.h:44
size_t CalculateMapHash(const MapElementIds &ids) const
bool CheckRoutingPoint(const double x, const double y) const