Skip to content

Commit df58f31

Browse files
HongyiSunxiaoxq
authored andcommitted
Prediction: add ADCJunctionId for storytelling_container
1 parent 8531914 commit df58f31

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

modules/prediction/container/storytelling/storytelling_container.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ std::shared_ptr<const hdmap::JunctionInfo> StoryTellingContainer::ADCJunction()
3232
return PredictionMap::JunctionById(adc_junction_id);
3333
}
3434

35+
std::string StoryTellingContainer::ADCJunctionId() const {
36+
return close_to_junction_.junction_id();
37+
}
38+
3539
double StoryTellingContainer::ADCDistanceToJunction() const {
3640
return close_to_junction_.distance();
3741
}

modules/prediction/container/storytelling/storytelling_container.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ class StoryTellingContainer : public Container {
5555
*/
5656
std::shared_ptr<const hdmap::JunctionInfo> ADCJunction() const;
5757

58+
/**
59+
* @brief Get ADC junction id
60+
* @return A pointer to ADC junction id
61+
*/
62+
std::string ADCJunctionId() const;
63+
5864
/**
5965
* @brief Compute ADC's distance to junction
6066
* @return ADC's distance to junction

0 commit comments

Comments
 (0)