Skip to content

Commit

Permalink
Revert cout logger to print node names
Browse files Browse the repository at this point in the history
  • Loading branch information
GregoryLeMasurier committed Apr 12, 2024
1 parent 0a79431 commit a048538
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/controls/sequence_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ NodeStatus SequenceNode::tick()
} while((current_child_node = getNextSibling(current_child_node)) != nullptr);

// The entire while loop completed. This means that all the children returned SUCCESS.
//haltChildren(0);
resetChildren();
current_child_idx_ = 0;
// Skip if ALL the nodes have been skipped
Expand Down
4 changes: 2 additions & 2 deletions src/loggers/bt_cout_logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ void StdCoutLogger::callback(Duration timestamp, const TreeNode& node,
constexpr const size_t ws_count = 25;

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

0 comments on commit a048538

Please sign in to comment.