ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
string path_str = ros::package::getPath("package_name"); string cmd_str = path_str+"/src/capture_screenshot.sh";
// add path and name arguments cmd_str += " -p " + path_str + "/output"; cmd_str += " -n " + name_str;
// call the script program system(cmd_str.c_str());