提交 a1531113 编写于 作者: L luoqi06 提交者: Jiangtao Hu

Control : Remove temp flag per update in vehicle_state

上级 be0290e1
......@@ -40,7 +40,9 @@ using apollo::common::time::Clock;
using apollo::localization::LocalizationEstimate;
using apollo::planning::ADCTrajectory;
std::string Control::Name() const { return FLAGS_control_node_name; }
std::string Control::Name() const {
return FLAGS_control_node_name;
}
Status Control::Init() {
init_time_ = Clock::NowInSeconds();
......@@ -279,12 +281,6 @@ Status Control::CheckInput() {
}
}
// Add tempprary flag for test
if (FLAGS_use_navigation_mode) {
localization_.mutable_pose()->mutable_position()->set_x(0.0);
localization_.mutable_pose()->mutable_position()->set_y(0.0);
localization_.mutable_pose()->set_heading(0.0);
}
common::VehicleStateProvider::instance()->Update(localization_, chassis_);
return Status::OK();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册