A method for autonomous formation of vehicles based on underwater image information
By arranging multiple optical beacons at the tail end of the underwater vehicle and using visual sensors and image processing technology, the autonomous formation of multiple underwater vehicles under communication constraints is realized, solving the problems of high noise and strong scattering, and providing high-performance Precise pose information ensures the stability and accuracy of the formation.
Patent Information
- Application Number
- CN202211289858.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-20
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-10-20
AI Technical Summary
Under communication constraints, it is difficult for existing technologies to effectively utilize underwater image information to achieve autonomous formation of multiple underwater vehicles. Especially in environments with high noise and strong scattering, it is difficult to obtain high-precision leader pose information.
By arranging four optical beacons at the tail end of the pilot underwater vehicle, using visual sensors to collect moving images, establishing a camera model, and extracting light source characteristics, the coplanar P4P method, LoG operator, Otsu processing and other technologies are used to solve the problem of the pilot's position in the sea. pose in three-dimensional space, and design control laws to achieve coordinated formation of multiple aircraft.
Under communication constraints, it provides high-precision six-degree-of-freedom information, ensuring the stability of multi-AUV coordinated movement and formation formation, solving the problem of large underwater image noise, and improving the accuracy and reliability of formation control.
Smart Images

Figure CN115599118B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of underwater vehicle vision and relates to an autonomous vehicle formation method based on underwater image information. Background Art
[0002] The ocean area of the earth is about 360 million square kilometers, accounting for about 71% of the earth's surface area. The ocean is not only the cradle of life on earth, but also contains much richer resources than land. In the process of ocean development, underwater vehicles (AUVs) have been widely used as tools to assist deep-sea exploration, broadening people's understanding of the unknown underwater environment.
[0003] As the complexity of AUV missions increases, a single AUV is gradually unable to meet actual needs, and multi-AUV formation control technology has begun to become one of the hot issues in the field of AUV control. Compared with a single AUV, multi-AUV collaborative operation expands the detection range, increases work efficiency, and will not cause mission failure due to the failure of individual AUVs, ensuring the redundancy of the system, which has great application value.
[0004] Visual sensors have obvious advantages in short-range detection, such as high accuracy, small size, light weight, and easy to carry. They are suitable for close-range, high-precision target detection and formation control. At present, the main method used for AUV visual positioning is the geometric method. The geometric method obtains the position coordinates of n feature points on the visual target in the image system through the camera installed on the underwater vehicle, and solves the position and attitude of the underwater vehicle relative to the target through the PnP algorithm. Formation control is performed based on the attitude and distance information obtained. Summary of the invention
[0005] Technical issues to be solved
[0006] In order to avoid the shortcomings of the prior art, the present invention proposes a method for autonomous formation of vehicles based on underwater image information. Under the condition of communication constraints, the visual information of the leader is obtained by the visual sensor carried by the vehicle itself, and then the relative position and posture with the target are solved to realize the collaborative formation of multiple underwater vehicles.
[0007] Technical Solution
[0008] A method for autonomous formation of aircraft based on underwater image information, characterized in that: a visual recognition device is arranged at the rear end of the pilot underwater aircraft, including four light beacons coplanarly located at the tail end of the pilot aircraft, three of which have the same color; an image acquisition system is arranged at the head end of the follower aircraft; all formation steps are as follows:
[0009] Step 1: During navigation, the image acquisition system of the following aircraft collects motion images of the four optical beacons at the tail end of the leading aircraft;
[0010] Step 2: Establishing the visual navigation model of the underwater vehicle under the camera model, including establishing the camera pinhole model and determining the internal and external parameters of the camera;
[0011] Step 3: Preprocess the collected motion image to extract the light source target features, and obtain the pixel coordinates of the target light source according to the position of the target light source in the pixel coordinate system;
[0012] Step 4: Determine the position and posture of the pilot underwater vehicle in three-dimensional space by solving the coplanar P4P method for the pixel coordinates;
[0013] Step 5: Design the control rate for the second aircraft, taking the pilot as the local coordinate origin. is the expected distance between the two, p2=[x2,y2] T is the coordinate of the vehicle in the local coordinate system, then the control output for the second following vehicle is:
[0014]
[0015] in: is the expected distance between spacecraft No. 1 and No. 2; u2 is the control input of spacecraft No. 2.
[0016] Step 6: Design the control rates for the remaining follower aircraft. Establish a local coordinate system with the midpoint of the line connecting the leader and the second aircraft, with the line connecting the two aircraft as the x-axis, and set d 13 With d 23 are the distances from the third aircraft to the two aircraft respectively; θ is d 13 With d 23 and the counterclockwise direction is positive, then the control output of the third aircraft is the control output of the remaining following aircraft:
[0017]
[0018]
[0019] Among them: x3 is the horizontal coordinate of spacecraft No. 3 in the reference coordinate system, y3 is the vertical coordinate of spacecraft No. 3 in the reference coordinate system; u3 is the control input of spacecraft No. 3.
[0020] In step 3, after obtaining the motion image of the pilot vehicle, the obtained image is preprocessed to obtain the real position of the light beacon from the interference of ambient stray light and scattered light of the light source beacon. The process is as follows:
[0021] Step 3.1: After extracting the pixel coordinates of the optical beacon, match the light sources to determine their relative positions. The only green light source is used as light source 1, and the remaining three blue light sources are arranged in clockwise order:
[0022] V←max(R,G,B)
[0023]
[0024]
[0025] Step 3.2: Detect the image based on the LoG operator and extract the boundary of each light source;
[0026] The LoG operator is defined as:
[0027]
[0028] where σ is the Gaussian filter h σ The standard deviation of (x,y), is the Laplacian operator, (x, y) is the image coordinate. So the image using the LoG operator can be first filtered using a Gaussian filter h σ (x,y) convolution image, and then σ (x,y) filtered image applying Laplacian to achieve;
[0029] When the LoG operator is convolved with the image, it has a strong response to darker blobs within the range of σ on a brighter background, or brighter blobs within the range of σ on a darker background with brightness above the average brightness, and blobs within the range of σ below the average brightness, and blobs with brightness above the average brightness. The standard deviation σ is calculated as:
[0030]
[0031] Where s is the radius, which is the descriptor of the blobs to be detected;
[0032] Step 3.3: Use Otsu processing to obtain a black and white image of the boundary contour of the light source extracted in 3.2, and extract the position coordinates of the boundary points;
[0033] The evaluation function for segmentation is:
[0034]
[0035] Define the probability P of gray level i appearing in the graph i =g i / K, Then the optimal threshold x * for:
[0036]
[0037] Step 3.4: Get the image boundary curve obtained in 3.3. Since the light source is circular, in order to obtain the pixel-level coordinates of the center of the light source, the boundary points are fitted using the least squares method. Suppose the standard equation of the circle to be fitted is:
[0038] (xA) 2 +(yB) 2 =R 2
[0039] make:
[0040]
[0041]
[0042]
[0043]
[0044]
[0045] The solution is:
[0046]
[0047]
[0048]
[0049] Get the parameters of a circular curve:
[0050]
[0051]
[0052]
[0053] A is the horizontal coordinate of the center of the circle to be fitted, B is the vertical coordinate of the center of the circle to be fitted, and R is the radius length of the circle to be fitted.
[0054] The process of determining the position and posture of the pilot underwater vehicle in three-dimensional space by solving the coplanar P4P method using the pixel coordinates obtained in step 4 is as follows:
[0055] Step 4.1: From the light source point P i The image coordinates (u i ,v i ), calculate the point P i Normalized image plane at the focal length of the camera
[0056] Imaging point of the surface Coordinates:
[0057]
[0058] The p ri Bring the coordinates of into the camera's external parameter model, and we get:
[0059]
[0060]
[0061] For n known spatial points, we get n sets of equations, that is, 2n sets of equations. Using matrices, we can rewrite the equations as follows:
[0062] A1H1+A2H2=0
[0063] Where:
[0064]
[0065]
[0066] H1=[ c n rx c n ry c n rz ] T
[0067] H2=[ c o rx c o ry c o rz c p rx c p ry c p rz ] T
[0068] ||H1||=1
[0069] Construct indicator function:
[0070] F=||A1H1+A2H2|| 2 +λ(1-||H1|| 2 )
[0071] The problem is transformed into the problem of minimizing the exponential function F under any λ. The solutions of H1 and H2 are
[0072]
[0073]
[0074] Using the solutions of H1 and H2, we can get the external parameters of the camera relative to the reference coordinate system. c M r ;in, c M r The third column of is obtained by cross-producting the first and second columns;
[0075] In addition, the external parameters of the camera relative to the world coordinate system c M w satisfy:
[0076] c M w = c M r r M w
[0077] in, r M w is the pose of the world coordinate system in the reference coordinate system, which is obtained by the pose of the reference coordinate system in the world coordinate system. w M r Obtained, and:
[0078] r M w = w M r -1
[0079] Step 4.2: Use the recursive least squares method to iterate the solution of P4P obtained in 4.1 to ensure that the solution c M r The attitude matrix in is a unit orthogonal matrix;
[0080] c M w is the transformation matrix of the camera coordinate system relative to the world coordinate system, c M r is the transformation matrix of the camera coordinate system relative to the docking coordinate system, r M w It is the transformation matrix between the docking coordinate system and the world coordinate system.
[0081] Among the four light source beacons, a light source beacon with a different light source color is located at the upper left of the advancing direction.
[0082] The light source beacon with different luminous body colors adopts a green light source, and the other three adopt a blue light source.
[0083] The visual recognition device uses a camera,
[0084] The underwater vehicle is equipped with an azimuth attitude control system to provide the vehicle's own speed and angular velocity information.
[0085] The underwater vehicle is equipped with a Doppler speed meter to provide speed information of the underwater vehicle.
[0086] Beneficial Effects
[0087] The present invention proposes an autonomous formation method for vehicles based on underwater image information, which solves the problem of vehicles realizing formation under communication constraints. Compared with existing methods, the settlement processing of underwater visual information solves the problems of large noise and strong scattering of underwater images; the studied visual pose estimation method will provide followers with high-precision six-degree-of-freedom information of the leader in multi-AUV collaborative motion control as the basis for formation formation. The controller design for formation motion makes full use of relative pose information and establishes a local coordinate system, so that vehicles can realize formation motion without the need for global coordinates. BRIEF DESCRIPTION OF THE DRAWINGS
[0088] Figure 1 Schematic diagram of the light indicator light at the tail end of the aircraft
[0089] Figure 2 Visual matching algorithm flow chart
[0090] Figure 3 Light source matching flow chart in HSV space
[0091] Figure 4 Formation diagram
[0092] Figure 5 Formation diagram
[0093] Figure 6 Simulation diagram of the distance error between each aircraft and the expected position
[0094] Figure 7 Flowchart of formation control based on visual information DETAILED DESCRIPTION
[0095] The present invention will now be further described with reference to the embodiments and the accompanying drawings:
[0096] The underwater vehicle tracking method based on monocular vision is used in a multi-vehicle cooperative system. There are at least three vehicles in the cooperative system, one of which acts as a leader and the rest act as followers. All vehicles are equipped with an azimuth attitude measurement system and a Doppler velocimeter, which can realize the angular velocity and speed control of the vehicle. The follower vehicle is equipped with a monocular camera at the head, which can realize the motion observation of the pilot vehicle. All vehicles are equipped with coplanar luminous beacons at the tail as target points. After capturing the motion state of the pilot vehicle, the follower vehicle extracts the coordinate information of the characteristic target point and solves the position and posture information of the leader. In particular, vehicle No. 2 only obtains information from vehicle No. 1 (the overall leader of the formation), and the remaining followers obtain information from the first two vehicles with the same number, such as: vehicle No. 3 obtains position and posture information from vehicles No. 1 and No. 2.
[0097] In the hardware implementation of this embodiment, a visual recognition device is installed at the rear end of the pilot underwater vehicle. The visual recognition device has four light-emitting bodies as optical beacons, which are arranged around the rear end of the pilot underwater vehicle through an optical beacon fixing frame, three of which are blue in color and the other is green in color.
[0098] An industrial camera is installed at the front end of the underwater vehicle, preferably with a frame rate of at least 20 frames, to obtain the front-end image information of the AUV; an azimuth attitude measurement system is installed in the underwater vehicle to obtain the real-time angular velocity and angle information of the underwater vehicle; a Doppler velocimeter is also installed in the underwater vehicle to obtain the real-time speed information of the underwater vehicle.
[0099] The following is a detailed description of the workflow of the present invention with reference to the accompanying drawings and examples:
[0100] S1: Design of four-point blue-green light source for aircraft and setting of camera shooting parameters
[0101] The present invention is designed as Figure 1 The four-point distributed circular light source beacon shown. The four-point distributed circular light source beacon consists of a blue light and three green lights. The blue-green light can emit a wavelength of 400-500nm underwater, has the lowest absorption rate and scattering rate, and has the characteristics of strong light transmittance. Set the shooting parameters of the camera of the following vehicle and set the shooting frequency of the camera of the following vehicle. The frame rate of the camera on board is generally required to be at least 20 frames.
[0102] S2: Preprocess the captured motion image to obtain the light source target features, and detect the position of the target light source in the pixel coordinate system to obtain the pixel coordinates of the target light source. Figure 2 shown.
[0103] S2-1: Perform color space transformation and initial filtering on the original image captured by the camera to obtain a single-channel threshold map. The image captured by the camera is displayed in the RGB color space. This step converts the RGB color space to the HSV color space to separate areas of different intensities and colors. The conversion formula from RGB to HSV color space is:
[0104] V←max(R,G,B)
[0105]
[0106]
[0107] Through color space conversion, the target point light source is identified according to the converted color and brightness, the green light source is taken as light source No. 1, and the other three blue light sources are arranged in clockwise order.
[0108] Specifically:
[0109] Image color space conversion. The color elements in the image are represented by the RGB color model. RGB stands for red, green and blue. The color space of the image is defined by the brightness of these three colors as basis vectors, and the value range is 0-255. However, the colors on the image are difficult to represent using RGB values. Therefore, it is necessary to convert the color space of the image into the HSV color space. HSV stands for hue, saturation and brightness. In OpenCV, the value range of the H channel is 0-180, the value range of the S channel is 0-255, and the value range of the V channel is 0-255. The HSV color model is converted from the RGB color model. The green cursor with the highest brightness is identified as the target feature point of light source No. 1, and the other three blue light sources are sorted in clockwise order. The light source matching process in the HSV space is as follows: Figure 3 shown.
[0110] S2-2: Use the LoG operator to detect the image and extract the boundary of each light source. Since the Laplacian operator is sensitive to noise, in order to reduce the influence of noise, a Gaussian filter is introduced to smooth the image to be processed first, and then use the Laplacian operator to extract the edge.
[0111] Specifically, the LoG operator is used to perform edge detection on the obtained visual information.
[0112] Let f(x,y) be the pixel value of the original image at coordinate (x,y), h σ (x,y) is a Gaussian smoothing function, which is defined as:
[0113]
[0114] The image filtered by the Gaussian smoothing function can be expressed as the convolution of the original image and the smoothing function:
[0115]
[0116] In a two-dimensional image, the Laplacian operator is a second-order derivative operator. For an image f(x,y), its Laplacian value at position (x,y) is defined as:
[0117]
[0118] Using the Laplace operator to detect the edge of the image g(x,y), we can get:
[0119]
[0120] According to the convolution properties:
[0121]
[0122] Then the LoG operator can be defined as:
[0123]
[0124] where σ is the Gaussian filter h σ The standard deviation of (x,y), is the Laplacian operator, (x, y) is the image coordinate. So the image using the LoG operator can be first filtered using a Gaussian filter h σ (x,y) convolution image, and then σ (x,y) filtered image applying Laplacian to achieve.
[0125] When the LoG operator is convolved with an image, it has a strong response to darker blobs within a range of σ on a brighter background or brighter blobs within a range of σ on a darker background. The "3σ" theory states that 99% of the energy of a Gaussian function is concentrated within 3 standard deviations of its mean. Therefore, the standard deviation σ is usually calculated as:
[0126]
[0127] Where s is the radius, which is the descriptor of the blobs to be detected. σ = 9 is used for edge detection.
[0128] S2-3: Extract the boundary contour of the light source and use Otsu processing to obtain a black and white image, and extract the position coordinates of the boundary points, and select the optimal threshold x * for:
[0129]
[0130] Specifically, the extracted edge image is a grayscale image, which is converted into a black and white image using the Otsu method (maximum inter-class variance method) to extract the position coordinates of the boundary points.
[0131] For a grayscale image I(x,y), the total number of pixels is denoted by K, the image grayscale is denoted by g=0,1,2,...,L, and the number of pixels at grayscale level i is denoted by g i , then Define the probability of gray level i appearing in the graph as P i =g i / K, then Assuming that the grayscale segmentation threshold of the background and light source is x, the image can be divided into two categories, light source and background, denoted as C1 and C2. The probability distribution of the two categories appearing in the image can be described as:
[0132]
[0133]
[0134] The average grayscale values of background and light source pixels are recorded as μ0 and μ1 respectively, then:
[0135]
[0136]
[0137] Where μ is the average gray value of the gray image, and for any threshold x, the following equation exists:
[0138] ω0+ω1=1,ω0μ0+ω1μ1=μ
[0139] The gray value variance of the background and the light source can be expressed as:
[0140]
[0141]
[0142] Introducing intra-class variance σ W , the overall variance σ and the between-class variance σ B As the evaluation function of the threshold x:
[0143]
[0144] in:
[0145]
[0146]
[0147]
[0148] The x that makes λ, κ, and η take the maximum value is the optimal threshold, because Therefore, there is the following relationship between λ, κ, and η:
[0149]
[0150] From the above formula, we can get that λ, κ, η have the same monotonicity, and σ 2 It can be directly obtained through the grayscale image and has nothing to do with x, so η is selected as the evaluation function of segmentation:
[0151]
[0152] in Then the optimal threshold x * for:
[0153]
[0154] S2-4: Boundary curve of the image in step 2.3. Since the light source is circular, in order to obtain the pixel-level coordinates of the center of the light source, the boundary points must be fitted using the least squares method.
[0155] Specifically, a circular curve is fitted to the obtained boundary points through the least square method through the boundary curve in the obtained image, and the center of the circle is the light source center of the target feature point, that is, the coordinate of the target light source feature point in the pixel coordinate system.
[0156] The circular curve to be fitted can be described as follows, where (A, B) is the coordinate of the center of the circle and R is the radius of the circle:
[0157] (xA) 2 +(yB) 2 =R 2
[0158] The boundary point set obtained by image segmentation is recorded as (x i ,y i )(i=1,2,...,n), the distance from the boundary point to the center of the circle is d i (i=1,2,...,n), then:
[0159]
[0160] Set the difference between the square of the distance from the boundary point to the center of the circle and the square of the radius of the actual circle to δ i (i=1,2,...,n), there are:
[0161]
[0162] F(a,b,c) is the loss function of least squares fitting, and find the a, b, and c parameters that can minimize it.
[0163]
[0164]
[0165]
[0166] The final solution is:
[0167]
[0168]
[0169]
[0170] in:
[0171]
[0172]
[0173]
[0174]
[0175]
[0176] Then the parameters of the circular curve can be obtained:
[0177]
[0178]
[0179]
[0180] S3: The pixel coordinates obtained are used to determine the position and posture of the pilot underwater vehicle in three-dimensional space by solving the coplanar P4P method.
[0181] S3-1: From the light source point P i The image coordinates (u i ,v i ), we can calculate point P i The imaging point in the focal length normalized imaging plane of the camera Coordinates:
[0182]
[0183] The p ri Bring the coordinates of into the camera's external parameter model, and we get:
[0184]
[0185]
[0186] For n known points in space, we can get n sets of equations, that is, 2n sets of equations. Using matrices, the equations can be rewritten as:
[0187] A1H1+A2H2=0
[0188] Where:
[0189]
[0190]
[0191] H1=[ c n rx c n ry c n rz ] T
[0192] H2=[ c o rx c o ry c o rz c p rx c p ry c p rz ] T
[0193] ||H1||=1
[0194] Construct indicator function:
[0195] F=||A1H1+A2H2|| 2 +λ(1-||H1|| 2 )
[0196] The problem is transformed into the problem of minimizing the exponential function F under any λ. The solutions of H1 and H1 are
[0197]
[0198]
[0199] Using the solutions of H1 and H2, we can get the external parameters of the camera relative to the reference coordinate system: c M r .in, c M rThe third column of is obtained by cross-producting the first and second columns. In addition, the external parameters of the camera relative to the world coordinate system are c M w satisfy:
[0200] c M w = c M r r M w
[0201] in, r M w is the pose of the world coordinate system in the reference coordinate system, which is obtained by the pose of the reference coordinate system in the world coordinate system. w M r Obtained, and:
[0202] r M w = w M r -1
[0203] S3-2: Using the solution of the above P4P problem as the initial value, the recursive least squares method (RLS) is used for iteration to improve the accuracy of the solution. c M w is closer to the unit orthogonal matrix.
[0204]
[0205]
[0206] Θ=[ c n′ rx c n′ ry c n′ rz c o′ rx c o′ ry c o′ rz c a′ rx c a′ ry c a′ ry c p′ rx c p′ ry ] T
[0207] In the formula c n′r = c n r / c p rz ; c o′ r = c o r / c p rz ; c a′ r = c a r / c p rz ; c p′ rx = c p rx / c p rz ;
[0208] c p′ ry = c p ry / c p rz ; k is the strengthening coefficient, which is used to enhance the effect of attitude error in the recursive process so as to eliminate the attitude error to the maximum extent.
[0209] Initial value P of RLS N Given by formula (3-62). The four points consisting of any three points and one auxiliary point are calculated using formula (3-59) Then calculate P N The rough pose value obtained by the method in Section 3.4.1 is also obtained by Calculation of the initial value P of RLS N The initial value of Θ comes from the pose in the rough value obtained by the method in Section 3.4.1.
[0210]
[0211] The RLS method with forgetting factor is used to calculate the precise camera external parameters. The specific algorithm is described as follows:
[0212]
[0213]
[0214]
[0215] Where: ρ is the forgetting factor.
[0216] The recursive calculation is performed based on the Cartesian space positions and image coordinates of all known points. When the recursive process converges, the exact value of Θ is obtained, thereby obtaining the exact extrinsic parameters of the camera.
[0217] S4 designs a control law for the No. 2 follower vehicle separately. The steps are as follows: Take the formation leader, i.e., No. 1 robot, as the local coordinate origin is the expected distance between the two, p2=[x2,y2] T is the coordinate of the spacecraft in the local coordinate system, then for follower spacecraft No. 2;
[0218] Specifically include: designing a separate control law for follower vehicle No. 2.
[0219] Consider a single integral system of an underwater vehicle
[0220]
[0221] where p i =[x i ,y i ] T ∈R 2 , i∈{1,2,3} is the position coordinate of the i-th spacecraft in the local coordinate system, u i ∈R 2 is the control input that needs to be determined by the following spacecraft. Assume that the origin of the local coordinate system of spacecraft No. 2 is located at the position coordinate of spacecraft No. 1. Select the Lyapunov function:
[0222]
[0223] Assume that the coordinates of the position of spacecraft 2 in the local coordinate system are p2 = [x2, y2] T . Then V2 is positive definite and is related to the vector is radially unbounded. Then for all have:
[0224]
[0225] is the global asymptotically stable equilibrium point of the single-integral system. Then the control input of spacecraft No. 2 can be obtained as:
[0226]
[0227] S5 specifically includes: designing a control law for the following vehicle numbered 3.
[0228] like Figure 4, assuming that the origin of the local coordinate system of underwater bionic robot 3 is located at the midpoint of the line connecting underwater bionic robots 1 and 2, with the line connecting underwater bionic robots 1 and 2 as the x-axis, as shown in the figure. Assume that the distance from vehicle 3 to vehicle 1 is d 13 , the distance to spacecraft No. 2 is d 23 , d 13 With d 23 The angle between them is θ, then the coordinates of spacecraft No. 3 p3=[x3,y3] T satisfy:
[0229]
[0230] Arranged:
[0231]
[0232] definition:
[0233]
[0234] Choose the Lyapunov function:
[0235]
[0236] Select but Then the control input of spacecraft No. 3 is:
[0237]
[0238] In order to verify the effectiveness of the above guidance method, the present invention also provides the following examples.
[0239] Example
[0240] Suppose there are 3 spacecraft, whose initial positions are u1=[1 1] T , u2=[2 3] T , u3=[3 4] T It is expected that the distance between the No. 2 spacecraft and the No. 1 spacecraft is 1.34m, and the distance between the No. 3 spacecraft and the No. 2 spacecraft is 2.2m, and the angle between the No. 1, No. 2 and No. 3 spacecraft is 160°; the distance error between each spacecraft and the expected position is as follows Figure 6 shown.
Claims
1. A method for autonomous formation of aircraft based on underwater image information, characterized in that: The rear end of the pilot underwater vehicle is equipped with a visual recognition device, including four light beacons coplanarly located at the tail end of the pilot vehicle, three of which have the same color; the front end of the follower vehicle is equipped with an image acquisition system; all formation steps are as follows: Step 1: During navigation, the image acquisition system of the following aircraft collects motion images of the four optical beacons at the tail end of the leading aircraft; Step 2: Establishing the visual navigation model of the underwater vehicle under the camera model, including establishing the camera pinhole model and determining the internal and external parameters of the camera; Step 3: Preprocess the collected motion image to extract the light source target features, and obtain the pixel coordinates of the target light source according to the position of the target light source in the pixel coordinate system; Step 4: Determine the position and posture of the pilot underwater vehicle in three-dimensional space by solving the coplanar P4P method for the pixel coordinates; Step 5: Design the control rate for the second aircraft, taking the pilot as the local coordinate origin. is the expected distance between the two, p2=[x2,y2] T is the coordinate of the vehicle in the local coordinate system, then the control output for the second following vehicle is: in: is the expected distance between spacecraft No. 1 and No. 2; u2 is the control input of spacecraft No. 2; Step 6: Design the control rates for the remaining follower aircraft. Establish a local coordinate system with the midpoint of the line connecting the leader and the second aircraft, with the line connecting the two aircraft as the x-axis, and set d 13 With d 23 are the distances from the third aircraft to the two aircraft respectively; θ is d 13 With d 23 and the counterclockwise direction is positive, then the control output of the third aircraft is the control output of the remaining following aircraft: Among them: x3 is the horizontal coordinate of spacecraft No. 3 in the reference coordinate system, y3 is the vertical coordinate of spacecraft No. 3 in the reference coordinate system; u3 is the control input of spacecraft No.
3.
2. The method for autonomous formation of vehicles based on underwater image information according to claim 1, characterized in that: In step 3, after obtaining the motion image of the pilot vehicle, the obtained image is preprocessed to obtain the real position of the light beacon from the interference of ambient stray light and scattered light of the light source beacon. The process is as follows: Step 3.1: After extracting the pixel coordinates of the optical beacon, match the light sources to determine their relative positions. The only green light source is used as light source 1, and the remaining three blue light sources are arranged in clockwise order: V←max(R,G,B) Step 3.2: Detect the image based on the LoG operator and extract the boundary of each light source; The LoG operator is defined as: where σ is the Gaussian filter h σ The standard deviation of (x,y), is the Laplacian operator, (x, y) is the image coordinate; so the image using the LoG operator can first be filtered by using a Gaussian filter h σ (x,y) convolution image, and then σ (x,y) filtered image applying Laplacian to achieve; When the LoG operator is convolved with the image, it has a strong response to darker blobs within the range of σ on a brighter background, or brighter blobs within the range of σ on a darker background with brightness above the average brightness, and blobs within the range of σ below the average brightness, and blobs with brightness above the average brightness. The standard deviation σ is calculated as: Where s is the radius, which is the descriptor of the blobs to be detected; Step 3.3: Use Otsu processing to obtain a black and white image of the boundary contour of the light source extracted in 3.2, and extract the position coordinates of the boundary points; The evaluation function for segmentation is: Define the probability P of gray level i appearing in the graph i =g i / K, Then the optimal threshold x * for: Step 3.4: Get the image boundary curve obtained in 3.
3. Since the light source is circular, in order to obtain the pixel-level coordinates of the center of the light source, the boundary points are fitted using the least squares method. Suppose the standard equation of the circle to be fitted is: (x-A) 2 +(y-B) 2 =R 2 make: The solution is: Get the parameters of a circular curve: A is the horizontal coordinate of the center of the circle to be fitted, B is the vertical coordinate of the center of the circle to be fitted, and R is the radius length of the circle to be fitted.
3. The method for autonomous formation of vehicles based on underwater image information according to claim 1, characterized in that: The process of determining the position and posture of the pilot underwater vehicle in three-dimensional space by solving the coplanar P4P method using the pixel coordinates obtained in step 4 is as follows: Step 4.1: From the light source point P i The image coordinates (u i ,v i ), calculate point P i The imaging point in the focal length normalized imaging plane of the camera Coordinates: The p ri Bring the coordinates into the camera's external parameter model, and we get: For n known spatial points, we get n sets of equations, that is, 2n sets of equations. Using matrices, we can rewrite the equations as follows: A1H1+A2H2=0 Where: H1=[ c n rx c n ry c n rz ] T H2=[ c o rx c o ry c o rz c pp rx c pp ry c pp rz ] T ||H1||=1 Construct indicator function: F=||A1H1+A2H2|| 2 +λ(1-||H1|| 2 ) The problem is transformed into the problem of minimizing the exponential function F under any λ. The solutions of H1 and H2 are Using the solutions of H1 and H2, we can get the external parameters of the camera relative to the reference coordinate system. c M r ; in, c M r The third column of is obtained by cross-producting the first and second columns; In addition, the external parameters of the camera relative to the world coordinate system c M w satisfy: c M w = c M r r M w in, r M w is the pose of the world coordinate system in the reference coordinate system, which is obtained by the pose of the reference coordinate system in the world coordinate system. w M r Obtained, and: r M w = w M r -1 Step 4.2: Use the recursive least squares method to iterate the solution of P4P obtained in 4.1 to ensure that the solution c M r The attitude matrix in is a unit orthogonal matrix; c M w is the transformation matrix of the camera coordinate system relative to the world coordinate system, c M r is the transformation matrix of the camera coordinate system relative to the docking coordinate system, r M w It is the transformation matrix between the docking coordinate system and the world coordinate system.
4. The method for autonomous formation of aircraft based on underwater image information according to claim 1, characterized in that: Among the four light source beacons, a light source beacon with a different light source color is located at the upper left of the advancing direction.
5. The method for autonomous formation of aircraft based on underwater image information according to claim 1 or 4, characterized in that: The light source beacon with different luminous body colors adopts a green light source, and the other three adopt a blue light source.
6. The method for autonomous formation of aircraft based on underwater image information according to claim 1, characterized in that: The visual recognition device uses a camera, 7. The method for autonomous formation of aircraft based on underwater image information according to claim 1, characterized in that: The underwater vehicle is equipped with an azimuth attitude control system to provide the vehicle's own speed and angular velocity information.
8. The method for autonomous formation of aircraft based on underwater image information according to claim 1, characterized in that: The underwater vehicle is equipped with a Doppler speed meter to provide speed information of the underwater vehicle.
Citation Information
Patent Citations
Navigation following formation method of underwater robot system based on binocular vision
CN109062229A
Laser beacon autonomous navigation system and navigation method thereof
CN110119157A
Vision-based autonomous tracking method for underwater vehicle
CN112184765A
Formation control method for mobile robots under consideration of external interference
CN113110495A
Visual positioning and close-range dense formation method for underwater robot cluster
CN113534824A
