Physical AI Glossary
Inverse Kinematics
Inverse kinematics (IK) solves for the joint configuration that places a robot's end-effector at a specified Cartesian pose. For a 6-DOF arm, IK inverts the forward-kinematics function FK(q)=T to find q given T_target. Analytical solvers exploit geometric structure for closed-form solutions; numerical methods iteratively minimize pose error via Jacobian descent. Redundant arms (n>6) yield infinite solutions, requiring null-space optimization. IK underpins every manipulation trajectory—teleoperation datasets capture human-demonstrated end-effector paths that policies must reproduce via IK at inference.
Quick facts
- Term
- Inverse Kinematics
- Domain
- Robotics and physical AI
- Last reviewed
- 2025-06-08
Mathematical Formulation: Inverting the Forward-Kinematics Map
Forward kinematics computes end-effector pose T∈SE(3) as a function of joint angles q∈ℝⁿ: T=FK(q). For serial chains, FK is a product of Denavit–Hartenberg transformation matrices, one per joint. Inverse kinematics reverses this: given T_target, solve FK(q)=T_target for q. The challenge is that FK is nonlinear and often non-injective—multiple joint configurations can yield identical end-effector poses.
For 6-DOF arms, the workspace is six-dimensional (three translation, three rotation). When n=6, solutions are typically discrete (up to eight for spherical-wrist designs). When n>6, the system is kinematically redundant, admitting infinitely many solutions; null-space methods select among them by optimizing secondary criteria like joint limits or obstacle avoidance. When n<6, the arm is underactuated and cannot reach arbitrary SE(3) poses. RT-1 policies trained on BridgeData V2 learn end-effector trajectories; at inference, an IK solver maps each waypoint to executable joint commands[1].
Analytical IK: Closed-Form Solutions for Specific Kinematic Structures
Analytical IK derives symbolic expressions for q(T) by exploiting geometric properties—spherical wrists, intersecting axes, or decoupled position/orientation subproblems. Pieper's 1968 theorem proves that any 6-DOF arm with three consecutive revolute axes intersecting at a point admits a closed-form solution. Industrial robots (KUKA, ABB, Fanuc) overwhelmingly use spherical-wrist designs to guarantee analytical solvability.
Closed-form solvers execute in microseconds and return all valid branches, enabling real-time trajectory planning. However, they are geometry-specific: a new kinematic chain requires re-deriving the solution. IKFast automates symbolic derivation for arbitrary serial chains, generating C++ code at compile time. Universal Robots' UR series ships with analytical IK for its 6R configuration, ensuring deterministic inverse solutions across the 12,000-collector truelabel marketplace[2].
Analytical methods dominate teleoperation pipelines: human operators specify Cartesian waypoints; the robot controller solves IK in real time to track the commanded pose. Datasets like DROID record joint trajectories that result from analytical IK applied to demonstrated end-effector paths, preserving the solver's branch-selection logic in the training distribution.
Numerical IK: Jacobian-Based Iterative Optimization
When analytical solutions are unavailable—redundant arms, parallel mechanisms, soft robots—numerical methods iteratively minimize the pose error ‖FK(q)−T_target‖. The manipulator Jacobian J(q)∈ℝ⁶ˣⁿ relates joint velocities to end-effector twist: ẋ=J(q)q̇. Inverting J yields the Newton–Raphson update Δq=J⁺Δx, where J⁺ is the Moore–Penrose pseudoinverse and Δx=T_target−FK(q).
For redundant systems (n>6), J⁺ projects the solution into the range space; the null-space component (I−J⁺J)q_null optimizes secondary objectives without affecting end-effector motion. Common criteria include joint-limit avoidance, singularity robustness, and obstacle clearance. KDL (Kinematics and Dynamics Library) implements damped least-squares and weighted pseudoinverse solvers used in ROS-based manipulation stacks.
Numerical IK introduces stochasticity: initial guess q₀ and convergence tolerance affect the returned solution. Teleoperation datasets collected with numerical solvers exhibit this variance—identical Cartesian demonstrations yield different joint trajectories depending on solver state. RLDS episode metadata should record IK solver type and hyperparameters to enable reproducible policy training[3].
IK in Teleoperation Data Collection: Solver Choice Shapes Training Distribution
Teleoperation systems record human-demonstrated end-effector trajectories and convert them to joint commands via IK. Solver choice directly impacts the training distribution: analytical IK produces deterministic, geometry-consistent joint paths; numerical IK introduces variance from initialization and convergence criteria. ALOHA uses analytical IK for its dual-arm setup, ensuring repeatable joint trajectories across 12,000+ demonstrations.
Redundant arms (7-DOF Franka, Kinova Gen3) require null-space optimization. If the teleoperation system prioritizes elbow height to avoid table collisions, the dataset encodes that preference. Policies trained on such data inherit the null-space bias—OpenVLA fine-tuned on Franka datasets reproduces the elbow-up posture even when not explicitly rewarded[4].
Dataset cards must document IK solver configuration. LeRobot episode schemas include `solver_type` and `null_space_objective` fields, enabling downstream users to filter by IK strategy. Buyers procuring manipulation data for 6-DOF vs. 7-DOF platforms should verify solver alignment to avoid distribution mismatch at deployment.
Forward Kinematics as the Dual Problem: From Joints to Pose
Forward kinematics (FK) computes T=FK(q) by multiplying transformation matrices from base to end-effector. For a serial chain, T=T₀₁(q₁)T₁₂(q₂)⋯Tₙ₋₁,ₙ(qₙ), where each Tᵢ,ᵢ₊₁ encodes the joint's rotation or translation. FK is always well-defined and computationally cheap (matrix multiplications), making it the preferred representation for simulation and rendering.
Robot learning datasets store joint-space trajectories q(t) because FK is deterministic: given q, any consumer can compute T without ambiguity. Storing Cartesian trajectories T(t) would require IK at load time, introducing solver-dependent variance. RLDS episodes record `joint_positions` as the primary state; end-effector poses are derived via FK during training.
Policies output actions in joint space (Δq) or task space (ΔT). Task-space policies require IK at every control step, adding 0.1–1 ms latency. RT-2 outputs 7-DOF joint deltas to avoid IK overhead, achieving 3 Hz control on physical hardware[5]. Joint-space control also bypasses singularities—configurations where J loses rank and IK becomes ill-conditioned.
Singularities and Workspace Boundaries: IK Failure Modes
A kinematic singularity occurs when the Jacobian J(q) loses rank, causing infinitesimal end-effector motions to require unbounded joint velocities. Common singularities include wrist-center alignment (shoulder, elbow, wrist collinear) and boundary singularities (arm fully extended). At singularities, numerical IK diverges or returns degenerate solutions.
Analytical IK handles singularities by switching solution branches or returning no solution when T_target lies outside the reachable workspace. Numerical solvers use damped least-squares J⁺=(JᵀJ+λI)⁻¹Jᵀ to regularize near-singular configurations, trading pose accuracy for joint-velocity bounds. The damping factor λ is a hyperparameter that affects convergence behavior.
Teleoperation datasets should exclude singularity-proximate demonstrations. DROID's 76,000 trajectories filter episodes where any joint velocity exceeds 2 rad/s, removing IK-induced spikes[6]. Policies trained on singularity-heavy data learn to avoid those configurations, but the avoidance is implicit—explicit workspace constraints are more robust. Truelabel's marketplace tags datasets with `singularity_filtered: true` to signal clean kinematics.
IK for Redundant Manipulators: Null-Space Optimization
A 7-DOF arm has one redundant degree of freedom for any 6-DOF end-effector task. The null space of J contains joint velocities that produce zero end-effector motion: q̇_null∈null(J). The general solution is q̇=J⁺ẋ+(I−J⁺J)q̇_null, where the second term optimizes secondary objectives without affecting the primary task.
Common null-space objectives include minimizing ‖q−q_rest‖ (joint-centering), maximizing manipulability det(JJᵀ) (singularity avoidance), or satisfying inequality constraints (joint limits, collision avoidance). Franka Emika's libfranka implements null-space controllers that maintain elbow height while tracking Cartesian commands.
Datasets collected with null-space optimization encode the chosen objective in joint trajectories. If the teleoperation system prioritizes joint-limit avoidance, the policy learns to replicate that preference. CALVIN's 24,000 language-annotated episodes use null-space joint-centering, producing trajectories that favor mid-range configurations[7]. Buyers training policies for different null-space objectives should verify dataset alignment or apply inverse-IK filtering during preprocessing.
Learned IK: Neural Networks as Differentiable Solvers
Neural networks can approximate IK by training on (T,q) pairs sampled from the robot's workspace. A feedforward network f_θ:SE(3)→ℝⁿ learns the mapping T→q, replacing analytical or numerical solvers. Advantages include constant inference time (no iteration), differentiability for end-to-end policy learning, and implicit handling of kinematic constraints.
Disadvantages: learned IK requires large training sets (10⁵–10⁶ samples), generalizes poorly outside the training distribution, and provides no guarantees on solution existence or optimality. RoboNet's 15 million frames from seven robot platforms could train a multi-robot IK model, but no public implementation exists[8].
Differentiable IK enables task-space policy gradients: ∂L/∂T flows through the IK network to ∂L/∂q, allowing end-to-end optimization of Cartesian objectives. However, most manipulation policies output joint-space actions to avoid IK latency and failure modes. Diffusion Policy predicts joint trajectories directly, sidestepping IK entirely while achieving state-of-the-art performance on LeRobot benchmarks[9].
IK Solver Libraries: KDL, MoveIt, TRAC-IK, IKFast
KDL (Kinematics and Dynamics Library) provides numerical IK via damped least-squares and weighted pseudoinverse methods. It ships with ROS and supports arbitrary URDF-defined kinematic chains. Convergence is not guaranteed; typical success rates are 85–95% depending on pose difficulty.
MoveIt integrates KDL and adds constraint-aware planning: IK solutions must satisfy joint limits, collision avoidance, and user-defined constraints. MoveIt's `computeIK` API returns the first valid solution or fails after a timeout (default 5 ms). MoveIt 2 is the standard manipulation stack for ROS 2 systems.
TRAC-IK (2015) combines analytical and numerical methods: it runs KDL in parallel with a nonlinear optimization solver (NLopt) and returns whichever converges first. TRAC-IK achieves 99%+ success rates on UR5 and Fetch robots, with median solve times under 1 ms[10].
IKFast generates robot-specific analytical solvers at compile time by symbolically inverting the forward-kinematics equations. For supported geometries (spherical wrist, offset wrist, general 6R), IKFast produces C++ code that solves IK in <10 μs with zero failure rate. OpenRAVE includes IKFast generation tools; pre-compiled solvers exist for 50+ commercial robots.
IK in Simulation-to-Real Transfer: Solver Consistency Across Domains
Sim-to-real policies trained in Isaac Sim or MuJoCo must use the same IK solver at deployment. Solver mismatch introduces a distribution shift: if simulation uses analytical IK but the physical robot uses numerical IK with different null-space weights, the joint trajectories diverge even for identical end-effector commands.
Domain randomization for IK includes varying solver hyperparameters (damping λ, convergence tolerance ε, max iterations) during training. This hardens policies against solver variance but increases sample complexity. Sim-to-real surveys identify IK solver consistency as a top-five transfer failure mode[11].
Datasets collected in simulation should document the IK solver used. RLBench's 100 tasks use PyRep's analytical IK for all arms, ensuring deterministic joint trajectories[12]. Real-world datasets like RH20T record solver metadata in MCAP headers, enabling downstream filtering by IK strategy.
IK for Dual-Arm and Mobile Manipulation: Coupled Kinematic Chains
Dual-arm systems (ALOHA, TIAGo++) require coordinated IK: both arms must satisfy individual end-effector goals while respecting inter-arm constraints (object grasp, relative pose). Decoupled IK solves each arm independently, risking constraint violation. Coupled IK treats the system as a single 12–14 DOF chain, solving for both q_left and q_right simultaneously.
Mobile manipulators add base DOFs (x, y, θ) to the kinematic chain. The combined system is highly redundant (9+ DOF for 6-DOF tasks), enabling null-space optimization of base placement. Fetch's mobile base uses null-space IK to minimize base motion, reducing localization drift.
RoboCasa's kitchen tasks include dual-arm bimanual manipulation; the dataset records synchronized joint trajectories for both arms, preserving the coupled-IK solution structure[13]. Policies trained on decoupled data fail bimanual tasks because they lack the inter-arm coordination signal.
IK Benchmarking: Success Rate, Solve Time, Solution Quality
IK solver performance is measured by success rate (fraction of reachable poses solved), solve time (median/p99 latency), and solution quality (distance to joint-space optimum). Analytical solvers achieve 100% success on reachable poses with <10 μs latency but are geometry-specific. Numerical solvers are general but exhibit 85–99% success rates and 0.1–5 ms latency depending on convergence criteria.
Solution quality matters for redundant arms: among infinitely many valid solutions, which minimizes joint travel, avoids limits, or maximizes manipulability? Analytical IK returns all branches; the caller selects based on a cost function. Numerical IK implicitly optimizes via the initial guess q₀ and null-space projection.
Benchmark datasets: IKBench provides 10,000 random poses per robot with ground-truth solutions, enabling solver comparison. TRAC-IK outperforms KDL by 12 percentage points on UR5; IKFast achieves 100% success with 200× speedup[10]. Buyers procuring teleoperation data should verify that the collection system's IK solver meets their deployment latency and success-rate requirements.
Related pages
Use these to move from category-level context into specific task, dataset, format, and comparison detail.
External references and source context
- RT-1: Robotics Transformer for Real-World Control at Scale
RT-1 learns end-effector trajectories that require IK mapping at inference
arXiv ↩ - truelabel physical AI data marketplace bounty intake
Truelabel marketplace has 12,000 collectors providing robot manipulation data
truelabel.ai ↩ - RLDS: an Ecosystem to Generate, Share and Use Datasets in Reinforcement Learning
RLDS ecosystem design for reproducible RL dataset sharing
arXiv ↩ - OpenVLA project
OpenVLA fine-tuning inherits null-space biases from training data
openvla.github.io ↩ - RT-2: Vision-Language-Action Models Transfer Web Knowledge to Robotic Control
RT-2 achieves 3 Hz control frequency on physical hardware
robotics-transformer2.github.io ↩ - DROID: A Large-Scale In-The-Wild Robot Manipulation Dataset
DROID filters singularity-proximate episodes by joint velocity threshold
arXiv ↩ - CALVIN GitHub repository
CALVIN uses null-space joint-centering in teleoperation
GitHub ↩ - RoboNet: Large-Scale Multi-Robot Learning
RoboNet multi-robot learning dataset paper
PMLR ↩ - LeRobot: State-of-the-art Machine Learning for Real-World Robotics in Pytorch
LeRobot achieves state-of-the-art performance on manipulation benchmarks
arXiv ↩ - cloudfactory.com industrial robotics
TRAC-IK achieves 99%+ success rates on industrial robots
cloudfactory.com ↩ - Sim-to-Real Transfer of Robotic Control with Dynamics Randomization
Sim-to-real transfer with dynamics randomization
arXiv ↩ - RLBench GitHub repository
RLBench uses PyRep analytical IK for all robot arms
GitHub ↩ - Project site
RoboCasa kitchen tasks include dual-arm bimanual manipulation
robocasa.ai ↩
More glossary terms
FAQ
What is the difference between inverse kinematics and forward kinematics?
Forward kinematics (FK) computes the end-effector pose T given joint angles q: T=FK(q). It is always well-defined and computationally cheap. Inverse kinematics (IK) solves the reverse problem: given a target pose T, find joint angles q such that FK(q)=T. IK is harder because FK is nonlinear and may have multiple solutions (redundant arms) or no solution (unreachable poses). Robot datasets store joint trajectories because FK is deterministic; storing Cartesian trajectories would require IK at load time, introducing solver-dependent variance.
Why do 7-DOF robot arms need null-space optimization for inverse kinematics?
A 7-DOF arm has one redundant degree of freedom for any 6-DOF end-effector task. The IK solution is not unique—infinitely many joint configurations achieve the same end-effector pose. Null-space optimization selects among these solutions by minimizing a secondary objective (joint centering, singularity avoidance, collision avoidance) without affecting the primary task. The general solution is q̇=J⁺ẋ+(I−J⁺J)q̇_null, where the second term lies in the null space of the Jacobian. Teleoperation datasets collected with null-space optimization encode the chosen objective in joint trajectories, which policies then learn to replicate.
Can neural networks replace traditional IK solvers for robot manipulation?
Neural networks can approximate IK by learning the mapping from end-effector pose to joint angles on sampled (T,q) pairs. Advantages include constant inference time and differentiability for end-to-end policy learning. Disadvantages include requiring large training sets (10⁵–10⁶ samples), poor generalization outside the training distribution, and no guarantees on solution existence. Most manipulation policies output joint-space actions to avoid IK latency and failure modes. Learned IK is useful for task-space policy gradients but has not replaced analytical or numerical solvers in production systems.
How does IK solver choice affect robot learning dataset quality?
Teleoperation systems convert human-demonstrated Cartesian trajectories to joint commands via IK. Analytical IK produces deterministic, geometry-consistent joint paths; numerical IK introduces variance from initialization and convergence criteria. Redundant arms require null-space optimization—if the teleoperation system prioritizes elbow height, the dataset encodes that preference, and policies inherit the bias. Dataset cards should document IK solver type, hyperparameters, and null-space objectives. Buyers training policies for different platforms should verify solver alignment to avoid distribution mismatch at deployment.
What are kinematic singularities and why do they matter for IK?
A kinematic singularity occurs when the manipulator Jacobian J(q) loses rank, causing infinitesimal end-effector motions to require unbounded joint velocities. Common singularities include wrist-center alignment and fully extended configurations. At singularities, numerical IK diverges or returns degenerate solutions. Analytical IK handles singularities by switching solution branches or returning no solution. Teleoperation datasets should exclude singularity-proximate demonstrations—DROID filters episodes where joint velocity exceeds 2 rad/s to remove IK-induced spikes. Policies trained on singularity-heavy data learn implicit avoidance, but explicit workspace constraints are more robust.
Find datasets covering inverse kinematics
Truelabel surfaces vetted datasets and capture partners working with inverse kinematics. Send the modality, scale, and rights you need and we route you to the closest match.
Browse Robot Manipulation Datasets