New package: rqt_execution_flow – see your actions and service calls live (Jazzy)

Hi everyone,

I’d like to share rqt_execution_flow, an rqt plugin for ROS 2 Jazzy that shows what your action servers and service calls are doing, not just how nodes are connected.

rqt_execution_flow demo

Repository: GitHub - nivednivu1997/rqt_execution_flow: rqt plugin for ROS 2 Jazzy: live call tree and animated flow of action goals and service calls, with record and slow-motion replay · GitHub

Why

When an orchestrator calls an action, that server calls another action, and that one calls a service, rqt_graph shows the wiring but not which call is running, which one is waiting, or why a goal was canceled. I kept hitting this while debugging nested mission and task servers, so I built a tool for it.

Features

  • Live call tree: goals and service calls nested under the call that triggered them, with status, caller, server and duration
  • Animated flow view: goals, feedback, cancels, results, requests and responses travel between nodes as packets; nodes are coloured by role (action server/client, service server/client)
  • Event timeline and details: status history, latest feedback, request/response data, round-trip and server time
  • Record and replay: replay a run at 0.1×–2×, step one event at a time, scrub with a slider; recordings are files you can attach to bug reports
  • Debugging aids: slow/stuck call highlighting, per-action/service statistics (avg, p95, max, failures), click a node to focus on its calls, filter by result
  • Warnings for duplicate node names (a classic cause of “stuck” goals) and for services you can’t see
  • Read-only: it never sends goals, cancels or service calls

What it needs

  • Actions work with no code changes. Goal status and feedback come from the standard hidden action topics.
  • Service calls need service introspection turned on, which is one line per node on Jazzy (Python and C++ examples in the README). Turning it on at the server alone is enough to see every caller.

Try it

A demo system is included:

cd ~/ros2_ws/src && git clone https://github.com/nivednivu1997/rqt_execution_flow.git
cd ~/ros2_ws && colcon build --packages-select rqt_execution_flow && source install/setup.bash
ros2 run rqt_execution_flow execution_flow_demo      # terminal 1
ros2 run rqt_execution_flow rqt_execution_flow       # terminal 2

A binary release for Jazzy is under review (ros/rosdistro#55723). Once it’s synced, it will install with sudo apt install ros-jazzy-rqt-execution-flow.

Known limitations

  • On Jazzy, action goal request and result data aren’t visible (status and feedback are). Action introspection arrived after Jazzy.
  • Which goal caused which call is inferred from the graph and timing, because Jazzy carries no call ID. The details panel always says how a link was worked out.
  • Tested mainly on Fast DDS so far.

Feedback welcome

I’d especially like to hear from people with:

  • large systems, for example Nav2 or many-node setups, on performance
  • Cyclone DDS
  • interest in a Kilted/Rolling version, where action introspection could show goal data and exact callers

Issues and pull requests are very welcome. Thanks for reading!

2 Likes