Next Article in Journal
The Study of A New Symmetrical Rod Phase in Mg-Zn-Gd Alloys
Previous Article in Journal
CMB Tensions with Low-Redshift H0 and S8 Measurements: Impact of a Redshift-Dependent Type-Ia Supernovae Intrinsic Luminosity
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Research on Nonlinear Control Method of Underactuated Gantry Crane Based on Machine Vision Positioning

College of Mechanical Engineering, Shenyang Jianzhu University, Shenyang 110168, China
*
Author to whom correspondence should be addressed.
Symmetry 2019, 11(8), 987; https://doi.org/10.3390/sym11080987
Submission received: 3 July 2019 / Revised: 29 July 2019 / Accepted: 31 July 2019 / Published: 2 August 2019

Abstract

:
The movement of the gantry crane is controlled by an symmetry underactuated system, and has poor robustness in precise positioning. A new active control method based on the machine vision positioning is proposed in this paper, and the trajectories are planned after the detection of starting and ending points. A new type of energy storage function is given in this paper, and a coupling control law is derived to minimize the load swing in the process of precise positioning. The equilibrium point of the closed-loop system is checked though Lyapunov and LaSalle’s theorems, and the calculation results are verified through experimental investigations. The results show that the equilibrium points are asymptotically stable, and the proposed control method is of better robustness. The findings provide a new kind of control method with higher efficiency, and can help with the precise control of gantry cranes.

1. Introduction

Gantry cranes have the advantages of high payload capacity, good operational flexibility, and less energy consumption, and are widely used in loading and transportation processes at material yards and ports. The payload is led to the reserved position by the control system, and the unexpected payload oscillation is designed to be minimized. The swing freedom of the payload lacks the driver to control. Therefore, the control system of the gantry crane is symmetry underactuated, and is of poor robustness because the independent control inputs are fewer than the degrees of freedom (DOF). During the past several decades, the control system has attracted research interests from many researchers. Fang et al. [1] proposed a control scheme based on motion planning and adaptive crane underactuated system, which can still achieve good control performance under unknown system parameters. Pezeshki et al. [2] proposed a feedback linearized modelless adaptive controller and a fuzzy approximation adaptive sliding membrane controller to control the underactuated crane system. Sun et al. designed a crane underactuated control strategy based on the energy optimal solution [3] and quasi-proportional integral derivative (PID) [4], considering the hook and payload double swing problem. Lu et al. [5] designed a dual crane cooperative operation controller, and proved the stability of the system to equilibrium point by using Lyapunov techniques and LaSalle’s invariance theorem. Most of the studies focused on the passive target control, and the target positions need to be input several times in consecutive works during lifting and translation. Multiple manual inputs lead to accumulative errors, and the accuracy and efficiency are decreased. Therefore, a control system with high accuracy and robustness is needed.
The active control system takes the working conditions into consideration, and can reduce the payload oscillation in the working process. Visual systems are widely applied in active control systems, and the accumulative errors brought by the multiple position inputs can be minimized. For the studies of vision-based active control systems, Yasir et al. [6] proposed a combination of visible light and smartphone acceleration sensors. Hossen et al. [7] used a combination of computer vision sensors and visible light communication with light-emitting diodes (LED). Truc [8] designed a navigation method for ground fuzzy line tracking and quick response (QR) code recognition. The above methods have achieved good results in the application of visual positioning and detection, and the control precision is proven to be improved compared with the passive control systems. The control strategies of the vision-based systems are derived from the motions of the objectives, and are closely related with the dynamic characteristics of the system. Recent applications of the control system on the gantry crane mostly focus on the two-dimensional (2D) motions, and only the oscillation motions in the trolley plane are taken into consideration. However, the payload moves in a three-dimensional (3D) space when the trolley and the gantry move simultaneously, and the impact of gantry motion on the oscillation cannot be ignored, as shown in Figure 1.
There are two general kinematic structures for 2D gantry cranes. Firstly, the gantry is transferred in the X direction, at which time the trolley does not transfer; secondly, the trolley is transferred in the Y direction, but the gantry is fixed. The general kinematic structure of a 3D gantry crane refers to the movement of the gantry in the X direction while the trolley is transferring in the Y direction. The oscillation of the payload is affected by the coupling motions of the gantry and the trolley; therefore, the motion of the payload shows nonlinear changes. Moustafa et al. [9] used the Lagrange method to establish a dynamic model of a 3D crane. A linear feedback control system is proposed to realize the anti-swing motion control of the crane under various motion states. Fang et al. [10] designed several nonlinear feedback controllers for the underactuated gantry crane with constant rope length, which realized the “micro-swing” control of the system. Tuan et al. [11] designed a second-order synovial controller for gantry cranes with uncertain system parameters. Wu et al. [12] designed a 3D crane partial feedback linearization controller. The new swing suppression unit and the positioning error signal are constructed to ensure effective suppression of the rapid transferring and swing of the payload. Zhang [13] designed an enhanced coupled nonlinear tracking control method for underactuated 3D crane systems. However, changes in system parameters such as the mass of the payload and the length of the rope were not taken into consideration in these studies, which is not consistent with the actual situations. Furthermore, the external load is not included in the models, and the swing angle exceeded the threshold when the system was faced with external disturbance.
As discussed above, the lack of precise control of an underactuated gantry crane system is the result of the inaccurate dynamic model and improper control method. Therefore, a precise model of the 3D payload motion with the vision-based active control method is quite essential. In this paper, a precise 3D dynamic model including the coupling effect of gantry and trolley motions is proposed, and a method of machine vision recognition using QR code artificial beacons is put forward. The QR code is applied to obtain the coordinates of the start and end positions of the payload transfer, and a nonlinear control law based on energy coupling is designed for the precise control of the payload. As the main contribution of this paper, the proposed method successfully merges the advantages of machine vision positioning and energy-based control law, achieving an improved control performance. They are presented as follows:
(1)
The newly designed machine visual positioning system improves the positioning accuracy and automation efficiency of the gantry crane.
(2)
The control law has a concise structure without requiring exact knowledge of system parameters, which is convenient for practical implementation. It is robust against external disturbances, which is validated by experimental results.
The contents are as follows. The overall design of control method is given in the Section 2, and the dynamic model is described in Section 3. The machine vision positioning system is introduced in Section 4, and the trajectory planning is designed in Section 5. The control law is designed and analyzed in Section 6. In Section 7, there are simulation and experimental investigations on a gantry crane test rig to verify the performance of the designed control system, and finally the conclusions are drawn.

2. Control Method Design

This section describes the implementation steps of the underactuated gantry crane control method based on machine vision positioning.
Step 1: The 3D dynamic model of the gantry crane was built using the Euler–Lagrange equation.
Step 2: The multi-state nonlinear coupled differential equation of the gantry crane is obtained by solving the dynamic equation. Obtaining a trolley, the payload swing angle is based on a function of time when the gantry is operating at a constant acceleration.
Step 3: Image acquisition of gantry crane working surface, image preprocessing, detection of payload transfer end point, and calculation of target displacement of trolley and gantry.
Step 4: The payload swing angle obtained in step 2 is based on the time function, and the trolley and gantry frame obtained in step 3 are displaced. The trajectory planning strategy of the trolley, the trajectory planning strategy of the gantry, and the planning strategy of the payload trajectory are designed.
Step 5: A new energy function is constructed. On the basis of the multi-state nonlinear coupled differential equation of the gantry crane obtained in step 2, the non-linear trolley based on energy coupling and the gantry operating control law are designed. The stability of the closed-loop control system is proven by the Lyapunov techniques and Lasalle’s invariance theorem.
Step 6: The target displacement of the trolley and the gantry frame obtained in step 3 and the control law obtained in step 5 are input into the trolley and the gantry controller, respectively. The controller controls the drive to drive the trolley and the gantry’s motion motor mechanical system with voltage signals. The encoder feeds the trolley, the gantry displacement, and the payload swing angle information to the controller in real time with the pulse signal. Under the action of the closed-loop control system, the trolley and the gantry run smoothly, and the payload swing angle is effectively suppressed within the safe range.
Step 7: End. The trolley and the gantry are accurately moved to the target position, and the payload residual swing angle is eliminated.
The overall schematic diagram of the underactuated gantry crane control method based on machine vision positioning is shown in Figure 2.

3. Gantry Crane Dynamics Modeling

The schematic diagram of the gantry crane is shown in Figure 3. The gantry crane dynamics model is established using the Euler–Lagrange equation [14]:
M ( q ) q ¨ + V m ( q , q ˙ ) q ˙ + G ( q ) = U ,
where q represents the state vector of the gantry crane system; M ( q ) represents the inertia matrix of the system; V m ( q , q ˙ ) represents the centripetal-Coriolis force matrix of the system; G ( q ) represents the gravitational potential energy vector of the system; and U represents the control vector of the system. The specific definition of the above parameters is as follows:
q = [ x ( t ) y ( t ) θ x ( t ) θ y ( t ) ] T ,
M ( q ) = [ M 1 + m 0 m l cos θ x 0 0 M 2 + m 0 m l cos θ y m l cos θ x 0 m l 2 0 0 m l cos θ y 0 m l 2 ] ,
V m ( q , q ˙ ) = [ 0 0 m l θ ˙ x sin θ x 0 0 0 m l θ ˙ y sin θ y 0 0 0 0 0 0 0 0 0 ] ,
G ( q ) = [ 0 0 m g l sin θ x m g l sin θ y ] T ,
U = [ F x F y 0 0 ] T ,
where M 1 represents the sum of the mass of the gantry and the trolley; M 2 indicates the mass of the trolley; m represents the payload mass; l indicates the length of the sling rope; g represents the acceleration of gravity; θ x and θ y represent the payload swing angle generated by the X direction operation of the gantry and the Y direction operation of the trolley, respectively; and F x and F y stand for the resultant force applied to the gantry and trolley, respectively, which consists of the following two parts:
{ F x = F a x F r x F y = F a y F r y ,
where F a x and F a y denote the actuating force of the gantry and the trolley, respectively; F r x donates the mechanical friction between the gantry and the rail; and F r y donates the friction between the trolley and the gantry. Inspired by the friction model presented in the work of [15] and after some experimental studies, we utilize the following model to describe the friction:
{ F r x ( x ˙ ) = f r x tanh ( x ˙ / ξ x ) k r x | x ˙ | x ˙ F r y ( y ˙ ) = f r y tanh ( y ˙ / ξ y ) k r y | y ˙ | y ˙ ,
where f r x , f r y , ξ x , ξ y , k r x , and k r y R are the friction-related parameters to be determined.

4. Machine Vision Positioning System

The QR code [16] is tiled on the working surface of the gantry crane at regular intervals (see Figure 4). We use the QR code as the target point to establish the positioning coordinate system. Firstly, the image of the collected gantry crane working surface is preprocessed, then the target is detected and positioned, and finally the machine vision positioning system is established.

4.1. Image Preprocessing

In order to improve the real-time performance of data analysis and processing, eliminate the influence of irrelevant information, and improve the detectability of effective information, it is necessary to preprocess the original image of the working plane of the gantry crane shot by the HD industrial camera. Preprocessing of the original image includes grayscale, binarization, and Canny edge detection.
The process of converting a color image into a grayscale image is called grayscale processing of the image. The RGB color image is a combination of three different color components: red (R), green (G), and blue (B). Each pixel in the grayscale image can be represented by a luminance value of 0 to 255. We use the weighted averaging algorithm of (9) to grayscale the color image:
f g a y ( x , y ) = 0.299 R ( x , y ) + 0.587 G ( x , y ) + 0.114 B ( x , y ) .
Image binarization is used to set the gray value of the pixel on the image to 0 (black) or 255 (white). Converting 256 luminance level grayscale images to binarized images with appropriate threshold selection can still reflect the overall and local features of the image. The binarized image presents a black and white effect that highlights the contrast between the target image and the background. The image binarization formula is as follows:
f b i n ( x , y ) = { 255 f g a y ( x , y ) φ 0 f g a y ( x , y ) < φ ,
where φ represents the threshold.
Canny edge detection is a multi-level edge detection algorithm. The Canny edge detection algorithm can be divided into the following five steps [17,18]: (1) use a Gaussian filter to smooth the image and filter out noise; (2) calculate the gradient strength and direction of each pixel in the image; (3) apply non-maximum suppression to eliminate spurious responses from edge detection; (4) apply dual threshold detection to determine true and potential edges; (5) finalize edge detection by suppressing isolated weak edges.

4.2. Target Detection and Positioning

The camera uses the principle of small hole imaging. The world coordinate system and the image pixel coordinate system can be converted by a linear camera model. The camera imaging principle is shown in Figure 5.
The camera coordinate conversion relationship is as follows [19,20]:
Z c [ u v 1 ] = [ f d x 0 u 0 0 0 f d y v 0 0 0 0 1 0 ] [ R T 0 T 1 ] [ X w Y w Z w 1 ] = M 1 M 2 [ X w Y w Z w 1 ] = M [ X w Y w Z w 1 ] ,
where f is the focal length, d x and d y represent the unit pixel size of the image in the X direction and the Y direction, respectively; u 0 , v 0 represent the coordinates of the principal point of the pixel coordinate system; R is a rotation matrix; T is a translation vector; M 1 is a parameter matrix within the camera; M 2 is the parameter matrix outside the camera; and M is a camera parameter matrix.
In order to determine the location of the pixel plane where the QR code (see Figure 6) target is located, we use the OpenCV [21,22] computer vision library. The findContours function is used to extract the boundary contours of a, b, and c of the QR code in the preprocessed picture. The 4 corner points of d (d − 1, d − 2, d − 3, d − 4) can then be inferred from the 12 corner points of a (a − 1, a − 2, a − 3, and a − 4), b (b − 1, b − 2, b − 3, and b − 4), and c (c − 1, c − 2, c − 3, and c − 4). We can determine the smallest rectangle surrounding the QR code based on the four corner points (a − 1, b − 2, c − 3, and d − 4), and the image coordinates of center point ( u n , v n ) are shown as follows:
{ u n = ( u a 1 + u c 3 ) / 2 v n = ( v a 1 + v c 3 ) / 2 .
Image center pixel point coordinates ( u 1 , v 1 ) and QR code target center point pixel coordinates ( u n , v n ) based on the pixel coordinate system o u v can be obtained. Substituting the coordinate system conversion Formula (11), the coordinates of the target point of the world coordinate system can be obtained by the Formula (13). In the world coordinate system, the payload projection point ( X w 1 , Y w 1 ) is the transition starting point, and the QR code center point ( X w n , Y w n ) is the transition end point. The target displacement x u b and y u b of the trolley and gantry can be obtained by (14).
[ X w n Y w n Z w n ] = [ M 11 M 12 M 13 M 21 M 22 M 23 M 31 M 32 M 33 ] 1 × { Z c [ u n v n 1 ] [ M 14 M 24 M 34 ] }
{ x u b = X w n X w 1 y u b = Y w n Y w 1

5. Trajectory Planning

In order to achieve accurate and smooth control of the gantry crane, the trajectory of the gantry and trolley should meet a smooth S-shaped curve [23]. First, we introduce a three-stage acceleration trajectory to make the gantry run separately in the X direction. Its expression is as follows:
x ¨ ( t ) = { a x max 0 t t x 1 a x max t x 1 + t x 2 t 2 t x 1 + t x 2 0 e l s e ,
x ˙ ( t ) = { a x max t 0 t t x 1 a x max t x 1 t x 1 t t x 1 + t x 2 a x max [ t ( 2 t x 1 + t x 2 ) ] t x 1 + t x 2 t 2 t x 1 + t x 2 0 e l s e ,
x u b = 0 2 t x 1 + t x 2 x ˙ ( t ) d t = a x max t x 1 ( t x 1 + t x 2 ) ,
where x ¨ ( t ) , x ˙ ( t ) , and x u b represent the acceleration, velocity, and target displacement of the gantry in the X direction, respectively; a x max represents the maximum acceleration; and t x 1 and t x 2 indicate the acceleration/deceleration time and the uniform speed time, respectively. a x max , t x 1 , and t x 2 can be obtained from the following equations [24]:
a x max = min { v x u b T x u b T 2 a x u b g θ x u b 2 } ,
t x 1 = T = 2 π w n ,
w n = g l ,
t x 2 = x u b a x max T T ,
where a x u b , v x u b , and θ x u b represent the preset acceleration, speed, and swing angle upper limit of the X direction running system of the gantry, respectively; T represents an acceleration/deceleration cycle; and w n represents the natural frequency of the system and is related to the length l of the sling.
The differential equation for the dynamic coupling relationship between the acceleration of the gantry and the swing angle of the payload can be obtained by the expansion of (1):
l θ ¨ x + x ¨ cos θ x + g sin θ x = 0 .
The actual gantry crane system meets sin θ x θ x , cos θ x 1 [25,26,27,28,29]. Therefore, Equation (22) can be expressed as a partial differential equation:
θ ¨ x + w n 2 θ x = w n 2 g x ¨ .
When the gantry is running at a constant acceleration x ¨ = a x , Equation (23) can be solved as follows, and the payload swing angle is obtained as a function of time t :
θ x ( t ) = θ x ( 0 ) cos w n t + θ ˙ x ( 0 ) w n sin w n t a x g ( 1 cos w n t ) ,
where θ x ( 0 ) and θ ˙ x ( 0 ) represent the initial angle and angular velocity of the gantry in the X direction, and the actual conditions satisfy θ x ( 0 ) = 0 , θ ˙ x ( 0 ) = 0 .
The trajectory planning of the gantry crane trolley in the Y direction can refer to the operation law of the gantry in the X direction, and will not be described here.
In order to improve the operating efficiency, the gantry and trolley often run simultaneously in practical applications. In the compound direction, acceleration p ¨ ( t ) , speed p ˙ ( t ) , displacement p ( t ) , swing angle θ 1 ( t ) , swing angle θ 2 ( t ) , plus/deceleration time t 1 , and uniform speed time t 2 are defined as follows:
p ¨ ( t ) = x ¨ ( t ) 2 + y ¨ ( t ) 2 ,
p ˙ ( t ) = x ˙ ( t ) 2 + y ˙ ( t ) 2 ,
p ( t ) = x ( t ) 2 + y ( t ) 2 ,
θ 1 ( t ) = a x 2 + a y 2 g ( 1 cos w n t ) ,
θ 2 ( t ) = arctan a x a y ,
t 1 = t x 1 = t y 1 ,
t 2 = t x 2 = t y 2 .

6. Control Law Design and Stability Analysis

6.1. Control Law Design

The energy function shown below is constructed from the mechanical energy of the gantry crane:
E ( t ) = 1 2 q ˙ T H ( q ) q ˙ + [ m l + k a x ( M 1 + m ) g ( 1 cos θ x ) ] + [ m l + k a y ( M 2 + m ) g ( 1 cos θ y ) ] ,
where
H ( q ) = [ M 1 + m 0 m l cos θ x 0 0 M 2 + m 0 m l cos θ y m l cos θ x 0 m l 2 + k a x ( M 1 + m sin 2 θ x ) l 0 0 m l cos θ y 0 m l 2 + k a y ( M 2 + m sin 2 θ y ) l ] .
We hope to enhance the dynamic coupling relationship between the displacement of the gantry x ( t ) ; the displacement of the trolley y ( t ) ; and the swing angle of the payload θ x ( t ) , θ y ( t ) . Therefore, a positive definite scalar function as shown below is constructed based on the energy function form:
V ( t ) = E ( t ) + k p x 2 σ x 2 + k p y 2 σ y 2 ,
where k p x , k p y R + are positive control gains; σ x is the positioning errors of the payload in the X direction; and σ y is the positioning errors of the payload in the Y direction:
{ σ x = e x k a x sin θ x σ y = e y k a y sin θ y ,
where e x represents the errors between the actual displacement of the gantry and the target displacement in the X direction, and e y represents the errors between the actual displacement of the trolley and the target displacement in the Y direction. They are defined as follows:
{ e x = x ( t ) x u b e y = y ( t ) y u b .
For V ( t ) to refer to time, substituting (1), we get the following:
V ˙ ( t ) = ( F x + k p x σ x ) σ ˙ x + ( F y + k p y σ y ) σ ˙ y .
On the basis of the form shown in V ˙ ( t ) , design the controller is shown below:
{ F x = k p x σ x k d x σ ˙ x = k p x ( e x k a x sin θ x ) k d x ( e ˙ x k a x θ ˙ x cos θ x ) F y = k p y σ y k d y σ ˙ y = k p y ( e y k a y sin θ y ) k d y ( e ˙ y k a y θ ˙ y cos θ y ) ,
where k d x , k d y R + are positive control gains.

6.2. Closed-Loop System Stability Analysis

Theorem 1.
Under the control law (38), the gantry and trolley running displacements converge to the target displacement, and the payload swing angle is suppressed and eliminated. Satisfy the following theorem:
lim t [ x ( t ) , x ˙ ( t ) , y ( t ) , y ˙ ( t ) , θ x ( t ) , θ ˙ x ( t ) , θ y ( t ) , θ ˙ y ( t ) ] = [ x u b , 0 , y u b , 0 , 0 , 0 , 0 , 0 ] .
Proof. 
The positive definite scalar function of (30) is chosen as the Lyapunov candidate function. We substitute the control law (38) into (37) and get the following formula:
V ˙ ( t ) = k d x σ ˙ x 2 k d y σ ˙ y 2 0 ,
which shows that the gantry crane closed-loop control system is Lyapunov stable at the origin. In consequence, it is easily concluded that
V ( t ) L ,
and the closed-loop system state is bounded. Therefore,
e x ( t ) , e y ( t ) , e ˙ x ( t ) , e ˙ y ( t ) , x ˙ ( t ) , y ˙ ( t ) , θ ˙ x ( t ) , θ ˙ y ( t ) , F x , F y L .
To accomplish the proof, let Γ be the largest invariant set in Ω , where
Ω = { ( x , y , x ˙ , y ˙ , θ x , θ y , θ ˙ x , θ ˙ y ) | V ˙ ( t ) = 0 } .
Then, based on (40), the following is clear in Γ :
{ σ ˙ x = e ˙ x k a x θ ˙ x cos θ x = 0 σ ˙ y = e ˙ y k a y θ ˙ y cos θ y = 0 .
Therefore, the following conclusions can be drawn:
{ σ x = e x k a x sin θ x = α x σ y = e y k a y sin θ y = α y ,
{ σ ¨ x = e ¨ x + k a x θ ˙ x 2 sin θ x k a x θ ¨ x cos θ x = 0 σ ¨ y = e ¨ y + k a y θ ˙ y 2 sin θ y k a y θ ¨ y cos θ y = 0 ,
where α x , α y R are pending constants. α x = α y = 0 in the maximum variable set Γ will then be demonstrated. Combining (1), (38), (44), and (46), we get the following:
{ x ¨ = k a x k p x m l + k a x ( M 1 + m ) α x y ¨ = k a y k p y m l + k a y ( M 2 + m ) α y .
Therefore, x ˙ ( t ) , y ˙ ( t ) will vary at a constant speed as shown in Equation (46), assuming α x 0 , α y 0 , which implies the following:
{ lim t x ˙ ( t ) = { + , α x < 0 , α x > 0 lim t y ˙ ( t ) = { + , α y < 0 , α y > 0 .
Obviously, this contradicts Equation (42), so the assumption is incorrect. Therefore,
α x = α y = 0 .
Then, from Equations (37), (43), (44), (46), and (48), we get the following:
{ σ x = e x k a x sin θ x = 0 σ y = e y k a y sin θ y = 0 ,
F x = F y = 0 ,
{ e ¨ x = x ¨ = 0 e ¨ y = y ¨ = 0 ,
{ e ˙ x = x ˙ = β x e ˙ y = y ˙ = β y ,
where β x , β y R are constants to be determined. In the maximum invariant set Γ , the same analysis as above shows the following:
{ e ˙ x = β x = 0 e ˙ y = β y = 0 ,
{ e x = λ x e y = λ y ,
where λ x , λ y R are the constants to be determined. It will then be proven that λ x = λ y = 0 in the largest constant set Γ .
First, assume that λ x 0 , λ y 0 , by combining (50) and (55), we can obtain the following equation set:
{ sin θ x = e x k a x = λ x k a x 0 sin θ y = e y k a y = λ y k a y 0 .
The condition in (22) is imported in (52), and we get the following:
{ θ ¨ x = g l sin θ x 0 θ ¨ y = g l sin θ y 0 .
Combining Equations (46), (52), (56), and (57), the following equation can be obtained:
{ θ ˙ x 2 + g l cos θ x = 0 θ ˙ y 2 + g l cos θ y = 0 .
The condition in (44) is imported in (54), and we get the following:
{ θ ˙ x cos θ x = 0 θ ˙ y cos θ y = 0
Solving the system of Equations (58) and (59) gives the following:
{ θ ˙ x = 0 θ ˙ y = 0 cos θ x = 0 cos θ y = 0
It can be further inferred that in the maximum invariant set Γ ,
θ ¨ x = θ ¨ y = 0 .
Obviously, Equation (61) contradicts Equation (57), so it is assumed that λ x 0 , λ y 0 does not hold. Therefore, λ x = 0 , λ y = 0 is satisfied in the maximum invariant set Γ , thereby inferring the following:
e x ( t ) = e y ( t ) = 0 ,
{ x ( t ) = x u b y ( t ) = y u b .
Therefore, combining (50) and (58) shows
θ x = θ y = 0 ,
θ ˙ x = θ ˙ y = 0 .
On the basis of the above analysis, it can be known that the maximum invariant set Γ contains only the equilibrium point lim t [ x ( t ) , x ˙ ( t ) , y ( t ) , y ˙ ( t ) , θ x ( t ) , θ y ( t ) , θ ˙ x ( t ) , θ ˙ y ( t ) ] = [ x u b , 0 , y u b , 0 , 0 , 0 , 0 , 0 ] .
According to the LaSalle’s invariance theorem [30], the closed-loop system converges to equilibrium point with time under the control law (38). Therefore, the Theorem 1 is proved. □

7. Simulation Experiment and Result Analysis

7.1. Machine Vision Positioning Experimental Results and Analysis

The machine vision positioning experiment is carried out on the gantry crane test bench (See Figure 7). The HD industrial camera in our vision system is a Mercury series camera made by Daheng IMAVISION (see Figure 8), of which the frame rate is 120 fps, the pixel size is 5.6 um × 5.6 um, the focal length is 3.5 mm, and the exposure time is also adjustable. The camera is fixedly mounted under the center of the trolley. The camera plane is parallel to the ground. As the gantry is highly fixed, the camera moves with the trolley at a fixed height plane.
We analyzed the image of the gantry crane working surface. Image preprocessing not only reduces the amount of data computation, but also helps extract useful information about the target and background. Then, we use the target recognition and localization algorithm to determine the target displacement of the trolley and the gantry.
The processing of the image of the working plane of the gantry crane is shown in Figure 9. The final recognition result based on machine vision positioning is shown in Figure 10. It can be seen that x u b = 0.548   m and y u b = 0.430   m .

7.2. Friction Simulation and Analysis

For this article, we employ the compensation method for the nonlinear friction. To this end, the friction model of (8) is utilized as a feedforward component to compensate for the track friction. After plenty of simulation test, the friction parameters in (8) are determined as f r x = 1.2 , ξ x = 0.2 , k r x = 0.4 , f r y = 0.7 , ξ y = 0.2 , and k r y = 0.5 .
On the basis of the simulation results shown in Figure 11, it is concluded that friction changes with the transfer of the gantry and the trolley, and eventually tends to 0 when the gantry and trolley reach the target position. Friction is biggest when the gantry and trolley start to move ( F r x max = 1.32   N , F r y max = 0.88   N ).

7.3. Trajectory Planning Simulation and Analysis

The numerical simulation method is used to analyze the effectiveness of the trajectory planning of the gantry crane transportation path from the perspective of kinematics. The simulation can be divided into two types: (1) the gantry is running in the X direction when the trolley stops, and trolley is running in the Y direction when the gantry stops; (2) the gantry and the trolley run simultaneously. The simulation uses the related parameters shown in Table 1, and the results are shown in Figure 12.
It can be seen from the simulation results that the trajectory planning strategy can quickly and accurately transfer the gantry and the trolley to the target position. The acceleration and speed are always within a limited range. The payload swing angle is always in the range of less than 5 ° . After the trolley and gantry reach the target displacement, the payload does not have any residual swing.

7.4. Control Law Experimental Results and Analysis

To validate the actual performance of the proposed approach, three groups of experiments are implemented on the gantry crane test bench (see Figure 7). Specifically, we first compare the proposed scheme with the traditional energy based method. Then, the robustness of the proposed approach is tested by modifying the system parameters. At last, the proposed approach is further verified by taking into account the external perturbation. The system physical parameters are M 1 = 15.25   kg and M 2 = 6.25   kg , and the identifying locations are set to be x u b = 0.548   m and y u b = 0.430   m .
To be self-contained, we provide the expressions of energy-based controllers designed in the work of [10]. The gantry kinetic energy coupling control law (GKE) and the trolley kinetic energy coupling control law (TKE) are as follows:
{ F g k e = k p x e k d x x ˙ k v x [ m sin θ ( l θ ˙ x 2 + g cos θ x ) ] k e x + k v x F t k e = k p y e k d y y ˙ k v y [ m sin θ ( l θ ˙ y 2 + g cos θ y ) ] k e y + k v y .
Experiment 1.
Control performances validation with exact parameter information. In this experiment, the mass of the payload and the length of the rope are determined as
{ m = 1   kg l = 0.6   m .
The control gains for the two control laws are fully tuned until the respective best performance is achieved, which are explicitly given in Table 2.
First, the gantry is transferred separately for 30 s in the X direction. Then, the trolley is transferred separately for 30 s in the Y direction. Finally, the trolley and the gantry are transferred for 30 s at the same time. The experimental results are shown in Figure 13 and Figure 14, and the quantified results are detailed in Table 3, which includes the following four performance indices: (1) θ max that denotes the maximum swing amplitude during the transferring process; (2) payload residual swing θ r e s , which refers to the maximum swing amplitude after the gantry and the trolley stop; (3) settling time t s , which is defined as the time when the swing angle enters the range of | θ ( t ) | 0.5 t t s ; (4) maximum actuating force F max .
On the basis of the experiment results shown in Figure 13 and Figure 14 and Table 3, it is concluded that both control laws can transfer the gantry and trolley to the target position within 10 s. However, the transient response of the proposed controller (38) is superior over that of the other control law. Payload swing is much better suppressed and eliminated by the proposed control law. There is almost no residual swing when the granty and trolley reach the desired location.
Experiment 2.
Robustness verification experiment. Here, to test the robustness of the proposed control law (38) against parameter variations, we change the payload mass and rope length to distinguish them from corresponding nominal values. The actual parameters are decided as
{ m = 0.5   kg l = 0.8   m .
The control gains for the control law (38) and (66) are kept the same as those in Experiment 1.
Figure 15 and Figure 16 show the results of Experiment 2, and the explicit quantified data are provided in Table 4. It is clear by comparing Figure 14 and Figure 16 that the performance of the proposed control law (38) is hardly influenced by the parameter changes in the sense that the transportation efficiency and payload suppression effect remain almost the same as those of Experiment 1. By contrast, the performance of the GKE and TKE control law (66) is largely degraded because of the fact that the model-dependent structures make them sensitive to parameter uncertainties, while in real-world applications, it is impossible to always know the exact values including rope lengths and payload masses; in this sense, the proposed method is more practical.
Experiment 3.
To further verify its robustness against external perturbation, we examine the performance of the proposed controller (38) by using a wooden stick to strike the payload. The parameters including the control gains are chosen the same as those in Experiment 1.
First, the gantry is transferred separately for 30 s in the X direction. We use a wooden stick to strike the payload in the X direction at 20 s. Then, the trolley is transferred separately for 30 s in the Y direction. We use a wooden stick to strike the payload in the Y direction at 20 s. Finally, the trolley and the gantry are transferred for 30 s at the same time. We use a wooden stick to strike the payload in the compound direction at 20 s.
The experimental results are shown in Figure 17 and Figure 18 and Table 5. We can conclude that both control laws can act against external perturbation, but the transient response of the proposed controller (38) is superior over that of the other control law. Payload swing is much better suppressed and eliminated by the proposed control law when the payload meets the external perturbation.

8. Conclusions

Aiming at the symmetry underactuated gantry crane control system, this paper proposes a nonlinear control method of symmetry underactuated gantry crane based on machine vision positioning. The method detects the transfer target by the visual sensor and plans the trajectory, which improves the automation efficiency of the gantry crane. The designed control law not only makes the payload transfer to the target position accurately, but also effectively suppresses the payload swing and enhances the stability of the system in response to external disturbances. The proposed control law enhances the coupling behavior between the payload and the various state quantities of the gantry crane and leads to an improved control performance. Theoretical analysis and experimental results show that the proposed control method has good accuracy, stability, and rapidity for the symmetry underactuated gantry crane control system. Future work will focus on extending the proposed method to the overall-process control of gantry cranes with payload hoisting and lowering.

Author Contributions

Authors H.S. and G.L. conceived and designed the model for research, and analyzed the data and the obtained inference. Author J.H. performed the experiments. Authors X.B. and G.L. processed experimental data and wrote the paper. The final manuscript has been read and approved by all authors.

Funding

His research was funded by The National Key R & D Program of China, grant number 2017YFC0703903. The National Natural Science Foundation of China, grant number 51705341, 51675353.

Acknowledgments

The authors are grateful to the editors and the anonymous reviewers for providing us with insightful comments and suggestions throughout the revision process.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Fang, Y.; Ma, B.; Wang, P.; Zhang, X. A Motion Planning-Based Adaptive Control Method for an Underactuated Crane System. IEEE Trans. Control Syst. Technol. 2012, 20, 241–248. [Google Scholar] [CrossRef]
  2. Pezeshki, S.; Badamchizadeh, M.A.; Ghiasi, A.R.; Ghaemi, S. Control of Overhead Crane System Using Adaptive Model-Free and Adaptive Fuzzy Sliding Mode Controllers. J. Control Autom. Electr. Syst. 2015, 26, 1–15. [Google Scholar]
  3. Sun, N.; Wu, Y.; Chen, H.; Fang, Y. An energy-optimal solution for transportation control of cranes with double pendulum dynamics: Design and experiments. Mech. Syst. Signal Process. 2018, 102, 87–101. [Google Scholar]
  4. Sun, N.; Yang, T.; Fang, Y.; Wu, Y.; Chen, H. Transportation Control of Double-Pendulum Cranes with a Nonlinear Quasi-PID Scheme: Design and Experiments. IEEE Trans. Syst. Man Cybern. Syst. 2019, 49, 1408–1418. [Google Scholar] [CrossRef]
  5. Lu, B.; Fang, Y.; Sun, N. Modeling and nonlinear coordination control for an underactuated dual overhead crane system. Automatica 2018, 91, 244–255. [Google Scholar]
  6. Yasir, M.; Ho, S.W.; Vellambi, B.N. Indoor Positioning System Using Visible Light and Accelerometer. J. Lightwave Technol. 2014, 32, 3306–3316. [Google Scholar] [CrossRef]
  7. Hossen, M.S.; Park, Y.; Kim, K.D. Performance improvement of indoor positioning using light-emitting diodes and an image sensor for light-emitting diode communication. Opt. Eng. 2015, 54, 035108. [Google Scholar]
  8. Truc, N.T.; Kim, Y.T. Navigation Method of the Transportation Robot Using Fuzzy Line Tracking and QR Code Recognition. Int. J. Hum. Robot. 2017, 14, 1650027. [Google Scholar]
  9. Moustafa, K.A.F.; Ebeid, A.M. Nonlinear modeling and control of overhead crane load sway. J. Dyn. Syst. Meas. Control 1988, 110, 266–271. [Google Scholar] [CrossRef]
  10. Fang, Y.; Dixon, W.E.; Dawson, D.M.; Zergeroglu, E. Nonlinear coupling control laws for an underactuated overhead crane system. IEEE/ASME Trans. Mechatron. 2003, 8, 418–423. [Google Scholar] [CrossRef] [Green Version]
  11. Tuan, L.A.; Kim, J.J.; Lee, S.G.; Lim, T.G.; Nho, L.C. Second-order sliding mode control of a 3D overhead crane with uncertain system parameters. Int. J. Precis. Eng. Manuf. 2014, 15, 811–819. [Google Scholar]
  12. Wu, X.; He, X. Partial feedback linearization control for 3-D underactuated overhead crane systems. ISA Trans. 2016, 65, 361–370. [Google Scholar]
  13. Zhang, M.; Ma, X.; Rong, X.; Song, R.; Tian, X.; Li, Y. An Enhanced Coupling Nonlinear Tracking Controller for Underactuated 3D Overhead Crane Systems. Asian J. Control 2018, 20, 1839–1854. [Google Scholar]
  14. Sun, N.; Fang, Y.; Zhang, Y.; Ma, B. A Novel Kinematic Coupling-Based Trajectory Planning Method for Overhead Cranes. IEEE/ASME Trans. Mechatron. 2012, 17, 166–173. [Google Scholar] [CrossRef]
  15. Makkar, C.; Hu, G.; Sawyer, W.G.; Dixon, W. Lyapunov-Based Tracking Control in the Presence of Uncertain Nonlinear Parameterizable Friction. IEEE Trans. Autom. Control 2007, 52, 1988–1994. [Google Scholar] [CrossRef]
  16. Di, Y.J.; Shi, J.P.; Mao, G.Y. A QR code identification technology in package auto-sorting system. Mod. Phys. Lett. B 2017, 31, 19–21. [Google Scholar]
  17. Canny, J. A Computational Approach to Edge Detection. IEEE Trans. Pattern Anal. Mach. Intell. 1986, PAMI–8, 679–698. [Google Scholar] [CrossRef]
  18. Kumar, G.; Umesh, G. Image steganography based on Canny edge detection, dilation operator and hybrid coding. J. Inf. Secur. Appl. 2018, 41, 41–51. [Google Scholar]
  19. Zhang, J.; Yu, H.; Deng, H.; Chai, Z.; Ma, M.; Zhong, X. A Robust and Rapid Camera Calibration Method by One Captured Image. IEEE Trans. Instrum. Meas. 2018, 1–10. [Google Scholar] [CrossRef]
  20. Li, J.; Liu, Z. Efficient camera self-calibration method for remote sensing photogrammetry. Opt. Express 2018, 26, 14213–14231. [Google Scholar] [PubMed]
  21. Kaehler, A.; Bradski, G. Learning OpenCV 3: Computer Vision in C++ with the OpenCV Library; O’Reilly Media: Sebastopol, CA, USA, 2016. [Google Scholar]
  22. Howse, J.; Joshi, P.; Beyeler, M. OpenCV: Computer Vision Projects with Python; Packt Publishing Limited: Birmingham, UK, 2017. [Google Scholar]
  23. Lee, H.H. Motion planning for three-dimensional overhead cranes with high-speed load hoisting. Int. J. Control 2005, 78, 875–886. [Google Scholar]
  24. Sun, N. Trajectory Planning and Nonlinear Control for Underactuated Cranes: Design, Analysis, and Applications. Ph.D. Thesis, Nankai University, Tianjin, China, 2014; pp. 19–56. [Google Scholar]
  25. Maghsoudi, M.J.; Mohamed, Z.; Sudin, S. An improved input shaping design for an efficient sway control of a nonlinear 3D overhead crane with friction. Mech. Syst. Signal Process. 2017, 92, 364–378. [Google Scholar] [CrossRef]
  26. Xie, X.; Huang, J.; Liang, Z. Vibration reduction for flexible systems by command smoothing. Mech. Syst. Signal Process. 2013, 39, 461–470. [Google Scholar]
  27. Uchiyama, N.; Ouyang, H.; Sano, S. Simple rotary crane dynamics modeling and open-loop control for residual load sway suppression by only horizontal boom motion. Mechatronics 2013, 23, 1223–1236. [Google Scholar] [CrossRef]
  28. Tuan, L.A.; Lee, S.G.; Ko, D.H.; Nho, L.C. Combined control with sliding mode and partial feedback linearization for 3D overhead cranes. Int. J. Robust Nonlinear Control 2014, 24, 3372–3386. [Google Scholar]
  29. Yu, W.; Li, X.; Panuncio, F. Stable Neural Pid Anti-Swing Control For An Overhead Crane. Intell. Autom. Soft Comput. 2014, 20, 145–158. [Google Scholar] [CrossRef]
  30. Khalil, H. Nonlinear Systems, 3rd ed.; Prentice-Hall: Englewood Cliffs, NJ, USA, 2002. [Google Scholar]
Figure 1. Motions of the 3D gantry crane and payload.
Figure 1. Motions of the 3D gantry crane and payload.
Symmetry 11 00987 g001
Figure 2. Control method diagram.
Figure 2. Control method diagram.
Symmetry 11 00987 g002
Figure 3. Gantry crane dynamics model.
Figure 3. Gantry crane dynamics model.
Symmetry 11 00987 g003
Figure 4. Machine vision positioning system.
Figure 4. Machine vision positioning system.
Symmetry 11 00987 g004
Figure 5. Camera calibration principle.
Figure 5. Camera calibration principle.
Symmetry 11 00987 g005
Figure 6. QR code.
Figure 6. QR code.
Symmetry 11 00987 g006
Figure 7. Gantry crane test bench.
Figure 7. Gantry crane test bench.
Symmetry 11 00987 g007
Figure 8. MER-1220-32U3M/C.
Figure 8. MER-1220-32U3M/C.
Symmetry 11 00987 g008
Figure 9. Image preprocessing. (a) Original image; (b) grayscale image; (c) binary chart; (d) Canny edge detection.
Figure 9. Image preprocessing. (a) Original image; (b) grayscale image; (c) binary chart; (d) Canny edge detection.
Symmetry 11 00987 g009
Figure 10. Identifying the positioning result.
Figure 10. Identifying the positioning result.
Symmetry 11 00987 g010
Figure 11. Results for friction simulation. (a) X direction; (b) Y direction.
Figure 11. Results for friction simulation. (a) X direction; (b) Y direction.
Symmetry 11 00987 g011
Figure 12. Results for trajectory planning simulation. (a) X direction; (b) Y direction; (c) compound direction.
Figure 12. Results for trajectory planning simulation. (a) X direction; (b) Y direction; (c) compound direction.
Symmetry 11 00987 g012aSymmetry 11 00987 g012b
Figure 13. Results for gantry kinetic energy (GKE) and trolley kinetic energy (TKE) in Experiment 1. (a) X direction; (b) Y direction; (c) compound direction.
Figure 13. Results for gantry kinetic energy (GKE) and trolley kinetic energy (TKE) in Experiment 1. (a) X direction; (b) Y direction; (c) compound direction.
Symmetry 11 00987 g013
Figure 14. Results for proposed controller in Experiment 1. (a) X direction; (b) Y direction; (c) compound direction.
Figure 14. Results for proposed controller in Experiment 1. (a) X direction; (b) Y direction; (c) compound direction.
Symmetry 11 00987 g014
Figure 15. Results for GKE and TKE in Experiment 2. (a) X direction; (b) Y direction; (c) compound direction.
Figure 15. Results for GKE and TKE in Experiment 2. (a) X direction; (b) Y direction; (c) compound direction.
Symmetry 11 00987 g015aSymmetry 11 00987 g015b
Figure 16. Results for proposed controller in Experiment 2. (a) X direction; (b) Y direction; (c) compound direction.
Figure 16. Results for proposed controller in Experiment 2. (a) X direction; (b) Y direction; (c) compound direction.
Symmetry 11 00987 g016aSymmetry 11 00987 g016b
Figure 17. Results for GKE and TKE in Experiment 3. (a) X direction; (b) Y direction; (c) compound direction.
Figure 17. Results for GKE and TKE in Experiment 3. (a) X direction; (b) Y direction; (c) compound direction.
Symmetry 11 00987 g017
Figure 18. Results for proposed controller in Experiment 3. (a) X direction; (b) Y direction; (c) compound direction.
Figure 18. Results for proposed controller in Experiment 3. (a) X direction; (b) Y direction; (c) compound direction.
Symmetry 11 00987 g018aSymmetry 11 00987 g018b
Table 1. Related parameters.
Table 1. Related parameters.
NameSymbolNumerical ValueUnit
Rope length l 1 m
Gravity acceleration g 9.8 m / s 2
Gantry preset acceleration a x u b 0.4 m / s 2
Gantry preset speed v x u b 0.8 m / s
Gantry target displacement x u b 0.548 m
Gantry frame swing angle upper limit θ x u b 5deg
Trolley preset acceleration a y u b 0.5 m / s 2
Trolley preset speed v y u b 1 m / s
Trolley target displacement y u b 0.430 m
Trolley swing angle upper limit θ y u b 5deg
Compound acceleration p ¨ u b 0.5 m / s 2
Compound speed p ˙ u b 1 m / s
Compound displacement p u b 0.697 m
Compound angle 1 θ 1 u b 5deg
Compound angle 2 θ 2 u b 1rad
Table 2. Control gain for experiment 1. GKE, gantry kinetic energy; TKE, trolley kinetic energy.
Table 2. Control gain for experiment 1. GKE, gantry kinetic energy; TKE, trolley kinetic energy.
Control Law k p x k d x k a x k e x k v x k p y k d y k a y k e y k v y
GKE and TKE (66)18281NANA16301.95NANA
proposed controller (38)3680NA10.53565NA11
Table 3. Control performance comparison for Experiment 1.
Table 3. Control performance comparison for Experiment 1.
Control Law θ x max θ x r e s t x s F x max θ y max θ y r e s t y s F y max θ p max θ p r e s t p s
GKE and TKE (66)3.61.916.811.93.40.911.510.24.82.117.3
proposed controller (38)2.40.36.510.31.80.47.34.92.90.57.4
Table 4. Control performance comparison for Experiment 2.
Table 4. Control performance comparison for Experiment 2.
Control Law θ x max θ x r e s t x s F x max θ y max θ y r e s t y s F y max θ p max θ p r e s t p s
GKE and TKE (66)4.63.2>3012.04.82.327.29.1>53.8>30
proposed controller (38)2.50.36.10.31.70.37.55.33.01.17.6
Table 5. Control performance comparison for Experiment 3.
Table 5. Control performance comparison for Experiment 3.
Control Law θ x max θ x r e s t x s F x max θ y max θ y r e s t y s F y max θ p max θ p r e s t p s
GKE and TKE (66)3.61.917.212.03.40.911.59.84.82.117.3
proposed controller (38)2.40.36.511.21.80.47.311.43.30.58.4

Share and Cite

MDPI and ACS Style

Shi, H.; Li, G.; Bai, X.; Huang, J. Research on Nonlinear Control Method of Underactuated Gantry Crane Based on Machine Vision Positioning. Symmetry 2019, 11, 987. https://doi.org/10.3390/sym11080987

AMA Style

Shi H, Li G, Bai X, Huang J. Research on Nonlinear Control Method of Underactuated Gantry Crane Based on Machine Vision Positioning. Symmetry. 2019; 11(8):987. https://doi.org/10.3390/sym11080987

Chicago/Turabian Style

Shi, Huaitao, Gang Li, Xiaotian Bai, and Jianqi Huang. 2019. "Research on Nonlinear Control Method of Underactuated Gantry Crane Based on Machine Vision Positioning" Symmetry 11, no. 8: 987. https://doi.org/10.3390/sym11080987

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