BehaviorTree.CPP icon indicating copy to clipboard operation
BehaviorTree.CPP copied to clipboard

debugMessage does not print parent values

Open cmraaron opened this issue 2 years ago • 0 comments

If I have a <Subtree ID="Sometree" blah="something_in_parent_bb" /> for example, and within <BehaviorTree ID="Sometree"> I have a node that in the constructor I call config().blackboard->debugMessage(), then I do not see item blah printed.

looking at the debugMessage source, it seems to only check internal_to_external_ if it has already found an entry in storage_ But im not sure under what circumstances we would expect to find an entry in storage_ as xml_parsing.cpp only calls addSubtreeRemapping in this case, placing an entry only in internal_to_external_.

Should I expect to see mapped keys in this case? If I was to change it to consult internal_to_external_ first, similar to getAny, are there other cases I need to take into account?

cmraaron avatar Aug 06 '22 13:08 cmraaron