Class ClRosLaunch2

Inheritance Relationships

Base Type

Class Documentation

class ClRosLaunch2 : public smacc2::ISmaccClient

Public Functions

ClRosLaunch2()
ClRosLaunch2(std::string packageName, std::string launchFilename)
virtual ~ClRosLaunch2()
void launch()
void stop()

Public Members

std::string packageName_
std::string launchFileName_
pid_t launchPid_

Public Static Functions

static std::future<std::string> executeRosLaunch(std::string packageName, std::string launchFilename, std::function<bool()> cancelCondition, ClRosLaunch2 *client = nullptr)

Protected Types

typedef std::function<void> cancelCallback

Protected Attributes

std::future<std::string> result_
std::atomic<bool> cancellationToken_ = ATOMIC_VAR_INIT(false)

Protected Static Attributes

static std::map<std::future<void>, cancelCallback> detached_futures_