-
Notifications
You must be signed in to change notification settings - Fork 3.5k
ovphysx backend integration #4852
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
Merged
AntoineRichard
merged 31 commits into
develop
from
fix/malesiani/ovphysx_poc_integration_backend
Apr 20, 2026
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
b77fa6b
Add isaaclab_ovphysx backend with full articulation interface compliance
marcodiiga edb081c
Wire all stub writers/setters to real ovphysx tensor bindings
marcodiiga 13bce66
Move test USD data into repo, remove hardcoded absolute paths
marcodiiga bfcc5ea
Finalize ovphysx articulation backend: TensorType migration, GPU writ…
marcodiiga 3c8cd3a
feat(ovphysx): wire humanoid task — articulation root discovery, clon…
marcodiiga 0690af6
fix(ovphysx): avoid teardown segfault via os._exit after physx release
marcodiiga 84594e4
clarifying comment
marcodiiga a5ad6b0
fix(ovphysx): clone positioning, cache invalidation, env root exclusion
marcodiiga 1630c4c
Address PR #4852 review: ovphysx backend correctness and cleanup
marcodiiga f2884aa
small fixes after ov set excluded cloning environment fixes
marcodiiga 678df15
Refactoring to make backend more format-like to the others
marcodiiga b953e78
Remove hardcoded packman path from run_ovphysx.sh
marcodiiga e4ffb37
Add ovphysx backend integration, locomotion reset optimization, and s…
marcodiiga 20eb1f8
Apply pre-commit formatting (keep tensor_types.py column alignment)
marcodiiga de71ff2
Restore positions= arg to usd_replicate() in interactive_scene.py
marcodiiga 38f6d6d
Cleanup debug code
marcodiiga 687afdd
Clean up ovphysx_manager and locomotion_env comments
marcodiiga a3ccc98
Revert locomotion_env _reset_idx optimization
marcodiiga 90c118e
linter fixes
marcodiiga 867058a
fixed carbonite loader and a bug
marcodiiga 4619707
locomotion fix for ovphysx
marcodiiga 3e28a8d
reformat
marcodiiga 4436843
Address PR #4852 review: harmonize ovphysx backend with PhysX/Newton
marcodiiga b87fe2f
Apply pre-commit formatting fixes
marcodiiga 017c0ef
Fix deprecated root-state writers, tendon subset filtering, packaging…
marcodiiga b382fff
Add ovphysx 0.3.7 public wheel compatibility (REVERT for next release)
marcodiiga bcc24bc
Merge branch 'develop' into fix/malesiani/ovphysx_poc_integration_bac…
AntoineRichard 520032c
Merge branch 'develop' into fix/malesiani/ovphysx_poc_integration_bac…
AntoineRichard 6c5ee26
Fix ovphysx launcher and test regressions
marcodiiga cd2a88c
Fix ovphysx review follow-ups
marcodiiga 434d7cc
Merge branch 'develop' into fix/malesiani/ovphysx_poc_integration_bac…
AntoineRichard File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| #!/bin/bash | ||
| # Run ovphysx in Kit's Python with its bundled libcarb.so preloaded. | ||
| # Use when ovphysx is installed into Kit's Python. | ||
| # | ||
| # Usage: ./scripts/run_ovphysx.sh [your_script.py or -m pytest ...] | ||
| set -e | ||
|
|
||
| ISAACLAB_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" | ||
| ISAAC_DIR="${ISAACLAB_PATH}/_isaac_sim" | ||
|
|
||
| # Match python.sh so Kit extensions/resources resolve during training too. | ||
| export CARB_APP_PATH="${CARB_APP_PATH:-${ISAAC_DIR}/kit}" | ||
| export ISAAC_PATH="${ISAAC_PATH:-${ISAAC_DIR}}" | ||
| export EXP_PATH="${EXP_PATH:-${ISAAC_DIR}/apps}" | ||
|
|
||
| # Source the Python environment setup (sets PYTHONPATH, LD_LIBRARY_PATH) | ||
| # but do NOT use python.sh which sets LD_PRELOAD | ||
| source "${ISAAC_DIR}/setup_python_env.sh" | ||
|
|
||
| # Preload ovphysx's own libcarb.so so its Carbonite framework wins the | ||
| # SONAME race against any other libcarb.so present in the process. | ||
| _ovphysx_libcarb="" | ||
| for _sp in "${ISAAC_DIR}"/kit/python/lib/python3.*/site-packages/ovphysx/plugins/libcarb.so; do | ||
| if [ -f "${_sp}" ]; then | ||
| _ovphysx_libcarb="${_sp}" | ||
| break | ||
| fi | ||
| done | ||
| if [ -n "${_ovphysx_libcarb}" ]; then | ||
| export LD_PRELOAD="${_ovphysx_libcarb}" | ||
| else | ||
| export LD_PRELOAD="" | ||
| fi | ||
| unset _ovphysx_libcarb | ||
|
|
||
| # Ensure pxr (OpenUSD Python bindings) is on PYTHONPATH. | ||
| # setup_python_env.sh may not include the packman USD path after rebuilds. | ||
| # Search order: IsaacSim's bundled site-packages first, then the Python | ||
| # environment's own site-packages (covers pip-installed OpenUSD). | ||
| _pxr_found=false | ||
| for usd_dir in "${ISAAC_DIR}"/kit/python/lib/python3.*/site-packages/usd_core.libs/../.. \ | ||
| "${ISAAC_DIR}"/kit/python/lib/python3.*/site-packages; do | ||
| if [ -d "${usd_dir}/pxr" ]; then | ||
| export PYTHONPATH="${usd_dir}:${PYTHONPATH}" | ||
| _pxr_found=true | ||
| break | ||
| fi | ||
| done | ||
| if [ "${_pxr_found}" = false ]; then | ||
| # Last resort: ask Python itself where pxr lives | ||
| _pxr_path=$("${ISAAC_DIR}/kit/python/bin/python3" -c "import pxr, os; print(os.path.dirname(os.path.dirname(pxr.__file__)))" 2>/dev/null) | ||
| if [ -n "${_pxr_path}" ] && [ -d "${_pxr_path}/pxr" ]; then | ||
| export PYTHONPATH="${_pxr_path}:${PYTHONPATH}" | ||
| fi | ||
| fi | ||
| unset _pxr_found _pxr_path | ||
|
|
||
| # Add all isaaclab source packages to PYTHONPATH so editable installs work | ||
| for pkg in isaaclab isaaclab_ovphysx isaaclab_tasks isaaclab_rl isaaclab_physx isaaclab_newton isaaclab_assets isaaclab_contrib; do | ||
| if [ -d "${ISAACLAB_PATH}/source/${pkg}" ]; then | ||
| export PYTHONPATH="${ISAACLAB_PATH}/source/${pkg}:${PYTHONPATH}" | ||
| fi | ||
| done | ||
|
|
||
| # Match python.sh default for Kit app resource discovery. | ||
| export RESOURCE_NAME="${RESOURCE_NAME:-IsaacSim}" | ||
|
|
||
| # Use the Python binary directly | ||
| PYTHON_EXE="${ISAAC_DIR}/kit/python/bin/python3" | ||
|
|
||
| exec "${PYTHON_EXE}" "$@" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
marcodiiga marked this conversation as resolved.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
marcodiiga marked this conversation as resolved.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
marcodiiga marked this conversation as resolved.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| [package] | ||
|
|
||
| # Note: Semantic Versioning is used: https://semver.org/ | ||
| version = "0.1.0" | ||
|
|
||
| # Description | ||
| title = "OvPhysX simulation interfaces for IsaacLab core package" | ||
| description = "Extension providing IsaacLab with ovphysx/TensorBindingsAPI specific abstractions." | ||
| readme = "docs/README.md" | ||
| repository = "https://github.com/isaac-sim/IsaacLab" | ||
| category = "robotics" | ||
| keywords = ["robotics", "simulation", "ovphysx", "tensorbindingsapi"] | ||
|
|
||
| [dependencies] | ||
| "isaaclab" = {} | ||
|
|
||
| [core] | ||
| reloadable = false | ||
|
|
||
| [[python.module]] | ||
| name = "isaaclab_ovphysx" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| Changelog | ||
| --------- | ||
|
|
||
| 0.1.0 (2026-04-20) | ||
| ~~~~~~~~~~~~~~~~~~ | ||
|
|
||
| Added | ||
| ^^^^^ | ||
|
|
||
| * Initial release of the ``isaaclab_ovphysx`` extension. |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.