Repository navigation
Adds OperationSpaceController to docs and tests and implement corresponding action/action_cfg classes - #913
Conversation
|
@Dhoeller19, I have created this PR to replace #879 but haven't worked much on it yet. It is far from complete at the moment. I am currently working on it and will ping once it reaches a state worth reviewing. Sorry for the confusion. |
|
Converted to a draft util ready for full review. @ozhanozen i will continue to work with you on this branch. Thanks for doing this! |
|
Hi @jtigue-bdai, I’ve addressed the comments (primarily regarding docstrings) currently marked as unresolved. Would it be okay if I go ahead and mark them as resolved? I’ve also merged the latest changes from main and updated the relevant documentation. The CHANGELOG entries remain as [unreleased], assuming the version/date will be finalized when merging to main. On a separate branch, I’ve implemented the nullspace controller feature for OSC and successfully deployed a trained policy on a real robot to test it. It’s working well, and I observed it significantly improves learning. I’ll create a new PR for it once this one is merged. Thanks again for your review and feedback! 😊 |
OperationSpaceController to docs and tests and implement corresponding action/action_cfg classesOperationSpaceController to docs and tests and implement corresponding action/action_cfg classes
|
Thanks a lot for the addition! Could you please help update the image from .png to .jpg (jpg takes up less storage), and add the new environment to the docs (https://isaac-sim.github.io/IsaacLab/main/source/overview/environments.html#single-agent and https://isaac-sim.github.io/IsaacLab/main/source/overview/environments.html#comprehensive-list-of-environments)? Also looks like it'll need another rebase. feel free to update the version number based on the current main, I don't seem to have write access to update the file, but I can merge it in once everything is ready. thanks! |
Changes from "Isaac-Reach-Franka-Play-OSC-v0" to "Isaac-Reach-Franka-OSC-Play-v0" Co-authored-by: Kelly Guo <[email protected]> Signed-off-by: Özhan Özen <[email protected]>
…ifferentialInverseKinematicsAction
|
Hi @kellyguo11 , Thank you for the feedback on the PR and for merging it! While I noticed an issue related to the new clip ranges implementation (#1476) which I wanted to mention here, I wasn’t able to raise it before the PR was merged. I’ve now created a new issue (#1548) detailing my concerns and proposed solutions. Please let me know if you have any thoughts on it when convenient. |
# Description This PR adds an option to enable null-space control within `OperationSpaceController` (following the discussions in #913). ## Details Currently, `OperationSpaceController` controls only the task space, which results in joint movements within the null-space of redundant robotic manipulators. In general, it is desirable to have some control over the robot null-space, e.g., to prevent the joints from going near their limits. Hence, the PR adds the following: - An optional nullspace (position) control integrated into `OperationSpaceController`. This controller attracts the robot joints to provided targets whereas possible, in parallel to the task-space target. - Test cases for `OperationSpaceController` that use null-space control. - Updates to the related tutorial script and documentation to use and describe null-space control. - Integration of (optional) null-space control to `OperationSpaceControllerAction` with predefined joint targets, e.g., default joint positions, joint centers, zero joint position. - Integration of null-space control to `"Isaac-Reach-Franka-OSC-v0"` manager-based environment. Null-space control utilizes either the dynamically consistent Jacobian inverse or the Moore–Penrose inverse, depending on whether the full inertia matrix is available. ## Type of change - New feature (non-breaking change which adds functionality) - This change requires a documentation update ## Checklist - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there --------- Signed-off-by: Özhan Özen <[email protected]> Co-authored-by: Kelly Guo <[email protected]>
…sponding action/action_cfg classes (isaac-sim#913) # Description This PR adds the `OperationalSpaceController` to the docs and provides some tests for its parametric features. Moreover, it implements the corresponding `OperationalSpaceControllerAction` and `OperationalSpaceControllerActionCfg` classes so they can be used with manager-based environments. Fixes isaac-sim#873 ## Type of change - Bug fix (non-breaking change which fixes an issue) - New feature (non-breaking change which adds functionality) - This change requires a documentation update ## Checklist - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there `` --------- Signed-off-by: Özhan Özen <[email protected]> Co-authored-by: James Tigue <[email protected]> Co-authored-by: jtigue-bdai <[email protected]> Co-authored-by: Kelly Guo <[email protected]>
…ac-sim#1557) # Description This PR adds an option to enable null-space control within `OperationSpaceController` (following the discussions in isaac-sim#913). ## Details Currently, `OperationSpaceController` controls only the task space, which results in joint movements within the null-space of redundant robotic manipulators. In general, it is desirable to have some control over the robot null-space, e.g., to prevent the joints from going near their limits. Hence, the PR adds the following: - An optional nullspace (position) control integrated into `OperationSpaceController`. This controller attracts the robot joints to provided targets whereas possible, in parallel to the task-space target. - Test cases for `OperationSpaceController` that use null-space control. - Updates to the related tutorial script and documentation to use and describe null-space control. - Integration of (optional) null-space control to `OperationSpaceControllerAction` with predefined joint targets, e.g., default joint positions, joint centers, zero joint position. - Integration of null-space control to `"Isaac-Reach-Franka-OSC-v0"` manager-based environment. Null-space control utilizes either the dynamically consistent Jacobian inverse or the Moore–Penrose inverse, depending on whether the full inertia matrix is available. ## Type of change - New feature (non-breaking change which adds functionality) - This change requires a documentation update ## Checklist - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there --------- Signed-off-by: Özhan Özen <[email protected]> Co-authored-by: Kelly Guo <[email protected]>
…sponding action/action_cfg classes (isaac-sim#913) # Description This PR adds the `OperationalSpaceController` to the docs and provides some tests for its parametric features. Moreover, it implements the corresponding `OperationalSpaceControllerAction` and `OperationalSpaceControllerActionCfg` classes so they can be used with manager-based environments. Fixes isaac-sim#873 ## Type of change - Bug fix (non-breaking change which fixes an issue) - New feature (non-breaking change which adds functionality) - This change requires a documentation update ## Checklist - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there `` --------- Signed-off-by: Özhan Özen <[email protected]> Co-authored-by: James Tigue <[email protected]> Co-authored-by: jtigue-bdai <[email protected]> Co-authored-by: Kelly Guo <[email protected]>
…ac-sim#1557) # Description This PR adds an option to enable null-space control within `OperationSpaceController` (following the discussions in isaac-sim#913). ## Details Currently, `OperationSpaceController` controls only the task space, which results in joint movements within the null-space of redundant robotic manipulators. In general, it is desirable to have some control over the robot null-space, e.g., to prevent the joints from going near their limits. Hence, the PR adds the following: - An optional nullspace (position) control integrated into `OperationSpaceController`. This controller attracts the robot joints to provided targets whereas possible, in parallel to the task-space target. - Test cases for `OperationSpaceController` that use null-space control. - Updates to the related tutorial script and documentation to use and describe null-space control. - Integration of (optional) null-space control to `OperationSpaceControllerAction` with predefined joint targets, e.g., default joint positions, joint centers, zero joint position. - Integration of null-space control to `"Isaac-Reach-Franka-OSC-v0"` manager-based environment. Null-space control utilizes either the dynamically consistent Jacobian inverse or the Moore–Penrose inverse, depending on whether the full inertia matrix is available. ## Type of change - New feature (non-breaking change which adds functionality) - This change requires a documentation update ## Checklist - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there --------- Signed-off-by: Özhan Özen <[email protected]> Co-authored-by: Kelly Guo <[email protected]>
`OperationalSpaceControllerAction` and the OSC integration-test helper used link-origin poses and Jacobians together with center-of-mass velocity feedback. When a link rotates with an offset center of mass, these quantities describe different points, producing incorrect velocity feedback. The task-frame test also copied rounded command quaternions directly into reference frames, producing inconsistent composed targets. Use `body_link_vel_w` and `root_link_vel_w` in both OSC callers, and normalize the test's cloned task-frame quaternion before coordinate conversion. Controller gains, raw command fixtures, convergence tolerances, and step budgets match the base branch; the nullspace damping ratio remains 1.0. Two direct regressions guard these contracts: a moving, fixed-base Franka checks each caller's velocity against its link Jacobian multiplied by measured joint velocity, and a numerical check verifies that the same rounded command resolves to the same absolute target through root and task frames without mutating its inputs. Provenance: - [#5400](#5400) migrated both OSC callers to `body_link_jacobian_w` while retaining the COM velocity accessors. - The rounded fixtures and unnormalized task-frame copy originated in [#913](#913). [#7624](#7624) later normalized absolute pose commands, while the separately supplied frame remained unnormalized. The exact change that first exposed the convergence failures has not been bisected; these references establish the input inconsistencies, not the first failing CI run. Validation: - Restoring COM feedback makes both velocity regression cases fail, with a maximum linear-velocity discrepancy of 0.01469 m/s versus the 1e-4 assertion tolerance. Both pass with link-origin feedback. - Removing frame normalization makes the target-equivalence regression fail with a quaternion-component discrepancy of 0.00010675 versus the 1e-6 tolerance. It passes with the correction. - The previously failing `test_franka_taskframe_pose_abs` and original `test_franka_pose_abs_with_nullspace_centering` both pass with damping 1.0. - Full OSC integration file: **21 passed** in 113 seconds, including all three new regression cases. - `uv run isaaclab -f` passes. The earlier RL, legacy-rendering, and contrib failures have matching failures and passing corresponding jobs in separate fixes: #7870, #7871, and #7866, respectively. Those fixes remain separate from these OSC corrections. --------- Co-authored-by: Kelly Guo <[email protected]>
…7868) `OperationalSpaceControllerAction` and the OSC integration-test helper used link-origin poses and Jacobians together with center-of-mass velocity feedback. When a link rotates with an offset center of mass, these quantities describe different points, producing incorrect velocity feedback. The task-frame test also copied rounded command quaternions directly into reference frames, producing inconsistent composed targets. Use `body_link_vel_w` and `root_link_vel_w` in both OSC callers, and normalize the test's cloned task-frame quaternion before coordinate conversion. Controller gains, raw command fixtures, convergence tolerances, and step budgets match the base branch; the nullspace damping ratio remains 1.0. Two direct regressions guard these contracts: a moving, fixed-base Franka checks each caller's velocity against its link Jacobian multiplied by measured joint velocity, and a numerical check verifies that the same rounded command resolves to the same absolute target through root and task frames without mutating its inputs. Provenance: - [isaac-sim#5400](isaac-sim#5400) migrated both OSC callers to `body_link_jacobian_w` while retaining the COM velocity accessors. - The rounded fixtures and unnormalized task-frame copy originated in [isaac-sim#913](isaac-sim#913). [isaac-sim#7624](isaac-sim#7624) later normalized absolute pose commands, while the separately supplied frame remained unnormalized. The exact change that first exposed the convergence failures has not been bisected; these references establish the input inconsistencies, not the first failing CI run. Validation: - Restoring COM feedback makes both velocity regression cases fail, with a maximum linear-velocity discrepancy of 0.01469 m/s versus the 1e-4 assertion tolerance. Both pass with link-origin feedback. - Removing frame normalization makes the target-equivalence regression fail with a quaternion-component discrepancy of 0.00010675 versus the 1e-6 tolerance. It passes with the correction. - The previously failing `test_franka_taskframe_pose_abs` and original `test_franka_pose_abs_with_nullspace_centering` both pass with damping 1.0. - Full OSC integration file: **21 passed** in 113 seconds, including all three new regression cases. - `uv run isaaclab -f` passes. The earlier RL, legacy-rendering, and contrib failures have matching failures and passing corresponding jobs in separate fixes: isaac-sim#7870, isaac-sim#7871, and isaac-sim#7866, respectively. Those fixes remain separate from these OSC corrections. --------- Co-authored-by: Kelly Guo <[email protected]> (cherry picked from commit e836331)
…7868) `OperationalSpaceControllerAction` and the OSC integration-test helper used link-origin poses and Jacobians together with center-of-mass velocity feedback. When a link rotates with an offset center of mass, these quantities describe different points, producing incorrect velocity feedback. The task-frame test also copied rounded command quaternions directly into reference frames, producing inconsistent composed targets. Use `body_link_vel_w` and `root_link_vel_w` in both OSC callers, and normalize the test's cloned task-frame quaternion before coordinate conversion. Controller gains, raw command fixtures, convergence tolerances, and step budgets match the base branch; the nullspace damping ratio remains 1.0. Two direct regressions guard these contracts: a moving, fixed-base Franka checks each caller's velocity against its link Jacobian multiplied by measured joint velocity, and a numerical check verifies that the same rounded command resolves to the same absolute target through root and task frames without mutating its inputs. Provenance: - [isaac-sim#5400](isaac-sim#5400) migrated both OSC callers to `body_link_jacobian_w` while retaining the COM velocity accessors. - The rounded fixtures and unnormalized task-frame copy originated in [isaac-sim#913](isaac-sim#913). [isaac-sim#7624](isaac-sim#7624) later normalized absolute pose commands, while the separately supplied frame remained unnormalized. The exact change that first exposed the convergence failures has not been bisected; these references establish the input inconsistencies, not the first failing CI run. Validation: - Restoring COM feedback makes both velocity regression cases fail, with a maximum linear-velocity discrepancy of 0.01469 m/s versus the 1e-4 assertion tolerance. Both pass with link-origin feedback. - Removing frame normalization makes the target-equivalence regression fail with a quaternion-component discrepancy of 0.00010675 versus the 1e-6 tolerance. It passes with the correction. - The previously failing `test_franka_taskframe_pose_abs` and original `test_franka_pose_abs_with_nullspace_centering` both pass with damping 1.0. - Full OSC integration file: **21 passed** in 113 seconds, including all three new regression cases. - `uv run isaaclab -f` passes. The earlier RL, legacy-rendering, and contrib failures have matching failures and passing corresponding jobs in separate fixes: isaac-sim#7870, isaac-sim#7871, and isaac-sim#7866, respectively. Those fixes remain separate from these OSC corrections. --------- Co-authored-by: Kelly Guo <[email protected]> (cherry picked from commit e836331)
…7868) `OperationalSpaceControllerAction` and the OSC integration-test helper used link-origin poses and Jacobians together with center-of-mass velocity feedback. When a link rotates with an offset center of mass, these quantities describe different points, producing incorrect velocity feedback. The task-frame test also copied rounded command quaternions directly into reference frames, producing inconsistent composed targets. Use `body_link_vel_w` and `root_link_vel_w` in both OSC callers, and normalize the test's cloned task-frame quaternion before coordinate conversion. Controller gains, raw command fixtures, convergence tolerances, and step budgets match the base branch; the nullspace damping ratio remains 1.0. Two direct regressions guard these contracts: a moving, fixed-base Franka checks each caller's velocity against its link Jacobian multiplied by measured joint velocity, and a numerical check verifies that the same rounded command resolves to the same absolute target through root and task frames without mutating its inputs. Provenance: - [isaac-sim#5400](isaac-sim#5400) migrated both OSC callers to `body_link_jacobian_w` while retaining the COM velocity accessors. - The rounded fixtures and unnormalized task-frame copy originated in [isaac-sim#913](isaac-sim#913). [isaac-sim#7624](isaac-sim#7624) later normalized absolute pose commands, while the separately supplied frame remained unnormalized. The exact change that first exposed the convergence failures has not been bisected; these references establish the input inconsistencies, not the first failing CI run. Validation: - Restoring COM feedback makes both velocity regression cases fail, with a maximum linear-velocity discrepancy of 0.01469 m/s versus the 1e-4 assertion tolerance. Both pass with link-origin feedback. - Removing frame normalization makes the target-equivalence regression fail with a quaternion-component discrepancy of 0.00010675 versus the 1e-6 tolerance. It passes with the correction. - The previously failing `test_franka_taskframe_pose_abs` and original `test_franka_pose_abs_with_nullspace_centering` both pass with damping 1.0. - Full OSC integration file: **21 passed** in 113 seconds, including all three new regression cases. - `uv run isaaclab -f` passes. The earlier RL, legacy-rendering, and contrib failures have matching failures and passing corresponding jobs in separate fixes: isaac-sim#7870, isaac-sim#7871, and isaac-sim#7866, respectively. Those fixes remain separate from these OSC corrections. --------- Co-authored-by: Kelly Guo <[email protected]> (cherry picked from commit e836331)
Description
This PR adds the
OperationalSpaceControllerto the docs and provides some tests for its parametric features. Moreover, it implements the correspondingOperationalSpaceControllerActionandOperationalSpaceControllerActionCfgclasses so they can be used with manager-based environments.Fixes #873
Type of change
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there``