Skip to main content
. 2020 Jun 5;5(2):26. doi: 10.3390/biomimetics5020026
Algorithm 2 Elliptical path generation
  Input: Initial and desired configuration of the robot
  Output: List of angles, W
  •   1.

    Apply Equation (1) to determine a,b,h,k based on initial and final configuration such that:

{(xrh)2a2+(yrk)2b2=1(xrh)a2+(yrk)·mrb2=0,{(xdh)2a2+(ydk)2b2=1(xdh)a2+(ydk)·mdb2=0
where (xr, yr) is the robot’s center coordinate of the head of initial configuration, mr is the robot’s tangent of the orientation of initial configuration and (xd, yd) is the center coordinate of the head of desired goal configuration, md is the tangent of the orientation of the desired configuration
  •   2.

    Current configuration, Ci = Initial configuration, I

  •   3.
    While Ci ≠ Desired Configuration, D:
    1. Execute set of angles to follow ellipse to generate a new set of configurations {C}
    2. Select new configuration, N from {C} which closely satisfies the ellipse
    3. Add angle of N to list of angles, W
    4. Ci = N
  •   4.

    Return W