Collection No 1


Hacking a Multi-User Game Drone Race

frog Milan Design Technologists reflect on creating a drone racetrack and multiuser game--from scratch.

No one at our frog Milan studio knew much about Black Friday until we saw a super discounted Parrot Mini-Drone on Amazon. We bought it with the idea to teach our kids how to use it, but their interest didn’t last long. So we brought it back to the studio with a vision. At first glance, the drone is beautiful and well assembled. It works flawlessly, but driving it becomes a little bit pointless once you get used to it. We wanted to make it fun again and thought about ways to transform a single-user drone into a multi-user game. It took us, Design Technologists at frog, an afternoon to find a source of inspiration, and to decide how to proceed. We landed on the idea to create a sort of augmented reality version of an iconic Nintendo game: Super Mario Kart.

First thing we needed was an app. In this case, specifically, we needed to create a drone remote controller app, which would apply the game rules, provide the sensors input, and establish the augmented reality experience. It would be an Android app since the openness of the platform lends itself to quicker development iterations and complex hacks (if you can master its subtleties).

First step was on the networking configuration: the drones Linux-based OS needed to connect to a 5GHz Wi-Fi so that multiple drones could connect to the same network. As it turned out, the drones put the network under stress, since they simply transmit uncompressed frames of their onboard camera video stream. It’s a lot of real-time data to handle and we had to accurately optimize the configuration parameters of the Wi-Fi.

After securing connectivity from our remote app to the drone, the next challenge was enabling the drones to “sense” each other – a quick study of current state-of-the-art indoor positioning technologies pushed us towards a computer vision solution, leveraging the onboard camera.

Leveraging the popular OpenCV library we scouted a couple of approaches, such as shape recognition and color blob recognition, but they were lacking in either correctness or performance, as we needed them to work in the fast-paced environment of a flashy racing course. The best approach we found was relying on fiducial markers, which are quite robust towards varying light conditions and changes of the field-of-vision. The ARToolkit framework could be bent to our purposes, and finally we were able to “see” the drones (as opposed to just a matrix of pixels over the screen).


One by one the pieces of the puzzle fell into place and the codebase of the Android app was growing into what was essentially a real-time data processing pipeline. We would get the video frame from the drone, process it, find the markers, check the aim, process also the input events (touches and phone tilt) to both pilot the drone and implement the shooting mechanics.

Writing this kind of logic with the tools of standard Android programming would be cumbersome and error prone. Java is a language we love, but it starts to show its age, and a callback-based programming paradigm quickly spins out in terms of asynchronous complexity and pipeline stage handling – we still have a target of a 60 fps experience.

Reactive Extensions is a paradigm we embraced years ago in the context of mobile app development, and it shines in challenges like this. We paired that with the emergent Kotlin, a modern language that fits particularly well with Android, and we got a very expressive platform to build our codebase, dealing with different sources and sinks of asynchronous data, performing complex calculations, all without stalling the graphics pipeline and keeping a high framerate. All of this translates into an enjoyable gaming experience.

Drones Race instructions-01

In the end, we had a performing network, a drone remote control app, a computer vision algorithm all in place, tightly knit by a reactive-first codebase. All that was left was the real, pure fun of coding the game rules and triggers! Targeting, shooting, track bonuses and maluses: it was time to get real.

Once the Android remote app software was functional, we had to start working on the drone hardware. We had two goals: we wanted to differentiate each drone, in order to make them easily recognizable, and we wanted to create a design that could accommodate the fiducial markers in a nice way. The frog Milan Industrial Design team got involved, and after a couple of iterations, the team came up with a solution able to reach both our goals. They created a 3D printed “shield” we could easily attach and remove (in order to easily replace batteries) with a large space on the back of the drones to accommodate the 45mm x 45mm markers, without changing the driving experience.


Processed with VSCO with kk2 preset

After a few tests we realized that improving the game experience meant helping the drivers recognize the circuit. The ID team helped us by designing and building a cardboard race track able to drive the eyes of the drone drivers.

Processed with VSCO with kk2 preset


After a few weeks of hacking, developing, and testing we finally finished our project, and were ready to host the first frog drone race. In one evening we hosted more than 23 lap races, giving around 100 people the chance to test our game. As with all remarkable achievements, the collaborative effort between frog’s Technology, Industrial Design, and Visual Design disciplines transformed a nerdy toy and a fuzzy game concept into a multiplayer augmented reality gaming experience.



All the code is available on frog’s GitHub.

Want to learn more about what we do? Get in touch.


Simone Lippolis

Simone started writing software when COBOL was a hype word. Now his interests span from web-bots to data-visualization to embedded applications and IOT.


Emanuele Di Saverio

Emanuele pushes pixels and data, in and out of boxes that he draws on whiteboards. He then builds teams to iteratively craft those drawings into computer programs.

Write a Comment

Если размеры не стандартные — то уж как получится, раскраивайте так, чтобы расход ткани был меньше или руководствуйтесь рисунком. про постельное белье Маленькая страна 1,5 спальное 1210 руб. Контуры готовой выкройки обозначаются сплошной линией, а линия стачивания пунктирной. покрывала купить Постельное бельё из бязи должно быть у каждой хозяйки в доме.
AlyceAnymn, 2017-03-31 10:20:56
Подольская швейная машина не всегда есть возможность купить новую красивую швейную машинку, даже недорогую, но не всегда это и нужно. бюстгальтеры милавица Вы можете выбрать для пошива постельного белья такие ткани как бязь, поплин, перкаль и др. В моем городе есть техникум, где обучают швей. постельное белье открыть Если вам потребуется сделать подгибку см.
AlyceAnymn, 2017-03-22 13:43:42
Заболевание печени, симптомы и так далее это очень важно Заболевание печени, симптомы...
Josephredly, 2017-02-13 12:26:04
После прокладки кабельной инфраструктуры действует принцип Plug and Play – это значительно сокращает время на установку оборудования и уменьшает количество кабеля, что положительно влияет на надежность, и вносит эстетическую составляющую, которая окажется немаловажной, например, при строительстве системы безопасности в квартирах и домах или небольших магазинах gsm сигнализация. В современных аналоговых системах аналоговой відеоспостереження составляющей имеется не так уж много. Камера и регистратор давно превратились в цифровые устройства, а аналоговым остался сигнал в кабеле между ними. Как показывает опыт, долгосрочные прогнозы в ИТ-сфере имеют тенденцию не сбываться. Если исходить из общей динамики рынка за последние годы, то доля IP-видеонаблюдение будет расти. Выбор разрешения камер должен в первую очередь быть обоснован спецификой применения. Несмотря на то, что маркетинговая гонка мегапикселей весьма успешно мигрировала с рынка цифровых фотоаппаратов на рынок видеонаблюдения, а конечные потребители часто особенно радуются сочной картинке высокого разрешения, применение камер высокого разрешения не всегда оправдано.Таким образом, разница в задержке сигнала заключается во времени, которое уходит на пакетизацию видеопотока и его транспортировку в сети. В небольших сетях с правильно спроектированной и построенной инфраструктурой речь идет о задержке, не превышающей нескольких (2–3) сотен миллисекунд, которая не критична, поскольку видеонаблюдение в редких случаях можно расценивать, как систему реального времени, которая бы требовала мгновенной реакции. В сложных системах с удаленным доступом, где возможны значительные сетевые задержки, аналоговое решение почти всегда окажется сложнореализуемым.
PetrHum, 2017-01-28 07:56:41
Всем хай! Нужна ваша помощь. Подскажите живой ресурс для закачки дров на моники. Необходимы архаичные версии, на популярных ресурсах тишина. Может есть своя сборка? Что-то вроде на ссылка В интернетах стало все нереальнее чета загрузить. Помощь будет вознаграждена.
ArikaMic, 2017-01-25 15:08:55

Recommended Stories