Groot2 icon indicating copy to clipboard operation
Groot2 copied to clipboard

How to import a custom node defined in behavior_tree.cpp source code into Groot?

Open pioneer-innovation opened this issue 6 months ago • 1 comments

Description: I have defined a new custom node (e.g.,CustomSequenceNode) in the source code of the behavior_tree.cpp library (not in a separate project). I want to visualize and use this node in Groot, the behavior tree editor.

What steps are required to ensure Groot recognizes and imports this custom node?
Are there specific headers, registration macros, or configuration files I need to modify in the library's source code?

Any guidance on the integration process between behavior_tree.cpp and Groot for custom nodes would be greatly appreciated.

pioneer-innovation avatar Jun 07 '25 05:06 pioneer-innovation

Call this function and it will write the models to file https://github.com/BehaviorTree/BehaviorTree.CPP/blob/22929a25473fee1e852fa06734e947e889b433b4/include/behaviortree_cpp/xml_parsing.h#L58

Afterwards you can import this into Groot

tony-p avatar Oct 22 '25 13:10 tony-p