Skip to content

ROS node to publish Twist messages taking input from a gamepad

Notifications You must be signed in to change notification settings

pyropotato/Gamepad_teleop_ROS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

Gamepad_teleop_ROS

Node to publish Twist messages to '/cmd_vel' topic, taking input from a gamepad

How to use:

  1. Put the folder into the /src folder in the catkin workspace
  2. Run catkin_make
  3. Source the setup.bash file
  4. User 'rosrun' to run the program
  5. Remember to set the '/joy_node/dev' parameter to '/dev/input/jsX' (X--> depends on your device)
  6. Use 'rostopic echo' to view the joy node's output and find the array number(position) of the required buttons and change it in the script.

Requirements:

ROS joy package should be running

The node subscribes to the joy node. Install and run it first.

Working

  1. D-Pad is used to increase/decrease the maximum linear/angular speed.

Up/Down - Linear speed

Left/Right - Angular speed

  1. Thumb sicks are used to control direction.

About

ROS node to publish Twist messages taking input from a gamepad

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published