Learning Global Direct Inverse Kinematics

David DeMers, Kenneth Kreutz-DelgadoNeurIPS 1991

Introduction

In robotics, Forward Kinematics (FK) is a straightforward problem: given the angles of all the joints (the configuration space), you can easily calculate the position of the end-effector (the task space). However, Inverse Kinematics (IK)—calculating the required joint angles to reach a specific target point—is notoriously "ill-posed."

The core challenge is that IK is often a many-to-one mapping. For a single point in space, there might be several valid ways for a robot to position its arm (e.g., an "elbow up" versus an "elbow down" configuration). Traditional numerical methods for solving IK are iterative and slow, making them poorly suited for real-time control. While neural networks offer a fast alternative, they struggle with many-to-one mappings. If a network is trained on multiple valid solutions for the same input, it tends to learn the average of those solutions. Unfortunately, in robotics, the average of two valid poses is usually an invalid configuration that fails to reach the target.

To overcome this, this paper introduces a "bootstrap" method to solve the IK problem by partitioning a robot's configuration space into distinct regions where the mapping is strictly one-to-one.

Methodology

The authors propose a multi-step learning strategy to "regularize" the inverse kinematics problem, transforming a complex topological challenge into a standard supervised learning task.

  1. Sampling and Clustering: The process begins by collecting a large dataset of joint angles ($\theta$) and their resulting task space positions ($x$). For a specific target point in the workspace, the authors isolate all sampled joint configurations that end up near that point. These configurations naturally form clusters in the configuration space, representing different "branches" of the solution.
  2. Bootstrapping Labels: Using a "sweep" technique, these cluster labels are propagated to neighboring points in the workspace. This allows the system to label a large portion of the dataset with a "branch ID" without relying on an analytical model.
  3. Branch Classification: A feedforward neural network is trained to act as a classifier. Given a set of joint angles, this network predicts which solution branch the robot is currently operating in.
  4. Direct Inverse Learning: Once the data is partitioned by branch, the mapping within each branch becomes one-to-one (invertible). Separate neural networks are then trained for each branch to learn the direct mapping from task space coordinates back to joint angles.

The study validates this approach using a simulated wristless Puma 560 manipulator (a 3-degree-of-freedom robot arm). The training set consisted of 40,000 samples of $(\theta, x)$ pairs, with a clustering subset of 3,062 points. The system was evaluated on a test set of 50,000 previously unseen pairs for the classifier and 4,000 points for the inverse mapping.

Key Insights

Topological Partitioning

The configuration space is naturally divided by "critical surfaces" (singularities) where the robot's Jacobian matrix loses rank. These surfaces act as the natural boundaries between the different ways the robot can reach a point (the solution branches).

Theoretical critical surfaces dividing the configuration space.

The Classifier as a Singularity Detector

A fascinating insight from the paper is that the classifier's confidence (its activation level) drops significantly when the robot is near these critical surfaces.

Scatter plot of configurations identified as near-singularity by the classifier.

By setting a confidence threshold (e.g., 0.8 activation), the system can automatically identify when the robot is "near a singularity," a state where physical control becomes difficult. This allows the classifier to double as a robust singularity detector.

Results and Limitations

The proposed method yielded strong empirical results:

  • Classification Accuracy: The branch classifier achieved over 98% accuracy on unseen data.
  • Handling Singularities: When points near critical surfaces (identified by low classifier activation) were moved to a separate "near-singularity" class, the remaining points were classified with a perfect 100% accuracy.
  • Positioning Accuracy: For the inverse mapping, the average positioning error was 5.2 cm over a workspace with a 92 cm radius. While the networks were not strictly optimized for precision in this proof-of-concept, the authors suggest that errors of less than 1% are easily achievable with further tuning and more sophisticated architectures.

Limitations and Future Work: The primary limitation of this approach is the "curse of dimensionality." The authors acknowledge that their sampling method scales exponentially. While highly effective for 3-DOF or 6-DOF systems (especially those decomposable into smaller subsystems), high-dimensional redundant robots (like a 7-DOF human-like arm) might require an intractable amount of data. Furthermore, while preliminary work on extending this to redundant robots is mentioned, redundancy resolution remains outside the primary scope of this specific study.

Summary updated

BibTeX
@inproceedings{demers1991learning,
  author = {David DeMers and Kenneth Kreutz-Delgado},
  title = {{Learning Global Direct Inverse Kinematics}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {1991},
}
Figure