|
Gesture Based Controller
This package maps linear acceleration from a wrist worn IMU to linear and angular velocity for a mobile robot
|
Gesture Controller class subscribes to the "/inertial" topic and publishes to "/cmd_vel" the velocity commands generated using wrist linear accelerations. More...
Public Member Functions | |
| def | __init__ |
| Initializer function. More... | |
| def | callback_continuos_control |
| Callback manager. More... | |
| def | run |
| Controller starter. More... | |
| def | acceleration_reset |
| Reset velocities to zero. More... | |
| def | reset |
| Shutdown handler. More... | |
| def | update |
| Mapping of acceleration to robot angular and linear velocities. More... | |
Public Attributes | |
| update_rate | |
| Node frequency (Hz) | |
| linear_coefficent | |
| Mapping coefficient for linear velocity. | |
| angular_coefficent | |
| Mapping coefficient for angular velocity. | |
| last_acc | |
| Stores the last acceleration received by the node. | |
| last_time | |
| Time instant in which the last acceleration message arrived. | |
| pub_twist | |
| Velocity commands publisher. | |
| pub_mode | |
| Control modality publisher. | |
Gesture Controller class subscribes to the "/inertial" topic and publishes to "/cmd_vel" the velocity commands generated using wrist linear accelerations.
Definition at line 8 of file gb_controller.py.
| def gb_controller.GestureController.__init__ | ( | self | ) |
Initializer function.
| self | The object pointer |
Definition at line 13 of file gb_controller.py.
| def gb_controller.GestureController.acceleration_reset | ( | self | ) |
Reset velocities to zero.
| self | The object pointer |
Definition at line 67 of file gb_controller.py.
| def gb_controller.GestureController.callback_continuos_control | ( | self, | |
| data | |||
| ) |
Callback manager.
| self | The object pointer |
| data | The ROS message received |
Definition at line 37 of file gb_controller.py.
| def gb_controller.GestureController.reset | ( | self | ) |
| def gb_controller.GestureController.run | ( | self | ) |
Controller starter.
| self | The object pointer |
Definition at line 46 of file gb_controller.py.
| def gb_controller.GestureController.update | ( | self | ) |
Mapping of acceleration to robot angular and linear velocities.
| self | The object pointer |
Definition at line 82 of file gb_controller.py.
1.8.6