Skip to content

Default values for ports with generic types #580

@OPerepadia

Description

@OPerepadia

I would like to set default values for ports with generic types.

This code from tutorial 3 compiles and works as expected:

return {InputPort<Position2D>("target", description)};

But this one produces an error - no matching function for call to ‘to_string(BT::Position2D&)’

return {InputPort<Position2D>("target", {1.0, 2.0}, description)};

Is this not implemented or am I missing something in my code?

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