Skip to content

Commit

Permalink
fix(mrm_handler): fix stop judgement (#7362)
Browse files Browse the repository at this point in the history
fix stop judgement

Signed-off-by: Autumn60 <[email protected]>
Co-authored-by: Autumn60 <[email protected]>
  • Loading branch information
2 people authored and KhalilSelyan committed Jul 22, 2024
1 parent 490390f commit 39fafb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/mrm_handler/src/mrm_handler/mrm_handler_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 39fafb3

Please sign in to comment.