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

Joysticks priority setting

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

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.

Thanks

edit retag flag offensive close merge delete

Comments

Are you using them to send cmd_vel twist messages?

tonybaltovski gravatar image tonybaltovski  ( 2015-01-06 04:07:56 -0600 )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 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
2

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

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

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

Comments

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

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

Question Tools

1 follower

Stats

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

Seen: 268 times

Last updated: Jan 06 '15