Add live visualization of Behavior Tree from nav2_msgs/msg/BehaviorTreeLog message - #2
Merged
zeerekahmad merged 4 commits intoAug 18, 2026
Conversation
Contributor
Author
|
@troygibb We need a reviewer with write permissions such that this PR can be merged. |
Contributor
Author
|
@troygibb This has still not been sufficiently approved. |
Contributor
Author
|
@troygibb Any updates here? |
zeerekahmad
approved these changes
Aug 18, 2026
Sorry for the delay @mindThomas! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds live runtime state visualization to the Behavior Tree Foxglove panel using
nav2_msgs/msg/BehaviorTreeLogmessages alongside the existing BehaviorTree.CPP XML tree visualization.What changed
nav2_msgs/msg/BehaviorTreeLog.std_msgs/msg/String-shaped messages.IDLE,RUNNING,SUCCESS,FAILURE, andSKIPPED._uid, with a unique-node-name fallback when UID data is unavailable.IDLERUNNINGSUCCESSFAILURESKIPPEDWhy
Previously, the panel visualized only the static BehaviorTree.CPP XML structure. This change enables users to inspect recorded or live Nav2 behavior tree execution directly in Foxglove by overlaying runtime status transitions onto the graph.
Fixes #1
Testing
cd behavior-tree npm run vitestCompiled, installed and tested the extension with Foxglove:
cd behavior-tree npm run build npm run local-install