SMACC2
|
#include <smacc_ros_launch_client_2.hpp>
Static Public Member Functions | |
static std::future< std::string > | executeRosLaunch (std::string packageName, std::string launchFilename, std::function< bool()> cancelCondition, ClRosLaunch2 *client=nullptr) |
Public Attributes | |
std::string | packageName_ |
std::string | launchFileName_ |
pid_t | launchPid_ |
Protected Types | |
typedef std::function< void > | cancelCallback |
Protected Attributes | |
std::future< std::string > | result_ |
std::atomic< bool > | cancellationToken_ = ATOMIC_VAR_INIT(false) |
Protected Attributes inherited from smacc2::ISmaccClient | |
std::map< ComponentKey, std::shared_ptr< smacc2::ISmaccComponent > > | components_ |
Static Protected Attributes | |
static std::map< std::future< void >, cancelCallback > | detached_futures_ |
Additional Inherited Members | |
Protected Member Functions inherited from smacc2::ISmaccClient | |
template<typename TOrthogonal , typename TSourceObject > | |
void | onOrthogonalAllocation () |
template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs> | |
SmaccComponentType * | createComponent (TArgs... targs) |
template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs> | |
SmaccComponentType * | createNamedComponent (std::string name, TArgs... targs) |
rclcpp::Node::SharedPtr | getNode () |
rclcpp::Logger | getLogger () |
Definition at line 43 of file smacc_ros_launch_client_2.hpp.
|
protected |
Definition at line 73 of file smacc_ros_launch_client_2.hpp.
smacc2::client_bases::ClRosLaunch2::ClRosLaunch2 | ( | ) |
Definition at line 41 of file smacc_ros_launch_client_2.cpp.
smacc2::client_bases::ClRosLaunch2::ClRosLaunch2 | ( | std::string | packageName, |
std::string | launchFilename | ||
) |
Definition at line 46 of file smacc_ros_launch_client_2.cpp.
|
virtual |
Definition at line 51 of file smacc_ros_launch_client_2.cpp.
|
static |
Definition at line 69 of file smacc_ros_launch_client_2.cpp.
References smacc2::client_bases::killGrandchildren(), launchPid_, and smacc2::client_bases::runProcess().
Referenced by launch(), and smacc2::client_behaviors::CbRosLaunch2::onEntry().
void smacc2::client_bases::ClRosLaunch2::launch | ( | ) |
Definition at line 53 of file smacc_ros_launch_client_2.cpp.
References cancellationToken_, executeRosLaunch(), launchFileName_, packageName_, and result_.
Referenced by smacc2::client_behaviors::CbRosLaunch2::onEntry().
void smacc2::client_bases::ClRosLaunch2::stop | ( | ) |
Definition at line 63 of file smacc_ros_launch_client_2.cpp.
References cancellationToken_.
Referenced by smacc2::client_behaviors::CbRosStop2::onEntry().
|
protected |
Definition at line 77 of file smacc_ros_launch_client_2.hpp.
|
staticprotected |
Definition at line 75 of file smacc_ros_launch_client_2.hpp.
std::string smacc2::client_bases::ClRosLaunch2::launchFileName_ |
Definition at line 65 of file smacc_ros_launch_client_2.hpp.
Referenced by launch(), and smacc2::client_behaviors::CbRosLaunch2::onEntry().
pid_t smacc2::client_bases::ClRosLaunch2::launchPid_ |
Definition at line 67 of file smacc_ros_launch_client_2.hpp.
Referenced by executeRosLaunch().
std::string smacc2::client_bases::ClRosLaunch2::packageName_ |
Definition at line 63 of file smacc_ros_launch_client_2.hpp.
Referenced by launch(), and smacc2::client_behaviors::CbRosLaunch2::onEntry().
|
protected |
Definition at line 71 of file smacc_ros_launch_client_2.hpp.
Referenced by launch().