Skip to content

Commit a048538

Browse files
Revert cout logger to print node names
1 parent 0a79431 commit a048538

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/controls/sequence_node.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ NodeStatus SequenceNode::tick()
9999
} while((current_child_node = getNextSibling(current_child_node)) != nullptr);
100100

101101
// The entire while loop completed. This means that all the children returned SUCCESS.
102-
//haltChildren(0);
103102
resetChildren();
104103
current_child_idx_ = 0;
105104
// Skip if ALL the nodes have been skipped

src/loggers/bt_cout_logger.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ void StdCoutLogger::callback(Duration timestamp, const TreeNode& node,
2626
constexpr const size_t ws_count = 25;
2727

2828
double since_epoch = duration<double>(timestamp).count();
29-
printf("[%.3f]: %s%s %s -> %s", since_epoch, node.getShortDescription().c_str(),
30-
&whitespaces[std::min(ws_count, node.getShortDescription().size())],
29+
printf("[%.3f]: %s%s %s -> %s", since_epoch, node.name().c_str(),
30+
&whitespaces[std::min(ws_count, node.name().size())],
3131
toStr(prev_status, true).c_str(), toStr(status, true).c_str());
3232
std::cout << std::endl;
3333
}

0 commit comments

Comments
 (0)