Drone Show Scripts on github?

Discussions about all things Bitcraze
Post Reply
whizzle
Beginner
Posts: 3
Joined: Sat Feb 08, 2020 4:05 pm

Drone Show Scripts on github?

Post by whizzle » Sun Feb 09, 2020 4:29 pm

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!!!



kristoffer
Bitcraze
Posts: 176
Joined: Tue Jun 30, 2015 7:47 am

Re: Drone Show Scripts on github?

Post by kristoffer » Mon Feb 10, 2020 11:17 am

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.

whizzle
Beginner
Posts: 3
Joined: Sat Feb 08, 2020 4:05 pm

Re: Drone Show Scripts on github?

Post by whizzle » Mon Feb 10, 2020 11:50 am

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?

kristoffer
Bitcraze
Posts: 176
Joined: Tue Jun 30, 2015 7:47 am

Re: Drone Show Scripts on github?

Post by kristoffer » Tue Feb 11, 2020 9:02 am

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

whizzle
Beginner
Posts: 3
Joined: Sat Feb 08, 2020 4:05 pm

Re: Drone Show Scripts on github?

Post by whizzle » Tue Feb 11, 2020 8:13 pm

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 ;-)

Post Reply