|
conflict_rez repositoryconflict-resolution reinforcement-learning optimal-control trajectory-planning |
No version for distro humble. Known supported distros are highlighted in the buttons above.
|
conflict_rez repositoryconflict-resolution reinforcement-learning optimal-control trajectory-planning |
No version for distro jazzy. Known supported distros are highlighted in the buttons above.
|
conflict_rez repositoryconflict-resolution reinforcement-learning optimal-control trajectory-planning |
No version for distro kilted. Known supported distros are highlighted in the buttons above.
|
conflict_rez repositoryconflict-resolution reinforcement-learning optimal-control trajectory-planning |
No version for distro rolling. Known supported distros are highlighted in the buttons above.
|
conflict_rez repositoryconflict-resolution reinforcement-learning optimal-control trajectory-planning confrez_ros |
Repository Summary
| Description | Conflict resolution for multiple vehicles in tight spaces |
| Checkout URI | https://github.com/xushenlz/conflict_rez.git |
| VCS Type | git |
| VCS Version | main |
| Last Updated | 2023-02-02 |
| Dev Status | UNKNOWN |
| Released | UNRELEASED |
| Tags | conflict-resolution reinforcement-learning optimal-control trajectory-planning |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Packages
| Name | Version |
|---|---|
| confrez_ros | 0.0.0 |
README
conflict_rez
Conflict resolution for multiple vehicles in confined spaces
Xu Shen (xu_shen@berkeley.edu), Francesco Borrelli
Project Webpage: https://bit.ly/rl-cr

Install
- Clone this repo
- Run
pip install -e .in the root level of this repo (A virtualenv is recommended). However, due to some buggy dependencies between package versions, you need to manually switch the following packages to specific versions (while ignoring the warning given by the pip dependency resolver):pip install pettingzoo==1.20.1pip install supersuit==3.5.0pip install stable-baselines3==1.6.0pip install gym==0.25.0
Testing
- A pretrained model can be downloaded here.
- Run
python confrez/rl/experiment.pyto see the steps taken by the DQN policy to resolve the conflict in the discrete environment. - Run
python confrez/rl/record_states_history.pyto generate a.pklfile that records the steps taken by the RL agents, which will serve as the configuration strategies for the trajectory planning problems. - Run
python confrez/control/vehicle.pyto plan a single-vehicle collision free trajectory following the strategy-guided configurations. - (Centralized method) Run
python confrez/control/multi_vehicle_planner.pyto solve the multi-vehicle trajectory planning problem to resolve conflict. - (Distributed method) Run
python confrez/control/vehicle_follower.pyso that each vehicle generates its own strategy-guided reference trajectory, and then follows it with distributed MPC to avoid collisions.
Training
- Run
python confrez/rl/train.pyto train a new policy. - You may set the
random_resetargument toTrueso that you train the policy with a random subset out of 4 vehicles, which may lead to a more generalizable policy. But it also require longer training time. - Different random seeds and different parameter tuning will lead to different behaviors in the trained policy. With your new policy, the vehicles may (almost for sure) take different actions and resolve the conflict in another way.
CONTRIBUTING
|
conflict_rez repositoryconflict-resolution reinforcement-learning optimal-control trajectory-planning |
No version for distro galactic. Known supported distros are highlighted in the buttons above.
|
conflict_rez repositoryconflict-resolution reinforcement-learning optimal-control trajectory-planning |
No version for distro iron. Known supported distros are highlighted in the buttons above.
|
conflict_rez repositoryconflict-resolution reinforcement-learning optimal-control trajectory-planning |
No version for distro melodic. Known supported distros are highlighted in the buttons above.
|
conflict_rez repositoryconflict-resolution reinforcement-learning optimal-control trajectory-planning |
No version for distro noetic. Known supported distros are highlighted in the buttons above.