Ask Your Question

joystick continuous cmd_vel

asked 2015-07-28 14:33:02 -0500

updated 2015-07-28 14:35:16 -0500

Dear friends,

I'm using hector_quadrotor simulation in ROS hydro with gazebo. I can successfully use an xbox joystick to move as it is described in the tutorials.

In order to move it in x of y direction I should point the stick and repeated again and again the movement to send the related message. Is it how it works or I have set something wrong? Could this be done continuously, meaning that I can keep the stick pointing in the x direction and the messages transmitted continuously?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-07-28 18:36:03 -0500

In case the joystick interfaced with ROS via joy/joy_node, you can try ~autorepeat_rate parameter as described here:

Auto-Repeat/Signal Loss

The joy_node takes an "~autorepeat_rate" parameter. If the linux kernal receives no events during the autorepeat interval, it will automatically repeat the last value of the joystick. This is an important safety feature, and allows users to recover from a joystick that has timed out.

edit flag offensive delete link more


Thanks Boris :) And yes, as the name says it is not ON(1) or OFF(0) but actually a rate in Hz!

angelos.p gravatar image angelos.p  ( 2015-07-29 07:08:38 -0500 )edit

Glad it helped :)

Boris gravatar image Boris  ( 2015-07-29 08:16:13 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2015-07-28 14:33:02 -0500

Seen: 1,170 times

Last updated: Jul 28 '15