#include <cb_ros_launch_2.hpp>
|
| CbRosLaunch2 () |
|
| CbRosLaunch2 (std::string package, std::string launchfile, RosLaunchMode) |
|
virtual | ~CbRosLaunch2 () |
|
template<typename TOrthogonal , typename TSourceObject > |
void | onOrthogonalAllocation () |
|
void | onEntry () override |
|
template<typename TOrthogonal , typename TSourceObject > |
void | onOrthogonalAllocation () |
|
virtual | ~SmaccAsyncClientBehavior () |
|
template<typename TCallback , typename T > |
boost::signals2::connection | onSuccess (TCallback callback, T *object) |
|
template<typename TCallback , typename T > |
boost::signals2::connection | onFinished (TCallback callback, T *object) |
|
template<typename TCallback , typename T > |
boost::signals2::connection | onFailure (TCallback callback, T *object) |
|
void | requestForceFinish () |
|
void | executeOnEntry () override |
|
void | executeOnExit () override |
|
void | waitOnEntryThread (bool requestFinish) |
|
template<typename TCallbackMethod , typename T > |
boost::signals2::connection | onSuccess (TCallbackMethod callback, T *object) |
|
template<typename TCallbackMethod , typename T > |
boost::signals2::connection | onFinished (TCallbackMethod callback, T *object) |
|
template<typename TCallbackMethod , typename T > |
boost::signals2::connection | onFailure (TCallbackMethod callback, T *object) |
|
| ISmaccClientBehavior () |
|
virtual | ~ISmaccClientBehavior () |
|
ISmaccStateMachine * | getStateMachine () |
|
std::string | getName () const |
|
template<typename SmaccClientType > |
void | requiresClient (SmaccClientType *&storage) |
|
template<typename SmaccComponentType > |
void | requiresComponent (SmaccComponentType *&storage, bool throwExceptionIfNotExist=false) |
|
virtual void | onExit () |
|
Definition at line 35 of file cb_ros_launch_2.hpp.
◆ CbRosLaunch2() [1/2]
smacc2::client_behaviors::CbRosLaunch2::CbRosLaunch2 |
( |
| ) |
|
Definition at line 28 of file cb_ros_launch_2.cpp.
33{
34}
std::optional< std::string > launchFileName_
RosLaunchMode launchMode_
smacc2::client_bases::ClRosLaunch2 * client_
std::optional< std::string > packageName_
@ LAUNCH_CLIENT_BEHAVIOR_LIFETIME
◆ CbRosLaunch2() [2/2]
smacc2::client_behaviors::CbRosLaunch2::CbRosLaunch2 |
( |
std::string |
package, |
|
|
std::string |
launchfile, |
|
|
RosLaunchMode |
launchmode |
|
) |
| |
◆ ~CbRosLaunch2()
smacc2::client_behaviors::CbRosLaunch2::~CbRosLaunch2 |
( |
| ) |
|
|
virtual |
◆ onEntry()
void smacc2::client_behaviors::CbRosLaunch2::onEntry |
( |
| ) |
|
|
overridevirtual |
Reimplemented from smacc2::ISmaccClientBehavior.
Definition at line 49 of file cb_ros_launch_2.cpp.
50{
51 RCLCPP_INFO_STREAM(
getLogger(),
"[CbRosLaunch2] OnEntry");
52
53 std::string packageName, launchFileName;
54 if (
57 {
58 std::function<
bool()> breakfunction;
59
61
62 RCLCPP_INFO_STREAM(
65
67
69 }
71 {
74 {
77 }
78
79 RCLCPP_INFO_STREAM(
getLogger(),
"[CbRosLaunch2] finding Ros Launch client");
80
81
83 {
84 RCLCPP_INFO_STREAM(
87
89 }
90 else
91 {
92 RCLCPP_ERROR(
94 "[CbRosLaunch2] Inccorrect ros launch operation. No Ros Launch client specified neither "
95 "package/roslaunch file path.");
96 }
97 }
98 else
99 {
100 RCLCPP_ERROR(
102 "[CbRosLaunch2] Inccorrect ros launch operation. Not supported case. Invalid argument.");
103 }
104}
virtual rclcpp::Logger getLogger() const
void requiresClient(SmaccClientType *&storage)
bool isShutdownRequested()
onEntry is executed in a new thread. However the current state cannot be left until the onEntry threa...
std::string launchFileName_
static std::future< std::string > executeRosLaunch(std::string packageName, std::string launchFilename, std::function< bool()> cancelCondition, ClRosLaunch2 *client=nullptr)
std::future< std::string > result_
References client_, smacc2::client_bases::ClRosLaunch2::executeRosLaunch(), smacc2::ISmaccClientBehavior::getLogger(), smacc2::SmaccAsyncClientBehavior::isShutdownRequested(), smacc2::client_bases::ClRosLaunch2::launch(), smacc2::client_behaviors::LAUNCH_CLIENT_BEHAVIOR_LIFETIME, smacc2::client_behaviors::LAUNCH_DETTACHED, smacc2::client_bases::ClRosLaunch2::launchFileName_, launchFileName_, launchMode_, smacc2::client_bases::ClRosLaunch2::packageName_, packageName_, smacc2::ISmaccClientBehavior::requiresClient(), and result_.
◆ onOrthogonalAllocation()
void smacc2::client_behaviors::CbRosLaunch2::onOrthogonalAllocation |
( |
| ) |
|
|
inline |
Definition at line 50 of file cb_ros_launch_2.hpp.
51 {
52 smacc2::SmaccAsyncClientBehavior::onOrthogonalAllocation<TOrthogonal, TSourceObject>();
53 }
◆ client_
◆ detached_futures_
std::vector< std::future< std::string > > smacc2::client_behaviors::CbRosLaunch2::detached_futures_ |
|
staticprivate |
◆ future_
std::future<std::string> smacc2::client_behaviors::CbRosLaunch2::future_ |
|
protected |
◆ launchFileName_
std::optional<std::string> smacc2::client_behaviors::CbRosLaunch2::launchFileName_ |
◆ launchMode_
RosLaunchMode smacc2::client_behaviors::CbRosLaunch2::launchMode_ |
◆ packageName_
std::optional<std::string> smacc2::client_behaviors::CbRosLaunch2::packageName_ |
◆ result_
std::future<std::string> smacc2::client_behaviors::CbRosLaunch2::result_ |
|
protected |
The documentation for this class was generated from the following files: