15#ifndef ROBOLIGO_STATES__STATESNODE_HPP_
16#define ROBOLIGO_STATES__STATESNODE_HPP_
18#include "pluginlib/class_loader.hpp"
20#include "rclcpp/macros.hpp"
21#include "rclcpp_lifecycle/lifecycle_node.hpp"
34 class StatesNode :
public rclcpp_lifecycle::LifecycleNode
39 using
CallbackReturnT = rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn;
46 const rclcpp::NodeOptions & options = rclcpp::NodeOptions());
118 const std::shared_ptr<const RobotState> robot_state_;
120 std::unique_ptr<pluginlib::ClassLoader<roboligo::ClassificationBase>> classification_loader_;
Base class for classification plugins in the Roboligo system.
Definition ClassificationBase.hpp:38
Represents the state and configuration of a robot.
Definition RobotState.hpp:45
CallbackReturnT on_activate(const rclcpp_lifecycle::State &state)
Instructions on_active state.
Definition StatesNode.cpp:95
void reset_classification(void)
When the node is in shutdowning, this method is called.
Definition StatesNode.cpp:147
CallbackReturnT on_cleanup(const rclcpp_lifecycle::State &state)
Instructions on_cleanup state.
Definition StatesNode.cpp:107
CallbackReturnT on_error(const rclcpp_lifecycle::State &state)
Instructions on_error state.
Definition StatesNode.cpp:127
StatesNode(const rclcpp::NodeOptions &options=rclcpp::NodeOptions())
Constructor for StatesNode.
Definition StatesNode.cpp:27
bool cycle(std::shared_ptr< RobotState > robot_state)
Method used for each iteration.
Definition StatesNode.cpp:140
CallbackReturnT on_configure(const rclcpp_lifecycle::State &state)
Instructions on_configure state.
Definition StatesNode.cpp:51
CallbackReturnT on_shutdown(const rclcpp_lifecycle::State &state)
Instructions on_shutdown state.
Definition StatesNode.cpp:113
bool init(std::shared_ptr< RobotState > robot_state)
Method called at initialize and configurate settings.
Definition StatesNode.cpp:133
rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn CallbackReturnT
Definition StatesNode.hpp:39
CallbackReturnT on_deactivate(const rclcpp_lifecycle::State &state)
Instructions on_deactivate state.
Definition StatesNode.cpp:101
Definition ClassificationBase.hpp:28