Skip to content

Commit

Permalink
Use float instead of auto
Browse files Browse the repository at this point in the history
Signed-off-by: redvinaa <[email protected]>
  • Loading branch information
redvinaa committed Jan 3, 2025
1 parent fde90af commit 265004f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ inline bool withinPositionGoalTolerance(
std::pow(goal.position.x - robot.position.x, 2) +
std::pow(goal.position.y - robot.position.y, 2);

const auto pose_tolerance_sq = pose_tolerance * pose_tolerance;
const float pose_tolerance_sq = pose_tolerance * pose_tolerance;

if (dist_sq < pose_tolerance_sq) {
return true;
Expand Down

0 comments on commit 265004f

Please sign in to comment.