get_distance(posx1, posx2)
Features
This function returns the distance between two pose positions in [mm].
Parameters
Parameter Name | Data Type | Default Value | Description |
---|---|---|---|
posx1 | posx list (float[6]) | - | posx or position list [mm] |
posx2 | posx list (float[6]) | - | posx or position list [mm] |
Return
Value | Description |
---|---|
float | [mm] |
Exception
Exception | Description |
---|---|
DR_Error (DR_ERROR_TYPE) | Parameter data type error occurred |
Example
posx1 = [100, 20, 300, 90, 0, 180]
posx2 = [200, 50, 100, 90, 30, 150]
dis_posx = get_distance(posx1, posx2)