Back to Portfolio

Multi-Agent Path Finding with Formation (MAPF-F)

Final Year Project at University of Birmingham

Supervised by Dr. Masoumeh Iran Mansoori

Project Overview

Exploring Multi-Agent Path Finding with Formation (MAPF-F): My dissertation, completed during my BSc in Computer Science at the University of Birmingham, dives into the fascinating world of multi-agent path finding (MAPF). This field is crucial for robotics and AI, aiming to plan collision-free paths for multiple agents—like robots—moving from start to goal locations in a shared environment. I introduced a twist called MAPF-F, where groups of robots must maintain a fixed square formation while moving, simulating tasks like carrying large objects in warehouses.

Adapting Conflict-Based Search (CBS)

MAPF-F builds on the Conflict-Based Search (CBS) algorithm, a two-level method that finds optimal paths for individual agents. I adapted CBS to handle groups by modifying its high-level and low-level processes. At the high level, it detects and resolves conflicts—like vertex collisions (two agents targeting the same spot) or swap conflicts (agents swapping positions)—for both single robots and groups. At the low level, I tweaked the A* search to ensure all four corners of a group stay conflict-free, treating agents as obstacles once they reach their goals.

Real-World Applications and Results

The motivation behind MAPF-F is practical: think warehouse robots moving oversized items like fridges or beds while allowing smaller robots to pass underneath, boosting efficiency. Tests on grid maps (e.g., a 10x7 map with obstacles) showed the algorithm works, though its runtime grows with more groups, sometimes struggling with complex scenarios. Results suggest potential, but optimizing it further could unlock broader applications, like 3D path planning or dynamic formations.

Legend

Black dots: Obstacles (walls or barriers)
Colorful dots: Different agent groups/individual agent

The videos demonstrate how agents navigate while maintaining square formation(if they have the same color), avoiding obstacles and other agents.

Project Demonstrations

Normal Path Navigation

Demonstration of agents navigating through a standard environment.

Complex Multi-Group Navigation

In this scenario, multiple groups of agents (one 2 by 2 group and two individuals) navigate simultaneously while maintaining their respective formations.

Deadlock Resolution

This video showcases how the algorithm resolves deadlocks between two agents.

Double Deadlock Scenario

A more challenging scenario with multiple potential deadlocks occurring simultaneously.

Navigation Through Narrow Corridors

This demonstration shows how agents navigate through tight spaces.

Technical Implementation

The project was implemented in C++ for the pathfinding algorithm, with visualizations created using Python's Matplotlib. The code includes:

  • A modified Conflict-Based Search algorithm for handling formation constraints
  • An enhanced A* search algorithm at the low level for individual agents
  • Conflict detection and resolution mechanisms for both single agents and groups
  • A visualization framework to demonstrate the algorithm's performance

The full source code is available on GitHub.

Back to Portfolio