-
Notifications
You must be signed in to change notification settings - Fork 200
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
C. Andy Martin
committed
Feb 20, 2017
1 parent
3e39c13
commit 449c1ff
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters