Skip to content

Commit

Permalink
Update run_creo2urdf.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicogene authored Apr 11, 2024
1 parent 6e8f4dc commit dabaeaa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/run_creo2urdf.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit dabaeaa

Please sign in to comment.