Skip to content

Commit

Permalink
fix(autoware_obstacle_cruise_planner): fix assignBoolToFloat warning (#…
Browse files Browse the repository at this point in the history
…7541)

* fix(autoware_obstacle_cruise_planner): fix assignBoolToFloat warning

Signed-off-by: Ryuta Kambe <[email protected]>

* delete unnecessary file

Signed-off-by: Ryuta Kambe <[email protected]>

* style(pre-commit): autofix

---------

Signed-off-by: Ryuta Kambe <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
2 people authored and KhalilSelyan committed Jul 22, 2024
1 parent 4822b84 commit f3e53c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions planning/autoware_obstacle_cruise_planner/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1209,8 +1209,8 @@ std::optional<StopObstacle> 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(
Expand Down

0 comments on commit f3e53c5

Please sign in to comment.