Code for:
DS-MRNav: Distributed Multi-Robot Navigation with Static Obstacles via a Decoupled-State Dual-Stream Framework
Accepted by IEEE Robotics and Automation Letters (RA-L), 2026.
The project has been tested on the following systems:
- Ubuntu 20.04, 22.04
- Python 3.8
- PyTorch 2.x
- Gym 0.20.0
Create an environment and install the PyTorch build appropriate for your CPU/CUDA setup:
conda create -n dsmrnav python=3.8
conda activate dsmrnav
# Install PyTorch for your CPU/CUDA platform.Gym 0.20.0 requires the legacy build toolchain below:
pip install "setuptools==65.5.0" "pip==21.3.1" wheel
pip install gym==0.20.0The repository includes the modified intelligent-robot-simulator used by
DS-MRNav. Install the simulator, DS-MRNav, and the local Gym environment with:
./setup.shRun the four-robot open-space scenario:
python ds_mrnav/policy_test/test_open_space.pyRun the six-robot static-obstacle scenario:
python ds_mrnav/policy_test/test_obstacle.pyBoth commands default to 100 rendered episodes and automatically select CUDA
when available. The obstacle map is configured in
ds_mrnav/policy_test/obstacle_world.yaml.
Common options include --robot-number, --num-episodes, --seed,
--device {auto,cpu,cuda}, --no-render, --save, and --show-traj. Run a
script with --help for the complete interface. For example:
python ds_mrnav/policy_test/test_open_space.py --num-episodes 10 --no-render
python ds_mrnav/policy_test/test_obstacle.py --device cuda --show-trajResults are written below ds_mrnav/policy_test/outputs/.
The static-stream CNN is pretrained offline and frozen during reinforcement learning. To retrain it with the included maps:
python ds_mrnav/policy_train/train_risk_encoder.py \
--maps-dir maps --epochs 2000 --samples 350000 \
--save ds_mrnav/policy_train/best_model_light.pthNavigation-policy training follows the paper curriculum:
| Stage | Initial weights | Robots | Maps | PPO epochs | Map switch |
|---|---|---|---|---|---|
| Dynamic avoidance | New policy | 4 | Map0 (empty) | 500 | Disabled |
| Static avoidance | Stage 1 | 4 | Maps 1–4 | 800 | Every 50 epochs |
| Dense interaction | Stage 2 | 6 | Maps 1–4 | 1000 | Every 25 epochs |
Configure TrainConfig in ds_mrnav/policy_train/train.py for each stage and
set the initial map in ds_mrnav/policy_train/train_world.yaml, then run:
python ds_mrnav/policy_train/train.pyThe released policies use orca_hp dynamic observations and a frozen Risk
Encoder. Stage transitions load the preceding policy checkpoint. Training
snapshots are saved under ds_mrnav/policy_train/model_save/ and are ignored
by Git.
Complete publication metadata will be added when it becomes available:
@article{henryliu2026dsmrnav,
title = {DS-MRNav: Distributed Multi-Robot Navigation with Static Obstacles via a Decoupled-State Dual-Stream Framework},
author = {henryliu and others},
journal = {IEEE Robotics and Automation Letters},
year = {2026}
}See CITATION.cff for machine-readable metadata.
DS-MRNav is released under the MIT License. See LICENSE and NOTICE.
This project is based on hanruihua/rl_rvo_nav and includes a modified version of hanruihua/intelligent-robot-simulator. The corresponding upstream copyright and license notices are retained.