rclcpp_lifecycle
master
C++ ROS Lifecycle Library API
|
Go to the documentation of this file.
15 #ifndef RCLCPP_LIFECYCLE__NODE_INTERFACES__LIFECYCLE_NODE_INTERFACE_HPP_
16 #define RCLCPP_LIFECYCLE__NODE_INTERFACES__LIFECYCLE_NODE_INTERFACE_HPP_
18 #include "lifecycle_msgs/msg/transition.hpp"
20 #include "rcl_lifecycle/rcl_lifecycle.h"
27 namespace node_interfaces
51 SUCCESS = lifecycle_msgs::msg::Transition::TRANSITION_CALLBACK_SUCCESS,
52 FAILURE = lifecycle_msgs::msg::Transition::TRANSITION_CALLBACK_FAILURE,
53 ERROR = lifecycle_msgs::msg::Transition::TRANSITION_CALLBACK_ERROR
111 #endif // RCLCPP_LIFECYCLE__NODE_INTERFACES__LIFECYCLE_NODE_INTERFACE_HPP_
virtual CallbackReturn on_configure(const State &previous_state)
Callback function for configure transition.
virtual ~LifecycleNodeInterface()
Definition: lifecycle_node_interface.hpp:106
Abstract class for the Lifecycle's states.
Definition: state.hpp:34
Definition: lifecycle_node.hpp:92
CallbackReturn
Definition: lifecycle_node_interface.hpp:49
virtual CallbackReturn on_cleanup(const State &previous_state)
Callback function for cleanup transition.
virtual CallbackReturn on_error(const State &previous_state)
Callback function for errorneous transition.
virtual CallbackReturn on_activate(const State &previous_state)
Callback function for activate transition.
#define RCLCPP_LIFECYCLE_PUBLIC
Definition: visibility_control.h:50
LifecycleNodeInterface()
Definition: lifecycle_node_interface.hpp:46
virtual CallbackReturn on_deactivate(const State &previous_state)
Callback function for deactivate transition.
Interface class for a managed node.
Definition: lifecycle_node_interface.hpp:42
virtual CallbackReturn on_shutdown(const State &previous_state)
Callback function for shutdown transition.