15 #ifndef HARDWARE_INTERFACE__ACTUATOR_HPP_ 16 #define HARDWARE_INTERFACE__ACTUATOR_HPP_ 22 #include "hardware_interface/handle.hpp" 23 #include "hardware_interface/hardware_info.hpp" 24 #include "hardware_interface/types/hardware_interface_return_values.hpp" 25 #include "hardware_interface/types/hardware_interface_status_values.hpp" 26 #include "hardware_interface/visibility_control.h" 30 class ActuatorInterface;
37 HARDWARE_INTERFACE_PUBLIC
38 explicit Actuator(std::unique_ptr<ActuatorInterface> impl);
40 Actuator(Actuator && other) =
default;
42 ~Actuator() =
default;
44 HARDWARE_INTERFACE_PUBLIC
45 return_type configure(
const HardwareInfo & actuator_info);
47 HARDWARE_INTERFACE_PUBLIC
48 std::vector<StateInterface> export_state_interfaces();
50 HARDWARE_INTERFACE_PUBLIC
51 std::vector<CommandInterface> export_command_interfaces();
53 HARDWARE_INTERFACE_PUBLIC
54 return_type prepare_command_mode_switch(
55 const std::vector<std::string> & start_interfaces,
56 const std::vector<std::string> & stop_interfaces);
58 HARDWARE_INTERFACE_PUBLIC
59 return_type perform_command_mode_switch(
60 const std::vector<std::string> & start_interfaces,
61 const std::vector<std::string> & stop_interfaces);
63 HARDWARE_INTERFACE_PUBLIC
66 HARDWARE_INTERFACE_PUBLIC
69 HARDWARE_INTERFACE_PUBLIC
70 std::string get_name()
const;
72 HARDWARE_INTERFACE_PUBLIC
73 status get_status()
const;
75 HARDWARE_INTERFACE_PUBLIC
78 HARDWARE_INTERFACE_PUBLIC
82 std::unique_ptr<ActuatorInterface> impl_;
86 #endif // HARDWARE_INTERFACE__ACTUATOR_HPP_ Definition: actuator.hpp:28
This structure stores information about hardware defined in a robot's URDF.
Definition: hardware_info.hpp:100
Definition: actuator.hpp:32