Back to portfolio
Oct 2024 — PresentIndependent Research

Generative Inverse-Kinematics Solver for Redundant Manipulators

Learn the IK solution distribution of an 8-DOF hybrid-joint redundant manipulator, then select, plan, and track executable motion.

A single pose query returns a family of joint configurations. Constraint filtering and local refinement produce planning-ready solutions; CBF tracking keeps the motion collision-aware.

Inverse KinematicsNormalizing FlowsTrajectory PlanningCBF

Overview

For an 8-DOF hybrid-joint redundant manipulator, a forward kinematic model is built and a conditional normalizing flow (CNF) learns the joint-configuration distribution pθ(q∣xtarget)p_\theta(q \mid x_{\mathrm{target}}) conditioned on the end-effector pose. A single query yields multiple candidate inverse-kinematics (IK) solutions; after joint-limit, collision, and continuity filtering plus local pose refinement, the selected configurations feed Cartesian- and joint-space trajectory planning, and are tracked under control barrier functions (CBFs) in cluttered scenes.

Problem

A redundant manipulator has more joint degrees of freedom than the task-space dimension. For a 6-D end-effector pose xtarget∈SE(3)x_{\mathrm{target}} \in SE(3), inverse kinematics of an 8-DOF system typically defines a positive-dimensional solution manifold rather than an isolated joint vector. Many configurations qq can realize the same pose; they are not equivalent under joint limits, clearance to obstacles, or continuity with the previous configuration.

Iterative numerical IK (for example damped least squares on the Jacobian) usually converges to one of those solutions and is sensitive to initialization. If that solution violates limits, collides, or jumps relative to the previous posture, the query fails or returns a configuration that cannot be executed.

The platform here is an 8-DOF hybrid-joint redundant manipulator, with both revolute and prismatic joints. Hybrid joints complicate the forward map and the reachable workspace, and they make closed-form IK difficult to apply directly. Three questions have to be answered together:

  1. Does a feasible inverse solution exist for the commanded pose?
  2. If so, which candidate configurations in the solution family can planning use?
  3. After a configuration is chosen, how can a smooth, continuous, collision-aware trajectory be generated and tracked?

Configuration and joint definition of the 8-DOF hybrid-joint redundant manipulator. Left: full model with joints q_1–q_8. Right: revolute / prismatic joint schematic and the base frame.

Method

The pipeline has four stages: generative IK, constrained selection and refinement, trajectory planning, and CBF tracking. The generative model proposes a solution family; deterministic constraints and the controller turn those samples into executable motion.

1. Conditional normalizing flow for IK

Let q∈R8q \in \mathbb{R}^8 be the joint configuration and c=xtargetc = x_{\mathrm{target}} the conditioning pose. A CNF maps the joint space through invertible coupling and permutation layers onto a Gaussian latent space z∼N(0,I)z \sim \mathcal{N}(0,I):

q∼pθ(q∣xtarget)q \sim p_\theta(q \mid x_{\mathrm{target}})
  • Forward map (training): transform qq to zz and fit the data with a negative log-likelihood (NLL) loss.
  • Inverse map (inference): sample zz and decode it to joint configurations, so one IK query returns multiple candidates.

Each coupling layer applies an affine transform yd+1:D=qd+1:D⊙exp⁡(s)+ty_{d+1:D} = q_{d+1:D} \odot \exp(s) + t, where the scale ss and translation tt come from an MLP on the remaining coordinates and the condition cc, preserving invertibility while introducing nonlinearity.

CNF architecture: joint space q \in \mathbb{R}^8 is mapped to latent space z by coupling and permutation layers. The forward path is used for NLL training; the inverse path is the IK solver.

Training pairs are generated from forward kinematics: sample qq inside joint limits, compute the corresponding pose, and include workspace constraints so the network learns a conditional distribution of feasible configurations, not a single-point regression.

2. Constraint filtering and local refinement

CNF samples are candidates; they do not automatically satisfy every engineering constraint. Selection rejects or ranks them by:

  • joint limits on both revolute and prismatic joints;
  • collision-free geometry against workspace obstacles;
  • motion continuity, i.e. a small joint-space distance to the previous configuration, to avoid posture jumps.

Selected solutions are then refined by local optimization to reduce the forward-kinematics residual to a pose error that planning can use. The generative model covers the solution family; numerical refinement recovers accuracy.

3. Trajectory planning

Planning is carried out in Cartesian and joint space. Inverse solutions after filtering become path nodes; a smooth, continuous, collision-aware trajectory is generated in a cluttered field so the manipulator can reach the target pose.

Trajectory planning among columnar obstacles. The red curve is the planned path to the target pose.

4. CBF-based safe tracking

Once a reference trajectory is available, the tracking layer constrains the control input with a control barrier function so that the safety function h(x)h(x) remains forward invariant: when h(x)≥0h(x) \ge 0, the rate h˙\dot h is limited and the state cannot cross the safety boundary. In the demonstration, CBF is enabled (CBF=ON) and the controller is in tracking mode (state=TRACK).

CBF does not replace IK; it supplies a real-time collision-avoidance constraint during tracking.

CBF tracking. The overlay shows CBF=ON and state=TRACK as the manipulator follows the reference path among obstacles.

Role

Independent work covering hybrid-joint kinematic modeling, CNF training and inference, constrained selection and refinement, trajectory planning in cluttered scenes, and the CBF tracking demonstration.

Evidence on this page

  • Configuration and joint definition of the 8-DOF hybrid-joint redundant manipulator
  • CNF coupling / permutation structure and the forward-train / inverse-IK path
  • Screen recording of obstacle-field planning
  • Screen recording of CBF tracking

Quantitative timing, pose-error, and comparison results are still being compiled. This page leads with the model, the pipeline, and motion evidence that can be inspected directly.

Skills

Python · Forward / inverse kinematics · Conditional normalizing flows · Redundant manipulators · Trajectory planning · Control barrier functions · Constrained optimization