atb033 / multi_agent_path_planning

Python implementation of a bunch of multi-robot path-planning algorithms.
https://atb033.github.io/multi_agent_path_planning/
MIT License
1.11k stars 259 forks source link

CBS work not well #8

Open Aceyli opened 2 years ago

Aceyli commented 2 years ago
 Hi, I'm trying to test CBS to fit my task. I create the yaml file as follows for testing: 

agents:

atb033 commented 2 years ago

@Aceyli I suppose that's a bug in the code. Unfortunately, I don't have the time to look into this at the moment. The CBS algorithm I've implemented is based on this publication.

Please feel free to make a PR in case you were able to figure out what's going wrong

check-bug commented 1 year ago

@Aceyli @atb033 The issue described above is not a bug. There is a non-determinism in Astar and CBS (due to the use of open-set) which provides different answers if there are more than one answer possible. If a agent can have more than one path from its initial location to its assigned goal location, this code can return any of the all possible answer.

If we remove this non-determinism (by converting open set to a open list), the efficiency (in runtime) of Astar in finding the path, and the efficiency of CBS (in runtime) will suffer too much.

Please let me know in case we are not on the same page.