26 #include "modules/prediction/proto/lane_graph.pb.h" 29 namespace prediction {
40 RoadGraph(
const double start_s,
const double length,
41 const bool consider_divide,
42 std::shared_ptr<const hdmap::LaneInfo> lane_info_ptr);
60 bool IsOnLaneGraph(std::shared_ptr<const hdmap::LaneInfo> lane_info_ptr,
61 const LaneGraph& lane_graph);
67 LaneGraph CombineLaneGraphs(
const LaneGraph& lane_graph_predecessor,
68 const LaneGraph& lane_graph_successor);
84 void ConstructLaneSequence(
85 const bool search_forward_direction,
const double accumulated_s,
86 const double curr_lane_seg_s,
87 std::shared_ptr<const hdmap::LaneInfo> lane_info_ptr,
88 const int graph_search_horizon,
const bool consider_lane_split,
89 std::list<LaneSegment>*
const lane_segments,
90 LaneGraph*
const lane_graph_ptr)
const;
94 void ConstructLaneSequence(
95 const double accumulated_s,
const double curr_lane_seg_s,
96 std::shared_ptr<const hdmap::LaneInfo> lane_info_ptr,
97 const int graph_search_horizon,
const bool consider_lane_split,
98 std::list<LaneSegment>*
const lane_segments,
99 LaneGraph*
const lane_graph_ptr)
const;
106 double length_ = -1.0;
109 bool consider_divide_ =
false;
112 std::shared_ptr<const hdmap::LaneInfo> lane_info_ptr_ =
nullptr;
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Definition: road_graph.h:31
common::Status BuildLaneGraphBidirection(LaneGraph *const lane_graph_ptr)
common::Status BuildLaneGraph(LaneGraph *const lane_graph)
Build the lane graph.
A general class to denote the return status of an API call. It can either be an OK status for success...
Definition: status.h:43
bool IsOnLaneGraph(std::shared_ptr< const hdmap::LaneInfo > lane_info_ptr, const LaneGraph &lane_graph)
Check if a lane with an s is on the lane graph.
RoadGraph(const double start_s, const double length, const bool consider_divide, std::shared_ptr< const hdmap::LaneInfo > lane_info_ptr)
Constructor.