Skip to content

Commit

Permalink
Use same FP limits for TrackedVehicle to avoid self-moving (#2651)
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Derbasov <[email protected]>
  • Loading branch information
ntfshard authored Dec 9, 2024
1 parent 7f002d6 commit 6f7d21f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/systems/tracked_vehicle/TrackedVehicle.cc
Original file line number Diff line number Diff line change
Expand Up @@ -692,11 +692,11 @@ void TrackedVehiclePrivate::UpdateVelocity(

// radius of the turn the robot is doing
this->desiredRotationRadiusSigned =
(fabs(angVel) < 0.1) ?
(fabs(angVel) < 1e-6) ?
// is driving straight
math::INF_D :
(
(fabs(linVel) < 0.1) ?
(fabs(linVel) < 1e-6) ?
// is rotating about a single point
0 :
// general movement
Expand Down

0 comments on commit 6f7d21f

Please sign in to comment.