Skip to Content
PagesLbLeast squares calibration

Least squares calibration

Least squares calibration

Calibration

Least squares calibration is typically used to correctly position a (kinematic) resource, for example a workpiece positioner, in the virtual workcell. The calibration is based upon an exact mathematical method of having a number of static points on the component that can be measured on the real part and which corresponding location can be selected on the virtual part. The method will bring the sets of points into congruence and as such will move the component along with that.

The calibration uses the linear least square method which is based upon the algorithm that is minimizing the sums of the squares of deviation between the measured and expected values.

Measured points

The input for the calibration is a set of measured coordinates, for example the real end positions of the workpiece positioner in the real workcell. These coordinates usually are imported from an external file, but manual entering or modifying these values is possible.

The input file with the measured points is a simple text file that is read line by line. It has an optional first line with the unit indicator, followed by three lines of coordinates. Coordinate lines have to contain exactly three coordinate values, separated by semicolon. Each line is interpreted as the X, Y and Z coordinates of a single point. By default these points are imported in the 3D space world coordinate system, but another reference coordinate system can be defined in the dashboard. An example of such import file is shown below.

The unit of the coordinates is specified in the first line of the file. Any unit, known by the software can be applied here. It can be written in full name or as the standard abbreviation of that unit. When however the unit line is missing in the file, the import will read the coordinates with the system default unit.

The decimal sign of the coordinate is language and region settings independent. It always has to be a point ”.”.

Although the unit in the import file has been specified, the dashboard will display the coordinates according the current system units. The values then are converted when needed.

Calibration result option

The result of the calibration is a transformation of the component. The way it will be applied can be defined in the result options.

Initial situation.
Create a new child adapterIn the root of the calibrated component a new mechanical child adapter will be created; CalibPlug. The component itself is not transformed. The new adapter can be used to reposition the component according the calibration coordinates.
For the following result options, the component has to be attached to another one; for example the workpiece positioner mounted on the floor. The child adapter of the to be calibrated component has been connected to the parent adapter of the other component.
Define the transformationThe component will be moved into the calibrated position, but the adapters are not changed. There will be an offset between the two connected components. A connection line between the two adapters is displayed.
Move the child adapterThe component is moved to the calibrated position. Its child adapter is moved along with the transformation. This generates a modification of the component definition. It therefore needs to be saved again.
Move the parent adapterThe component is moved to the calibrated. The parent adapter of the connected component is moved along with the transformation. This generates a modification of that connected component definition. It therefore needs to be saved again.

Calibration command

Was this page helpful?