Opens, reads from and publishes joystick events.
More...
|
| | Joystick () |
| |
| int | main (int argc, char **argv) |
| | Opens joystick port, reads from port and publishes while node is active. More...
|
| |
| void | set_feedback (const sensor_msgs::JoyFeedbackArray::ConstPtr &msg) |
| |
|
| typedef std::unique_ptr< DIR, decltype(&closedir)> | dir_ptr |
| |
Opens, reads from and publishes joystick events.
Definition at line 60 of file joy_node.cpp.
◆ dir_ptr
◆ Joystick()
◆ diagnostics()
Publishes diagnostics and status.
Definition at line 87 of file joy_node.cpp.
◆ get_dev_by_joy_name()
| std::string Joystick::get_dev_by_joy_name |
( |
const std::string & |
joy_name | ) |
|
|
inlineprivate |
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 119 of file joy_node.cpp.
◆ get_ff_dev()
| std::string Joystick::get_ff_dev |
( |
const std::string & |
joy_dev | ) |
|
|
inlineprivate |
Autodetection of the force feedback device. If autodetection fails, returns empty string.
- Parameters
-
| joy_dev | A nonempty path to the joy device we search force feedback for. |
Definition at line 179 of file joy_node.cpp.
◆ main()
| int Joystick::main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
|
inline |
Opens joystick port, reads from port and publishes while node is active.
Definition at line 300 of file joy_node.cpp.
◆ set_feedback()
| void Joystick::set_feedback |
( |
const sensor_msgs::JoyFeedbackArray::ConstPtr & |
msg | ) |
|
|
inline |
◆ autorepeat_rate_
| double Joystick::autorepeat_rate_ |
|
private |
◆ coalesce_interval_
| double Joystick::coalesce_interval_ |
|
private |
◆ deadzone_
| double Joystick::deadzone_ |
|
private |
◆ default_trig_val_
| bool Joystick::default_trig_val_ |
|
private |
◆ diagnostic_
◆ event_count_
| int Joystick::event_count_ |
|
private |
◆ ff_fd_
◆ joy_dev_
| std::string Joystick::joy_dev_ |
|
private |
◆ joy_dev_ff_
| std::string Joystick::joy_dev_ff_ |
|
private |
◆ joy_dev_name_
| std::string Joystick::joy_dev_name_ |
|
private |
◆ joy_effect_
| struct ff_effect Joystick::joy_effect_ |
|
private |
◆ lastDiagTime_
| double Joystick::lastDiagTime_ |
|
private |
◆ nh_
◆ open_
◆ pub_
◆ pub_count_
◆ sticky_buttons_
| bool Joystick::sticky_buttons_ |
|
private |
◆ update_feedback_
| bool Joystick::update_feedback_ |
|
private |
The documentation for this class was generated from the following file:
joy
Author(s): Morgan Quigley, Brian Gerkey, Kevin Watts, Blaise Gassend
autogenerated on Thu Dec 5 2024 03:18:09