Skip to content

Commit

Permalink
Merge pull request #2 from uml-robotics/gl_fix_register_condition
Browse files Browse the repository at this point in the history
fix condition nodes registered as action
  • Loading branch information
umhan35 authored Jun 1, 2021
2 parents fdf4ec9 + 6fe796c commit ea61748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bt_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void BehaviorTreeFactory::registerSimpleCondition(const std::string& ID,
return tick_bool_functor(parent_node) ? NodeStatus::SUCCESS : NodeStatus::FAILURE;
};

registerSimpleAction(ID, tick_functor, ports);
registerSimpleCondition(ID, tick_functor, ports);
}

void BehaviorTreeFactory::registerSimpleCondition(const std::string& ID,
Expand Down

0 comments on commit ea61748

Please sign in to comment.