提交 ccd3533d 编写于 作者: C cheni-kuei 提交者: Liangliang Zhang

Perception: Fix bug in visualization. (when lane post processing is not used)

上级 198ee540
......@@ -192,16 +192,17 @@ bool GLFWFusionViewer::initialize() {
ConfigManager* config_manager = ConfigManager::instance();
const ModelConfig* lane_post_process_model_config =
config_manager->GetModelConfig(FLAGS_onboard_lane_post_processor);
if (lane_post_process_model_config == nullptr) {
AERROR << "Unknown lane post-processing model: "
AWARN << "Unknown lane post-processing model: "
<< FLAGS_onboard_lane_post_processor;
return false;
}
if (!lane_post_process_model_config->GetValue("lane_map_confidence_thresh",
&lane_map_threshold_)) {
AERROR << "The confidence threshold of label map not found.";
return false;
} else {
if (!lane_post_process_model_config
->GetValue("lane_map_confidence_thresh", &lane_map_threshold_)) {
AWARN << "The confidence threshold of label map not found.";
}
}
AINFO << "onboard lane post-processor: "
<< FLAGS_onboard_lane_post_processor;
AINFO << "lane map confidence threshold = " << lane_map_threshold_;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册