Skip to content

bel-learning/multi-agent-path-finding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multi Agent Path Finding (MAPF)

This is a small project, visualizing simple implementation of MAPF by creating large state graph. It was done as a semestral project in Artificial Intelligence at my university.

  1. It generates all the possible state space with the possible configurations of the agents and creates a graph based on that.
  2. Then, uses A* on the state space graph to find better path based on Manhattan Distance on Heuristics and my custom G function for the "shortest" distance.

GUI:

Screen Shot 2023-05-16 at 17 27 13

To try:

Simply clone this repo and install pygame library. Required: Python3, Pygame.

Files

maps/ - contains simple test maps. They are configurable at init(filename) call at main.py.
pathfinding.py - util functions that handles parsing, A* algorithm, generation of state space.
main.py - the program to run. Scroll to the bottom and change the maps in init function.

About

An implementation of MAPF with visualization

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages