提交 21717a04 编写于 作者: T Tao Jiaming 提交者: Dong Li

fix a bug in CreateObstacle

上级 5110aba1
......@@ -90,7 +90,7 @@ void Obstacle::CreateObstacles(
int trajectory_index = 0;
for (const auto& trajectory : prediction_obstacle.trajectory()) {
std::string obstacle_id = std::to_string(perception_id) + "_" +
std::to_string(trajectory_index);
std::to_string(trajectory_index++);
obstacles->emplace_back(std::unique_ptr<Obstacle>(new Obstacle(
obstacle_id, prediction_obstacle.perception_obstacle(), trajectory)));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册