Page 1 of 1

Drone Show Scripts on github?

Posted: Sun Feb 09, 2020 4:29 pm
by whizzle
Are the used scripts for the very nice swarm drone show on github?
https://www.youtube.com/watch?v=ZFve_X3VD5o

Thank you for your great work, crazyflie is really awesome!!!

Re: Drone Show Scripts on github?

Posted: Mon Feb 10, 2020 11:17 am
by kristoffer
Unfortunately not, it is pretty hackish and would be hard to understand or change.
If you want to do something similar, the best starting point is probably examples/swarm/swarmSequence.py in the python lib.

Re: Drone Show Scripts on github?

Posted: Mon Feb 10, 2020 11:50 am
by whizzle
Hi Kristoffer,
thank you for your quick reply.
By hackish you mean lots unstructured of code highly optimised for the given environment?

My problem in understanding is that I think it is not enough to simply let the drones fly to specific points but also define the path in between as smooth as possible by maybe using becier curves or sth. alike. How did you overcome this kind of problematic?

Re: Drone Show Scripts on github?

Posted: Tue Feb 11, 2020 9:02 am
by kristoffer
By hackish you mean lots unstructured of code highly optimised for the given environment?
Something like that. And also modified without clean up a couple of times which makes it hard to understand.
My problem in understanding is that I think it is not enough to simply let the drones fly to specific points but also define the path in between as smooth as possible by maybe using becier curves or sth. alike. How did you overcome this kind of problematic?
The script actually only uses straight line movements (go_to in the high level commander).
It is possible to do more complex trajectories using the polynomial format (there is some information in this blog post https://www.bitcraze.io/2019/08/creatin ... er-curves/) but I did not have the time when I wrote my script.

There is another video with (almost) the same script but with the lighthouse positioning system instead of LPS https://youtu.be/BggnSDj3baE
It might be easier to see the movements in this video

Re: Drone Show Scripts on github?

Posted: Tue Feb 11, 2020 8:13 pm
by whizzle
Ah ok awesome, nice to hear. I did not imagine you used "straight lines" for those videos.

Yeah, I think Lighthouse is the future ;-)
I would like to get some Base Stations but I might wait for v2.0 to be supported ;-)