|
@ -1,9 +1,27 @@ |
|
|
#include <iostream> |
|
|
#include <iostream> |
|
|
#include <include/stepper.h> |
|
|
#include <include/stepper.h> |
|
|
|
|
|
#include <boost/program_options.hpp> |
|
|
int main() |
|
|
int main(int argc, char *argv[]) |
|
|
{ |
|
|
{ |
|
|
using namespace simon; |
|
|
using namespace simon; |
|
|
|
|
|
namespace po = boost::program_options; |
|
|
|
|
|
po::options_description desc("Allowed options"); |
|
|
|
|
|
desc.add_options() |
|
|
|
|
|
("help", "produce help message") |
|
|
|
|
|
("compression", po::value<int>(), "set compression level"); |
|
|
|
|
|
po::variables_map vm; |
|
|
|
|
|
po::store(po::parse_command_line(argc, argv, desc), vm); |
|
|
|
|
|
po::notify(vm); |
|
|
|
|
|
if (vm.count("help")) { |
|
|
|
|
|
std::cout << desc << "\n"; |
|
|
|
|
|
return 1; |
|
|
|
|
|
} |
|
|
|
|
|
if (vm.count("compression")) { |
|
|
|
|
|
std::cout << "Compression level was set to " |
|
|
|
|
|
<< vm["compression"].as<int>() << ".\n"; |
|
|
|
|
|
} else { |
|
|
|
|
|
std::cout << "Compression level was not set.\n"; |
|
|
|
|
|
} |
|
|
stepper::c_stepper("azimuth", "settings.json"); |
|
|
stepper::c_stepper("azimuth", "settings.json"); |
|
|
std::cout << "Hello camera :*" << std::endl; |
|
|
std::cout << "Hello camera :*" << std::endl; |
|
|
return 0; |
|
|
return 0; |
|
|