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

Multiple robot control using joystick

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

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

https://github.com/UbiquityRobotics/j...

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
0

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

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

Comments

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 -0500 )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 -0500 )edit

Question Tools

2 followers

Stats

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

Seen: 490 times

Last updated: Oct 18 '16