Public Member Functions | Private Member Functions | Private Attributes
Joystick Class Reference

Opens, reads from and publishes joystick events. More...

List of all members.

Public Member Functions

 Joystick ()
int main (int argc, char **argv)
 Opens joystick port, reads from port and publishes while node is active.

Private Member Functions

void diagnostics (diagnostic_updater::DiagnosticStatusWrapper &stat)
 Publishes diagnostics and status.

Private Attributes

double autorepeat_rate_
double coalesce_interval_
double deadzone_
diagnostic_updater::Updater diagnostic_
int event_count_
std::string joy_dev_
double lastDiagTime_
double max_period_with_no_events_
ros::NodeHandle nh_
bool open_
ros::Publisher pub_
int pub_count_

Detailed Description

Opens, reads from and publishes joystick events.

Modified by Thomas de Candia. Add kind of a manual heartbeat. If no joystick event is received within a certain period of time, no joystick message will be sent even with auto repeat on.

Definition at line 49 of file joy_node.cpp.


Constructor & Destructor Documentation

Joystick::Joystick ( ) [inline]

Definition at line 90 of file joy_node.cpp.


Member Function Documentation

Publishes diagnostics and status.

Definition at line 67 of file joy_node.cpp.

int Joystick::main ( int  argc,
char **  argv 
) [inline]

Opens joystick port, reads from port and publishes while node is active.

Definition at line 94 of file joy_node.cpp.


Member Data Documentation

double Joystick::autorepeat_rate_ [private]

Definition at line 56 of file joy_node.cpp.

double Joystick::coalesce_interval_ [private]

Definition at line 57 of file joy_node.cpp.

double Joystick::deadzone_ [private]

Definition at line 55 of file joy_node.cpp.

Definition at line 64 of file joy_node.cpp.

int Joystick::event_count_ [private]

Definition at line 59 of file joy_node.cpp.

std::string Joystick::joy_dev_ [private]

Definition at line 54 of file joy_node.cpp.

double Joystick::lastDiagTime_ [private]

Definition at line 62 of file joy_node.cpp.

Definition at line 58 of file joy_node.cpp.

Definition at line 52 of file joy_node.cpp.

bool Joystick::open_ [private]

Definition at line 53 of file joy_node.cpp.

Definition at line 61 of file joy_node.cpp.

int Joystick::pub_count_ [private]

Definition at line 60 of file joy_node.cpp.


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


rmp_teleop
Author(s):
autogenerated on Wed Aug 26 2015 16:24:37