Skip to content

Commit

Permalink
Planning: quick fix to avoid key conflict. (ApolloAuto#2232)
Browse files Browse the repository at this point in the history
  • Loading branch information
lianglia-apollo authored and startcode committed Dec 30, 2017
1 parent f622297 commit 4d16fb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/planning/tasks/dp_st_speed/dp_st_cost.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ double DpStCost::GetObstacleCost(const StGraphPoint& st_graph_point) {
double s_upper = 0.0;
double s_lower = 0.0;

const auto key = boundary.id() + std::to_string(st_graph_point.index_t());
const auto key =
boundary.id() + "#" + std::to_string(st_graph_point.index_t());
if (boundary_range_map_.find(key) == boundary_range_map_.end()) {
boundary.GetBoundarySRange(t, &s_upper, &s_lower);
boundary_range_map_[key] = std::make_pair(s_upper, s_lower);
Expand Down

0 comments on commit 4d16fb6

Please sign in to comment.