From 1d3a0947854e1385033e0e186e7172c403b60fcb Mon Sep 17 00:00:00 2001 From: Ryuta Kambe Date: Wed, 19 Jun 2024 15:38:15 +0900 Subject: [PATCH] fix(autoware_obstacle_cruise_planner): fix assignBoolToFloat warning (#7541) * fix(autoware_obstacle_cruise_planner): fix assignBoolToFloat warning Signed-off-by: Ryuta Kambe * delete unnecessary file Signed-off-by: Ryuta Kambe * style(pre-commit): autofix --------- Signed-off-by: Ryuta Kambe Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- planning/autoware_obstacle_cruise_planner/src/node.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/planning/autoware_obstacle_cruise_planner/src/node.cpp b/planning/autoware_obstacle_cruise_planner/src/node.cpp index 031e58797364e..b40523c6a0d10 100644 --- a/planning/autoware_obstacle_cruise_planner/src/node.cpp +++ b/planning/autoware_obstacle_cruise_planner/src/node.cpp @@ -1209,8 +1209,8 @@ std::optional ObstacleCruisePlannerNode::createStopObstacle( // NOTE: Dynamic obstacles for stop are crossing ego's trajectory with high speed, // and the collision between ego and obstacles are within the margin threshold. const bool is_obstacle_crossing = isObstacleCrossing(traj_points, obstacle); - const double has_high_speed = p.crossing_obstacle_velocity_threshold < - std::hypot(obstacle.twist.linear.x, obstacle.twist.linear.y); + const bool has_high_speed = p.crossing_obstacle_velocity_threshold < + std::hypot(obstacle.twist.linear.x, obstacle.twist.linear.y); if (is_obstacle_crossing && has_high_speed) { // Get highest confidence predicted path const auto resampled_predicted_path = resampleHighestConfidencePredictedPath(