Skip to content

Commit

Permalink
Prediction: minor code clean
Browse files Browse the repository at this point in the history
  • Loading branch information
kechxu committed Aug 15, 2019
1 parent 4c2a834 commit c2aeb54
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions modules/prediction/common/prediction_gflags.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ DEFINE_int32(road_graph_max_search_horizon, 20,

// Semantic Map
DEFINE_double(base_image_half_range, 100.0, "The half range of base image.");
DEFINE_bool(img_show_semantic_map, false, "If show the image of semantic map.");

// Scenario
DEFINE_double(junction_distance_threshold, 10.0,
Expand Down
1 change: 1 addition & 0 deletions modules/prediction/common/prediction_gflags.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ DECLARE_int32(road_graph_max_search_horizon);

// Semantic Map
DECLARE_double(base_image_half_range);
DECLARE_bool(img_show_semantic_map);

// Scenario
DECLARE_double(junction_distance_threshold);
Expand Down
2 changes: 1 addition & 1 deletion modules/prediction/common/prediction_system_gflags.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ DEFINE_bool(enable_multi_thread, true, "If enable multi-thread.");
DEFINE_int32(max_thread_num, 8, "Maximal number of threads.");
DEFINE_int32(max_caution_thread_num, 2,
"Maximal number of threads for caution obstacles.");
DEFINE_bool(enable_async_draw_base_image, false,
DEFINE_bool(enable_async_draw_base_image, true,
"If enable async to draw base image");

// Bag replay timestamp gap
Expand Down
2 changes: 1 addition & 1 deletion modules/prediction/common/semantic_map.cc
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ void SemanticMap::RunCurrFrame(
obstacle_id_history_map_ = obstacle_id_history_map;

// Crop ego_vehicle for demo
if (false) {
if (FLAGS_img_show_semantic_map) {
cv::Mat output_img;
if (GetMapById(FLAGS_ego_vehicle_id, &output_img)) {
cv::namedWindow("Demo window", cv::WINDOW_NORMAL);
Expand Down
3 changes: 0 additions & 3 deletions modules/prediction/conf/prediction.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,3 @@
--enable_multi_thread
--max_thread_num=8
--max_caution_thread_num=4

--noenable_async_draw_base_image
--noenable_semantic_map

0 comments on commit c2aeb54

Please sign in to comment.