15 #ifndef HARDWARE_INTERFACE__ACTUATOR_INTERFACE_HPP_ 16 #define HARDWARE_INTERFACE__ACTUATOR_INTERFACE_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" 84 const std::vector<std::string> & ,
85 const std::vector<std::string> & )
87 return return_type::OK;
103 const std::vector<std::string> & ,
104 const std::vector<std::string> & )
106 return return_type::OK;
113 virtual return_type
start() = 0;
119 virtual return_type
stop() = 0;
125 virtual std::string
get_name()
const = 0;
141 virtual return_type
read() = 0;
150 virtual return_type
write() = 0;
154 #endif // HARDWARE_INTERFACE__ACTUATOR_INTERFACE_HPP_ virtual status get_status() const =0
Get current state of the actuator hardware.
virtual return_type write()=0
Write the current command values to the actuator.
Definition: actuator.hpp:28
virtual return_type stop()=0
Stop exchange data with the hardware.
virtual std::string get_name() const =0
Get name of the actuator hardware.
Virtual Class to implement when integrating a 1 DoF actuator into ros2_control.
Definition: actuator_interface.hpp:33
This structure stores information about hardware defined in a robot's URDF.
Definition: hardware_info.hpp:100
virtual std::vector< CommandInterface > export_command_interfaces()=0
Exports all command interfaces for this actuator.
virtual return_type read()=0
Read the current state values from the actuator.
virtual return_type prepare_command_mode_switch(const std::vector< std::string > &, const std::vector< std::string > &)
Prepare for a new command interface switch.
Definition: actuator_interface.hpp:83
virtual return_type start()=0
Start exchange data with the hardware.
virtual return_type configure(const HardwareInfo &actuator_info)=0
Configuration of the actuator from data parsed from the robot's URDF.
virtual return_type perform_command_mode_switch(const std::vector< std::string > &, const std::vector< std::string > &)
Definition: actuator_interface.hpp:102
virtual std::vector< StateInterface > export_state_interfaces()=0
Exports all state interfaces for this actuator.