28 #include <gtest/gtest.h> 36 TEST(UrRobotDriver, rtde_handshake)
39 std::string output_recipe =
"resources/rtde_output_recipe.txt";
40 std::string input_recipe =
"resources/rtde_input_recipe.txt";
43 EXPECT_TRUE(client.
init());
46 TEST(UrRobotDriver, rtde_handshake_wrong_ip)
49 std::string output_recipe =
"resources/rtde_output_recipe.txt";
50 std::string input_recipe =
"resources/rtde_input_recipe.txt";
56 TEST(UrRobotDriver, rtde_handshake_illegal_ip)
59 std::string output_recipe =
"resources/rtde_output_recipe.txt";
60 std::string input_recipe =
"resources/rtde_input_recipe.txt";
66 TEST(UrRobotDriver, no_recipe)
69 std::string output_recipe =
"";
70 std::string input_recipe =
"";
74 TEST(UrRobotDriver, empty_recipe)
77 std::string output_recipe =
"resources/empty.txt";
78 std::string input_recipe =
"resources/empty.txt";
84 int main(
int argc,
char* argv[])
86 ::testing::InitGoogleTest(&argc, argv);
88 return RUN_ALL_TESTS();
TEST(UrRobotDriver, rtde_handshake)
Parent class for notifiers.
int main(int argc, char *argv[])
The RTDEClient class manages communication over the RTDE interface. It contains the RTDE handshake an...
const std::string ROBOT_IP
bool init()
Sets up RTDE communication with the robot. The handshake includes negotiation of the used protocol ve...
Our base class for exceptions. Specialized exceptions should inherit from those.