38 #include <gtest/gtest.h> 51 TEST(HFL110DCUTestSuite, testTEST)
53 ASSERT_EQ(
"true",
"true");
56 TEST(HFL110DCUTestSuite, testDefaultParams)
61 std::string model, version, frame_id, parent_frame, interface;
62 std::string camera_ip, computer_ip;
63 int frame_port, object_port;
68 nh.
getParam(
"parent_frame", parent_frame);
69 nh.
getParam(
"ethernet_interface", interface);
70 nh.
getParam(
"camera_ip_address", camera_ip);
71 nh.
getParam(
"computer_ip_address", computer_ip);
72 nh.
getParam(
"frame_data_port", frame_port);
73 nh.
getParam(
"object_data_port", object_port);
75 ASSERT_EQ(model,
"hfl110dcu");
76 ASSERT_EQ(version,
"v1");
77 ASSERT_EQ(frame_id,
"hfl110dcu_01");
78 ASSERT_EQ(interface,
"eno1");
79 ASSERT_EQ(camera_ip,
"192.168.10.21");
80 ASSERT_EQ(computer_ip,
"192.168.10.5");
81 ASSERT_EQ(frame_port, 57410);
82 ASSERT_EQ(object_port, 57411);
This file defines the CameraCommander class.
TEST(HFL110DCUTestSuite, testTEST)
bool getParam(const std::string &key, std::string &s) const