This package will allow you to control your DeepRacer via joystick using ROS.
Run the launch file
roslaunch deepracer_joy deepracer_joy.launch joystick_device=/dev/input/js0
On linux:
cd /dev/input/
ls
My device name is /dev/input/js0
.
You can test your gamepad using jstest
sudo apt-get install jstest-gtk
sudo jstest --normal /dev/input/js0
Note: You may need to update the permissions of your device to read/write
sudo chmod a+rw /dev/input/js0
I've included an example configuration file that I use with my wired Logitech gamepad.
For the DeepRacer you need to both enable the control mode with the /enable_state
rosservice and you will need to publish your commands to /manual_drive
.