Public Member Functions | Protected Types | Protected Attributes | List of all members
prbt_hardware_support::ModbusAdapterOperationModeTest Class Reference

Test fixture for unit-tests of the ModbusAdapterOperationMode. More...

Inheritance diagram for prbt_hardware_support::ModbusAdapterOperationModeTest:
Inheritance graph
[legend]

Public Member Functions

 ModbusAdapterOperationModeTest ()
 
 ~ModbusAdapterOperationModeTest () override
 

Protected Types

using GetOperationMode = pilz_msgs::GetOperationMode
 
using OperationModes = pilz_msgs::OperationModes
 

Protected Attributes

std::shared_ptr< ModbusAdapterOperationModeadapter_operation_mode_
 
ros::Publisher modbus_topic_pub_
 
ros::NodeHandle nh_
 
ros::ServiceClient operation_mode_client_
 
ros::AsyncSpinner spinner_ { 2 }
 
StrictMock< OperationModeSubscriberMocksubscriber_
 

Detailed Description

Test fixture for unit-tests of the ModbusAdapterOperationMode.

Publish messages on the modbus topic and check on the operation_mode topic if the expectations are met.

Definition at line 80 of file unittest_modbus_adapter_operation_mode.cpp.

Member Typedef Documentation

◆ GetOperationMode

using prbt_hardware_support::ModbusAdapterOperationModeTest::GetOperationMode = pilz_msgs::GetOperationMode
protected

Definition at line 87 of file unittest_modbus_adapter_operation_mode.cpp.

◆ OperationModes

using prbt_hardware_support::ModbusAdapterOperationModeTest::OperationModes = pilz_msgs::OperationModes
protected

Definition at line 88 of file unittest_modbus_adapter_operation_mode.cpp.

Constructor & Destructor Documentation

◆ ModbusAdapterOperationModeTest()

prbt_hardware_support::ModbusAdapterOperationModeTest::ModbusAdapterOperationModeTest ( )

Definition at line 99 of file unittest_modbus_adapter_operation_mode.cpp.

◆ ~ModbusAdapterOperationModeTest()

prbt_hardware_support::ModbusAdapterOperationModeTest::~ModbusAdapterOperationModeTest ( )
override

Definition at line 114 of file unittest_modbus_adapter_operation_mode.cpp.

Member Data Documentation

◆ adapter_operation_mode_

std::shared_ptr<ModbusAdapterOperationMode> prbt_hardware_support::ModbusAdapterOperationModeTest::adapter_operation_mode_
protected

Definition at line 93 of file unittest_modbus_adapter_operation_mode.cpp.

◆ modbus_topic_pub_

ros::Publisher prbt_hardware_support::ModbusAdapterOperationModeTest::modbus_topic_pub_
protected

Definition at line 94 of file unittest_modbus_adapter_operation_mode.cpp.

◆ nh_

ros::NodeHandle prbt_hardware_support::ModbusAdapterOperationModeTest::nh_
protected

Definition at line 92 of file unittest_modbus_adapter_operation_mode.cpp.

◆ operation_mode_client_

ros::ServiceClient prbt_hardware_support::ModbusAdapterOperationModeTest::operation_mode_client_
protected

Definition at line 95 of file unittest_modbus_adapter_operation_mode.cpp.

◆ spinner_

ros::AsyncSpinner prbt_hardware_support::ModbusAdapterOperationModeTest::spinner_ { 2 }
protected

Definition at line 91 of file unittest_modbus_adapter_operation_mode.cpp.

◆ subscriber_

StrictMock<OperationModeSubscriberMock> prbt_hardware_support::ModbusAdapterOperationModeTest::subscriber_
protected

Definition at line 96 of file unittest_modbus_adapter_operation_mode.cpp.


The documentation for this class was generated from the following file:


prbt_hardware_support
Author(s):
autogenerated on Wed Nov 25 2020 03:10:38