This is the code of paper: Sequential Action-Induced Invariant Representation for Reinforcement Learning.
Please firstly install UE4.26.
Download CARLA from https://github.com/carla-simulator/carla/releases, e.g.:
- https://carla-releases.s3.eu-west-3.amazonaws.com/Linux/CARLA_0.9.6.tar.gz
- https://carla-releases.s3.eu-west-3.amazonaws.com/Linux/AdditionalMaps_0.9.6.tar.gz
Add to your python path:
export PYTHONPATH=$PYTHONPATH:/home/rmcallister/code/bisim_metric/CARLA_0.9.6/PythonAPI
export PYTHONPATH=$PYTHONPATH:/home/rmcallister/code/bisim_metric/CARLA_0.9.6/PythonAPI/carla
export PYTHONPATH=$PYTHONPATH:/home/rmcallister/code/bisim_metric/CARLA_0.9.6/PythonAPI/carla/dist/carla-0.9.8-py3.5-linux-x86_64.egg
Install:
pip install pygame
pip install networkx
./run.sh --agent drq --auxiliary sar --batch_size 256 --num_sample 256 --targ_extr 0 --env dmc.cheetah.run
Terminal 1:
cd CARLA_0.9.6
bash CarlaUE4.sh --RenderOffScreen --carla-rpc-port=2000 --fps=20
Terminal 2:
cd CARLA_0.9.6
./run.sh --agent curl --auxiliary sar --batch_size 128 --num_sample 128 --targ_extr 1 --port 2000 --env carla.highway.map04
tensorboard --logdir ./
Our code is modified based on: