Skip to content

Commit 1d3a094

Browse files
fix(autoware_obstacle_cruise_planner): fix assignBoolToFloat warning (#7541)
* fix(autoware_obstacle_cruise_planner): fix assignBoolToFloat warning Signed-off-by: Ryuta Kambe <ryuta.kambe@tier4.jp> * delete unnecessary file Signed-off-by: Ryuta Kambe <ryuta.kambe@tier4.jp> * style(pre-commit): autofix --------- Signed-off-by: Ryuta Kambe <ryuta.kambe@tier4.jp> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent fbd61e2 commit 1d3a094

File tree

1 file changed

+2
-2
lines changed
  • planning/autoware_obstacle_cruise_planner/src

1 file changed

+2
-2
lines changed

planning/autoware_obstacle_cruise_planner/src/node.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1209,8 +1209,8 @@ std::optional<StopObstacle> ObstacleCruisePlannerNode::createStopObstacle(
12091209
// NOTE: Dynamic obstacles for stop are crossing ego's trajectory with high speed,
12101210
// and the collision between ego and obstacles are within the margin threshold.
12111211
const bool is_obstacle_crossing = isObstacleCrossing(traj_points, obstacle);
1212-
const double has_high_speed = p.crossing_obstacle_velocity_threshold <
1213-
std::hypot(obstacle.twist.linear.x, obstacle.twist.linear.y);
1212+
const bool has_high_speed = p.crossing_obstacle_velocity_threshold <
1213+
std::hypot(obstacle.twist.linear.x, obstacle.twist.linear.y);
12141214
if (is_obstacle_crossing && has_high_speed) {
12151215
// Get highest confidence predicted path
12161216
const auto resampled_predicted_path = resampleHighestConfidencePredictedPath(

0 commit comments

Comments
 (0)