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 publish_velocity ()

Private Attributes

double a_scale_
double autorepeat_rate_
double coalesce_interval_
sensor_msgs::Joy current_joy_message_
double deadzone_
int event_count_
std::string joy_dev_
double l_scale_
double lastDiagTime_
ros::NodeHandle nh_
bool open_
int pub_count_
ros::Timer velocity_publish_timer_
ros::Publisher velocity_publisher_

Detailed Description

Opens, reads from and publishes joystick events.

Definition at line 44 of file Joystick.cpp.


Constructor & Destructor Documentation

Joystick::Joystick ( ) [inline]

Definition at line 86 of file Joystick.cpp.


Member Function Documentation

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

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

Definition at line 89 of file Joystick.cpp.

void Joystick::publish_velocity ( ) [inline, private]

Definition at line 63 of file Joystick.cpp.


Member Data Documentation

double Joystick::a_scale_ [private]

Definition at line 57 of file Joystick.cpp.

double Joystick::autorepeat_rate_ [private]

Definition at line 51 of file Joystick.cpp.

double Joystick::coalesce_interval_ [private]

Definition at line 52 of file Joystick.cpp.

sensor_msgs::Joy Joystick::current_joy_message_ [private]

Definition at line 61 of file Joystick.cpp.

double Joystick::deadzone_ [private]

Definition at line 50 of file Joystick.cpp.

int Joystick::event_count_ [private]

Definition at line 53 of file Joystick.cpp.

std::string Joystick::joy_dev_ [private]

Definition at line 49 of file Joystick.cpp.

double Joystick::l_scale_ [private]

Definition at line 58 of file Joystick.cpp.

double Joystick::lastDiagTime_ [private]

Definition at line 55 of file Joystick.cpp.

Definition at line 47 of file Joystick.cpp.

bool Joystick::open_ [private]

Definition at line 48 of file Joystick.cpp.

int Joystick::pub_count_ [private]

Definition at line 54 of file Joystick.cpp.

Definition at line 60 of file Joystick.cpp.

Definition at line 59 of file Joystick.cpp.


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


mr_tools
Author(s): Igor Makhtes
autogenerated on Fri Aug 28 2015 11:35:35