Modified from https://github.com/ua-sista/ua-ros-pkg/tree/master/arrg/ua_drivers/joystick_remapper
Tutorial: http://wiki.ros.org/joystick_remapper/Tutorials/UsingJoystickRemapper
A ROS package for button and axis mapping on to a different joystick
PythonBSD-3-Clause