提交 28a4fba9 编写于 作者: D Dong Li 提交者: Jiangtao Hu

planning: added reset planning to allow unit tests more independent

上级 150a755f
......@@ -90,6 +90,7 @@ bool PlanningTestBase::SetUpAdapters() {
}
void PlanningTestBase::SetUp() {
planning_.Stop();
CHECK(SetUpAdapters()) << "Failed to setup adapters";
planning_.Init();
}
......
......@@ -215,7 +215,11 @@ void Planning::RunOnce() {
}
}
void Planning::Stop() {}
void Planning::Stop() {
last_publishable_trajectory_.Clear();
frame_.reset(nullptr);
planner_.reset(nullptr);
}
common::Status Planning::Plan(const bool is_on_auto_mode,
const double current_time_stamp,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册