Algorithm 1 Calculate the optimal joint position of joint {4}. |
Inputs: Position and attitude of {T}, , , . Data of attachment, , , . |
Outputs: Position and attitude of {4}, , , . |
Notes:, , , . |
1. |
. |
2. |
Calculate the trajectory of {T} according to Equation (9), and get , . |
3. |
Calculate the collision region ellipse according to Equation (8), and get , . |
4. |
Calculate the trajectory of {4} according to Equation (7), and get
, . |
5. |
for
|
6. |
,
|
7 |
, calculate , according to Equation (4) |
8. |
|
9. |
Calculate the trajectory of the quick-hitch equipment edge according to Equation (6), and get
, . |
10. |
. |
11. |
if arc () is tangent to ellipse (), then
|
12. |
break
|
13. |
end if
|
14. |
end for |
15. |
|
16. |
,
|
17. |
|
18. |
Output, , . |