50 rclcpp::get_logger(
"smacc2"),
"[ClRosLaunch static] starting ros launch thread ");
52 std::stringstream
cmd;
55 std::array<char, 128>
buffer;
60 throw std::runtime_error(
"popen() failed!");
74 rclcpp::get_logger(
"smacc2"),
"[ClRosLaunch static] cancelling ros launch thread ");
83 catch (
const std::exception &
e)
85 std::cerr <<
e.what() <<
'\n';
90 rclcpp::get_logger(
"smacc2"),
"[ClRosLaunch static]] RESULT = \n " <<
ss.str());
std::atomic< bool > cancellationToken_
ClRosLaunch(std::string packageName, std::string launchFilename)
std::string launchFileName_
static std::future< std::string > executeRosLaunch(std::string packageName, std::string launchFilename, std::function< bool()> cancelCondition)
std::future< std::string > result_