Closed
Description
I have an ActionNode (Action1) that has input port with std::vector type:
<BehaviorTree ID="Main">
<SubTree ID="Subtree_A" states="1;2"/>
</BehaviorTree>
<BehaviorTree ID="Subtree_A">
<Sequence>
<Action1 states="{states}"/>
</Sequence>
</BehaviorTree>
When I want to pass sth to this port through a wrapper Subtree, I got the following error:
The creation of the tree failed because the port [states] was initially created with type [std::string] and, later type [std::vector<int, std::allocator<int> >] was used somewhere else.
it seems that the blackboard item defined in Main tree is created by default with std::string type. Is there anyway to define the type for the blackboard items in advance or any workaround to handle such a situation?
Metadata
Metadata
Assignees
Labels
No labels
Activity
facontidavide commentedon Jan 2, 2023
Let me see if I can replicate this issue locally
facontidavide commentedon Jan 2, 2023
is this the master branch (version 4.0.1?)
facontidavide commentedon Jan 2, 2023
fix pushed to master. thanks for reporting
farshbafdoustar commentedon Jan 2, 2023
Wow, Thanks Davide!