SMACC2
Loading...
Searching...
No Matches
cl_lifecycle_node::CpLifecycleEventMonitor Class Reference

Component that monitors ROS2 lifecycle node transition events. More...

#include <cp_lifecycle_event_monitor.hpp>

Inheritance diagram for cl_lifecycle_node::CpLifecycleEventMonitor:
Inheritance graph
Collaboration diagram for cl_lifecycle_node::CpLifecycleEventMonitor:
Collaboration graph

Public Member Functions

 CpLifecycleEventMonitor (std::string nodeName)
 Constructor with node name.
 
virtual ~CpLifecycleEventMonitor ()=default
 
void setOwner (smacc2::ISmaccClient *owner, smacc2::ISmaccStateMachine *stateMachine)
 Set the owner client and state machine for this component.
 
template<typename T >
smacc2::SmaccSignalConnection onTransitionCreate (void(T::*callback)(), T *object)
 
template<typename T >
smacc2::SmaccSignalConnection onTransitionConfigure (void(T::*callback)(), T *object)
 
template<typename T >
smacc2::SmaccSignalConnection onTransitionActivate (void(T::*callback)(), T *object)
 
template<typename T >
smacc2::SmaccSignalConnection onTransitionDeactivate (void(T::*callback)(), T *object)
 
template<typename T >
smacc2::SmaccSignalConnection onTransitionCleanup (void(T::*callback)(), T *object)
 
template<typename T >
smacc2::SmaccSignalConnection onTransitionUnconfiguredShutdown (void(T::*callback)(), T *object)
 
template<typename T >
smacc2::SmaccSignalConnection onTransitionInactiveShutdown (void(T::*callback)(), T *object)
 
template<typename T >
smacc2::SmaccSignalConnection onTransitionActiveShutdown (void(T::*callback)(), T *object)
 
template<typename T >
smacc2::SmaccSignalConnection onTransitionDestroy (void(T::*callback)(), T *object)
 
template<typename T >
smacc2::SmaccSignalConnection onTransitionOnConfigureSuccess (void(T::*callback)(), T *object)
 
template<typename T >
smacc2::SmaccSignalConnection onTransitionOnConfigureFailure (void(T::*callback)(), T *object)
 
template<typename T >
smacc2::SmaccSignalConnection onTransitionOnConfigureError (void(T::*callback)(), T *object)
 
template<typename T >
smacc2::SmaccSignalConnection onTransitionOnActivateSuccess (void(T::*callback)(), T *object)
 
template<typename T >
smacc2::SmaccSignalConnection onTransitionOnActivateFailure (void(T::*callback)(), T *object)
 
template<typename T >
smacc2::SmaccSignalConnection onTransitionOnActivateError (void(T::*callback)(), T *object)
 
template<typename T >
smacc2::SmaccSignalConnection onTransitionOnDeactivateSuccess (void(T::*callback)(), T *object)
 
template<typename T >
smacc2::SmaccSignalConnection onTransitionOnDeactivateFailure (void(T::*callback)(), T *object)
 
template<typename T >
smacc2::SmaccSignalConnection onTransitionOnDeactivateError (void(T::*callback)(), T *object)
 
template<typename T >
smacc2::SmaccSignalConnection onTransitionOnCleanupSuccess (void(T::*callback)(), T *object)
 
template<typename T >
smacc2::SmaccSignalConnection onTransitionOnCleanupFailure (void(T::*callback)(), T *object)
 
template<typename T >
smacc2::SmaccSignalConnection onTransitionOnCleanupError (void(T::*callback)(), T *object)
 
template<typename T >
smacc2::SmaccSignalConnection onTransitionOnShutdownSuccess (void(T::*callback)(), T *object)
 
template<typename T >
smacc2::SmaccSignalConnection onTransitionOnShutdownFailure (void(T::*callback)(), T *object)
 
template<typename T >
smacc2::SmaccSignalConnection onTransitionOnShutdownError (void(T::*callback)(), T *object)
 
template<typename T >
smacc2::SmaccSignalConnection onTransitionOnActiveShutdownSuccess (void(T::*callback)(), T *object)
 
template<typename T >
smacc2::SmaccSignalConnection onTransitionOnActiveShutdownFailure (void(T::*callback)(), T *object)
 
template<typename T >
smacc2::SmaccSignalConnection onTransitionOnActiveShutdownError (void(T::*callback)(), T *object)
 
template<typename T >
smacc2::SmaccSignalConnection onTransitionOnErrorSuccess (void(T::*callback)(), T *object)
 
template<typename T >
smacc2::SmaccSignalConnection onTransitionOnErrorFailure (void(T::*callback)(), T *object)
 
template<typename T >
smacc2::SmaccSignalConnection onTransitionOnErrorError (void(T::*callback)(), T *object)
 
std::optional< lifecycle_msgs::msg::TransitionEvent > getLastTransitionEvent () const
 Get the last received transition event.
 
void onInitialize () override
 Component initialization - creates subscription.
 
template<typename TOrthogonal , typename TClient >
void onStateOrthogonalAllocation ()
 Configure event posting with orthogonal template parameter This is called from the client's onStateOrthogonalAllocation to set up type-safe event posting.
 
- Public Member Functions inherited from smacc2::ISmaccComponent
 ISmaccComponent ()
 
virtual ~ISmaccComponent ()
 
 ISmaccComponent (const ISmaccComponent &)=delete
 
ISmaccComponent & operator= (const ISmaccComponent &)=delete
 
 ISmaccComponent (ISmaccComponent &&)=delete
 
ISmaccComponent & operator= (ISmaccComponent &&)=delete
 
virtual std::string getName () const
 

Public Attributes

smacc2::SmaccSignal< void()> onTransitionCreate_
 
smacc2::SmaccSignal< void()> onTransitionConfigure_
 
smacc2::SmaccSignal< void()> onTransitionActivate_
 
smacc2::SmaccSignal< void()> onTransitionDeactivate_
 
smacc2::SmaccSignal< void()> onTransitionCleanup_
 
smacc2::SmaccSignal< void()> onTransitionUnconfiguredShutdown_
 
smacc2::SmaccSignal< void()> onTransitionInactiveShutdown_
 
smacc2::SmaccSignal< void()> onTransitionActiveShutdown_
 
smacc2::SmaccSignal< void()> onTransitionDestroy_
 
smacc2::SmaccSignal< void()> onTransitionOnConfigureSuccess_
 
smacc2::SmaccSignal< void()> onTransitionOnConfigureFailure_
 
smacc2::SmaccSignal< void()> onTransitionOnConfigureError_
 
smacc2::SmaccSignal< void()> onTransitionOnActivateSuccess_
 
smacc2::SmaccSignal< void()> onTransitionOnActivateFailure_
 
smacc2::SmaccSignal< void()> onTransitionOnActivateError_
 
smacc2::SmaccSignal< void()> onTransitionOnDeactivateSuccess_
 
smacc2::SmaccSignal< void()> onTransitionOnDeactivateFailure_
 
smacc2::SmaccSignal< void()> onTransitionOnDeactivateError_
 
smacc2::SmaccSignal< void()> onTransitionOnCleanupSuccess_
 
smacc2::SmaccSignal< void()> onTransitionOnCleanupFailure_
 
smacc2::SmaccSignal< void()> onTransitionOnCleanupError_
 
smacc2::SmaccSignal< void()> onTransitionOnShutdownSuccess_
 
smacc2::SmaccSignal< void()> onTransitionOnShutdownFailure_
 
smacc2::SmaccSignal< void()> onTransitionOnShutdownError_
 
smacc2::SmaccSignal< void()> onTransitionOnActiveShutdownSuccess_
 
smacc2::SmaccSignal< void()> onTransitionOnActiveShutdownFailure_
 
smacc2::SmaccSignal< void()> onTransitionOnActiveShutdownError_
 
smacc2::SmaccSignal< void()> onTransitionOnErrorSuccess_
 
smacc2::SmaccSignal< void()> onTransitionOnErrorFailure_
 
smacc2::SmaccSignal< void()> onTransitionOnErrorError_
 

Private Member Functions

void onTransitionEvent (const lifecycle_msgs::msg::TransitionEvent::SharedPtr msg)
 Callback for transition event subscription.
 

Private Attributes

std::string nodeName_
 
rclcpp::Subscription< lifecycle_msgs::msg::TransitionEvent >::SharedPtr subscription_
 
lifecycle_msgs::msg::TransitionEvent::SharedPtr lastTransitionEvent_
 
std::mutex eventMutex_
 
std::function< void()> postEventConfigure_
 
std::function< void()> postEventActivate_
 
std::function< void()> postEventDeactivate_
 
std::function< void()> postEventCleanup_
 
std::function< void()> postEventUnconfiguredShutdown_
 
std::function< void()> postEventInactiveShutdown_
 
std::function< void()> postEventActiveShutdown_
 
std::function< void()> postEventDestroy_
 
std::function< void()> postEventOnConfigureSuccess_
 
std::function< void()> postEventOnConfigureFailure_
 
std::function< void()> postEventOnConfigureError_
 
std::function< void()> postEventOnActivateSuccess_
 
std::function< void()> postEventOnActivateFailure_
 
std::function< void()> postEventOnActivateError_
 
std::function< void()> postEventOnDeactivateSuccess_
 
std::function< void()> postEventOnDeactivateFailure_
 
std::function< void()> postEventOnDeactivateError_
 
std::function< void()> postEventOnCleanupSuccess_
 
std::function< void()> postEventOnCleanupFailure_
 
std::function< void()> postEventOnCleanupError_
 
std::function< void()> postEventOnShutdownSuccess_
 
std::function< void()> postEventOnShutdownFailure_
 
std::function< void()> postEventOnShutdownError_
 
std::function< void()> postEventOnErrorSuccess_
 
std::function< void()> postEventOnErrorFailure_
 

Additional Inherited Members

- Protected Member Functions inherited from smacc2::ISmaccComponent
template<typename TOrthogonal , typename TClient >
void onComponentInitialization ()
 
template<typename EventType >
void postEvent (const EventType &ev)
 
template<typename EventType >
void postEvent ()
 
template<typename TOrthogonal , typename TSourceObject >
void onStateOrthogonalAllocation ()
 
template<typename TComponent >
void requiresComponent (TComponent *&requiredComponentStorage, ComponentRequirement requirementType=ComponentRequirement::SOFT)
 
template<typename TComponent >
void requiresComponent (const std::string &name, TComponent *&requiredComponentStorage, ComponentRequirement requirementType=ComponentRequirement::SOFT)
 
template<typename TClient >
void requiresClient (TClient *&requiredClientStorage)
 
template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs>
SmaccComponentType * createSiblingComponent (const TArgs &... targs)
 
template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs>
SmaccComponentType * createSiblingNamedComponent (const std::string &name, const TArgs &... targs)
 
rclcpp::Node::SharedPtr getNode ()
 
rclcpp::Logger getLogger () const
 
ISmaccStateMachine * getStateMachine ()
 
- Protected Attributes inherited from smacc2::ISmaccComponent
ISmaccStateMachine * stateMachine_ = nullptr
 
ISmaccClient * owner_ = nullptr
 

Detailed Description

Component that monitors ROS2 lifecycle node transition events.

CpLifecycleEventMonitor subscribes to lifecycle transition events and parses them to detect specific transition types. It emits SMACC2 signals for each transition, enabling event-driven responses to lifecycle state changes.

This component handles the complex state-pair matching logic required to distinguish between transition starts, successes, failures, and errors.

Definition at line 101 of file cp_lifecycle_event_monitor.hpp.

Constructor & Destructor Documentation

◆ CpLifecycleEventMonitor()

cl_lifecycle_node::CpLifecycleEventMonitor::CpLifecycleEventMonitor ( std::string nodeName)

Constructor with node name.

Parameters
nodeNameName of the lifecycle node to monitor

Definition at line 19 of file cp_lifecycle_event_monitor.cpp.

◆ ~CpLifecycleEventMonitor()

virtual cl_lifecycle_node::CpLifecycleEventMonitor::~CpLifecycleEventMonitor ( )
virtualdefault

Member Function Documentation

◆ getLastTransitionEvent()

std::optional< lifecycle_msgs::msg::TransitionEvent > cl_lifecycle_node::CpLifecycleEventMonitor::getLastTransitionEvent ( ) const

Get the last received transition event.

Returns
Optional transition event (empty if none received)

Definition at line 36 of file cp_lifecycle_event_monitor.cpp.

37{
38 std::lock_guard<std::mutex> lock(eventMutex_);
40 {
42 }
43 return std::nullopt;
44}
lifecycle_msgs::msg::TransitionEvent::SharedPtr lastTransitionEvent_

References eventMutex_, and lastTransitionEvent_.

◆ onInitialize()

void cl_lifecycle_node::CpLifecycleEventMonitor::onInitialize ( )
overridevirtual

Component initialization - creates subscription.

Reimplemented from smacc2::ISmaccComponent.

Definition at line 21 of file cp_lifecycle_event_monitor.cpp.

22{
23 // Phase 3: Create subscription to lifecycle transition events
24 const std::string node_transition_event_topic = "/transition_event";
25
26 subscription_ = getNode()->create_subscription<lifecycle_msgs::msg::TransitionEvent>(
27 nodeName_ + node_transition_event_topic, 100,
28 std::bind(&CpLifecycleEventMonitor::onTransitionEvent, this, std::placeholders::_1));
29
30 RCLCPP_INFO(
31 getLogger(), "[CpLifecycleEventMonitor] Subscribed to: %s",
32 (nodeName_ + node_transition_event_topic).c_str());
33}
rclcpp::Subscription< lifecycle_msgs::msg::TransitionEvent >::SharedPtr subscription_
void onTransitionEvent(const lifecycle_msgs::msg::TransitionEvent::SharedPtr msg)
Callback for transition event subscription.
rclcpp::Logger getLogger() const
rclcpp::Node::SharedPtr getNode()

References smacc2::ISmaccComponent::getLogger(), smacc2::ISmaccComponent::getNode(), nodeName_, onTransitionEvent(), and subscription_.

Here is the call graph for this function:

◆ onStateOrthogonalAllocation()

template<typename TOrthogonal , typename TClient >
void cl_lifecycle_node::CpLifecycleEventMonitor::onStateOrthogonalAllocation ( )
inline

Configure event posting with orthogonal template parameter This is called from the client's onStateOrthogonalAllocation to set up type-safe event posting.

Definition at line 401 of file cp_lifecycle_event_monitor.hpp.

402 {
403 // Set up event posting lambdas with correct template parameters
404 // Component is the event source (TSourceObject = CpLifecycleEventMonitor)
405
406 postEventConfigure_ = [this]()
408
409 postEventActivate_ = [this]()
411
412 postEventDeactivate_ = [this]()
414
415 postEventCleanup_ = [this]()
417
420
423
424 postEventActiveShutdown_ = [this]()
426
427 postEventDestroy_ = [this]()
429
432
435
438
441
444
447
450
453
456
459
462
463 postEventOnCleanupError_ = [this]()
465
468
471
474
475 postEventOnErrorSuccess_ = [this]()
477
478 postEventOnErrorFailure_ = [this]()
480 }

References smacc2::ISmaccComponent::postEvent(), postEventActivate_, postEventActiveShutdown_, postEventCleanup_, postEventConfigure_, postEventDeactivate_, postEventDestroy_, postEventInactiveShutdown_, postEventOnActivateError_, postEventOnActivateFailure_, postEventOnActivateSuccess_, postEventOnCleanupError_, postEventOnCleanupFailure_, postEventOnCleanupSuccess_, postEventOnConfigureError_, postEventOnConfigureFailure_, postEventOnConfigureSuccess_, postEventOnDeactivateError_, postEventOnDeactivateFailure_, postEventOnDeactivateSuccess_, postEventOnErrorFailure_, postEventOnErrorSuccess_, postEventOnShutdownError_, postEventOnShutdownFailure_, postEventOnShutdownSuccess_, and postEventUnconfiguredShutdown_.

Here is the call graph for this function:

◆ onTransitionActivate()

template<typename T >
smacc2::SmaccSignalConnection cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionActivate ( void(T::* callback )(),
T * object )
inline

Definition at line 191 of file cp_lifecycle_event_monitor.hpp.

192 {
193 return this->getStateMachine()->createSignalConnection(onTransitionActivate_, callback, object);
194 }
ISmaccStateMachine * getStateMachine()
smacc2::SmaccSignalConnection createSignalConnection(TSmaccSignal &signal, TMemberFunctionPrototype callback, TSmaccObjectType *object)

References smacc2::ISmaccStateMachine::createSignalConnection(), and smacc2::ISmaccComponent::getStateMachine().

Here is the call graph for this function:

◆ onTransitionActiveShutdown()

template<typename T >
smacc2::SmaccSignalConnection cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionActiveShutdown ( void(T::* callback )(),
T * object )
inline

Definition at line 224 of file cp_lifecycle_event_monitor.hpp.

225 {
227 onTransitionActiveShutdown_, callback, object);
228 }

References smacc2::ISmaccStateMachine::createSignalConnection(), and smacc2::ISmaccComponent::getStateMachine().

Here is the call graph for this function:

◆ onTransitionCleanup()

template<typename T >
smacc2::SmaccSignalConnection cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionCleanup ( void(T::* callback )(),
T * object )
inline

Definition at line 204 of file cp_lifecycle_event_monitor.hpp.

205 {
206 return this->getStateMachine()->createSignalConnection(onTransitionCleanup_, callback, object);
207 }

References smacc2::ISmaccStateMachine::createSignalConnection(), and smacc2::ISmaccComponent::getStateMachine().

Here is the call graph for this function:

◆ onTransitionConfigure()

template<typename T >
smacc2::SmaccSignalConnection cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionConfigure ( void(T::* callback )(),
T * object )
inline

Definition at line 184 of file cp_lifecycle_event_monitor.hpp.

185 {
187 onTransitionConfigure_, callback, object);
188 }

References smacc2::ISmaccStateMachine::createSignalConnection(), and smacc2::ISmaccComponent::getStateMachine().

Here is the call graph for this function:

◆ onTransitionCreate()

template<typename T >
smacc2::SmaccSignalConnection cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionCreate ( void(T::* callback )(),
T * object )
inline

Definition at line 178 of file cp_lifecycle_event_monitor.hpp.

179 {
180 return this->getStateMachine()->createSignalConnection(onTransitionCreate_, callback, object);
181 }

References smacc2::ISmaccStateMachine::createSignalConnection(), and smacc2::ISmaccComponent::getStateMachine().

Here is the call graph for this function:

◆ onTransitionDeactivate()

template<typename T >
smacc2::SmaccSignalConnection cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionDeactivate ( void(T::* callback )(),
T * object )
inline

Definition at line 197 of file cp_lifecycle_event_monitor.hpp.

198 {
200 onTransitionDeactivate_, callback, object);
201 }

References smacc2::ISmaccStateMachine::createSignalConnection(), and smacc2::ISmaccComponent::getStateMachine().

Here is the call graph for this function:

◆ onTransitionDestroy()

template<typename T >
smacc2::SmaccSignalConnection cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionDestroy ( void(T::* callback )(),
T * object )
inline

Definition at line 231 of file cp_lifecycle_event_monitor.hpp.

232 {
233 return this->getStateMachine()->createSignalConnection(onTransitionDestroy_, callback, object);
234 }

References smacc2::ISmaccStateMachine::createSignalConnection(), and smacc2::ISmaccComponent::getStateMachine().

Here is the call graph for this function:

◆ onTransitionEvent()

void cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionEvent ( const lifecycle_msgs::msg::TransitionEvent::SharedPtr msg)
private

Callback for transition event subscription.

Parameters
msgTransition event message

Definition at line 46 of file cp_lifecycle_event_monitor.cpp.

48{
49 RCLCPP_INFO(
50 getLogger(), "[CpLifecycleEventMonitor] Transition event: %d -> %d", msg->start_state.id,
51 msg->goal_state.id);
52
53 // Store the event
54 {
55 std::lock_guard<std::mutex> lock(eventMutex_);
57 }
58
59 // Phase 3: Full state-pair matching logic (moved from ClLifecycleNode)
60 // Parse transition events and emit corresponding signals
61
62 // TRANSITION_CONFIGURE
63 if (
64 msg->start_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED &&
65 msg->goal_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_CONFIGURING)
66 {
67 RCLCPP_INFO(getLogger(), "TRANSITION_CONFIGURE");
70 }
71 // TRANSITION_CLEANUP
72 else if (
73 msg->start_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_INACTIVE &&
74 msg->goal_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_CLEANINGUP)
75 {
76 RCLCPP_INFO(getLogger(), "TRANSITION_CLEANUP");
79 }
80 // TRANSITION_ACTIVATE
81 else if (
82 msg->start_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_INACTIVE &&
83 msg->goal_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_ACTIVATING)
84 {
85 RCLCPP_INFO(getLogger(), "TRANSITION_ACTIVATE");
88 }
89 // TRANSITION_DEACTIVATE
90 else if (
91 msg->start_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_ACTIVE &&
92 msg->goal_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_DEACTIVATING)
93 {
94 RCLCPP_INFO(getLogger(), "TRANSITION_DEACTIVATE");
97 }
98 // TRANSITION_UNCONFIGURED_SHUTDOWN
99 else if (
100 msg->start_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED &&
101 msg->goal_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_SHUTTINGDOWN)
102 {
103 RCLCPP_INFO(getLogger(), "TRANSITION_UNCONFIGURED_SHUTDOWN");
106 }
107 // TRANSITION_INACTIVE_SHUTDOWN
108 else if (
109 msg->start_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_INACTIVE &&
110 msg->goal_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_SHUTTINGDOWN)
111 {
112 RCLCPP_INFO(getLogger(), "TRANSITION_INACTIVE_SHUTDOWN");
115 }
116 // TRANSITION_ACTIVE_SHUTDOWN
117 else if (
118 msg->start_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_ACTIVE &&
119 msg->goal_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_SHUTTINGDOWN)
120 {
121 RCLCPP_INFO(getLogger(), "TRANSITION_ACTIVE_SHUTDOWN");
124 }
125 // TRANSITION_DESTROY
126 else if (msg->start_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_FINALIZED)
127 {
128 RCLCPP_INFO(getLogger(), "TRANSITION_DESTROY");
131 }
132 // TRANSITION_ON_CONFIGURE_SUCCESS
133 else if (
134 msg->start_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_CONFIGURING &&
135 msg->goal_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_INACTIVE)
136 {
137 RCLCPP_INFO(getLogger(), "TRANSITION_ON_CONFIGURE_SUCCESS");
140 }
141 // TRANSITION_ON_CONFIGURE_FAILURE
142 else if (
143 msg->start_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_CONFIGURING &&
144 msg->goal_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED)
145 {
146 RCLCPP_INFO(getLogger(), "TRANSITION_ON_CONFIGURE_FAILURE");
149 }
150 // TRANSITION_ON_CONFIGURE_ERROR
151 if (
152 msg->start_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_CONFIGURING &&
153 msg->goal_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_ERRORPROCESSING)
154 {
155 RCLCPP_INFO(getLogger(), "TRANSITION_ON_CONFIGURE_ERROR");
158 }
159 // TRANSITION_ON_CLEANUP_SUCCESS
160 else if (
161 msg->start_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_CLEANINGUP &&
162 msg->goal_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED)
163 {
164 RCLCPP_INFO(getLogger(), "TRANSITION_ON_CLEANUP_SUCCESS");
167 }
168 // TRANSITION_ON_CLEANUP_ERROR
169 else if (
170 msg->start_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_CLEANINGUP &&
171 msg->goal_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_ERRORPROCESSING)
172 {
173 RCLCPP_INFO(getLogger(), "TRANSITION_ON_CLEANUP_ERROR");
176 }
177 // TRANSITION_ON_ACTIVATE_SUCCESS
178 else if (
179 msg->start_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_ACTIVATING &&
180 msg->goal_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_ACTIVE)
181 {
182 RCLCPP_INFO(getLogger(), "TRANSITION_ON_ACTIVATE_SUCCESS");
185 }
186 // TRANSITION_ON_ACTIVATE_FAILURE
187 else if (
188 msg->start_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_ACTIVATING &&
189 msg->goal_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_INACTIVE)
190 {
191 RCLCPP_INFO(getLogger(), "TRANSITION_ON_ACTIVATE_FAILURE");
194 }
195 // TRANSITION_ON_ACTIVATE_ERROR
196 else if (
197 msg->start_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_ACTIVATING &&
198 msg->goal_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_ERRORPROCESSING)
199 {
200 RCLCPP_INFO(getLogger(), "TRANSITION_ON_ACTIVATE_ERROR");
203 }
204 // TRANSITION_ON_DEACTIVATE_SUCCESS
205 else if (
206 msg->start_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_DEACTIVATING &&
207 msg->goal_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_INACTIVE)
208 {
209 RCLCPP_INFO(getLogger(), "TRANSITION_ON_DEACTIVATE_SUCCESS");
212 }
213 // TRANSITION_ON_DEACTIVATE_ERROR
214 else if (
215 msg->start_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_DEACTIVATING &&
216 msg->goal_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_ERRORPROCESSING)
217 {
218 RCLCPP_INFO(getLogger(), "TRANSITION_ON_DEACTIVATE_ERROR");
221 }
222 // TRANSITION_ON_SHUTDOWN_SUCCESS
223 else if (
224 msg->start_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_SHUTTINGDOWN &&
225 msg->goal_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_FINALIZED)
226 {
227 RCLCPP_INFO(getLogger(), "TRANSITION_ON_SHUTDOWN_SUCCESS");
230 }
231 // TRANSITION_ON_SHUTDOWN_ERROR
232 else if (
233 msg->start_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_SHUTTINGDOWN &&
234 msg->goal_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_ERRORPROCESSING)
235 {
236 RCLCPP_INFO(getLogger(), "TRANSITION_ON_SHUTDOWN_ERROR");
239 }
240 // TRANSITION_ON_ERROR_SUCCESS
241 else if (
242 msg->start_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_ERRORPROCESSING &&
243 msg->goal_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED)
244 {
245 RCLCPP_INFO(getLogger(), "TRANSITION_ON_ERROR_SUCCESS");
248 }
249 // TRANSITION_ON_ERROR_FAILURE
250 else if (
251 msg->start_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_ERRORPROCESSING &&
252 msg->goal_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_FINALIZED)
253 {
254 RCLCPP_INFO(getLogger(), "TRANSITION_ON_ERROR_FAILURE");
257 }
258 // UNKNOWN TRANSITION
259 else
260 {
261 RCLCPP_INFO(getLogger(), "TRANSITION_UNKNOWN");
262 }
263}

References eventMutex_, smacc2::ISmaccComponent::getLogger(), lastTransitionEvent_, onTransitionActivate_, onTransitionActiveShutdown_, onTransitionCleanup_, onTransitionConfigure_, onTransitionDeactivate_, onTransitionDestroy_, onTransitionInactiveShutdown_, onTransitionOnActivateError_, onTransitionOnActivateFailure_, onTransitionOnActivateSuccess_, onTransitionOnCleanupError_, onTransitionOnCleanupSuccess_, onTransitionOnConfigureError_, onTransitionOnConfigureFailure_, onTransitionOnConfigureSuccess_, onTransitionOnDeactivateError_, onTransitionOnDeactivateSuccess_, onTransitionOnErrorFailure_, onTransitionOnErrorSuccess_, onTransitionOnShutdownError_, onTransitionOnShutdownSuccess_, onTransitionUnconfiguredShutdown_, postEventActivate_, postEventActiveShutdown_, postEventCleanup_, postEventConfigure_, postEventDeactivate_, postEventDestroy_, postEventInactiveShutdown_, postEventOnActivateError_, postEventOnActivateFailure_, postEventOnActivateSuccess_, postEventOnCleanupError_, postEventOnCleanupSuccess_, postEventOnConfigureError_, postEventOnConfigureFailure_, postEventOnConfigureSuccess_, postEventOnDeactivateError_, postEventOnDeactivateSuccess_, postEventOnErrorFailure_, postEventOnErrorSuccess_, postEventOnShutdownError_, postEventOnShutdownSuccess_, and postEventUnconfiguredShutdown_.

Referenced by onInitialize().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onTransitionInactiveShutdown()

template<typename T >
smacc2::SmaccSignalConnection cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionInactiveShutdown ( void(T::* callback )(),
T * object )
inline

Definition at line 217 of file cp_lifecycle_event_monitor.hpp.

218 {
220 onTransitionInactiveShutdown_, callback, object);
221 }

References smacc2::ISmaccStateMachine::createSignalConnection(), and smacc2::ISmaccComponent::getStateMachine().

Here is the call graph for this function:

◆ onTransitionOnActivateError()

template<typename T >
smacc2::SmaccSignalConnection cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnActivateError ( void(T::* callback )(),
T * object )
inline

Definition at line 272 of file cp_lifecycle_event_monitor.hpp.

273 {
275 onTransitionOnActivateError_, callback, object);
276 }

References smacc2::ISmaccStateMachine::createSignalConnection(), and smacc2::ISmaccComponent::getStateMachine().

Referenced by cl_lifecycle_node::CbActivate::onStateOrthogonalAllocation().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onTransitionOnActivateFailure()

template<typename T >
smacc2::SmaccSignalConnection cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnActivateFailure ( void(T::* callback )(),
T * object )
inline

Definition at line 265 of file cp_lifecycle_event_monitor.hpp.

266 {
268 onTransitionOnActivateFailure_, callback, object);
269 }

References smacc2::ISmaccStateMachine::createSignalConnection(), and smacc2::ISmaccComponent::getStateMachine().

Referenced by cl_lifecycle_node::CbActivate::onStateOrthogonalAllocation().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onTransitionOnActivateSuccess()

template<typename T >
smacc2::SmaccSignalConnection cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnActivateSuccess ( void(T::* callback )(),
T * object )
inline

Definition at line 258 of file cp_lifecycle_event_monitor.hpp.

259 {
261 onTransitionOnActivateSuccess_, callback, object);
262 }

References smacc2::ISmaccStateMachine::createSignalConnection(), and smacc2::ISmaccComponent::getStateMachine().

Referenced by cl_lifecycle_node::CbActivate::onStateOrthogonalAllocation().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onTransitionOnActiveShutdownError()

template<typename T >
smacc2::SmaccSignalConnection cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnActiveShutdownError ( void(T::* callback )(),
T * object )
inline

Definition at line 358 of file cp_lifecycle_event_monitor.hpp.

359 {
361 onTransitionOnActiveShutdownError_, callback, object);
362 }

References smacc2::ISmaccStateMachine::createSignalConnection(), and smacc2::ISmaccComponent::getStateMachine().

Here is the call graph for this function:

◆ onTransitionOnActiveShutdownFailure()

template<typename T >
smacc2::SmaccSignalConnection cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnActiveShutdownFailure ( void(T::* callback )(),
T * object )
inline

Definition at line 350 of file cp_lifecycle_event_monitor.hpp.

352 {
354 onTransitionOnActiveShutdownFailure_, callback, object);
355 }
smacc2::SmaccSignal< void()> onTransitionOnActiveShutdownFailure_

References smacc2::ISmaccStateMachine::createSignalConnection(), and smacc2::ISmaccComponent::getStateMachine().

Here is the call graph for this function:

◆ onTransitionOnActiveShutdownSuccess()

template<typename T >
smacc2::SmaccSignalConnection cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnActiveShutdownSuccess ( void(T::* callback )(),
T * object )
inline

Definition at line 342 of file cp_lifecycle_event_monitor.hpp.

344 {
346 onTransitionOnActiveShutdownSuccess_, callback, object);
347 }
smacc2::SmaccSignal< void()> onTransitionOnActiveShutdownSuccess_

References smacc2::ISmaccStateMachine::createSignalConnection(), and smacc2::ISmaccComponent::getStateMachine().

Here is the call graph for this function:

◆ onTransitionOnCleanupError()

template<typename T >
smacc2::SmaccSignalConnection cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnCleanupError ( void(T::* callback )(),
T * object )
inline

Definition at line 314 of file cp_lifecycle_event_monitor.hpp.

315 {
317 onTransitionOnCleanupError_, callback, object);
318 }

References smacc2::ISmaccStateMachine::createSignalConnection(), and smacc2::ISmaccComponent::getStateMachine().

Referenced by cl_lifecycle_node::CbCleanup::onStateOrthogonalAllocation().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onTransitionOnCleanupFailure()

template<typename T >
smacc2::SmaccSignalConnection cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnCleanupFailure ( void(T::* callback )(),
T * object )
inline

Definition at line 307 of file cp_lifecycle_event_monitor.hpp.

308 {
310 onTransitionOnCleanupFailure_, callback, object);
311 }

References smacc2::ISmaccStateMachine::createSignalConnection(), and smacc2::ISmaccComponent::getStateMachine().

Referenced by cl_lifecycle_node::CbCleanup::onStateOrthogonalAllocation().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onTransitionOnCleanupSuccess()

template<typename T >
smacc2::SmaccSignalConnection cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnCleanupSuccess ( void(T::* callback )(),
T * object )
inline

Definition at line 300 of file cp_lifecycle_event_monitor.hpp.

301 {
303 onTransitionOnCleanupSuccess_, callback, object);
304 }

References smacc2::ISmaccStateMachine::createSignalConnection(), and smacc2::ISmaccComponent::getStateMachine().

Referenced by cl_lifecycle_node::CbCleanup::onStateOrthogonalAllocation().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onTransitionOnConfigureError()

template<typename T >
smacc2::SmaccSignalConnection cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnConfigureError ( void(T::* callback )(),
T * object )
inline

Definition at line 251 of file cp_lifecycle_event_monitor.hpp.

252 {
254 onTransitionOnConfigureError_, callback, object);
255 }

References smacc2::ISmaccStateMachine::createSignalConnection(), and smacc2::ISmaccComponent::getStateMachine().

Referenced by cl_lifecycle_node::CbConfigure::onStateOrthogonalAllocation().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onTransitionOnConfigureFailure()

template<typename T >
smacc2::SmaccSignalConnection cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnConfigureFailure ( void(T::* callback )(),
T * object )
inline

Definition at line 244 of file cp_lifecycle_event_monitor.hpp.

245 {
247 onTransitionOnConfigureFailure_, callback, object);
248 }

References smacc2::ISmaccStateMachine::createSignalConnection(), and smacc2::ISmaccComponent::getStateMachine().

Referenced by cl_lifecycle_node::CbConfigure::onStateOrthogonalAllocation().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onTransitionOnConfigureSuccess()

template<typename T >
smacc2::SmaccSignalConnection cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnConfigureSuccess ( void(T::* callback )(),
T * object )
inline

Definition at line 237 of file cp_lifecycle_event_monitor.hpp.

238 {
240 onTransitionOnConfigureSuccess_, callback, object);
241 }

References smacc2::ISmaccStateMachine::createSignalConnection(), and smacc2::ISmaccComponent::getStateMachine().

Referenced by cl_lifecycle_node::CbConfigure::onStateOrthogonalAllocation().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onTransitionOnDeactivateError()

template<typename T >
smacc2::SmaccSignalConnection cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnDeactivateError ( void(T::* callback )(),
T * object )
inline

Definition at line 293 of file cp_lifecycle_event_monitor.hpp.

294 {
296 onTransitionOnDeactivateError_, callback, object);
297 }

References smacc2::ISmaccStateMachine::createSignalConnection(), and smacc2::ISmaccComponent::getStateMachine().

Referenced by cl_lifecycle_node::CbDeactivate::onStateOrthogonalAllocation(), and cl_lifecycle_node::CbDeactivateOnExit::onStateOrthogonalAllocation().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onTransitionOnDeactivateFailure()

template<typename T >
smacc2::SmaccSignalConnection cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnDeactivateFailure ( void(T::* callback )(),
T * object )
inline

Definition at line 286 of file cp_lifecycle_event_monitor.hpp.

287 {
289 onTransitionOnDeactivateFailure_, callback, object);
290 }

References smacc2::ISmaccStateMachine::createSignalConnection(), and smacc2::ISmaccComponent::getStateMachine().

Referenced by cl_lifecycle_node::CbDeactivate::onStateOrthogonalAllocation(), and cl_lifecycle_node::CbDeactivateOnExit::onStateOrthogonalAllocation().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onTransitionOnDeactivateSuccess()

template<typename T >
smacc2::SmaccSignalConnection cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnDeactivateSuccess ( void(T::* callback )(),
T * object )
inline

Definition at line 279 of file cp_lifecycle_event_monitor.hpp.

280 {
282 onTransitionOnDeactivateSuccess_, callback, object);
283 }

References smacc2::ISmaccStateMachine::createSignalConnection(), and smacc2::ISmaccComponent::getStateMachine().

Referenced by cl_lifecycle_node::CbDeactivate::onStateOrthogonalAllocation(), and cl_lifecycle_node::CbDeactivateOnExit::onStateOrthogonalAllocation().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onTransitionOnErrorError()

template<typename T >
smacc2::SmaccSignalConnection cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnErrorError ( void(T::* callback )(),
T * object )
inline

Definition at line 379 of file cp_lifecycle_event_monitor.hpp.

380 {
382 onTransitionOnErrorError_, callback, object);
383 }

References smacc2::ISmaccStateMachine::createSignalConnection(), and smacc2::ISmaccComponent::getStateMachine().

Here is the call graph for this function:

◆ onTransitionOnErrorFailure()

template<typename T >
smacc2::SmaccSignalConnection cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnErrorFailure ( void(T::* callback )(),
T * object )
inline

Definition at line 372 of file cp_lifecycle_event_monitor.hpp.

373 {
375 onTransitionOnErrorFailure_, callback, object);
376 }

References smacc2::ISmaccStateMachine::createSignalConnection(), and smacc2::ISmaccComponent::getStateMachine().

Here is the call graph for this function:

◆ onTransitionOnErrorSuccess()

template<typename T >
smacc2::SmaccSignalConnection cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnErrorSuccess ( void(T::* callback )(),
T * object )
inline

Definition at line 365 of file cp_lifecycle_event_monitor.hpp.

366 {
368 onTransitionOnErrorSuccess_, callback, object);
369 }

References smacc2::ISmaccStateMachine::createSignalConnection(), and smacc2::ISmaccComponent::getStateMachine().

Here is the call graph for this function:

◆ onTransitionOnShutdownError()

template<typename T >
smacc2::SmaccSignalConnection cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnShutdownError ( void(T::* callback )(),
T * object )
inline

Definition at line 335 of file cp_lifecycle_event_monitor.hpp.

336 {
338 onTransitionOnShutdownError_, callback, object);
339 }

References smacc2::ISmaccStateMachine::createSignalConnection(), and smacc2::ISmaccComponent::getStateMachine().

Referenced by cl_lifecycle_node::CbShutdown::onStateOrthogonalAllocation().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onTransitionOnShutdownFailure()

template<typename T >
smacc2::SmaccSignalConnection cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnShutdownFailure ( void(T::* callback )(),
T * object )
inline

Definition at line 328 of file cp_lifecycle_event_monitor.hpp.

329 {
331 onTransitionOnShutdownFailure_, callback, object);
332 }

References smacc2::ISmaccStateMachine::createSignalConnection(), and smacc2::ISmaccComponent::getStateMachine().

Referenced by cl_lifecycle_node::CbShutdown::onStateOrthogonalAllocation().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onTransitionOnShutdownSuccess()

template<typename T >
smacc2::SmaccSignalConnection cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnShutdownSuccess ( void(T::* callback )(),
T * object )
inline

Definition at line 321 of file cp_lifecycle_event_monitor.hpp.

322 {
324 onTransitionOnShutdownSuccess_, callback, object);
325 }

References smacc2::ISmaccStateMachine::createSignalConnection(), and smacc2::ISmaccComponent::getStateMachine().

Referenced by cl_lifecycle_node::CbShutdown::onStateOrthogonalAllocation().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onTransitionUnconfiguredShutdown()

template<typename T >
smacc2::SmaccSignalConnection cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionUnconfiguredShutdown ( void(T::* callback )(),
T * object )
inline

Definition at line 210 of file cp_lifecycle_event_monitor.hpp.

211 {
213 onTransitionUnconfiguredShutdown_, callback, object);
214 }

References smacc2::ISmaccStateMachine::createSignalConnection(), and smacc2::ISmaccComponent::getStateMachine().

Here is the call graph for this function:

◆ setOwner()

void cl_lifecycle_node::CpLifecycleEventMonitor::setOwner ( smacc2::ISmaccClient * owner,
smacc2::ISmaccStateMachine * stateMachine )
inline

Set the owner client and state machine for this component.

Parameters
ownerPointer to the owning client
stateMachinePointer to the state machine

Definition at line 117 of file cp_lifecycle_event_monitor.hpp.

118 {
119 owner_ = owner;
120 stateMachine_ = stateMachine;
121 }
ISmaccClient * owner_
Definition component.hpp:96
ISmaccStateMachine * stateMachine_
Definition component.hpp:94

References smacc2::ISmaccComponent::owner_, and smacc2::ISmaccComponent::stateMachine_.

Member Data Documentation

◆ eventMutex_

std::mutex cl_lifecycle_node::CpLifecycleEventMonitor::eventMutex_
mutableprivate

Definition at line 486 of file cp_lifecycle_event_monitor.hpp.

Referenced by getLastTransitionEvent(), and onTransitionEvent().

◆ lastTransitionEvent_

lifecycle_msgs::msg::TransitionEvent::SharedPtr cl_lifecycle_node::CpLifecycleEventMonitor::lastTransitionEvent_
private

Definition at line 485 of file cp_lifecycle_event_monitor.hpp.

Referenced by getLastTransitionEvent(), and onTransitionEvent().

◆ nodeName_

std::string cl_lifecycle_node::CpLifecycleEventMonitor::nodeName_
private

Definition at line 483 of file cp_lifecycle_event_monitor.hpp.

Referenced by onInitialize().

◆ onTransitionActivate_

smacc2::SmaccSignal<void()> cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionActivate_

Definition at line 127 of file cp_lifecycle_event_monitor.hpp.

Referenced by onTransitionEvent().

◆ onTransitionActiveShutdown_

smacc2::SmaccSignal<void()> cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionActiveShutdown_

Definition at line 132 of file cp_lifecycle_event_monitor.hpp.

Referenced by onTransitionEvent().

◆ onTransitionCleanup_

smacc2::SmaccSignal<void()> cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionCleanup_

Definition at line 129 of file cp_lifecycle_event_monitor.hpp.

Referenced by onTransitionEvent().

◆ onTransitionConfigure_

smacc2::SmaccSignal<void()> cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionConfigure_

Definition at line 126 of file cp_lifecycle_event_monitor.hpp.

Referenced by onTransitionEvent().

◆ onTransitionCreate_

smacc2::SmaccSignal<void()> cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionCreate_

Definition at line 125 of file cp_lifecycle_event_monitor.hpp.

◆ onTransitionDeactivate_

smacc2::SmaccSignal<void()> cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionDeactivate_

Definition at line 128 of file cp_lifecycle_event_monitor.hpp.

Referenced by onTransitionEvent().

◆ onTransitionDestroy_

smacc2::SmaccSignal<void()> cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionDestroy_

Definition at line 133 of file cp_lifecycle_event_monitor.hpp.

Referenced by onTransitionEvent().

◆ onTransitionInactiveShutdown_

smacc2::SmaccSignal<void()> cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionInactiveShutdown_

Definition at line 131 of file cp_lifecycle_event_monitor.hpp.

Referenced by onTransitionEvent().

◆ onTransitionOnActivateError_

smacc2::SmaccSignal<void()> cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnActivateError_

Definition at line 143 of file cp_lifecycle_event_monitor.hpp.

Referenced by onTransitionEvent().

◆ onTransitionOnActivateFailure_

smacc2::SmaccSignal<void()> cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnActivateFailure_

Definition at line 142 of file cp_lifecycle_event_monitor.hpp.

Referenced by onTransitionEvent().

◆ onTransitionOnActivateSuccess_

smacc2::SmaccSignal<void()> cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnActivateSuccess_

Definition at line 141 of file cp_lifecycle_event_monitor.hpp.

Referenced by onTransitionEvent().

◆ onTransitionOnActiveShutdownError_

smacc2::SmaccSignal<void()> cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnActiveShutdownError_

Definition at line 163 of file cp_lifecycle_event_monitor.hpp.

◆ onTransitionOnActiveShutdownFailure_

smacc2::SmaccSignal<void()> cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnActiveShutdownFailure_

Definition at line 162 of file cp_lifecycle_event_monitor.hpp.

◆ onTransitionOnActiveShutdownSuccess_

smacc2::SmaccSignal<void()> cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnActiveShutdownSuccess_

Definition at line 161 of file cp_lifecycle_event_monitor.hpp.

◆ onTransitionOnCleanupError_

smacc2::SmaccSignal<void()> cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnCleanupError_

Definition at line 153 of file cp_lifecycle_event_monitor.hpp.

Referenced by onTransitionEvent().

◆ onTransitionOnCleanupFailure_

smacc2::SmaccSignal<void()> cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnCleanupFailure_

Definition at line 152 of file cp_lifecycle_event_monitor.hpp.

◆ onTransitionOnCleanupSuccess_

smacc2::SmaccSignal<void()> cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnCleanupSuccess_

Definition at line 151 of file cp_lifecycle_event_monitor.hpp.

Referenced by onTransitionEvent().

◆ onTransitionOnConfigureError_

smacc2::SmaccSignal<void()> cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnConfigureError_

Definition at line 138 of file cp_lifecycle_event_monitor.hpp.

Referenced by onTransitionEvent().

◆ onTransitionOnConfigureFailure_

smacc2::SmaccSignal<void()> cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnConfigureFailure_

Definition at line 137 of file cp_lifecycle_event_monitor.hpp.

Referenced by onTransitionEvent().

◆ onTransitionOnConfigureSuccess_

smacc2::SmaccSignal<void()> cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnConfigureSuccess_

Definition at line 136 of file cp_lifecycle_event_monitor.hpp.

Referenced by onTransitionEvent().

◆ onTransitionOnDeactivateError_

smacc2::SmaccSignal<void()> cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnDeactivateError_

Definition at line 148 of file cp_lifecycle_event_monitor.hpp.

Referenced by onTransitionEvent().

◆ onTransitionOnDeactivateFailure_

smacc2::SmaccSignal<void()> cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnDeactivateFailure_

Definition at line 147 of file cp_lifecycle_event_monitor.hpp.

◆ onTransitionOnDeactivateSuccess_

smacc2::SmaccSignal<void()> cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnDeactivateSuccess_

Definition at line 146 of file cp_lifecycle_event_monitor.hpp.

Referenced by onTransitionEvent().

◆ onTransitionOnErrorError_

smacc2::SmaccSignal<void()> cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnErrorError_

Definition at line 168 of file cp_lifecycle_event_monitor.hpp.

◆ onTransitionOnErrorFailure_

smacc2::SmaccSignal<void()> cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnErrorFailure_

Definition at line 167 of file cp_lifecycle_event_monitor.hpp.

Referenced by onTransitionEvent().

◆ onTransitionOnErrorSuccess_

smacc2::SmaccSignal<void()> cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnErrorSuccess_

Definition at line 166 of file cp_lifecycle_event_monitor.hpp.

Referenced by onTransitionEvent().

◆ onTransitionOnShutdownError_

smacc2::SmaccSignal<void()> cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnShutdownError_

Definition at line 158 of file cp_lifecycle_event_monitor.hpp.

Referenced by onTransitionEvent().

◆ onTransitionOnShutdownFailure_

smacc2::SmaccSignal<void()> cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnShutdownFailure_

Definition at line 157 of file cp_lifecycle_event_monitor.hpp.

◆ onTransitionOnShutdownSuccess_

smacc2::SmaccSignal<void()> cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnShutdownSuccess_

Definition at line 156 of file cp_lifecycle_event_monitor.hpp.

Referenced by onTransitionEvent().

◆ onTransitionUnconfiguredShutdown_

smacc2::SmaccSignal<void()> cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionUnconfiguredShutdown_

Definition at line 130 of file cp_lifecycle_event_monitor.hpp.

Referenced by onTransitionEvent().

◆ postEventActivate_

std::function<void()> cl_lifecycle_node::CpLifecycleEventMonitor::postEventActivate_
private

◆ postEventActiveShutdown_

std::function<void()> cl_lifecycle_node::CpLifecycleEventMonitor::postEventActiveShutdown_
private

◆ postEventCleanup_

std::function<void()> cl_lifecycle_node::CpLifecycleEventMonitor::postEventCleanup_
private

◆ postEventConfigure_

std::function<void()> cl_lifecycle_node::CpLifecycleEventMonitor::postEventConfigure_
private

◆ postEventDeactivate_

std::function<void()> cl_lifecycle_node::CpLifecycleEventMonitor::postEventDeactivate_
private

◆ postEventDestroy_

std::function<void()> cl_lifecycle_node::CpLifecycleEventMonitor::postEventDestroy_
private

◆ postEventInactiveShutdown_

std::function<void()> cl_lifecycle_node::CpLifecycleEventMonitor::postEventInactiveShutdown_
private

◆ postEventOnActivateError_

std::function<void()> cl_lifecycle_node::CpLifecycleEventMonitor::postEventOnActivateError_
private

◆ postEventOnActivateFailure_

std::function<void()> cl_lifecycle_node::CpLifecycleEventMonitor::postEventOnActivateFailure_
private

◆ postEventOnActivateSuccess_

std::function<void()> cl_lifecycle_node::CpLifecycleEventMonitor::postEventOnActivateSuccess_
private

◆ postEventOnCleanupError_

std::function<void()> cl_lifecycle_node::CpLifecycleEventMonitor::postEventOnCleanupError_
private

◆ postEventOnCleanupFailure_

std::function<void()> cl_lifecycle_node::CpLifecycleEventMonitor::postEventOnCleanupFailure_
private

Definition at line 517 of file cp_lifecycle_event_monitor.hpp.

Referenced by onStateOrthogonalAllocation().

◆ postEventOnCleanupSuccess_

std::function<void()> cl_lifecycle_node::CpLifecycleEventMonitor::postEventOnCleanupSuccess_
private

◆ postEventOnConfigureError_

std::function<void()> cl_lifecycle_node::CpLifecycleEventMonitor::postEventOnConfigureError_
private

◆ postEventOnConfigureFailure_

std::function<void()> cl_lifecycle_node::CpLifecycleEventMonitor::postEventOnConfigureFailure_
private

◆ postEventOnConfigureSuccess_

std::function<void()> cl_lifecycle_node::CpLifecycleEventMonitor::postEventOnConfigureSuccess_
private

◆ postEventOnDeactivateError_

std::function<void()> cl_lifecycle_node::CpLifecycleEventMonitor::postEventOnDeactivateError_
private

◆ postEventOnDeactivateFailure_

std::function<void()> cl_lifecycle_node::CpLifecycleEventMonitor::postEventOnDeactivateFailure_
private

Definition at line 513 of file cp_lifecycle_event_monitor.hpp.

Referenced by onStateOrthogonalAllocation().

◆ postEventOnDeactivateSuccess_

std::function<void()> cl_lifecycle_node::CpLifecycleEventMonitor::postEventOnDeactivateSuccess_
private

◆ postEventOnErrorFailure_

std::function<void()> cl_lifecycle_node::CpLifecycleEventMonitor::postEventOnErrorFailure_
private

◆ postEventOnErrorSuccess_

std::function<void()> cl_lifecycle_node::CpLifecycleEventMonitor::postEventOnErrorSuccess_
private

◆ postEventOnShutdownError_

std::function<void()> cl_lifecycle_node::CpLifecycleEventMonitor::postEventOnShutdownError_
private

◆ postEventOnShutdownFailure_

std::function<void()> cl_lifecycle_node::CpLifecycleEventMonitor::postEventOnShutdownFailure_
private

Definition at line 521 of file cp_lifecycle_event_monitor.hpp.

Referenced by onStateOrthogonalAllocation().

◆ postEventOnShutdownSuccess_

std::function<void()> cl_lifecycle_node::CpLifecycleEventMonitor::postEventOnShutdownSuccess_
private

◆ postEventUnconfiguredShutdown_

std::function<void()> cl_lifecycle_node::CpLifecycleEventMonitor::postEventUnconfiguredShutdown_
private

◆ subscription_

rclcpp::Subscription<lifecycle_msgs::msg::TransitionEvent>::SharedPtr cl_lifecycle_node::CpLifecycleEventMonitor::subscription_
private

Definition at line 484 of file cp_lifecycle_event_monitor.hpp.

Referenced by onInitialize().


The documentation for this class was generated from the following files: