Skip to content

Commit 4778bce

Browse files
committed
2 segment paths in failing tests
Signed-off-by: rayferric <[email protected]>
1 parent 366f596 commit 4778bce

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

nav2_smoother/test/test_simple_smoother.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,10 @@ TEST(SmootherTest, test_simple_smoother)
201201
collision_path.poses[7].pose.position.y = 1.2;
202202
collision_path.poses[8].pose.position.x = 1.3;
203203
collision_path.poses[8].pose.position.y = 1.3;
204-
collision_path.poses[9].pose.position.x = 1.4;
205-
collision_path.poses[9].pose.position.y = 1.4;
206-
collision_path.poses[10].pose.position.x = 1.5;
207-
collision_path.poses[10].pose.position.y = 1.5;
204+
collision_path.poses[9].pose.position.x = 1.2; // a cusp since we need 2 segments
205+
collision_path.poses[9].pose.position.y = 1.2;
206+
collision_path.poses[10].pose.position.x = 1.1;
207+
collision_path.poses[10].pose.position.y = 1.1;
208208
EXPECT_THROW(smoother->smooth(collision_path, max_time), nav2_core::FailedToSmoothPath);
209209

210210
// test cusp / reversing segments
@@ -268,9 +268,9 @@ TEST(SmootherTest, test_simple_smoother)
268268
max_its_path.poses[7].pose.position.y = 0.7;
269269
max_its_path.poses[8].pose.position.x = 0.5;
270270
max_its_path.poses[8].pose.position.y = 0.8;
271-
max_its_path.poses[9].pose.position.x = 0.5;
272-
max_its_path.poses[9].pose.position.y = 0.9;
271+
max_its_path.poses[9].pose.position.x = 0.5; // a cusp since we need 2 segments
272+
max_its_path.poses[9].pose.position.y = 0.7;
273273
max_its_path.poses[10].pose.position.x = 0.5;
274-
max_its_path.poses[10].pose.position.y = 1.0;
274+
max_its_path.poses[10].pose.position.y = 1.6;
275275
EXPECT_THROW(smoother->smooth(max_its_path, max_time), nav2_core::FailedToSmoothPath);
276276
}

0 commit comments

Comments
 (0)