5 #include <boost/program_options.hpp> 6 #include <crazyflie_cpp/Crazyflie.h> 13 int main(
int argc,
char **argv)
17 std::string defaultUri(
"radio://0/80/2M/E7E7E7E7E7");
19 namespace po = boost::program_options;
21 po::options_description desc(
"Allowed options");
23 (
"help",
"produce help message")
24 (
"uri", po::value<std::string>(&uri)->default_value(defaultUri),
"unique ressource identifier")
30 po::store(po::parse_command_line(argc, argv, desc), vm);
33 if (vm.count(
"help")) {
34 std::cout << desc <<
"\n";
40 std::cerr << e.what() << std::endl << std::endl;
41 std::cerr << desc << std::endl;
70 std::this_thread::sleep_for(std::chrono::milliseconds(10));
75 catch(std::exception& e)
77 std::cerr << e.what() << std::endl;
int main(int argc, char **argv)
void onConsoleData(const char *msg)