Kinetica Forward Kinematics
DH table or URDF + joint values → TCP pose, every joint frame, Jacobian and manipulability.
How it works
Computes the tool-centre-point pose of a serial robot from its Denavit–Hartenberg table (standard or modified), a URDF subset or a library robot and the joint values. Returns the 4×4 transform, position and roll/pitch/yaw, quaternion, all intermediate frames, the geometric Jacobian, manipulability and singularity status, and static payload torques.
- Each joint compiles to Fᵢ = Fᵢ₋₁ · Preᵢ · Motionᵢ(qᵢ) · Postᵢ. Standard DH: Rz(θ+q)·Tz(d)·Tx(a)·Rx(α); modified DH (Craig): Rx(α)·Tx(a)·Rz(θ+q)·Tz(d); URDF: origin(xyz, rpy) · rotation about / translation along the joint axis.
- TCP = base mount · F_n · tool offset. Orientation is reported as fixed-axis roll-pitch-yaw (R = Rz(yaw)·Ry(pitch)·Rx(roll), the URDF convention) and as a unit quaternion [w, x, y, z].
- Geometric Jacobian at the TCP: revolute column [zᵢ × (p − oᵢ); zᵢ], prismatic column [zᵢ; 0]. Rows vx, vy, vz in mm per rad (or per mm), wx, wy, wz in rad per unit.
- Manipulability: Yoshikawa √det(J·Jᵀ) of the Jacobian with translation rows divided by a characteristic length (the arm’s skeleton length), and σmin/σmax as a 0–1 singularity indicator (< 0.001 singular, < 0.03 near-singular).
- Payload loads: static holding torque τ = −Jᵀ(cog)·m·g for the tool mass at its centre of gravity (g = 9.80665 m/s², gravity along −z world).
- Verified against hand-computed planar cases, the PUMA 560 qz pose (452.1, −150.05, 1103.63) mm of the Robotics Toolbox model and the UR5 zero pose (−817.25, −191.45, −5.491) mm.
Kinematic simulation for planning and teaching. It is not a certified safety function: verify every program on the real controller with reduced speed and the cell safety system active.
Sources
- Denavit–Hartenberg parameters (overview of standard and modified conventions) (Wikipedia)
- Robotics Toolbox for Python — Puma560 DH model (reference poses qz, qr, qn) (Peter Corke)
- DH parameters for calculations of kinematics and dynamics (UR robots) (Universal Robots)
- Robotics: Modelling, Planning and Control (geometric Jacobian, manipulability) (Siciliano, Sciavicco, Villani, Oriolo — Springer 2009)
- URDF XML specification: joint and link elements (ROS Wiki)
Part of Kinetica
-
Kinetica Robot motion studio
Simulate robot arms: kinematics, trajectories, collisions, program export.
Related tools
- Kinetica Inverse Kinematics – Target TCP pose → all joint solutions found, residuals, joint limits and reachability.
- Kinetica Trajectory Planner – Waypoints (PTP, LIN, CIRC) + limits → timed joint samples, cycle time and peak velocities.
- Kinetica Collision Check – Robot pose + obstacles → collisions, minimum clearance and self-collision between links.
How to use Kinetica Forward Kinematics
Compute a robot's TCP position and orientation from its joint angles, with every joint frame, the Jacobian and a singularity check, for library robots, DH tables or URDF.
What it is for
Forward kinematics answers the simplest robot question: with these joint angles, where is the tool? You need it to check a taught point, verify a DH table from a datasheet, debug a URDF, or teach the maths. This tool takes a library robot (a generic 6-axis industrial arm, a UR5-style cobot, the PUMA 560, a SCARA, a gantry, a planar 2-link arm), a custom standard or modified DH table, a URDF subset, or Kinetica robot JSON. You give it joint values and an optional tool offset.
It returns the tool-centre-point (TCP) pose as position plus roll/pitch/yaw and a quaternion, the full 4 × 4 transform, every intermediate joint frame, the geometric Jacobian, a manipulability and singularity rating, and static holding torques for a tool payload. It's a kinematic model for planning and teaching, not a safety function.
Worked example
A 2-link planar arm from a DH table, l1 = 300 mm and l2 = 250 mm (two revolute rows with a = 300 and a = 250, everything else 0), joints 30, 60:
TCP at x 259.81, y 400, z 0 mm with roll 0°, pitch 0°, yaw 90° (ok).
You can check it by hand: x = 300·cos 30° + 250·cos 90° = 259.81, and y = 300·sin 30° + 250·sin 90° = 150 + 250 = 400. The yaw is simply 30° + 60°. Manipulability σmin/σmax is 0.2365, comfortably away from a singularity.
Stretch the same arm straight (30, 0) and the status flips to singular (σmin/σmax = 0). The tool warns that small TCP motions may need very large joint speeds. A straight arm can't move its tip along its own length.
The PUMA 560 at all zeros gives x 452.1, y −150.05, z 1103.63 mm. That's the published qz pose of the Robotics Toolbox model, so it's a handy sanity check for the conventions. The generic KX6-1400 at its home pose [0, 0, 0, 0, 90, 0] puts the flange at (810, 0, 1075) mm pointing straight down. Set A5 to 0 as well and the wrist goes singular, because axes 4 and 6 line up.
How to read the result
- TCP pose: x, y, z in mm in the world frame. Roll, pitch and yaw are fixed-axis angles (R = Rz(yaw)·Ry(pitch)·Rx(roll), the URDF convention). The quaternion is [w, x, y, z].
- Homogeneous transform: the 3 × 3 rotation and the position column, ready for your own code.
- Frames in world coordinates: where each joint frame sits. The first frame in the wrong place points to a wrong DH row.
- Geometric Jacobian: how fast the TCP moves (mm per rad) and turns per unit of joint motion.
- Manipulability / status: σmin/σmax from 0 to 1. Below 0.03 counts as near-singular, below 0.001 as singular.
Tips and common mistakes
- Pick the right DH convention. Standard (Rz θ · Tz d · Tx a · Rx α) and modified/Craig tables look alike but give different robots.
- Angles are in degrees and lengths in mm, including the tool offset (x, y, z, roll, pitch, yaw in the flange frame).
- Leave the joint values empty to get the robot's home pose, which isn't always all zeros.
- Roll/pitch/yaw can jump (−180° vs 180°) for nearly identical orientations. Compare quaternions or matrices if you need to test equality.
FAQ
What's the difference between forward and inverse kinematics?
Forward kinematics turns joint angles into a TCP pose, and there's always exactly one answer. Inverse kinematics goes the other way and can have several solutions or none. Use Kinetica Inverse Kinematics for that.
Why does my robot show "singular"?
Two or more joint axes line up (a stretched arm, or a wrist with A5 = 0), so the arm loses a direction of motion. Move the joints a few degrees away.
Can I use my robot's URDF?
Yes, a subset: links with box, cylinder or sphere geometry and revolute, continuous, prismatic or fixed joints. Meshes are ignored.
How accurate is it?
Exact for the given model, and checked against PUMA 560 and UR5 reference poses. Real robots deviate by their calibration.
Guide last updated:
For scripts and AI agents
- JSON API:
POST https://kineticaforwardkinematics.usefulweb.site/api/v1/calculate(same calculation as this page) - Interface description: OpenAPI 3.1 · AI guide: llms.txt
- MCP server (Streamable HTTP):
https://kineticaforwardkinematics.usefulweb.site/mcp· tool namekinetica_forward_kinematics
Example request
curl -s -X POST https://kineticaforwardkinematics.usefulweb.site/api/v1/calculate \
-H 'content-type: application/json' \
-d '{"robot":"puma560","joints":"0, 0, 0, 0, 0, 0"}'