Skip to content

Remove sequence as a distinct element + allow decisions/subtree after action#114

Open
MegaIng wants to merge 6 commits into
masterfrom
feature/remove_sequences
Open

Remove sequence as a distinct element + allow decisions/subtree after action#114
MegaIng wants to merge 6 commits into
masterfrom
feature/remove_sequences

Conversation

@MegaIng

@MegaIng MegaIng commented Jul 9, 2026

Copy link
Copy Markdown

also add a comprehensive test suite

Summary

This PR changes the implementation of action sequences from a distinct TreeElement to instead have actions be a chain where they each refer to the tree element that comes after them. This allows for an easy syntax extension where Actions can come before decisions or invocations of subtrees (see #66). The code here is generally simplified quite a bit without any changes in the edge cases I am aware of.

The display in the visualization is changed slightly. Now it's a chain of rectangular boxes which may also have a decision as a child.

To verify that nothing broke I also (let claude) created a comprehensive runtime test suite which didn't exists before. This is the only the reason the PR adds lines instead of removing them.

Related issues

Closes #66

Checklist

  • Run colcon build
  • Write documentation
  • Create issues for future work
  • Test on your machine
  • Test on the robot
  • This PR is on our Software project board

@MegaIng MegaIng requested a review from Flova July 9, 2026 06:28
@MegaIng MegaIng force-pushed the feature/remove_sequences branch from c03a056 to 54fad4c Compare July 9, 2026 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support subtrees in sequence elements

1 participant