Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions src/carla_yolo_planner/run_planner.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
@echo off
chcp 65001 >nul
echo 正在激活 Conda 虚拟环境...
call conda activate carla_yolo

if %errorlevel% neq 0 (
echo 错误:无法激活虚拟环境 carla_yolo
pause
exit /b 1
)

echo 正在切换到项目目录...
cd /d D:\gmj\nn\src\carla_yolo_planner

if %errorlevel% neq 0 (
echo 错误:无法切换到目录 D:\gmj\nn\src\carla_yolo_planner
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

避免使用绝对路径

pause
exit /b 1
)

echo 正在启动 Carla YOLO Planner...
python main.py

echo 程序已退出
pause