5 #include <boost/program_options.hpp> 6 #include <crazyflie_cpp/Crazyflie.h> 8 int main(
int argc,
char **argv)
12 std::string defaultUri(
"radio://0/80/2M/E7E7E7E7E7");
14 namespace po = boost::program_options;
16 po::options_description desc(
"Allowed options");
18 (
"help",
"produce help message")
19 (
"uri", po::value<std::string>(&uri)->default_value(defaultUri),
"unique ressource identifier")
25 po::store(po::parse_command_line(argc, argv, desc), vm);
28 if (vm.count(
"help")) {
29 std::cout << desc <<
"\n";
35 std::cerr << e.what() << std::endl << std::endl;
36 std::cerr << desc << std::endl;
88 catch(std::exception& e)
90 std::cerr << e.what() << std::endl;
std::string getDeviceTypeName()
int main(int argc, char **argv)
std::string getFirmwareVersion()