🩺 Troubleshooting

This page collects the problems users run into most often, based on the GitHub issues. If your problem is not listed, please open an issue with the full error message and your franky, libfranka, and robot system versions.

Server version mismatch

franky.IncompatibleVersionException: libfranka: Incompatible library version (server version: 9, library version: 10)

The default pip install franky-control wheel is built against the latest libfranka, which only talks to robots on the latest firmware. Robots on older firmware and the Franka Panda need a wheel built against an older libfranka. The server version in the error message is the one your robot runs; install the wheel for it:

pip uninstall franky-control  # pip does not replace an installed wheel of the same version otherwise
# Replace 9 with the server version from the error message
pip install franky-control --extra-index-url "https://timschneider42.github.io/franky/whl/by-robot-server-version/9/"

Check the result with pip list | grep franky: the version ends in the libfranka version the wheel bundles, e.g. 2.0.0+libfranka.0.17.0.

If you do not have the error message at hand, look up the server version from your robot’s system version (shown in Desk) in Franka’s compatibility table:

Robot system version

Server version

Robot

>= 5.9.0

10

FR3

>= 5.7.2

9

FR3

>= 5.7.0

8

FR3

>= 5.5.0

7

FR3

>= 5.2.0

6

FR3

>= 4.2.1

5

FR3, Panda

>= 4.0.0

4

FR3, Panda

>= 3.0.0

3

FR3, Panda

franky supports server versions 3 through 10. Robots on system versions below 3.0.0 are not supported; Franka Support may be able to provide an update to 3.x (see #50).

Upgrading the robot’s firmware does not fix other errors, such as the reflexes below: a version mismatch always shows up as the exception above.

Motion aborted by reflex

Discontinuity errors

franky.ControlException: libfranka: Move command aborted: motion aborted by reflex! ["cartesian_motion_generator_joint_acceleration_discontinuity"]
control_command_success_rate: 0.98 packets lost in a row in the last sample: 1

The variants *_velocity_discontinuity and *_acceleration_discontinuity, for joint and Cartesian motion generators, have the same causes:

  • Missed control cycles. franky has to send a command every millisecond. A single missed cycle can already cause a discontinuity error, so if these errors appear out of nowhere, in motions that usually work, missed cycles are the most likely cause. Many missed cycles end in a communication_constraints_violation instead. A control_command_success_rate below 1 or lost packets in the error message point to this. Check the real-time setup, and keep CPU load, printing, and motion and reaction callbacks short.

  • Dynamics set too high. Start with the default relative_dynamics_factor of 0.05 and raise it slowly; even 0.2 can cause frequent discontinuity errors.

  • Cartesian motions near joint limits or singularities. Cartesian trajectories are planned without knowledge of the joint limits. Prefer JointMotion for large motions, or stay in the middle of the workspace.

If the error still occurs occasionally, catch the ControlException, call robot.recover_from_errors(), and continue.

Communication constraints violation

franky.ControlException: libfranka: Move command aborted: motion aborted by reflex! ["communication_constraints_violation"]

The control computer missed too many control cycles. Check that:

  • you did not pass realtime_config=RealtimeConfig.Ignore to Robot. By default, franky refuses to connect without a working real-time setup (see Real-time errors when connecting); Ignore turns that check off, which is meant for simulation, not for the real robot;

  • the computer is not busy with other work, and your Python code does not block the control thread;

  • the robot is connected directly or through a dedicated network, not through a busy switch or Wi-Fi.

cartesian_reflex, joint_reflex, and joint limit violations

The robot measured forces above its collision thresholds, or a joint reached its limit. Raise the thresholds with robot.set_collision_behavior(...) if the contact is intended, move more slowly, and keep the joints away from their limits. Note that franky’s reactions run on top of the robot’s reflexes: if the force exceeds the collision threshold, the reflex stops the robot before your reaction can.

Errors in asynchronous motions

With robot.move(motion, asynchronous=True), an error is raised by the next robot.move() or robot.join_motion() call, so wrap those in try/except. After an error, call robot.recover_from_errors() before moving again. Some errors, e.g. a pressed emergency stop, cannot be recovered from in software.

Cannot connect to the robot

franky.NetworkException: libfranka: Connection timeout. Please check your network connection or settings
  • Connect the Ethernet cable to the control box, not to the robot arm’s base.

  • Give your computer a static IP in the same subnet as the robot and check that you can ping it.

  • Activate FCI in Desk. With FCI deactivated, the connection is refused instead of timing out.

A broken real-time setup never causes a connection timeout; it raises a RealtimeException instead (see below).

Real-time errors when connecting

franky.RealtimeException: libfranka: Running kernel does not have realtime capabilities.
franky.RealtimeException: libfranka: unable to set realtime scheduling: Operation not permitted

By default (realtime_config=RealtimeConfig.Enforce), Robot(...) raises these errors instead of connecting without real-time guarantees. The first means the computer is not running a real-time kernel (uname -a does not show PREEMPT_RT), the second that your user may not use real-time scheduling, usually because it is not in the realtime group. See the installation instructions for both.

Robot(..., realtime_config=RealtimeConfig.Ignore) skips these checks. That is fine for simulation, but on the real robot it leads to missed control cycles and the errors above.

Installation problems

  • Could not find a version that satisfies the requirement franky-control: wheels are provided for x86_64 Linux with glibc 2.28 or newer (e.g. Ubuntu 20.04 and later) and CPython 3.9 to 3.14. For other platforms, such as ARM boards, build franky from source or with the franky-build Docker container (see Development).

  • The source directory .../ruckig does not contain a CMakeLists.txt when building from source: clone with --recurse-submodules or run git submodule update --init --recursive.

  • Code from older examples fails with missing names such as Affine.vector or elbow_position: the API changed between major versions; see the guide for the current one.

Gripper

  • The Franka Hand is slow: commands take up to about a second, and reading gripper.width takes about 100 ms. It is not suited for commands faster than about 1 Hz; use the *_async methods to avoid blocking your control loop.

  • While a Gripper object exists, Desk shows the gripper as disconnected and the pilot buttons cannot operate it. Delete the object to use the buttons again.

Unexpected motion behavior

  • The robot stops at every waypoint. Waypoints have zero target velocity unless you set one; give intermediate waypoints a velocity for smooth motion.

  • A relative Cartesian motion goes the wrong way. ReferenceType.Relative is relative to the end-effector frame, whose z-axis points out of the gripper, while CartesianVelocityMotion uses the base frame.

  • The end effector sinks while holding a pose. Check that the end-effector mass and load are configured correctly in Desk.