提交 c6a1d678 编写于 作者: L Liangliang Zhang 提交者: Jiangtao Hu

Planning: bugfix for routing check.

上级 b0c5f2e3
......@@ -80,10 +80,6 @@ bool PlanningComponent::Proc(
// check and process possible rerouting request
Rerouting();
if (!CheckInput()) {
return false;
}
// process fused input data
local_view_.prediction_obstacles = prediction_obstacles;
local_view_.chassis = chassis;
......@@ -99,6 +95,10 @@ bool PlanningComponent::Proc(
std::make_shared<TrafficLightDetection>(traffic_light_);
}
if (!CheckInput()) {
return false;
}
ADCTrajectory adc_trajectory_pb;
planning_base_->RunOnce(local_view_, &adc_trajectory_pb);
......@@ -130,7 +130,7 @@ bool PlanningComponent::CheckInput() {
not_ready->set_reason("localization not ready");
} else if (local_view_.chassis == nullptr) {
not_ready->set_reason("chassis not ready");
} else if (local_view_.routing == nullptr) {
} else if (!local_view_.routing->has_header()) {
not_ready->set_reason("routing not ready");
} else if (HDMapUtil::BaseMapPtr() == nullptr) {
not_ready->set_reason("map not ready");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册