PX4 “Follow Me” question

Hi, I am new here and just recently learned about PX4 while researching “Follow Me” drones.

I am a software engineer, but have never done any coding for drones. I have done a bunch of reading regarding the “Follow Me” capabilities of PX4, ArduPilot, and others but I still have questions.

Below describes what I would like to do. Maybe someone can comment and tell me if it’s possible with PX4.

I am a mountain biker. I would like to have a drone with a GoPro follow me on the trails recording my rides. The idea is to make it seem like another biker is behind me with a chest mounted camera.

The functionality I desire is minimal (though clearly not “simple” to implement) …

  • Follows me from behind.
  • Min flight height from the ground: 2ft.
  • Max flight height from the ground: 5ft to 6ft (basically just above my head).
  • Min distance behind me: 5ft.
  • Max distance behind me: 15ft.
  • Max left or right drift from trail center: 2ft. (keep it within the trail width).
  • Some means to guide the drone (help it follow me). GPS coordinates from a mobile device? Visual data? Some other platform or protocol?

Why the min and max heights? Within that range I theoretically should not have to worry about avoidance detection. My head is not riding into tree branches, so the drone should be safe. However I suppose I need to avoid collisions with the back of my head. :smile:

A “love to have” feature would be the ability to send the drone to a point 500 to 1,000 ft ahead of me down the trail to capture jumps or hard turns, then have it start following me again as I pass the drone.

I have a good friend who builds drones and will help get me started with my own build. If you think this is possible, I’ll start to really dig into learning how to implement PX4 on a DIY drone.


Something like this (I edited the drone into the picture) …

Hi, this is a challenging endeavour because for tight single trails the GPS accuracy and rate is probably not enough and you need to use something else for tracking. Therefore, I’d argue, the first step is to come up with a tracking system.

I see these possibilities:

  • Use computer vision to track a subject
  • Use computer vision to track a marker (e.g. ARTag)
  • Use UWB (ultra-wide-band) beacons (e.g. https://www.pozyx.io/)

Then, you might as well add obstacle avoidance, either using a stereo camera with PX4/Avoidance or at least a sonar sensor pointing forward, otherwise you will hit trees in no time.

Essentially, it’s really hard to get this to fly robustly and companies spend quite some time, money, and people on it. Have a look at Skydio.

1 Like

Thanks for the reply @JulianOes!

The more I research this, the more I realize I will need to use computer vision. I came across this yesterday and it looks promising: http://jevois.org/

I also came to the conclusion that I will need to use logo or symbol recognition, coupled with color recognition … something I could wear on my back or helmet that the camera would recognize and could follow. Your comment confirms that for me.

Your suggestions are helpful and give me some good direction for further research. Thanks for the links and the UWB beacon suggestion too.

1 Like