Skip to content

Commit

Permalink
Migrate from isaac sim 2023.1.1 to 4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
j3soon committed Jul 29, 2024
1 parent 4a7b26a commit d414586
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
password: ${{ secrets.NVCRIO_TOKEN }}
-
name: Pull Isaac Sim Docker Image
run: docker pull nvcr.io/nvidia/isaac-sim:2023.1.1
run: docker pull nvcr.io/nvidia/isaac-sim:4.1.0
-
name: Build and push
uses: docker/build-push-action@v4
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM nvcr.io/nvidia/isaac-sim:2023.1.1
FROM nvcr.io/nvidia/isaac-sim:4.1.0
COPY thirdparty/omnicli /omnicli
COPY scripts/docker/run.sh /run.sh
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ Use [`omnicli`](https://docs.omniverse.nvidia.com/connect/latest/connect-sample.

```sh
cd thirdparty/omnicli
./omnicli copy "../../tasks/isaac-sim-simulation-example.py" "omniverse://$NUCLEUS_HOSTNAME/Projects/J3soon/Isaac/2023.1.1/Scripts/isaac-sim-simulation-example.py"
./omnicli copy "../../tasks/isaac-sim-simulation-example.py" "omniverse://$NUCLEUS_HOSTNAME/Projects/J3soon/Isaac/4.1/Scripts/isaac-sim-simulation-example.py"
cd ../..
```

Expand All @@ -154,10 +154,10 @@ Then, submit the job:
```sh
scripts/submit_task.sh isaac-sim-basic-example \
"/run.sh \
--download-src 'omniverse://$NUCLEUS_HOSTNAME/Projects/J3soon/Isaac/2023.1.1/Scripts/isaac-sim-simulation-example.py' \
--download-src 'omniverse://$NUCLEUS_HOSTNAME/Projects/J3soon/Isaac/4.1/Scripts/isaac-sim-simulation-example.py' \
--download-dest '/src/isaac-sim-simulation-example.py' \
--upload-src '/results/isaac-sim-simulation-example.txt' \
--upload-dest 'omniverse://$NUCLEUS_HOSTNAME/Projects/J3soon/Isaac/2023.1.1/Results/isaac-sim-simulation-example.txt' \
--upload-dest 'omniverse://$NUCLEUS_HOSTNAME/Projects/J3soon/Isaac/4.1/Results/isaac-sim-simulation-example.txt' \
'./python.sh -u /src/isaac-sim-simulation-example.py 10'" \
"Isaac Sim Cube Fall"
```
Expand All @@ -178,7 +178,7 @@ Use [`omnicli`](https://docs.omniverse.nvidia.com/connect/latest/connect-sample.

```sh
cd thirdparty/omnicli
./omnicli copy "../../tasks/isaac-sim-simulation-example.py" "omniverse://$NUCLEUS_HOSTNAME/Projects/J3soon/Isaac/2023.1.1/Scripts/isaac-sim-simulation-example.py"
./omnicli copy "../../tasks/isaac-sim-simulation-example.py" "omniverse://$NUCLEUS_HOSTNAME/Projects/J3soon/Isaac/4.1/Scripts/isaac-sim-simulation-example.py"
cd ../..
```

Expand All @@ -194,10 +194,10 @@ Then, submit the job:
```sh
scripts/submit_task.sh isaac-sim-nucleus-example \
"/run.sh \
--download-src 'omniverse://$NUCLEUS_HOSTNAME/Projects/J3soon/Isaac/2023.1.1/Scripts/isaac-sim-simulation-example.py' \
--download-src 'omniverse://$NUCLEUS_HOSTNAME/Projects/J3soon/Isaac/4.1/Scripts/isaac-sim-simulation-example.py' \
--download-dest '/src/isaac-sim-simulation-example.py' \
--upload-src '/results/isaac-sim-simulation-example.txt' \
--upload-dest 'omniverse://$NUCLEUS_HOSTNAME/Projects/J3soon/Isaac/2023.1.1/Results/isaac-sim-simulation-example.txt' \
--upload-dest 'omniverse://$NUCLEUS_HOSTNAME/Projects/J3soon/Isaac/4.1/Results/isaac-sim-simulation-example.txt' \
'./python.sh -u /src/isaac-sim-simulation-example.py 10'" \
"Isaac Sim Cube Fall"
```
Expand All @@ -218,7 +218,7 @@ Use [`omnicli`](https://docs.omniverse.nvidia.com/connect/latest/connect-sample.

```sh
cd thirdparty/omnicli
./omnicli copy "../../tasks/isaac-sim-simulation-example.py" "omniverse://$NUCLEUS_HOSTNAME/Projects/J3soon/Isaac/2023.1.1/Scripts/isaac-sim-simulation-example.py"
./omnicli copy "../../tasks/isaac-sim-simulation-example.py" "omniverse://$NUCLEUS_HOSTNAME/Projects/J3soon/Isaac/4.1/Scripts/isaac-sim-simulation-example.py"
cd ../..
```

Expand All @@ -234,7 +234,7 @@ Then, submit the job:
```sh
scripts/submit_task.sh isaac-sim-volume-example \
"/run.sh \
--download-src 'omniverse://$NUCLEUS_HOSTNAME/Projects/J3soon/Isaac/2023.1.1/Scripts/isaac-sim-simulation-example.py' \
--download-src 'omniverse://$NUCLEUS_HOSTNAME/Projects/J3soon/Isaac/4.1/Scripts/isaac-sim-simulation-example.py' \
--download-dest '/src/isaac-sim-simulation-example.py' \
'ls /mnt/nfs' \
'mkdir -p /mnt/nfs/results' \
Expand Down
2 changes: 1 addition & 1 deletion job_definitions/isaac-sim-dummy-example.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"active_deadline_seconds": 864000
},
"container": "nvcr.io/nvidia/isaac-sim:2023.1.1",
"container": "nvcr.io/nvidia/isaac-sim:4.1.0",
"allowed_args": {
"args": {
"arg": "",
Expand Down
2 changes: 1 addition & 1 deletion tasks/isaac-sim-simulation-example.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

# (2) Write to Nucleus
# Make sure to replace `localhost` with the IP address or hostname of the machine running Nucleus.
result = omni.client.write_file("omniverse://localhost/Projects/J3soon/Isaac/2023.1.1/Outputs/isaac-sim-simulation-example.txt", output.encode())
result = omni.client.write_file("omniverse://localhost/Projects/J3soon/Isaac/4.1/Outputs/isaac-sim-simulation-example.txt", output.encode())
print(result)

simulation_app.close() # close Isaac Sim

0 comments on commit d414586

Please sign in to comment.