-
Notifications
You must be signed in to change notification settings - Fork 631
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
Enable local variables in sub-tree #706
Comments
My work-around is to create 2 <BehaviorTree ID="SaySomethingTwice"/>
<Sequence>
SubTree ID="SaySomethingTwiceImpl"
_autoremap="false"
message="{message}" />
</Sequence>
</BehaviorTree>
<BehaviorTree ID="SaySomethingTwiceImpl"/>
<Sequence>
<SaySomething message="{message}" />
<SaySomething message="{message}" />
</Sequence>
</BehaviorTree> |
this seems like a very specific use case. I understand that in your case could be annoying, but it is hard for me to find an elegant solution. The prefix is doable, but seems too specific. What about excluding from auto-remapping all the port names that start with "_",
This feels very familiar for people developing C++ |
What do you think? |
This would be a useful addition that would help avoiding potential issues when using subtrees. |
done |
Woah, that was quick! Thanks! |
As sub-trees get more complicated, I tend to always use
_autoremap="true"
rather than writing a long list of remappings. Even if I would be OK with not using_autoremap
, I cannot ensure that other users of the sub-tree I write also avoid to use it.Now, I have a case where I compute some small trajectories identified with a shared prefix and then combine them. I do not know in advance how many of these trajectories will be in the blackboard but what I know for sure is that I don't want to share these small trajectories with other calls to the sub-tree.
I see two solutions:
local{var}
BehaviorTree
element to list the variables that should not be shared even if_autoremap
is used. Not so nice, IMHO.I can implement something but I'd like to have some guidance on what to implement.
The text was updated successfully, but these errors were encountered: