Skip to content

Instantly share code, notes, and snippets.

@nicholaskajoh
Last active November 24, 2019 13:12
Show Gist options
  • Save nicholaskajoh/e3bf1b53e39f47937e03cc6eb7627bd0 to your computer and use it in GitHub Desktop.
Save nicholaskajoh/e3bf1b53e39f47937e03cc6eb7627bd0 to your computer and use it in GitHub Desktop.
CARLA setup (Let's Build an Autonomous Toy Car! series).
# 1. Download latest release and unzip
# https://github.com/carla-simulator/carla/releases/latest
# 2. Start CARLA server
./CarlaUE4.sh -opengl -fps=30 -quality-level=Low -windowed -ResX=1000 -ResY=600
# To use different map,
# Change directory to PythonAPI/util
# Then run:
# python config.py -m Town05
# Change weather:
# python config.py --weather ClearNoon
# List weather presets and available maps:
# python config.py --list
# 3. Create virtual env
mkvirtualenv -p python3.6 carla
# 4. Install dependencies in virtual env (optional)
pip install pygame numpy
# 5. Clone Autonomous Toy Car project
git clone git@github.com:nicholaskajoh/autonomous-toy-car.git
# 6. Spawn NPCs
# Change directory to Simulator
python spawn_npc.py -n 80 --safe
# 7. Spawn autonomous car
python spawn_autonomous_car.py -s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment