Skip to content

4.5.2: Bug fixes

Compare
Choose a tag to compare
@facontidavide facontidavide released this 07 Mar 11:53
· 85 commits to master since this release

Bug fix

This release fix some important bugs in the scripting language, most notably in the equal operators, that now support enums and boolean more correctly.

New features

The way default port values is specified is also being changed, to include default pointers to the blackboard too.

Example of how ports with complex types can be initialized.
Note that the case represented in pointC requires the implementation of convertFromString<Point2D>()

  static PortsList providedPorts()
  {
    return {BT::InputPort<Point2D>("input", "no default value"),
            BT::InputPort<Point2D>("pointA", Point2D{1, 2}, "default value is [1,2]"),
            BT::InputPort<Point2D>("pointB", "{point}", "default value inside blackboard {point}"),
            BT::InputPort<Point2D>("pointC", "5,6", "default value is [5,6]"),
            BT::InputPort<Point2D>("pointD", "{=}", "default value inside blackboard {pointD}")};
  }

But this new syntax is still experimental and will become stable in release 4.6.0