Skip to content

Commit

Permalink
add debug
Browse files Browse the repository at this point in the history
Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
  • Loading branch information
zulfaqar-azmi-t4 committed Dec 18, 2023
1 parent ce828f1 commit 6b1e0a7
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#include "behavior_path_planner_common/utils/path_utils.hpp"
#include "behavior_path_planner_common/utils/utils.hpp"

#include <rclcpp/logging.hpp>

#include <boost/geometry/algorithms/centroid.hpp>
#include <boost/geometry/strategies/cartesian/centroid_bashein_detmer.hpp>

Expand Down Expand Up @@ -103,6 +105,12 @@ bool AvoidanceByLaneChange::specialRequiredCheck() const

const auto maximum_avoid_distance = avoidance_helper_->getMaxAvoidanceDistance(shift_length);

RCLCPP_DEBUG(
logger_,
"nearest_object.longitudinal %.3f, minimum_lane_change_length %.3f, maximum_avoid_distance "
"%.3f",
nearest_object.longitudinal, minimum_lane_change_length, maximum_avoid_distance);

return nearest_object.longitudinal > std::max(minimum_lane_change_length, maximum_avoid_distance);
}

Expand Down

0 comments on commit 6b1e0a7

Please sign in to comment.