CL-CBS
CL-CBS

Overview

Car-Like Conflict Based Search (CL-CBS) is an efficient and complete solver of Multi-Agent Path Finding for Car-like Robots problem. It applies a body conflict tree to address collisions considering the shape of agents. It also includes a new algorithm Spatiotemporal Hybrid-State A* as the single-agent path planner to generate path satisfying both kinematic and spatiotemporal constraints.

The source code are open source in GitHub. The video demonstration can be found on YouTube.

Source Code

Requirement

1 sudo apt-get install g++ cmake libboost-program-options-dev libyaml-cpp-dev clang-tidy clang-format python3-matplotlib libompl-dev libeigen3-dev

Build

1 mkdir build
2 cd build
3 cmake -DCMAKE_BUILD_TYPE=Release ..
4 make -j8

Run example instances

1 # make sure your are in build folder
2 # default 10 agent in a batch
3 ./CL-CBS -i ../benchmark/map50by50/agents5/empty/map_50by50_obst0_agents5_ex11.yaml -o output.yaml
4 # or compute 20 agents in a whole batch
5 ./CL-CBS -i ../benchmark/map100by100/agents20/obstacle/map_100by100_obst50_agents20_ex13.yaml -o output.yaml -b 20

Visualize Results

1 # make sure your are in build folder
2 python3 ../src/visualize.py -m ../benchmark/map100by100/agents20/obstacle/map_100by100_obst50_agents20_ex13.yaml -s output.yaml

Agent Configuration

The agent configurations, including the size, the kinematic constraints, and penalty functions can be changed in src/config.yaml.

Benchmark

Benchmark for evaluating CL-MAPF problem are available in benchmark folder. It contains 3000 unique instances with different map size and agents number.

The folder are arranged like follows, each mapset contains 60 instances:

1 benchmark
2 ├── map100by100
3 │   ├── agents10
4 │ │   ├── empty
5 │ │   └── obstacle
6 │   ...
7 ├── map300by300
8 │   ├── agents10
9 │ │   ├── empty
10 │ │   └── obstacle
11 │   ...
12 └── map50by50
13  ├── agents10
14  │   ├── empty
15  │   └── obstacle
16  ...

The instance are in yaml format.

A typical result from benchmark acts like below:

Credits

This code was developed by the APRIL Lab in Zhejiang University.

For researchers that have leveraged or compared to this work, please cite the following:

Licheng Wen, Zhen Zhang, Zhe Chen, Xiangrui Zhao, and Yong Liu. CL-MAPF: Multi-Agent Path Finding for Car-Like Robots with Kinematic and Spatiotemporal Constraints.[arxiv]

License

The code is provided under the MIT License.