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

new prototype for ui interface #48

Open
wants to merge 33 commits into
base: main
Choose a base branch
from
Open

new prototype for ui interface #48

wants to merge 33 commits into from

Conversation

jashlu
Copy link
Collaborator

@jashlu jashlu commented Nov 4, 2024

New direction: November 11 - Next small goal. we will try to create a more realistic next prototype. one that focuses still on the separation of tree into multiple subgoals, where the user, guided by the context. will iterate through
#the simulation. at each point they can make adjustments. Eventually, we will export all fo this in some way.

Copy link
Member

@hollandjg hollandjg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey Josh! Thanks for this. I've added some comments – it's looking like it's going in the right direction!

src/social_norms_trees/atomic_mutations.py Outdated Show resolved Hide resolved
src/social_norms_trees/atomic_mutations.py Outdated Show resolved Hide resolved
src/social_norms_trees/atomic_mutations.py Outdated Show resolved Hide resolved
>>> sequence_2 = Sequence("", False, children=[dummy_node_2, success_node_2])
>>> sequence_3 = Sequence("", False, children=[failure_node])
>>> sequence_1 = Sequence("", False, children=[success_node, sequence_2, sequence_3])
>>> pprint(list(enumerate_nodes(sequence_1)))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be a place where print is more helpful - it's not looking at the tree, so you don't need to see the details of the objects, it's enough just to see that you have the correct sequence of Behavior and Sequence nodes.

src/social_norms_trees/atomic_mutations.py Outdated Show resolved Hide resolved
src/social_norms_trees/atomic_mutations.py Outdated Show resolved Hide resolved
src/social_norms_trees/behaviour_tree_library.py Outdated Show resolved Hide resolved
src/social_norms_trees/behaviour_tree_library.py Outdated Show resolved Hide resolved
src/social_norms_trees/behaviour_tree_library.py Outdated Show resolved Hide resolved
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.

2 participants