15 #ifndef ROS2_CONTROL_DEMO_EXAMPLE_7__R6BOT_HARDWARE_HPP_
16 #define ROS2_CONTROL_DEMO_EXAMPLE_7__R6BOT_HARDWARE_HPP_
19 #include "unordered_map"
22 #include "hardware_interface/handle.hpp"
23 #include "hardware_interface/hardware_info.hpp"
24 #include "hardware_interface/system_interface.hpp"
25 #include "hardware_interface/types/hardware_interface_return_values.hpp"
26 #include "hardware_interface/types/hardware_interface_type_values.hpp"
28 using hardware_interface::return_type;
30 namespace ros2_control_demo_example_7
32 using CallbackReturn = rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn;
39 CallbackReturn on_configure(
const rclcpp_lifecycle::State & previous_state)
override;
41 return_type
read(
const rclcpp::Time & time,
const rclcpp::Duration & period)
override;
43 return_type
write(
const rclcpp::Time & ,
const rclcpp::Duration & )
override;
Definition: system_interface.hpp:83
Definition: r6bot_hardware.hpp:35
return_type read(const rclcpp::Time &time, const rclcpp::Duration &period) override
Read the current state values from the actuator.
Definition: r6bot_hardware.cpp:51
return_type write(const rclcpp::Time &, const rclcpp::Duration &) override
Write the current command values to the actuator.
Definition: r6bot_hardware.cpp:65
CallbackReturn on_init(const hardware_interface::HardwareInfo &info) override
Initialization of the hardware interface from data parsed from the robot's URDF.
Definition: r6bot_hardware.cpp:23
This structure stores information about hardware defined in a robot's URDF.
Definition: hardware_info.hpp:170