Ask Your Question
0

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
4

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

Comments

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 imageangelos.p ( 2015-07-29 07:08:38 -0500 )edit

Glad it helped :)

Boris gravatar imageBoris ( 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

2 followers

Stats

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

Seen: 849 times

Last updated: Jul 28 '15