Gamepad_teleop_ROS
Node to publish Twist messages to '/cmd_vel' topic, taking input from a gamepad
How to use:
- Put the folder into the /src folder in the catkin workspace
- Run catkin_make
- Source the setup.bash file
- User 'rosrun' to run the program
- Remember to set the '/joy_node/dev' parameter to '/dev/input/jsX' (X--> depends on your device)
- 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
- D-Pad is used to increase/decrease the maximum linear/angular speed.
Up/Down - Linear speed
Left/Right - Angular speed
- Thumb sicks are used to control direction.