提交 0e35b31c 编写于 作者: D Dong Li 提交者: Liangliang Zhang

planning: disable reference line stitching in navigation mode

上级 580b4bee
......@@ -22,6 +22,7 @@
#include <algorithm>
#include "modules/common/configs/config_gflags.h"
#include "modules/common/log.h"
#include "modules/planning/common/planning_gflags.h"
......@@ -57,7 +58,7 @@ std::vector<TrajectoryPoint> TrajectoryStitcher::ComputeStitchingTrajectory(
const double planning_cycle_time,
const PublishableTrajectory* prev_trajectory, bool* is_replan) {
*is_replan = true;
if (!FLAGS_enable_trajectory_stitcher) {
if (!FLAGS_enable_trajectory_stitcher || FLAGS_use_navigation_mode) {
return ComputeReinitStitchingTrajectory(vehicle_state);
}
if (!prev_trajectory) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册