15#ifndef CS4HOME_CORE__MASTER_HPP_
16#define CS4HOME_CORE__MASTER_HPP_
23#include "rclcpp_lifecycle/lifecycle_node.hpp"
24#include "rclcpp/rclcpp.hpp"
25#include "rclcpp/macros.hpp"
35class Master :
public rclcpp_lifecycle::LifecycleNode
38 RCLCPP_SMART_PTR_DEFINITIONS(
Master)
39 using
CallbackReturnT = rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn;
45 explicit
Master(const rclcpp::NodeOptions & options = rclcpp::NodeOptions());
Extends the LifecycleNode to manage cognitive processing components in a ROS 2 lifecycle,...
Definition CognitiveModule.hpp:41
CallbackReturnT on_activate(const rclcpp_lifecycle::State &state)
Activates the Master node.
Definition Master.cpp:50
CallbackReturnT on_configure(const rclcpp_lifecycle::State &state)
Configures the Master node.
Definition Master.cpp:37
std::map< std::string, cs4home_core::CognitiveModule::SharedPtr > cog_modules_
Map of cognitive modules managed by the Master node.
Definition Master.hpp:91
CallbackReturnT on_shutdown(const rclcpp_lifecycle::State &state)
Shuts down the Master node.
Definition Master.cpp:89
Master(const rclcpp::NodeOptions &options=rclcpp::NodeOptions())
Constructs a Master lifecycle node with the specified options.
Definition Master.cpp:24
CallbackReturnT on_cleanup(const rclcpp_lifecycle::State &state)
Cleans up the Master node.
Definition Master.cpp:76
CallbackReturnT on_error(const rclcpp_lifecycle::State &state)
Handles errors in the Master node.
Definition Master.cpp:102
rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn CallbackReturnT
Definition Master.hpp:39
CallbackReturnT on_deactivate(const rclcpp_lifecycle::State &state)
Deactivates the Master node.
Definition Master.cpp:63
Definition Afferent.hpp:32