Skip to content

Commit

Permalink
fix: adding reworked examples with blueprint
Browse files Browse the repository at this point in the history
  • Loading branch information
Armando Bañuelos committed Apr 10, 2024
1 parent 3e55ee0 commit 7dfeca6
Show file tree
Hide file tree
Showing 2 changed files with 206 additions and 147 deletions.
12 changes: 11 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import os.path
from pathlib import Path
import re
import subprocess
import sys

import pytest
Expand Down Expand Up @@ -51,6 +50,17 @@ def loader(relpath, **kwargs):

return loader

@pytest.fixture(params=['town'])
def getCarlaSimulator():
from scenic.simulators.carla import CarlaSimulator
base = Path(__file__).parent.parent / "assets" / "maps" / "CARLA"

def _getCarlaSimulator(town):
path = os.path.join(base, town + '.xodr')
simulator = CarlaSimulator(carla_map=town, map_path=path)
return (simulator, town, path)

return _getCarlaSimulator

## Command-line options

Expand Down
Loading

0 comments on commit 7dfeca6

Please sign in to comment.