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

Multiple robot control using joystick

asked 2016-10-18 01:24:26 -0600

FAIZ gravatar image

Hello everyone, I am new to ROS and was having a model for robot simulation in gazebo, the simulation has four robots and I want to control them individually using four joysticks to four USB ports. Though I was able to control one using the joystick with code given following link

by publishing on cmd_vel, I want to publish on other cmd_vel on other namespaces so that other robots can be controlled. What changes do I have to make in the codes or scale the code to solve my problem.

Thanks in advance

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-10-18 05:01:26 -0600

Sebastian Kasperski gravatar image

I think you will have to start this node 4 times then, one for each joystick, with the correct USB port set for each. You can start each in the namespace of the robot that you want to control.

edit flag offensive delete link more


Thanks Sebastian for the reply. I tried doing that and replacing cmd_vel with namespace/cmd_vel for other bots. I was not able to control other bots. Can you please explain the code to me... Thanks in advance.

FAIZ gravatar image FAIZ  ( 2016-10-18 09:56:46 -0600 )edit

I haven't used this specific node, so I cannot give any details. Have you checked "rqt_graph" for all connections? Next you should check the joy-topics and cmd-topics with "rostopic echo".

Sebastian Kasperski gravatar image Sebastian Kasperski  ( 2016-10-19 02:35:14 -0600 )edit

Question Tools



Asked: 2016-10-18 01:24:26 -0600

Seen: 485 times

Last updated: Oct 18 '16