Add sequence and parallel groups that run the default commands of idle subsystems #8293
+114
−1
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.
Currently, standard command groups (like Commands.sequence and Commands.parallel) require all subsystems used by any of their children for the entire duration of the group's execution. This prevents the default commands of "idle" subsystems (those required by the group but not by the currently running child command) from running.
This new class provides factory methods that fix this behavior by ensuring default commands run on any subsystem that is not in use by the active command(s).
These commands are designed to bring most of the appeal of proxying(having default commands run within command groups) without the compromise of undefined cancellation behavior and requirements conflicts.