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

multiple hector_quadrotor flying simultaneously [closed]

asked 2014-10-29 15:20:38 -0500

Humberto Beltrao gravatar image

I am using hector_quadrotor package but I need to control multiple uavs at the same time. Could someone help me on solving this issue? I can control if only one uav is used, but not many of them simultaneously

Thanks in advance

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Humberto Beltrao
close date 2015-01-22 06:47:39.087860

Comments

Controlling multiple robots is not for the faint of heart. Do you have automated control software that you want to connect to multiple robots or do you have a manual human interface that you want to use to control multiple robots?

Kurt Leucht gravatar image Kurt Leucht  ( 2014-11-03 14:39:04 -0500 )edit

An automated control software is aimed to be used to. Initially, I am trying to use Gazebo to make them (the robots) act like particles, changing info with one another and so on. I've got the spawning of multiple uavs successfully on the simulator, but not their flight at the same time.

Humberto Beltrao gravatar image Humberto Beltrao  ( 2014-11-03 18:04:34 -0500 )edit

For completeness sake, what version of ROS/Gazebo are you using? How did you install the hector_quadrotor_gazebo package (e.g. apt-get, source etc.)? Were you successful and did the answer below help you?

SL Remy gravatar image SL Remy  ( 2015-01-15 04:25:27 -0500 )edit
1

I'm using Gazebo 2.x version hosted by ROS Indigo. I got the hector package following the package summary described on ROS.org . And yes, the answer below worked for me.

Humberto Beltrao gravatar image Humberto Beltrao  ( 2015-01-19 21:56:02 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-11-04 08:46:54 -0500

updated 2014-11-04 08:52:17 -0500

Assuming that you have some automated robot control software that reads sensors from one robot and sends control commands to one robot, in order to scale up to multiple robots, you need to have all the communication Topics use a different or unique namespace.

So instead of having the IMU sensor published on a Topic called /imu, for example, just launch that publisher node with a robot name argument or use Topic name remapping from the command line or from a launch file so the IMU data ends up published on Topic name /robot1/imu instead. Of course, your automated robot control software will also need to be launched with an argument or Topic name remapping so it will listen for /robot1/imu rather than /imu. This means that you will launch as many automated robot control nodes as you have robots.

Here is a picture that summarizes the scheme. Green indicates sensor Topics and red indicates command or control Topics.

image description

edit flag offensive delete link more

Comments

Thanks so much for the detailed information. I'll let the community to know the result as soon as I try the solution.

Humberto Beltrao gravatar image Humberto Beltrao  ( 2014-11-04 10:43:29 -0500 )edit

hector_quadrotor should definitely support this. There is a spawn_two_quadrotors.launch example in the hector_quadrotor_gazebo package, but I have not used it recently. Other nodes controlling the quadrotors have to be run in the respective namespace.

Johannes Meyer gravatar image Johannes Meyer  ( 2014-11-04 16:36:55 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2014-10-29 15:20:38 -0500

Seen: 913 times

Last updated: Nov 04 '14