SMACC2
|
#include <smacc_ros_launch_client_2.hpp>
Public Member Functions | |
ClRosLaunch2 () | |
ClRosLaunch2 (std::string packageName, std::string launchFilename) | |
virtual | ~ClRosLaunch2 () |
void | launch () |
void | stop () |
![]() | |
ISmaccClient () | |
virtual | ~ISmaccClient () |
virtual void | onInitialize () |
virtual std::string | getName () const |
template<typename TComponent > | |
TComponent * | getComponent () |
template<typename TComponent > | |
TComponent * | getComponent (std::string name) |
template<typename TComponent > | |
TComponent * | getComponent (int index) |
virtual smacc2::introspection::TypeInfo::Ptr | getType () |
ISmaccStateMachine * | getStateMachine () |
template<typename TSmaccSignal , typename T > | |
void | connectSignal (TSmaccSignal &signal, void(T::*callback)(), T *object) |
template<typename SmaccClientType > | |
void | requiresClient (SmaccClientType *&storage) |
void | getComponents (std::vector< std::shared_ptr< ISmaccComponent > > &components) |
const std::vector< std::shared_ptr< ISmaccComponent > > & | iterateComponents () const |
template<typename EventType > | |
void | postEvent (const EventType &ev) |
template<typename EventType > | |
void | postEvent () |
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) |
![]() | |
std::map< ComponentKey, std::shared_ptr< smacc2::ISmaccComponent > > | components_ |
Static Protected Attributes | |
static std::map< std::future< void >, cancelCallback > | detached_futures_ |
Additional Inherited Members | |
![]() | |
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().