|
Algorithm 1 Configuration for the Second Flexible Segment |
| 1: |
Input: Desired position , current configuration , tolerance , step size , maximum iteration K. |
| 2: |
Output: Configuration parameter for the second flexible segment. |
| 3: |
Calculate current tip position: . |
| 4: |
Calculate current error: . |
| 5: |
Initialization . |
| 6: |
while and do
|
| 7: |
Calculate local Jacobian matrix . |
| 8: |
Calculate new by (16). |
| 9: |
Update and e. |
| 10: |
. |
| 11: |
end while |
| 12: |
Set . |