Skip to content

msmar-rl/msmar-rl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MSMAR-RL: Multi-Step Masked-Attention Recovery Reinforcement Learning for Safe Maneuver Decision in High-Speed Pursuit-Evasion Game

Paper Link

https://msmar-rl.github.io/

Environment Setup

  • Create Conda Environment
conda create -n msmar-rl python==3.8
conda activate msmar-rl
  • Install Isaac Gym

Download Isaac Gym - Ubuntu Linux 18.04 / 20.04 Preview 4 release from Isaac Gym - Download Archive | NVIDIA Developer, and install it in the created Conda environment.

cd isaacgym/python 
pip install -e .

After installation, you can verify success by running the following demo under isaacgym/python/examples:

python joint_monkey.py

If the simulation window opens, the installation is successful.

  • Install Isaac Gym Envs

After Isaac Gym is installed, install its environment package:

cd IsaacGymEnvs
pip install -e .
  • Install skrl-1.0.0

The proposed algorithm is implemented on the skrl-1.0.0 framework (open-sourced). Install it as follows:

cd skrl-1.0.0
pip install -e .["torch"]

Reproducing Results

  • Modify Absolute Path Dependencies

    • UAV Model Loading
      In the file msmar-rl/IsaacGymEnvs/isaacgymenvs/tasks/UAV_multi_obstacle_recovery_test.py, modify the absolute paths at lines 386, 396, 402, 408, 414, 420, 426 to the absolute path where your cloned repository is stored.

    • Flight Trajectory Saving Path
      In the same file, modify the absolute paths at lines 61, 69, 70 to your repository path.

  • Run Test Code

    cd IsaacGymEnvs/isaacgymenvs
    python test_recovery_risk_judge.py
    • During execution, the console will continuously output the UAV’s distance to each obstacle, allowing you to determine whether the UAV enters a danger zone.
    • After execution, the UAV flight trajectory will be saved at:
      /msmar-rl/IsaacGymEnvs/isaacgymenvs/data/ddpg_multi/test_recovery_1.txt.acmi
      
      This file can be replayed using TacView to visualize the trajectory.
    • Additionally, the file record_safe.txt.acmi will also be saved in the same directory. This file (viewable in plain text) logs the UAV’s real-time distances to danger zones.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages