Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update bt2img syntax and bt pics #4900

Merged
merged 1 commit into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading