Skip to content

JuiceFV/Cooperative_Pathfinding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cooperative Pathfinding Version 0.1

Path-finding is one of the basic problems in the field of artificial intelligence and computer science in general. In the most basic variant, the task is to find a path for an agent through a given graph, so that the agent moves from vertex to vertex along the edges of the graph and ends in a specified goal vertex. A natural extension of the basic path-finding problem is multi-agent pathfinding. In this problem, we are given multiple agents, each with its own goal, and the task is to again guide them toward their goals along the edges of a given graph. Agents have knowledge of each others plans, which allows them to cooperate. The amount of cooperation required between agents depends on the problem instance, and it can vary from very high on instances where the number of agents is close to the number of available vertices to very low on instances where the number of agents is small relative to the size of the graph and there is enough space between the agents.

Version Ttable

Version 0.1

In this version I've implemented the WHCA* (Windowed Hierarchical Cooperative A*) pathfinding.

  • You can change the map size and number/configuration of the agents only through the code.
  • Agents can move only horizontal and vertical
  • Agents have the same velocity
  • If some agent reached the goal, it will count as an empty cell. (but it easy fixable)
  • GUI - cmd/Terminal

Version 0.1

Table of Content

Instalation

Prerequirements

For the build creation from the sources, you will needed in CMake. This util will configure a project structure for any IDE. You can download it here.

Install

  • Go to the path where you want to clone

    > cd <your_path>

  • Clone the repository

    > git clone https://github.com/JuiceFV/Cooperative_Pathfinding.git Coop_Pathfinding

  • Go to the working derictory, which we have been cloned on previous step

    > cd Coop_Pathfinding

    • Now you have a such hierarchy

      Working directory tree

  • Now let's create folder called "build"

    > mkdir build

  • And going there

    > cd build

  • Now, let's build a project for any IDE that you want
    • If you woud like to pick another IDE
      • You can check the list of the available IDE

        > cmake -G

      • Now you will see the list of IDE. You can see the star beside an IDE name, it's a current IDE and the build will be making for this IDE. You can pick any IDE, which you like by typing this command. You can find more information here

        > cmake -G <ide-name> ..

      • The default build type is Release type, if you would like to pick the other type just use this command

        > cmake -G <ide-name> -DCMAKE_BUILD_TYPE=Debug ..

    • If the current IDE suit you
      • Just use this command. And as in the previous step you can change the build type

        > cmake [optional: -DCMAKE_BUILD_TYPE=Debug] ..

  • CMake will configure the project in the "build" and you can work with it.

TODO

  • Create the parser:
    • The Map.txt parser
    • The JSON parser
  • Look for any errors

About

It's an implimetetion a Pathfinding Algorithm with multiple agents

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published