// include\rclcpp_lifecycle\lifecycle_node.hppnamespace rclcpp_lifecycle
{classLifecycleNode:public node_interfaces::LifecycleNodeInterface,public std::enable_shared_from_this<LifecycleNode>{public:/// Register the activate callback/**
* This callback will be called when the transition to this state is triggered
* \param[in] fcn callback function to call
* \return always true
*/
RCLCPP_LIFECYCLE_PUBLIC
boolregister_on_activate(std::function<LifecycleNodeInterface::CallbackReturn(const State &)> fcn);
RCLCPP_LIFECYCLE_PUBLIC
CallbackReturn
on_activate(const State & previous_state)override;}}