$search

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

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

Definition at line 184 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 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.


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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends Defines


art_pilot
Author(s): Austin Robot Technology, Jack O'Quin
autogenerated on Fri Mar 1 14:14:16 2013