Skip to content

Commit

Permalink
fix: remove std::cerr
Browse files Browse the repository at this point in the history
Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
  • Loading branch information
zulfaqar-azmi-t4 committed Jul 8, 2022
1 parent 9e9e8a1 commit 2dca378
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -585,10 +585,6 @@ double frontVehicleStopDistance(
const double & front_vehicle_velocity, const double & front_vehicle_accel,
const double & distance_to_collision)
{
std::cerr << "calculating front stop thresh stopping distance = "
<< stoppingDistance(front_vehicle_velocity, front_vehicle_accel) << " + "
<< distance_to_collision << '\n';

return stoppingDistance(front_vehicle_velocity, front_vehicle_accel) + distance_to_collision;
}

Expand Down Expand Up @@ -619,15 +615,12 @@ bool hasEnoughDistance(
}

const auto is_obj_in_front = isObjectFront(front_vehicle_pose);
std::cerr << "is_obj_in_front = " << is_obj_in_front << '\n';

const auto front_vehicle_velocity =
(is_obj_in_front) ? object_current_twist.linear : ego_current_twist.linear;
std::cerr << "front_vehicle_velocity = " << util::l2Norm(front_vehicle_velocity) << '\n';

const auto rear_vehicle_velocity =
(is_obj_in_front) ? ego_current_twist.linear : object_current_twist.linear;
std::cerr << "rear_vehicle_velocity = " << util::l2Norm(rear_vehicle_velocity) << '\n';

const auto front_vehicle_accel = param.expected_front_deceleration;
const auto rear_vehicle_accel = param.expected_rear_deceleration;
Expand All @@ -640,9 +633,6 @@ bool hasEnoughDistance(
util::l2Norm(rear_vehicle_velocity), rear_vehicle_accel, param.rear_vehicle_reaction_time,
param.safety_time_margin_for_control);

std::cerr << "rear_vehicle_stop_threshold = " << rear_vehicle_stop_threshold << '\t';
std::cerr << "front_vehicle_stop_threshold = " << front_vehicle_stop_threshold << '\n';

return isLongitudinalDistanceEnough(rear_vehicle_stop_threshold, front_vehicle_stop_threshold);
}

Expand Down

0 comments on commit 2dca378

Please sign in to comment.