Hi all, I am using ROS Kinetic on Ubuntu 16.04 and am trying to fly and control multiple drones at the same time running a single script using ardrone_autonomy. I manage to connect to the two drones, and get 2 separate nodes created for 2 separate instances of ardrone_driver.
My problem is that the different topics of ardrone_autonomy only have a single instance. This means that all my drones read off of the same topics (i.e. all drones read off of the same /ardone/takeoff topic) and thus get the same commands. I would like to have a way to give each drone a different command, either by having 2 separate takeoff topics and cmd_vel topic and land topics and so on, or by any other means possible.
All the posts I can find are from 2014 or older, and I am not sure if any significance changes have been made since, and where this stands now.
Has anyone gotten this working? Any help would be greatly appreciated.
Originally posted by oha on ROS Answers with karma: 35 on 2018-03-27
Post score: 0
Original comments
Comment by melhazzouri on 2018-06-25:
Hi man,
I am trying to do the same thing for a school project. I am new to ROS and I honestly do not know where to start. Would you be able to share what you did?
Thanks in advance!
Comment by oha on 2018-06-26:
For what I did to get the multiple drones working I tried to explain the best I could in the answer below. I will be glad to tell you how I got started in general and recommend some things, but I will need you to post a question so I am not limited on characters and stuff when answering.
Comment by oha on 2018-06-26:
Link your post here or tell me the numb er of the post (you can see it in the URL) so that I can find it.
Comment by melhazzouri on 2018-06-26:
Hi,
https://answers.ros.org/question/295383/controlling-multiple-drones-using-ros/
The question is called "Controlling multiple drones using ROS and the number is 295383.
Thank you!!
Comment by ahmad abid on 2018-08-22:
hi oha !
can yoou please send me your current code in which all the drones follow the same command?
because im currently at this initial stage and want to have any sort of code for multi drones to work in swarm...pl send me all the files(codes) including launch file and others too.
thx in advance :)
Comment by oha on 2018-08-23:
I guide I made with some code can be found here: https://gitlab.com/ohanoch/MSS_Guides/blob/master/Drones/launching_multiple_ardrones_guide.pdf and code I used to implement it can be found here: https://gitlab.com/ohanoch/MSS_drone_camera_project