ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Joysticks priority setting

asked 2015-01-06 03:52:47 -0500

mree gravatar image

Hi everyone,

I'm trying to set up a priority between two joysticks which from different computers to control a robot. Now, the robot will follow the latest signal come from the joysticks. I want to set a main joystick and a second joystick.


edit retag flag offensive close merge delete


Are you using them to send cmd_vel twist messages?

tonybaltovski gravatar image tonybaltovski  ( 2015-01-06 04:07:56 -0500 )edit

Yes, I have a node to subscribe the topic "joy", So I'm thinking is it possible to edit the joy_node to public different topic name? like joy1 joy2 I found /opt/ros/groovy/share/joy but I dont know how to edit

mree gravatar image mree  ( 2015-01-06 04:13:32 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-01-06 04:24:41 -0500

updated 2015-01-06 04:25:59 -0500

You can use a launch file to assign different namespaces to the nodes as shown in this tutorial under 1.4.2. Also, you can use cmd_vel_mux which allows you to assign priority levels to cmd_vel messages which will block conflicting messages by dropping one with lower priority.

edit flag offensive delete link more


Thank you very much, I'm trying with these. Really Really Thanks.

mree gravatar image mree  ( 2015-01-06 04:57:48 -0500 )edit

Question Tools

1 follower


Asked: 2015-01-06 03:52:47 -0500

Seen: 248 times

Last updated: Jan 06 '15