00
In productionProbeginnerReal-time safety

The AI allocates in the control callback

Remove the per-callback allocation the LLM put in the hot path.

Pairs with Real-time and safety: where AI can't help in Use AI efficiently with ROS 2. Read the concept first, then diagnose it here.

Unlock this lab with Pro

Operator report

The 100 Hz control loop shows p99 latency spikes and misses its deadline under load.

Ubuntu 24.04, ROS 2 Jazzy, rclpy/rclcpp, an LLM coding assistant + MCP

01

System boundary

Trace only the relevant path.

3 nodes
  1. 01control callback
  2. 02allocation
  3. 03deadlineOUT
02

How this lab works

You diagnose it. No command list.

Open the repair workspace and gather your own evidence in a real terminal. No diagnostic commands are handed to you - finding the fault is the exercise. Stuck? Progressive hints unlock inside the workspace.

03

Verification

Pass more than the visible symptom.

4 checks
  • No per-cycle allocation
  • Deadline met
  • Hidden regression behavior
  • Root cause explanation