#include <device_interface.h>
Public Member Functions | |
virtual float | last_request ()=0 |
virtual void | publish (float new_position, ros::Time cycle_time)=0 |
ServoDeviceBase (ros::NodeHandle node) | |
virtual float | value ()=0 |
Protected Attributes | |
ros::Publisher | pub_ |
Servo device virtual derived class
Definition at line 51 of file device_interface.h.
device_interface::ServoDeviceBase::ServoDeviceBase | ( | ros::NodeHandle | node | ) | [inline] |
Constructor
node | handle for state and command topics |
Definition at line 59 of file device_interface.h.
virtual float device_interface::ServoDeviceBase::last_request | ( | ) | [pure virtual] |
Implemented in device_interface::DeviceThrottle, device_interface::DeviceSteering, and device_interface::DeviceBrake.
virtual void device_interface::ServoDeviceBase::publish | ( | float | new_position, |
ros::Time | cycle_time | ||
) | [pure virtual] |
Publish servo request.
new_position | new position requested |
cycle_time | current pilot cycle time stamp |
Implemented in device_interface::DeviceThrottle, device_interface::DeviceSteering, and device_interface::DeviceBrake.
virtual float device_interface::ServoDeviceBase::value | ( | ) | [pure virtual] |
Implemented in device_interface::DeviceThrottle, device_interface::DeviceSteering, and device_interface::DeviceBrake.
Definition at line 74 of file device_interface.h.