Ros Package for joystick control
git clone to your workspace
$ catkin_make
$ roslaunch joystick_control-master jsc.launch
this starts rosserial (if you want to control robot with any microcontroller say arduino), turtlesim to test and joynode to get inputs from joystick.