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.
 
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 ()
 
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 (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 (TArgs... targs)
 
template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs>
SmaccComponentType * createSiblingNamedComponent (std::string name, TArgs... targs)
 
rclcpp::Node::SharedPtr getNode ()
 
rclcpp::Logger getLogger () const
 
ISmaccStateMachinegetStateMachine ()
 
- Protected Attributes inherited from smacc2::ISmaccComponent
ISmaccStateMachinestateMachine_
 
ISmaccClientowner_
 

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 98 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 183 of file cp_lifecycle_event_monitor.hpp.

184 {
185 // Set up event posting lambdas with correct template parameters
186 // Component is the event source (TSourceObject = CpLifecycleEventMonitor)
187
188 postEventConfigure_ = [this]()
190
191 postEventActivate_ = [this]()
193
194 postEventDeactivate_ = [this]()
196
197 postEventCleanup_ = [this]()
199
202
205
206 postEventActiveShutdown_ = [this]()
208
209 postEventDestroy_ = [this]()
211
214
217
220
223
226
229
232
235
238
241
244
245 postEventOnCleanupError_ = [this]()
247
250
253
256
257 postEventOnErrorSuccess_ = [this]()
259
260 postEventOnErrorFailure_ = [this]()
262 }

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:

◆ 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:

◆ 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 114 of file cp_lifecycle_event_monitor.hpp.

115 {
116 owner_ = owner;
117 stateMachine_ = stateMachine;
118 }
ISmaccClient * owner_
Definition component.hpp:88
ISmaccStateMachine * stateMachine_
Definition component.hpp:86

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

Member Data Documentation

◆ eventMutex_

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

Definition at line 268 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 267 of file cp_lifecycle_event_monitor.hpp.

Referenced by getLastTransitionEvent(), and onTransitionEvent().

◆ nodeName_

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

Definition at line 265 of file cp_lifecycle_event_monitor.hpp.

Referenced by onInitialize().

◆ onTransitionActivate_

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

Definition at line 124 of file cp_lifecycle_event_monitor.hpp.

Referenced by onTransitionEvent().

◆ onTransitionActiveShutdown_

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

Definition at line 129 of file cp_lifecycle_event_monitor.hpp.

Referenced by onTransitionEvent().

◆ onTransitionCleanup_

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

Definition at line 126 of file cp_lifecycle_event_monitor.hpp.

Referenced by onTransitionEvent().

◆ onTransitionConfigure_

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

Definition at line 123 of file cp_lifecycle_event_monitor.hpp.

Referenced by onTransitionEvent().

◆ onTransitionCreate_

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

Definition at line 122 of file cp_lifecycle_event_monitor.hpp.

◆ onTransitionDeactivate_

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

Definition at line 125 of file cp_lifecycle_event_monitor.hpp.

Referenced by onTransitionEvent().

◆ onTransitionDestroy_

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

Definition at line 130 of file cp_lifecycle_event_monitor.hpp.

Referenced by onTransitionEvent().

◆ onTransitionInactiveShutdown_

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

Definition at line 128 of file cp_lifecycle_event_monitor.hpp.

Referenced by onTransitionEvent().

◆ onTransitionOnActivateError_

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

◆ onTransitionOnActivateFailure_

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

◆ onTransitionOnActivateSuccess_

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

◆ onTransitionOnActiveShutdownError_

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

Definition at line 160 of file cp_lifecycle_event_monitor.hpp.

◆ onTransitionOnActiveShutdownFailure_

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

Definition at line 159 of file cp_lifecycle_event_monitor.hpp.

◆ onTransitionOnActiveShutdownSuccess_

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

Definition at line 158 of file cp_lifecycle_event_monitor.hpp.

◆ onTransitionOnCleanupError_

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

◆ onTransitionOnCleanupFailure_

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

◆ onTransitionOnCleanupSuccess_

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

◆ onTransitionOnConfigureError_

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

◆ onTransitionOnConfigureFailure_

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

◆ onTransitionOnConfigureSuccess_

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

◆ onTransitionOnDeactivateError_

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

◆ onTransitionOnDeactivateFailure_

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

◆ onTransitionOnDeactivateSuccess_

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

◆ onTransitionOnErrorError_

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

Definition at line 165 of file cp_lifecycle_event_monitor.hpp.

◆ onTransitionOnErrorFailure_

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

Definition at line 164 of file cp_lifecycle_event_monitor.hpp.

Referenced by onTransitionEvent().

◆ onTransitionOnErrorSuccess_

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

Definition at line 163 of file cp_lifecycle_event_monitor.hpp.

Referenced by onTransitionEvent().

◆ onTransitionOnShutdownError_

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

◆ onTransitionOnShutdownFailure_

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

◆ onTransitionOnShutdownSuccess_

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

◆ onTransitionUnconfiguredShutdown_

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

Definition at line 127 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 299 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 295 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 303 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 266 of file cp_lifecycle_event_monitor.hpp.

Referenced by onInitialize().


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