Skip to content
Robotics.world

Research

Keeping the Franka Emika Panda alive: a ROS 2 stack with a reliable position interface

Vendor support for the Franka Emika Panda has been discontinued: current frankaros2 and libfranka releases target only the newer Franka Research 3, leaving the large installed base of Pandas on…

The paper’s first page · arXiv:2608.19740
arXiv
2608.19740 · Preprint · not peer-reviewed
Published
2026-08-20
Authors
Antonio Langella, Davide Risi, Vincenzo Petrone, Enrico Ferrentino, Pasquale Chiacchio

In plain words

Vendor support for the Franka Emika Panda has been discontinued: current franka_ros2 and libfranka releases target only the newer Franka Research 3, leaving the large installed base of Pandas on outdated, unmaintained software.

AI summary

Overview

Research area: Robotics software infrastructure — ROS 2 control stacks for torque-controlled collaborative manipulators (specifically the Franka Emika Panda).

Technical level: Intermediate. The paper assumes familiarity with ROS 2, ros2_control hardware interfaces, and basic robot kinematics/dynamics, but the core argument (timing and sampling jitter, not the robot, cause failures) is explained from first principles.

Scope (one sentence): The paper diagnoses why the Panda's external position-control interface is unreliable, then presents and experimentally validates an open-source ROS 2 Jazzy stack — an asynchronous hardware interface, a rate-matching stage, and a position-domain reference generator — that restores reliable position control on two independent Panda platforms.

What This Paper Is About

Vendor support for the Franka Emika Panda has been discontinued: current franka_ros2 and libfranka releases target only the newer Franka Research 3, leaving the large installed base of Pandas on outdated, unmaintained software. A second, separate problem is that commanding joint positions or Cartesian poses through the Panda's external control interface is widely regarded as unreliable, producing vibrations and protective stops, to the point that existing frameworks advise against using it.

The paper argues that this unreliability is not a property of the robot but of how the external control loop is timed, and it delivers a ROS 2 Jazzy stack that makes the position interface usable while keeping the code open source.

Key Contributions

  1. A root-cause analysis of position-control failure. The authors trace vibrations and protective stops to two timing mechanisms — the phase drift between the workstation timer and the robot controller's clock, and sampling jitter in the command stream — rather than to limitations of the Panda itself.

  2. An asynchronous hardware interface. A dedicated real-time thread (SCHED_FIFO, priority 99) owns all FCI communication and exchanges state and commands with the ros2_control loop through mutex-protected buffers, so ROS-side jitter never reaches the robot link.

  3. A rate-matching mechanism and a position-domain reference-generation scheme. The rate-matching moving-average filter lets command sources slower than 1 kHz drive the robot without staircase artifacts, and the position-domain scheme (feed-forward velocity plus a proportional correction closed on the robot's own reported position) makes position commands reliable.

  4. An open-source port to ROS 2 Jazzy. franka_ros2 is ported to ROS 2 Jazzy for the Panda, built on an extended and packaged community libfranka driver that runs on a stock kernel without a real-time patch. Both are released as citable repositories.

Main Findings

  • The official ROS 2 loop is an order of magnitude slower than bare libfranka. Measured with LTTng, the external loop time d_EXT has a median of 0.065 ms for the official synchronous ROS 2 implementation (RS) versus 0.012 ms for a bare libfranka program (LF); the proposed asynchronous implementation (RA) reaches 0.013 ms.

  • Worst-case cycles exceed the 1 ms budget. RS reaches 2.174 ms in its worst cycle, above T_δ, causing that cycle's command to be discarded. LF peaks at 0.087 ms and RA at 0.141 ms.

  • Unserved robot cycles drop sharply. The synchronous implementation leaves 5.91% of cycles unserved, against 0.18% for bare libfranka and 0.41% for the proposed asynchronous stack.

  • Two independent clocks cause periodic overruns. The ros2_control read begins on the workstation timer but completes only when the robot's state packet arrives; because the clocks are independent, their relative phase drifts, producing the read-to-read intervals quantized at multiples of T_δ visible in the paper's timing distribution.

  • The admissible reference set is extremely narrow. Because INT reconstructs derivatives by dividing finite differences by powers of T_δ, a deviation ε in the commanded position generates an extra jerk term of ε/T_δ³. At T_δ = 1 ms, deviations of a few microradians reach the Panda's jerk limit; the authors confirm experimentally that uniform noise on the order of 1×10⁻⁶ rad was enough to trigger violations.

  • Sampling jitter alone can abort a motion. At a joint velocity of 1 rad/s, a single sample displaced by 4 µs displaces the commanded position by 4 µrad and produces a jerk error of 1.2×10⁴ rad/s³, above the jerk limit of every joint of the robot.

  • Velocity and torque interfaces are inherently less sensitive. Repeating the analysis for velocity commands yields a jerk error of q̈*Δ²δt/T_δ², a reduced sensitivity that explains why the position interface has drawn the complaints.

  • The libfranka workarounds do not fix the cause. The rate limiter trades aborts for sustained link oscillations, and the low-pass filter attenuates distortion without removing it; applied to an incremental command it also scales the increment, so the robot follows only a fraction of the commanded motion.

  • The proposed scheme tracks while staying smooth. In joint-velocity spectra, the synchronous configuration carries roughly an order of magnitude more spectral power in the 20–150 Hz band than the other two configurations, while the filtered configuration shows a visibly shrunken velocity curve; the proposed configuration tracks faithfully with low-band power comparable to the filtered case.

  • Rate matching converts a staircase into a ramp. With a 125 Hz velocity source (N = 8), disabling the stage produces a zero-order hold whose single riser carries N times the intended per-cycle increment; enabling it spreads the update across the N cycles at an analytical group delay of 3.5 ms.

  • The stack runs without a real-time kernel patch. The validation experiments used a stock kernel with SCHED_FIFO scheduling alone, and in Lab A the application demos ran on a non-real-time kernel.

  • No formal guarantees are claimed. The authors state explicitly that the behavior of the reference-generation scheme is assessed empirically rather than proven.

Methodology in Plain English

The authors begin by reading the FCI protocol documentation and formalizing what the robot does with a position command: it reconstructs velocity, acceleration, and jerk by finite-differencing successive position samples over a 1 ms period, then checks all of them, plus the resulting torques, against limits. This formalization makes the sensitivity obvious — dividing by 1 ms three times means tiny timing or position errors become enormous jerk values.

They then instrument the software. Using LTTng user-space tracepoints placed around the state read and the command write, they record loop timings for three configurations (bare libfranka, the official synchronous ROS 2 interface, and their asynchronous one) on the same robot, and plot the distribution of read-to-read intervals to expose the clock-phase competition.

The architectural fix separates concerns. Instead of performing the blocking robot read inside the ros2_control loop, a dedicated high-priority thread does nothing but communicate; the ROS side just copies into and out of buffers. Because that thread is paced by packet arrivals rather than a workstation timer, the phase problem disappears. On top of this, a moving-average filter with window N = ⌈f_INT/f_EXT⌉ smooths commands from slower sources, and the position reference is generated incrementally from the robot's own reported position plus a feed-forward velocity, so no timestamp from either machine enters the computation.

Validation replays the same approximately 18.32 s multi-joint trajectory under each configuration, compares measured joint velocity and its power spectral density, and then demonstrates the stack on four applications: MoveIt! planning and execution, compliance control, position-controlled pick-and-place, and haptic teleoperation. The first two are reproduced at two separate institutions (Lab A and Lab B) on two independent Panda setups.

Why This Matters

Impact on research. A large installed base of Panda arms in academic labs is currently stranded on unmaintained software, which blocks integration with modern planning, perception, and interaction tooling. Restoring a current, reliable, open ROS 2 stack — and specifically making the position interface usable — removes a recurring engineering distraction for collaborative-robotics groups. It also corrects a widespread belief: existing frameworks discourage the position interface, and this paper shows the limitation lies in the implementation, not the hardware.

Real-world applications:

  • Collaborative manufacturing cells, where a robot must hold a pose or track a trajectory while a human pushes against it, and where compliance must be tuned from stiff to yielding.
  • Position-controlled pick-and-place, the natural execution mode for commands produced by motion planners or perception modules.
  • Haptic teleoperation of mobile manipulators, where an operator's device streams Cartesian references to an arm mounted on a mobile base (the paper demonstrates this with a Husky A200).
  • Shared-autonomy and human-robot collaboration systems that must combine planning, perception, interaction, and shared control in one responsive loop.

Industry relevance. The stack runs on a stock kernel without a PREEMPT_RT patch, which lowers the deployment barrier considerably: a standard Ubuntu 24.04 workstation suffices. The demonstration that the same software runs unchanged across two labs and two machines is a practical reproducibility result that matters for anyone maintaining a fleet of legacy Panda arms.

Future Directions

  • Formal guarantees for the reference-generation scheme. The authors explicitly state they do not claim formal guarantees and rely on empirical assessment; a stability or tracking-error analysis of the λ-tunable update law would be the natural next step.
  • Systematic tuning guidance for λ. Only a single value (λ = 1×10⁻³) is used across all experiments, so how λ trades off tracking fidelity against smoothness, and how it should be chosen for different command sources, remains open.
  • Generalization beyond the Panda. The analysis is specific to the FCI's 1 ms cycle and the Panda's limit set; whether the same asynchronous-plus-rate-matching pattern transfers cleanly to other vendors' external control interfaces is untested.
  • Multi-arm and torque-mode extensions. The closest related work, multipanda_ros2, targets real-time torque control and multi-manual coordination but explicitly leaves other modes as future work; combining that coordination capability with this paper's reliable position interface is an obvious open direction.

Target Audience

Robotics engineers and researchers who maintain or deploy Franka Emika Panda arms, especially those migrating to ROS 2 Jazzy or building collaborative applications that need to execute planner- or perception-generated position commands. It is also valuable to ros2_control developers interested in hardware-interface timing patterns, and to anyone debugging unexplained protective stops or vibrations on an external-control robot — the jitter analysis generalizes well beyond this one platform.

Authors’ abstract

This paper presents an open-source software stack that restores ROS 2 support for the Franka Emika Panda robot while resolving the long-standing unreliability of its external position control interface. We first analyze the root causes of unstable position control and show that the observed vibrations and protective stops arise from the timing of the external control loop and sampling jitter, rather than from limitations of the robot itself. Building on this analysis, we…

The full abstract on arXiv
Read the original paper

Related papers