@@ -201,10 +201,10 @@ TEST(SmootherTest, test_simple_smoother)
201
201
collision_path.poses [7 ].pose .position .y = 1.2 ;
202
202
collision_path.poses [8 ].pose .position .x = 1.3 ;
203
203
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 ;
208
208
EXPECT_THROW (smoother->smooth (collision_path, max_time), nav2_core::FailedToSmoothPath);
209
209
210
210
// test cusp / reversing segments
@@ -268,9 +268,9 @@ TEST(SmootherTest, test_simple_smoother)
268
268
max_its_path.poses [7 ].pose .position .y = 0.7 ;
269
269
max_its_path.poses [8 ].pose .position .x = 0.5 ;
270
270
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 ;
273
273
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 ;
275
275
EXPECT_THROW (smoother->smooth (max_its_path, max_time), nav2_core::FailedToSmoothPath);
276
276
}
0 commit comments