We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bef8d59 commit 441102bCopy full SHA for 441102b
include/behaviortree_cpp/bt_factory.h
@@ -36,6 +36,17 @@ constexpr const char* PLUGIN_SYMBOL = "BT_RegisterNodesFromPlugin";
36
37
#ifndef BT_PLUGIN_EXPORT
38
39
+/* Use this macro to automatically register one or more custom Nodes
40
+into a factory. For instance:
41
+
42
+BT_REGISTER_NODES(factory)
43
+{
44
+ factory.registerNodeType<MoveBaseAction>("MoveBase");
45
+}
46
47
+IMPORTANT: this must funtion MUST be declared in a cpp file, NOT a header file.
48
+See examples for more information about configuring CMake correctly
49
+*/
50
#define BT_REGISTER_NODES(factory) \
51
static void BT_RegisterNodesFromPlugin(BT::BehaviorTreeFactory& factory)
52
0 commit comments