Skip to content

Behavior tree log

Shows what Nav2's behavior tree is doing, and how often it falls back on recoveries.

The tree keeps falling back on recoveries, and BT-001 tracks how often.

What it covers

Message types nav2_msgs/msg/BehaviorTreeLog
Tier Full, declared or not. Every message is read
TUI category BT Navigator
Published on /testudo/bt_log

What it needs

nav2_msgs must be installed. Without it, the plugin stays inactive and everything else keeps working.

It counts recovery nodes whose name starts with Spin, BackUp, Wait, DriveOnHeading, ClearEntireCostmap, ClearCostmapExceptRegion or ClearCostmapAroundRobot. This includes recoveries wired into the tree as service calls, which the Actions plugin can't see.

topics:
  nav2_msgs/msg/BehaviorTreeLog:
    - name: /behavior_tree_log
      thresholds:
        recovery_frequency_per_min: {warn: 2.0}

Codes

BT-001 · Recovering too often

▲ WARN ✗ ERROR Recovery nodes trigger more often than recovery_frequency_per_min. It has no default, because how often recovery is normal depends on the site and on the tree.

Likely causes: a planner or controller repeatedly failing, or a cluttered environment.

What to do: the Detail Panel names the last recovery and the last node that failed.

Settings

Metric warn error
recovery_frequency_per_min – –

In the TUI

A behavior tree repeatedly running recoveries, in the dashboard

The Topic Panel adds a Rec/m column. The Detail Panel shows the running branch, recent recoveries and the last failure.

Known limits

  • This plugin assumes Nav2's message type and recovery node names. A custom recovery node with another name is not counted.