Skip to content

Commit eb7bce8

Browse files
Update 2025-02-24
0 parents  commit eb7bce8

File tree

176 files changed

+18870
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+18870
-0
lines changed

Diff for: .flake8

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# copied from https://github.com/isaac-sim/IsaacLab/blob/main/.flake8
2+
3+
[flake8]
4+
show-source=True
5+
statistics=True
6+
per-file-ignores=*/__init__.py:F401
7+
# E402: Module level import not at top of file
8+
# E501: Line too long
9+
# W503: Line break before binary operator
10+
# E203: Whitespace before ':' -> conflicts with black
11+
# D401: First line should be in imperative mood
12+
# R504: Unnecessary variable assignment before return statement.
13+
# R505: Unnecessary elif after return statement
14+
# SIM102: Use a single if-statement instead of nested if-statements
15+
# SIM117: Merge with statements for context managers that have same scope.
16+
ignore=E402,E501,W503,E203,D401,R504,R505,SIM102,SIM117
17+
max-line-length = 120
18+
max-complexity = 30
19+
exclude=_*,.vscode,.git,docs/**
20+
# docstrings
21+
docstring-convention=google
22+
# annotations
23+
suppress-none-returning=True
24+
allow-star-arg-any=True

Diff for: .gitattributes

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# copied and modified from https://github.com/NVIDIA/warp/blob/main/.gitattributes
2+
* text=auto
3+
*.sh text eol=LF
4+
# copied from https://github.com/isaac-sim/IsaacLab/blob/main/.gitattributes
5+
*.usd filter=lfs diff=lfs merge=lfs -text
6+
*.dae filter=lfs diff=lfs merge=lfs -text
7+
*.mtl filter=lfs diff=lfs merge=lfs -text
8+
*.obj filter=lfs diff=lfs merge=lfs -text
9+
*.gif filter=lfs diff=lfs merge=lfs -text
10+
*.png filter=lfs diff=lfs merge=lfs -text
11+
*.jpg filter=lfs diff=lfs merge=lfs -text
12+
*.psd filter=lfs diff=lfs merge=lfs -text
13+
*.mp4 filter=lfs diff=lfs merge=lfs -text
14+
*.usda filter=lfs diff=lfs merge=lfs -text
15+
*.hdr filter=lfs diff=lfs merge=lfs -text
16+
*.pt filter=lfs diff=lfs merge=lfs -text
17+
*.jit filter=lfs diff=lfs merge=lfs -text
18+
neural_wbc/data/data/policy/h1:student/model_40000.pt filter=lfs diff=lfs merge=lfs -text

Diff for: .gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
**/__pycache__/
2+
*.egg-info
3+
logs/
4+
/data/
5+
third_party/human2humanoid

Diff for: .gitmodules

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[submodule "third_party/poselib"]
2+
path = third_party/poselib
3+
url = ../../gr00t-control/poselib.git
4+
[submodule "third_party/human2humanoid"]
5+
path = third_party/human2humanoid
6+
url = https://github.com/LeCAR-Lab/human2humanoid
7+
ignore = dirty

Diff for: .pre-commit-config.yaml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
exclude: (third_party/.*)
2+
repos:
3+
- repo: https://github.com/python/black
4+
rev: 23.10.1
5+
hooks:
6+
- id: black
7+
args: ["--line-length", "120", "--preview"]
8+
- repo: https://github.com/pycqa/flake8
9+
rev: 6.1.0
10+
hooks:
11+
- id: flake8
12+
additional_dependencies: [flake8-simplify, flake8-return]
13+
- repo: https://github.com/pre-commit/pre-commit-hooks
14+
rev: v4.5.0
15+
hooks:
16+
- id: trailing-whitespace
17+
- id: check-symlinks
18+
- id: destroyed-symlinks
19+
- id: check-yaml
20+
- id: check-merge-conflict
21+
- id: check-case-conflict
22+
- id: check-executables-have-shebangs
23+
- id: check-toml
24+
- id: end-of-file-fixer
25+
- id: check-shebang-scripts-are-executable
26+
- id: detect-private-key
27+
- id: debug-statements
28+
- repo: https://github.com/pycqa/isort
29+
rev: 5.12.0
30+
hooks:
31+
- id: isort
32+
name: isort (python)
33+
args: ["--profile", "black", "--filter-files"]
34+
- repo: https://github.com/asottile/pyupgrade
35+
rev: v3.15.0
36+
hooks:
37+
- id: pyupgrade
38+
args: ["--py37-plus"]
39+
- repo: https://github.com/codespell-project/codespell
40+
rev: v2.2.6
41+
hooks:
42+
- id: codespell
43+
additional_dependencies:
44+
- tomli
45+
- repo: https://github.com/pre-commit/pygrep-hooks
46+
rev: v1.10.0
47+
hooks:
48+
- id: rst-backticks
49+
- id: rst-directive-colons
50+
- id: rst-inline-touching-normal

Diff for: CONTRIBUTING.md

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# How to Contribute
2+
3+
We'd love to accept your patches and contributions.
4+
5+
## Code Reviews
6+
7+
All submissions, including submissions by project members, require review. We use GitHub pull requests for this purpose. Consult
8+
[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more information on using pull requests.
9+
10+
## Signing Your Work
11+
12+
* We require that all contributors "sign-off" on their commits. This certifies that the contribution is your original work, or you have rights to submit it under the same license, or a compatible license.
13+
14+
* Any contribution which contains commits that are not Signed-Off will not be accepted.
15+
16+
* To sign off on a commit you simply use the `--signoff` (or `-s`) option when committing your changes:
17+
```bash
18+
$ git commit -s -m "Add cool feature."
19+
```
20+
This will append the following to your commit message:
21+
```
22+
Signed-off-by: Your Name <[email protected]>
23+
```
24+
25+
* Full text of the DCO:
26+
27+
```
28+
Developer Certificate of Origin
29+
Version 1.1
30+
31+
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
32+
1 Letterman Drive
33+
Suite D4700
34+
San Francisco, CA, 94129
35+
36+
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
37+
```
38+
39+
```
40+
Developer's Certificate of Origin 1.1
41+
42+
By making a contribution to this project, I certify that:
43+
44+
(a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or
45+
46+
(b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or
47+
48+
(c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it.
49+
50+
(d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved.

Diff for: Dockerfile

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# syntax=docker.io/docker/dockerfile:1.7-labs
2+
FROM nvcr.io/nvidia/isaac-lab:2.0.0
3+
4+
# Hide conflicting Vulkan files, if needed.
5+
RUN if [ -e "/usr/share/vulkan" ] && [ -e "/etc/vulkan" ]; then \
6+
mv /usr/share/vulkan /usr/share/vulkan_hidden; \
7+
fi
8+
9+
# Install vs code server and file browser to interact with the running workflow.
10+
RUN curl -fsSL https://code-server.dev/install.sh | bash
11+
RUN curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash
12+
13+
WORKDIR /workspace/neural_wbc
14+
15+
COPY \
16+
--exclude=Dockerfile \
17+
--exclude=data/ \
18+
--exclude=logs/ \
19+
--exclude=release/ \
20+
--exclude=run.py \
21+
--exclude=workflows/ \
22+
. /workspace/neural_wbc
23+
24+
RUN ./install_deps.sh
25+
26+
# Bake in a resume policy. This could be a teacher or student policy. We set this first since we
27+
# expect it to change less frequently than the policy below.
28+
ARG RESUME_PATH=neural_wbc/data/data/policy/h1:student/
29+
COPY ${RESUME_PATH} /workspace/neural_wbc/policy/resume
30+
ENV RESUME_PATH=/workspace/neural_wbc/policy/resume
31+
ARG RESUME_CHECKPOINT=model_4000.pt
32+
ENV RESUME_CHECKPOINT=${RESUME_CHECKPOINT}
33+
34+
# Bake in the main policy. This could be a teacher or student policy. Depending on the use case this
35+
# is used as the teacher policy or the evaluation policy.
36+
ARG POLICY_PATH=neural_wbc/data/data/policy/h1:teacher/
37+
COPY ${POLICY_PATH} /workspace/neural_wbc/policy/
38+
ENV POLICY_PATH=/workspace/neural_wbc/policy/
39+
ARG POLICY_CHECKPOINT=model_76000.pt
40+
ENV POLICY_CHECKPOINT=${POLICY_CHECKPOINT}

0 commit comments

Comments
 (0)