Definition
subtract_pose(posx1,posx2,ori_type_out)
Features
This function obtains the difference between two poses.
Parameters
|
Parameter Name |
Data Type |
Default Value |
Description |
|---|---|---|---|
|
posx1 |
posx list (float[6]) |
- |
posx or position list [mm, deg] |
|
posx2 |
posx list (float[6]) |
- |
posx or position list [mm, deg] |
|
ori_type_out |
int |
None |
output orientation type
|
Return
|
Value |
Description |
|---|---|
|
posx |
[mm, deg] |
Exception
|
Exception |
Description |
|---|---|
|
DR_Error (DR_ERROR_TYPE) |
Parameter data type error occurred |
Example
Python
posx1 = [100, 20, 300, 90, 0, 180]
posx2 = [200, 50, 100, 90, 30, 150]
subtract_posx = subtract_pose(posx1, posx2)
subtract_posx_zyx = subtract_pose(posx1, posx2, DR_ELR_ZYX)