🤖 Forward Kinematics (FK) Solver & Visualizer

Forward Kinematics — Comprehensive Robotics Analysis Tool
Under the Guidance of Dr. S. S. Rao, Professor, Department of Mechanical Engineering, K L University
⚙️ Robot Configuration
📌 Quick Examples
📤 Export
📝 Problem Input
📊 Interactive Robot Visualizer

Manipulate joint angles using sliders to see real-time changes in robot pose and coordinate frames.

🌍 Workspace Plot

Reachable workspace of the robot end-effector based on current configuration.

📚 D-H Convention Reference

1. Denavit-Hartenberg Parameters

The D-H convention uses four parameters to describe the relationship between consecutive coordinate frames attached to robot links:

ParameterSymbolDescriptionVariable For
Link LengthaiDistance along xi from zi to zi+1Geometric constant
Link TwistαiAngle about xi from zi to zi+1Geometric constant
Link OffsetdiDistance along zi-1 from xi-1 to xiPrismatic joint variable
Joint AngleθiAngle about zi-1 from xi-1 to xiRevolute joint variable

2. Standard D-H Transformation Matrix

Equation 1: Individual Link Transformation (Standard D-H)
i-1Ti = Rz(θi) · Tz(di) · Tx(ai) · Rx(αi)
General D-H Matrix:
cos(θ)-sin(θ)cos(α)sin(θ)sin(α)a·cos(θ)
sin(θ)cos(θ)cos(α)-cos(θ)sin(α)a·sin(θ)
0sin(α)cos(α)d
0001

3. Frame Assignment Rules (Denavit-Hartenberg)

  1. Identify all joint axes z0, z1, ..., zn-1
  2. Establish base frame {0} at joint 1 with z0 along joint 1 axis
  3. For each joint i, assign zi along joint axis i+1
  4. Locate origin Oi at intersection of zi and common normal between zi-1 and zi
  5. xi along common normal from zi-1 to zi (pointing away from zi-1)
  6. yi completes right-hand coordinate system: yi = zi × xi
  7. Attach end-effector frame {n} to the last link

4. Joint Types

Revolute Joint R

  • θi is the joint variable
  • di is constant (fixed offset)
  • Rotation about z-axis
  • Typical range: ±180°

Prismatic Joint P

  • di is the joint variable
  • θi is constant (fixed angle)
  • Translation along z-axis
  • Range: physical stroke limits

5. Forward Kinematics

Equation 2: Overall Transformation (Product of Matrices)
0Tn = 0T1 · 1T2 · … · n-1Tn
Equation 3: End-Effector Pose Extraction
0Tn = [R3×3 | p3×1; 0 0 0 1]    where R = rotation matrix, p = position vector

6. Inverse Kinematics Overview

Given desired end-effector pose T, find joint variables q = [q1, ..., qn]:

Equation 4: Inverse Kinematics Problem
Given: 0Tn(q) = Tdesired  →  Find: q = f-1(Tdesired)
  • Geometric method: Use geometry of robot structure (preferred for simple robots)
  • Algebraic method: Solve system of equations from matrix equality
  • Numerical method: Iterative Jacobian-based methods (for complex robots)
⚖️ Robot Configuration Comparison

Comparison of Robot Configurations

FeatureCartesian (PPP)Cylindrical (RPP)Spherical (RRP)SCARA (RRPR)Articulated (RRR)
DOF33343–6
WorkspaceRectangular boxCylindricalSpherical shellCylindrical (selective)Irregular sphere
RigidityVery HighHighMediumHigh (horizontal)Medium
ReachLimitedModerateGoodGood (planar)Excellent
AccuracyHighestHighModerateHighModerate
ApplicationsCNC, 3D printingAssembly, weldingSpray paintingPCB assemblyGeneral purpose
D-H ComplexitySimpleSimpleModerateModerateComplex
IK SolutionTrivialSimpleClosed-formClosed-formNumerical/Closed
SingularitiesNoneAt originAt boundariesElbowMultiple

Standard vs Modified D-H Convention

AspectStandard D-H (Craig)Modified D-H (Denavit)
Frame attachmentDistal (at joint i+1)Proximal (at joint i)
Parameter orderθ, d, a, αα, a, θ, d
Matrix formRz·Tz·Tx·RxRx·Tx·Rz·Tz
UsageCraig, Spong textbooksSome industrial robots
Singularity handlingStandardBetter for some configs
Base frameCoincides with frame 1Separate base frame

D-H Parameters for Common Robots

RobotJoint SequenceTypical a valuesTypical α valuesNotes
2R PlanarR-Ra1, a2 > 00°, 0°All motion in XY plane
SCARAR-R-P-Ra1, a2, 0, 00°, 0°, 0°, 0°Selective compliance
Stanford ArmR-R-P-R-R-RAll zero0°, -90°, 0°, 90°, -90°, 90°Spherical wrist
PUMA 560R-R-R-R-R-R0, a2, a3, 0, 0, 090°, 0°, -90°, 90°, -90°, 0°Classic 6-DOF
CartesianP-P-P0, 0, 00°, -90°, 90°Orthogonal axes
⚠️ D-H Table Error Checker

Enter your D-H parameter table below. The system will validate entries and highlight errors with correction suggestions.

🔄 Reverse D-H Problem Solver

Given a transformation matrix or end-effector pose, extract D-H parameters and identify robot configuration.

Input: 4×4 Homogeneous Transformation Matrix

Enter the matrix elements row by row (T[row][col]):

🏭 Application-Oriented Problems

🔧 Industrial Welding

6-DOF articulated robot for arc welding. PUMA-type with wrist assembly.

📦 Palletizing Robot

4-DOF robot for pick-and-place palletizing in manufacturing.

💻 PCB Assembly

SCARA robot for high-speed PCB component placement.

🏥 Surgical Robot

7-DOF redundant robot for minimally invasive surgery.

🤝 Collaborative Robot

UR5-type 6-DOF cobot for human-robot collaboration.

🎨 Spray Painting

Spherical robot for automotive spray painting.