Task-Driven Autonomous Flight for Planetary Exploration

A drone that is given a goal instead of a route, and decides for itself how to achieve it (flying in simulation)

Context: Personal project (flying in simulation; no hardware yet)
Tools: ROS 2, PX4, Gazebo, Python

Summary

A spacecraft far from Earth cannot wait for instructions: a message to Mars and back takes up to 48 minutes, and to Titan up to 3 hours. This project is building a drone that operates the same way, on its own. Given a broad goal, such as exploring an area and reporting what is there, it decides for itself where to fly, what is worth a closer look and when to come back, while watching its own battery and health. There are no preprogrammed routes.

Its decisions come from a VLM-based embodied agent running on the drone, which reasons over what it sees and hears and the goal it was given. The agent chooses the drone’s next actions and passes them to the PX4 autopilot, which handles the fast control that keeps it stable in the air. Part of the project is training a compact version of the model to run on the drone’s own processor, so it needs no connection to the ground.

First flight in simulation

The drone is a standard quadcopter in the Gazebo simulator, flown by PX4, the autopilot used on many real drones. My program controls it from outside the autopilot, the same way the agent will. It takes off, flies a 10 m square at 5 m height and lands without anyone touching the controls.

The simulated quadcopter tilting as it turns a corner in Gazebo
The simulated drone turning a corner of the square.
Animation of one flight: the track seen from above and the height against time
One flight from the drone's log: seen from above (left) and its height (right).

I also tested how it behaves when things go wrong:

  • Repeatability: ten flights in a row all succeeded and followed the same path.
  • Height limit: with one waypoint set at 40 m, above its 30 m ceiling, it stopped climbing and landed. It overshot to 32.6 m first, so the limit needs a margin.
  • Losing the controlling program: when I shut the program down mid-flight, the autopilot noticed within 1.1 s and landed on its own.
Left: ten flown tracks over the planned square. Right: height against time for the square and for the height-limit test
Left: ten flights seen from above, against the planned square. Right: height against time, with the height-limit test in red.

Next

Turn the flight commands into simple actions the agent can use (take off, fly to a point, take a photo, land), with a checker that rejects unsafe plans before they fly. Then connect the agent and give it its first task.