21 #include <unordered_map> 25 #include "modules/prediction/proto/feature.pb.h" 28 namespace prediction {
36 void Init(
const std::string& junction_id);
68 const std::vector<std::string>& start_lane_ids);
74 void SetAllJunctionExits();
81 std::vector<JunctionExit> GetJunctionExits(
const std::string& start_lane_id);
88 bool IsExitLane(
const std::string& lane_id);
92 std::shared_ptr<const apollo::hdmap::JunctionInfo> junction_info_ptr_;
94 std::unordered_map<std::string, JunctionExit> junction_exits_;
96 std::unordered_map<std::string, JunctionFeature> junction_features_;
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
void Init(const std::string &junction_id)
Initialize by junction ID, if junction id differs from prev cycle.
const JunctionFeature & GetJunctionFeature(const std::string &start_lane_id)
Get junction feature starting from start_lane_id.
Definition: junction_analyzer.h:30
void Clear()
Clear all stored data.
double ComputeJunctionRange()
Compute junction range.
const std::string & GetJunctionId()
Get junction ID.