SMACC2
|
#include <lifecyclenode_client.hpp>
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_ |
Definition at line 192 of file lifecyclenode_client.hpp.
cl_lifecyclenode::ClLifecycleNode::ClLifecycleNode | ( | std::string | nodeName | ) |
Definition at line 25 of file lifecyclenode_client.cpp.
|
virtual |
Definition at line 27 of file lifecyclenode_client.cpp.
void cl_lifecyclenode::ClLifecycleNode::activate | ( | ) |
Definition at line 50 of file lifecyclenode_client.cpp.
References changeState().
Referenced by cl_lifecyclenode::CbActivate::onEntry().
void cl_lifecyclenode::ClLifecycleNode::changeState | ( | uint8_t | state | ) |
Definition at line 42 of file lifecyclenode_client.cpp.
References client_change_state_.
Referenced by activate(), cleanup(), configure(), deactivate(), and shutdown().
void cl_lifecyclenode::ClLifecycleNode::cleanup | ( | ) |
Definition at line 65 of file lifecyclenode_client.cpp.
References changeState().
Referenced by cl_lifecyclenode::CbCleanup::onEntry().
void cl_lifecyclenode::ClLifecycleNode::configure | ( | ) |
Definition at line 60 of file lifecyclenode_client.cpp.
References changeState().
Referenced by cl_lifecyclenode::CbConfigure::onEntry().
void cl_lifecyclenode::ClLifecycleNode::deactivate | ( | ) |
Definition at line 55 of file lifecyclenode_client.cpp.
References changeState().
Referenced by cl_lifecyclenode::CbDeactivate::onEntry(), and cl_lifecyclenode::CbDeactivateOnExit::onExit().
void cl_lifecyclenode::ClLifecycleNode::destroy | ( | ) |
|
overridevirtual |
Reimplemented from smacc2::ISmaccClient.
Definition at line 29 of file lifecyclenode_client.cpp.
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_.
|
inline |
Definition at line 269 of file lifecyclenode_client.hpp.
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_.
|
virtual |
Definition at line 75 of file lifecyclenode_client.cpp.
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().
void cl_lifecyclenode::ClLifecycleNode::shutdown | ( | ) |
Definition at line 70 of file lifecyclenode_client.cpp.
References changeState().
Referenced by cl_lifecyclenode::CbShutdown::onEntry().
|
private |
Definition at line 439 of file lifecyclenode_client.hpp.
Referenced by changeState(), and onInitialize().
|
private |
Definition at line 438 of file lifecyclenode_client.hpp.
Referenced by onInitialize().
|
private |
Definition at line 449 of file lifecyclenode_client.hpp.
Referenced by onTransitionEvent().
|
private |
Definition at line 446 of file lifecyclenode_client.hpp.
Referenced by onInitialize().
|
private |
Definition at line 445 of file lifecyclenode_client.hpp.
Referenced by onInitialize().
|
private |
Definition at line 447 of file lifecyclenode_client.hpp.
Referenced by onInitialize().
|
private |
Definition at line 444 of file lifecyclenode_client.hpp.
Referenced by onInitialize().
boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionActivate_ |
Definition at line 231 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation().
boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionActiveShutdown_ |
Definition at line 236 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation().
boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionCleanup_ |
Definition at line 230 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation().
boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionConfigure_ |
Definition at line 229 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation().
boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionCreate_ |
Definition at line 228 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation().
boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionDeactivate_ |
Definition at line 232 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation().
boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionDestroy_ |
Definition at line 238 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation().
boost::signals2::signal<void(const lifecycle_msgs::msg::TransitionEvent::SharedPtr)> cl_lifecyclenode::ClLifecycleNode::onTransitionEventSignal |
Definition at line 226 of file lifecyclenode_client.hpp.
boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionInactiveShutdown_ |
Definition at line 235 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation().
boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnActivateError_ |
Definition at line 246 of file lifecyclenode_client.hpp.
Referenced by cl_lifecyclenode::CbActivate::onOrthogonalAllocation(), and onOrthogonalAllocation().
boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnActivateFailure_ |
Definition at line 245 of file lifecyclenode_client.hpp.
Referenced by cl_lifecyclenode::CbActivate::onOrthogonalAllocation(), and onOrthogonalAllocation().
boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnActivateSuccess_ |
Definition at line 244 of file lifecyclenode_client.hpp.
Referenced by cl_lifecyclenode::CbActivate::onOrthogonalAllocation(), and onOrthogonalAllocation().
boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnActiveShutdownError_ |
Definition at line 262 of file lifecyclenode_client.hpp.
boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnActiveShutdownFailure_ |
Definition at line 261 of file lifecyclenode_client.hpp.
boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnActiveShutdownSuccess_ |
Definition at line 260 of file lifecyclenode_client.hpp.
boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnCleanupError_ |
Definition at line 254 of file lifecyclenode_client.hpp.
Referenced by cl_lifecyclenode::CbCleanup::onOrthogonalAllocation(), and onOrthogonalAllocation().
boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnCleanupFailure_ |
Definition at line 253 of file lifecyclenode_client.hpp.
Referenced by cl_lifecyclenode::CbCleanup::onOrthogonalAllocation(), and onOrthogonalAllocation().
boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnCleanupSuccess_ |
Definition at line 252 of file lifecyclenode_client.hpp.
Referenced by cl_lifecyclenode::CbCleanup::onOrthogonalAllocation(), and onOrthogonalAllocation().
boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnConfigureError_ |
Definition at line 242 of file lifecyclenode_client.hpp.
Referenced by cl_lifecyclenode::CbConfigure::onOrthogonalAllocation(), and onOrthogonalAllocation().
boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnConfigureFailure_ |
Definition at line 241 of file lifecyclenode_client.hpp.
Referenced by cl_lifecyclenode::CbConfigure::onOrthogonalAllocation(), and onOrthogonalAllocation().
boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnConfigureSuccess_ |
Definition at line 240 of file lifecyclenode_client.hpp.
Referenced by cl_lifecyclenode::CbConfigure::onOrthogonalAllocation(), and onOrthogonalAllocation().
boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnDeactivateError_ |
Definition at line 250 of file lifecyclenode_client.hpp.
Referenced by cl_lifecyclenode::CbDeactivate::onOrthogonalAllocation(), cl_lifecyclenode::CbDeactivateOnExit::onOrthogonalAllocation(), and onOrthogonalAllocation().
boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnDeactivateFailure_ |
Definition at line 249 of file lifecyclenode_client.hpp.
Referenced by cl_lifecyclenode::CbDeactivate::onOrthogonalAllocation(), cl_lifecyclenode::CbDeactivateOnExit::onOrthogonalAllocation(), and onOrthogonalAllocation().
boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnDeactivateSuccess_ |
Definition at line 248 of file lifecyclenode_client.hpp.
Referenced by cl_lifecyclenode::CbDeactivate::onOrthogonalAllocation(), cl_lifecyclenode::CbDeactivateOnExit::onOrthogonalAllocation(), and onOrthogonalAllocation().
boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnErrorError_ |
Definition at line 266 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation().
boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnErrorFailure_ |
Definition at line 265 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation().
boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnErrorSuccess_ |
Definition at line 264 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation().
boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnShutdownError_ |
Definition at line 258 of file lifecyclenode_client.hpp.
Referenced by cl_lifecyclenode::CbShutdown::onOrthogonalAllocation(), and onOrthogonalAllocation().
boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnShutdownFailure_ |
Definition at line 257 of file lifecyclenode_client.hpp.
Referenced by cl_lifecyclenode::CbShutdown::onOrthogonalAllocation(), and onOrthogonalAllocation().
boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionOnShutdownSuccess_ |
Definition at line 256 of file lifecyclenode_client.hpp.
Referenced by cl_lifecyclenode::CbShutdown::onOrthogonalAllocation(), and onOrthogonalAllocation().
boost::signals2::signal<void()> cl_lifecyclenode::ClLifecycleNode::onTransitionUnconfiguredShutdown_ |
Definition at line 234 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation().
|
private |
Definition at line 454 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation(), and onTransitionEvent().
|
private |
Definition at line 458 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation(), and onTransitionEvent().
|
private |
Definition at line 453 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation(), and onTransitionEvent().
|
private |
Definition at line 452 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation(), and onTransitionEvent().
|
private |
Definition at line 451 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation().
|
private |
Definition at line 455 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation(), and onTransitionEvent().
|
private |
Definition at line 459 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation(), and onTransitionEvent().
|
private |
Definition at line 457 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation(), and onTransitionEvent().
|
private |
Definition at line 467 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation(), and onTransitionEvent().
|
private |
Definition at line 466 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation(), and onTransitionEvent().
|
private |
Definition at line 465 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation(), and onTransitionEvent().
|
private |
Definition at line 475 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation(), and onTransitionEvent().
|
private |
Definition at line 474 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation().
|
private |
Definition at line 473 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation(), and onTransitionEvent().
|
private |
Definition at line 463 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation(), and onTransitionEvent().
|
private |
Definition at line 462 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation(), and onTransitionEvent().
|
private |
Definition at line 461 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation(), and onTransitionEvent().
|
private |
Definition at line 471 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation(), and onTransitionEvent().
|
private |
Definition at line 470 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation().
|
private |
Definition at line 469 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation(), and onTransitionEvent().
|
private |
Definition at line 483 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation().
|
private |
Definition at line 482 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation(), and onTransitionEvent().
|
private |
Definition at line 481 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation(), and onTransitionEvent().
|
private |
Definition at line 479 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation(), and onTransitionEvent().
|
private |
Definition at line 478 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation().
|
private |
Definition at line 477 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation(), and onTransitionEvent().
|
private |
Definition at line 456 of file lifecyclenode_client.hpp.
Referenced by onOrthogonalAllocation(), and onTransitionEvent().
|
private |
Definition at line 442 of file lifecyclenode_client.hpp.
Referenced by onInitialize().