Skip to content

Simple ROS node that connects PS4 controller (Sony Dualshock 4) to a duckiebot to control it remotely.

License

Notifications You must be signed in to change notification settings

PXLRoboticsLab/Duckiebot_PS4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Duckieshock 4

Simple ROS node that connects PS4 controller (Sony Dualshock 4) to a duckiebot to control it remotely.

Getting started

Prerequisites

For this project to work you need to install the following dependencies:

  • Python 2 or 3.6
    • pyglet
  • ROS

Running the node

  1. Start roscore Docker container on duckiebot
    • should be started automatically: duckietown/duckiebot-interface:master19
  2. Start joystick demo on duckiebot
    • dts duckiebot demo --demo_name joystick --duckiebot_name <duckiebot name>
    • ... or through Portainer interface
  3. export ROS_MASTER_URI=http://<duckie IP>:11311
  4. export ROS_IP=<computer IP>
  5. Plug in PS4 controller with USB
  6. 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)

License

This project is licensed under the MIT License - see the LICENSE file for details.

Duckiebot version

  • Tested with version master18 and master19

Authors

About

Simple ROS node that connects PS4 controller (Sony Dualshock 4) to a duckiebot to control it remotely.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages