23 #include <boost/program_options.hpp> 34 namespace po = boost::program_options;
37 int main (
int argc,
char** argv) {
38 po::options_description desc(
"Allowed options");
40 (
"help,h",
"produce help message")
42 po::options_description required(
"Required");
43 required.add_options()
44 (
"source-file,s", po::value<string>(),
"source file")
45 (
"target-file,t", po::value<string>(),
"target file")
46 (
"steps-number,n", po::value<int>(),
"steps number")
52 po::store(po::parse_command_line(argc, argv, desc), vm);
54 int stepsNumber = vm[
"steps-number"].as<
int>();
57 if (vm.count(
"help") || !vm.count(
"target-file") || !vm.count(
"source-file") || !vm.count(
"steps-number")) {
62 string sourceFile = vm[
"source-file"].as<
string>();
63 string targetFile = vm[
"target-file"].as<
string>();
67 pose_interpolator.
interpolate(sourceFile, targetFile, stepsNumber);
void interpolate(const std::string &sourceFile, const std::string &targetFile, int stepNumber)
int main(int argc, char **argv)
this namespace contains all generally usable classes.