Skip to content

Vectors being initialized with json:[] string #982

Open
@edu-rossrobotics

Description

@edu-rossrobotics

Describe the bug
In the recent versions of the library, I've seen an issue with vectors on custom nodes, where they get initialized to have the following string: json:[]

How to Reproduce*

I have a node that has an input port like this:

BT::InputPort<std::vector<std::string>>("string_vector", {}, "A string vector"),

And I don't declare any input on the XML file so I expect the vector to be empty. I print then the contents on the node and I get this

json:[]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions