SMACC2
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Private Attributes | List of all members
cl_lifecyclenode::ClLifecycleNode Class Reference

#include <lifecyclenode_client.hpp>

Inheritance diagram for cl_lifecyclenode::ClLifecycleNode:
Inheritance graph
Collaboration diagram for cl_lifecyclenode::ClLifecycleNode:
Collaboration graph

Public Member Functions

 ClLifecycleNode (std::string nodeName)
 
virtual ~ClLifecycleNode ()
 
void onInitialize () override
 
void changeState (uint8_t state)
 
void configure ()
 
void activate ()
 
void deactivate ()
 
void cleanup ()
 
void shutdown ()
 
void destroy ()
 
virtual void onTransitionEvent (const lifecycle_msgs::msg::TransitionEvent::SharedPtr msg)
 
template<typename TOrthogonal , typename TSourceObject >
void onOrthogonalAllocation ()
 
- Public Member Functions inherited from smacc2::ISmaccClient
 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 ()
 
ISmaccStateMachinegetStateMachine ()
 
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 ()
 

Public Attributes

boost::signals2::signal< void(const lifecycle_msgs::msg::TransitionEvent::SharedPtr)> onTransitionEventSignal
 
boost::signals2::signal< void()> onTransitionCreate_
 
boost::signals2::signal< void()> onTransitionConfigure_
 
boost::signals2::signal< void()> onTransitionCleanup_
 
boost::signals2::signal< void()> onTransitionActivate_
 
boost::signals2::signal< void()> onTransitionDeactivate_
 
boost::signals2::signal< void()> onTransitionUnconfiguredShutdown_
 
boost::signals2::signal< void()> onTransitionInactiveShutdown_
 
boost::signals2::signal< void()> onTransitionActiveShutdown_
 
boost::signals2::signal< void()> onTransitionDestroy_
 
boost::signals2::signal< void()> onTransitionOnConfigureSuccess_
 
boost::signals2::signal< void()> onTransitionOnConfigureFailure_
 
boost::signals2::signal< void()> onTransitionOnConfigureError_
 
boost::signals2::signal< void()> onTransitionOnActivateSuccess_
 
boost::signals2::signal< void()> onTransitionOnActivateFailure_
 
boost::signals2::signal< void()> onTransitionOnActivateError_
 
boost::signals2::signal< void()> onTransitionOnDeactivateSuccess_
 
boost::signals2::signal< void()> onTransitionOnDeactivateFailure_
 
boost::signals2::signal< void()> onTransitionOnDeactivateError_
 
boost::signals2::signal< void()> onTransitionOnCleanupSuccess_
 
boost::signals2::signal< void()> onTransitionOnCleanupFailure_
 
boost::signals2::signal< void()> onTransitionOnCleanupError_
 
boost::signals2::signal< void()> onTransitionOnShutdownSuccess_
 
boost::signals2::signal< void()> onTransitionOnShutdownFailure_
 
boost::signals2::signal< void()> onTransitionOnShutdownError_
 
boost::signals2::signal< void()> onTransitionOnActiveShutdownSuccess_
 
boost::signals2::signal< void()> onTransitionOnActiveShutdownFailure_
 
boost::signals2::signal< void()> onTransitionOnActiveShutdownError_
 
boost::signals2::signal< void()> onTransitionOnErrorSuccess_
 
boost::signals2::signal< void()> onTransitionOnErrorFailure_
 
boost::signals2::signal< void()> onTransitionOnErrorError_
 

Private Attributes

rclcpp::Client< lifecycle_msgs::srv::GetState >::SharedPtr client_get_state_
 
rclcpp::Client< lifecycle_msgs::srv::ChangeState >::SharedPtr client_change_state_
 
rclcpp::Subscription< lifecycle_msgs::msg::TransitionEvent >::SharedPtr subscription_transition_event_
 
std::string nodeName_
 
const std::string node_get_state_topic = "/get_state"
 
const std::string node_change_state_topic = "/change_state"
 
const std::string node_transition_event_topic = "/transition_event"
 
lifecycle_msgs::msg::TransitionEvent::SharedPtr lastTransitionEvent_
 
std::function< void()> postOnTransitionCreate_
 
std::function< void()> postOnTransitionConfigure_
 
std::function< void()> postOnTransitionCleanup_
 
std::function< void()> postOnTransitionActivate_
 
std::function< void()> postOnTransitionDeactivate_
 
std::function< void()> postOnTransitionUnconfiguredShutdown_
 
std::function< void()> postOnTransitionInactiveShutdown_
 
std::function< void()> postOnTransitionActiveShutdown_
 
std::function< void()> postOnTransitionDestroy_
 
std::function< void()> postOnTransitionOnConfigureSuccess_
 
std::function< void()> postOnTransitionOnConfigureFailure_
 
std::function< void()> postOnTransitionOnConfigureError_
 
std::function< void()> postOnTransitionOnActivateSuccess_
 
std::function< void()> postOnTransitionOnActivateFailure_
 
std::function< void()> postOnTransitionOnActivateError_
 
std::function< void()> postOnTransitionOnDeactivateSuccess_
 
std::function< void()> postOnTransitionOnDeactivateFailure_
 
std::function< void()> postOnTransitionOnDeactivateError_
 
std::function< void()> postOnTransitionOnCleanupSuccess_
 
std::function< void()> postOnTransitionOnCleanupFailure_
 
std::function< void()> postOnTransitionOnCleanupError_
 
std::function< void()> postOnTransitionOnShutdownSuccess_
 
std::function< void()> postOnTransitionOnShutdownFailure_
 
std::function< void()> postOnTransitionOnShutdownError_
 
std::function< void()> postOnTransitionOnErrorSuccess_
 
std::function< void()> postOnTransitionOnErrorFailure_
 
std::function< void()> postOnTransitionOnErrorError_
 

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 ()
 
- Protected Attributes inherited from smacc2::ISmaccClient
std::map< ComponentKey, std::shared_ptr< smacc2::ISmaccComponent > > components_
 

Detailed Description

Definition at line 192 of file lifecyclenode_client.hpp.

Constructor & Destructor Documentation

◆ ClLifecycleNode()

cl_lifecyclenode::ClLifecycleNode::ClLifecycleNode ( std::string  nodeName)

Definition at line 25 of file lifecyclenode_client.cpp.

25: nodeName_(node_name) {}

◆ ~ClLifecycleNode()

cl_lifecyclenode::ClLifecycleNode::~ClLifecycleNode ( )
virtual

Definition at line 27 of file lifecyclenode_client.cpp.

27{}

Member Function Documentation

◆ activate()

void cl_lifecyclenode::ClLifecycleNode::activate ( )

Definition at line 50 of file lifecyclenode_client.cpp.

51{
52 changeState(lifecycle_msgs::msg::Transition::TRANSITION_ACTIVATE);
53}

References changeState().

Referenced by cl_lifecyclenode::CbActivate::onEntry().

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

◆ changeState()

void cl_lifecyclenode::ClLifecycleNode::changeState ( uint8_t  state)

Definition at line 42 of file lifecyclenode_client.cpp.

43{
44 auto request = std::make_shared<lifecycle_msgs::srv::ChangeState::Request>();
45 request->transition.id = state;
46 auto future = client_change_state_->async_send_request(request);
47 future.wait();
48}
rclcpp::Client< lifecycle_msgs::srv::ChangeState >::SharedPtr client_change_state_

References client_change_state_.

Referenced by activate(), cleanup(), configure(), deactivate(), and shutdown().

Here is the caller graph for this function:

◆ cleanup()

void cl_lifecyclenode::ClLifecycleNode::cleanup ( )

Definition at line 65 of file lifecyclenode_client.cpp.

66{
67 changeState(lifecycle_msgs::msg::Transition::TRANSITION_CLEANUP);
68}

References changeState().

Referenced by cl_lifecyclenode::CbCleanup::onEntry().

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

◆ configure()

void cl_lifecyclenode::ClLifecycleNode::configure ( )

Definition at line 60 of file lifecyclenode_client.cpp.

61{
62 changeState(lifecycle_msgs::msg::Transition::TRANSITION_CONFIGURE);
63}

References changeState().

Referenced by cl_lifecyclenode::CbConfigure::onEntry().

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

◆ deactivate()

void cl_lifecyclenode::ClLifecycleNode::deactivate ( )

Definition at line 55 of file lifecyclenode_client.cpp.

56{
57 changeState(lifecycle_msgs::msg::Transition::TRANSITION_DEACTIVATE);
58}

References changeState().

Referenced by cl_lifecyclenode::CbDeactivate::onEntry().

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

◆ destroy()

void cl_lifecyclenode::ClLifecycleNode::destroy ( )

Referenced by cl_lifecyclenode::CbDestroy::onEntry().

Here is the caller graph for this function:

◆ onInitialize()

void cl_lifecyclenode::ClLifecycleNode::onInitialize ( )
overridevirtual

Reimplemented from smacc2::ISmaccClient.

Definition at line 29 of file lifecyclenode_client.cpp.

30{
31 client_get_state_ = this->getNode()->create_client<lifecycle_msgs::srv::GetState>(
33 client_change_state_ = this->getNode()->create_client<lifecycle_msgs::srv::ChangeState>(
35
37 this->getNode() /* */->create_subscription<lifecycle_msgs::msg::TransitionEvent>(
39 std::bind(&ClLifecycleNode::onTransitionEvent, this, std::placeholders::_1));
40}
virtual void onTransitionEvent(const lifecycle_msgs::msg::TransitionEvent::SharedPtr msg)
rclcpp::Client< lifecycle_msgs::srv::GetState >::SharedPtr client_get_state_
rclcpp::Subscription< lifecycle_msgs::msg::TransitionEvent >::SharedPtr subscription_transition_event_
rclcpp::Node::SharedPtr getNode()
Definition: client.cpp:60

References client_change_state_, client_get_state_, smacc2::ISmaccClient::getNode(), node_change_state_topic, node_get_state_topic, node_transition_event_topic, nodeName_, onTransitionEvent(), and subscription_transition_event_.

Here is the call graph for this function:

◆ onOrthogonalAllocation()

template<typename TOrthogonal , typename TSourceObject >
void cl_lifecyclenode::ClLifecycleNode::onOrthogonalAllocation ( )
inline

Definition at line 269 of file lifecyclenode_client.hpp.

270 {
271 this->postOnTransitionCreate_ = [=]()
272 {
273 RCLCPP_INFO(this->getLogger(), "postOnTransitionCreate_");
274 this->onTransitionCreate_();
276 new EvTransitionCreate<TSourceObject, TOrthogonal>();
277 this->postEvent(ev);
278 };
279
280 this->postOnTransitionConfigure_ = [=]()
281 {
283 this->postEvent<EvTransitionConfigure<TSourceObject, TOrthogonal>>();
284 };
285
286 this->postOnTransitionActivate_ = [=]()
287 {
288 this->onTransitionActivate_();
289 this->postEvent<EvTransitionActivate<TSourceObject, TOrthogonal>>();
290 };
291
292 this->postOnTransitionDeactivate_ = [=]()
293 {
295 this->postEvent<EvTransitionDeactivate<TSourceObject, TOrthogonal>>();
296 };
297
299 {
301 this->postEvent<EvTransitionUnconfiguredShutdown<TSourceObject, TOrthogonal>>();
302 };
303
305 {
307 this->postEvent<EvTransitionInactiveShutdown<TSourceObject, TOrthogonal>>();
308 };
309
311 {
313 this->postEvent<EvTransitionActiveShutdown<TSourceObject, TOrthogonal>>();
314 };
315
316 this->postOnTransitionDestroy_ = [=]()
317 {
318 this->onTransitionDestroy_();
319 this->postEvent<EvTransitionDestroy<TSourceObject, TOrthogonal>>();
320 };
321
323 {
325 this->postEvent<EvTransitionOnConfigureSuccess<TSourceObject, TOrthogonal>>();
326 };
327
329 {
331 this->postEvent<EvTransitionOnConfigureFailure<TSourceObject, TOrthogonal>>();
332 };
333
335 {
337 this->postEvent<EvTransitionOnConfigureError<TSourceObject, TOrthogonal>>();
338 };
339
341 {
343 this->postEvent<EvTransitionOnActivateSuccess<TSourceObject, TOrthogonal>>();
344 };
345
347 {
349 this->postEvent<EvTransitionOnActivateFailure<TSourceObject, TOrthogonal>>();
350 };
351
353 {
355 this->postEvent<EvTransitionOnActivateError<TSourceObject, TOrthogonal>>();
356 };
357
359 {
361 this->postEvent<EvTransitionOnDeactivateSuccess<TSourceObject, TOrthogonal>>();
362 };
363
365 {
367 this->postEvent<EvTransitionOnDeactivateFailure<TSourceObject, TOrthogonal>>();
368 };
369
371 {
373 this->postEvent<EvTransitionOnDeactivateError<TSourceObject, TOrthogonal>>();
374 };
375
376 this->postOnTransitionCleanup_ = [=]()
377 {
378 this->onTransitionCleanup_();
379 this->postEvent<EvTransitionCleanup<TSourceObject, TOrthogonal>>();
380 };
381
383 {
385 this->postEvent<EvTransitionOnCleanupSuccess<TSourceObject, TOrthogonal>>();
386 };
387
389 {
391 this->postEvent<EvTransitionOnCleanupFailure<TSourceObject, TOrthogonal>>();
392 };
393
395 {
397 this->postEvent<EvTransitionOnCleanupError<TSourceObject, TOrthogonal>>();
398 };
399
401 {
403 this->postEvent<EvTransitionOnShutdownSuccess<TSourceObject, TOrthogonal>>();
404 };
405
407 {
409 this->postEvent<EvTransitionOnShutdownFailure<TSourceObject, TOrthogonal>>();
410 };
411
413 {
415 this->postEvent<EvTransitionOnShutdownError<TSourceObject, TOrthogonal>>();
416 };
417
419 {
421 this->postEvent<EvTransitionOnErrorSuccess<TSourceObject, TOrthogonal>>();
422 };
423
425 {
427 this->postEvent<EvTransitionOnErrorFailure<TSourceObject, TOrthogonal>>();
428 };
429
431 {
433 this->postEvent<EvTransitionOnErrorError<TSourceObject, TOrthogonal>>();
434 };
435 }
std::function< void()> postOnTransitionActivate_
boost::signals2::signal< void()> onTransitionOnShutdownSuccess_
std::function< void()> postOnTransitionOnConfigureFailure_
boost::signals2::signal< void()> onTransitionOnErrorSuccess_
std::function< void()> postOnTransitionOnDeactivateFailure_
boost::signals2::signal< void()> onTransitionInactiveShutdown_
boost::signals2::signal< void()> onTransitionDeactivate_
boost::signals2::signal< void()> onTransitionUnconfiguredShutdown_
boost::signals2::signal< void()> onTransitionCreate_
boost::signals2::signal< void()> onTransitionOnDeactivateFailure_
boost::signals2::signal< void()> onTransitionOnShutdownError_
boost::signals2::signal< void()> onTransitionOnActivateSuccess_
boost::signals2::signal< void()> onTransitionOnDeactivateSuccess_
std::function< void()> postOnTransitionOnCleanupFailure_
boost::signals2::signal< void()> onTransitionActivate_
boost::signals2::signal< void()> onTransitionOnActivateError_
std::function< void()> postOnTransitionConfigure_
boost::signals2::signal< void()> onTransitionOnConfigureFailure_
boost::signals2::signal< void()> onTransitionOnErrorFailure_
std::function< void()> postOnTransitionUnconfiguredShutdown_
boost::signals2::signal< void()> onTransitionOnConfigureSuccess_
std::function< void()> postOnTransitionOnConfigureSuccess_
boost::signals2::signal< void()> onTransitionActiveShutdown_
boost::signals2::signal< void()> onTransitionOnErrorError_
std::function< void()> postOnTransitionOnErrorError_
boost::signals2::signal< void()> onTransitionDestroy_
std::function< void()> postOnTransitionOnErrorSuccess_
std::function< void()> postOnTransitionOnCleanupSuccess_
boost::signals2::signal< void()> onTransitionCleanup_
std::function< void()> postOnTransitionOnCleanupError_
std::function< void()> postOnTransitionInactiveShutdown_
std::function< void()> postOnTransitionCleanup_
std::function< void()> postOnTransitionOnShutdownError_
std::function< void()> postOnTransitionOnErrorFailure_
std::function< void()> postOnTransitionOnDeactivateSuccess_
std::function< void()> postOnTransitionDeactivate_
std::function< void()> postOnTransitionOnShutdownFailure_
std::function< void()> postOnTransitionOnConfigureError_
boost::signals2::signal< void()> onTransitionOnConfigureError_
boost::signals2::signal< void()> onTransitionOnActivateFailure_
std::function< void()> postOnTransitionOnActivateFailure_
std::function< void()> postOnTransitionOnShutdownSuccess_
boost::signals2::signal< void()> onTransitionOnCleanupSuccess_
boost::signals2::signal< void()> onTransitionOnDeactivateError_
std::function< void()> postOnTransitionDestroy_
boost::signals2::signal< void()> onTransitionOnShutdownFailure_
boost::signals2::signal< void()> onTransitionOnCleanupFailure_
std::function< void()> postOnTransitionCreate_
std::function< void()> postOnTransitionActiveShutdown_
boost::signals2::signal< void()> onTransitionConfigure_
std::function< void()> postOnTransitionOnActivateSuccess_
boost::signals2::signal< void()> onTransitionOnCleanupError_
std::function< void()> postOnTransitionOnDeactivateError_
std::function< void()> postOnTransitionOnActivateError_
rclcpp::Logger getLogger()

References smacc2::ISmaccClient::getLogger(), onTransitionActivate_, onTransitionActiveShutdown_, onTransitionCleanup_, onTransitionConfigure_, onTransitionCreate_, onTransitionDeactivate_, onTransitionDestroy_, onTransitionInactiveShutdown_, onTransitionOnActivateError_, onTransitionOnActivateFailure_, onTransitionOnActivateSuccess_, onTransitionOnCleanupError_, onTransitionOnCleanupFailure_, onTransitionOnCleanupSuccess_, onTransitionOnConfigureError_, onTransitionOnConfigureFailure_, onTransitionOnConfigureSuccess_, onTransitionOnDeactivateError_, onTransitionOnDeactivateFailure_, onTransitionOnDeactivateSuccess_, onTransitionOnErrorError_, onTransitionOnErrorFailure_, onTransitionOnErrorSuccess_, onTransitionOnShutdownError_, onTransitionOnShutdownFailure_, onTransitionOnShutdownSuccess_, onTransitionUnconfiguredShutdown_, smacc2::ISmaccClient::postEvent(), postOnTransitionActivate_, postOnTransitionActiveShutdown_, postOnTransitionCleanup_, postOnTransitionConfigure_, postOnTransitionCreate_, postOnTransitionDeactivate_, postOnTransitionDestroy_, postOnTransitionInactiveShutdown_, postOnTransitionOnActivateError_, postOnTransitionOnActivateFailure_, postOnTransitionOnActivateSuccess_, postOnTransitionOnCleanupError_, postOnTransitionOnCleanupFailure_, postOnTransitionOnCleanupSuccess_, postOnTransitionOnConfigureError_, postOnTransitionOnConfigureFailure_, postOnTransitionOnConfigureSuccess_, postOnTransitionOnDeactivateError_, postOnTransitionOnDeactivateFailure_, postOnTransitionOnDeactivateSuccess_, postOnTransitionOnErrorError_, postOnTransitionOnErrorFailure_, postOnTransitionOnErrorSuccess_, postOnTransitionOnShutdownError_, postOnTransitionOnShutdownFailure_, postOnTransitionOnShutdownSuccess_, and postOnTransitionUnconfiguredShutdown_.

Here is the call graph for this function:

◆ onTransitionEvent()

void cl_lifecyclenode::ClLifecycleNode::onTransitionEvent ( const lifecycle_msgs::msg::TransitionEvent::SharedPtr  msg)
virtual

Definition at line 75 of file lifecyclenode_client.cpp.

76{
77 RCLCPP_INFO(
78 this->getNode()->get_logger(), "[ClLifecycleNode] Transition event received: %d -> %d",
79 msg->start_state.id, msg->goal_state.id);
80
82 // switch (msg->transition.id)
83 // {
84 // case lifecycle_msgs::msg::Transition::TRANSITION_CREATE:
85 // if (msg->start_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_UNKNOWN &&
86 // msg->goal_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED)
87 // {
88 // RCLCPP_INFO(this->getNode()->get_logger(), "TRANSITION_CREATE");
89 // this->postOnTransitionCreate_();
90 // }
91 // // case lifecycle_msgs::msg::Transition::TRANSITION_CONFIGURE:
92 // else
93 if (
94 msg->start_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED &&
95 msg->goal_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_CONFIGURING)
96 {
97 RCLCPP_INFO(this->getNode()->get_logger(), "TRANSITION_CONFIGURE");
99 }
100 // case lifecycle_msgs::msg::Transition::TRANSITION_CLEANUP:
101 else if (
102 msg->start_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_INACTIVE &&
103 msg->goal_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_CLEANINGUP)
104 {
105 RCLCPP_INFO(this->getNode()->get_logger(), "TRANSITION_CLEANUP");
107 }
108 // case lifecycle_msgs::msg::Transition::TRANSITION_ACTIVATE:
109 else if (
110 msg->start_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_INACTIVE &&
111 msg->goal_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_ACTIVATING)
112 {
113 RCLCPP_INFO(this->getNode()->get_logger(), "TRANSITION_ACTIVATE");
115 }
116 // case lifecycle_msgs::msg::Transition::TRANSITION_DEACTIVATE:
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_DEACTIVATING)
120 {
121 RCLCPP_INFO(this->getNode()->get_logger(), "TRANSITION_DEACTIVATE");
123 }
124 // case lifecycle_msgs::msg::Transition::TRANSITION_UNCONFIGURED_SHUTDOWN:
125 else if (
126 msg->start_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED &&
127 msg->goal_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_SHUTTINGDOWN)
128 {
129 RCLCPP_INFO(this->getNode()->get_logger(), "TRANSITION_UNCONFIGURED_SHUTDOWN");
131 }
132 // case lifecycle_msgs::msg::Transition::TRANSITION_INACTIVE_SHUTDOWN:
133 else if (
134 msg->start_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_INACTIVE &&
135 msg->goal_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_SHUTTINGDOWN)
136 {
137 RCLCPP_INFO(this->getNode()->get_logger(), "TRANSITION_INACTIVE_SHUTDOWN");
139 }
140 // case lifecycle_msgs::msg::Transition::TRANSITION_ACTIVE_SHUTDOWN:
141 else if (
142 msg->start_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_ACTIVE &&
143 msg->goal_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_SHUTTINGDOWN)
144 {
145 RCLCPP_INFO(this->getNode()->get_logger(), "TRANSITION_ACTIVE_SHUTDOWN");
147 }
148 // case lifecycle_msgs::msg::Transition::TRANSITION_DESTROY:
149 else if (msg->start_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_FINALIZED)
150 // &&msg->goal_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_DESTROYING
151
152 {
153 RCLCPP_INFO(this->getNode()->get_logger(), "TRANSITION_DESTROY");
155 }
156
157 // case lifecycle_msgs::msg::Transition::TRANSITION_ON_CONFIGURE_SUCCESS:
158 else if (
159 msg->start_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_CONFIGURING &&
160 msg->goal_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_INACTIVE)
161 {
162 RCLCPP_INFO(this->getNode()->get_logger(), "TRANSITION_ON_CONFIGURE_SUCCESS");
164 }
165 // case lifecycle_msgs::msg::Transition::TRANSITION_ON_CONFIGURE_FAILURE:
166 else if (
167 msg->start_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_CONFIGURING &&
168 msg->goal_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED)
169 {
170 RCLCPP_INFO(this->getNode()->get_logger(), "TRANSITION_ON_CONFIGURE_FAILURE");
172 }
173 // case lifecycle_msgs::msg::Transition::TRANSITION_ON_CONFIGURE_ERROR:
174 if (
175 msg->start_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_CONFIGURING &&
176 msg->goal_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_ERRORPROCESSING)
177 {
178 RCLCPP_INFO(this->getNode()->get_logger(), "TRANSITION_ON_CONFIGURE_ERROR");
180 }
181
182 // case lifecycle_msgs::msg::Transition::TRANSITION_ON_CLEANUP_SUCCESS:
183 else if (
184 msg->start_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_CLEANINGUP &&
185 msg->goal_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED)
186 {
187 RCLCPP_INFO(this->getNode()->get_logger(), "TRANSITION_ON_CLEANUP_SUCCESS");
189 }
190 // case lifecycle_msgs::msg::Transition::TRANSITION_ON_CLEANUP_FAILURE:
191 // else if (msg->start_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_CLEANINGUP
192 // &&msg->goal_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_ERRORPROCESSING)
193 // {
194 // RCLCPP_INFO(this->getNode()->get_logger(), "TRANSITION_ON_CLEANUP_FAILURE");
195 // this->postOnTransitionOnCleanupFailure_();
196 // }
197 // case lifecycle_msgs::msg::Transition::TRANSITION_ON_CLEANUP_ERROR:
198 else if (
199 msg->start_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_CLEANINGUP &&
200 msg->goal_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_ERRORPROCESSING)
201 {
202 RCLCPP_INFO(this->getNode()->get_logger(), "TRANSITION_ON_CLEANUP_ERROR");
204 }
205
206 // case lifecycle_msgs::msg::Transition::TRANSITION_ON_ACTIVATE_SUCCESS:
207 else if (
208 msg->start_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_ACTIVATING &&
209 msg->goal_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_ACTIVE)
210 {
211 RCLCPP_INFO(this->getNode()->get_logger(), "TRANSITION_ON_ACTIVATE_SUCCESS");
213 }
214 // case lifecycle_msgs::msg::Transition::TRANSITION_ON_ACTIVATE_FAILURE:
215 else if (
216 msg->start_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_ACTIVATING &&
217 msg->goal_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_INACTIVE)
218 {
219 RCLCPP_INFO(this->getNode()->get_logger(), "TRANSITION_ON_ACTIVATE_FAILURE");
221 }
222 // case lifecycle_msgs::msg::Transition::TRANSITION_ON_ACTIVATE_ERROR:
223 else if (
224 msg->start_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_ACTIVATING &&
225 msg->goal_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_ERRORPROCESSING)
226 {
227 RCLCPP_INFO(this->getNode()->get_logger(), "TRANSITION_ON_ACTIVATE_ERROR");
229 }
230
231 // case lifecycle_msgs::msg::Transition::TRANSITION_ON_DEACTIVATE_SUCCESS:
232 else if (
233 msg->start_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_DEACTIVATING &&
234 msg->goal_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_INACTIVE)
235 {
236 RCLCPP_INFO(this->getNode()->get_logger(), "TRANSITION_ON_DEACTIVATE_SUCCESS");
238 }
239 // case lifecycle_msgs::msg::Transition::TRANSITION_ON_DEACTIVATE_FAILURE:
240 // else if (msg->start_state.id == &&msg->goal_state.id ==)
241 // {
242 // RCLCPP_INFO(this->getNode()->get_logger(), "TRANSITION_ON_DEACTIVATE_FAILURE");
243 // this->postOnTransitionOnDeactivateFailure_();
244 // }
245 // case lifecycle_msgs::msg::Transition::TRANSITION_ON_DEACTIVATE_ERROR:
246 else if (
247 msg->start_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_DEACTIVATING &&
248 msg->goal_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_ERRORPROCESSING)
249 {
250 RCLCPP_INFO(this->getNode()->get_logger(), "TRANSITION_ON_DEACTIVATE_ERROR");
252 }
253
254 // case lifecycle_msgs::msg::Transition::TRANSITION_ON_SHUTDOWN_SUCCESS:
255 else if (
256 msg->start_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_SHUTTINGDOWN &&
257 msg->goal_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_FINALIZED)
258 {
259 RCLCPP_INFO(this->getNode()->get_logger(), "TRANSITION_ON_SHUTDOWN_SUCCESS");
261 }
262 // case lifecycle_msgs::msg::Transition::TRANSITION_ON_SHUTDOWN_FAILURE:
263 // else if (msg->start_state.id == &&msg->goal_state.id ==)
264 // {
265 // RCLCPP_INFO(this->getNode()->get_logger(), "TRANSITION_ON_SHUTDOWN_FAILURE");
266 // this->postOnTransitionOnShutdownFailure_();
267 // }
268 // case lifecycle_msgs::msg::Transition::TRANSITION_ON_SHUTDOWN_ERROR:
269 else if (
270 msg->start_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_SHUTTINGDOWN &&
271 msg->goal_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_ERRORPROCESSING)
272 {
273 RCLCPP_INFO(this->getNode()->get_logger(), "TRANSITION_ON_SHUTDOWN_ERROR");
275 }
276
277 // case lifecycle_msgs::msg::Transition::TRANSITION_ON_ERROR_SUCCESS:
278 else if (
279 msg->start_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_ERRORPROCESSING &&
280 msg->goal_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED)
281 {
282 RCLCPP_INFO(this->getNode()->get_logger(), "TRANSITION_ON_ERROR_SUCCESS");
284 }
285 // case lifecycle_msgs::msg::Transition::TRANSITION_ON_ERROR_FAILURE:
286 else if (
287 msg->start_state.id == lifecycle_msgs::msg::State::TRANSITION_STATE_ERRORPROCESSING &&
288 msg->goal_state.id == lifecycle_msgs::msg::State::PRIMARY_STATE_FINALIZED)
289 {
290 RCLCPP_INFO(this->getNode()->get_logger(), "TRANSITION_ON_ERROR_FAILURE");
292 }
293 // case lifecycle_msgs::msg::Transition::TRANSITION_ON_ERROR_ERROR:
294 // else if (msg->start_state.id == &&msg->goal_state.id ==)
295 // {
296 // RCLCPP_INFO(this->getNode()->get_logger(), "TRANSITION_ON_ERROR_ERROR");
297 // this->postOnTransitionOnErrorError_();
298 // }
299
300 // default:
301 else
302 {
303 RCLCPP_INFO(this->getNode()->get_logger(), "TRANSITION_UNKNOWN");
304 }
305 // }
306
307} // namespace cl_lifecyclenode
lifecycle_msgs::msg::TransitionEvent::SharedPtr lastTransitionEvent_

References smacc2::ISmaccClient::getNode(), lastTransitionEvent_, postOnTransitionActivate_, postOnTransitionActiveShutdown_, postOnTransitionCleanup_, postOnTransitionConfigure_, postOnTransitionDeactivate_, postOnTransitionDestroy_, postOnTransitionInactiveShutdown_, postOnTransitionOnActivateError_, postOnTransitionOnActivateFailure_, postOnTransitionOnActivateSuccess_, postOnTransitionOnCleanupError_, postOnTransitionOnCleanupSuccess_, postOnTransitionOnConfigureError_, postOnTransitionOnConfigureFailure_, postOnTransitionOnConfigureSuccess_, postOnTransitionOnDeactivateError_, postOnTransitionOnDeactivateSuccess_, postOnTransitionOnErrorFailure_, postOnTransitionOnErrorSuccess_, postOnTransitionOnShutdownError_, postOnTransitionOnShutdownSuccess_, and postOnTransitionUnconfiguredShutdown_.

Referenced by onInitialize().

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

◆ shutdown()

void cl_lifecyclenode::ClLifecycleNode::shutdown ( )

Definition at line 70 of file lifecyclenode_client.cpp.

71{
72 changeState(lifecycle_msgs::msg::Transition::TRANSITION_UNCONFIGURED_SHUTDOWN);
73}

References changeState().

Referenced by cl_lifecyclenode::CbShutdown::onEntry().

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

Member Data Documentation

◆ client_change_state_

rclcpp::Client<lifecycle_msgs::srv::ChangeState>::SharedPtr cl_lifecyclenode::ClLifecycleNode::client_change_state_
private

Definition at line 439 of file lifecyclenode_client.hpp.

Referenced by changeState(), and onInitialize().

◆ client_get_state_

rclcpp::Client<lifecycle_msgs::srv::GetState>::SharedPtr cl_lifecyclenode::ClLifecycleNode::client_get_state_
private

Definition at line 438 of file lifecyclenode_client.hpp.

Referenced by onInitialize().

◆ lastTransitionEvent_

lifecycle_msgs::msg::TransitionEvent::SharedPtr cl_lifecyclenode::ClLifecycleNode::lastTransitionEvent_
private

Definition at line 449 of file lifecyclenode_client.hpp.

Referenced by onTransitionEvent().

◆ node_change_state_topic

const std::string cl_lifecyclenode::ClLifecycleNode::node_change_state_topic = "/change_state"
private

Definition at line 446 of file lifecyclenode_client.hpp.

Referenced by onInitialize().

◆ node_get_state_topic

const std::string cl_lifecyclenode::ClLifecycleNode::node_get_state_topic = "/get_state"
private

Definition at line 445 of file lifecyclenode_client.hpp.

Referenced by onInitialize().

◆ node_transition_event_topic

const std::string cl_lifecyclenode::ClLifecycleNode::node_transition_event_topic = "/transition_event"
private

Definition at line 447 of file lifecyclenode_client.hpp.

Referenced by onInitialize().

◆ nodeName_

std::string cl_lifecyclenode::ClLifecycleNode::nodeName_
private

Definition at line 444 of file lifecyclenode_client.hpp.

Referenced by onInitialize().

◆ onTransitionActivate_

boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionActivate_

Definition at line 231 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation().

◆ onTransitionActiveShutdown_

boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionActiveShutdown_

Definition at line 236 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation().

◆ onTransitionCleanup_

boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionCleanup_

Definition at line 230 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation().

◆ onTransitionConfigure_

boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionConfigure_

Definition at line 229 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation().

◆ onTransitionCreate_

boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionCreate_

Definition at line 228 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation().

◆ onTransitionDeactivate_

boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionDeactivate_

Definition at line 232 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation().

◆ onTransitionDestroy_

boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionDestroy_

Definition at line 238 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation().

◆ onTransitionEventSignal

boost::signals2::signal<void(const lifecycle_msgs::msg::TransitionEvent::SharedPtr)> cl_lifecyclenode::ClLifecycleNode::onTransitionEventSignal

Definition at line 226 of file lifecyclenode_client.hpp.

◆ onTransitionInactiveShutdown_

boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionInactiveShutdown_

Definition at line 235 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation().

◆ onTransitionOnActivateError_

boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnActivateError_

◆ onTransitionOnActivateFailure_

boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnActivateFailure_

◆ onTransitionOnActivateSuccess_

boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnActivateSuccess_

◆ onTransitionOnActiveShutdownError_

boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnActiveShutdownError_

Definition at line 262 of file lifecyclenode_client.hpp.

◆ onTransitionOnActiveShutdownFailure_

boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnActiveShutdownFailure_

Definition at line 261 of file lifecyclenode_client.hpp.

◆ onTransitionOnActiveShutdownSuccess_

boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnActiveShutdownSuccess_

Definition at line 260 of file lifecyclenode_client.hpp.

◆ onTransitionOnCleanupError_

boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnCleanupError_

◆ onTransitionOnCleanupFailure_

boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnCleanupFailure_

◆ onTransitionOnCleanupSuccess_

boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnCleanupSuccess_

◆ onTransitionOnConfigureError_

boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnConfigureError_

◆ onTransitionOnConfigureFailure_

boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnConfigureFailure_

◆ onTransitionOnConfigureSuccess_

boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnConfigureSuccess_

◆ onTransitionOnDeactivateError_

boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnDeactivateError_

◆ onTransitionOnDeactivateFailure_

boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnDeactivateFailure_

◆ onTransitionOnDeactivateSuccess_

boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnDeactivateSuccess_

◆ onTransitionOnErrorError_

boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnErrorError_

Definition at line 266 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation().

◆ onTransitionOnErrorFailure_

boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnErrorFailure_

Definition at line 265 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation().

◆ onTransitionOnErrorSuccess_

boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnErrorSuccess_

Definition at line 264 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation().

◆ onTransitionOnShutdownError_

boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnShutdownError_

◆ onTransitionOnShutdownFailure_

boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnShutdownFailure_

◆ onTransitionOnShutdownSuccess_

boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnShutdownSuccess_

◆ onTransitionUnconfiguredShutdown_

boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionUnconfiguredShutdown_

Definition at line 234 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation().

◆ postOnTransitionActivate_

std::function<void()> cl_lifecyclenode::ClLifecycleNode::postOnTransitionActivate_
private

Definition at line 454 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation(), and onTransitionEvent().

◆ postOnTransitionActiveShutdown_

std::function<void()> cl_lifecyclenode::ClLifecycleNode::postOnTransitionActiveShutdown_
private

Definition at line 458 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation(), and onTransitionEvent().

◆ postOnTransitionCleanup_

std::function<void()> cl_lifecyclenode::ClLifecycleNode::postOnTransitionCleanup_
private

Definition at line 453 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation(), and onTransitionEvent().

◆ postOnTransitionConfigure_

std::function<void()> cl_lifecyclenode::ClLifecycleNode::postOnTransitionConfigure_
private

Definition at line 452 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation(), and onTransitionEvent().

◆ postOnTransitionCreate_

std::function<void()> cl_lifecyclenode::ClLifecycleNode::postOnTransitionCreate_
private

Definition at line 451 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation().

◆ postOnTransitionDeactivate_

std::function<void()> cl_lifecyclenode::ClLifecycleNode::postOnTransitionDeactivate_
private

Definition at line 455 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation(), and onTransitionEvent().

◆ postOnTransitionDestroy_

std::function<void()> cl_lifecyclenode::ClLifecycleNode::postOnTransitionDestroy_
private

Definition at line 459 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation(), and onTransitionEvent().

◆ postOnTransitionInactiveShutdown_

std::function<void()> cl_lifecyclenode::ClLifecycleNode::postOnTransitionInactiveShutdown_
private

Definition at line 457 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation(), and onTransitionEvent().

◆ postOnTransitionOnActivateError_

std::function<void()> cl_lifecyclenode::ClLifecycleNode::postOnTransitionOnActivateError_
private

Definition at line 467 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation(), and onTransitionEvent().

◆ postOnTransitionOnActivateFailure_

std::function<void()> cl_lifecyclenode::ClLifecycleNode::postOnTransitionOnActivateFailure_
private

Definition at line 466 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation(), and onTransitionEvent().

◆ postOnTransitionOnActivateSuccess_

std::function<void()> cl_lifecyclenode::ClLifecycleNode::postOnTransitionOnActivateSuccess_
private

Definition at line 465 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation(), and onTransitionEvent().

◆ postOnTransitionOnCleanupError_

std::function<void()> cl_lifecyclenode::ClLifecycleNode::postOnTransitionOnCleanupError_
private

Definition at line 475 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation(), and onTransitionEvent().

◆ postOnTransitionOnCleanupFailure_

std::function<void()> cl_lifecyclenode::ClLifecycleNode::postOnTransitionOnCleanupFailure_
private

Definition at line 474 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation().

◆ postOnTransitionOnCleanupSuccess_

std::function<void()> cl_lifecyclenode::ClLifecycleNode::postOnTransitionOnCleanupSuccess_
private

Definition at line 473 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation(), and onTransitionEvent().

◆ postOnTransitionOnConfigureError_

std::function<void()> cl_lifecyclenode::ClLifecycleNode::postOnTransitionOnConfigureError_
private

Definition at line 463 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation(), and onTransitionEvent().

◆ postOnTransitionOnConfigureFailure_

std::function<void()> cl_lifecyclenode::ClLifecycleNode::postOnTransitionOnConfigureFailure_
private

Definition at line 462 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation(), and onTransitionEvent().

◆ postOnTransitionOnConfigureSuccess_

std::function<void()> cl_lifecyclenode::ClLifecycleNode::postOnTransitionOnConfigureSuccess_
private

Definition at line 461 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation(), and onTransitionEvent().

◆ postOnTransitionOnDeactivateError_

std::function<void()> cl_lifecyclenode::ClLifecycleNode::postOnTransitionOnDeactivateError_
private

Definition at line 471 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation(), and onTransitionEvent().

◆ postOnTransitionOnDeactivateFailure_

std::function<void()> cl_lifecyclenode::ClLifecycleNode::postOnTransitionOnDeactivateFailure_
private

Definition at line 470 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation().

◆ postOnTransitionOnDeactivateSuccess_

std::function<void()> cl_lifecyclenode::ClLifecycleNode::postOnTransitionOnDeactivateSuccess_
private

Definition at line 469 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation(), and onTransitionEvent().

◆ postOnTransitionOnErrorError_

std::function<void()> cl_lifecyclenode::ClLifecycleNode::postOnTransitionOnErrorError_
private

Definition at line 483 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation().

◆ postOnTransitionOnErrorFailure_

std::function<void()> cl_lifecyclenode::ClLifecycleNode::postOnTransitionOnErrorFailure_
private

Definition at line 482 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation(), and onTransitionEvent().

◆ postOnTransitionOnErrorSuccess_

std::function<void()> cl_lifecyclenode::ClLifecycleNode::postOnTransitionOnErrorSuccess_
private

Definition at line 481 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation(), and onTransitionEvent().

◆ postOnTransitionOnShutdownError_

std::function<void()> cl_lifecyclenode::ClLifecycleNode::postOnTransitionOnShutdownError_
private

Definition at line 479 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation(), and onTransitionEvent().

◆ postOnTransitionOnShutdownFailure_

std::function<void()> cl_lifecyclenode::ClLifecycleNode::postOnTransitionOnShutdownFailure_
private

Definition at line 478 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation().

◆ postOnTransitionOnShutdownSuccess_

std::function<void()> cl_lifecyclenode::ClLifecycleNode::postOnTransitionOnShutdownSuccess_
private

Definition at line 477 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation(), and onTransitionEvent().

◆ postOnTransitionUnconfiguredShutdown_

std::function<void()> cl_lifecyclenode::ClLifecycleNode::postOnTransitionUnconfiguredShutdown_
private

Definition at line 456 of file lifecyclenode_client.hpp.

Referenced by onOrthogonalAllocation(), and onTransitionEvent().

◆ subscription_transition_event_

rclcpp::Subscription<lifecycle_msgs::msg::TransitionEvent>::SharedPtr cl_lifecyclenode::ClLifecycleNode::subscription_transition_event_
private

Definition at line 442 of file lifecyclenode_client.hpp.

Referenced by onInitialize().


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