-
Notifications
You must be signed in to change notification settings - Fork 769
Closed
Description
When you include from another directory, and that tree includes another tree, the BT factory throws the error XML_ERROR_FILE_NOT_FOUND
.
Given these example trees and directory structure:
/
tree_includes_tree_includes_same_directory.xml
child/
tree_includes_same_directory.xml
tree_child_directory.xml
tree_includes_tree_includes_same_directory.xml
<root main_tree_to_execute = "IncludesTreeIncludesSameDirectory">
<include path="child/tree_includes_same_directory.xml" />
<BehaviorTree ID="IncludesTreeIncludesSameDirectory">
<Sequence>
<SubTree ID="IncudesSameDirectoryTree" />
<AlwaysSuccess />
</Sequence>
</BehaviorTree>
</root>
child/tree_child_directory.xml
<root main_tree_to_execute = "ChildDirectoryTree">
<BehaviorTree ID="ChildDirectoryTree">
<AlwaysSuccess />
</BehaviorTree>
</root>
child/tree_includes_same_directory.xml
<root main_tree_to_execute = "IncudesSameDirectoryTree">
<include path="tree_child_directory.xml" />
<BehaviorTree ID="IncudesSameDirectoryTree">
<Sequence>
<SubTree ID="ChildDirectoryTree" />
<AlwaysSuccess />
</Sequence>
</BehaviorTree>
</root>
Loading the tree tree_includes_tree_includes_same_directory.xml using an absolute path, it throws the above error XML_ERROR_FILE_NOT_FOUND
.
It does not seem to matter whether the second tree (tree_includes_same_directory.xml in this example) includes a third tree from the same directory, a parent directory, or a sibling directory; they all fail in the same way.
Metadata
Metadata
Assignees
Labels
No labels