Classes | Namespaces | Functions | Variables
unittest_system_info.cpp File Reference
#include <string>
#include <vector>
#include <thread>
#include <atomic>
#include <memory>
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include <ros/ros.h>
#include <canopen_chain_node/GetObject.h>
#include <sensor_msgs/JointState.h>
#include <pilz_utils/wait_for_message.h>
#include <pilz_utils/wait_for_service.h>
#include <pilz_testutils/async_test.h>
#include <prbt_hardware_support/system_info.h>
#include <prbt_hardware_support/system_info_exception.h>
Include dependency graph for unittest_system_info.cpp:

Go to the source code of this file.

Classes

class  system_info_tests::SystemInfoTests
 Collection of tests checking the functionality of the SystemInfo class. More...
 

Namespaces

 system_info_tests
 

Functions

int main (int argc, char *argv[])
 
 system_info_tests::TEST_F (SystemInfoTests, TestExceptions)
 Tests that exception stores and returns correct error message. More...
 
 system_info_tests::TEST_F (SystemInfoTests, testNodeNamesMissing)
 Checks that exception is thrown if param "/prbt/driver/nodes" can not be found on parameter server. More...
 
 system_info_tests::TEST_F (SystemInfoTests, testCANUpAndRunning)
 Tests that constructor waits until CAN is up and running by waiting for the "/joint_states" topic. More...
 
 system_info_tests::TEST_F (SystemInfoTests, testCANServiceUpAndRunning)
 Tests that constructor waits until ros_canopen service "get_object" is advertised. More...
 
 system_info_tests::TEST_F (SystemInfoTests, testServiceResponseFalse)
 Tests that exception is thrown in case the service returns as response "false". More...
 
 system_info_tests::TEST_F (SystemInfoTests, testServiceFail)
 Tests that exception is thrown in case the service returns "false". More...
 
 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. More...
 
 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. More...
 

Variables

static const std::string system_info_tests::GET_OBJECT_TOPIC_NAME {"get_object"}
 
static const std::string system_info_tests::JOINT_STATES_TOPIC_NAME {"joint_states"}
 
static constexpr unsigned int system_info_tests::JOINT_STATES_TOPIC_QUEUE_SIZE {1}
 

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 322 of file unittest_system_info.cpp.



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