提交 8a03368f 编写于 作者: J Jiangtao Hu 提交者: Jiangtao Hu

routing: reduce routing response history internval from 3 sec to 1 sec.

上级 118c9dc9
......@@ -30,5 +30,5 @@ DEFINE_double(min_length_for_lane_change, 1.0,
DEFINE_bool(enable_change_lane_in_result, true,
"contain change lane operator in result");
DEFINE_uint32(routing_response_history_interval_ms, 3000,
DEFINE_uint32(routing_response_history_interval_ms, 1000,
"ms, emit routing resposne for this time interval");
......@@ -58,7 +58,10 @@ bool RoutingComponent::Init() {
if (ptr) {
std::lock_guard<std::mutex> guard(this->mutex_);
if (this->response_.get() != nullptr) {
this->response_history_writer_->Write(response_);
auto response = *response_;
auto timestamp = apollo::common::time::Clock::NowInSeconds();
response.mutable_header()->set_timestamp_sec(timestamp);
this->response_history_writer_->Write(response);
}
}
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册