Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 441102b

Browse files
added more comments (issue BehaviorTree#102)
1 parent bef8d59 commit 441102b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

include/behaviortree_cpp/bt_factory.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,17 @@ constexpr const char* PLUGIN_SYMBOL = "BT_RegisterNodesFromPlugin";
3636

3737
#ifndef BT_PLUGIN_EXPORT
3838

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+
*/
3950
#define BT_REGISTER_NODES(factory) \
4051
static void BT_RegisterNodesFromPlugin(BT::BehaviorTreeFactory& factory)
4152

0 commit comments

Comments
 (0)