提交 468bb12e 编写于 作者: L luoqi06 提交者: Jiangtao Hu

Planning : fix the trajectory update in open space planner in multi-threads

上级 bede0071
......@@ -126,7 +126,9 @@ apollo::common::Status OpenSpacePlanner::Plan(
if (IsCollisionFreeTrajectory(current_trajectory_)) {
// Convet current trajectory to publishable_trajectory
// frame->mutable_trajectory()->CopyFrom(current_trajectory_);
publishable_trajectory_.Clear();
publishable_trajectory_.MergeFrom(current_trajectory_);
frame->mutable_trajectory()->CopyFrom(publishable_trajectory_);
return Status::OK();
} else {
// If collision happens, return wrong planning status and estop
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册