About Least Squares Calibration

Calibration features in DELMIA products allow you to identify the sources of position inaccuracy and modify the simulation world to match the real world.

This correction allows a generic simulation developed in DELMIA products that you can download to different workcells that are nominally identical but differ slightly in the locations of their parts and devices, their tool offsets, and their robot signatures.

Click Play to watch the video:

The least squares mathematical fitting algorithm is designed for high accuracy convergence in the presence of measurement data noise, but assumes a reasonably close starting position (especially orientation) as the guess you can use by the method. If there is a large mismatch in the positions and orientations before fitting, the algorithm will automatically precalculate a good starting guess based on a 3-point method. This is a geometric approach such that the positions of the second point of each set are coincident. The first and second point of each set is collinear, and the third point moves into the plane defined by the second set of points.

Note: The 3-point precalculation is not applied if you manually change any of the xyzwpr values. It is expected that you will manually preposition the part to be calibrated into the correct starting position and orientation.

Least squares calibration is intended to adjust the six degrees-of-freedom (DOF) locations of a device in a DELMIA simulation based on measurements from the workcell. The device is assumed to be a nonkinematic part such as a fixture, table, or workpiece. The purpose of calibration is to locate the part in the simulation so that its parameters [X, Y, Z, Yaw, Pitch, Roll] with respect to the robot matches the real workcell. After calibration, the robot program developed in the simulation will contain the corrected robot locations that you may download to the actual robot workcell.

The least squares calibration method adjusts the position of a resource based on the measurement of multiple points. The points are input as tag points in two tag groups: one tag group representing the pristine CAD data locations, and the other tag group representing the uploaded experimental robot tool locations. The calibration also requires the following information:

  • Translate X, Y, Z (Free/Fixed): specifies the directions in which you can translate the resource during adjustment.
  • Rotate X, Y, Z (Free/Fixed): specifies the directions in which you can rotate the resource during adjustment.
  • Estimated measurement noise: an estimate of the uncertainty of the positional measurements during the calibration experiment.
  • Compute Tag Order: When checked, the command automatically reorders the tags so that the tags in the nominal and measured tag groups match. Without this checked, you must ensure that the tags in the two tag groups are already in the proper order. Least Squares Calibration adjusts the position of a product or resource by moving 1 set of tags to match up with the best mathematical fit with another set of tags. The same amount moves the product. The number of tags must be the same in the nominal and measured tag groups.

Unless the resource is known to align with an axis or on a plane, set the parameters [X, Y, Z, Yaw, Pitch, Roll] to Free during calibration. The measurement noise need only be an order of magnitude estimate, for example 0.1 mm or 1.0 mm.

Based on the selections, move the resource in an attempt to get the first set of points to match up with the second set. The algorithm works by minimizing the mean square positional error between the corresponding points while maintaining the constraints of the Translate X, Y, Z and Rotate X, Y, Z selection.

An analysis of the results displays upon convergence:

  • Number of iterations: the number of iterations required by the numerical identification method.
  • Number of fitting points: the number of points used for the least squares fitting procedure.
  • Root mean square fitting error: the root mean square fitting error on the points after adjusting the resource to the best fit possible.
  • Max Uncertainties: the maximum of the uncertainties for the fit on the parameters you can identify. Large uncertainty values are an indication that there are flaws in the experimental observation strategy even if the RMS fitting error is small.