Skip to content

Fix infinite loop in CBS.#23

Open
chianfern wants to merge 3 commits intoatb033:masterfrom
chianfern:fix/cbs
Open

Fix infinite loop in CBS.#23
chianfern wants to merge 3 commits intoatb033:masterfrom
chianfern:fix/cbs

Conversation

@chianfern
Copy link

This fixes an infinite loop described in #8 here.

The issue was in the A*star search here. Previously, whenever an agent arrived at its goal on a candidate path, the search would return without checking for vertex constraints, even if this path would result in a conflict. This fix adds the check and allows the search for a valid path to continue.

I also added a test for this scenario.

python3 -m venv venv
source venv/bin/activate
python3 -m pip install -r requirements.txt
pytest

Signed-off-by: Tan Chian Fern <chianfern@gmail.com>
Signed-off-by: Tan Chian Fern <chianfern@gmail.com>
Signed-off-by: Tan Chian Fern <chianfern@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant