Cylindrical heat exchanger trajectory planning and tracking using orthogonal functions