WG06 Class Reference

#include <wg0x.h>

Inheritance diagram for WG06:
Inheritance graph
[legend]

List of all members.

Public Types

enum  { PRODUCT_CODE = 6805006 }

Public Member Functions

void diagnostics (diagnostic_updater::DiagnosticStatusWrapper &d, unsigned char *)
 For EtherCAT device that only publish one EtherCAT Status message. If sub-class implements multiDiagnostics() then diagnostics() is not used.
int initialize (pr2_hardware_interface::HardwareInterface *, bool allow_unprogrammed=true)
void packCommand (unsigned char *buffer, bool halt, bool reset)
bool unpackState (unsigned char *this_buffer, unsigned char *prev_buffer)
 WG06 ()
 ~WG06 ()

Private Attributes

realtime_tools::RealtimePublisher
< pr2_msgs::AccelerometerState > * 
accel_publisher_
pr2_hardware_interface::Accelerometer accelerometer_
unsigned accelerometer_missed_samples_
 Total of accelerometer samples that were missed.
unsigned accelerometer_samples_
 Number of accelerometer samples since last publish cycle.
bool first_publish_
uint32_t last_pressure_time_
ros::Time last_publish_time_
 Time diagnostics was last published.
bool pressure_checksum_error_
 Set true where checksum error on pressure data is detected, cleared on reset.
realtime_tools::RealtimePublisher
< pr2_msgs::PressureState > * 
pressure_publisher_
pr2_hardware_interface::PressureSensor pressure_sensors_ [2]

Detailed Description

Definition at line 673 of file wg0x.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
PRODUCT_CODE 

Definition at line 682 of file wg0x.h.


Constructor & Destructor Documentation

WG06::WG06 (  ) 

Definition at line 230 of file wg0x.cpp.

WG06::~WG06 (  ) 

Definition at line 242 of file wg0x.cpp.


Member Function Documentation

void WG06::diagnostics ( diagnostic_updater::DiagnosticStatusWrapper &  d,
unsigned char *  buffer 
) [virtual]

For EtherCAT device that only publish one EtherCAT Status message. If sub-class implements multiDiagnostics() then diagnostics() is not used.

Parameters:
d Diagnostics status wrapper.
buffer Pointer to slave process data.

Reimplemented from WG0X.

Definition at line 2613 of file wg0x.cpp.

int WG06::initialize ( pr2_hardware_interface::HardwareInterface *  hw,
bool  allow_unprogrammed = true 
) [virtual]

Reimplemented from WG0X.

Definition at line 389 of file wg0x.cpp.

void WG06::packCommand ( unsigned char *  buffer,
bool  halt,
bool  reset 
) [virtual]
Parameters:
reset when asserted this will clear diagnostic error conditions device safety disable
halt while asserted will disable actuator, usually by disabling H-bridge

Reimplemented from WG0X.

Definition at line 781 of file wg0x.cpp.

bool WG06::unpackState ( unsigned char *  this_buffer,
unsigned char *  prev_buffer 
) [virtual]

Reimplemented from WG0X.

Definition at line 840 of file wg0x.cpp.


Member Data Documentation

realtime_tools::RealtimePublisher<pr2_msgs::AccelerometerState>* WG06::accel_publisher_ [private]

Definition at line 699 of file wg0x.h.

pr2_hardware_interface::Accelerometer WG06::accelerometer_ [private]

Definition at line 688 of file wg0x.h.

Total of accelerometer samples that were missed.

Definition at line 693 of file wg0x.h.

unsigned WG06::accelerometer_samples_ [private]

Number of accelerometer samples since last publish cycle.

Definition at line 692 of file wg0x.h.

bool WG06::first_publish_ [private]

Definition at line 695 of file wg0x.h.

uint32_t WG06::last_pressure_time_ [private]

Definition at line 697 of file wg0x.h.

ros::Time WG06::last_publish_time_ [private]

Time diagnostics was last published.

Definition at line 694 of file wg0x.h.

Set true where checksum error on pressure data is detected, cleared on reset.

Definition at line 690 of file wg0x.h.

realtime_tools::RealtimePublisher<pr2_msgs::PressureState>* WG06::pressure_publisher_ [private]

Definition at line 698 of file wg0x.h.

pr2_hardware_interface::PressureSensor WG06::pressure_sensors_[2] [private]

Definition at line 687 of file wg0x.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines


ethercat_hardware
Author(s): Maintained by Derek King (email: dking@willowgarage.com)
autogenerated on Fri Jan 11 09:11:23 2013