Classes | |
class | SpeedObserverIntegrationTest |
class | SpeedObserverUnitTest |
Functions | |
MATCHER_P (RunPermittedState, x,"RunPermitted state "+std::string(negation?"is not":"is")+": "+PrintToString(x)+".") | |
MATCHER_P (ContainsAllNames, names,"Names"+PrintToString(names)+std::string(negation?"are not":"are")+" in message.") | |
MATCHER_P2 (NameAtI, i, name,"Name at index "+PrintToString(i)+std::string(negation?"is not":"is")+": "+name+".") | |
MATCHER_P2 (SpeedAtIGe, i, x,"Speed at index "+PrintToString(i)+std::string(negation?"is not":"is")+" greater or equal to"+PrintToString(x)+".") | |
MATCHER_P2 (SpeedAtILe, i, x,"Speed at index "+PrintToString(i)+std::string(negation?"is not":"is")+" less or equal to"+PrintToString(x)+".") | |
TEST_F (SpeedObserverUnitTest, testStartupAndTopic) | |
TEST_F (SpeedObserverUnitTest, testTooHighSpeed) | |
TEST_F (SpeedObserverIntegrationTest, testOperationModeT1) | |
Tests speed observer with operation mode T1. More... | |
TEST_F (SpeedObserverUnitTest, testSetSpeedLimit) | |
TEST_F (SpeedObserverIntegrationTest, testOperationModeAuto) | |
Tests speed observer with operation mode AUTO. More... | |
TEST_F (SpeedObserverUnitTest, testTimeout) | |
TEST_F (SpeedObserverIntegrationTest, testAdditionalTFTree) | |
Tests speed observer with additional tf tree. More... | |
TEST_F (SpeedObserverUnitTest, testFailingRunPermittedServiceCase) | |
TEST_F (SpeedObserverUnitTest, testSlowTfPublishing) | |
TEST_F (SpeedObserverIntegrationTest, testRunPermittedServiceNoSuccess) | |
Tests speed observer with RUN_PERMITTED service returning no success. More... | |
Variables | |
static const std::string | ADDITIONAL_FRAMES_PARAM_NAME { "additional_frames" } |
static const std::string | BARRIER_FAST { "BARRIER_FAST" } |
static const std::string | BARRIER_LIMIT { "BARRIER_LIMIT" } |
static const std::string | BARRIER_LIMIT_LOW { "BARRIER_LIMIT_LOW" } |
static const std::string | BARRIER_NO_STOP_HAPPENED { "BARRIER_NO_STOP_HAPPENED" } |
static const std::string | BARRIER_NO_SVC_SUCESS { "BARRIER_NO_SVC_SUCESS" } |
static const std::string | BARRIER_SLOW { "BARRIER_SLOW" } |
static const std::string | BARRIER_STOP_HAPPENED { "BARRIER_STOP_HAPPENED" } |
static const std::string | BARRIER_WAIT_OUT_STOP { "BARRIER_WAIT_OUT_STOP" } |
static const std::string | FAKE_CONTROLLER_JOINT_STATES_TOPIC_NAME { "/fake_controller_joint_states" } |
static const std::string | FRAME_SPEEDS_TOPIC_NAME { "/frame_speeds" } |
static const std::string | FRAME_SPEEDS_TOPIC_NAME { "/frame_speeds" } |
static constexpr double | OBSERVER_FREQUENCY {3.0 * TEST_FREQUENCY} |
static const std::string | OPERATION_MODE_TOPIC { "operation_mode" } |
static const std::string | RUN_PERMITTED_SERVICE { "run_permitted" } |
static const std::string | RUN_PERMITTED_SERVICE_NAME { "/run_permitted" } |
static const std::string | SPEED_LIMIT_AUTOMATIC_PARAM_NAME { "speed_limit_automatic" } |
static const std::string | SPEED_LIMIT_T1_PARAM_NAME { "speed_limit_t1" } |
static const double | SQRT_2_HALF { 1 / sqrt(2) } |
static const double | SQRT_2_HALF { 1 / sqrt(2) } |
static const std::string | TEST_BASE_FRAME { "test_base" } |
static const std::string | TEST_FRAME_A { "a" } |
static const std::string | TEST_FRAME_B { "b" } |
static constexpr double | TEST_FREQUENCY { 20 } |
static const double | TEST_FREQUENCY { 10 } |
static const std::string | TEST_WORLD_FRAME { "world" } |
speed_observer_test::MATCHER_P | ( | RunPermittedState | , |
x | , | ||
"RunPermitted state "+std::string(negation?"is not":"is")+": "+PrintToString(x)+"." | |||
) |
Definition at line 60 of file integrationtest_speed_observer_and_operation_mode.cpp.
speed_observer_test::MATCHER_P | ( | ContainsAllNames | , |
names | , | ||
"Names"+PrintToString(names)+std::string(negation?"are not":"are")+" in message." | |||
) |
Definition at line 65 of file integrationtest_speed_observer_and_operation_mode.cpp.
speed_observer_test::MATCHER_P2 | ( | NameAtI | , |
i | , | ||
name | , | ||
"Name at index "+PrintToString(i)+std::string(negation?"is not":"is")+": "+name+"." | |||
) |
Definition at line 141 of file unittest_speed_observer.cpp.
speed_observer_test::MATCHER_P2 | ( | SpeedAtIGe | , |
i | , | ||
x | , | ||
"Speed at index "+PrintToString(i)+std::string(negation?"is not":"is")+" greater or equal to"+PrintToString(x)+"." | |||
) |
Definition at line 147 of file unittest_speed_observer.cpp.
speed_observer_test::MATCHER_P2 | ( | SpeedAtILe | , |
i | , | ||
x | , | ||
"Speed at index "+PrintToString(i)+std::string(negation?"is not":"is")+" less or equal to"+PrintToString(x)+"." | |||
) |
Definition at line 154 of file unittest_speed_observer.cpp.
speed_observer_test::TEST_F | ( | SpeedObserverUnitTest | , |
testStartupAndTopic | |||
) |
Test Sequence:
Expected Results:
Definition at line 175 of file unittest_speed_observer.cpp.
speed_observer_test::TEST_F | ( | SpeedObserverUnitTest | , |
testTooHighSpeed | |||
) |
Test Sequence:
Expected Results:
Definition at line 235 of file unittest_speed_observer.cpp.
speed_observer_test::TEST_F | ( | SpeedObserverIntegrationTest | , |
testOperationModeT1 | |||
) |
Tests speed observer with operation mode T1.
Test Sequence:
Expected Results:
Definition at line 253 of file integrationtest_speed_observer_and_operation_mode.cpp.
speed_observer_test::TEST_F | ( | SpeedObserverUnitTest | , |
testSetSpeedLimit | |||
) |
Test Sequence:
Expected Results:
Definition at line 305 of file unittest_speed_observer.cpp.
speed_observer_test::TEST_F | ( | SpeedObserverIntegrationTest | , |
testOperationModeAuto | |||
) |
Tests speed observer with operation mode AUTO.
Test Sequence:
Expected Results:
Definition at line 324 of file integrationtest_speed_observer_and_operation_mode.cpp.
speed_observer_test::TEST_F | ( | SpeedObserverUnitTest | , |
testTimeout | |||
) |
Test Sequence:
Expected Results:
Definition at line 385 of file unittest_speed_observer.cpp.
speed_observer_test::TEST_F | ( | SpeedObserverIntegrationTest | , |
testAdditionalTFTree | |||
) |
Tests speed observer with additional tf tree.
Test Sequence:
Expected Results:
Definition at line 407 of file integrationtest_speed_observer_and_operation_mode.cpp.
speed_observer_test::TEST_F | ( | SpeedObserverUnitTest | , |
testFailingRunPermittedServiceCase | |||
) |
Test case in which RUN_PERMITTED service call fails (needed for line coverage).
Test Sequence:
Expected Results:
Definition at line 409 of file unittest_speed_observer.cpp.
speed_observer_test::TEST_F | ( | SpeedObserverUnitTest | , |
testSlowTfPublishing | |||
) |
Tests that Stop1 is triggered in case the frame speed calculation fails too often.
Test Sequence:
Expected Results:
Definition at line 455 of file unittest_speed_observer.cpp.
speed_observer_test::TEST_F | ( | SpeedObserverIntegrationTest | , |
testRunPermittedServiceNoSuccess | |||
) |
Tests speed observer with RUN_PERMITTED service returning no success.
Test Sequence:
Expected Results:
Definition at line 461 of file integrationtest_speed_observer_and_operation_mode.cpp.
|
static |
Definition at line 47 of file integrationtest_speed_observer_and_operation_mode.cpp.
|
static |
Definition at line 46 of file unittest_speed_observer.cpp.
|
static |
Definition at line 47 of file unittest_speed_observer.cpp.
|
static |
Definition at line 48 of file unittest_speed_observer.cpp.
|
static |
Definition at line 52 of file integrationtest_speed_observer_and_operation_mode.cpp.
|
static |
Definition at line 53 of file integrationtest_speed_observer_and_operation_mode.cpp.
|
static |
Definition at line 45 of file unittest_speed_observer.cpp.
|
static |
Definition at line 51 of file integrationtest_speed_observer_and_operation_mode.cpp.
|
static |
Definition at line 54 of file integrationtest_speed_observer_and_operation_mode.cpp.
|
static |
Definition at line 44 of file integrationtest_speed_observer_and_operation_mode.cpp.
|
static |
Definition at line 43 of file integrationtest_speed_observer_and_operation_mode.cpp.
|
static |
Definition at line 50 of file unittest_speed_observer.cpp.
|
static |
Definition at line 57 of file unittest_speed_observer.cpp.
|
static |
Definition at line 45 of file integrationtest_speed_observer_and_operation_mode.cpp.
|
static |
Definition at line 46 of file integrationtest_speed_observer_and_operation_mode.cpp.
|
static |
Definition at line 51 of file unittest_speed_observer.cpp.
|
static |
Definition at line 49 of file integrationtest_speed_observer_and_operation_mode.cpp.
|
static |
Definition at line 48 of file integrationtest_speed_observer_and_operation_mode.cpp.
|
static |
Definition at line 56 of file integrationtest_speed_observer_and_operation_mode.cpp.
|
static |
Definition at line 58 of file unittest_speed_observer.cpp.
|
static |
Definition at line 52 of file unittest_speed_observer.cpp.
|
static |
Definition at line 53 of file unittest_speed_observer.cpp.
|
static |
Definition at line 54 of file unittest_speed_observer.cpp.
|
static |
Definition at line 55 of file unittest_speed_observer.cpp.
|
static |
Definition at line 57 of file integrationtest_speed_observer_and_operation_mode.cpp.
|
static |
Definition at line 58 of file integrationtest_speed_observer_and_operation_mode.cpp.