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 174 of file device_impl.h.


Member Typedef Documentation

typedef art_msgs::Shifter::_gear_type device_interface::DeviceShifter::Gear

Definition at line 178 of file device_impl.h.


Constructor & Destructor Documentation

device_interface::DeviceShifter::DeviceShifter ( ros::NodeHandle  node  )  [inline]

Definition at line 180 of file device_impl.h.


Member Function Documentation

bool device_interface::DeviceShifter::busy ( void   )  [inline]

return true if shifter relay is busy

Definition at line 192 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 198 of file device_impl.h.

void device_interface::DeviceShifter::process ( const art_msgs::Shifter::ConstPtr &  msgIn  )  [inline, private]

Definition at line 226 of file device_impl.h.

void device_interface::DeviceShifter::publish ( Gear  new_position,
ros::Time  cycle_time 
) [inline]

Definition at line 203 of file device_impl.h.

virtual DeviceState device_interface::DeviceShifter::state ( ros::Time  recently  )  [inline, virtual]

Implements device_interface::DeviceBase.

Definition at line 211 of file device_impl.h.

Gear device_interface::DeviceShifter::value (  )  [inline]

Definition at line 219 of file device_impl.h.


Member Data Documentation

art_msgs::Shifter device_interface::DeviceShifter::cmd_ [private]

Definition at line 231 of file device_impl.h.

art_msgs::Shifter device_interface::DeviceShifter::msg_ [private]

Definition at line 232 of file device_impl.h.

ros::Publisher device_interface::DeviceShifter::pub_ [private]

Definition at line 233 of file device_impl.h.

Definition at line 235 of file device_impl.h.

Definition at line 234 of file device_impl.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines


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