Skip to main content
. Author manuscript; available in PMC: 2015 Sep 1.
Published in final edited form as: Rep U S. 2014 Sep;2014:3476–3482. doi: 10.1109/IROS.2014.6943047

Algorithm 1 Move the tip of the catheter following via points

  1: procedure CATHETERMOVE(X,θ0)
  2: k ← 1
  3: x¯kp(θ0),xgfirstxX
  4: repeat
  5:    Determine x˙ from (10)
  6:    Solve (8), (4), (5) with x˙=x˙ for u*
  7:    uk ← u*
  8:    Apply uk to (3) for ∆t to obtain xk
  9:    if Reached(xk +1,xg) then
10:      xg next xX
11:    end if
12:    kk + 1
13: until All xX are visited
14: return (xk, uk), ∀k
15: end procedure