From 73e22caf64ba2b777627757ed6036cebf5d0bd97 Mon Sep 17 00:00:00 2001 From: Ryuta Kambe Date: Thu, 20 Jun 2024 18:47:34 +0900 Subject: [PATCH] fix(autoware_mpc_lateral_controller): fix duplicateExpression warning (#7542) * fix(autoware_mpc_lateral_controller): fix duplicateExpression warning 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> --- .../src/mpc_lateral_controller.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/control/autoware_mpc_lateral_controller/src/mpc_lateral_controller.cpp b/control/autoware_mpc_lateral_controller/src/mpc_lateral_controller.cpp index a42f6b7fc0d2d..43acbb862b573 100644 --- a/control/autoware_mpc_lateral_controller/src/mpc_lateral_controller.cpp +++ b/control/autoware_mpc_lateral_controller/src/mpc_lateral_controller.cpp @@ -660,8 +660,8 @@ bool MpcLateralController::isValidTrajectory(const Trajectory & traj) const !isfinite(p.pose.orientation.w) || !isfinite(p.pose.orientation.x) || !isfinite(p.pose.orientation.y) || !isfinite(p.pose.orientation.z) || !isfinite(p.longitudinal_velocity_mps) || !isfinite(p.lateral_velocity_mps) || - !isfinite(p.lateral_velocity_mps) || !isfinite(p.heading_rate_rps) || - !isfinite(p.front_wheel_angle_rad) || !isfinite(p.rear_wheel_angle_rad)) { + !isfinite(p.heading_rate_rps) || !isfinite(p.front_wheel_angle_rad) || + !isfinite(p.rear_wheel_angle_rad)) { return false; } }