Skip to content

Commit

Permalink
[behavior_tree] don't repeat yourself in "blackboard->set" (ros-navig…
Browse files Browse the repository at this point in the history
…ation#4074)

* don't repeat yourself: templates in tests

Signed-off-by: Davide Faconti <davide.faconti@gmail.com>

* misse change

Signed-off-by: Davide Faconti <davide.faconti@gmail.com>

---------

Signed-off-by: Davide Faconti <davide.faconti@gmail.com>
  • Loading branch information
facontidavide authored and Marc-Morcos committed Jul 4, 2024
1 parent a64dfc2 commit a45559c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ class FibonacciAction : public nav2_behavior_tree::BtActionNode<test_msgs::actio

BT::NodeStatus on_cancelled() override
{
config().blackboard->set<std::vector<int>>("sequence", result_.result->sequence);
config().blackboard->set<bool>("on_cancelled_triggered", true);
config().blackboard->set("sequence", result_.result->sequence);
config().blackboard->set("on_cancelled_triggered", true);
return BT::NodeStatus::SUCCESS;
}

Expand Down

0 comments on commit a45559c

Please sign in to comment.