Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
37 changes: 35 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
# Omniverse
**/*.dmp
**/.thumbs

# Python
.DS_Store
**/*.egg-info/
**/__pycache__/
*.egg-info
logs/
**/.pytest_cache/
**/*.pyc
**/*.pb

# IDE
**/.idea/
**/.vscode/
# Don't ignore the top-level .vscode directory as it is
# used to configure VS Code settings
!.vscode

# Outputs
**/runs/*
**/logs/*
**/recordings/*
**/output/*
**/outputs/*
**/videos/*
**/wandb/*
**/.neptune/*
docker/artifacts/
*.tmp

# Isaac-Sim packman
_isaac_sim*
_repo
_build
.lastformat
2 changes: 1 addition & 1 deletion .vscode/.gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Note: These files are kept for development purposes only.
!tools/launch.template.json
!tools/settings.template.json
!tools/setup_vscode.py
!extensions.json
!launch.json
!tasks.json

# Ignore all other files
Expand Down
4 changes: 0 additions & 4 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"ms-vscode.cpptools",
"ms-python.python",
"ms-python.vscode-pylance",
"ban.spellright",
"streetsidesoftware.code-spell-checker",
"ms-iot.vscode-ros",
"ExecutableBookProject.myst-highlight",
"ms-python.black-formatter",
"ms-python.flake8",
"njpwerner.autodocstring"
]
}
11 changes: 7 additions & 4 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,18 @@
"label": "setup_python_env",
"type": "shell",
"linux": {
"command": "export CARB_APP_PATH=${input:isaacsim_path}/kit && export ISAAC_PATH=${input:isaacsim_path} && export EXP_PATH=${input:isaacsim_path}/apps && source ${input:isaacsim_path}/setup_python_env.sh && printenv >${workspaceFolder}/.vscode/.python.env && ${input:isaacsim_path}/python.sh ${workspaceFolder}/.vscode/tools/setup_vscode.py --isaacsim_path ${input:isaacsim_path}"
"command": "${input:isaac_path}/python.sh ${workspaceFolder}/.vscode/tools/setup_vscode.py --isaac_path ${input:isaac_path}"
},
"windows": {
"command": "${input:isaac_path}/python.bat ${workspaceFolder}/.vscode/tools/setup_vscode.py --isaac_path ${input:isaac_path}"
}
}
],
"inputs": [
{
"id": "isaacsim_path",
"description": "Absolute path to Isaac Sim:",
"default": "",
"id": "isaac_path",
"description": "Absolute path to the current Isaac Sim installation. Can be skipped if Isaac Sim installed from pip.",
"default": "${HOME}/.local/share/ov/pkg/isaac_sim-4.2.0",
"type": "promptString"
},
]
Expand Down
16 changes: 0 additions & 16 deletions .vscode/launch.json → .vscode/tools/launch.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,13 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
// Attach to simulation during runtime. This is useful for debugging extensions.
// For more information, visit: https://docs.omniverse.nvidia.com/isaacsim/latest/advanced_tutorials/tutorial_advanced_python_debugging.html#attaching-the-debugger-to-a-running-app
{
"name": "Python: Attach (windows-x86_64/linux-x86_64)",
"type": "python",
"request": "attach",
"port": 3000,
"host": "localhost"
},

// For standalone script execution
{
"name": "Python: Current File",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"envFile": "${workspaceFolder}/.vscode/.python.env",
},
{
"name": "Python: Train Environment",
Expand All @@ -30,7 +19,6 @@
"args" : ["--task", "Template-Isaac-Velocity-Flat-Anymal-D-v0", "--num_envs", "4096", "--headless"],
"program": "${workspaceFolder}/scripts/rsl_rl/train.py",
"console": "integratedTerminal",
"envFile": "${workspaceFolder}/.vscode/.python.env",
},
{
"name": "Python: Play Environment",
Expand All @@ -39,7 +27,6 @@
"args" : ["--task", "Template-Isaac-Velocity-Flat-Anymal-D-Play-v0", "--num_envs", "32"],
"program": "${workspaceFolder}/scripts/rsl_rl/play.py",
"console": "integratedTerminal",
"envFile": "${workspaceFolder}/.vscode/.python.env",
},

// For script execution inside a Docker
Expand All @@ -49,7 +36,6 @@
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"envFile": "${workspaceFolder}/.vscode/.python.env",
"env": {
"PYTHONPATH": "${env:PYTHONPATH}:${workspaceFolder}"
}
Expand All @@ -61,7 +47,6 @@
"args" : ["--task", "Template-Isaac-Velocity-Flat-Anymal-D-v0", "--num_envs", "4096", "--headless"],
"program": "${workspaceFolder}/scripts/rsl_rl/train.py",
"console": "integratedTerminal",
"envFile": "${workspaceFolder}/.vscode/.python.env",
"env": {
"PYTHONPATH": "${env:PYTHONPATH}:${workspaceFolder}"
}
Expand All @@ -73,7 +58,6 @@
"args" : ["--task", "Template-Isaac-Velocity-Flat-Anymal-D-Play-v0", "--num_envs", "32"],
"program": "${workspaceFolder}/scripts/rsl_rl/play.py",
"console": "integratedTerminal",
"envFile": "${workspaceFolder}/.vscode/.python.env",
"env": {
"PYTHONPATH": "${env:PYTHONPATH}:${workspaceFolder}"
}
Expand Down
24 changes: 13 additions & 11 deletions .vscode/tools/settings.template.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
{
// Configure glob patterns of file associations to languages (for example `"*.extension": "html"`).
// These have precedence over the default associations of the languages installed.
"files.associations": {
"*.tpp": "cpp",
"*.kit": "toml",
"*.rst": "restructuredtext"
},
"editor.rulers": [120],

// Configure paths or glob patterns to exclude from file watching. E.g. ignored by linter.
// files to be ignored by the linter
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
Expand Down Expand Up @@ -58,27 +56,31 @@
// This enables python language server. Seems to work slightly better than jedi:
"python.languageServer": "Pylance",
// We use "black" as a formatter:
"black-formatter.args": ["--line-length", "120",],
"python.formatting.provider": "black",
"python.formatting.blackArgs": ["--line-length", "120"],
// Use flake8 for linting
"flake8.args": ["--max-line-length", "120"],
"python.linting.pylintEnabled": false,
"python.linting.flake8Enabled": true,
"python.linting.flake8Args": [
"--max-line-length=120"
],
// Use docstring generator
"autoDocstring.docstringFormat": "google",
"autoDocstring.guessTypes": true,
// Python environment path
"python.defaultInterpreterPath": "_isaac_sim/python.sh",
"python.envFile": "${workspaceFolder}/.vscode/.python.env",
// note: the default interpreter is overridden when user selects a workspace interpreter
// in the status bar. For example, the virtual environment python interpreter
"python.defaultInterpreterPath": "",
// ROS distribution
"ros.distro": "noetic",
// Language specific settings
"[python]": {
"editor.tabSize": 4,
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true,
"editor.tabSize": 4
},
"[restructuredtext]": {
"editor.tabSize": 2
},
// Python extra paths
// Note: this is will be auto-filled
// Note: this is filled up when vscode is set up for the first time
"python.analysis.extraPaths": []
}
Loading