15#ifndef ROS2_CONTROL_DEMO_HARDWARE__DIFFBOT_SYSTEM_HPP_
16#define ROS2_CONTROL_DEMO_HARDWARE__DIFFBOT_SYSTEM_HPP_
22#include "hardware_interface/base_interface.hpp"
23#include "hardware_interface/handle.hpp"
24#include "hardware_interface/hardware_info.hpp"
25#include "hardware_interface/system_interface.hpp"
26#include "hardware_interface/types/hardware_interface_return_values.hpp"
27#include "hardware_interface/types/hardware_interface_status_values.hpp"
28#include "rclcpp/macros.hpp"
29#include "ros2_control_demo_hardware/visibility_control.h"
31namespace ros2_control_demo_hardware
39 ROS2_CONTROL_DEMO_HARDWARE_PUBLIC
42 ROS2_CONTROL_DEMO_HARDWARE_PUBLIC
45 ROS2_CONTROL_DEMO_HARDWARE_PUBLIC
48 ROS2_CONTROL_DEMO_HARDWARE_PUBLIC
49 hardware_interface::return_type
start()
override;
51 ROS2_CONTROL_DEMO_HARDWARE_PUBLIC
52 hardware_interface::return_type
stop()
override;
54 ROS2_CONTROL_DEMO_HARDWARE_PUBLIC
55 hardware_interface::return_type
read()
override;
57 ROS2_CONTROL_DEMO_HARDWARE_PUBLIC
58 hardware_interface::return_type
write()
override;
66 std::vector<double> hw_commands_;
67 std::vector<double> hw_positions_;
68 std::vector<double> hw_velocities_;
71 double base_x_, base_y_, base_theta_;
Definition base_interface.hpp:28
Definition diffbot_system.hpp:35
ROS2_CONTROL_DEMO_HARDWARE_PUBLIC hardware_interface::return_type write() override
Write the current command values to the actuator within the system.
Definition diffbot_system.cpp:210
ROS2_CONTROL_DEMO_HARDWARE_PUBLIC hardware_interface::return_type start() override
Start exchange data with the hardware.
Definition diffbot_system.cpp:126
ROS2_CONTROL_DEMO_HARDWARE_PUBLIC std::vector< hardware_interface::CommandInterface > export_command_interfaces() override
Exports all command interfaces for this system.
Definition diffbot_system.cpp:114
ROS2_CONTROL_DEMO_HARDWARE_PUBLIC hardware_interface::return_type read() override
Read the current state values from the actuators and sensors within the system.
Definition diffbot_system.cpp:173
ROS2_CONTROL_DEMO_HARDWARE_PUBLIC std::vector< hardware_interface::StateInterface > export_state_interfaces() override
Exports all state interfaces for this system.
Definition diffbot_system.cpp:100
ROS2_CONTROL_DEMO_HARDWARE_PUBLIC hardware_interface::return_type configure(const hardware_interface::HardwareInfo &info) override
Configuration of the system from data parsed from the robot's URDF.
Definition diffbot_system.cpp:28
ROS2_CONTROL_DEMO_HARDWARE_PUBLIC hardware_interface::return_type stop() override
Stop exchange data with the hardware.
Definition diffbot_system.cpp:155
This structure stores information about hardware defined in a robot's URDF.
Definition hardware_info.hpp:103