Skip to content

About

Multi-agent path finding with conflict-based search in C++. CTU FIT BI-ZUM semester project.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multi-agent path finding

A C++17 solver for multi-agent path finding (MAPF) on grid maps: every agent must reach its goal without two agents ever occupying the same cell or swapping places along the same edge.

Built as a semester project for BI-ZUM Fundamentals of Artificial Intelligence at the Faculty of Information Technology, Czech Technical University in Prague (summer 2022/23).

Approach

  • Conflict-based search (CBS): a high-level search over a constraint tree, ordered by total cost, adds a constraint whenever two agents' paths collide (vertex or edge conflicts).
  • Low-level search: per-agent A* in space–time that respects the constraints of the current node.
  • Visualisation: the solution is animated step by step in the terminal.

The write-up (in Czech) is in Protokol.pdf, with its LaTeX source in report/.

Build and run

cmake -B build && cmake --build build
./build/mapf examples/Map1 examples/Agents1

A map file is a character grid (X wall, space free); an agents file has one line per agent: start_x start_y goal_x goal_y.

About

Multi-agent path finding with conflict-based search in C++. CTU FIT BI-ZUM semester project.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages