/** * @file greet.cpp * @brief Combined entry point for the fused arm+hand greetings (see also the * standalone ./handshake and ./thumbup binaries). * * ./greet [handshake|thumbup] [networkInterface] (default iface: eth0) * * Needs ./inspire_g1 running for the fingers. The ARM physically moves — * clear space + E-stop ready. */ #include "greet_common.hpp" int main(int argc, char **argv) { const std::string what = argc > 1 ? argv[1] : "handshake"; const std::string iface = argc > 2 ? argv[2] : "eth0"; auto arm = greet_init(iface); Hand hand; usleep(300000); if (what == "handshake") runHandshake(*arm, hand); else if (what == "thumbup") runThumbup(*arm, hand); else { std::cout << "Usage: ./greet [handshake|thumbup] [networkInterface]\n"; return 1; } std::cout << "done." << std::endl; return 0; }