diff --git a/modules/planning/common/open_space_info.h b/modules/planning/common/open_space_info.h index 48452935f7c44e1e532ad4d1acbcddb3c7f5775c..f3729602c403a9b85a1d76425afea2444d8aed31 100644 --- a/modules/planning/common/open_space_info.h +++ b/modules/planning/common/open_space_info.h @@ -229,6 +229,7 @@ class OpenSpaceInfo { } const std::vector &paritioned_trajectories() const { + // to-do(Runxin): export to chart return paritioned_trajectories_; } @@ -245,6 +246,7 @@ class OpenSpaceInfo { } const TrajGearPair &chosen_paritioned_trajectory() const { + // to-do(Runxin): export to chart return chosen_paritioned_trajectory_; } diff --git a/modules/planning/conf/planning.conf b/modules/planning/conf/planning.conf index 8451c9841f0d73214dbea37d069e0462ab62f894..7b370a664c1c843fc74a358edeecc3cd249a9077 100644 --- a/modules/planning/conf/planning.conf +++ b/modules/planning/conf/planning.conf @@ -15,7 +15,6 @@ --enable_scenario_side_pass --enable_scenario_traffic_light --enable_collision_detection ---export_chart=true # --smoother_config_filename=/apollo/modules/planning/conf/spiral_smoother_config.pb.txt # --smoother_config_filename=/apollo/modules/planning/conf/cosTheta_smoother_config.pb.txt @@ -31,6 +30,7 @@ # --open_space_planner_switchable=true # --enable_open_space_planner_thread=true # --enable_record_debug=true +# --export_chart=true # --use_gear_shift_trajectory=true # --enable_parallel_hybrid_a=true # --enable_parallel_open_space_smoother=false diff --git a/modules/planning/on_lane_planning.cc b/modules/planning/on_lane_planning.cc index fdc9a93eaa5d81919e485003d7960f0260868f73..c8e90939a99db7212e58df108c3f3ea70997e9eb 100644 --- a/modules/planning/on_lane_planning.cc +++ b/modules/planning/on_lane_planning.cc @@ -414,11 +414,10 @@ Status OnLanePlanning::Plan( if (FLAGS_enable_record_debug) { ptr_debug->MergeFrom(frame_->open_space_info().debug_instance()); ADEBUG << "Open space debug information added!"; - if (FLAGS_export_chart) { - // call open space info load debug - ExportOpenSpaceChart(frame_->open_space_info().debug_instance(), - ptr_debug); - } + // call open space info load debug + // to-do: runxin, create a new flag to enable openspace chart + ExportOpenSpaceChart(frame_->open_space_info().debug_instance(), + ptr_debug); } } else { const auto* best_ref_info = frame_->FindDriveReferenceLineInfo();