30 lines
789 B
Batchfile
30 lines
789 B
Batchfile
@echo off
|
|
REM run_eval_pose.bat
|
|
REM Wertet eine geschaetzte Pose gegen die Ground Truth aus.
|
|
REM Gibt Gelenkwinkelfehler (deg/mm) sowie Handgelenk- und Finger-Abstand (mm) aus.
|
|
REM
|
|
REM Aufruf:
|
|
REM run_eval_pose.bat data\evaluations\Scene8
|
|
REM run_eval_pose.bat data\camera_study\Scene10\k3_abc
|
|
|
|
cd /d "%~dp0.."
|
|
|
|
if "%1"=="" (
|
|
echo.
|
|
echo [INFO] Aufruf fehlt!
|
|
echo Beispiel: run_eval_pose.bat data\evaluations\Scene8
|
|
echo.
|
|
exit /b 1
|
|
)
|
|
|
|
set "EVAL_DIR=%~1"
|
|
if "%EVAL_DIR:~-1%"=="\" set "EVAL_DIR=%EVAL_DIR:~0,-1%"
|
|
|
|
for %%I in ("%EVAL_DIR%") do set "SCENE_NAME=%%~nxI"
|
|
|
|
set "ROBOT_STATE=%EVAL_DIR%\robot_state.json"
|
|
set "GT=data\simulation\%SCENE_NAME%\pose.json"
|
|
set "ROBOT=data\robot\robot.json"
|
|
|
|
python benchmark\eval_pose.py "%ROBOT_STATE%" "%GT%" --robot "%ROBOT%"
|