MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.ROS2 / RegisterBehaviorTrees

Function RegisterBehaviorTrees

behaviortree_ros2/src/bt_utils.cpp:162–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162void 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

Callers 1

executeRegistrationMethod · 0.85

Calls 2

GetDirectoryPathFunction · 0.85
LoadBehaviorTreesFunction · 0.85

Tested by

no test coverage detected