GeoFIK Solves the Franka Robot's Broken Math 10x Faster Than IKFast
A screw-theory-based analytical inverse kinematics solver for the Franka arm delivers Jacobians for free, handles singularities, and beats existing solvers on speed and reliability.
ProTakeaways
- GeoFIK is a new analytical IK solver for the 7-DOF Franka arm based on screw theory.
- It finds all screw axes before joint angles, returning the Jacobian as a byproduct at near-zero extra cost.
- Supports multiple redundancy parameters: q4, q6, q7, or the swivel angle for smoother posture control.
- Beats HeLiu, IKFast, and IK-Geo on speed, solution count, and end-effector accuracy across 2000 poses.
- Handles flat-shoulder and shoulder-on-S7 singularities where baseline solvers return duplicates or fail entirely.
- C++ code available at github.com/PabloLopezCustodio/GeoFIK.
The Franka Research Robot sits in most academic robotics labs, but the math that turns a desired gripper pose into joint angles has been quietly broken for years. A new solver called GeoFIK attacks that problem with screw theory, and it returns not just the joint angles but the Jacobian matrix as a byproduct, faster than existing methods compute the angles alone.
Why the Franka breaks textbook IK
Inverse kinematics reverses forward kinematics: given where you want the end-effector, find the joint angles that put it there. For a 7-DOF arm this problem has infinitely many solutions arranged along a one-dimensional curve called the self-motion manifold, so you have to lock one extra variable to pick a specific pose. Standard 7-DOF manipulators designed with a spherical wrist and shoulder offer trivial kinematics that allow simple redundancy resolution.
The Franka is not one of those robots. The most widely used manipulator in robotics research features an unconventional topology with joint offsets at the wrist and elbow that break the symmetry exploited by traditional solvers. Those offsets exist for a reason: they lower the effective mass at the end-effector, which makes the arm safer around humans. The tradeoff is that the clean algebraic tricks used for arms like the KUKA LBR do not apply.

The result is a surprisingly thin literature. Only four prior methods derived an analytical IK for the Franka, and among those only the He and Liu solver is complete and functional as a C++ application. Every one of them locks the last joint q7 as the free variable, which is the easiest but least robust choice. The general-purpose alternative, IKFast, auto-generates algebraic solvers but has no geometric insight and behaves poorly near singularities.
Screw axes first, joint angles second
GeoFIK inverts the usual order of operations. Rather than finding individual expressions for each joint angle, the method explores the whole geometry of the robot and finds all the screw axes first. A screw axis is the line in space around which a joint rotates, described by a direction and a point. Once you know the seven axes for a target pose, the Jacobian follows from a single adjoint transformation, and the joint values fall out of a clean seven-step loop that measures how far each axis has rotated from its home orientation using the SO(3) exponential map.
That reordering has three practical consequences:
- Jacobians are almost free. They come out of the intermediate geometry before you commit to any joint values, which is useful for lazy planners, trajectory optimization, and manipulability-aware control.
- Singularities become geometric events. Rank-deficient configurations show up as triangles going flat or axes going parallel, so they can be detected and handled with tolerances rather than caught by numerical blowups.
- Redundancy resolution is not stuck on
q7. The paper provides solvers that lockq4,q6,q7, or the swivel angle. The swivel angle is roughly the angle of the elbow around the shoulder-to-wrist line, and it gives a much more intuitive way to control arm posture than picking a joint value.
The numbers
The team benchmarked against three baselines: He-Liu, IKFast, and the general 6-DOF solver IK-Geo. They generated 2000 random valid configurations and measured time, number of valid solutions returned, and end-effector error.
| Metric (locking q6) | GeoFIK | IKFast | IK-Geo |
|---|---|---|---|
| Joint angles time (mean, us) | 3.1 | 39.1 | 8.3 |
| Jacobian + joints (mean, us) | 3.5 | 46.7 | 19.7 |
| Total valid solutions | 7119 | 7119 | 5856 |
| EE position error (m) | 9e-14 | 7e-10 | 9e-8 |
GeoFIK attempts eight solutions per call, covering all geometrically valid branches, while HeLiu attempts only four and explicitly omits a secondary elbow-down branch. Across the full benchmark GeoFIK found more valid poses than any baseline, and its Jacobian-plus-joints time was roughly an order of magnitude below IKFast.
What actually happens on a real robot
The most convincing evidence is not in the table. The team ran a trajectory in the center of the Franka's workspace, where you would expect any solver to succeed. HeLiu failed after about ten seconds and forced the robot to halt. GeoFIK locking q7 also hit a dead spot. IKFast could not even find an initial solution and demanded an instantaneous base flip that tripped the torque reflexes and stopped the arm.
GeoFIK with the swivel angle as the free variable stayed feasible through the entire trajectory. Sampling q7 in a small window around the current value kept the traditional solvers alive but introduced chattering in the joint trajectories. The swivel-angle formulation avoided that because it does not lock any joint to a specific value.
Handling the ugly configurations
The singularity behavior is where the geometric formulation earns its keep. Two cases matter in practice:
- Flat shoulder, when
q2 = 0and the first joint becomes a free choice. GeoFIK lets the user supply an emergencyq1and returns two distinct solutions with plus and minusq1, avoiding the discontinuities that show up when other solvers return duplicate poses. - Shoulder-on-S7, an algorithmic singularity where the polygon of links can spin around the last joint axis without changing
q4,q5, orq6. GeoFIK detects that the requested free variable no longer controls the arm and automatically transfers the problem to theq7-locking solver. IKFast and IK-Geo simply return no solution.
Getting it
The C++ implementation is on GitHub under the authors' account, and the full derivations, including the separate treatments for locking q4, q6, q7, and the swivel angle, are in the arXiv preprint. If you are running planning, teleoperation, or imitation learning on a Franka and hitting IK dropouts in the middle of the workspace, this is a drop-in replacement worth trying, especially if you also want cheap Jacobians for a downstream manipulability or optimization objective.