Sarafun Behavior Trees package  1
Behavior trees for the SARAFun project
 All Data Structures Namespaces Functions Variables Enumerations Enumerator
json tree_generator::SubTreeFromKF::modifyId ( json  node,
std::vector< int > &  indices 
)
private

Make sure that the created json subtree has nodes with proper indices.

Parameters
nodeThe JSON node with the subtree description.
indicesThe vector of indices.
Returns
The modified json NODE.
Exceptions
logic_error

Definition at line 77 of file TreeFromKF.cpp.

References tree_generator::ACTION, tree_generator::CONDITION, tree_generator::SEL, tree_generator::SELSTAR, tree_generator::SEQ, and tree_generator::SEQSTAR.

Referenced by createSubTree().