Classes | |
| class | SystemInfoTests |
| Collection of tests checking the functionality of the SystemInfo class. More... | |
Functions | |
| TEST_F (SystemInfoTests, TestExceptions) | |
| Tests that exception stores and returns correct error message. More... | |
| TEST_F (SystemInfoTests, testNodeNamesMissing) | |
| Checks that exception is thrown if param "/prbt/driver/nodes" can not be found on parameter server. More... | |
| TEST_F (SystemInfoTests, testCANUpAndRunning) | |
| Tests that constructor waits until CAN is up and running by waiting for the "/joint_states" topic. More... | |
| TEST_F (SystemInfoTests, testCANServiceUpAndRunning) | |
| Tests that constructor waits until ros_canopen service "get_object" is advertised. More... | |
| TEST_F (SystemInfoTests, testServiceResponseFalse) | |
| Tests that exception is thrown in case the service returns as response "false". More... | |
| TEST_F (SystemInfoTests, testServiceFail) | |
| Tests that exception is thrown in case the service returns "false". More... | |
| TEST_F (SystemInfoTests, testGetFirmwareVersions) | |
| Tests that SystemInfo class returns correct firmware versions for each joint, given that everything needed by SystemInfo class works correctly. More... | |
| TEST_F (SystemInfoTests, testGetFirmwareVersionsResizeTo40Chars) | |
| Tests that the firmware string is trimmed to 40chars See https://github.com/PilzDE/pilz_robots/issues/299. More... | |
Variables | |
| static const std::string | GET_OBJECT_TOPIC_NAME { "get_object" } |
| static const std::string | JOINT_STATES_TOPIC_NAME { "joint_states" } |
| static constexpr unsigned int | JOINT_STATES_TOPIC_QUEUE_SIZE { 1 } |
| system_info_tests::TEST_F | ( | SystemInfoTests | , |
| TestExceptions | |||
| ) |
Tests that exception stores and returns correct error message.
Definition at line 122 of file unittest_system_info.cpp.
| system_info_tests::TEST_F | ( | SystemInfoTests | , |
| testNodeNamesMissing | |||
| ) |
Checks that exception is thrown if param "/prbt/driver/nodes" can not be found on parameter server.
Definition at line 133 of file unittest_system_info.cpp.
| system_info_tests::TEST_F | ( | SystemInfoTests | , |
| testCANUpAndRunning | |||
| ) |
Tests that constructor waits until CAN is up and running by waiting for the "/joint_states" topic.
Definition at line 144 of file unittest_system_info.cpp.
| system_info_tests::TEST_F | ( | SystemInfoTests | , |
| testCANServiceUpAndRunning | |||
| ) |
Tests that constructor waits until ros_canopen service "get_object" is advertised.
Definition at line 181 of file unittest_system_info.cpp.
| system_info_tests::TEST_F | ( | SystemInfoTests | , |
| testServiceResponseFalse | |||
| ) |
Tests that exception is thrown in case the service returns as response "false".
Definition at line 215 of file unittest_system_info.cpp.
| system_info_tests::TEST_F | ( | SystemInfoTests | , |
| testServiceFail | |||
| ) |
Tests that exception is thrown in case the service returns "false".
Definition at line 232 of file unittest_system_info.cpp.
| system_info_tests::TEST_F | ( | SystemInfoTests | , |
| testGetFirmwareVersions | |||
| ) |
Tests that SystemInfo class returns correct firmware versions for each joint, given that everything needed by SystemInfo class works correctly.
Definition at line 247 of file unittest_system_info.cpp.
| system_info_tests::TEST_F | ( | SystemInfoTests | , |
| testGetFirmwareVersionsResizeTo40Chars | |||
| ) |
Tests that the firmware string is trimmed to 40chars See https://github.com/PilzDE/pilz_robots/issues/299.
Definition at line 279 of file unittest_system_info.cpp.
|
static |
Definition at line 43 of file unittest_system_info.cpp.
|
static |
Definition at line 44 of file unittest_system_info.cpp.
|
static |
Definition at line 45 of file unittest_system_info.cpp.