Next Article in Journal
Development of Optimal Size Range of Modules for Driving of Automatic Sliding Doors
Previous Article in Journal
DeCGAN: Speech Enhancement Algorithm for Air Traffic Control
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Phase Plane Trajectory Planning for Double Pendulum Crane Anti-Sway Control

1
Institute of Logistics Science and Engineering, Shanghai Maritime University, Shanghai 201306, China
2
Key Laboratory of Transport Industry of Marine Technology and Control Engineering, Shanghai Maritime University, Shanghai 201306, China
3
College of Automation Engineering, Shanghai University of Electric Power, Shanghai 200090, China
*
Author to whom correspondence should be addressed.
Algorithms 2025, 18(5), 246; https://doi.org/10.3390/a18050246
Submission received: 14 March 2025 / Revised: 9 April 2025 / Accepted: 23 April 2025 / Published: 24 April 2025
(This article belongs to the Section Algorithms for Multidisciplinary Applications)

Abstract

:
In view of the double pendulum characteristics of cranes in actual production, simply equating them to single pendulum characteristics and ignoring the mass of the hook will lead to significant errors in the oscillation frequency. To tackle this issue, an input-shaping double pendulum anti-sway control method based on phase plane trajectory planning is proposed. This method generates the required acceleration signal by designing an input shaper and calculates the acceleration switching time and amplitude of the trolley according to the phase plane swing angle and the physical constraints of the system. Through this strategy, it is ensured that the speed of the trolley and the swing angle of the load are always kept within the constraint range so that the trolley can reach the target position accurately. The comparative analysis of numerical simulation and existing control methods shows that the proposed control method can significantly reduce the swing angle amplitude and enable the system to enter the swing angle stable state faster. Numerical simulation and physical experiments show the effectiveness of the control method.

1. Introduction

As typical underactuated mechanical pieces of equipment, cranes are widely used in the fields of construction, ships, ports, etc. Due to their structural characteristics and operating conditions [1], cranes are very prone to swaying during operation. Suppressing this swaying phenomenon is the key to improving the efficiency and safety of cranes [2,3]. Therefore, it is necessary to design an efficient anti-sway control method [4].
On the two-dimensional physical modeling of cranes, the single pendulum model and the double pendulum model are adopted widely. Some scholars choose to ignore the mass of the hook and simplify the crane into a single pendulum model for analysis [5,6]. However, although this simplification reduces the complexity of the model, it fails to fully capture the dynamic behavior of the system. The crane system will exhibit double pendulum characteristics during operation. This model takes into account more dynamic interactions and system complexity, especially the impact of the hook mass on the overall system. The model that includes the hook mass can more accurately reflect the dynamic characteristics of the crane system.
In the field of single pendulum model anti-sway control, Zhang et al. [7] proposed a fuzzy sliding mode controller, which integrated the trolley displacement and load swing angle into the same sliding mode surface, introduced fuzzy rules to adjust the control quantity, and ensured that the system state was always on the sliding mode surface. Xue et al. [8] introduced a composite signal to enhance the coupling relationship between the driving variable and the underactuated variable. The stability analysis was based on the original nonlinear model of the system, rather than the linearized model, to ensure the accuracy of the system analysis. Miranda et al. [9] proposed a method to achieve more accurate system control by coupling the trolley displacement coordinates with the effective load swing angle coordinates. In addition, the method combined the S-curve based trajectory planning technology to smooth the motion path and reduce the oscillation effect of the system. Zhang et al. [10] designed a predictive control method, which used the introduced constraint method to determine that the output constraint of the underactuated system was limited to a preset range. However, the high computational complexity of model predictive control makes it difficult to apply in practice. Shi et al. [11] proposed a nonlinear coupling tracking anti-sway controller. A composite signal was constructed to suppress the swing angle of the system, and a suitable switching function was established to solve the chattering problem existing in the sliding mode control system. A fuzzy controller was designed to improve the positioning accuracy of the system. Zhang et al. [12] proposed a PD-SMC hybrid controller. The PD part is used to stabilize the controlled system and the SMC part has strong robustness to external disturbances, parameters and unmodeled uncertainties. In order to improve the control performance of anti-sway, Lu et al. [13] added more swing information to the control input and designed an adaptive law to accurately identify the load mass online, further improving the robustness of the method. The open-loop anti-sway control method is very popular. Among them, the input shaping controller has a simple structure. This technology uses a series of specific pulse signals to convolve with a unique input signal to obtain the final synthetic input signal for control. Alhazza [14] proposed an adjustable maneuvering waveform command shaper. The initial parameter approximation is taken, and the shaper parameters are optimized using a genetic algorithm to determine the optimal acceleration parameters. The proposed command shaper can effectively eliminate the residual vibration of a single continuous waveform command. Yang et al. [15] proposed a parameter tuning algorithm for a multivariable PID controller based on generalized predictive control (GPC). The designed multivariable PID controller has the same structural mathematical expression as the GPC law, making the transfer and calculation of the three parameters P, I, and D simpler.
The above studies assume that the mass of the hook can be ignored, but in actual applications, the mass of the hook cannot be simply ignored. In this case, the system will produce a double pendulum effect; therefore, the control performance of the control algorithm based on the single-stage swing assumption will be greatly reduced [16]. In response to the anti-sway control problem of the double pendulum model of the crane, several innovative solutions have been proposed. Arabasi et al. [17] proposed a frequency-modulation (FM) input-shaping strategy for a double pendulum crane. FM technology uses model-based feedback and partial feedback linearization. FM system parameters are time-independent and do not need to change when the system frequency changes. Ouyang [18] proposed a composite trajectory planning method for a double pendulum bridge crane without advance or offline planning. This method keeps the load swing angle within the constraint range by adjusting the gain of the damping term. However, the above two methods [17,18] both have residual oscillations of different magnitudes. Wang et al. [19] proposed a variable parameter time-varying sliding mode control (VP-TVSMC) method, designed time-varying parameters, realized dynamic adjustment of sliding surface, and enhanced the adjustment ability of sliding surface.
The existing anti-sway control strategies [17,18,19] generally adopt the “trajectory-velocity” cascade control framework: first plan the displacement trajectory of the trolley, and then indirectly suppress the load swing by adjusting the trolley acceleration/velocity. Although this method can achieve basic anti-sway effects, its essence is to passively weaken the swing angle through kinematic constraints, and there are core limitations: the swing angle control depends on the indirect transmission of the trolley motion, and the dynamic response has a lag. In response to the above problems, this paper proposes an innovative control of “active swing angle planning-inverse solution of trolley motion”, taking the swing angle as the direct planning object and establishing an explicit mapping relationship with the trolley displacement and acceleration to achieve a fundamental reconstruction of anti-sway control.
Specific innovations include constructing the coordinated trajectory of the load swing angle in the phase plane, suppressing high-order oscillation modes through input shaping technology, and ensuring that the double pendulum angle is controlled throughout the process. In view of the under-actuated problem that the double pendulum system cannot independently plan the double pendulum angle, the parameter approximate equivalence hypothesis is proposed, and the trajectory is solved after the double pendulum dynamics is approximately simplified, which significantly reduces the planning complexity. The acceleration trajectory obtained by phase plane trajectory planning is substituted into the original double pendulum nonlinear model, abandoning the traditional linearization/order reduction simplification operation and retaining the complete dynamic characteristics.
The remainder of this paper is organized as follows. Section 2 discusses the modeling of the crane double pendulum system. Section 3 performs phase plane trajectory planning for the trolley and the load. Section 4 performs numerical simulations to verify the proposed method. Section 5 performs physical experiments to verify the proposed method. Section 6 provides some conclusions.

2. Mathematical Modeling

The crane model consists of a trolley, rope, hook and load. The two-dimensional schematic diagram of the fixed rope length double pendulum model is shown in Figure 1. Among them, M is the mass of the trolley, m 1 is the mass of the hook, m 2 is the mass of the load, x is the displacement of the trolley, l 1 is the length of the rope connecting the trolley and the hook, l 2 is the length of the rope connecting the hook and the load, θ 1 ( t ) and θ 2 ( t ) are the hook swing angle and the load swing angle, and the driving force of the trolley is F x .
When lifting is not considered, the rope lengths l 1 and l 2 are considered constant. Assume that the motion trajectory of the crane is only considered on the X O Y plane. First, the kinetic energy and potential energy of the system are obtained through Lagrangian kinematic analysis:
T = 1 2 ( M + m 1 + m 2 ) x ˙ 2 + 1 2 ( m 1 + m 2 ) l 1 2 θ ˙ 1 2 + 1 2 m 2 l 2 2 θ ˙ 2 2 + ( m 1 + m 2 ) l 1 cos θ 1 x ˙ θ ˙ 1 + m 2 l 2 cos θ 2 x ˙ θ ˙ 2 + m 2 l 1 l 2 cos ( θ 1 θ 2 ) θ ˙ 1 θ ˙ 2
V = ( m 1 + m 2 ) g l 1 ( 1 cos θ 1 ) + m 2 g l 2 ( 1 cos θ 2 )
where T and V represent the kinetic energy and potential energy of the crane system, respectively, then the Lagrangian function is defined as L = TV:
L = T V = 1 2 ( M + m 1 + m 2 ) x ˙ 2 + 1 2 ( m 1 + m 2 ) l 1 2 θ ˙ 1 2 + 1 2 m 2 l 2 2 θ ˙ 2 2 + ( m 1 + m 2 ) l 1 cos θ 1 x ˙ θ ˙ 1 + m 2 l 2 cos θ 2 x ˙ θ ˙ 2 + m 2 l 1 l 2 cos ( θ 1 θ 2 ) θ ˙ 1 θ ˙ 2 ( m 1 + m 2 ) g l 1 ( 1 cos θ 1 ) + m 2 g l 2 ( 1 cos θ 2 )
The following Lagrange equation is used to calculate the dynamic model of the crane system:
d d ( t ) ( δ L δ x ˙ ) δ L δ x = F x d d ( t ) ( δ L δ θ ˙ 1 ) δ L δ θ 1 = 0 d d ( t ) ( δ L δ θ ˙ 2 ) δ L δ θ 2 = 0
Further solving the three formulas in (4) above, achieving:
( M + m 1 + m 2 ) x ¨ + m 2 l 2 θ ¨ 2 2 cos θ 2 m 2 l 2 θ ˙ 2 2 sin θ 2 + ( m 1 + m 2 ) l 1 ( cos θ 1 θ ¨ 1 θ ˙ 1 2 sin θ 1 ) = F
( m 1 + m 2 ) l 1 cos θ 1 x ¨ + m 2 l 1 l 2 sin ( θ 1 θ 2 ) θ ˙ 2 2 + ( m 1 + m 2 ) l 1 2 θ ¨ 1 + m 2 l 1 l 2 cos ( θ 1 θ 2 ) θ ¨ 2 + ( m 1 + m 2 ) g l 1 sin θ 1 = 0
m 2 l 2 cos θ 2 x ¨ + m 2 l 1 l 2 cos ( θ 1 θ 2 ) θ ¨ 1 + m 2 l 2 2 θ ¨ 2 2 + m 2 g l 2 sin θ 2 m 2 l 1 l 2 sin ( θ 1 θ 2 ) θ ˙ 1 2 = 0
Dividing both sides of (6) and (7) by ( m 1 + m 2 ) l 1 and m 2 l 2 , respectively, achieves:
cos θ 1 x ¨ + l 1 θ ¨ 1 + m 2 l 2 m 1 + m 2 cos ( θ 1 θ 2 ) θ ¨ 2 + m 2 l 2 m 1 + m 2 sin ( θ 1 θ 2 ) θ ˙ 2 2 + g sin θ 1 = 0
cos θ 2 x ¨ + l 1 cos ( θ 1 θ 2 ) θ ¨ 1 + l 2 θ ¨ 2 l 1 sin ( θ 1 θ 2 ) θ ˙ 1 2 + g sin θ 2 = 0
It can be seen from Equations (8) and (9) that the input of the system is less than the degree of freedom of the system; therefore, the system is an underactuated double pendulum system. Due to the existence of two swing angles, the state of the crane system is more complicated than that of the single pendulum system. The underactuated characteristics of the crane make it impossible to directly plan θ 1 and θ 2 , and there is a nonlinear relationship between the two angles, making it impossible to directly derive the exact relationship between them.
The load swing angle of a crane during actual operation is generally within plus or minus 10 degrees [20]. Therefore, this paper makes the following simplifications:
cos θ i 1 ,   cos ( θ 1 θ 2 ) 1 ,   sin ( θ 1 θ 2 ) 0 ,   sin ( θ 1 θ 2 ) θ ˙ i 2 0 ,   i = 1 , 2
The corresponding system kinematic Equations (8) and (9) can be rewritten as:
x ¨ + l 1 θ ¨ 1 + m 2 l 2 m 1 + m 2 θ ¨ 2 + g θ 1 = 0
x ¨ + l 1 θ ¨ 1 + l 2 θ ¨ 2 + g θ 2 = 0
Since the difference between the two angles is small [18,19], the approximate equivalent method is to set θ 1 θ 2 and substitute it into Equation (10) to obtain:
x ¨ + l 1 θ ¨ 1 + m 2 l 2 m 1 + m 2 θ ¨ 1 + g θ 1 = 0
Simplify Equation (12):
θ ¨ ( t ) + ( m 1 + m 2 ) g m 1 l 1 + m 2 ( l 1 + l 2 ) θ ( t ) = a c ( m 1 + m 2 ) m 1 l 1 + m 2 ( l 1 + l 2 )
where w n = ( m 1 + m 2 ) g m 1 l 1 + m 2 ( l 1 + l 2 ) , ( m 1 + m 2 ) m 1 l 1 + m 2 ( l 1 + l 2 ) = w n 2 g and a c = x ¨ is the acceleration of the trolley.
Achieveing:
θ ¨ ( t ) + w n 2 θ ( t ) = w n 2 g a c
The hook mass m 2 is taken into account in w n , which avoids the problem that the simple pendulum model cannot accurately describe the real dynamic model of the actual system, making the oscillation frequency of the system more accurate.
According to the system’s performance index constraints and phase plane trajectory constraints, in order to keep the oscillation stable within a certain range, there are the following constraints:
Constraint 1: The displacement target of the trolley within the running time t d is x d :
x ( t ) = x d ,   t t d
Constraint 2: During the movement of the trolley, speed and acceleration should satisfy:
| x ˙ ( t ) | v max ,   | x ¨ ( t ) | a max
Constraint 3: The maximum load swing amplitude should be kept within the specified range, that is:
| θ ( t ) 1 , 2 | θ 1 , 2 max
According to the above constraints, the amplitude of the trolley’s acceleration and the running time of each acceleration (deceleration) can be calculated. By setting different constraint ranges, different acceleration amplitudes and acceleration times can be obtained, so that during the movement of the trolley, the displacement, speed and the swing angle between the rope and the trolley can be kept within the constraint range and eventually tend to zero.

3. Trajectory Planning

The acceleration trajectory of the trolley is shown in Figure 2. Under the following acceleration amplitude and acceleration time, the swing trajectory of the load is approximately as shown in Figure 3.
The trolley has three motion states: acceleration, uniform speed and deceleration. The motion process of the trolley is as follows: 1. In the O A segment, the trolley starts from rest and begins to accelerate with an acceleration of magnitude a 1 for a time t 1 . During this process, the load begins to swing periodically. 2. In the A B C segment, the trolley continues to move forward at a uniform speed for a time t 2 t 1 . During this period, the load will reach the maximum swing angle. In the C O segment, the trolley accelerates again with an acceleration of magnitude a 1 for a time t 3 t 2 . At the end of the acceleration, the swing angle of the load is zero, and the uniform speed travels for a time t 4 t 3 . 3. The trolley decelerates with an acceleration in the opposite direction of magnitude a 1 for a time t 5 t 4 . During this process, the load swings again. 4. The trolley moves at a uniform speed again for a time t 6 t 5 . During this period, there is still a maximum swing angle. Then, it accelerates with an acceleration of magnitude a 1 for a time t 7 t 6 . Finally, it arrives at the destination with a swing angle of zero. The control strategy is to control the trolley to perform a complete cycle of acceleration, uniform speed and deceleration, so that the swing angle of the load is kept as small as possible during the movement and it reaches a zero-vibration state at the final speed.
The values of acceleration at different times are as follows:
x ¨ ( t ) = a 1 , 0 t < t 1 a 1 , t 2 t < t 3 a 1 , t 4 t < t 5 a 1 , t 6 t < t 7 0 , e l s e
For the O A segment, the acceleration magnitude is a 1 , and the acceleration time is t a . Substituting into Equation (15), results in:
θ ¨ 11 ( t ) + w n 2 θ 11 ( t ) = w n 2 g a 1
Solving the differential Equation (18):
θ 11 ( t ) = C 1 cos ( w n t ) + C 2 sin ( w n t ) C 3 w n 2 g
Substituting the initial value into Formula (19), we obtain:
C 1 = a 1 g ,   C 2 = 0 ,   C 3 = a 1 w n 2
Therefore, the solution to the differential equation is:
θ 11 ( t ) = a 1 g cos ( w n t ) a 1 g
Taking the first-order derivative of Equation (20) with respect to time, we achieve:
θ ˙ 11 ( t ) = a 1 g w n sin ( w n t )
Divide w n on both sides of Equation (21) to obtain:
φ 1 ( t ) = θ ˙ 11 ( t ) w n = a 1 g sin ( w n t )
Equations (20) and (22) result in:
( θ 11 ( t ) + a 1 g ) 2 + φ 1 2 ( t ) = a 1 g 2
From the first acceleration trajectory equation, the coordinates of point A can be obtained:
( a 1 g cos ( w n t 1 ) a 1 g , a 1 g sin ( w n t 1 ) )
From this relationship, we obtain:
tan α 1 = sin ( w n t 1 ) 1 cos ( w n t 1 )
The acceleration time t 1 corresponding to the O A segment is calculated as follows:
t 1 = π 2 α 1 w n
For segment A B C , when the trajectory reaches point A, the first segment of the trajectory with the trolley acceleration a 1 ends, and then the trolley starts to move at a constant speed. At this time, the acceleration remains a c = 0 , and Equation (13) becomes:
θ ¨ 12 ( t ) + w n 2 θ 2 ( t ) = 0
Solving the differential Equation (27), we obtain:
θ 12 ( t ) = C 4 cos ( w n t ) + C 5 sin ( w n t )
From the initial conditions:
θ 12 ( t 1 ) = θ 11 ( t 1 ) = a 1 g cos ( w n t 1 ) a 1 g
θ ˙ 12 ( t 1 ) = θ ˙ 11 ( t 1 ) = a 1 g w n sin ( w n t 1 )
Substituting the initial conditions into Equation (28):
C 4 = a 1 g ( 1 cos ( w n t 1 ) ) ,   C 5 = a 1 g sin ( w n t 1 )
Therefore, Equation (28) is obtained as:
θ 12 ( t ) = a 1 g ( 1 cos ( w n t 1 ) ) cos ( w n t ) a 1 g sin ( w n t 1 ) sin ( w n t )
Taking the first-order derivative of Equation (29) with respect to time, achieves:
θ ˙ 12 ( t ) = a 1 w n g ( 1 cos ( w n t 1 ) ) cos ( w n t ) a 1 w n g sin ( w n t 1 ) sin ( w n t )
Divide w n on both sides of Equation (30) to obtain:
φ ˙ ( t ) = a 1 g ( 1 cos ( w n t 1 ) ) cos ( w n t ) a 1 g sin ( w n t 1 ) sin ( w n t )
Equations (29) and (31) obtain:
θ 12 2 ( t ) + φ 2 2 ( t ) = 2 a 1 ( 1 cos ( w n t 1 ) ) g 2
The angle α 2 corresponding to the C O segment is calculated as follows:
α 2 = w n ( t 3 t 2 )
Arriving at point C, the second section of the uniform velocity trajectory ends. The load trajectory is A B C , which is a part of a circle with (0, 0) as the center and R as the radius. The third section is the second acceleration process of the load. The trajectory is symmetrical with the first stage. The acceleration amplitude of this process is the same as that of the first section. This stage is the same as the first stage, and the deceleration stage is similar to the acceleration process.
Where ,   R = 2 a 1 ( 1 cos ( w n t 1 ) ) g 2 .
The acceleration amplitude and switching time are calculated by the system condition constraints. According to the kinematic equation, the speed and displacement of each section of the trolley are calculated as follows:
x ˙ ( t ) = a 1 t , 0 t < t 1 a 1 t 1 , t 1 t < t 2 a 1 t 1 + a 1 ( t t 2 ) , t 2 t < t 3 a 1 t 1 + a 1 ( t 3 t 2 ) , t 3 t < t 4 a 1 t 1 + a 1 ( t 3 t 2 ) a 1 ( t t 4 ) , t 4 t < t 5 a 1 t 1 + a 1 ( t 3 t 2 ) a 1 ( t 5 t 4 ) , t 5 t < t 6 a 1 t 1 + a 1 ( t 3 t 2 ) a 1 ( t 5 t 4 ) a 1 ( t t 6 ) , t 6 t < t 7
After integrating Equation (34) once over time, the target x d is obtained as:
x d = 4 a 1 t 1 2 + 2 a 1 t 1 ( t 2 t 1 ) + 2 a 1 t 1 ( t 4 t 3 )
The maximum speed of the trolley during the whole process is:
v max = a 1 t 1 + a 1 ( t 3 t 2 )
From the phase plane trajectory, it can be seen that the maximum swing angle corresponding to the load in the phase plane is:
θ max = 2 a 1 ( 1 cos ( w n t 1 ) ) g
From the phase plane trajectory, we can see that at point A, the trolley has the same speed before and after switching acceleration, and the loads at points A and C have the same swing angle, obtaining:
α 1 = α 2
From Equations (24), (25) and (33)–(38), the acceleration amplitude a 1 and acceleration switching time t 1 , t 2 , t 3 , t 4 of the trolley can be calculated.

4. Simulation Verification

This section verifies the effectiveness of the proposed method through simulation. The numerical simulation process is divided into two groups. In the first group, the proposed method is compared under different constraints, including simulation comparisons under different maximum constraint swing angles and different maximum constraint speeds. In the second group, the proposed method is compared with the sliding mode method [19] and the nonlinear coupling tracking controller (NCTR) [16]. For the simulation of the crane system, accurate setting of various parameters is crucial to ensure the reliability and effectiveness of the simulation. The following are the specific parameters required for the crane system simulation: rope length l 1 is 3   m , the distance between the hook and the load l 2 is 0.3   m , the hook mass m 1 is 2   kg , the load mass m 2 is 10   kg , the trolley target distance x d is 4   m , the load maximum swing angle constraints are 2°, 3°, and 4°, and the trolley maximum speed constraints are 0.6   m / s , 0.8   m / s and 1   m / s .
According to the constraints, a series of corresponding solutions are obtained as shown in Table 1, and the simulation results are shown in Figure 4, Figure 5 and Figure 6, respectively.
It can be seen from simulation Figure 4, Figure 5 and Figure 6 that when the trolley travels the same displacement, when the swing angle constraint and the maximum speed of the trolley increase, the acceleration amplitude also increases, and the shorter the uniform speed time of the trolley, the shorter the total running time of the trolley. The swing angle of the load is controlled within the constrained swing angle range, the phase plane trajectory of the load swing angle is in line with expectations, and the load swing angle eventually reaches a relatively stable state. There is no residual vibration of the load when the trolley stops.
From (10) and (11), we obtain:
θ ¨ 1 = x ¨ l 1 m 1 + m 2 m 1 l 1 g θ 1 + m 2 m 1 l 1 g θ 2
θ ¨ 2 = m 1 + m 2 m 1 l 2 g θ 1 m 1 + m 2 m 1 l 2 g θ 2
To show the reliability of the method, the following system model verification is carried out. The approximate acceleration is substituted into the original model simulation to obtain the images of the hook and load swing angles θ 1 and θ 2 .
The simulation results of this method are compared with those of VP-TVSMC and NCTR.
The displacement image of the trolley is shown in Figure 7. It can be seen from the figure that within the time range of 0–20 s, the displacement growth rate of the black line (Proposed method) is the fastest (about 7 s to reach 4 m), and there is no oscillation in the later period. Compared with VP-TVSMC and NCTR, it can achieve the target displacement more quickly and stably, showing higher control efficiency.
According to the comparison of hook and load swing angles of the three methods in Figure 8, the black line (proposed method) shows significant advantages within 0–15 s: its swing angle fluctuation amplitude is the smallest and the convergence speed is the fastest (basically tending to balance after about 7 s), while the blue line (VP-TVSMC) and the light blue line (NCTR) basically tend to balance after about 13 s. The blue line has a larger swing angle amplitude (up to 4°) and a longer oscillation duration. The black line effectively suppresses the load swing through a better control strategy and is superior to the other two methods in terms of dynamic response speed and steady-state accuracy.

5. Experimental Verification

The proposed control method has good control performance in simulation. The proposed method is verified on the mobile lifting gantry crane anti-sway control experimental platform. The platform size is 3 m × 4 m, and it consists of an industrial computer, a PLC (Siemens S-71200), a frequency converter (Invt Goodrivr350-19) and a trolley drive mechanism. The industrial computer uses the Windows 10 operating system and uses the Modbus TCP protocol to communicate with the PLC through the host computer program. The position of the trolley is measured using laser ranging. The laser ranging (OD Series) has a measurement range of 0–4 m and an accuracy of ±1 mm. The swing angle detection system uses two cameras (Lumenera’s Lt225) to measure the swing angle, with a frame rate of 50 frames per second and an accuracy of ±0.05°. The crane experimental system is shown in Figure 9. Under the premise of keeping the crane system parameters unchanged, the actual control effect of the proposed control method is verified experimentally and compared with the simulation results.
The target displacement of the trolley is 1.5 m, and rope length l1 is 1 m, l2 is 0.5 m. The hook mass m1 is 10 kg and the load mass m2 is 20 kg.
The comparison results between the experiment and the simulation are shown in Figure 10 and Figure 11. The experimental results show that the actual time for the trolley to reach the target position is consistent with the simulation, and the actual maximum hook swing angle and load swing angle are both within the constraint range. Due to the inevitable external interference and hardware conditions in the experiment, the experimental curve will have slight fluctuations but the overall trend of the experimental curve is consistent with the simulation curve. Therefore, the proposed control method still achieves good control performance in the physical experiment.
In order to show the robustness of this method to the influence of mass factors, the figure shows the swing of the hook and the load with a load mass of 20 kg and 40 kg, respectively. As can be seen from the figure below, the controller scheme is not greatly affected by mass changes and has strong robustness.
Figure 12 shows the comparison between the anti-sway control simulation and the experiment for loads of different masses. The results showed that the change in load mass has little effect on the dynamic response trend of the swing angle, and the swing angle attenuation law under different masses is consistent. Specifically, despite the significant difference in load mass (from 20 kg to 40 kg), the proposed control method can still effectively suppress the load swing, and the swing angle peak value and steady-state time do not show obvious fluctuations, showing that the control strategy has strong robustness to changes in mass parameters. This result indirectly verifies the control model’s adaptability to the load and provides a theoretical basis for anti-sway control in quality uncertain scenarios in actual engineering.

6. Conclusions

This paper proposes an input shaping double pendulum anti-sway control method based on phase plane trajectory planning. This method derives the acceleration switching time and amplitude by analyzing the phase plane swing angle and the physical constraints of the system, ensuring that the displacement, speed, hook and load swing angles of the trolley are kept within the constraints. In addition, considering that the oscillation frequency of the actual system is affected by multiple parameters such as hook mass, load mass and rope length, the model introducing these parameters can more accurately describe the dynamic behavior of the crane system and improve the accuracy and reliability of system modeling. The proposed control method is compared with the sliding mode controller. The numerical simulation results show that the proposed method not only achieves a trolley displacement trajectory without overshoot but also significantly reduces the load swing angle and maintains a stable swing angle for a longer time during the movement. In addition, numerical simulation and physical experimental verification also indicate that the experimental curve is highly consistent with the simulation curve, further showing the reliability and effectiveness of the control method. Although this study mainly focuses on the two-dimensional physical model of the crane, the results of the numerical simulation and the physical experiments both show the good performance of this method. Future research will be further extended to three-dimensional physical models to further improve the applicability and control accuracy of this method.
Wiseman [21] introduces a system combining a laser radar rangefinder and an ultrasonic rangefinder used in autonomous vehicles, which can help overcome the obstacles of the traumatic laser radar system and have better target detection capabilities. In the future, it can be considered to be applied to the problem of measuring the distance of trolley. First, an ultrasonic sensor matching the working conditions is selected and installed side by side with the laser sensor to cover the target area; secondly, the controller interface is expanded and the ultrasonic drive circuit is integrated, and then the ranging code is written and the laser and ultrasonic data are integrated. Finally, the accuracy is verified through static calibration and dynamic testing so as to achieve dual sensor complementarity and improve the measurement reliability and anti-interference ability in complex environments.
Some shortcomings of this method and suggestions for improvement are that at the current stage, this research method is mainly applicable to controlled environments with weak or no interference. Subsequent research plans will focus on the development of dynamic disturbance suppression strategies, with an emphasis on breakthroughs in modeling and compensation techniques for typical external disturbance sources such as wind-induced interference in order to achieve enhanced robustness in complex open environments. The trajectory planning scheme used in this paper relies on offline calculations to obtain the optimal parameters. Therefore, when the crane faces different work requirements (such as changing the cargo handling distance or transportation time), the parameters need to be recalculated, which is time-consuming and reduces production efficiency. In order to improve the flexibility and response speed of the system, future research can focus on the online trajectory planning problem of the crane. The crane model in this study only considers the two-dimensional anti-sway problem and has not yet covered the scenario of three-dimensional anti-sway. In order to improve the integrity of the system and the breadth of practical applications, future related research should consider incorporating three-dimensional anti-sway problems into the analysis.

Author Contributions

All the authors discussed the idea, conducted the theoretical research, and formulated the problem. Conceptualization, W.N.; methodology, K.Z. (Kai Zhang); simulation, K.Z. (Kai Zhang); writing—original draft, K.Z. (Kai Zhang); writing—review and editing, W.N. and K.Z. (Kai Zhang); revision—W.N., K.Z. (Kai Zhang) and K.Z. (Kailun Zhang); supervision, W.N. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Capacity Building Program of Municipal Universities of Shanghai (20040501400).

Data Availability Statement

Research data are readily provided upon request.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Lu, B.; Cao, H.; Hao, Y.; Lin, J.; Fang, Y. Online Anti-swing Trajectory Planning for a Practical Rubber Tire Container Gantry Crane. IEEE Trans. Ind. Electron. 2022, 69, 6193–6203. [Google Scholar] [CrossRef]
  2. Tian, Z.; Yu, L.L.; Ouyang, H.M.; Zhang, G.M. Swing Suppression Control in Tower Cranes with Time-Varying Rope Length Using Real-Time Modified Trajectory Planning. Autom. Constr. 2021, 132, 103954. [Google Scholar] [CrossRef]
  3. Xia, J.; Ouyang, H.; Li, S. Fixed-time observer-based back-stepping controller design for tower cranes with mismatched disturbance. Nonlinear Dyn. 2023, 111, 355–367. [Google Scholar] [CrossRef]
  4. Wu, X.Q.; Xu, K.X.; Lei, M.Z.; He, X.X. Disturbance-Compensation-Based Continuous Sliding Mode Control for Overhead Cranes With Disturbances. IEEE Trans. Autom. Sci. Eng. 2020, 17, 2182–2189. [Google Scholar] [CrossRef]
  5. Nguyen, V.T.; Yang, C.H.; Du, C.L.; Liao, L. Design and implementation of finite time sliding mode controller for fuzzy overhead crane system. ISA Trans. 2022, 124, 374–385. [Google Scholar] [CrossRef]
  6. Hiep, V.D.; Quynh, N.X.; Tung, T.T. A topology optimization design of a crane hook. Results Eng. 2024, 23, 102492. [Google Scholar] [CrossRef]
  7. Zhang, Q.Q.; Fan, B.; Wang, L.; Liao, Z.M. Fuzzy Sliding mode control on positioning and anti-swing for overhead crane. Int. J. Precis. Eng. Manuf. 2023, 24, 1381–1390. [Google Scholar] [CrossRef]
  8. Xue, L.; Peng, X.; Geng, Z. Anti-swing control for 2-D under-actuated cranes with load hoisting/lowering: A coupling-based approach. ISA Trans. 2019, 95, 372–378. [Google Scholar] [CrossRef]
  9. Miranda-Colorado, R.; Aguilar, L.T. A family of anti-swing motion controllers for 2D-cranes with load hoisting/lowering. Mech. Syst. Signal Process. 2019, 133, 106253. [Google Scholar] [CrossRef]
  10. Zhai, M.; Sun, N.; Yang, T.; Fang, Y.C. Underactuated mechanical systems with both actuator and actuated/unactuated state constraints: A Predictive Control-Based Approach. IEEE/ASME Trans. Mechatron. 2023, 28, 1359–1371. [Google Scholar] [CrossRef]
  11. Tong, S.H.; Shi, H.T.; Zhou, P.; Ma, J. Research on accurate motion control of cable crane based on variable structure sliding mode. J. Braz. Soc. Mech. Sci. Eng. 2023, 45, 316. [Google Scholar] [CrossRef]
  12. Zhang, M.H.; Zhang, Y.F.; Chen, H.; Cheng, X.G. Model-independent PD-SMC method with payload swing suppression for 3D overhead crane systems. Mech. Syst. Signal Process. 2019, 129, 381–393. [Google Scholar] [CrossRef]
  13. Lu, B.; Fang, Y.; Sun, N. Enhanced-coupling adaptive control for double-pendulum overhead cranes with payload hoisting and lowering. Automatica 2019, 101, 241–251. [Google Scholar] [CrossRef]
  14. Alhazza, K.A. Adjustable maneuvering time wave-form command shaping control with variable hoisting speeds. J. Vib. Control 2017, 23, 1095–1105. [Google Scholar] [CrossRef]
  15. Yang, B.; Liu, Z.X.; Liu, H.K.; Li, Y.; Lin, S. A GPC-based multi-variable PID control algorithm and its application in anti-swing control and accurate positioning control for bridge cranes. Int. J. Control Autom. Syst. 2020, 18, 2522–2533. [Google Scholar] [CrossRef]
  16. Shi, H.; Yao, F.; Yuan, Z.; Tong, Y.H.; Gang, H. Research on nonlinear coupled tracking controller for double pendulum gantry cranes with load hoisting/lowering. Nonlinear Dyn. 2022, 108, 223–238. [Google Scholar] [CrossRef]
  17. Arabasi, S.; Masoud, Z. Frequency-Modulation Input-Shaping Strategy for Double-Pendulum Overhead Cranes Undergoing Simultaneous Hoist and Travel Maneuvers. IEEE Access 2022, 10, 44954–44963. [Google Scholar] [CrossRef]
  18. Ouyang, H.M.; Tian, Z.; Yu, L.; Zhang, G.M. Motion planning approach for payload swing reduction in tower cranes with double-pendulum effect. J. Frankl. Inst. 2020, 357, 8299–8320. [Google Scholar] [CrossRef]
  19. Wang, T.; Tan, N.; Zhang, X.; Li, G.Z. A Time-Varying Sliding Mode Control Method for Distributed-Mass Double Pendulum Bridge Crane With Variable Parameters. IEEE Access 2021, 9, 75981–75992. [Google Scholar] [CrossRef]
  20. Shan, L.; Fei, G. Research and application of anti-sway control system in container lifting equipment. Hoisting Conveying Mach. 2011, 10, 51–55. (In Chinese) [Google Scholar] [CrossRef]
  21. Wiseman, Y. Ancillary Ultrasonic Rangefinder for Autonomous Vehicles. Int. J. Secur. Appl. 2018, 12, 49–58. [Google Scholar] [CrossRef]
Figure 1. Crane dynamics model.
Figure 1. Crane dynamics model.
Algorithms 18 00246 g001
Figure 2. Acceleration trajectory of the trolley where t 1 = t 3 t 2 = t 5 t 4 = t 7 t 6 , t 2 t 1 = t 6 t 5 .
Figure 2. Acceleration trajectory of the trolley where t 1 = t 3 t 2 = t 5 t 4 = t 7 t 6 , t 2 t 1 = t 6 t 5 .
Algorithms 18 00246 g002
Figure 3. Two-step acceleration phase plane trajectory.
Figure 3. Two-step acceleration phase plane trajectory.
Algorithms 18 00246 g003
Figure 4. Swing angle, trolley velocity, acceleration and phase plane trajectory of the load at maximum swing angle of 2°: (a) trolley velocity, acceleration and load swing angle; (b) phase plane trajectory of the load.
Figure 4. Swing angle, trolley velocity, acceleration and phase plane trajectory of the load at maximum swing angle of 2°: (a) trolley velocity, acceleration and load swing angle; (b) phase plane trajectory of the load.
Algorithms 18 00246 g004
Figure 5. Swing angle, trolley velocity, acceleration and phase plane trajectory of the load at maximum swing angle of 3°: (a) trolley velocity, acceleration and load swing angle; (b) phase plane trajectory of the load.
Figure 5. Swing angle, trolley velocity, acceleration and phase plane trajectory of the load at maximum swing angle of 3°: (a) trolley velocity, acceleration and load swing angle; (b) phase plane trajectory of the load.
Algorithms 18 00246 g005
Figure 6. Swing angle, trolley velocity, acceleration and phase plane trajectory of the load at maximum swing angle of 4°: (a) trolley velocity, acceleration and load swing angle; (b) phase plane trajectory of the load.
Figure 6. Swing angle, trolley velocity, acceleration and phase plane trajectory of the load at maximum swing angle of 4°: (a) trolley velocity, acceleration and load swing angle; (b) phase plane trajectory of the load.
Algorithms 18 00246 g006
Figure 7. Trolley displacement.
Figure 7. Trolley displacement.
Algorithms 18 00246 g007
Figure 8. (a) Hook swing angle; (b) load swing angle.
Figure 8. (a) Hook swing angle; (b) load swing angle.
Algorithms 18 00246 g008
Figure 9. Crane experimental system.
Figure 9. Crane experimental system.
Algorithms 18 00246 g009
Figure 10. Comparison of experimental and simulation results of trolley displacement.
Figure 10. Comparison of experimental and simulation results of trolley displacement.
Algorithms 18 00246 g010
Figure 11. (a) Comparison of experimental and simulation results of hook swing angle; (b) comparison of experimental and simulation results of load swing angle.
Figure 11. (a) Comparison of experimental and simulation results of hook swing angle; (b) comparison of experimental and simulation results of load swing angle.
Algorithms 18 00246 g011
Figure 12. (a) Comparison of hook swing angle results for different load masses; (b) comparison of load swing angle results for different load masses.
Figure 12. (a) Comparison of hook swing angle results for different load masses; (b) comparison of load swing angle results for different load masses.
Algorithms 18 00246 g012
Table 1. Amplitude and switching time of the trolley constraint displacement and load constraint swing angle, acceleration.
Table 1. Amplitude and switching time of the trolley constraint displacement and load constraint swing angle, acceleration.
x d ( m ) v max ( m / s ) θ max ( deg ) a 1 ( m / s 2 ) t 1 ( s ) t 2 ( s ) t 3 ( s ) t 4 ( s )
40.620.17141.75031.80813.55846.6665
40.830.26641.50131.80833.30965.0001
4140.37191.34461.80923.15384.0001
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Zhang, K.; Niu, W.; Zhang, K. Phase Plane Trajectory Planning for Double Pendulum Crane Anti-Sway Control. Algorithms 2025, 18, 246. https://doi.org/10.3390/a18050246

AMA Style

Zhang K, Niu W, Zhang K. Phase Plane Trajectory Planning for Double Pendulum Crane Anti-Sway Control. Algorithms. 2025; 18(5):246. https://doi.org/10.3390/a18050246

Chicago/Turabian Style

Zhang, Kai, Wangqing Niu, and Kailun Zhang. 2025. "Phase Plane Trajectory Planning for Double Pendulum Crane Anti-Sway Control" Algorithms 18, no. 5: 246. https://doi.org/10.3390/a18050246

APA Style

Zhang, K., Niu, W., & Zhang, K. (2025). Phase Plane Trajectory Planning for Double Pendulum Crane Anti-Sway Control. Algorithms, 18(5), 246. https://doi.org/10.3390/a18050246

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop