Public Types | Public Member Functions | Private Member Functions | Private Attributes
device_interface::DeviceShifter Class Reference

#include <device_impl.h>

Inheritance diagram for device_interface::DeviceShifter:
Inheritance graph
[legend]

List of all members.

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_

Detailed Description

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.


Member Typedef Documentation

Definition at line 182 of file device_impl.h.


Constructor & Destructor Documentation

Definition at line 184 of file device_impl.h.


Member Function Documentation

return true if shifter relay is busy

Definition at line 196 of file device_impl.h.

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.

Definition at line 223 of file device_impl.h.


Member Data Documentation

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.


The documentation for this class was generated from the following file:


art_pilot
Author(s): Austin Robot Technology, Jack O'Quin
autogenerated on Fri Jan 3 2014 11:09:32