Repository navigation
[Newton] Redesign Newton Manager [3/N] #8928
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
+578
−59
Merged
Changes from 19 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
aab8960
Run the environment's actions and asset writes inside the Newton step
StafaH 1e3e57a
Restore the unrelated reward lambda formatting
StafaH e5a9b15
Pass the wrench composer's first-use hook at construction
StafaH 12d4f64
Declare graph capture support on every manager term and trim comments
StafaH fdb7f39
Keep supports_graph_capture on action terms only
StafaH fee9e1f
Stop action subclasses from inheriting graph capture flags
StafaH aeb98ed
Address review comments on member order and processed action aliasing
StafaH 5cee6fc
Keep the environment's loop when renders or recorders run between phy…
StafaH 2490ca4
Stage bound body forces inside the backend step
StafaH 0e6f5cf
Keep bound control consistent with sensors, reordered state and wrenc…
StafaH 19d951f
Remove apply_every_physics_step from action terms
StafaH 697f1f8
Rename supports_graph_capture to is_graphable
StafaH dfdf54f
Keep post-step callbacks, sensor cadence and custom action processing…
StafaH c1262c0
Rename control_bound to handles_actions and bind_control to handle_ac…
StafaH 0d340c5
Accept joint lookup options in the action test environment
StafaH 1e7da8d
Merge branch 'main' into newton/redesign-3-env-control
AntoineRichard e3e6d9d
Keep in-place action processing traceable by LEAPP export
StafaH c98d5f9
Initialize the post-step callback slot on the Newton contract articul…
StafaH e9cc510
Merge branch 'newton/redesign-3-env-control' of github.com:StafaH/Isa…
StafaH 05d779a
Decide physics action handling on the first step so export can opt out
StafaH 51b0bc4
Test when physics handles a manager-based environment's actions
StafaH 17be97f
Drop the Newton environment test of first-step action handling
StafaH 22f4b65
Trim the action handling and wrench composer tests
StafaH 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
15 changes: 15 additions & 0 deletions
15
source/isaaclab/changelog.d/newton-redesign-3-env-control.added.rst
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,15 @@ | ||
| * Added :meth:`PhysicsManager.handle_actions <isaaclab.physics.PhysicsManager.handle_actions>`, which let a physics | ||
| backend run the environment's actions and asset writes inside its step. :class:`~isaaclab.envs.ManagerBasedEnv` | ||
| called it after loading its managers, unless its render interval was not a multiple of the decimation, a recorder | ||
| term recorded after every physics step, or a sensor sampled at times other than whole environment steps, and | ||
| skipped the actions and asset writes that the step ran. | ||
| * Added :attr:`RecorderManager.records_physics_steps <isaaclab.managers.RecorderManager.records_physics_steps>`. | ||
| * Added ``is_graphable`` to :class:`~isaaclab.managers.ActionTerm`, | ||
| :class:`~isaaclab.managers.ActionManager`, :class:`~isaaclab.assets.AssetBase`, | ||
| :class:`~isaaclab.actuators.ActuatorCollection` and :class:`~isaaclab.scene.InteractiveScene`. Joint, joint-to-limits | ||
| and binary joint action terms set it. A subclass that overrode :meth:`~isaaclab.managers.ActionTerm.process_actions` | ||
| or :meth:`~isaaclab.managers.ActionTerm.apply_actions` did not inherit it. | ||
| * Added :attr:`WrenchComposer.pending <isaaclab.utils.wrench_composer.WrenchComposer.pending>` and the | ||
| ``on_first_use`` argument of :class:`~isaaclab.utils.wrench_composer.WrenchComposer`, called at the first force | ||
| write or :meth:`~isaaclab.utils.wrench_composer.WrenchComposer.add_raw_buffers_from` merge. Once forces were written, | ||
| wrench work recorded into a CUDA graph no longer depended on host flags. |
6 changes: 6 additions & 0 deletions
6
source/isaaclab/changelog.d/newton-redesign-3-env-control.changed.rst
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,6 @@ | ||
| * Changed joint, joint-to-limits and binary joint action terms to write their processed actions in place, so a | ||
| recorded :meth:`~isaaclab.managers.ActionTerm.apply_actions` read the current actions. A reference to | ||
| :attr:`~isaaclab.managers.ActionTerm.processed_actions` now saw later commands; code that kept the previous | ||
| command cloned it or copied it into its own buffer before the next | ||
| :meth:`~isaaclab.managers.ActionTerm.process_actions`. | ||
| * Changed :class:`~isaaclab.envs.ManagerBasedEnv` to set the physics decimation after loading its managers. |
Empty file.
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
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
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
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
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.