Skip to content
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

[DRAFT] Stamped blackboard #805

Merged
merged 5 commits into from
Apr 18, 2024
Merged

[DRAFT] Stamped blackboard #805

merged 5 commits into from
Apr 18, 2024

Conversation

facontidavide
Copy link
Collaborator

This PR introduces a new functionality: a timestamp and unique sequence number added to each entry in the blackboard!

Using the "blackboard" model it is hard to know if a value is "old" or was updated, since the last time it was accessed.

Now, when a blackboard entry is set, its sequence_id is automatically incremented and stamp (anoneseconds since epoch) is automatically updated.

Users can access this information using the methods:

  • Blackboard:getStamped()
  • TreeNode::getInputStamped

It also introduces two new Decorators to use this functionality:

  • WaitValueUpdate: will sleep until a new value is set in the blackboard, and execute the child afterward.
  • SkipUnlessUpdated: skip this entire branch, unless a value in hte blackboard is updated.

@facontidavide facontidavide self-assigned this Apr 13, 2024
@facontidavide facontidavide merged commit e066971 into master Apr 18, 2024
17 checks passed
@facontidavide facontidavide deleted the stamped_blackboard branch April 18, 2024 14:53
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.

1 participant