18 #include <gtest/gtest.h> 39 TEST(ModbusMsgWrapperTest, testModbusMsgWrapperDtor)
42 const uint16_t modbus_api_version {1};
43 RegCont holding_register {modbus_api_version};
46 ModbusMsgInStampedConstPtr msg_const_ptr {
msg};
52 int main(
int argc,
char *argv[])
54 testing::InitGoogleTest(&argc, argv);
55 return RUN_ALL_TESTS();
int main(int argc, char *argv[])
std::vector< uint16_t > RegCont
Convenience data type defining the data type for a collection of registers.
static ModbusMsgInStampedPtr createDefaultModbusMsgIn(const std_msgs::MultiArrayLayout::_data_offset_type &offset, const RegCont &holding_register)
Creates a standard ModbusMsgIn which contains default values for all essential elements of the messag...
static const ModbusApiSpec test_api_spec
TEST(IntegrationtestExecuteBrakeTest, testBrakeTestService)
Wrapper class to add semantic to a raw ModbusMsgInStamped.
Specifies the meaning of the holding registers.
static const std::string VERSION