Skip to content

Commit

Permalink
Update bt2img syntax and bt pics (#4900)
Browse files Browse the repository at this point in the history
Signed-off-by: Maurice-1235 <[email protected]>
  • Loading branch information
mini-1235 authored Feb 4, 2025
1 parent 870a98a commit f3ef5d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Binary file modified nav2_bt_navigator/doc/parallel_w_recovery.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 4 additions & 6 deletions tools/bt2img.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,15 +186,13 @@ def add_nodes(dot, parent_dot_name, parent_node):
# type, the name if provided, and the parameters.
def make_label(node):
label = "< <table border='0' cellspacing='0' cellpadding='0'>"
label += "<tr><td align='text'><i>' + node.tag + '</i></td></tr>"
label += f"<tr><td align='text'><i>{node.tag}</i></td></tr>"
name = node.get('name')
if name:
label += "<tr><td align='text'><b>' + name + '</b></td></tr>"
label += f"<tr><td align='text'><b>{name}</b></td></tr>"

for (param_name, value) in node.items():
label += (
"<tr><td align='left'><sub>' + param_name + '=' + value + '</sub></td></tr>"
)
for param_name, value in node.items():
label += f"<tr><td align='left'><sub>{param_name}={value}</sub></td></tr>"
label += '</table> >'
return label

Expand Down

0 comments on commit f3ef5d4

Please sign in to comment.