15 #ifndef HARDWARE_INTERFACE__SYSTEM_HPP_
16 #define HARDWARE_INTERFACE__SYSTEM_HPP_
23 #include "hardware_interface/handle.hpp"
24 #include "hardware_interface/hardware_info.hpp"
25 #include "hardware_interface/types/hardware_interface_return_values.hpp"
26 #include "hardware_interface/visibility_control.h"
27 #include "rclcpp_lifecycle/state.hpp"
31 class SystemInterface;
36 HARDWARE_INTERFACE_PUBLIC
37 explicit System(std::unique_ptr<SystemInterface> impl);
43 HARDWARE_INTERFACE_PUBLIC
44 const rclcpp_lifecycle::State & initialize(
const HardwareInfo & system_info);
46 HARDWARE_INTERFACE_PUBLIC
47 const rclcpp_lifecycle::State & configure();
49 HARDWARE_INTERFACE_PUBLIC
50 const rclcpp_lifecycle::State & cleanup();
52 HARDWARE_INTERFACE_PUBLIC
53 const rclcpp_lifecycle::State & shutdown();
55 HARDWARE_INTERFACE_PUBLIC
56 const rclcpp_lifecycle::State & activate();
58 HARDWARE_INTERFACE_PUBLIC
59 const rclcpp_lifecycle::State & deactivate();
61 HARDWARE_INTERFACE_PUBLIC
62 const rclcpp_lifecycle::State & error();
64 HARDWARE_INTERFACE_PUBLIC
65 std::vector<StateInterface> export_state_interfaces();
67 HARDWARE_INTERFACE_PUBLIC
68 std::vector<CommandInterface> export_command_interfaces();
70 HARDWARE_INTERFACE_PUBLIC
71 return_type prepare_command_mode_switch(
72 const std::vector<std::string> & start_interfaces,
73 const std::vector<std::string> & stop_interfaces);
75 HARDWARE_INTERFACE_PUBLIC
76 return_type perform_command_mode_switch(
77 const std::vector<std::string> & start_interfaces,
78 const std::vector<std::string> & stop_interfaces);
80 HARDWARE_INTERFACE_PUBLIC
81 std::string get_name()
const;
83 HARDWARE_INTERFACE_PUBLIC
84 const rclcpp_lifecycle::State & get_state()
const;
86 HARDWARE_INTERFACE_PUBLIC
89 HARDWARE_INTERFACE_PUBLIC
93 std::unique_ptr<SystemInterface> impl_;
Definition: system.hpp:34
Definition: actuator.hpp:29
This structure stores information about hardware defined in a robot's URDF.
Definition: hardware_info.hpp:101