|
static bool | Ready () |
| Check if map is ready. More...
|
|
static Eigen::Vector2d | PositionOnLane (const std::shared_ptr< const hdmap::LaneInfo > lane_info, const double s) |
| Get the position of a point on a specific distance along a lane. More...
|
|
static double | HeadingOnLane (const std::shared_ptr< const hdmap::LaneInfo > lane_info, const double s) |
| Get the heading of a point on a specific distance along a lane. More...
|
|
static double | CurvatureOnLane (const std::string &lane_id, const double s) |
| Get the curvature of a point on a specific distance along a lane. More...
|
|
static double | LaneTotalWidth (const std::shared_ptr< const hdmap::LaneInfo > lane_info, const double s) |
| Get the width on a specified distance on a lane. More...
|
|
static std::shared_ptr< const hdmap::LaneInfo > | LaneById (const std::string &id) |
| Get a shared pointer to a lane by lane ID. More...
|
|
static std::shared_ptr< const hdmap::JunctionInfo > | JunctionById (const std::string &id) |
| Get a shared pointer to a junction by junction ID. More...
|
|
static std::shared_ptr< const hdmap::OverlapInfo > | OverlapById (const std::string &id) |
| Get a shared pointer to an overlap by overlap ID. More...
|
|
static bool | GetProjection (const Eigen::Vector2d &position, const std::shared_ptr< const hdmap::LaneInfo > lane_info, double *s, double *l) |
| Get the frenet coordinates (s, l) on a lane by a position. More...
|
|
static bool | HasNearbyLane (const double x, const double y, const double radius) |
| If there is a lane in the range with radius. More...
|
|
static bool | ProjectionFromLane (std::shared_ptr< const hdmap::LaneInfo > lane_info, const double s, hdmap::MapPathPoint *path_point) |
| Get the nearest path point to a longitudinal coordinate on a lane. More...
|
|
static bool | IsVirtualLane (const std::string &lane_id) |
| Determine if a lane is a virtual lane. More...
|
|
static bool | OnVirtualLane (const Eigen::Vector2d &position, const double radius) |
| Determine if a point is on a virtual lane. More...
|
|
static void | OnLane (const std::vector< std::shared_ptr< const hdmap::LaneInfo >> &prev_lanes, const Eigen::Vector2d &point, const double heading, const double radius, const bool on_lane, const int max_num_lane, const double max_lane_angle_diff, std::vector< std::shared_ptr< const hdmap::LaneInfo >> *lanes) |
| Get the connected lanes from some specified lanes. More...
|
|
static std::shared_ptr< const apollo::hdmap::LaneInfo > | GetMostLikelyCurrentLane (const common::PointENU &position, const double radius, const double heading, const double angle_diff_threshold) |
| Get the lane that the position is on with minimal angle diff. More...
|
|
static bool | IsProjectionApproximateWithinLane (const Eigen::Vector2d &ego_position, const std::string &lane_id) |
| Check whether the projection of ego vehicle is on the target lane. Note: the direction of the lane is approximated by the terminal points. More...
|
|
static bool | NearJunction (const Eigen::Vector2d &point, const double radius) |
| Check if there are any junctions within the range centered at a certain point with a radius. More...
|
|
static bool | IsPointInJunction (const double x, const double y, const std::shared_ptr< const hdmap::JunctionInfo > junction_info_ptr) |
| Check if a point with coord x and y is in the junction. More...
|
|
static bool | InJunction (const Eigen::Vector2d &point, const double radius) |
| Check if the obstacle is in a junction. More...
|
|
static bool | IsLaneInJunction (const std::shared_ptr< const hdmap::LaneInfo > lane_info, const std::string &junction_id) |
| Check if a lane is in a junction. More...
|
|
static std::vector< std::shared_ptr< const apollo::hdmap::JunctionInfo > > | GetJunctions (const Eigen::Vector2d &point, const double radius) |
| Get a list of junctions given a point and a search radius. More...
|
|
static std::vector< std::shared_ptr< const apollo::hdmap::PNCJunctionInfo > > | GetPNCJunctions (const Eigen::Vector2d &point, const double radius) |
| Get a list of junctions given a point and a search radius. More...
|
|
static double | PathHeading (std::shared_ptr< const hdmap::LaneInfo > lane_info, const common::PointENU &point) |
| Get the lane heading on a point. More...
|
|
static bool | SmoothPointFromLane (const std::string &id, const double s, const double l, Eigen::Vector2d *point, double *heading) |
| Get the smooth point on a lane by a longitudinal coordinate. More...
|
|
static void | NearbyLanesByCurrentLanes (const Eigen::Vector2d &point, const double heading, const double radius, const std::vector< std::shared_ptr< const hdmap::LaneInfo >> &lanes, const int max_num_lane, std::vector< std::shared_ptr< const hdmap::LaneInfo >> *nearby_lanes) |
| Get nearby lanes by a position and current lanes. More...
|
|
static std::shared_ptr< const hdmap::LaneInfo > | GetLeftNeighborLane (const std::shared_ptr< const hdmap::LaneInfo > &ptr_ego_lane, const Eigen::Vector2d &ego_position, const double threshold) |
|
static std::shared_ptr< const hdmap::LaneInfo > | GetRightNeighborLane (const std::shared_ptr< const hdmap::LaneInfo > &ptr_ego_lane, const Eigen::Vector2d &ego_position, const double threshold) |
|
static std::vector< std::string > | NearbyLaneIds (const Eigen::Vector2d &point, const double radius) |
| Get nearby lanes by a position. More...
|
|
static bool | IsLeftNeighborLane (std::shared_ptr< const hdmap::LaneInfo > target_lane, std::shared_ptr< const hdmap::LaneInfo > curr_lane) |
| Check if a lane is a left neighbor of another lane. More...
|
|
static bool | IsLeftNeighborLane (std::shared_ptr< const hdmap::LaneInfo > target_lane, const std::vector< std::shared_ptr< const hdmap::LaneInfo >> &lanes) |
| Check if the target lane is a left neighbor of one of some lanes. More...
|
|
static bool | IsRightNeighborLane (std::shared_ptr< const hdmap::LaneInfo > target_lane, std::shared_ptr< const hdmap::LaneInfo > curr_lane) |
| Check if a lane is a right neighbor of another lane. More...
|
|
static bool | IsRightNeighborLane (std::shared_ptr< const hdmap::LaneInfo > target_lane, const std::vector< std::shared_ptr< const hdmap::LaneInfo >> &lanes) |
| Check if the target lane is a right neighbor of one of some lanes. More...
|
|
static bool | IsSuccessorLane (std::shared_ptr< const hdmap::LaneInfo > target_lane, std::shared_ptr< const hdmap::LaneInfo > curr_lane) |
| Check if the target lane is a successor of another lane. More...
|
|
static bool | IsSuccessorLane (std::shared_ptr< const hdmap::LaneInfo > target_lane, const std::vector< std::shared_ptr< const hdmap::LaneInfo >> &lanes) |
| Check if the target lane is a successor of one of some lanes. More...
|
|
static bool | IsPredecessorLane (std::shared_ptr< const hdmap::LaneInfo > target_lane, std::shared_ptr< const hdmap::LaneInfo > curr_lane) |
| Check if the target lane is a predecessor of another lane. More...
|
|
static bool | IsPredecessorLane (std::shared_ptr< const hdmap::LaneInfo > target_lane, const std::vector< std::shared_ptr< const hdmap::LaneInfo >> &lanes) |
| Check if the target lane is a predecessor of one of some lanes. More...
|
|
static bool | IsIdenticalLane (std::shared_ptr< const hdmap::LaneInfo > other_lane, std::shared_ptr< const hdmap::LaneInfo > curr_lane) |
| Check if two lanes are identical. More...
|
|
static bool | IsIdenticalLane (std::shared_ptr< const hdmap::LaneInfo > other_lane, const std::vector< std::shared_ptr< const hdmap::LaneInfo >> &lanes) |
| Check if a lane is identical to one of some lanes. More...
|
|
static int | LaneTurnType (const std::string &lane_id) |
| Get lane turn type. More...
|
|
static std::vector< std::shared_ptr< const hdmap::LaneInfo > > | GetNearbyLanes (const common::PointENU &position, const double nearby_radius) |
| Get all nearby lanes within certain radius given a position. More...
|
|
static std::shared_ptr< const hdmap::LaneInfo > | LaneWithSmallestAverageCurvature (const std::vector< std::shared_ptr< const hdmap::LaneInfo >> &lane_infos) |
| Get the pointer to the lane with the smallest average curvature. More...
|
|
static double | AverageCurvature (const std::string &lane_id, const size_t sample_size) |
| Get the average curvature along a lane with the ID lane_id. More...
|
|