Controlling your robot with joystick and reading data from it

First, install the necessary package:

make sure your joystick is working:

also, make sure your controller has correct permissions:

The permission on the last column must be rw, if it “–” like this:

then correct the permission:

run the Joy node and roscore:

The joystick data are being published under /joy topic. To see the data:

to use the joystick  in your code follow this guideline:

full code at my Github.

Leave a Reply

avatar
  Subscribe  
Notify of