Strip ROS Args
CPP
std::vector<std::string> args; ros::removeROSArgs(argc, argv, args); char** myargv = new char*[args.size()]; //array to emulate argv. for(int i = 0, ie = args.size(); i < ie; ++i) { myargv[i] = const_cast<char*>(args[i].data()); } int myargc = args.size(); cmd.parse(myargc, myargv);