提交 ee6c95e9 编写于 作者: H Hongyi 提交者: Kecheng Xu

Prediction: delete useless gflags

上级 e92d2922
......@@ -129,8 +129,7 @@ void MessageProcess::OnPerception(
// If in junction, BuildJunctionFeature();
// If not, BuildLaneGraph().
const Scenario& scenario = ScenarioManager::Instance()->scenario();
if (scenario.type() == Scenario::JUNCTION && scenario.has_junction_id() &&
FLAGS_enable_junction_feature) {
if (scenario.type() == Scenario::JUNCTION && scenario.has_junction_id()) {
JunctionAnalyzer::Init(scenario.junction_id());
ptr_obstacles_container->BuildJunctionFeature();
}
......
......@@ -58,10 +58,6 @@ DEFINE_int32(road_graph_max_search_horizon, 20,
DEFINE_double(junction_distance_threshold, 10.0,
"Distance threshold "
"to junction to consider as junction scenario");
DEFINE_bool(enable_prioritize_obstacles, true,
"If to enable the functionality to prioritize obstacles");
DEFINE_bool(enable_junction_feature, true,
"If to enable building junction feature for obstacles");
DEFINE_bool(enable_all_junction, false,
"If consider all junction with junction_mlp_model.");
DEFINE_double(caution_search_distance_ahead, 50.0,
......
......@@ -44,8 +44,6 @@ DECLARE_int32(road_graph_max_search_horizon);
// Scenario
DECLARE_double(junction_distance_threshold);
DECLARE_bool(enable_prioritize_obstacles);
DECLARE_bool(enable_junction_feature);
DECLARE_bool(enable_all_junction);
DECLARE_double(caution_search_distance_ahead);
DECLARE_double(caution_search_distance_backward_for_merge);
......
......@@ -39,9 +39,8 @@ void ScenarioManager::Run() {
current_scenario_ = ptr_scenario_features->scenario();
if (FLAGS_enable_prioritize_obstacles) {
ObstaclesPrioritizer::PrioritizeObstacles();
}
ObstaclesPrioritizer::PrioritizeObstacles();
// TODO(all) other functionalities including lane, junction filters
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册