Readjusting the camera pose

Searches for the reference objects and calculates the camera offset.

At least 3 reference objects are required, 4 or more objects is recommended.

The orientation of a found reference object is not included in the calculation. Only the object position is used for the calculation. This depends on the product coordinate system. For this reason, spheres are very suitable as reference objects (with the origin of the product coordinate system at the center of the sphere).

Hint

If there are symmetries in the reference object, the ambiguity must not affect the product position. Normally, it should be sufficient to use the product center point as the origin of the product coordinate system.

Variablen

Input/Output

Name

Typ

Description

Input

Reference object name

String

Product name of the reference object to be searched for (must exist as a product)

Input

Reference poses

PoseList

List of positions at which the reference objects are expected. These can be determined and taught in using the Find object task, for example.

Input

ROI names

StringList

Names of the ROI areas that are to be used for the individual reference objects. The order of the entries must match the reference poses.

Input (optional)

Max Std. deviation in the relative position [mm]

Double

Maximum permitted standard deviation in the relative position in millimeters. If this limit is exceeded, the sequence change ‘Std. dev. > Maximum’ (see below) takes place.

Output

Measured poses

PoseList

The poses of the reference objects determined by object recognition

Output

Offset

Pose

The result is stored in this variable. The offset represents the deviation calculated between the measured reference objects and the given reference poses (no orientation).

Sequence change

Name

Condition

Remark

Reference object not found

One of the reference objects could not be found within the specified ROI

Std. dev > Maximum

Standard deviation > Max Std. dev. in the relative position [mm]

Occurs if, for example, the camera has moved a lot. If no sequence is specified here, the execution of the tasks continues normally even if the maximum is exceeded.