Special Issue Article
Design of in-pipe robot based on inertial positioning and visual detection
Advances in Mechanical Engineering 2016, Vol. 8(9) 1–22 Ó The Author(s) 2016 DOI: 10.1177/1687814016667679 aime.sagepub.com
Hua Song1,2, Kunshan Ge1, Di Qu1, Huapu Wu1 and Jing Yang1
Abstract The horizontal directional drilling technology is widely used to lay the underground pipelines. These pipelines are of small or medium diameters with a dip angle ranging from 10° to 20°, special pipelines to 30°. In-pipe robot is commonly used to detect the pipeline fault. A new type of telescopic in-pipe robot is designed in this article, which is driven by step motor and screw, and supported by wheels. The robot has advantages of waterproof grade of IP68, stable motion state, and larger traction force. The speed is between telescopic robots and wheeled robots. Through force analysis and calculation, its maximum climbing angle is larger than 35°. The robot has good passing ability through the pipelines with bends. The inertial technology is used to locate the robot under the condition of disturbances. The pipeline fault detection algorithm based on the visual identification technology is designed to detect the pipeline fault. It can not only achieve autonomic positioning but also detect the pipeline fault. Keywords Telescopic in-pipe robot, finite-state machine, inertial positioning, visual identification technology, pipeline fault detection
Date received: 24 January 2016; accepted: 9 August 2016 Academic Editor: Neal Y Lii
Introduction The underground pipeline construction, especially the horizontal directional drilling (HDD) project, has been growing rapidly in recent years.1,2 In China, the HDD is widely used to lay the small- or medium-diameter underground pipelines with a dip angle ranging from 10° to 20°, special pipelines to 30°.3 Generally, there is a large amount of sewage sludge inside the pipelines. And there are large weld beads in the iron pipeline. As an important part of the urban infrastructure, the underground pipelines undertake important functions such as power transmission, water supply, and communication. It is known as the lifeline of the city.4 However, lack of detailed pipeline information and over-developing cause some issues,5 such as pipeline leak and road surface collapse.6 Thus, it is necessary to survey and maintain the underground pipeline in order to ensure the normal operation of the urban utility function. At present, the positioning and detection of the underground pipeline mainly depend on manual
detection. With the expanding scale of the underground pipeline, a new method should be developed, which is highly automated and advanced to meet the positioning and detection needs of the underground pipelines laid by the HDD. In-pipe robot, belonging to the special robot field, is a kind of mechanical and electrical integration system to complete the pipeline operation. Typical in-pipe robots are divided into Smart PIGs, wheeled robots, tracked robots, and telescopic robots according to different driving mechanisms.7 Comparison of typical inpipe robot is shown in Table 1. Each type has some 1
School of Automation Science and Electrical Engineering, Beihang University, Beijing, China 2 Collaborative Innovation Center of Advanced Aero-Engine, Beihang University, Beijing, China Corresponding author: Jing Yang, School of Automation Science and Electrical Engineering, Beihang University, Beijing 100191, China. Email:
[email protected]
Creative Commons CC-BY: This article is distributed under the terms of the Creative Commons Attribution 3.0 License (http://www.creativecommons.org/licenses/by/3.0/) which permits any use, reproduction and distribution of the work without further permission provided the original work is attributed as specified on the SAGE and Open Access pages (https://us.sagepub.com/en-us/nam/ open-access-at-sage).
2
Advances in Mechanical Engineering
Table 1. Comparison of typical in-pipe robot. Driving mechanism Smart PIGs Wheeled robots
Simple structure Wall pressed
Tracked robots Telescopic robots
Speed
Diameters of pipelines
Traction force
Others
Not sure Fast Slow Less fast Slow
Medium or large Medium or large Small or medium Medium or large Small or medium
Small Small Large Medium Large
Uncontrolled motion state Poor climbing capacity Complex control Poor climbing capacity Good waterproof sealing performance
Table 2. Definition of the pipe diameter.2 Definition
Pipe diameter (mm)
Small Medium Large
40–150 150–250 .250
merits over others in certain aspects. The actual design adopted may depend on the task space of the required applications. We should keep in mind that in-pipe robots must be as simple and reliable as possible if they are to be used for the underground pipelines laid by the HDD (Table 2). Smart PIGs have been a typical example for passive locomotion robots. Passive devices, despite of their simple and economical structure, can make some trouble in the control.8 The wheel robots can be divided into simple structure wheel robot and wall-pressed-type wheel robot.9 Inspired from ground moving vehicles, early developers directly applied the four-wheel construction, such as IBAK robot, KA-TE robot, and OPTIMESS robot. They have simple structure and better velocity control. However, the traction depends on the frictional force between the wheel and the pipeline, which is correlated with the mass of the robot. In order to adapt to the particular in-pipe environment, many of the modifications have been tried. One is to add weight and equip the robot with more wheels for climbing, taking MAKRO10 and Piko11,12 for example. As the number of wheels increases, the degrees of freedom and the complexity of control strategies also increase. Another one is to equip the robot with magnetic wheels so that it can adhere to the iron-made pipelines.13,14 However, the robot only applies to the iron-made pipelines. To strengthen the climbing ability, the wallpressed-type wheel robot is developed. The wheels are mounted on the elastic arms which provide adaptability and required frictional force to the robot, such as MRINSPECT robot,17 PipeTron robot,15 and Explorer robot.16 But these robots have several defects such as complex control strategies and large intersecting surface. Similar to the wheel robot, the tracked robot has large intersecting surface and large weight. Obviously, Smart PIGs, wheeled robots, and tracked robots have
difficulties in adapting to such complex environments. Aiming at the characteristics of the underground pipeline laid by the HDD, a new type of telescopic in-pipe robot is presented in this article. It employs the motorscrew-driven structure with supporting wheel mechanism (SWM) to provide large traction force under a stable motion state. The architecture of the robot is simple and symmetric. It has small intersecting surface and can be used for the pipeline whose diameter is more than 70 mm. As a stable and reliable work platform, it is suitable for positioning and detection of the underground pipeline. The core of the pipeline survey is usually positioning of the underground pipeline, which gets the threedimensional (3D) coordinates to draw the pipeline laying track. In the current research, many kinds of positioning methods have been studied.18–20 However, it is difficult to apply the positioning methods to robots in such special working environment. The limitations of different methods are as follows: the positioning error determined by the odometer wheel accumulates greatly,21 the static magnetic field method is easily disturbed by the magnetic field and the pipeline parameters,22 the accuracy of the low-frequency electromagnetic pulse is also influenced by the pipeline parameters,23 and the curvature sensor positioning is not suitable for straight pipeline. Scan matching is the process of matching two range scans obtained from a range device such as a camera, which has been applied to robot’s position in indoor and outdoor environments.24–26 It is difficult to ensure the accuracy of the scan matching for the long, straight pipelines with no feature. And the accuracy of the scan matching is influenced by the effects of lighting. With the development of the inertial technology, it becomes anti-disturbance and autonomic.27–29 First, it uses accelerometers and gyroscopes which are fixed on the robot to measure accelerations and angular velocities, respectively. Second, the attitude angle of the robot can be determined by the attitude calculation method. Then, the odometer is used to measure the mileage information of the system. Finally, the robot’s movement information is calculated only using attitude angles and the mileage information by the 3D dead reckoning. It can overcome the disadvantages of traditional positioning methods
Song et al. under the condition of disturbances, variable pipeline depths, and no features. The underground pipeline maintenance is to carry out non-destructive testing of the pipeline that aimed to find out whether there is a crack or collapse. The CCTV (closed-circuit television) monitoring system installed on the robot is a kind of important means for the pipeline non-destructive detection, such as the PipeTron robot, Explorer robot, and Inuktun.16,30 It uses the length of the cable to locate the robot and identifies the pipeline fault depending on the operators’ experiences. It lacks pipeline fault autonomic identification function. With the rapid development of visual identification technology, it becomes possible to identify and classify the pipeline fault automatically. The fast median filter algorithm and image edge detection are designed to enhance the quality of the image and highlight the profile of the fault area. Then, the feature information is extracted from the image according to the distribution characteristics of the typical pipeline fault area. Finally, the improved K-mean clustering method is used to classify the pipeline fault. Aiming at the characteristics of the underground pipeline laid by the HDD, a new type of telescopic inpipe robot is presented in this article. It employs the motor-screw-driven structure with SWM to provide large traction force under a stable motion state. The inertial technology is applied to survey the pipeline to get the 3D information of the pipeline laying track. The positioning method includes the attitude angles’ measurement, attitude calculation method, and 3D dead reckoning. The 3D information can be measured, which is immune to disturbances and compatible with pipes of all materials. The pipeline fault detection algorithm based on the visual identification technology is designed to carry out non-destructive testing of the pipeline. The algorithm can be divided into three stages: image preprocessing, the fault feature extraction, and the fault classification. It can identify and classify the pipeline fault automatically. The robot in this article can meet the positioning and detection needs of the underground pipelines laid by the HDD.
3 2. 3.
4.
5.
6.
The robot can adapt to the pipelines with different materials and diameters. The robot may provide stable motion state and large traction force. Its maximum climbing angle is 35°. The robot has the capability to take extra load and provide extra power to extend to other modules, such as carrying ultrasonic flaw detector. The waterproof sealing performance is IP68 for the pipelines with large quantities of sewage sludge. The robot may measure 3D locations of its walking path precisely under the condition of disturbances and variable pipeline depths. Therefore, the position of the pipeline can be measured by the robot. The CCTV monitoring sub-system is required by the robot to transmit the video signal collected in the pipeline to the monitor computer in real time. The pipeline fault detection algorithm based on the visual identification technology is required to assist the operator to identify the pipeline fault.
Mechanical structure The mechanical structure of the robot system consists of SWM, locking mechanism (LM), telescopic mechanism (TM), and main body (MB), as shown in Figure 1(a). The function of each mechanism is as follows: 1.
MB. The control module and positioning module of the robot are installed inside the MB to avoid external damage. The MB also has good waterproof sealing performance.
System structure The in-pipe robot developed in this article is used to measure the location of small- or medium-diameter pipelines laid by the HDD autonomously. While 3D location of its walking path is recorded continuously, the pipeline fault is detected in unknown complex environment. Therefore, the robot functions should be defined as follows: 1.
The robot can walk up to 200 m inside the pipeline under the control of the monitor computer.
Figure 1. Mechanical structure of the system: (a) model and (b) prototype.
4
Advances in Mechanical Engineering
Figure 2. Telescopic mechanism (TM).
Figure 3. Locking mechanism (LM).
2. 3.
4.
TM. The basic telescopic action is executed to realize robot’s walking. LM. There is same structure between locking mechanism A (LMA) and locking mechanism B (LMB). LM is locked when crutch legs keep locking with the pipe wall. SWM. There is same structure between supporting wheel mechanism A (SWMA) and supporting wheel mechanism B (SWMB). When LM is unlocked, the SWM supports the robot.
As shown in Figure 1(b), the overall length of complete robot is 1.7 m. There are four segments connected by flexible hinges. It has small intersecting surface and can be used for the pipeline whose diameter is more than 70 mm. The TM consists of a step motor, shaft coupling, bearing, ball nut, nut seat, linear bearing, scalable putt, guide rail, ball screw, position limit device, and connecting seat as shown in Figure 2. The step motor is installed in the motor chamber, and the output shaft of the motor is connected with the fixed side of the ball screw through a shaft coupling. The rotary motion of the motor shaft is converted into the axial movement of the ball nut, and the nut seat is driven to execute the extension and contraction of the TM. The TM is equipped with two guide rails which are used to limit the rotation of the ball nut and increase the strength of the system. The nut seat is fixed with a ball linear
bearing, and the friction between the guide rail and the nut seat is reduced. The LM (shown in Figure 3) is a motor-screw-driven structure, which is similar to the TM. The step motor is installed in the motor chamber, and the output shaft of the motor is connected with the ball screw through a shaft coupling. The rotary motion of the motor shaft is converted into the axial movement of the ball nut, and the supported area is pressed strongly against the pipe walls by the crutch legs to realize reliable locking of LM. The SWM has three wheels fixed circumferentially 120° apart from each other. One end of the crutch leg is connected to the installation base, and the other end is connected to the movable support. The center of the movable support is equipped with a linear bearing. A spring is arranged between the movable support and the fixed base. Under the action of the spring, the supporting wheel can be pressed against the pipe walls (Figure 4).
Hardware design The hardware design of the robot system consists of three parts (Figure 5): motherboard of the in-pipe robot, sensor system, and monitor computer. The hardware circuit of the in-pipe robot can be divided into power supply module, Digital Signal Processor (DSP) + Complex Programmable Logic Device (CPLD) module, motor drive module, communication module, navigation module, and video transmission module. The functions of each module are as follows:
Song et al.
5
Figure 4. Supporting wheel mechanism (SWM).
Figure 5. Hardware design of the system.
1.
2.
3.
4.
5.
Power supply module. It supplies the operating voltage to other modules of the in-pipe robot system. DSP + CPLD module. It is the core of the control circuit, which is responsible for the control and conversion of walking state, data acquisition and processing, and so on. Motor drive module. It receives the control signal from DSP + CPLD module and generates the control pulse sequences of the step motor. Communication module. DC-carrier technology is employed to realize the real-time two-way communication between the robot and the monitor computer, and a RS232 interface is integrated for system expansion. Navigation module. Navigation module is mainly composed of gyroscopes and accelerometers which are fixed on the robot to measure angular velocities and accelerations, respectively. Combined with the mileage information
6.
obtained by the odometer, the robot’s movement information is calculated in the DSP + CPLD module. Video transmission module. It is responsible for uploading videos, captured by the CCD (charge-coupled device) camera, to the monitor computer.
Software design This section describes the special software developed for the monitor computer which is designed according to the framework of the robot control system. This software includes five modules as shown in Figure 6: 1.
2.
Control/communication module. It controls the robot remotely and communicates with it in real time. It sends control messages to the robot and receives the robot state information. Video capture module. It receives analog video signal captured by the CCD camera.
6
Advances in Mechanical Engineering
Table 3. Definitions and descriptions. Definition
Description
Location
m fi ði = 1, 2, . . . , 6Þ mw fwj ðj = 1, 2, . . . , 6Þ Ni ði = 1, 2, . . . , 6Þ Nlegi ði = 1, 2, 3Þ
Static friction coefficient Static frictional force Rolling friction coefficient Rolling frictional force Each crutch leg of LM exerts the pressure Each crutch leg exerts the force because of the LM screw’s thrust force F Each wheel exerts the force because of the SWM’s spring. The robot’s gravity force
Between pipe wall and each crutch leg
Nw Mg
Between pipe wall and each wheel On the pipe wall
LM: locking mechanism; SWM: supporting wheel mechanism.
Figure 6. Software design of the system.
3.
4.
5.
Calculation module. It expresses the 3D trajectory of the robot in OpenGL coordinate system. The pipeline fault detection algorithm based on the visual identification technology assists the operator to identify the pipeline fault according to the video information. Display module. It contains the 3D trajectory display module and the video display module. The 3D trajectory display module expresses the robot walking path (pipeline) in both 3D and 2D graphics. The video display module shows the underground pipeline inside video in real time. The software interface is shown in Figure 7(a) and (b). It can achieve a panoramic description of the underground pipeline. Data management module. It saves the 3D trajectory information and videos of the underground pipeline in special format. It is helpful to further research.
Analysis of the in-pipe robot performance The mechanical model is set up and the force analysis is presented, which includes the cable’s towing resistance (fcable ), the locking condition analysis of the LM, and the screw’s load forces. Then, based on the force analysis, the climbing and load capacity are calculated. Finally, waterproof ability and passing ability of the inpipe robot are analyzed.
Figure 7. Software interface: (a) 3D trajectory display interface and (b) video display interface.
Force analysis of the in-pipe robot In order to analyze the force conveniently, the definitions of some parameters and their descriptions are shown in Table 3.
Song et al.
7
Figure 8. Force analysis: (a) robot stays in an inclined pipeline and (b) LMA status of the robot.
Figure 9. Underground pipelines.
Table 4. Calculation parameters. L a1 a2 h L1 L2 L3
200 m 35° 35° 10 m 13.95 m 158.42 m 13.95 m
l1
rc (the cable’s linear density)
Length: 6.84 m a3: 17° Length: 6.84 m a4: 17° 0.1 g/m
mc
0.4
l2
mc is obtained from pages 36–37 of the book ‘‘Mechanical design manual.’’
As shown in Figure 8(a), the robot stays in a pipeline with a dip angle u. Figure 8(b) is the LMA status of the robot. To ensure reliable locking of LMA, N1 , N2 , and N3 are exerted, so f1 , f2 , and f3 will be created. To let the robot walk upward with the velocity of v, the TM needs to overcome fcable and the Mg component. Cable’s towing resistance. This robot is mainly used for the pipeline laid by the HDD. These pipelines typically consist of three parts (shown in Figure 9): horizontal pipeline (L2 ), curve pipelines (l1 , l2 ), and inclined straight pipelines (L1 , L3 ). The curvature radius r of l1 , l2 is more than 400D (D: diameter of the pipeline); therefore, it can be approximately regarded as straight pipeline during the estimation of fcable .
Generally, a1 and a2 range from 10° to 20°, special pipelines to 30°. Assume that a1 and a2 are 35°. We should note that the sliding friction coefficient (mc ) between PVC (polyvinyl chloride) cable and pipeline changes with the material of the pipeline. When fcable is calculated, the maximum mc (between the steel pipeline and the PVC cable) is used. The calculation parameters of fcable are designed in Table 4. The cable’s towing resistance31 is Fl = rc g(mc cos uc + sin uc ) L
ð1Þ
Using equation (1), fcable at the end of the underground pipelines can be calculated fcable = 76:19N
ð2Þ
8
Advances in Mechanical Engineering To have adequate safety allowance, fcable = 100N.
Locking condition analysis of LM. Reliable locking of LM is a precondition for the robot’s walking. As shown in Figure 8(a) and (b), to ensure reliable locking of LMA, N1 , N2 , and N3 are exerted, so f1 , f2 , and f3 will be created. The locking condition of LMA is written as 3 X i=1
fi =
3 X
mNi FLMA
ð3Þ
i=1
where FLMA is the axial traction of LMA. P3As long as the materials of the robot are determined, i = 1 fi only depends on Ni . As shown in Figure 8(a), LMA, SWMA, and SWMB support the robot together. Corresponding to actual case, assuming that LMA, SWMA, and SWMB bear m1 Mg, m2 Mg, and m3 Mg, respectively, (m1 +m2 +m3 = 1). Then, N1 , N2 , and N3 can be presented as 8 > < N1 = Nleg1 + N2 = Nleg2 + > : N3 = Nleg3
2m1 Mg p cos ffiffi usin u 3 2m1 Mg cos usin pffiffi (1208u) 3
8 < dyD = lB cos b dx = ðlA sin a + lB sin bÞ : A lA cos a = lB cos b
ð4Þ
Each LM has three crutch legs fixed circumferentially 120° apart from each other. Due to circumferential symmetry of LM’s crutch legs, it is considered that screw’s thrust force exerted on each crutch leg is F=3 (an ideal case). Corresponding to actual case, screw’s thrust force exerted on each crutch leg Nlegi (i = 1, 2, 3) is n1 F, n2 F, and n3 F (n1 + n2 + n3 = 1). The mechanical model of the crutch leg is necessary to be established as shown in Figure 10 8 < yD = d + lB sin b + rB ð5Þ x = lA cos a + lB cos b : A lA sin a + rA = lB sin b + rB
ð6Þ
Based on the principle of virtual displacement, there is Nleg1 dyD + n1 FdxA = 0
where Nlegi (i = 1, 2, 3) is that each crutch leg exerts the force because of the LM screw’s thrust force F. Similarly, Nwj (j = 1, 2, . . . , 6) can be obtained 8 2m2 Mg p cos > ffiffi usin u > < Nw1 = Nw + 3 2m2 Mg cos usin pffiffi (1208u) > Nw2 = Nw + 3 > : Nw3 = Nw 8 2m3 Mg p cos ffiffi usin u > > < Nw4 = Nw + 3 2m3 Mg cos usin pffiffi (1208u) Nw5 = Nw + > 3 > : Nw6 = Nw
The differential equation of equation (5) is
Figure 10. Mechanical model of the LM’s crutch leg.
ð7Þ
Choosing rA = rB and lA = lB = l, there are geometric relations 8 qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi > < xA = 2 l2 (yD d rA )2 ð8Þ y d rA > : tan a = tan b = 2 D xA Equations (6)–(8) lead to y D d rA Nleg1 = 2n1 qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi F l 2 ðy D d rA Þ2
ð9Þ
Similarly, Nleg2 and Nleg3 can be obtained y D d rA Nleg2 = 2n2 qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi F l 2 ðy D d rA Þ2 y D d rA Nleg3 = 2n3 qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi F l 2 ðy D d rA Þ2 According to the above equations, N1 , N2 , and N3 can be presented 8 yD d rA 2m1 Mg cos u sin u > > pffiffiffi > N1 = 2n1 qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi F + > > 2 3 2 > ð y d r Þ l > D A > > > > < yD d rA 2m1 Mg cos u sin (1208 u) pffiffiffi N2 = 2n2 qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi F + 2 3 > l2 ðyD d rA Þ > > > > > > yD d rA > > ffiF > > N3 = 2n3 qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi : l2 ðyD d rA Þ2
Song et al.
9
The locking condition of LMA is written as 8 > < y D d rA 2m1 Mg cos u sin u pffiffiffi fi = mNi = m 2n1 qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi F + > 2 3 2 : i=1 i=1 l ð y D d rA Þ 3 X
3 X
9 > =
y D d rA 2m1 Mg cos u sin (1208 u) y D d rA pffiffiffi + 2n3 qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi F + 2n2 qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi F + > 3 l 2 ðy D d rA Þ2 l 2 ðy D d rA Þ2 ; 8 9 > > < = y D d rA = m 2 qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi F + 2m1 Mg cos u sinðu + 308Þ > > : ; l 2 ðy D d rA Þ2 Above results indicate that the locking condition of LMA is not correlated with the screw’s thrust force exerted on each crutch leg Nlegi (i = 1, 2, 3) (n1 F, n2 F, and n3 F). The locking condition of LMA is related to m1 Mg (LMA bears the gravity of the relevant). When P3 P3 value m1 = 0, i = 1 fi has the minimum i = 1 ffi fi = qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi P3 2 2 i =1 mNi =m 2((yD d rA )=( l (yD d rA ) ))F. It is necessary to increase F for the reliable lock of the LM. Screw’s load forces of TM. TM executes the contracting action when LMA is locked and LMB is unlocked (shown in Figure 8(a)). The axial load force of the screw of the TM (F1 ) is presented as F1A = =
6 X 1 Mg sin u + mw Nwj + fcable 2 j=4
1 Mg sin u + 3mw Nw 2 2 + mw Mg cos u sin(u + 308) + fcable 3
=
F1AMAX = 187:8 N F1AMIN = 104:2 N F1BMAX = 87:8 N F1BMIN = 4:2 N F1MAX = max (F1AMAX , F1AMIN , F1BMAX , F1BMIN ) = 187:8N
ð12Þ F1MIN = min (F1AMAX , F1AMIN , F1BMAX , F1BMIN ) = 4:2N ð13Þ Ignoring the friction between the screw and the guide rail, the equivalent load of the screw is 2F1MAX + F1MIN 3 2 3 187:8 + 4:2 = 126:60N = 3
Fm = ð10Þ
When LMA is unlocked and LMB is locked, the axial load force of the screw of the TM (F1 ) is written as F1B =
Combining equations (10) and (11) with Table 5, F1AMAX , F1AMIN , F1BMAX , andF1BMIN can be calculated
3 X 1 Mg sin u + mw Nwj 2 j=1
1 2 Mg sin u + 3mw Nw + mw Mg cos u sin(u + 308) 2 3
Then, the rating dynamic load of the screw32 is ffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi ffi p 3 Cam = 60n1a Lh ((Fm fw )=(100fa fc )) = 41:943Fm . When Fm = 126:60 N, Cam can be written as Cam = 41:943 3 126:60 = 5:31 kN. The ball screw FSI20-5T3 is used for the screw of the TM, and its rating dynamic load 11.4 kN is far greater than Cam (when u is 0°–35°). Apparently, robot’s maximum climbing angle is larger than 35°. Obviously, the climbing ability designed for robot is enough. According to the force analysis and equation (12), the maximum load of the motor of the TM is
ð11Þ
Calculation of climbing and load capacity
Table 5. Parameters of the screw’s load forces of TM.
The parameters of the screw’s load force of TM (F1 ) are designed as shown in Table 5. Then, the maximum and minimum values of F1 are estimated. Finally, the climbing ability is analyzed based on the performance index of the screws and step motors.
Nw k r uw = k=r u (assumed value)
5N 0.5 mm 25 mm 0.02 0°–35°
M g fcable m u
30 kg 9.8 N/kg 0–100 N 0.4 0°–90°
10
Advances in Mechanical Engineering 1 m Mg + F1MAX 2 g = 0:5 3 0:2 3 30 3 9:8 + 187:8 = 217:20 N
FLoad1 =
where mg is the friction coefficient between the LM and the guide rail. The friction torque produced by FLoad1 is FLoad1 Ph1 3 103 2ph 240:3 3 5 3 103 = 0:20 N m = 2p 3 0:85
TF =
where h and Ph1 are the efficiency and nominal lead of the screw, respectively. The FSI20-5T3 chooses no pre-tightening structure, so the pre-tightening torque is presented as Tp = 0 When the speed of the motor increases from 0 to the maximum speed, the maximum acceleration torque can be written as Tam = J
2pn1max 60ta
= 1:17 3 104 3
Waterproof ability In order to ensure the reliable operation of the robot in the complex environment, the protection level of IP68 is adopted for a good waterproof performance. It can prevent dust from entering into the MB completely, and it enables the robot immersing under water of 10 m depth for 24 h without affecting its normal work. As shown in Figure 1(b), the material of the SWM adopts 304 stainless steels for corrosion resistance and the LM, TM, and MB are made by aviation aluminum. Several waterproof measures of the TM (shown in Figure 11) are taken as follows: 1. 2.
2p 3 1000 = 0:01 N m 60 3 1
where J is the total moment of inertia of the motor, n1max is the maximum speed, and ta is the total acceleration time. The maximum starting torque TR of the step motor consists of the friction torque, the pre-tightening torque, and the maximum acceleration torque TR = TF + Tp + Tam = 0:20 + 0 + 0:01 = 0:21 N m The relation between the static torque and the maximum starting torque of the step motor is as follows TS =
The two-phase hybrid step motor SS2304A42A is adopted by TM, and its static torque is 2.4 Nm which is far greater than TS . Apparently, the robot’s load capacity is strong enough to equip with other modules for the functional extension, such as ultrasonic flaw detector.
TR 0:21 = 0:42 0:7 N m = 0:3 0:5 0:3 0:5
Figure 11. Waterproof design of the TM.
3. 4.
The main interface uses the 55° sealing pipe thread and the O-type rubber sealing ring. A retractable waterproof screw sheath is added to the lead screw that is connected to the MB with the flange. The cable connection of the TM is waterproof. The important interface is protected by the waterproof sealant.
The waterproof design of the LM is same as that of the TM because of the similar structure. The MB must have good waterproof sealing performance which installs the control module and positioning module of the robot to avoid external damage. In order to verify the waterproof performance of the MB, the water pressure test should be carried out. It is difficult to observe the waterproof condition of the MB under the water, so a waterproof experimental device is designed. And it is easy to observe the waterproof condition outside the MB through the waterproof experimental device. It includes the MB, waterproof cable connection,
Song et al.
11
Table 6. Water pressure test. Simulated h (m)
Patmos (MPa)
Pwater = rgh (MPa)
Pinside (MPa)
Ptest (MPa)
Test time (h)
DP (MPa)
Waterproof condition
3 5 10
0.101325 0.101325 0.101325
0.0294 0.0490 0.0980
0.130725 0.150325 0.199325
0.16 0.18 0.24
24 24 24
0.01 0.01 0.02
Without water stain Without water stain Without water stain
DP is the pressure drop.
Figure 12. Waterproof experimental device.
catheter, pressure gauge, and valve (shown in Figure 12). In order to simulate that the MB is under the water, there is certain pressure inside the MB which is equivalent to the underwater environment. When the robot works under the water, the pressure P of the MB is equal to the water pressure Pwater = rgh, where r is the density of water, g is the gravitational acceleration, and h is the depth of water. In order to simulate that the MB is under the water, the pressure Pinside inside the MB is equal to the atmospheric pressure Patmos (101.325 kPa) plus the water pressure Pwater . As shown in Table 6, simulated h is 3, 5, and 10 m depth, respectively. To have adequate safety allowance, Ptest is designed to be greater than Pinside . After 24 h, there is a pressure drop DP (DPmax = 0:02 MPa), but there is no water stain outside the MB. The results of the water pressure test show that the MB has the protection level of IP68 (Figure 13).
Figure 13. Water pressure test.
Passing ability analysis of the robot through the pipelines with bends As shown in Figure 1(b), the overall length of complete robot is 1.7 m. There are four segments connected by flexible hinges. The longest segment is the MB with a length of 530 mm, while the shortest segment is the SWM with a length of 76 mm. So, the passing ability of the robot through the curve pipe depends on the longest segment. As shown in Figure 14, if the robot can pass through the curve pipe, there is a geometric relation
Figure 14. Passing ability analysis of the robot.
R
D +d 2
2 +
2 L D 2 \ R+ 2 2
12
Advances in Mechanical Engineering That is 2
L d R. 8ðDd Þ2
where R is the curvature radius of the curve pipe, D is the diameter of the pipeline, L is the length of the longest segment, and d is the circumcircle diameter. The designed robot is applicable to the pipelines with a diameter of more than 70 mm. Choosing d = 63 mm and L = 530 mm, R is only larger than 71:21D when the diameter of the pipeline is 70 mm. When the diameter of the pipeline is 80 mm, R is only larger than 25:42D. Underground pipelines are divided into directly buried pipelines and trenchless pipelines. The directly buried pipelines can be approximately regarded as straight pipeline. As shown in Figure 9, the curvature radius of the trenchless pipelines is larger than 400D. It is clear that the curvature radius of the underground pipelines has no effect on the robot.
Control method Autonomous walking of the in-pipe robot The walking of the telescopic in-pipe robot in the pipeline has the characteristic of intermittent type, and the long-distance walking consists of many basic telescopic movements. In order to describe the walking principle conveniently, the movement principles of the TM and LM are introduced as follows. The extension and contraction of the TM: the TM (shown in Figure 2) is a motor-screw-driven structure. The step motor is installed in the motor chamber, and the output shaft of the motor is connected to the fixed side of the ball screw through a shaft coupling. The rotary motion of the motor shaft is converted into the axial movement of the ball nut, and the nut seat is driven to execute the extension and contraction of the TM. When the motor of the TM rotates in the positive direction, the TM executes the extension. On the contrary, when the motor rotates in the negative direction, the TM executes the contraction. The reliable locking of the LM: the LM (shown in Figure 3) is a motor-screw-driven structure, which is similar to the TM. The step motor is installed in the motor chamber, and the output shaft of the motor is connected to the ball screw through a shaft coupling. The rotary motion of the motor shaft is converted into the axial movement of the ball nut. When the motor of the LM rotates in the positive direction, the supported area is pressed strongly against the pipe walls by the crutch legs to realize reliable locking of the LM. On the contrary, when the motor rotates in the negative direction, the supported area moves away from the pipe walls and the LM is unlocked. As shown in Figure 15(a)–(d), the robot walks along the pipe to the left, and a basic telescopic movement is composed of the following states:
Figure 15. Walking principle: (a) state A, (b) state B, (c) state C, and (d) state D.
State A. Two LMs are locked to prevent the robot from moving freely. State B. When the LMA is unlocked and the LMB is locked, the TM executes the extension and the robot’s front end moves to the left driven by the TM. State C. When the LMA is locked and the LMB is unlocked, the TM executes the contraction and the robot’s back end moves to the left DL driven by the TM. State D. The robot repeatedly executes state B and state C to achieve long-distance walking. If the robot wants to walk along the pipe to the right, the robot should first execute state A; second, execute state C; third, execute state B; and finally, repeatedly execute state C and state B to achieve long-distance walking. There is a human intervention by the operator in special case such as ‘‘Y’’-type branching in the pipeline. The operator makes a decision about how the robot passes the ‘‘Y’’-type pipeline, then the monitor computer sends control messages to the robot, and finally, the robot passes the ‘‘Y’’-type branching in the pipeline with human intervention. The walking patterns of the telescopic in-pipe robot can be divided into continuous forward walking (CFW), continuous backward walking (CBW), single step forward walking (SSFW), and single step backward walking (SSBW). With the help of the SWM, the robot’s walking path is fixed in the pipeline, so the control of the robot’s walking patterns focuses on the coordination control of the robot’s mechanisms. In order to limit the power consumption in motor, there is only
Song et al.
13
Table 7. Definition of input signals.
Table 8. Definition of output signals.
Input signals
Output signals
P
Values and definitions
P3 (LMB) P2 (LMA) P1 (TM) N2 (LMB) N1 (LMA)
N S T
0
1
Not reached Not reached Not reached Not reached Not reached Not reached Not reached
Reached Reached Reached Reached Reached Received Received
one motor at work at the same time. Based on the above analysis, the control of the robot’s walking patterns can be attributed to the working state conversions among the motor of the TM, the motor of the LMA, and the motor of the LMB. Finite-state machine theory is good at describing finite state and its transformation. It is widely used in digital circuit design, software design, and robot control. Therefore, the input and output events of the four basic walking patterns are abstracted based on the finite-state machine theory and the state sets of the different walking patterns are designed. The input and output signals of the state machine. The input signal of each walking pattern is as follows: 1.
2. 3.
4.
Limiting displacement signal (P). It prevents the TM and the LMs out of the safe journey of the screw. The pressure signal of the LM (N). It detects the pressure Ni . Stop signal (S). It expresses whether the robot received the stop instruction from the monitor computer or not. Single step signal (T). It expresses whether the robot received the single step instruction from the monitor computer or not.
The values of the input signals and their definitions are shown in Table 7. The output signal of each walking pattern consists of a four-bit binary number (M = M4M3M2M1), which is, respectively, the direction of rotation and the enabling signal of three motors. The values of the output signals and their definition are shown in Table 8, for example, M = 1010 expresses that motor of the LMA reverses. State machine description of basic walking patterns. The walking patterns of the telescopic in-pipe robot can be divided into CFW, CBW, SSFW, and SSBW. On the basis of the walking principle of the robot, the control
M
M4 M3 (LMB) M2 (LMA) M1 (TM)
Values and definitions 0
1
Positive rotating Not enabled Not enabled Not enabled
Negative rotating Enabled Enabled Enabled
of the robot’s walking patterns can be attributed to the working state conversions among the motor of the TM, the motor of the LMA, and the motor of the LMB. Thus, the control logic of autonomous walking of the in-pipe robot is that how to convert the working state among three motors. Finite-state machine theory is good at describing finite state and its transformation. So, we use the finite-state machine to describe the robot walking patterns in order to get the state transition diagram. The mathematical model of the state machine can be described as follows M = (Q, S, d, q0 , F) where Q is the finite set of the state and it is not empty, S is the set of all input events received by the state machine, d is the state transition function, q0 is the initial state of the state machine, and F is the set of the state of termination. According to the walking principle of the robot, the robot repeatedly executes the basic telescopic action until the monitor computer sends the stop instruction, so the state machine models of CFW and CBW are as follows Q1 = fS0 , S1 , S2 , S3 , S4 , S5 , S6 , S7 g; S1 = fP, N , Sg; q10 = fS0 g; F1 = fS7 g where S0 is the initial state, S1 is the state that LMB is locked, S2 is the state that LMA is unlocked, S3 is the state that TM stretches, S4 is the state that LMA is locked, S5 is the state that LMB is unlocked, S6 is the state that TM contracts, and S7 is the state of termination. When the robot receives the CFW instruction, the robot begins the CFW pattern. The state transition diagram of CFW is shown in Figure 16. Similar to the CFW mode, the state transition diagrams of CBW, SSFW, and SSBW are obtained respectively. Single step walking pattern of the in-pipe robot can make operators carry out non-destructive testing of the pipeline step by step. Conversion of walking patterns. The operators can change the walking patterns of the robot through the monitor
14
Advances in Mechanical Engineering
Table 9. Definition of control signals. C
A0
A1
A2
A3
A4
A5
Control signals
000
001
010
011
100
111
respectively. Combined with the mileage information, 3D location of the robot’s walking path is calculated by the dead reckoning algorithm. Attitude calculation method. The geographic coordinate system (east-north-up) is chosen for the navigation coordinate system (OXn Yn Zn ). The carrier coordinate system (OXb Yb Zb ) is defined as forward-left-up. The process that converts OXb Yb Zb to OXn Yn Zn is as follows x b y b zb
Figure 16. State transition diagram of CFW.
xb y0 z0 0 ! x0b y0b z0b b ! x00b y00b z00b b ! xn yn zn g u c
where c, u, and g are yaw, pitch, and roll angles, respectively. So, the transformation matrix is 2
xn
3
2
cos c
sin c 0
32
cos u
0
6 7 6 76 1 4 yn 5 = 4 sin c cos c 0 54 0 0 0 1 zn sin u 0 2 3 2 32 3 xb 1 0 0 xb 7 6 76 7 n6 4 0 cos g sin g 54 yb 5 = Cb 4 yb 5 0
sin g
cos g
zb
sin u
3
7 0 5 cos u ð14Þ
zb
The direction cosine matrix Cnb is an orthogonal matrix, so Cnb = ½Cbn T . Cnb is defined as 2
T11 Cbn = 4 T21 T31 Figure 17. State transition diagram of the conversion of walking patterns.
computer. And the state machine model of the walking pattern conversion is as follows Q2 = fA0 , A1 , A2 , A3 , A4 , A5 g; S2 = fCg;
q20 = fA0 g;
F2 = fA5 g
where A0 is the initial state, A1 is the CFW, A2 is the CBW, A3 is the SSFW, A4 is the SSBW, A5 is the state of termination, and C is the control signal. The values of the control signals and their definitions are shown in Table 9. Based on the above analysis, the state transition diagram of the conversion of walking patterns is shown in Figure 17.
3D information measurement method Dead reckoning algorithm is used to calculate 3D information. Accelerometers and gyroscopes are fixed on the robot to measure accelerations and angular velocities,
T12 T22 T32
3 T13 T23 5 T33
ð15Þ
According to equations (14) and (15), the principal value of the three attitude angles can be derived as 8 T21 > > < cm = arctan T11 um = arcsinðT31 Þ > > : g m = arctan T32 T33
ð16Þ
The true value of the three attitude angles can be determined by the principal value, T11 and T33 , as follows 8 8 > < cm + p T11 \0 > > > > c T11 .0, cm .0 c = > > : m > < cm + 2p T11 .0, cm \0 ð17Þ u = u8m > > T33 .0 < gm > > > > g = g m + p T33 \0, gm \0 > > : : g m p T33 \0, g m .0 The attitude matrix elements can be used to solve the attitude angle of OXb Yb Zb relative to OXn Yn Zn C_ bn = Cbn vbk nb
ð18Þ
Song et al.
15
Table 10. Error of the pitch and roll angles.
Mean Covariance
Pitch angle error ($)
Roll angle error ($)
20.0098 0.1967
0.0047 0.3010
Attitude angles’ measurement. The attitude angles’ measurement method uses gyroscopes for underground applications. Gyroscopes are immune to ferromagnetic and electromagnetic disturbances, but they have considerable DC drifts in a relatively long period of time. The accelerometer has high precision when it is in the static state, but it has poor accuracy when it is in motion. So, a reliable and precise way to measure pitch angle and roll angle is using a 3-axes accelerometer when the robot is in static state. The pitch angle and roll angle are regarded as the initial value of the gyroscope. When the robot is in motion, the output of the gyroscope serves as the attitude angles. According to the attitude matrix Cbn , the output of the accelerometer Ab can be calculated T Ab = Cbn An where Ab = ½ ax ay az T and An = ½ 0 0 g T. An is the output of the accelerometer in unaccelerated state when the navigation coordinate system (OXn Yn Zn ) and the carrier coordinate system (OXb Yb Zb ) coincide. The pitch angle and roll angle can be expressed as follows
Figure 18. Vector’s projection.
2
3 2 T11 T_ 11 T_ 12 T_ 13 6_ 7 6 4 T 21 T_ 22 T_ 23 5 = 4 T21 T31 T_ 31 T_ 32 T_ 33 2 3 b b 0 vnbz vnby 6 b 7 0 vbnbx 5 4 vnbz vbnby vbnbx 0
T12
T13
8 < u = arcsin ax g : g = arctan ay az
3
T22
7 T23 5
T32
T33
ð19Þ
b where vbk nb is the antisymmetric matrix of the vnb . Therefore, as long as the initial attitude angle is given, the differential equation can be determined by the attitude angle rate vbnb , and then the attitude angle of the carrier can be determined at each time.
3D dead reckoning. The 3D dead reckoning is the way that calculates the trace only using attitude angles and the mileage information of the system. Its principle is to divide the trajectory into a number of segments, each of which is determined by the length of the system’s movement within a sampling period (shown in Figure 18). The projection can be written as 8 < DX = Dl cosðuÞ cosðcÞ DY = Dl cosðuÞ sinðcÞ ð20Þ : DZ = Dl sinðuÞ where DX , DY , and DZ are the variety vector of x, y, and z, respectively; u and c are the vector’s pitch angle and yaw angle; and Dl is the vector’s length.
The three axes of the accelerometer are mutually perpendicular. When one axis is at its minimum sensitivity of gravitational acceleration, the other two axes combined will be at the maximum sensitivity. A sensitivity of approximately 17.45 mg/degree at any tilt orientation could be maintained for pitch and roll angles.33 Most of the low-cost MEMS (micro-electro mechanical system) accelerometers can provide 0.1–1 mg resolution. This is accurate enough for the pitch and roll angles. To improve the measuring precision of the attitude angles, the static calibration system of the accelerometer is established, and the error compensation of the accelerometer is calculated. The extended Kalman filter (EKF) is designed to filter out the Ab . The idea of the EKF is to linearize the nonlinear system around the Kalman filter estimate, and the Kalman filter estimate is based on the linearized system. The nonlinear system equations are given as follows x_ ðtÞ = f ðxðtÞÞ + wðtÞ Z ðtÞ = hðxðtÞÞ + vðtÞ where the noise processes w(t) and v(t) are white, zeromean, and uncorrelated. The EKF can be summarized as the time-update equations and the measurement-update equations. The procedure of this algorithm is as follows:
16
Advances in Mechanical Engineering is accurate enough for the attitude angles’ measurement of static state. Finally, the robot’s movement information is calculated by the 3D dead reckoning. The robot’s movement information consists of many relative coordinates. The starting point and the ending point of the pipeline (measured by the whole station instrument or global positioning system (GPS)) are used to improve the accuracy of the robot’s inertial positioning. We develop the conversion from the relative coordinate system to the geographic coordinate system using the starting point and the ending point of the pipeline.
Pipeline fault detection of the in-pipe robot Figure 19. Result of EKF simulation.
1. The time-update equations for ^x and P ^xk + 1jk = ^xk + f (^xk ) Dt + A(^xk ) f (^xk )
Dt2 2
Pk + 1jk = Fk + 1, k Pk FTk + 1, k + Qk where ^x is the state estimation, P is the covariance of the state estimation error, A(^xk ) = ∂f =∂t, and Fk + 1, k = I + A(^xk ) Dt. 2. The measurement-update equations for K, ^x, and P Kk + 1 = Pk + 1jk HkT+ 1 (Hk + 1 Pk + 1jk HkT+ 1 + Rk + 1 )1 ^xk + 1 = ^xk + 1jk + Kk + 1 zk + 1 h(^xk + 1jk ) Pk + 1 = (I Kk + 1 Hk + 1 )Pk + 1jk where K is the Kalman filter gain and Hk + 1 = ∂h=∂x. The pitch angle and roll angle are chosen as the state of the system, and ax and ay =az are the measurement. When az is close to 0, ay =az is a singular value. There : when ax is not are two particular cases about ay =a pzffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi close to g, ay =az = tanfarcsin (ay =( g2 a2x ))g, otherwise ay =az = 0. So the discrete-time equations of the system are as follows
uðk+1Þ uðk Þ = +w g ðk+1Þ g ðk Þ 2 3 8 ax ðk Þ 6 7 < g sin uðk Þ 7 z(k) = 6 4 ay ðk Þ 5 = : tan g ðk Þ az ðk Þ Assuming that the accelerometer can provide 1-mg resolution, the result of EKF simulation is shown in Figure 19. According to Table 10, the pitch angle error is less than 2$ and the roll angle error is less than 3$. It
The CCTV monitoring sub-system is used for the pipeline detection remotely. The telescopic in-pipe robot takes the CCD camera to shoot the video of the pipeline’s interior and transmits it to the monitoring computer through the twisted-pair cable in real time. The transmission principle is shown in Figure 20. The pipeline fault detection algorithm based on the visual identification technology is designed to assist the operator to identify the pipeline fault. In order to identify the fault type of the pipeline, the feature information is extracted from the video information of the CCD camera. Image preprocessing is used to eliminate the influence of noise and distortion caused by the process of the image generation and transmission. The noise of the CCD sensor is the discrete random noise in this article, so the median filter algorithm is chosen for image preprocessing. The fault feature extraction is the core of the visual detection algorithm. For underground pipelines with small or medium diameter, the typical pipeline fault types are generally pipeline cracks, pipeline holes, and pipeline interface tear (shown in Figure 21). The fault area of each fault type has distinctive characteristics. The pipeline’s hole area is close to the circular, the crack area is the branch shaped, and the pipeline interface tear area is annular. According to the characteristics of the fault area, the pipeline fault types are isolated according to different parameters of minimum enclosing rectangle. So, the feature vector ~ f = fl, sg is selected for fault feature extraction, where l and s are the long side and the short side of the minimum enclosing rectangle. Selecting 199 clear pipeline failure image samples (pipeline cracks: 89, pipeline holes: 77, and pipeline interface tear: 33), the feature vector is shown in Figure 22. The distribution of the fault feature vector is different, and the distribution of the vulnerability is in the region. The feature vector of the pipeline hole is ~ fhole 2 A = f30\l\125, 10\s\50g, the pipeline crack is ~ fcrack 2 B = f130\l\350, 20\s\150g, and the
Song et al.
17
Figure 20. Video transmission principle diagram.
Figure 21. Fault types of a typical pipeline: (a) pipeline cracks, (b) pipeline holes, and (c) pipeline interface tear. The figure is adapted from the pipeline fault classification manual of the British Water Industry Commission.
Figure 22. Feature vector {l, s} of typical pipeline fault types.
pipeline interface tear is ~ ftear 2 C = f300\l\500, 300\s\500g. With this feature, the fault classification uses the Kmean clustering method. The distance function of the K-mean clustering method is the Euclidean distance of the sample points to the class center point qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi f (X , Y ) = (x1 y1 )2 + (x2 y2 )2 + + (xn yn )2 , where X is equal to fx1 , x2 , . . . , xn g and Y is equal to fy1 , y2 , . . . , yn g. According to the algorithm, 199 feature vectors are clustered (shown in Figure 23). In Figure 23, asterisk ‘‘*’’ represents the feature vector of the pipeline hole, circle ‘‘O’’ represents the feature vector of the pipeline crack fault, plus sign ‘‘ + ’’ represents the feature vector of the pipeline crack fault, red asterisk shows that the feature vector is clustered as the
18
Advances in Mechanical Engineering
Table 11. Simulation results of the K-mean clustering method. Type
Times
Correct times
Incorrect times
Correct rate (%)
1 2 3 4 5 6 7 8 9 10 11 Total
8 23 50 69 93 131 257 167 99 77 26 1000
176 175 174 173 172 171 170 169 168 167 166 170,187
23 24 25 26 27 28 29 30 31 32 33 28,813
88.44 87.94 87.44 86.93 86.43 85.93 85.43 84.92 84.42 83.92 83.42 85.52
Figure 23. Clustering results based on K-mean clustering method.
Figure 24. Feature vector of typical pipeline fault types.
pipeline hole, blue circle shows that the feature vector is clustered as the pipeline crack, and black plus shows that the feature vector is clustered as the pipeline interface tear. The simulation of pipeline fault detection algorithm based on the K-mean clustering method is carried out 1000 times in MATLAB. The samples are 199 clear pipeline failure image samples (pipeline cracks: 89, pipeline holes: 77, and pipeline interface tear: 33). As shown in Table 11, there are 11 types and each type has different incorrect times. The average correct rate of the Kmean clustering method is 85.52%. The reason for the above simulation results is that the feature vector of the pipeline hole is close to the feature vector of the pipeline crack. And the distribution of the feature vector of the crack is larger than the hole. With this feature, the feature vector ~ f = fl, s, rg is selected for fault feature extraction and the feature vector is shown in Figure 24. In Figure 24, r is l=s and the simulation conditions are similar to Figure 22. With this feature, the fault
classification uses the improved K-mean clustering method. The distance function of the improved K-mean clustering method not only considers the Euclidean distance of the sample points to the class center point but also takes into account the distribution of different regions. The distance function of the improved K-mean clustering method is as follows
f ðX , Y Þ =
qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi ðx 1 y 1 Þ2 + ðx 2 y 2 Þ2 + + ðx n y n Þ2 rx
where X is equal to fx1 , x2 , . . . , xn g, Y is equal to fy1 , y2 , . . . , yn g, and rx is the distribution area of X. According to the improved algorithm, 199 feature vectors are clustered (shown in Figure 25). In Figure 25, asterisk ‘‘*’’ represents the feature vector of the pipeline hole, circle ‘‘O’’ represents the feature vector of the pipeline crack fault, plus sign ‘‘ + ’’ represents the feature vector of the pipeline crack fault, red
Song et al.
19
Table 12. Simulation results of the improved K-mean clustering method. Type
Times
Correct times
Incorrect times
Correct rate (%)
1 2 3 4 5 6 Total
25 91 704 171 1 8 1000
194 193 192 191 190 188 191,936
5 6 7 8 9 11 7064
97.49 96.98 96.48 95.98 95.48 94.47 96.45
Figure 26. Test pipeline.
Field tests
Figure 25. Clustering results based on improved K-mean clustering method.
asterisk shows that the feature vector is clustered as the pipeline hole, blue circle shows that the feature vector is clustered as the pipeline crack, and black plus shows that the feature vector is clustered as the pipeline interface tear. The simulation of pipeline fault detection algorithm based on the improved K-mean clustering method is carried out 1000 times in MATLAB. The samples are similar to Table 11. As shown in Table 12, the average correct rate of the improved K-mean clustering method is 96.45%. The average correct rate of the clustering results increased from 85.52% to 96.45%. A necessary precondition is that the CCTV module can capture the clear image of flaws so as to improve the pipeline fault detection performance. When the pipe is filled with a semi-transparent liquid, the CCTV module captures the unclear image of flaws. The unclear image of flaws will produce effects on the extracting for image features. As the core of the visual detection algorithm, the fault feature extraction directly affects the correct rate of the visual detection algorithm. When there is a doubt whether the pipeline has flaws in engineering, it is supposed to drain the semi-transparent liquid in the pipeline to detect the pipeline again.
The field test is based on the test pipeline, including the positioning test, the climbing and load capacity, passing ability in the bent pipe, and the pipeline fault detection algorithm test. The test pipeline (shown in Figure 26) is designed according to the characteristics of the underground pipelines laid by the HDD. The test pipeline with the length of 97.56 m is laid on the ground in Changping, Beijing. It consists of three parts: horizontal pipeline, curve pipelines, and inclined straight pipelines. The diameter of the pipeline is 140 mm, and the curvature radius is more than 37D. According to the characteristics of the underground pipelines laid by the HDD, the test pipeline can be seen on the ground (shown in Figure 27). The robot achieves the positioning of the walking path through the pipeline. Figure 28, the robot’s walking path (shown in yellow), is compared with the test pipeline trace (shown in red) measured by the whole station instrument. The maximum errors of the vertical and horizontal directions are, respectively, less than 0.05 and 0.10 m. According to ‘‘code for surveying and mapping underground pipelines and cables,’’34 the maximum errors of the vertical and horizontal directions should be, respectively, less than 0.10h and 0.15h (h: depth of the pipeline). Apparently, the positioning accuracy meets the requirements of the Chinese industry. The test pipeline trace has been measured by the whole station instrument. There are 975 measurement points. And the distance between each data point is 10 cm. When we verify the accuracy of the robot’s inertial positioning, the robot climbs this test pipeline with a 30-kg load. Therefore, we can verify the climbing and
20
Advances in Mechanical Engineering
Figure 27. Test pipeline on the ground. Figure 29. Slope angle of the pipeline.
Figure 28. Result of the robot’s inertial positioning.
load capacity according to the test. The two adjacent measurement points among 975 points form a line segment. The slope angle of the pipeline can be calculated by the included angle between the line segment and the horizontal plane. The line segment li is composed of measurement points (xi , yi , zi ) and (xi + 1 , yi + 1 , zi + 1 ). And its directional vector can be described as ~ ei = (xi + 1 xi , yi + 1 yi , zi + 1 zi ). The normal vector of the horizontal plane is ~ m = (0, 0, 1). The included angle ai between the line segment li and the horizontal plane can be presented as ai = arcsin
~ m ei ~ mj j~ ei j j~
According to the above equation, the slope angle of the test pipeline is calculated. The ai (shown in Figure 29) ranges from 236.6886° to 27.3165°. The result shows that the robot can climb the pipeline of 27.3165° with a load of 30 kg. The robot can pass the pipeline with a curvature radius of more than 37D. It is clear that the curvature radius of the underground pipelines has no effect on the robot.
Figure 30. Artificial fault in the PVC pipeline.
To confirm the performance of the pipeline fault detection algorithm, the robot detects the artificial faults in the PVC pipeline (including the pipeline cracks, pipeline holes, and pipeline interface tear), as shown in Figure 30. The robot detects 350 pipeline images (including 281 fault images), and the result of the feature extraction is shown in Figure 31. The algorithm can correctly identify 225 fault images, and the fault recognition rate is as high as 80.07%. The algorithm can classify 190 pipeline faults, and the fault classification rate is 67.61%. Obviously, the pipeline fault detection algorithm based on the visual identification technology can assist the operator to identify and classify the pipeline fault.
Conclusion Typical in-pipe robots have difficulties in detecting the small- or medium-diameter pipelines laid by the HDD
Song et al.
Figure 31. Result of the feature extraction.
with a dip angle ranging from 10° to 20°, special pipelines to 30°. Aiming at the characteristics of the underground pipeline laid by the HDD, a new type of telescopic in-pipe robot is designed in this article, which has prominent climbing and load capacity, autonomic positioning, and the pipeline fault autonomic identification function. The robot can meet the location and detection needs of the underground pipelines laid by the HDD. The mechanical structure of the robot system consists of SWM, LM, TM, and MB. It has small intersecting surface and can be used for the pipeline whose diameter is more than 70 mm. The LM and TM are the motor-screw-driven structures. The output shaft of the motor is connected with the fixed side of the ball screw through a shaft coupling. The rotary motion of the motor shaft is converted into the axial movement of the ball nut, and the nut seat is driven to execute the extension and contraction. The force analysis is presented, which includes the cable’s towing resistance, the locking condition analysis of the LM, and the screw’s load forces. Through force analysis and calculation, the maximum climbing angle of the robot is larger than 35°. With the traction force, the robot can be equipped with other modules to expand the function. In order to adapt to harsh environment, its waterproof grade is designed as IP68 that can work normally for a long time under water of 10 m depth. Based on the passing analysis of the in-pipe robot, it is clear that the curvature radius of the underground pipelines laid by the HDD has no effect on the robot. On the basis of the walking principle of the robot, the control of the robot’s walking patterns can be attributed to the working state conversions among the motor of the TM, the motor of the LMA, and the motor of the LMB. Thus, the control logic of autonomous walking of the in-pipe robot is that how to convert the working state among three motors. The
21 walking patterns of the telescopic in-pipe robot are divided into four patterns: CFW, CBW, SSFW, and SSBW. The four basic walking patterns and conversion of walking patterns are abstracted based on the finitestate machine theory. The state transition diagram describes the control logic of autonomous walking of the in-pipe robot. The inertial technology is applied to survey the pipeline to get the 3D information of the pipeline laying track in this article. First, it uses accelerometers and gyroscopes which are fixed on the robot to measure accelerations and angular velocities, respectively. Second, the attitude angle of the robot can be determined by the attitude calculation method. Then, the odometer is used to measure the mileage information of the system. Finally, the robot’s movement information is calculated through attitude angles and the mileage information by the 3D dead reckoning. The 3D information can be accurately measured, which is immune to disturbances and compatible with pipes of all materials. Through a series of field tests, positioning accuracy meets the requirements of the Chinese industry. The pipeline fault detection algorithm based on the visual identification technology is designed to identify and classify the pipeline fault automatically for inspection. The algorithm can be divided into three stages: image preprocessing, the fault feature extraction, and the fault classification. The fast median filter algorithm and image edge detection are designed to enhance the quality of the image and highlight the profile of the fault area. Then, the feature information is extracted from the image according to the distribution characteristics of the typical pipeline fault area. Finally, the improved K-mean clustering method is used to classify the pipeline fault. The fault recognition rate of the algorithm is as high as 80.07%, and the fault classification rate is 67.61%. Declaration of conflicting interests The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding The author(s) received no financial support for the research, authorship, and/or publication of this article.
References 1. Akbarzadeh H and Bayat A. Investigating ASTM F 1962 arching factor for polyethylene pipes installed by horizontal directional drilling. Tunn Undergr Sp Tech 2014; 39: 50–57. 2. Zayed T and Mahmoud M. Data acquisition and factors impacting productivity of horizontal directional drilling (HDD). Tunn Undergr Sp Tech 2013; 33: 63–72.
22 3. Ma B and Najafi M. Development and applications of trenchless technology in China. Tunn Undergr Sp Tech 2008; 23: 476–480. 4. Wang XH and Song H. The inertial technology based 3dimensional information measurement system for underground pipeline. Measurement 2012; 45: 604–614. 5. Chen Y, Zhou H, Zhang H, et al. Urban flood risk warning under rapid urbanization. Environ Res 2015; 139: 3–10. 6. Xu D. Analysis of environmental factors impact on urban underground pipelines. Adv Mat Res 2015; 1065: 2570–2576. 7. Roh S and Choi HR. Differential-drive in-pipe robot for moving inside urban gas pipelines. IEEE T Robot 2005; 21: 1–17. 8. Guo D and Kundu T. A new transducer holder mechanism for pipe inspection. J Acoust Soc Am 2001; 110: 303–309. 9. Granosik G, Hansen MG and Borenstein J. The OmniTread serpentine robot for industrial inspection and surveillance. Ind Robot 2005; 32: 139–148. 10. Rome E, Surmann H, Streich H, et al. A custom IR scanner for landmark detection with the autonomous sewer robot MAKRO. In: Proceedings of the international symposium intelligent robotic systems, 2001, pp.457–466, http://citeseerx.ist.psu.edu/viewdoc/download;jsessionid =6A656E4E19ACE725032D09713892A3DE?doi=10.1.1. 100.2807&rep=rep1&type=pdf 11. Fjerdingen SA, Liljeba¨ck P and Transeth AA. A snakelike robot for internal inspection of complex pipe structures (PIKo). In: IEEE/RSJ international conference on intelligent robots and systems, St. Louis, MO, 11–15 October 2009, pp.5665–5671. New York: IEEE. 12. Marı´ n FJ, Casillas J, Mucientes M, et al. Learning intelligent controllers for path-following skills on snake-like robots. In: International conference on intelligent robotics and applications, Aachen, 6–8 December 2011, pp.525– 535. Berlin; Heidelberg: Springer. 13. Taˆche F, Fischer W, Caprari G, et al. Magnebike: a magnetic wheeled robot with high mobility for inspecting complex-shaped structures. J Field Robot 2009; 26: 453–476. 14. Fischer W, Caprari G, Siegwart R, et al. Foldable magnetic wheeled climbing robot for the inspection of gas turbines and similar environments with very narrow access holes. Ind Robot 2010; 37: 244–249. 15. Debenest P, Guarnieri M and Hirose S. PipeTron seriesrobots for pipe inspection. In: 2014 3rd international conference on applied robotics for the power industry (CARPI), Foz do Iguac xu, 14–16 October 2014, pp.1–6. New York: IEEE. 16. Burkett S and Schempf H. Wireless self-powered visual and NDE robotic inspection system for live gas distribution mains. Zoologia 2006; 28: 349–350. 17. Kim HM, Suh JS, Choi YS, et al. An in-pipe robot with multi-axial differential gear mechanism. In: 2013 IEEE/ RSJ international conference on intelligent robots and systems, Tokyo, Japan, 3–7 November 2013, pp.252–257. New York: IEEE. 18. Tavakoli Taba S, Rahnamayie Zekavat P, Alipour Esgandani G, et al. A multidimensional analytical
Advances in Mechanical Engineering
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30. 31.
32.
33. 34.
approach for identifying and locating large utility pipes in underground infrastructure. Int J Distrib Sens N 2015; 501: 601859. Qi HM, Zhang XH, Chen HJ, et al. Tracing and localization system for pipeline robot. Mechatronics 2009; 19: 76–84. Liu Z and Krys D. The use of laser range finder on a robotic platform for pipe inspection. Mech Syst Signal Pr 2012; 31: 246–257. Wang Z, Tan J and Sun Z. Error factor and mathematical model of positioning with odometer wheel. Adv Mech Eng 2015; 7: 305981. Qi H, Ye J, Zhang X, et al. Wireless tracking and locating system for in-pipe robot. Sensor Actuat A: Phys 2010; 159: 117–125. Wei MS, Tong MM, Zi B, et al. Pipeline robot localization system based on PSO-BFGS hybrid algorithm. Chin J Sci Instrum 2012; 11: 028. Olson EB. Real-time correlative scan matching. In: IEEE international conference on robotics and automation (ICRA’09), Kobe, Japan, 12–17 May 2009, pp.4387– 4393. New York: IEEE. Bosse M and Zlot R. Continuous 3D scan-matching with a spinning 2D laser.. In: IEEE international conference on robotics and automation (ICRA’09), Kobe, Japan, 12–17 May 2009, pp.4312–4319. New York: IEEE. Tomono M. A scan matching method using Euclidean invariant signature for global localization and map building. In: IEEE international conference on robotics and automation, New Orleans, LA, 26 April–1 May 2004, vol. 1, pp.866–871. New York: IEEE. Woodman OJ. An introduction to inertial navigation. Computer Laboratory, Technical report UCAM-CL-TR696, August 2007, pp.14, 15, Cambridge: University of Cambridge. Yoon YJ, Li KHH, Lee JS, et al. Real-time precision pedestrian navigation solution using inertial navigation system and global positioning system. Adv Mech Eng. Epub ahead of print 11 March 2015. DOI: 10.1177/ 1687814014568501. Chen G, Rui X, Yang F, et al. Study on the dynamics of laser gyro strapdown inertial measurement unit system based on transfer matrix method for multibody system. Adv Mech Eng 2013; 5: 854583. Allouche E, Jaganathan AP and Simicevic N. Pipe survey method using UWB signal. US9000768 Patent, 2015. Deng ZJ, Wang YF, Liu YZ, et al. Research on the calculation method of the drag force of the mobile robot. Mech Des 1995; 9: 46–49. Editorial Committee of Handbook of Mechanical Design. The booklet of handbook of mechanical design-mechanical and electrical integration system design. Beijing, China: Mechanical Industry Press, 2007, pp.21–30. Tilt-sensing with Kionix MEMS accelerometers, http:// www.kionix.com, 2007. The Shanghai Surveying & Mapping Institute. Code for surveying and mapping underground pipelines and cables. Shanghai, China: The Shanghai Surveying & Mapping Institute, 2010.