Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assorted fixes #325

Closed
wants to merge 383 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
383 commits
Select commit Hold shift + click to select a range
113ad9e
wip
misoshiruseijin Aug 16, 2023
7d478d0
wip
misoshiruseijin Aug 16, 2023
9606972
wip
misoshiruseijin Aug 16, 2023
77312dd
grasp pose changes
misoshiruseijin Aug 16, 2023
e4aab2d
clean up code
misoshiruseijin Aug 16, 2023
566142a
Merge branch 'action-primitives' into symbolic-primitives
cgokmen Aug 17, 2023
ca74051
Remove some changes - we'll do them later.
cgokmen Aug 17, 2023
f2dc88c
Merge pull request #251 from StanfordVL/open-close-revolute
sujaygarlanka Aug 17, 2023
518c4f6
add motion validator
sujaygarlanka Aug 17, 2023
308589b
Merge branch 'action-primitives' into add-motion-validator
sujaygarlanka Aug 17, 2023
09332c5
Merge pull request #259 from StanfordVL/symbolic-primitives
cgokmen Aug 17, 2023
2d0e550
change final path simplification code
sujaygarlanka Aug 17, 2023
51afb62
Merge branch 'add-motion-validator' of github.com:StanfordVL/OmniGibs…
sujaygarlanka Aug 17, 2023
1796736
Merge pull request #260 from StanfordVL/add-motion-validator
sujaygarlanka Aug 17, 2023
c2f7730
Merge branch 'og-develop' into action-primitives
cgokmen Aug 18, 2023
43546fd
wip
sujaygarlanka Aug 19, 2023
0619767
requested changes for minor issues
sujaygarlanka Aug 19, 2023
6bf846e
wip
sujaygarlanka Aug 19, 2023
7f42f41
wip
sujaygarlanka Aug 20, 2023
976a1ec
wip
sujaygarlanka Aug 20, 2023
06dc5e3
wip
sujaygarlanka Aug 21, 2023
18b13c9
wip
sujaygarlanka Aug 22, 2023
e2c2422
wip
sujaygarlanka Aug 22, 2023
e595baf
wip
sujaygarlanka Aug 22, 2023
69fc41d
wip
sujaygarlanka Aug 23, 2023
7250b23
Clean up condition checking API for use in
cgokmen Aug 23, 2023
9771bc5
Implement some of the new primitives.
cgokmen Aug 23, 2023
0a7a43e
Merge branch 'isaac-2023-1-0-compat' into more-symbolic-primitives
cgokmen Aug 23, 2023
a251aa6
Add all primitives
cgokmen Aug 23, 2023
1456cda
Move scene graph builder import
cgokmen Aug 23, 2023
084a82f
Update symbolic_semantic_action_primitives.py
cgokmen Aug 23, 2023
f0307a8
Fix bad import names
cgokmen Aug 24, 2023
57b865f
wip
sujaygarlanka Aug 24, 2023
90f05cb
Get some more tests working. Improve fixture config
cgokmen Aug 24, 2023
d342538
wip
sujaygarlanka Aug 24, 2023
3dd9665
Add more unit tests
cgokmen Aug 24, 2023
cf9dfe6
Merge branch 'og-develop' into action-primitives
cgokmen Aug 24, 2023
5845938
Merge branch 'action-primitives' into more-symbolic-primitives
cgokmen Aug 24, 2023
76db4e7
Make it easier to debug tests
cgokmen Aug 24, 2023
d7673cc
wip
sujaygarlanka Aug 25, 2023
0beac27
clean up code
sujaygarlanka Aug 25, 2023
350dd51
Merge pull request #261 from StanfordVL/fix-meshes
sujaygarlanka Aug 25, 2023
564b429
Small fix to toggle
cgokmen Aug 25, 2023
7fda676
Merge branch 'og-develop' into action-primitives
cgokmen Sep 1, 2023
4522395
Merge branch 'action-primitives' into more-symbolic-primitives
cgokmen Sep 1, 2023
bc11b7e
Merge pull request #263 from StanfordVL/more-symbolic-primitives
cgokmen Sep 1, 2023
6a8f8af
initialize merge and add skill str in yield statements
misoshiruseijin Sep 4, 2023
1389e82
add support for delta commands in joint position control
mj-hwang Sep 4, 2023
395652a
fix skill str in yield for _settle_robot function
mj-hwang Sep 4, 2023
5a06544
add support for fixed torso mode
mj-hwang Sep 4, 2023
1743bdd
Some fixes and a knife test
cgokmen Sep 5, 2023
6600df9
add ability to specify sensor config for robots
cremebrule Sep 5, 2023
e555aff
update configs with sensor_config
cremebrule Sep 5, 2023
20040b8
fix typo
cremebrule Sep 5, 2023
806ba61
Merge pull request #270 from StanfordVL/feat/sensor-config
cremebrule Sep 5, 2023
3103ca1
add support for ik controller skills and latest og assets
mj-hwang Sep 6, 2023
674d171
add robot pose to modality and add wrist camera support
mj-hwang Sep 7, 2023
e4b3ded
Implement ability to trigger rules manually
cgokmen Sep 12, 2023
6759399
Update graph_builder.py
cgokmen Sep 12, 2023
5b0704e
Integrate IK Controller to collision-free planning
mj-hwang Sep 12, 2023
aa7f907
fix reset hand in IK mode
mj-hwang Sep 13, 2023
5899aa1
add grasp task, reward function, termination condition
sujaygarlanka Sep 13, 2023
d83b66e
Fix Python version reader on Linux
cgokmen Sep 13, 2023
5f2f0db
Merge pull request #272 from StanfordVL/fix-python-version-reader
cremebrule Sep 13, 2023
8eb2884
tiago scene restoration bug fix, clean up prints
misoshiruseijin Sep 13, 2023
f9c95c7
Fix transition rule object removal code
cgokmen Sep 14, 2023
d4c36f9
Improved & up-to-date docker with no Vulkan mount
cgokmen Sep 14, 2023
3c837b3
wip
sujaygarlanka Sep 14, 2023
043005d
improve performance in open and close
mj-hwang Sep 14, 2023
441380f
Merge branch 'action-primitives-moma' of https://github.com/StanfordV…
mj-hwang Sep 14, 2023
0c65725
modify reward and add test
sujaygarlanka Sep 14, 2023
9b1528d
clean up code
sujaygarlanka Sep 14, 2023
3c60f92
clean up code
sujaygarlanka Sep 14, 2023
43daec3
clean up code
sujaygarlanka Sep 14, 2023
7fd891f
fix reward function
sujaygarlanka Sep 14, 2023
f0d1377
wip
sujaygarlanka Sep 15, 2023
4a7f636
wip
sujaygarlanka Sep 15, 2023
3647e8f
minor changes for open and close
sujaygarlanka Sep 17, 2023
007ec89
randomize arm and base before every run
sujaygarlanka Sep 17, 2023
f9998d1
clean up code
sujaygarlanka Sep 17, 2023
aa0f2d3
Set up docker build matrix
cgokmen Sep 18, 2023
cd19f0f
Docker hub, not github
cgokmen Sep 18, 2023
24900d4
Fix docker dependency chain
cgokmen Sep 19, 2023
046e6f1
Print the updated Dockerfile.
cgokmen Sep 19, 2023
b2d03c5
Make the build command take the context into account
cgokmen Sep 19, 2023
0279da3
code to save RL experiments
sujaygarlanka Sep 19, 2023
73d0cd6
Update traversable_map.py
cgokmen Sep 19, 2023
aba4ff2
Merge branch 'action-primitives' of https://github.com/StanfordVL/Omn…
cgokmen Sep 19, 2023
2f2a2a5
modify backward motion for closing
mj-hwang Sep 19, 2023
c856deb
update IK Control module in motion planning and open/close
mj-hwang Sep 21, 2023
9993a82
Merge branch 'og-develop' into action-primitives
sujaygarlanka Sep 21, 2023
4495cca
Merge branch 'action-primitives' into primitive-reward-function
sujaygarlanka Sep 21, 2023
91c2360
Fix a couple things
cgokmen Sep 21, 2023
a691354
improve performance of close and update hand stuck logic
mj-hwang Sep 21, 2023
755ae24
add ag_states to save/restore
misoshiruseijin Sep 22, 2023
95f731e
add AG info to simulator save & restore; resolve datatype mismatch wh…
misoshiruseijin Sep 22, 2023
336254f
add penalty for colliding, change image resolution, update saving ite…
sujaygarlanka Sep 22, 2023
b60d606
Updated tests
cgokmen Sep 22, 2023
23b8ed1
improve close performance and add with_context function for returned …
mj-hwang Sep 24, 2023
c5c45d6
Merge pull request #274 from StanfordVL/primitive-reward-function
cgokmen Sep 25, 2023
439db05
Merge branch 'action-primitives' into action-primitives-moma
mj-hwang Sep 25, 2023
3f66f9a
Merge pull request #273 from StanfordVL/action-primitives-moma
mj-hwang Sep 25, 2023
4acca40
Rebase symbolic primitives on regular ones
cgokmen Sep 26, 2023
dae798e
Remove teleport mode
cgokmen Sep 26, 2023
4f51e52
Make the apply function work again
cgokmen Sep 26, 2023
0215590
Readd custom apply_ref for symbolic prims
cgokmen Sep 26, 2023
28f793f
fix typo & remove duplicate variable assignments, remove typecasting …
misoshiruseijin Sep 26, 2023
14340f1
restore accidentally removed lines
misoshiruseijin Sep 27, 2023
0d4f235
Make Tiago run OK on the GPU
cgokmen Sep 28, 2023
0cfcbe1
update head tracking
misoshiruseijin Sep 28, 2023
d570d53
Merge branch 'action-primitives' of github.com:StanfordVL/OmniGibson …
misoshiruseijin Sep 28, 2023
332d5c3
New SLURM examples
cgokmen Sep 28, 2023
d6ec31f
Add support for overriding robot config in scene file
cgokmen Sep 28, 2023
60e75e1
Revert "Add support for overriding robot config in scene file"
cgokmen Sep 28, 2023
018e136
Tiago-ify homeboy config
cgokmen Sep 28, 2023
4b90252
Make newly loaded robots not load state
cgokmen Sep 28, 2023
70c84d5
Fix disable grasp handling
cgokmen Sep 28, 2023
7f8674b
Fix typo in unit test
cgokmen Sep 28, 2023
b524661
For now, forget about navigating
cgokmen Sep 29, 2023
4504012
Fix near_poses behavior
cgokmen Sep 29, 2023
a1eeca6
Update slurm.md
cgokmen Sep 29, 2023
761b11a
revert change in obs modality keys in base env
mj-hwang Sep 29, 2023
22156ff
Move primitives config file
cgokmen Sep 29, 2023
2379cf4
Some error checking
cgokmen Sep 29, 2023
97e1711
No more docs build on the OG repo.
cgokmen Oct 3, 2023
48988d2
Merge pull request #286 from StanfordVL/main
cgokmen Oct 4, 2023
6846ba4
Put an upper bound on how long we can wait for settling
cgokmen Oct 5, 2023
7ecb719
Add disable grasp handling support to Fetch too
cgokmen Oct 5, 2023
23830ea
Revert symbolic primitive tests to Fetch
cgokmen Oct 5, 2023
a5ab098
Add some version-specific overrides into our custom CreateMeshPrimWit…
cgokmen Oct 5, 2023
1d40a33
Revert "Add some version-specific overrides into our custom CreateMes…
cgokmen Oct 5, 2023
7283d7f
Update CreateMeshPrimWithDefaultXformCommand to 2023.1.0 version (whi…
cgokmen Oct 5, 2023
65c0d39
Update symbolic_semantic_action_primitives.py
cgokmen Oct 5, 2023
217188b
Fix bug in scene graph builder
cgokmen Oct 10, 2023
422dbbf
Hotfix for failing on a vec3f that comes in object parts when object …
cgokmen Oct 10, 2023
255146a
Update macros.py
cgokmen Oct 11, 2023
1ba1166
Make particle systems work on 2023.1.0
cgokmen Oct 11, 2023
c0ddc21
Remove some util stuff
cgokmen Oct 11, 2023
bd0f568
Final fix to the deprecated utils situation
cgokmen Oct 11, 2023
4425b81
Handle base aligned bounding box for cloth by defaulting to AABB
cgokmen Oct 11, 2023
49d8ab6
Update deprecated_utils.py
cgokmen Oct 11, 2023
296d2c6
Fix too verbose debug
cgokmen Oct 11, 2023
fcc463e
Add franka allegro robot
wensi-ai Oct 12, 2023
d99eb85
Change init file
wensi-ai Oct 12, 2023
cc403a4
Handle ap calls on robots
cgokmen Oct 12, 2023
7cb4702
Add in hand state
cgokmen Oct 12, 2023
0338f8c
Better implementation of cloth bb
cgokmen Oct 12, 2023
6614ab6
Revert simulator change
wensi-ai Oct 13, 2023
a853034
Start enabling more primitives
cgokmen Oct 14, 2023
6562083
Update dev.Dockerfile
sujaygarlanka Oct 14, 2023
69e3d9f
Merge pull request #287 from StanfordVL/fix-ompl-docker
sujaygarlanka Oct 14, 2023
7cfb3ea
Fix typo in scene_base.py
eltociear Oct 16, 2023
8c0e8ae
Clean up franka allegro class
wensi-ai Oct 16, 2023
f00ad62
Add franka panda robot
wensi-ai Oct 16, 2023
e5ba3db
Remove tuck/untuck for Franka
wensi-ai Oct 16, 2023
1751a72
Add an option for always fixing a camera on the EEF
mj-hwang Oct 17, 2023
e5b619f
linux setup fix
wensi-ai Oct 17, 2023
361008a
Merge pull request #290 from StanfordVL/setup-fix
cgokmen Oct 17, 2023
2bca02e
Merge branch 'og-develop' into patch-1
cgokmen Oct 17, 2023
9ed0308
Merge pull request #288 from eltociear/patch-1
cgokmen Oct 17, 2023
6a1b415
Merge branch 'og-develop' into franka_allegro
wensi-ai Oct 17, 2023
006775a
Merge pull request #289 from StanfordVL/franka_allegro
wensi-ai Oct 17, 2023
45672ea
Decontainerize tests
cgokmen Oct 17, 2023
0aee039
Retest docker build
cgokmen Oct 17, 2023
02268aa
Switch over to 2023.1.0 containers
cgokmen Oct 18, 2023
9094eb7
docs: fix typos in docs/getting_started/building_blocks.md
suravshresth Oct 18, 2023
bc0f4ee
Merge branch 'og-develop' into patch1
wensi-ai Oct 18, 2023
a828607
Merge pull request #292 from suravshresth/patch1
wensi-ai Oct 18, 2023
ad5288d
Remove now-unnecessary driver logic
cgokmen Oct 18, 2023
f81a6c9
Merge branch 'og-develop' into docker-decontainerize
cgokmen Oct 18, 2023
1709ec2
Merge pull request #291 from StanfordVL/docker-decontainerize
cgokmen Oct 18, 2023
e9b873c
Merge branch 'main' into action-primitives
cgokmen Oct 18, 2023
9d13d44
Merge branch 'og-develop' into action-primitives
cgokmen Oct 18, 2023
9bcad5a
Clean up some things
cgokmen Oct 18, 2023
69a0cf4
Update particle_source_or_sink.py
cgokmen Oct 18, 2023
a59643f
Remove unnecessary utils
cgokmen Oct 18, 2023
14e2444
Update joint_prim.py
cgokmen Oct 18, 2023
fa3dd16
Update fetch.py
cgokmen Oct 18, 2023
4f3b6fa
Remove print statement
cgokmen Oct 18, 2023
bdc9f17
Be a bit more descriptive with some errors
cgokmen Oct 18, 2023
01df6ad
Fix array conversion
cgokmen Oct 18, 2023
1b1988b
Update particle utils with support for the 2023 version
cgokmen Oct 18, 2023
f8f2c24
Merge pull request #293 from StanfordVL/2023-compat
cgokmen Oct 18, 2023
5668ee9
No need for QEMU
cgokmen Oct 18, 2023
bcaf3ad
Remove docker image caching
cgokmen Oct 18, 2023
44a794c
Add an option to use external camera as additional modalities in env obs
mj-hwang Oct 18, 2023
fe2c093
Revert "Add an option to use external camera as additional modalities…
cgokmen Oct 18, 2023
611eda8
Try to avoid space limitations on Docker build
cgokmen Oct 18, 2023
41810f9
Switch to buildah for Docker builds
cgokmen Oct 18, 2023
a8797ba
Back to GH-hosted
cgokmen Oct 18, 2023
d443747
Fix changed runner config for wrong image
cgokmen Oct 18, 2023
e245884
Set auth file path
cgokmen Oct 19, 2023
c19b28b
Make docker config dir
cgokmen Oct 19, 2023
8936ad0
Make dummy docker config file
cgokmen Oct 19, 2023
0599f08
Fix dummy docker config
cgokmen Oct 19, 2023
11e7424
Remove the docker config dir instead of trying to fix it
cgokmen Oct 19, 2023
b10f807
Use mock docker config file
cgokmen Oct 19, 2023
17dbf5a
Make the directory first
cgokmen Oct 19, 2023
03055be
Pre-clean disk space
cgokmen Oct 19, 2023
161bed0
No need to be very precise about disk space reporting
cgokmen Oct 19, 2023
e1f6c1e
Back to docker instead of podman
cgokmen Oct 19, 2023
3d4297e
Merge branch 'og-develop' into action-primitives
cgokmen Oct 19, 2023
1cbc141
Update the IK Solver acccording to the lula update in 2023.1.0
mj-hwang Oct 22, 2023
f5344f8
Add the IK Solver file for 2023.1.0
mj-hwang Oct 23, 2023
be8c9bd
add version check in IK solver to support old versions
mj-hwang Oct 24, 2023
9b8aafb
Some fixes
cgokmen Oct 24, 2023
ab6efe6
Start addressing comments
cgokmen Oct 24, 2023
04e79b5
More comments addressed
cgokmen Oct 24, 2023
f56cadd
Address more comments
cgokmen Oct 25, 2023
e014ba2
Clean up tracking behavior & some other fixes
cgokmen Oct 25, 2023
10af25a
Continue cleaning things up
cgokmen Oct 25, 2023
2dc78d7
More fixes
cgokmen Oct 25, 2023
828c500
Address a lot more comments
cgokmen Oct 26, 2023
83cef8c
Merge pull request #299 from StanfordVL/ik_solver_fix_2023_1
cgokmen Oct 26, 2023
d7b341f
Merge remote-tracking branch 'origin/og-develop' into action-primitives
cgokmen Oct 26, 2023
b24a57e
Address more comments
cgokmen Oct 26, 2023
e170158
Fixes w/ Sujay
cgokmen Oct 26, 2023
2feb290
Merge branch 'og-develop' into save-restore-ag
cgokmen Oct 26, 2023
c5676c4
Merge pull request #278 from StanfordVL/save-restore-ag
cgokmen Oct 26, 2023
510252b
More updates
cgokmen Oct 27, 2023
1f582d6
Address more comments.
cgokmen Oct 27, 2023
846aa9d
More fixes.
cgokmen Oct 28, 2023
34e0bca
Couple more fixes.
cgokmen Oct 28, 2023
aad5d30
Address remaining comments.
cgokmen Oct 28, 2023
2ea9f22
Merge branch 'main' into og-develop
cgokmen Oct 31, 2023
00447db
Some updates
cgokmen Nov 1, 2023
c5646cf
Address more comments.
cgokmen Nov 1, 2023
21a3645
Remove the weird ag_data field
cgokmen Nov 1, 2023
df170c2
Combine can-grasp and what-kind-of-grasp mechanisms into a single fun…
cgokmen Nov 1, 2023
9030417
Some fixes
cgokmen Nov 1, 2023
17ae1cb
Add Tiago name
cgokmen Nov 1, 2023
fef4fdd
Add info about error step to env step errors
cgokmen Nov 1, 2023
7b1aa14
Add assertions to all position getter and setters for quat validity
cgokmen Nov 1, 2023
c51b08f
Fix typo
cgokmen Nov 1, 2023
ba56d8b
More fixes
cgokmen Nov 2, 2023
f74dc4b
Update test_symbolic_primitives.py
cgokmen Nov 3, 2023
cb367f1
Merge branch 'og-develop' into action-primitives
cgokmen Nov 3, 2023
a24576d
Merge pull request #257 from StanfordVL/action-primitives
cgokmen Nov 3, 2023
84585c7
Fix bugs on og-develop
wensi-ai Nov 5, 2023
71a783e
Revert headless removal
wensi-ai Nov 5, 2023
1eb91d5
Merge pull request #314 from StanfordVL/ap-fix
wensi-ai Nov 5, 2023
3cd5978
wip
sujaygarlanka Nov 6, 2023
dc2a9ce
fix primitive tests
sujaygarlanka Nov 6, 2023
bcd1a3f
clean up code
sujaygarlanka Nov 6, 2023
af78228
clean up code
sujaygarlanka Nov 6, 2023
09ea6b5
remove command dim assertion and revert joint controller
sujaygarlanka Nov 6, 2023
d7a6db6
Merge pull request #315 from StanfordVL/fixes-for-primitives
cgokmen Nov 6, 2023
e5385ed
Remove unnecessary docker build branch
cgokmen Nov 6, 2023
3a95122
Update Dockerfile to use the hotfix version
cgokmen Nov 14, 2023
5f8cc20
add manipulation idx to robot
sujaygarlanka Nov 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 54 additions & 8 deletions .github/workflows/build-push-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,67 @@ on:

jobs:
docker:
runs-on: [self-hosted, linux, gpu]
runs-on: ubuntu-latest
steps:
-
name: Check disk space
run: df . -h
-
name: Free disk space
run: |
sudo docker rmi $(docker image ls -aq) >/dev/null 2>&1 || true
sudo rm -rf \
/usr/share/dotnet /usr/local/lib/android /opt/ghc \
/usr/local/share/powershell /usr/share/swift /usr/local/.ghcup \
/usr/lib/jvm || true
echo "some directories deleted"
sudo apt install aptitude -y >/dev/null 2>&1
sudo aptitude purge aria2 ansible azure-cli shellcheck rpm xorriso zsync \
esl-erlang firefox gfortran-8 gfortran-9 google-chrome-stable \
google-cloud-sdk imagemagick \
libmagickcore-dev libmagickwand-dev libmagic-dev ant ant-optional kubectl \
mercurial apt-transport-https mono-complete libmysqlclient \
unixodbc-dev yarn chrpath libssl-dev libxft-dev \
libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev \
snmp pollinate libpq-dev postgresql-client powershell ruby-full \
sphinxsearch subversion mongodb-org azure-cli microsoft-edge-stable \
-y -f >/dev/null 2>&1
sudo aptitude purge google-cloud-sdk -f -y >/dev/null 2>&1
sudo aptitude purge microsoft-edge-stable -f -y >/dev/null 2>&1 || true
sudo apt purge microsoft-edge-stable -f -y >/dev/null 2>&1 || true
sudo aptitude purge '~n ^mysql' -f -y >/dev/null 2>&1
sudo aptitude purge '~n ^php' -f -y >/dev/null 2>&1
sudo aptitude purge '~n ^dotnet' -f -y >/dev/null 2>&1
sudo apt-get autoremove -y >/dev/null 2>&1
sudo apt-get autoclean -y >/dev/null 2>&1
echo "some packages purged"
-
name: Check disk space
run: |
df . -h
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
-
name: Login to NVCR
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: nvcr.io
username: ${{ secrets.NVCR_USERNAME }}
password: ${{ secrets.NVCR_PASSWORD }}
-
name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
-
name: Metadata for dev Image
id: meta-dev
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: |
stanfordvl/omnigibson-dev
Expand All @@ -41,7 +80,7 @@ jobs:
-
name: Metadata for prod Image
id: meta-prod
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: |
stanfordvl/omnigibson
Expand All @@ -50,18 +89,25 @@ jobs:
type=semver,pattern={{version}}
-
name: Build and push dev image
uses: docker/build-push-action@v4
id: build-dev
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta-dev.outputs.tags }}
labels: ${{ steps.meta-dev.outputs.labels }}
file: docker/dev.Dockerfile
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Update prod image Dockerfile with dev image tag
run: |
sed -i "s/omnigibson-dev:latest/omnigibson-dev@${{ steps.build-dev.outputs.digest }}/g" docker/prod.Dockerfile && cat docker/prod.Dockerfile
-
name: Build and push prod image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta-prod.outputs.tags }}
labels: ${{ steps.meta-prod.outputs.labels }}
Expand Down
77 changes: 0 additions & 77 deletions .github/workflows/docs.yml

This file was deleted.

21 changes: 1 addition & 20 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,7 @@ concurrency:

jobs:
test:
runs-on: [self-hosted, linux, gpu]
container:
image: stanfordvl/omnigibson-dev:latest
options: --gpus=all --privileged --user=root
env:
DISPLAY: ""
OMNIGIBSON_HEADLESS: 1
volumes:
- /scr/omni-data/datasets:/data
- /usr/share/vulkan/icd.d/nvidia_icd.json:/etc/vulkan/icd.d/nvidia_icd.json
- /usr/share/vulkan/icd.d/nvidia_layers.json:/etc/vulkan/implicit_layer.d/nvidia_layers.json
- /usr/share/glvnd/egl_vendor.d/10_nvidia.json:/usr/share/glvnd/egl_vendor.d/10_nvidia.json
- /scr/omni-data/isaac-sim/cache/ov:/root/.cache/ov:rw
- /scr/omni-data/isaac-sim/cache/pip:/root/.cache/pip:rw
- /scr/omni-data/isaac-sim/cache/glcache:/root/.cache/nvidia/GLCache:rw
- /scr/omni-data/isaac-sim/cache/computecache:/root/.nv/ComputeCache:rw
- /scr/omni-data/isaac-sim/logs:/root/.nvidia-omniverse/logs:rw
- /scr/omni-data/isaac-sim/config:/root/.nvidia-omniverse/config:rw
- /scr/omni-data/isaac-sim/data:/root/.local/share/ov/data:rw
- /scr/omni-data/isaac-sim/documents:/root/Documents:rw
runs-on: [self-hosted, linux, gpu, dataset-enabled]

defaults:
run:
Expand Down
18 changes: 10 additions & 8 deletions docker/dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nvcr.io/nvidia/isaac-sim:2022.2.0
FROM nvcr.io/nvidia/isaac-sim:2023.1.0-hotfix.1

# Set up all the prerequisites.
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
Expand All @@ -19,7 +19,7 @@ ENV OMNIGIBSON_KEY_PATH /data/omnigibson.key
# Install Mamba (light conda alternative)
RUN curl -Ls https://micro.mamba.pm/api/micromamba/linux-64/latest | tar -xvj -C / bin/micromamba
ENV MAMBA_ROOT_PREFIX /micromamba
RUN micromamba create -n omnigibson -c conda-forge python=3.7
RUN micromamba create -n omnigibson -c conda-forge python=3.10
RUN micromamba shell init --shell=bash --prefix=/micromamba

# Make sure isaac gets properly sourced every time omnigibson gets called
Expand All @@ -38,22 +38,24 @@ ENV MAKEFLAGS="-j `nproc`"
RUN micromamba run -n omnigibson micromamba install -c conda-forge boost && \
micromamba run -n omnigibson pip install pyplusplus && \
git clone https://github.com/ompl/ompl.git /ompl && \
mkdir -p /ompl/build/Release
mkdir -p /ompl/build/Release && \
sed -i "s/find_program(PYPY/# find_program(PYPY/g" /ompl/CMakeModules/Findpypy.cmake

# Build and install OMPL
RUN cd /ompl/build/Release && \
# Build and install OMPL
RUN micromamba run -n omnigibson /bin/bash --login -c 'source /isaac-sim/setup_conda_env.sh && (which python > /root/PYTHON_EXEC) && (echo $PYTHONPATH > /root/PYTHONPATH)' && \
cd /ompl/build/Release && \
micromamba run -n omnigibson cmake ../.. \
-DCMAKE_INSTALL_PREFIX="$CONDA_PREFIX" \
-DBOOST_ROOT="$CONDA_PREFIX" \
-DPYTHON_EXEC=/micromamba/envs/omnigibson/bin/python3.7 \
-DPYTHONPATH=/micromamba/envs/omnigibson/lib/python3.7/site-packages && \
-DPYTHON_EXEC=$(cat /root/PYTHON_EXEC) \
-DPYTHONPATH=$(cat /root/PYTHONPATH) && \
micromamba run -n omnigibson make -j 4 update_bindings && \
micromamba run -n omnigibson make -j 4 && \
cd py-bindings && \
micromamba run -n omnigibson make install

# Test OMPL
RUN micromamba run -n omnigibson python -c "import ompl"
RUN micromamba run -n omnigibson python -c "from ompl import base"

ENTRYPOINT ["micromamba", "run", "-n", "omnigibson"]

Expand Down
2 changes: 1 addition & 1 deletion docker/prod.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM stanfordvl/omnigibson-dev
FROM stanfordvl/omnigibson-dev:latest

# Copy over omnigibson source
ADD . /omnigibson-src
Expand Down
52 changes: 0 additions & 52 deletions docker/run_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,55 +26,6 @@ do
esac
done

ICD_PATH_1="/usr/share/vulkan/icd.d/nvidia_icd.json"
ICD_PATH_2="/etc/vulkan/icd.d/nvidia_icd.json"
LAYERS_PATH_1="/usr/share/vulkan/icd.d/nvidia_layers.json"
LAYERS_PATH_2="/usr/share/vulkan/implicit_layer.d/nvidia_layers.json"
LAYERS_PATH_3="/etc/vulkan/implicit_layer.d/nvidia_layers.json"
EGL_VENDOR_PATH="/usr/share/glvnd/egl_vendor.d/10_nvidia.json"

# Find the ICD file
if [ -e "$ICD_PATH_1" ]; then
ICD_PATH=$ICD_PATH_1
elif [ -e "$ICD_PATH_2" ]; then
ICD_PATH=$ICD_PATH_2
else
echo "Missing nvidia_icd.json file.";
echo "Typical paths:";
echo "- /usr/share/vulkan/icd.d/nvidia_icd.json or";
echo "- /etc/vulkan/icd.d/nvidia_icd.json";
echo "You can google nvidia_icd.json for your distro to find the correct path.";
echo "Consider updating your driver to 525 if you cannot find the file.";
echo "To continue update the ICD_PATH_1 at the top of the run_docker.sh file and retry";
exit;
fi

# Find the layers file
if [ -e "$LAYERS_PATH_1" ]; then
LAYERS_PATH=$LAYERS_PATH_1
elif [ -e "$LAYERS_PATH_2" ]; then
LAYERS_PATH=$LAYERS_PATH_2
elif [ -e "$LAYERS_PATH_3" ]; then
LAYERS_PATH=$LAYERS_PATH_3
else
echo "Missing nvidia_layers.json file."
echo "Typical paths:";
echo "- /usr/share/vulkan/icd.d/nvidia_layers.json";
echo "- /usr/share/vulkan/implicit_layer.d/nvidia_layers.json";
echo "- /etc/vulkan/implicit_layer.d/nvidia_layers.json";
echo "You can google nvidia_layers.json for your distro to find the correct path.";
echo "Consider updating your driver to 525 if you cannot find the file.";
echo "To continue update the LAYERS_PATH_1 at the top of the run_docker.sh file and retry";
exit;
fi

if [ ! -e "$EGL_VENDOR_PATH" ]; then
echo "Missing ${EGL_VENDOR_PATH} file."
echo "(default path: /usr/share/vulkan/icd.d/nvidia_icd.json)";
echo "To continue update the EGL_VENDOR_PATH at the top of the run_docker.sh file and retry";
exit;
fi

# Move directories from their legacy paths.
if [ -e "${DATA_PATH}/og_dataset" ]; then
mv "${DATA_PATH}/og_dataset" "${DATA_PATH}/datasets/og_dataset"
Expand Down Expand Up @@ -117,9 +68,6 @@ docker run \
-e DISPLAY=${DOCKER_DISPLAY} \
-e OMNIGIBSON_HEADLESS=${OMNIGIBSON_HEADLESS} \
-v $DATA_PATH/datasets:/data \
-v ${ICD_PATH}:/etc/vulkan/icd.d/nvidia_icd.json \
-v ${LAYERS_PATH}:/etc/vulkan/implicit_layer.d/nvidia_layers.json \
-v ${EGL_VENDOR_PATH}:/usr/share/glvnd/egl_vendor.d/10_nvidia.json \
-v $DATA_PATH/isaac-sim/cache/kit:/isaac-sim/kit/cache/Kit:rw \
-v $DATA_PATH/isaac-sim/cache/ov:/root/.cache/ov:rw \
-v $DATA_PATH/isaac-sim/cache/pip:/root/.cache/pip:rw \
Expand Down
Loading
Loading