提交 f45fd252 编写于 作者: L Liangliang Zhang 提交者: Dong Li

Planning: quick fix to avoid key conflict. (#2232)

上级 05f6c502
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册