From 39fafb3261501df9cbb4918f71e7afa696635249 Mon Sep 17 00:00:00 2001 From: Autumn60 <37181352+Autumn60@users.noreply.github.com> Date: Fri, 7 Jun 2024 20:01:26 +0900 Subject: [PATCH] fix(mrm_handler): fix stop judgement (#7362) fix stop judgement Signed-off-by: Autumn60 Co-authored-by: Autumn60 --- system/mrm_handler/src/mrm_handler/mrm_handler_core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/mrm_handler/src/mrm_handler/mrm_handler_core.cpp b/system/mrm_handler/src/mrm_handler/mrm_handler_core.cpp index 44407c40c6787..326fbb392fd35 100644 --- a/system/mrm_handler/src/mrm_handler/mrm_handler_core.cpp +++ b/system/mrm_handler/src/mrm_handler/mrm_handler_core.cpp @@ -520,7 +520,7 @@ bool MrmHandler::isStopped() auto odom = sub_odom_.takeData(); if (odom == nullptr) return false; constexpr auto th_stopped_velocity = 0.001; - return (std::abs(odom->twist.twist.linear.x < th_stopped_velocity) < th_stopped_velocity); + return (std::abs(odom->twist.twist.linear.x) < th_stopped_velocity); } bool MrmHandler::isDrivingBackwards()