3 #include <boost/program_options.hpp> 4 #include <crazyflie_cpp/Crazyflie.h> 6 int main(
int argc,
char **argv)
10 std::string defaultUri(
"radio://0/80/2M/E7E7E7E7E7");
12 namespace po = boost::program_options;
14 po::options_description desc(
"Allowed options");
16 (
"help",
"produce help message")
17 (
"uri", po::value<std::string>(&uri)->default_value(defaultUri),
"unique ressource identifier")
23 po::store(po::parse_command_line(argc, argv, desc), vm);
26 if (vm.count(
"help")) {
27 std::cout << desc <<
"\n";
33 std::cerr << e.what() << std::endl << std::endl;
34 std::cerr << desc << std::endl;
46 std::cout << entry.group <<
"." << entry.name <<
" (";
55 std::cout <<
"uint16";
61 std::cout <<
"uint32";
74 std::cout << std::endl;
80 catch(std::exception& e)
82 std::cerr << e.what() << std::endl;
void requestLogToc(bool forceNoCache=false)
std::vector< LogTocEntry >::const_iterator logVariablesEnd() const
int main(int argc, char **argv)
std::vector< LogTocEntry >::const_iterator logVariablesBegin() const