-
Notifications
You must be signed in to change notification settings - Fork 685
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support inclusion or aggregation of other XML files #17
Comments
Ok, I implemented the feature in a new branch. Once you give me some feedback I will merge it into master. https://github.com/BehaviorTree/BehaviorTree.CPP/tree/include_xml To see it in action, execute bin/t07_include_trees passing as first argument either the absolute or relative path to examples/test_files/subtree_test.xml. Cheers |
Looks great. ROS users could probably implement on their own application, some sort of preprocessing of the xml to expand paths relative to a package, ie expand |
Indeed. As usual, I prefer to focus on platform independent features first and ROS specific ones later. |
This new syntax is now supported when library is compiled with catkin: <include ros_pkg="my_package" path="my_tree.xml" />
Please take a look at db72762 I haven't tested it through yet, but it should work. |
I tested it modifying your example with: And it worked like a charm! |
Nice!!! |
The use case is simple, if I create a BehaviorTree that implements a funcionality in an xml, I'd like to be able to include it from multiple XML's without having to duplicate it.
The text was updated successfully, but these errors were encountered: