Skip to content

Commit 00aefbf

Browse files
committed
re-recorrect the success logic :-)
1 parent ca2bc56 commit 00aefbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎nav2_system_tests/src/recoveries/backup/backup_recovery_tester.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ bool BackupRecoveryTester::defaultBackupRecoveryTest(
179179

180180
double dist = nav2_util::geometry_utils::euclidean_distance(initial_pose, current_pose);
181181

182-
if (fabs(dist) > tolerance) {
182+
if (fabs(dist) > target_dist + tolerance) {
183183
RCLCPP_ERROR(
184184
node_->get_logger(),
185185
"Distance from goal is %lf (tolerance %lf)",

0 commit comments

Comments
 (0)