/
Strip ROS Args
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);
Related content
Args
Args
More like this
Actions
Actions
More like this
Rclpy
Rclpy
More like this
Rclcpp
Rclcpp
More like this
VirtualEnv
VirtualEnv
More like this
Programming Behaviours
Programming Behaviours
More like this