Test if PilzModbusClient correctly publishes ROS-Modbus messages. More...
Public Member Functions | |
virtual void | SetUp () |
Protected Member Functions | |
MOCK_METHOD1 (modbus_read_cb, void(ModbusMsgInStamped msg)) | |
Protected Attributes | |
ros::NodeHandle | nh_ |
ros::AsyncSpinner | spinner_ {2} |
ros::Subscriber | subscriber_ |
Test if PilzModbusClient correctly publishes ROS-Modbus messages.
It subscribes to the topic of the test object with a mocked callback function. The actual client needed by the test object is replaced by a mock object.
Definition at line 122 of file unittest_pilz_modbus_client.cpp.
|
protected |
|
virtual |
Definition at line 136 of file unittest_pilz_modbus_client.cpp.
|
protected |
Definition at line 130 of file unittest_pilz_modbus_client.cpp.
|
protected |
Definition at line 129 of file unittest_pilz_modbus_client.cpp.
|
protected |
Definition at line 128 of file unittest_pilz_modbus_client.cpp.