Opens, reads from and publishes joystick events. More...
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. | |
| std::string | get_dev_by_joy_name (const std::string &joy_name) |
| Returns the device path of the first joystick that matches joy_name. If no match is found, an empty string is returned. | |
Private Attributes | |
| double | autorepeat_rate_ |
| double | coalesce_interval_ |
| double | deadzone_ |
| bool | default_trig_val_ |
| diagnostic_updater::Updater | diagnostic_ |
| int | event_count_ |
| std::string | joy_dev_ |
| std::string | joy_dev_name_ |
| double | lastDiagTime_ |
| ros::NodeHandle | nh_ |
| bool | open_ |
| ros::Publisher | pub_ |
| int | pub_count_ |
| bool | sticky_buttons_ |
Opens, reads from and publishes joystick events.
Definition at line 45 of file joy_node.cpp.
| Joystick::Joystick | ( | ) | [inline] |
Definition at line 142 of file joy_node.cpp.
| void Joystick::diagnostics | ( | diagnostic_updater::DiagnosticStatusWrapper & | stat | ) | [inline, private] |
Publishes diagnostics and status.
Definition at line 65 of file joy_node.cpp.
| std::string Joystick::get_dev_by_joy_name | ( | const std::string & | joy_name | ) | [inline, private] |
Returns the device path of the first joystick that matches joy_name. If no match is found, an empty string is returned.
Definition at line 93 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 146 of file joy_node.cpp.
double Joystick::autorepeat_rate_ [private] |
Definition at line 55 of file joy_node.cpp.
double Joystick::coalesce_interval_ [private] |
Definition at line 56 of file joy_node.cpp.
double Joystick::deadzone_ [private] |
Definition at line 54 of file joy_node.cpp.
bool Joystick::default_trig_val_ [private] |
Definition at line 51 of file joy_node.cpp.
Definition at line 62 of file joy_node.cpp.
int Joystick::event_count_ [private] |
Definition at line 57 of file joy_node.cpp.
std::string Joystick::joy_dev_ [private] |
Definition at line 52 of file joy_node.cpp.
std::string Joystick::joy_dev_name_ [private] |
Definition at line 53 of file joy_node.cpp.
double Joystick::lastDiagTime_ [private] |
Definition at line 60 of file joy_node.cpp.
ros::NodeHandle Joystick::nh_ [private] |
Definition at line 48 of file joy_node.cpp.
bool Joystick::open_ [private] |
Definition at line 49 of file joy_node.cpp.
ros::Publisher Joystick::pub_ [private] |
Definition at line 59 of file joy_node.cpp.
int Joystick::pub_count_ [private] |
Definition at line 58 of file joy_node.cpp.
bool Joystick::sticky_buttons_ [private] |
Definition at line 50 of file joy_node.cpp.