Files
calibration/tools/reproduce_synthetic.ps1
T

24 lines
610 B
PowerShell
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 一键复现合成标定(Windows
# 用法:在仓库根目录执行
# powershell -File tools\reproduce_synthetic.ps1
# powershell -File tools\reproduce_synthetic.ps1 -SkipPytest
# powershell -File tools\reproduce_synthetic.ps1 -Mode full_se3
param(
[ValidateSet("rotation_only", "full_se3")]
[string]$Mode = "rotation_only",
[switch]$SkipPytest
)
$ErrorActionPreference = "Stop"
$Root = Split-Path -Parent $PSScriptRoot
Set-Location $Root
$args = @("tools\reproduce_synthetic.py", "--mode", $Mode)
if ($SkipPytest) {
$args += "--skip-pytest"
}
python @args
exit $LASTEXITCODE