Skip to main content
. 2020 Jun 5;5(2):26. doi: 10.3390/biomimetics5020026
Algorithm 4 Enhanced combined RRT and elliptical path
  Input: Initial and desired configuration of the robot, the maximum number of samples, Nmax
  Output: Tree, T
  •   1.

    Add initial configuration to the tree, T

  •   2.
    For i = 1 to Nmax:
    1. Repeat Algorithm 3 from 2.a to 2.d to get {C} from configuration Cs
    2. Find best of {C}, Cnew, that gives least estimated distance based on Equation (4) or (5)
    3. If Cnew used Equation (5):
      1. Repeat Algorithm 2 from 1.a to 1.d with initial condition assigned as Cnew to create a new ellipse
      2. Execute a set of points from Cnew which the robot can follow and closely satisfy the ellipse to generate a new set of configurations {C’}
      3. Find best of {C’} based on Equations (4) and add it to T
      4. If the robot reaches the goal position, then immediately return T
  Else:
  Add Cnew to T
  
  •   3.

    Return T