Skip to content

Commit

Permalink
add simple demo run
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Haas committed Feb 5, 2024
1 parent 8300562 commit 499eead
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/automated-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
with:
scenario-folder-path: ${{ matrix.filedir }}
scenario-file-name: ${{ matrix.filename }}
simulator-image: carla-health # TODO: Change to rwthika/carla:server
simulator-image: carla-health # TODO: Change to rwthika/carla-simulator:server
simulator-offscreen: false

generate-opt-scenario-job-matrix:
Expand Down Expand Up @@ -62,5 +62,5 @@ jobs:
with:
scenario-folder-path: ${{ matrix.filedir }}
scenario-file-name: ${{ matrix.filename }}
simulator-image: carla-health # TODO: Change to rwthika/carla:server
simulator-image: carla-health # TODO: Change to rwthika/carla-simulator:server
simulator-offscreen: false
28 changes: 28 additions & 0 deletions automated-testing/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
services:

carla-simulator:
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
environment:
DISPLAY: $DISPLAY
XAUTHORITY: /.Xauthority
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
- $XAUTHORITY:/.Xauthority:ro
privileged: True
image: carla-health # TODO: Change to rwthika/carla-simulator:server
command: bash -ic './CarlaUE4.sh -nosound $SIMULATOR_FLAGS 2>/dev/null'

carla-scenario-runner:
depends_on:
carla-simulator:
condition: service_healthy
volumes:
- ../utils/scenarios:/scenarios
image: rwthika/carla-scenario-runner:latest
command: bash -ic "python ./scenario_runner.py --host carla-simulator --openscenario /scenarios/town10.xosc.opt --output"

0 comments on commit 499eead

Please sign in to comment.