strands-project/scitos_apps — pull request #3 by cdondrup (2013-07-05 13:47:56+00:00)
Title: New features for teleop_joystick

New features:
* The gamepad can now only be run in X mode (little switch between the shoulder buttons) to ensure that you always use the right button layout. If you put in D mode, the teleop_joystick will print an error message and won't do anything until it is switched back to X mode. The X and D mode have caused some confusion in the past because they change the layout of the axis and action buttons and the robot and all connected programmes behave unexpectedly.
* The teleop_joystick node is now publishing a custom massage for the action buttons. This message consists of 4 bool's (one for every button) and is published on /teleop_joystick/action_buttons. This has imho 2 major advantages over directly subscribing to the /joy topic to listen for buttons: 1. Above mentioned safety feature ensures that you always get a true for button A when button A is pressed and won't get confused because of the different layouts and 2. it is more convenient to use because of the unambiguous naming.

Bug fix:
The namespace of the teleop_joystick is now named accordingly and not rumblepad_control like before.