rosflight / rosflight_ros_pkgs

ROS packages for the ROSflight autopilot
http://rosflight.org/
BSD 3-Clause "New" or "Revised" License
86 stars 56 forks source link

Can rosflight fly a swarm of drone? #100

Closed JonathanPlasse closed 4 years ago

JonathanPlasse commented 4 years ago

Hi, I have a project where I want to fly a swarm of drone. Can ROSflight handle multiple drone?

superjax commented 4 years ago

I'm not sure what you mean, but I can think of a few ways to accomplish this. They are all going to be difficult, and may require modifying the firmware.

The first is to have an onboard computer for each MAV with some kind of WiFi connection. Each onboard computer could have it's own rosflight_io running in a separate namespace. I could see that working.

The second would be to use a 3DR radio for each MAV, and fly them all remotely through the 3DR connection with multiple copies of rosflight_io running on the base computer.

The one big thing I can see is that ROSflight does not support arming the MAV without an RC connection. This is a safety feature, but it means that to fly a swarm, you'd need an RC transmitter for each MAV, which could get really expensive. If I were going to fly a swarm of MAVs, I'd probably just change the firmware so it didn't require an RC connection. ;).

JonathanPlasse commented 4 years ago

Thanks, It is the first approach that I would like to take. Another question, Is it possible to simulate multiple vehicle with SIL in Gazebo?

superjax commented 4 years ago

Totally, you just need to ensure the UDP ports that each agent uses to communicate with the firmware running in SIL is unique and namespaced everything correctly.

@jacobmoroni has done this, you could ask him about it.