Classes | Functions | Variables
system_info_tests Namespace Reference

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}
 

Function Documentation

system_info_tests::TEST_F ( SystemInfoTests  ,
TestExceptions   
)

Tests that exception stores and returns correct error message.

Definition at line 127 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 138 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 149 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 186 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 220 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 239 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 258 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 290 of file unittest_system_info.cpp.

Variable Documentation

const std::string system_info_tests::GET_OBJECT_TOPIC_NAME {"get_object"}
static

Definition at line 44 of file unittest_system_info.cpp.

const std::string system_info_tests::JOINT_STATES_TOPIC_NAME {"joint_states"}
static

Definition at line 45 of file unittest_system_info.cpp.

constexpr unsigned int system_info_tests::JOINT_STATES_TOPIC_QUEUE_SIZE {1}
static

Definition at line 46 of file unittest_system_info.cpp.



prbt_hardware_support
Author(s):
autogenerated on Tue Feb 2 2021 03:50:18