NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Prompt-driven Task Planning Method for Multi-drones based on Large Language Model

Yaohua LiuarXiv 2024 · DOI

Introduction

Recent advancements in Large Language Models (LLMs) have opened new frontiers in human-robot interaction. While LLMs have demonstrated significant reasoning capabilities in 2D manipulation tasks, their application in the high-stakes, 3D environment of drone swarms has remained a challenge. This paper, published in Unmanned Systems, introduces a novel framework that leverages the semantic reasoning of LLMs to orchestrate multi-drone missions through natural language commands, effectively moving away from rigid, pre-defined algorithms toward a more intuitive "prompt-driven" architecture.

The Challenge of Multi-Drone Coordination

Managing a multi-drone system, or "swarm," is traditionally a logistical and technical nightmare. Conventional task planning requires complex decomposition, assignment, and coordination, typically handled by rigid algorithms or manual waypoint setting in Ground Control Stations (GCS). These traditional methods suffer from two primary flaws: a lack of adaptability in dynamic environments and a high barrier to entry requiring significant technical expertise. The researchers sought to bridge this gap by creating a human-centric interface where complex aerial maneuvers can be executed without the user writing a single line of manual code.

Proposed Framework and Methodology

The proposed "Prompt-driven Task Planning" system relies on a four-pillar architecture designed to translate abstract human intent into precise physical actions.

The system architecture illustrates the flow from natural language input to LLM processing and final drone execution via a modular API library.

1. Drone Motion Function Library

To mitigate the risk of LLM "hallucinations"—where the model might generate impossible or non-existent commands—the authors developed a modular Python library. This library contains high-level functions such as fly.takeoff(id), fly.flip(direction, id), and fly.forward(distance, id), effectively constraining the LLM's output to a valid and safe "action space."

2. Two-Tier Prompt Engineering

The system utilizes a sophisticated prompt structure to guide the LLM:

  • System Prompts: These define the operational constraints, identifying the LLM as a flight assistant and specifying the available Python functions while forbidding external library calls.
  • User Prompts: These are the specific natural language instructions provided by the operator (e.g., "Drone 1 flies right, then Drone 2 flips").

3. Human-LLM Interaction and Execution

The interface features a voice-to-text GUI. When a user speaks a command, it is converted to text and bundled with the system prompts. The LLM then generates a Python script which is transmitted via User Datagram Protocol (UDP) to the hardware (Ryze Tello drones) for real-time execution.

Experimental Validation

The framework was validated using Ryze Tello drones across three distinct operational scenarios: single-drone maneuvers, synchronized multi-drone flight, and asynchronous sequential tasks.

Experimental results showing the generated Python code and the corresponding physical execution of a complex flight sequence.

In the asynchronous tests, the LLM demonstrated impressive temporal logic. When instructed to start Drone 2 only after Drone 1 finished its maneuvers, the generated code correctly respected the timing and sequence. Qualitatively, the experiments confirmed that the LLM could accurately decompose abstract user intents into the correct functional calls from the library in a "zero-shot" fashion, requiring no specific drone-flight training data.

Key Insights and Future Directions

A critical insight from this research is the use of high-level code as a "universal translator." By outputting code rather than raw motor voltages, the system provides a safety buffer that allows human operators to verify the plan before execution. Furthermore, the system's versatility was demonstrated by its ability to handle instructions in both Chinese and English without retraining.

However, several limitations remain for future exploration. The current tests were limited to two drones; scaling to dozens or hundreds of units may introduce a "combinatorial explosion" of logic. Additionally, the system currently operates in an "open-loop" fashion. Future iterations could integrate closed-loop feedback, allowing the LLM to adjust flight plans mid-air based on real-time sensor data such as battery levels or obstacle detection. Finally, a dedicated safety layer for collision avoidance is necessary to ensure robust real-world deployment.

Summary updated

BibTeX
@misc{liu2024prompt,
  author = {Yaohua Liu},
  title = {{A Prompt-driven Task Planning Method for Multi-drones based on Large Language Model}},
  year = {2024},
  eprint = {2406.00006},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.00006},
}
Figure