Skip to content

Commit

Permalink
Add conditional to subgraph in dot graph output
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi-Armstrong committed Jul 17, 2023
1 parent 89d6aad commit 08213e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tesseract_task_composer/core/src/task_composer_graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ std::string TaskComposerGraph::dump(std::ostream& os,
std::ostringstream sub_graphs;
const std::string tmp = toString(uuid_);
os << "subgraph cluster_" << tmp << " {\n color=black;\n label = \"" << name_ << "\\n(" << uuid_str_ << ")";
os << "\\n Conditional: " << ((conditional_) ? "True" : "False");
os << "\\n Inputs: [";
for (std::size_t i = 0; i < input_keys_.size(); ++i)
{
Expand Down Expand Up @@ -286,6 +287,7 @@ std::string TaskComposerGraph::dump(std::ostream& os,
const std::vector<std::string>& input_keys = node->getInputKeys();
const std::vector<std::string>& output_keys = node->getOutputKeys();
os << std::endl << tmp << " [shape=box3d, label=\"Subgraph: " << node->name_ << "\\n(" << node->uuid_str_ << ")";
os << "\\n Conditional: " << ((node->isConditional()) ? "True" : "False");
os << "\\n Inputs: [";
for (std::size_t i = 0; i < input_keys.size(); ++i)
{
Expand Down

0 comments on commit 08213e8

Please sign in to comment.