From dabaeaa3eaa5954be30e5ace0763aef6203cd3e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Genesio=20=28=E4=BA=8C=E3=82=B3=E3=82=B2?= =?UTF-8?q?=E3=83=8D=29?= Date: Thu, 11 Apr 2024 16:20:50 +0200 Subject: [PATCH] Update run_creo2urdf.ps1 --- scripts/run_creo2urdf.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/run_creo2urdf.ps1 b/scripts/run_creo2urdf.ps1 index f530798..efaa06a 100644 --- a/scripts/run_creo2urdf.ps1 +++ b/scripts/run_creo2urdf.ps1 @@ -51,7 +51,11 @@ if ([string]::IsNullOrEmpty($outputPath)) { } $parametricExe = "$env:CREO9_INSTALL_PATH\..\Parametric\bin\parametric.exe" -Start-Process -FilePath $parametricExe -ArgumentList "-g:no_graphics", "-batch_mode", "creo2urdf", "+$asmPath", "+$yamlPath", "+$csvPath", "+$outputPath" -Wait +$process = Start-Process -FilePath $parametricExe -ArgumentList "-g:no_graphics", "-batch_mode", "creo2urdf", "+$asmPath", "+$yamlPath", "+$csvPath", "+$outputPath" -PassThru -NoNewWindow + +Start-Sleep -Seconds 30.0 + +$process | kill # Check if model.urdf exists in the output path $urdfPath = Join-Path -Path $outputPath -ChildPath "model.urdf"