Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add inactivity timer: if no activity after timeout, zero twist
Add an inactivity timer. Some wireless joysticks constantly transmit data (such as the Play Station Dualshock4). In such cases, it is possible to determine that the joystick is out of range and stop motion by the fact that activity slows down or ceases. This is useful for teleop in the case that the robot leaves range and a twist gets stuck commanding the robot to move without stopping. In this case, the inactivity timeout would detect no more messages after the threshold and send a zero twist (just as if the enable button were released). The default is for the inactivity timeout to be disabled. It can be enabled by setting the inactivity_timeout parameter.
- Loading branch information