提交 8f3b5d17 编写于 作者: J Jiangtao Hu 提交者: Aaron Xiao

planning: record st graph into debug in case of error.

上级 3b315fa8
......@@ -98,6 +98,7 @@ Status DpStSpeedOptimizer::Process(const PathData& path_data,
if (!st_graph.Search(path_decision, speed_data).ok()) {
const std::string msg = "Failed to search graph with dynamic programming.";
AERROR << msg;
RecordSTGraphDebug(boundaries, speed_limit, *speed_data);
return Status(ErrorCode::PLANNING_ERROR, msg);
}
......
......@@ -101,6 +101,7 @@ Status QpSplineStSpeedOptimizer::Process(const PathData& path_data,
StGraphData st_graph_data(boundaries, init_point, speed_limits,
path_data.discretized_path().Length());
if (st_graph.Search(st_graph_data, path_data, speed_data) != Status::OK()) {
RecordSTGraphDebug(boundaries, speed_limits, *speed_data);
return Status(ErrorCode::PLANNING_ERROR,
"Failed to search graph with dynamic programming!");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册