@@ -1876,40 +1876,34 @@ TEST(trajectory, insertTargetPoint)
1876
1876
1877
1877
// Invalid target point(In front of begin point)
1878
1878
{
1879
- testing::internal::CaptureStderr ();
1880
1879
auto traj_out = traj;
1881
1880
1882
1881
const auto p_target = createPoint (-1.0 , 0.0 , 0.0 );
1883
1882
const size_t base_idx = findNearestSegmentIndex (traj.points , p_target);
1884
1883
const auto insert_idx = insertTargetPoint (base_idx, p_target, traj_out.points );
1885
1884
1886
- EXPECT_NE (testing::internal::GetCapturedStderr ().find (" sharp angle" ), std::string::npos);
1887
1885
EXPECT_EQ (insert_idx, std::nullopt);
1888
1886
}
1889
1887
1890
1888
// Invalid target point(Behind of end point)
1891
1889
{
1892
- testing::internal::CaptureStderr ();
1893
1890
auto traj_out = traj;
1894
1891
1895
1892
const auto p_target = createPoint (10.0 , 0.0 , 0.0 );
1896
1893
const size_t base_idx = findNearestSegmentIndex (traj.points , p_target);
1897
1894
const auto insert_idx = insertTargetPoint (base_idx, p_target, traj_out.points );
1898
1895
1899
- EXPECT_NE (testing::internal::GetCapturedStderr ().find (" sharp angle" ), std::string::npos);
1900
1896
EXPECT_EQ (insert_idx, std::nullopt);
1901
1897
}
1902
1898
1903
1899
// Invalid target point(Huge lateral offset)
1904
1900
{
1905
- testing::internal::CaptureStderr ();
1906
1901
auto traj_out = traj;
1907
1902
1908
1903
const auto p_target = createPoint (4.0 , 10.0 , 0.0 );
1909
1904
const size_t base_idx = findNearestSegmentIndex (traj.points , p_target);
1910
1905
const auto insert_idx = insertTargetPoint (base_idx, p_target, traj_out.points );
1911
1906
1912
- EXPECT_NE (testing::internal::GetCapturedStderr ().find (" sharp angle" ), std::string::npos);
1913
1907
EXPECT_EQ (insert_idx, std::nullopt);
1914
1908
}
1915
1909
@@ -2304,13 +2298,11 @@ TEST(trajectory, insertTargetPoint_Length)
2304
2298
2305
2299
// Invalid target point(Huge lateral offset)
2306
2300
{
2307
- testing::internal::CaptureStderr ();
2308
2301
auto traj_out = traj;
2309
2302
2310
2303
const auto p_target = createPoint (4.0 , 10.0 , 0.0 );
2311
2304
const auto insert_idx = insertTargetPoint (4.0 , p_target, traj_out.points );
2312
2305
2313
- EXPECT_NE (testing::internal::GetCapturedStderr ().find (" sharp angle." ), std::string::npos);
2314
2306
EXPECT_EQ (insert_idx, std::nullopt);
2315
2307
}
2316
2308
@@ -4310,40 +4302,34 @@ TEST(trajectory, insertStopPoint_with_pose_and_segment_index)
4310
4302
4311
4303
// Invalid target point(In front of begin point)
4312
4304
{
4313
- testing::internal::CaptureStderr ();
4314
4305
auto traj_out = traj;
4315
4306
4316
4307
const auto p_target = createPoint (-1.0 , 0.0 , 0.0 );
4317
4308
const size_t base_idx = findNearestSegmentIndex (traj.points , p_target);
4318
4309
const auto insert_idx = insertStopPoint (base_idx, p_target, traj_out.points );
4319
4310
4320
- EXPECT_NE (testing::internal::GetCapturedStderr ().find (" sharp angle." ), std::string::npos);
4321
4311
EXPECT_EQ (insert_idx, std::nullopt);
4322
4312
}
4323
4313
4324
4314
// Invalid target point(Behind of end point)
4325
4315
{
4326
- testing::internal::CaptureStderr ();
4327
4316
auto traj_out = traj;
4328
4317
4329
4318
const auto p_target = createPoint (10.0 , 0.0 , 0.0 );
4330
4319
const size_t base_idx = findNearestSegmentIndex (traj.points , p_target);
4331
4320
const auto insert_idx = insertStopPoint (base_idx, p_target, traj_out.points );
4332
4321
4333
- EXPECT_NE (testing::internal::GetCapturedStderr ().find (" sharp angle." ), std::string::npos);
4334
4322
EXPECT_EQ (insert_idx, std::nullopt);
4335
4323
}
4336
4324
4337
4325
// Invalid target point(Huge lateral offset)
4338
4326
{
4339
- testing::internal::CaptureStderr ();
4340
4327
auto traj_out = traj;
4341
4328
4342
4329
const auto p_target = createPoint (4.0 , 10.0 , 0.0 );
4343
4330
const size_t base_idx = findNearestSegmentIndex (traj.points , p_target);
4344
4331
const auto insert_idx = insertStopPoint (base_idx, p_target, traj_out.points );
4345
4332
4346
- EXPECT_NE (testing::internal::GetCapturedStderr ().find (" sharp angle." ), std::string::npos);
4347
4333
EXPECT_EQ (insert_idx, std::nullopt);
4348
4334
}
4349
4335
0 commit comments