| 160 | } |
| 161 | |
| 162 | void RegisterBehaviorTrees(bt_server::Params& params, BT::BehaviorTreeFactory& factory, |
| 163 | rclcpp::Node::SharedPtr node) |
| 164 | { |
| 165 | for(const auto& tree_dir : params.behavior_trees) |
| 166 | { |
| 167 | const auto tree_directory = GetDirectoryPath(tree_dir); |
| 168 | // skip invalid subtree directories |
| 169 | if(tree_directory.empty()) |
| 170 | continue; |
| 171 | LoadBehaviorTrees(factory, tree_directory); |
| 172 | } |
| 173 | } |
| 174 | |
| 175 | } // namespace BT |
no test coverage detected