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

Port type missmatch between blackborad and subtree port #489

Closed
farshbafdoustar opened this issue Jan 2, 2023 · 4 comments
Closed

Port type missmatch between blackborad and subtree port #489

farshbafdoustar opened this issue Jan 2, 2023 · 4 comments

Comments

@farshbafdoustar
Copy link
Contributor

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?

@facontidavide
Copy link
Collaborator

Let me see if I can replicate this issue locally

@facontidavide
Copy link
Collaborator

is this the master branch (version 4.0.1?)

@facontidavide
Copy link
Collaborator

fix pushed to master. thanks for reporting

@farshbafdoustar
Copy link
Contributor Author

Wow, Thanks Davide!

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

2 participants