Class DHParameter

java.lang.Object
com.marginallyclever.ro3.node.Node
com.marginallyclever.ro3.node.nodes.DHParameter

public class DHParameter extends Node

DHParameter is a node that translates a sibling Pose to and from Denavit-Hartenberg parameters for a joint. It describes the relative pose of the next joint.

The DH parameters can be derived by finding the common normals between two consecutive Z axes. The new X axis points along the common normal. The intersection point of the two normals may be outside the physical structure being described.

This class provides several functionalities:

  • It can convert a Pose to Denavit-Hartenberg parameters.
  • It can convert Denavit-Hartenberg parameters to a Pose.
  • It can adjust the local transformations of all MeshInstance siblings.
  • It can serialize and deserialize itself to and from JSON format.
This class also provides several properties:
  • d: the distance along the previous z to the common normal.
  • r: the length of the common normal. Assuming a revolute joint, this is the radius about the previous z.
  • alpha: the angle about the common normal to align the previous z to the new z.
  • theta: the angle about the previous z for the common normal.