24#include "hardware_interface/system_interface.hpp"
25#include "hardware_interface/types/hardware_component_interface_params.hpp"
26#include "pal_statistics_msgs/msg/statistics_names.hpp"
27#include "pal_statistics_msgs/msg/statistics_values.hpp"
28#include "rclcpp/subscription.hpp"
30namespace cm_topic_hardware_component
32using CallbackReturn = rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn;
39 hardware_interface::return_type
read(
const rclcpp::Time& time,
const rclcpp::Duration& period)
override;
41 hardware_interface::return_type
write(
const rclcpp::Time& ,
const rclcpp::Duration& )
override;
44 rclcpp::Subscription<pal_statistics_msgs::msg::StatisticsNames>::SharedPtr pal_names_subscriber_;
45 rclcpp::Subscription<pal_statistics_msgs::msg::StatisticsValues>::SharedPtr pal_values_subscriber_;
46 pal_statistics_msgs::msg::StatisticsValues latest_pal_values_;
47 std::unordered_map<uint32_t, std::vector<std::string>> pal_statistics_names_per_topic_;
Definition cm_topic_hardware_component.hpp:35
hardware_interface::return_type read(const rclcpp::Time &time, const rclcpp::Duration &period) override
Read the current state values from the hardware.
Definition cm_topic_hardware_component.cpp:44
CallbackReturn on_init(const hardware_interface::HardwareComponentInterfaceParams ¶ms) override
Initialization of the hardware interface from data parsed from the robot's URDF.
Definition cm_topic_hardware_component.cpp:24
hardware_interface::return_type write(const rclcpp::Time &, const rclcpp::Duration &) override
Write the current command values to the hardware.
Definition cm_topic_hardware_component.cpp:94
Virtual Class to implement when integrating a complex system into ros2_control.
Definition system_interface.hpp:67
Parameters required for the initialization of a specific hardware component plugin....
Definition hardware_component_interface_params.hpp:32