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

what does the "Close node from last tick" means? #6

Open
Wuqiqi123 opened this issue Aug 3, 2020 · 0 comments
Open

what does the "Close node from last tick" means? #6

Wuqiqi123 opened this issue Aug 3, 2020 · 0 comments

Comments

@Wuqiqi123
Copy link

# Close node from last tick, if needed
last_open_nodes = blackboard.get('open_nodes', self.id)
curr_open_nodes = tick._open_nodes
start = 0
for node1, node2 in itertools.izip(last_open_nodes, curr_open_nodes):
start += 1
if node1 != node2:
break
# - close nodes
for i in xrange(len(last_open_nodes)-1, start-1, -1):
last_open_nodes[i]._close(tick);

Hi, I read the code here but this confuse me, when a node is not at running state, will close it. So "Close node from last tick" is for what?

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

No branches or pull requests

1 participant