| 682 | {} |
| 683 | |
| 684 | BT::NodeStatus tick() override |
| 685 | { |
| 686 | const auto in_pos = getInput<Point>("pos_in"); |
| 687 | if(!in_pos.has_value()) |
| 688 | return BT::NodeStatus::FAILURE; |
| 689 | Point _pos = in_pos.value(); |
| 690 | _pos.x += getInput<double>("x").value_or(0.0); |
| 691 | _pos.y += getInput<double>("y").value_or(0.0); |
| 692 | setOutput("pos_out", _pos); |
| 693 | return BT::NodeStatus::SUCCESS; |
| 694 | } |
| 695 | |
| 696 | static BT::PortsList providedPorts() |
| 697 | { |