22class TreeResourceBuilder :
public TreeBuilderBase
27 bool setRequest(
const std::string& request)
override final
33 catch (
const exceptions::ResourceIdentityFormatError& e)
35 RCLCPP_ERROR(
getLogger(),
"%s", e.what());
40 RCLCPP_ERROR(
getLogger(),
"%s", e.what());
46 void configureBuilder(TreeBuilder& builder)
override final
49 throw exceptions::TreeBuildError(
"TreeResourceBuilder - resource_ptr_ is nullptr.");
50 builder.addTreeFromResource(*resource_ptr_,
getNodePtr());
54 std::unique_ptr<TreeResource> resource_ptr_;
TreeBuilderBase(rclcpp::Node::SharedPtr node_ptr)
const rclcpp::Logger & getLogger()
rclcpp::Node::SharedPtr getNodePtr()
#define AUTO_APMS_BEHAVIOR_TREE_REGISTER_BUILDER(type)
Macro for registering a behavior tree builder plugin which may be loaded at runtime to create a behav...
static TreeResource fromString(const std::string &identity)
Find a behavior tree resource using an identity string.