We perform extensive empirical evaluation of one of the state-of-the-art decentralized PO-MAPF algorithms which leverages communication between agents, Distributed Heuristic Communication (DHC). Through comprehensive experiments, the performance of DHC is observed to degrade when agents are faced with complete packet loss during communication. To mitigate this issue, we propose a novel algorithm called DHC-R (DHC-robust). Open-sourced model weights and the codebase are provided.
In order for models.dhc.train
to be successfully run, you have to have a machine equipped with 1 GPU and several CPUs.
Consider having num_cpus - 2
actors configured through the dhc.train.num_actors
in config.yaml
Attention: We do not guarantee the desired performance on a non-GPU machine.
While we aim at supporting MacOS, Linux and Windows platforms, the successful training is not guaranteed on a Windows-based machine. The benchmarking script should work there, though. Please report it here if it doesn't.
- Install Poetry
- Run poetry install to install the dependencies
If you see Failed to create the collection: Prompt dismissed..
this error when trying to run poetry install
, consider executing this line first:
export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
models
dir contains the weights of the trained modelsconfig.yaml
- training & model params, environmental settings etc.pathfinding/models
provides one with the implementation of different models
@InProceedings{10.1007/978-3-031-43111-1_14,
author="Savinov, Vladislav
and Yakovlev, Konstantin",
editor="Ronzhin, Andrey
and Sadigov, Aminagha
and Meshcheryakov, Roman",
title="DHC-R: Evaluating ``Distributed Heuristic Communication'' and Improving Robustness for Learnable Decentralized PO-MAPF",
booktitle="Interactive Collaborative Robotics",
year="2023",
publisher="Springer Nature Switzerland",
address="Cham",
pages="151--163",
abstract="Multi-agent pathfinding (MAPF) is a problem of coordinating the movements of multiple agents operating a shared environment that has numerous industrial and research applications. In many practical cases the agents (robots) have limited visibility of the environment and must rely on local observations to make decisions. This scenario, known as partially observable MAPF (PO-MAPF), can be solved through decentralized approaches. In recent years, several learnable algorithms have been proposed for solving PO-MAPF. However, their performance is oftentimes not validated out-of-distribution (OOD), and the code is often not properly open-sourced. In this study, we conduct a comprehensive empirical evaluation of one of the state-of-the-art decentralized PO-MAPF algorithms, Distributed Heuristic Communication (DHC), Ma, Z., Luo, Y., Ma, H.: Distributed heuristic multi-agent path finding with communication. In: 2021 International Conference on Robotics and Automation (ICRA), pp. 8699--8705. IEEE, Xi'an, China (2021), which incorporates communication between agents. Our experiments reveal that the performance of DHC deteriorates when agents encounter complete packet loss during communication. To address this issue, we propose a novel algorithm called DHC-R that employs a similar architecture to the original DHC but introduces randomness into the graph neural network-based communication block, preventing the passage of some data packets during training. Empirical evaluation confirms that DHC-R outperforms DHC in scenarios with packet loss. Open-sourced model weights and the codebase are provided: https://github.com/acforvs/dhc-robust-mapf.",
isbn="978-3-031-43111-1"
}
See the detailed contribution guide
- Install black, you can likely run
pip3 install black
- Use black to ensure that the codestyle remains great
poetry run black .
- Use ruff to lint all the files
poetry run ruff .
- Make sure tests are OK
poetry run pytest
- Create a PR with new features
[1] Ma, Ziyuan and Luo, Yudong and Ma, Hang, 2021. Distributed Heuristic Multi-Agent Path Finding with Communication.