Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

Commit 09ed445

Browse files
authored
Updates the extension template to IsaacLab 1.2 (#35)
1 parent 5a42bcb commit 09ed445

File tree

15 files changed

+404
-183
lines changed

15 files changed

+404
-183
lines changed

.gitignore

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
1+
# Omniverse
2+
**/*.dmp
3+
**/.thumbs
4+
5+
# Python
6+
.DS_Store
7+
**/*.egg-info/
18
**/__pycache__/
2-
*.egg-info
3-
logs/
9+
**/.pytest_cache/
10+
**/*.pyc
11+
**/*.pb
12+
13+
# IDE
14+
**/.idea/
15+
**/.vscode/
16+
# Don't ignore the top-level .vscode directory as it is
17+
# used to configure VS Code settings
18+
!.vscode
19+
20+
# Outputs
21+
**/runs/*
22+
**/logs/*
23+
**/recordings/*
24+
**/output/*
25+
**/outputs/*
26+
**/videos/*
27+
**/wandb/*
28+
**/.neptune/*
29+
docker/artifacts/
30+
*.tmp
31+
32+
# Isaac-Sim packman
33+
_isaac_sim*
34+
_repo
35+
_build
36+
.lastformat

.vscode/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Note: These files are kept for development purposes only.
2+
!tools/launch.template.json
23
!tools/settings.template.json
34
!tools/setup_vscode.py
45
!extensions.json
5-
!launch.json
66
!tasks.json
77

88
# Ignore all other files

.vscode/extensions.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,11 @@
22
// See http://go.microsoft.com/fwlink/?LinkId=827846
33
// for the documentation about the extensions.json format
44
"recommendations": [
5-
"ms-vscode.cpptools",
65
"ms-python.python",
76
"ms-python.vscode-pylance",
87
"ban.spellright",
9-
"streetsidesoftware.code-spell-checker",
108
"ms-iot.vscode-ros",
11-
"ExecutableBookProject.myst-highlight",
129
"ms-python.black-formatter",
1310
"ms-python.flake8",
14-
"njpwerner.autodocstring"
1511
]
1612
}

.vscode/tasks.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,18 @@
55
"label": "setup_python_env",
66
"type": "shell",
77
"linux": {
8-
"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}"
8+
"command": "${input:isaac_path}/python.sh ${workspaceFolder}/.vscode/tools/setup_vscode.py --isaac_path ${input:isaac_path}"
9+
},
10+
"windows": {
11+
"command": "${input:isaac_path}/python.bat ${workspaceFolder}/.vscode/tools/setup_vscode.py --isaac_path ${input:isaac_path}"
912
}
1013
}
1114
],
1215
"inputs": [
1316
{
14-
"id": "isaacsim_path",
15-
"description": "Absolute path to Isaac Sim:",
16-
"default": "",
17+
"id": "isaac_path",
18+
"description": "Absolute path to the current Isaac Sim installation. Can be skipped if Isaac Sim installed from pip.",
19+
"default": "${HOME}/.local/share/ov/pkg/isaac_sim-4.2.0",
1720
"type": "promptString"
1821
},
1922
]

.vscode/launch.json renamed to .vscode/tools/launch.template.json

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,13 @@
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
66
"configurations": [
7-
// Attach to simulation during runtime. This is useful for debugging extensions.
8-
// 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
9-
{
10-
"name": "Python: Attach (windows-x86_64/linux-x86_64)",
11-
"type": "python",
12-
"request": "attach",
13-
"port": 3000,
14-
"host": "localhost"
15-
},
16-
177
// For standalone script execution
188
{
199
"name": "Python: Current File",
2010
"type": "debugpy",
2111
"request": "launch",
2212
"program": "${file}",
2313
"console": "integratedTerminal",
24-
"envFile": "${workspaceFolder}/.vscode/.python.env",
2514
},
2615
{
2716
"name": "Python: Train Environment",
@@ -30,7 +19,6 @@
3019
"args" : ["--task", "Template-Isaac-Velocity-Flat-Anymal-D-v0", "--num_envs", "4096", "--headless"],
3120
"program": "${workspaceFolder}/scripts/rsl_rl/train.py",
3221
"console": "integratedTerminal",
33-
"envFile": "${workspaceFolder}/.vscode/.python.env",
3422
},
3523
{
3624
"name": "Python: Play Environment",
@@ -39,7 +27,6 @@
3927
"args" : ["--task", "Template-Isaac-Velocity-Flat-Anymal-D-Play-v0", "--num_envs", "32"],
4028
"program": "${workspaceFolder}/scripts/rsl_rl/play.py",
4129
"console": "integratedTerminal",
42-
"envFile": "${workspaceFolder}/.vscode/.python.env",
4330
},
4431

4532
// For script execution inside a Docker
@@ -49,7 +36,6 @@
4936
"request": "launch",
5037
"program": "${file}",
5138
"console": "integratedTerminal",
52-
"envFile": "${workspaceFolder}/.vscode/.python.env",
5339
"env": {
5440
"PYTHONPATH": "${env:PYTHONPATH}:${workspaceFolder}"
5541
}
@@ -61,7 +47,6 @@
6147
"args" : ["--task", "Template-Isaac-Velocity-Flat-Anymal-D-v0", "--num_envs", "4096", "--headless"],
6248
"program": "${workspaceFolder}/scripts/rsl_rl/train.py",
6349
"console": "integratedTerminal",
64-
"envFile": "${workspaceFolder}/.vscode/.python.env",
6550
"env": {
6651
"PYTHONPATH": "${env:PYTHONPATH}:${workspaceFolder}"
6752
}
@@ -73,7 +58,6 @@
7358
"args" : ["--task", "Template-Isaac-Velocity-Flat-Anymal-D-Play-v0", "--num_envs", "32"],
7459
"program": "${workspaceFolder}/scripts/rsl_rl/play.py",
7560
"console": "integratedTerminal",
76-
"envFile": "${workspaceFolder}/.vscode/.python.env",
7761
"env": {
7862
"PYTHONPATH": "${env:PYTHONPATH}:${workspaceFolder}"
7963
}

.vscode/tools/settings.template.json

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
{
2-
// Configure glob patterns of file associations to languages (for example `"*.extension": "html"`).
3-
// These have precedence over the default associations of the languages installed.
42
"files.associations": {
53
"*.tpp": "cpp",
64
"*.kit": "toml",
75
"*.rst": "restructuredtext"
86
},
97
"editor.rulers": [120],
108

11-
// Configure paths or glob patterns to exclude from file watching. E.g. ignored by linter.
9+
// files to be ignored by the linter
1210
"files.watcherExclude": {
1311
"**/.git/objects/**": true,
1412
"**/.git/subtree-cache/**": true,
@@ -58,27 +56,31 @@
5856
// This enables python language server. Seems to work slightly better than jedi:
5957
"python.languageServer": "Pylance",
6058
// We use "black" as a formatter:
61-
"black-formatter.args": ["--line-length", "120",],
59+
"python.formatting.provider": "black",
60+
"python.formatting.blackArgs": ["--line-length", "120"],
6261
// Use flake8 for linting
63-
"flake8.args": ["--max-line-length", "120"],
62+
"python.linting.pylintEnabled": false,
63+
"python.linting.flake8Enabled": true,
64+
"python.linting.flake8Args": [
65+
"--max-line-length=120"
66+
],
6467
// Use docstring generator
6568
"autoDocstring.docstringFormat": "google",
6669
"autoDocstring.guessTypes": true,
6770
// Python environment path
68-
"python.defaultInterpreterPath": "_isaac_sim/python.sh",
69-
"python.envFile": "${workspaceFolder}/.vscode/.python.env",
71+
// note: the default interpreter is overridden when user selects a workspace interpreter
72+
// in the status bar. For example, the virtual environment python interpreter
73+
"python.defaultInterpreterPath": "",
7074
// ROS distribution
7175
"ros.distro": "noetic",
7276
// Language specific settings
7377
"[python]": {
74-
"editor.tabSize": 4,
75-
"editor.defaultFormatter": "ms-python.black-formatter",
76-
"editor.formatOnSave": true,
78+
"editor.tabSize": 4
7779
},
7880
"[restructuredtext]": {
7981
"editor.tabSize": 2
8082
},
8183
// Python extra paths
82-
// Note: this is will be auto-filled
84+
// Note: this is filled up when vscode is set up for the first time
8385
"python.analysis.extraPaths": []
8486
}

0 commit comments

Comments
 (0)