added distance transform to qr_planner