Skip to main content
Skip table of contents

CDRFLEx.get_orientation_error

Features

This is a function to calculate the orientation error value between arbitrary pose ‘fPosition1’ and ‘fPosition2’ for the axial ‘eTaskAxis’.

Parameter

Parameter Name

Data Type

Default Value

Description

fPosition1

float[6]

-

Target task location for six axes

fPosition2

float[6]


Target task location for six axes

eTaskAxis

enum.TASK_AXIS


Refer to the Definition of Constant and Enumeration Type

Return

Value

Description

float

Orientation Error Value

Example

PY
float x1[6] = {0, 0, 0, 0, 0, 0};
float x2[6] = {10, 20, 30, 40, 50, 60};
float diff = Drfl.get_orientation_error(x1, x2, TASK_AXIS_X);
cout << diff << endl;
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.