During the hoisting and lowering operations of a tower crane, dynamic variations in cable lengths significantly influence the oscillation frequency and amplitude of the load. These variations complicate the oscillation characteristics, heightening the challenge of balancing obstacle avoidance with precise positioning. To tackle this issue, we propose a trajectory planning and tracking control method that integrates hoisting control to reduce the impact of varying cable lengths on load swinging and achieve accurate positioning during obstacle navigation. A novel definition of swing angle is introduced to model the crane’s rigid and swinging components separately, enhancing model accuracy while simplifying complexity. A piecewise polynomial constructs the load trajectory in a low-dimensional flat space, which is then mapped to a high-dimensional generalized state space through a homeomorphic transformation, ensuring trajectory smoothness and traceability. A fractional-order sliding mode controller is employed to facilitate rapid and precise tracking of the actuated degrees of freedom, suppressing load oscillation while maintaining positioning accuracy. Experimental validation on a tower crane platform shows that the proposed strategy enables smooth obstacle avoidance and precise target point reaching, even with varying cable lengths.