15#ifndef CS4HOME_CORE__COGNITIVEMODULE_HPP_
16#define CS4HOME_CORE__COGNITIVEMODULE_HPP_
28#include "rclcpp/macros.hpp"
29#include "rclcpp/rclcpp.hpp"
30#include "rclcpp_lifecycle/lifecycle_node.hpp"
44 using
CallbackReturnT = rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn;
52 const std::
string & name,
53 const rclcpp::NodeOptions & options = rclcpp::NodeOptions());
120 const std::
string & name, rclcpp_lifecycle::LifecycleNode::SharedPtr parent);
Manages afferent processing in robotic nodes, including message handling, subscriptions,...
Definition Afferent.hpp:40
std::string coupling_name_
Name of the Coupling component.
Definition CognitiveModule.hpp:109
std::string efferent_name_
Name of the Efferent component.
Definition CognitiveModule.hpp:107
Coupling::SharedPtr coupling_
Pointer to the Coupling component.
Definition CognitiveModule.hpp:103
CallbackReturnT on_activate(const rclcpp_lifecycle::State &state)
Lifecycle transition callback for activation.
Definition CognitiveModule.cpp:115
Efferent::SharedPtr efferent_
Pointer to the Efferent component.
Definition CognitiveModule.hpp:100
Core::SharedPtr core_
Pointer to the Core component.
Definition CognitiveModule.hpp:101
CallbackReturnT on_configure(const rclcpp_lifecycle::State &state)
Lifecycle transition callback for configuration.
Definition CognitiveModule.cpp:44
CallbackReturnT on_shutdown(const rclcpp_lifecycle::State &state)
Lifecycle transition callback for shutdown.
Definition CognitiveModule.cpp:161
CallbackReturnT on_cleanup(const rclcpp_lifecycle::State &state)
Lifecycle transition callback for cleanup.
Definition CognitiveModule.cpp:149
std::string afferent_name_
Name of the Afferent component.
Definition CognitiveModule.hpp:106
std::string core_name_
Name of the Core component.
Definition CognitiveModule.hpp:105
Meta::SharedPtr meta_
Pointer to the Meta component.
Definition CognitiveModule.hpp:102
CallbackReturnT on_error(const rclcpp_lifecycle::State &state)
Lifecycle transition callback for error handling.
Definition CognitiveModule.cpp:173
Afferent::SharedPtr afferent_
Pointer to the Afferent component.
Definition CognitiveModule.hpp:99
std::string meta_name_
Name of the Meta component.
Definition CognitiveModule.hpp:108
rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn CallbackReturnT
Definition CognitiveModule.hpp:44
std::tuple< typename T::SharedPtr, std::string > load_component(const std::string &name, rclcpp_lifecycle::LifecycleNode::SharedPtr parent)
Loads a specified component by name and returns a shared pointer to it.
Definition CognitiveModule.cpp:191
CallbackReturnT on_deactivate(const rclcpp_lifecycle::State &state)
Lifecycle transition callback for deactivation.
Definition CognitiveModule.cpp:132
CognitiveModule(const std::string &name, const rclcpp::NodeOptions &options=rclcpp::NodeOptions())
Constructs a CognitiveModule with the specified node options.
Definition CognitiveModule.cpp:25
Manages core functionality for a robotic component, including lifecycle transitions and connections t...
Definition Core.hpp:35
Manages coupling operations within a robotic system, providing lifecycle-aware configuration.
Definition Coupling.hpp:30
Manages efferent operations in the robotic system, including the configuration of publishers and mess...
Definition Efferent.hpp:35
Definition Afferent.hpp:32