提交 ce694b5f 编写于 作者: K kechxu 提交者: HongyiSun

Prediction: implement write data for tuning

上级 8166308f
......@@ -49,9 +49,11 @@ DEFINE_string(
"will use the listen to published ros topic mode.");
DEFINE_int32(prediction_offline_mode, 0,
"0: online mode, no dump file"
"1: dump feature proto to feature.x.bin"
"2: dump data for learning to datalearn.x.bin"
"3: dump predicted trajectory to predict_result.x.bin");
"1: dump feature proto to feature.*.bin"
"2: dump data for learning to datalearn.*.bin"
"3: dump predicted trajectory to predict_result.*.bin"
"4: dump frame environment info to frame_env.*.bin"
"5: dump data for tuning to datatuning.*.bin");
DEFINE_bool(enable_multi_thread, true, "If enable multi-thread.");
DEFINE_int32(max_thread_num, 8, "Maximal number of threads.");
......
......@@ -99,6 +99,13 @@ void ObstaclesContainer::Insert(const ::google::protobuf::Message& message) {
}
break;
}
case 5: {
if (std::fabs(timestamp - timestamp_) > FLAGS_replay_timestamp_gap ||
FeatureOutput::SizeOfFrameEnv() > FLAGS_max_num_dump_feature) {
FeatureOutput::WriteDataForTuning();
}
break;
}
default: {
// No data dump
break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册