#include <device_impl.h>
Public Types | |
typedef art_msgs::Shifter::_gear_type | Gear |
Public Member Functions | |
bool | busy (void) |
DeviceShifter (ros::NodeHandle node) | |
bool | is_reset (void) |
void | publish (Gear new_position, ros::Time cycle_time) |
virtual DeviceState | state (ros::Time recently) |
Gear | value () |
Private Member Functions | |
void | process (const art_msgs::Shifter::ConstPtr &msgIn) |
Private Attributes | |
art_msgs::Shifter | cmd_ |
art_msgs::Shifter | msg_ |
ros::Publisher | pub_ |
ros::Duration | shift_duration_ |
ros::Time | shift_time_ |
Shifter interface class
Since this device uses gear numbers and not floats, it cannot implement the full ServoDeviceBase interface, so it uses DeviceBase, with some similar additional members. The publish() method takes a gear number, and the value() method returns one.
Definition at line 178 of file device_impl.h.
Definition at line 182 of file device_impl.h.
device_interface::DeviceShifter::DeviceShifter | ( | ros::NodeHandle | node | ) | [inline] |
Definition at line 184 of file device_impl.h.
bool device_interface::DeviceShifter::busy | ( | void | ) | [inline] |
return true if shifter relay is busy
Definition at line 196 of file device_impl.h.
bool device_interface::DeviceShifter::is_reset | ( | void | ) | [inline] |
return true if shifting is done (all relays off)
Definition at line 202 of file device_impl.h.
void device_interface::DeviceShifter::process | ( | const art_msgs::Shifter::ConstPtr & | msgIn | ) | [inline, private] |
Definition at line 230 of file device_impl.h.
void device_interface::DeviceShifter::publish | ( | Gear | new_position, |
ros::Time | cycle_time | ||
) | [inline] |
Definition at line 207 of file device_impl.h.
virtual DeviceState device_interface::DeviceShifter::state | ( | ros::Time | recently | ) | [inline, virtual] |
Implements device_interface::DeviceBase.
Definition at line 215 of file device_impl.h.
Gear device_interface::DeviceShifter::value | ( | ) | [inline] |
Definition at line 223 of file device_impl.h.
Definition at line 235 of file device_impl.h.
Definition at line 236 of file device_impl.h.
Definition at line 237 of file device_impl.h.
Definition at line 239 of file device_impl.h.
Definition at line 238 of file device_impl.h.