|
| SensorInterface (const SensorInterface &other)=delete |
| SensorInterface copy constructor is actively deleted.
|
|
| SensorInterface (SensorInterface &&other)=default |
|
virtual CallbackReturn | on_init (const HardwareInfo &hardware_info) |
| Initialization of the hardware interface from data parsed from the robot's URDF.
|
|
virtual std::vector< StateInterface > | export_state_interfaces ()=0 |
| Exports all state interfaces for this hardware interface.
|
|
virtual return_type | read (const rclcpp::Time &time, const rclcpp::Duration &period)=0 |
| Read the current state values from the actuator.
|
|
virtual std::string | get_name () const |
| Get name of the actuator hardware.
|
|
const rclcpp_lifecycle::State & | get_state () const |
| Get life-cycle state of the actuator hardware.
|
|
void | set_state (const rclcpp_lifecycle::State &new_state) |
| Set life-cycle state of the actuator hardware.
|
|
◆ SensorInterface()
hardware_interface::SensorInterface::SensorInterface |
( |
const SensorInterface & |
other | ) |
|
|
delete |
SensorInterface copy constructor is actively deleted.
Hardware interfaces are having a unique ownership and thus can't be copied in order to avoid failed or simultaneous access to hardware.
◆ export_state_interfaces()
virtual std::vector< StateInterface > hardware_interface::SensorInterface::export_state_interfaces |
( |
| ) |
|
|
pure virtual |
◆ get_name()
virtual std::string hardware_interface::SensorInterface::get_name |
( |
| ) |
const |
|
inlinevirtual |
Get name of the actuator hardware.
- Returns
- name.
◆ get_state()
const rclcpp_lifecycle::State & hardware_interface::SensorInterface::get_state |
( |
| ) |
const |
|
inline |
Get life-cycle state of the actuator hardware.
- Returns
- state.
◆ on_init()
◆ read()
virtual return_type hardware_interface::SensorInterface::read |
( |
const rclcpp::Time & |
time, |
|
|
const rclcpp::Duration & |
period |
|
) |
| |
|
pure virtual |
◆ set_state()
void hardware_interface::SensorInterface::set_state |
( |
const rclcpp_lifecycle::State & |
new_state | ) |
|
|
inline |
Set life-cycle state of the actuator hardware.
- Returns
- state.
The documentation for this class was generated from the following file: