Skip to content

Commit

Permalink
Planning: code clean for ROI decider.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjiang2018 authored and xiaoxq committed Jan 14, 2020
1 parent 4569786 commit ff05d2c
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

namespace apollo {
namespace planning {
// #define ADEBUG AINFO

using apollo::common::ErrorCode;
using apollo::common::Status;
Expand Down Expand Up @@ -161,10 +160,8 @@ void OpenSpaceRoiDecider::SetOriginFromADC(Frame *const frame,
const double adc_init_y = park_and_go_status.adc_init_position().y();
const double adc_init_heading = park_and_go_status.adc_init_heading();
common::math::Vec2d adc_init_position = {adc_init_x, adc_init_y};
const auto &vehicle_config =
common::VehicleConfigHelper::Instance()->GetConfig();
const double adc_length = vehicle_config.vehicle_param().length();
const double adc_width = vehicle_config.vehicle_param().width();
const double adc_length = vehicle_params_.length();
const double adc_width = vehicle_params_.width();
// ADC box
Box2d adc_box(adc_init_position, adc_init_heading, adc_length, adc_width);
// get vertices from ADC box
Expand Down Expand Up @@ -945,10 +942,8 @@ bool OpenSpaceRoiDecider::GetParkAndGoBoundary(
const double adc_init_y = park_and_go_status.adc_init_position().y();
const double adc_init_heading = park_and_go_status.adc_init_heading();
common::math::Vec2d adc_init_position = {adc_init_x, adc_init_y};
const auto &vehicle_config =
common::VehicleConfigHelper::Instance()->GetConfig();
const double adc_length = vehicle_config.vehicle_param().length();
const double adc_width = vehicle_config.vehicle_param().width();
const double adc_length = vehicle_params_.length();
const double adc_width = vehicle_params_.width();
// ADC box
Box2d adc_box(adc_init_position, adc_init_heading, adc_length, adc_width);
// get vertices from ADC box
Expand Down

0 comments on commit ff05d2c

Please sign in to comment.