Skip to content

Commit

Permalink
handle file and F5
Browse files Browse the repository at this point in the history
  • Loading branch information
Wojciech Turowicz committed Nov 22, 2023
1 parent 7df277e commit 9468464
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
1 change: 1 addition & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"kosunix.guid",
"eamodio.gitlens",
"redhat.vscode-yaml",
"rogalmic.bash-debug",
"mikeburgh.xml-format",
"donjayamanne.githistory",
"ms-azuretools.vscode-docker",
Expand Down
14 changes: 14 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"configurations": [
{
"type": "bashdb",
"request": "launch",
"name": "tutorial_basic_functionality",
"cwd": "${workspaceFolder}",
"program": "run.sh",
"args": [
"tutorial_basic_functionality"
]
}
]
}
13 changes: 11 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
#!/bin/bash
# ./run.sh tutorial_basic_functionality
/isaac-sim/runheadless.native.sh --no-window \
--/omni/replicator/replicatorYaml/yamlPath=/workspaces/synthetic-data-examples/omni.replicator_yaml/$1.yaml

FILE=/workspaces/synthetic-data-examples/omni.replicator_yaml/$1.yaml

if [ -f "$FILE" ]; then
/isaac-sim/runheadless.native.sh --no-window \
--/omni/replicator/replicatorYaml/yamlPath=$FILE
exit $?
else
echo "File not found: $FILE"
exit 1
fi

0 comments on commit 9468464

Please sign in to comment.