![]() |
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 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 |
CI status | No Continuous Integration |
Released | UNRELEASED |
Tags | conflict-resolution reinforcement-learning optimal-control trajectory-planning |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
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.1
pip install supersuit==3.5.0
pip install stable-baselines3==1.6.0
pip install gym==0.25.0
Testing
- A pretrained model can be downloaded here.
- Run
python confrez/rl/experiment.py
to see the steps taken by the DQN policy to resolve the conflict in the discrete environment. - Run
python confrez/rl/record_states_history.py
to generate a.pkl
file 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.py
to plan a single-vehicle collision free trajectory following the strategy-guided configurations. - (Centralized method) Run
python confrez/control/multi_vehicle_planner.py
to solve the multi-vehicle trajectory planning problem to resolve conflict. - (Distributed method) Run
python confrez/control/vehicle_follower.py
so 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.py
to train a new policy. - You may set the
random_reset
argument toTrue
so 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
No CONTRIBUTING.md found.
![]() |
conflict_rez repositoryconflict-resolution reinforcement-learning optimal-control trajectory-planning |
|
No version for distro noetic. Known supported distros are highlighted in the buttons above.
![]() |
conflict_rez repositoryconflict-resolution reinforcement-learning optimal-control trajectory-planning |
|
No version for distro ardent. Known supported distros are highlighted in the buttons above.
![]() |
conflict_rez repositoryconflict-resolution reinforcement-learning optimal-control trajectory-planning |
|
No version for distro bouncy. Known supported distros are highlighted in the buttons above.
![]() |
conflict_rez repositoryconflict-resolution reinforcement-learning optimal-control trajectory-planning |
|
No version for distro crystal. Known supported distros are highlighted in the buttons above.
![]() |
conflict_rez repositoryconflict-resolution reinforcement-learning optimal-control trajectory-planning |
|
No version for distro eloquent. Known supported distros are highlighted in the buttons above.
![]() |
conflict_rez repositoryconflict-resolution reinforcement-learning optimal-control trajectory-planning |
|
No version for distro dashing. Known supported distros are highlighted in the buttons above.
![]() |
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 foxy. 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 lunar. Known supported distros are highlighted in the buttons above.
![]() |
conflict_rez repositoryconflict-resolution reinforcement-learning optimal-control trajectory-planning |
|
No version for distro jade. Known supported distros are highlighted in the buttons above.
![]() |
conflict_rez repositoryconflict-resolution reinforcement-learning optimal-control trajectory-planning |
|
No version for distro indigo. Known supported distros are highlighted in the buttons above.
![]() |
conflict_rez repositoryconflict-resolution reinforcement-learning optimal-control trajectory-planning |
|
No version for distro hydro. Known supported distros are highlighted in the buttons above.
![]() |
conflict_rez repositoryconflict-resolution reinforcement-learning optimal-control trajectory-planning |
|
No version for distro kinetic. 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.