Skip to content

Commit 6f7d21f

Browse files
authored
Use same FP limits for TrackedVehicle to avoid self-moving (gazebosim#2651)
Signed-off-by: Maksim Derbasov <ntfs.hard@gmail.com>
1 parent 7f002d6 commit 6f7d21f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/systems/tracked_vehicle/TrackedVehicle.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -692,11 +692,11 @@ void TrackedVehiclePrivate::UpdateVelocity(
692692

693693
// radius of the turn the robot is doing
694694
this->desiredRotationRadiusSigned =
695-
(fabs(angVel) < 0.1) ?
695+
(fabs(angVel) < 1e-6) ?
696696
// is driving straight
697697
math::INF_D :
698698
(
699-
(fabs(linVel) < 0.1) ?
699+
(fabs(linVel) < 1e-6) ?
700700
// is rotating about a single point
701701
0 :
702702
// general movement

0 commit comments

Comments
 (0)