A planar path following controller for underactuated marine vehicles