You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
998 B
37 lines
998 B
@echo off
|
|
:: Activate the CARLA conda environment
|
|
call C:\ProgramData\miniconda3\Scripts\activate.bat carla312
|
|
|
|
:: ---------------------------------------------------------------
|
|
:: Usage:
|
|
:: run.bat braking
|
|
:: run.bat cutin
|
|
:: run.bat obstacle --frames 120
|
|
:: run.bat --list-scenarios
|
|
:: run.bat -l
|
|
:: ---------------------------------------------------------------
|
|
|
|
if "%~1"=="" (
|
|
echo [ERROR] No argument specified.
|
|
echo.
|
|
echo Usage:
|
|
echo run.bat braking
|
|
echo run.bat cutin
|
|
echo run.bat obstacle --frames 120
|
|
echo run.bat --list-scenarios
|
|
echo.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
:: Force unbuffered stdout/stderr so the Dashboard GUI receives output immediately
|
|
set PYTHONUNBUFFERED=1
|
|
|
|
:: Pass --list-scenarios / -l directly, otherwise treat first arg as scenario name
|
|
if "%~1"=="--list-scenarios" (
|
|
python src/main.py --list-scenarios
|
|
) else if "%~1"=="-l" (
|
|
python src/main.py --list-scenarios
|
|
) else (
|
|
python src/main.py --scenario %*
|
|
)
|