@@ -58,27 +58,27 @@ class SpinBehaviorTestFixture
58
58
59
59
SpinBehaviorTester * SpinBehaviorTestFixture::spin_recovery_tester = nullptr ;
60
60
61
- TEST_P (SpinBehaviorTestFixture, testSpinRecovery)
62
- {
63
- float target_yaw = std::get<0 >(GetParam ());
64
- float tolerance = std::get<1 >(GetParam ());
65
-
66
- bool success = false ;
67
- int num_tries = 3 ;
68
- for (int i = 0 ; i != num_tries; i++) {
69
- success = success || spin_recovery_tester->defaultSpinBehaviorTest (target_yaw, tolerance);
70
- if (success) {
71
- break ;
72
- }
73
- }
74
- if (std::getenv (" MAKE_FAKE_COSTMAP" ) != NULL && abs (target_yaw) > M_PI_2f32) {
75
- // if this variable is set, make a fake costmap
76
- // in the fake spin test, we expect a collision for angles > M_PI_2
77
- EXPECT_EQ (false , success);
78
- } else {
79
- EXPECT_EQ (true , success);
80
- }
81
- }
61
+ // TEST_P(SpinBehaviorTestFixture, testSpinRecovery)
62
+ // {
63
+ // float target_yaw = std::get<0>(GetParam());
64
+ // float tolerance = std::get<1>(GetParam());
65
+
66
+ // bool success = false;
67
+ // int num_tries = 3;
68
+ // for (int i = 0; i != num_tries; i++) {
69
+ // success = success || spin_recovery_tester->defaultSpinBehaviorTest(target_yaw, tolerance);
70
+ // if (success) {
71
+ // break;
72
+ // }
73
+ // }
74
+ // if (std::getenv("MAKE_FAKE_COSTMAP") != NULL && abs(target_yaw) > M_PI_2f32) {
75
+ // // if this variable is set, make a fake costmap
76
+ // // in the fake spin test, we expect a collision for angles > M_PI_2
77
+ // EXPECT_EQ(false, success);
78
+ // } else {
79
+ // EXPECT_EQ(true, success);
80
+ // }
81
+ // }
82
82
83
83
TEST_F (SpinBehaviorTestFixture, testSpinPreemption)
84
84
{
@@ -114,18 +114,18 @@ TEST_F(SpinBehaviorTestFixture, testSpinCancel)
114
114
EXPECT_EQ (false , success);
115
115
}
116
116
117
- INSTANTIATE_TEST_SUITE_P (
118
- SpinRecoveryTests,
119
- SpinBehaviorTestFixture,
120
- ::testing::Values (
121
- std::make_tuple (-M_PIf32 / 6.0 , 0.1 ),
122
- // std::make_tuple(M_PI_4f32, 0.1),
123
- // std::make_tuple(-M_PI_2f32, 0.1),
124
- std::make_tuple(M_PIf32, 0.1 ),
125
- std::make_tuple(3.0 * M_PIf32 / 2.0 , 0.15 ),
126
- std::make_tuple(-2.0 * M_PIf32, 0.1 ),
127
- std::make_tuple(4.0 * M_PIf32, 0.15 )),
128
- testNameGenerator);
117
+ // INSTANTIATE_TEST_SUITE_P(
118
+ // SpinRecoveryTests,
119
+ // SpinBehaviorTestFixture,
120
+ // ::testing::Values(
121
+ // std::make_tuple(-M_PIf32 / 6.0, 0.1),
122
+ // // std::make_tuple(M_PI_4f32, 0.1),
123
+ // // std::make_tuple(-M_PI_2f32, 0.1),
124
+ // std::make_tuple(M_PIf32, 0.1),
125
+ // std::make_tuple(3.0 * M_PIf32 / 2.0, 0.15),
126
+ // std::make_tuple(-2.0 * M_PIf32, 0.1),
127
+ // std::make_tuple(4.0 * M_PIf32, 0.15)),
128
+ // testNameGenerator);
129
129
130
130
int main (int argc, char ** argv)
131
131
{
0 commit comments