Simple ROS node that connects PS4 controller (Sony Dualshock 4) to a duckiebot to control it remotely.
For this project to work you need to install the following dependencies:
- Python 2 or 3.6
- pyglet
- ROS
- Start roscore Docker container on duckiebot
- should be started automatically:
duckietown/duckiebot-interface:master19
- should be started automatically:
- Start joystick demo on duckiebot
dts duckiebot demo --demo_name joystick --duckiebot_name <duckiebot name>
- ... or through Portainer interface
export ROS_MASTER_URI=http://<duckie IP>:11311
export ROS_IP=<computer IP>
- Plug in PS4 controller with USB
python control.py duckie_hostname
- Should work with Python 3.6 as well, 3.7 is broken for now (pyglet doesn't fully support 3.7 at time of creation)
This project is licensed under the MIT License - see the LICENSE file for details.
- Tested with version master18 and master19