A method and system for positioning odometer of agricultural unmanned vehicle based on multi-sensor fusion

Through multi-sensor fusion technology, visual and laser information are used to perceive the complexity of the environment and dynamically adjust the unmanned vehicle positioning system, solving the problems of positioning accuracy and stability in agricultural environments and realizing high-precision and high-reliability agricultural unmanned vehicles. position.

CN115451948BActive Publication Date: 2024-10-01INST OF COMPUTING TECH CHINESE ACAD OF SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210950380.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-09
Publication Date
2024-10-01
Estimated Expiration
2042-08-09

AI Technical Summary

Technical Problem

Existing unmanned vehicle positioning technology is difficult to meet the accuracy, stability and reliability requirements in agricultural environments, especially when the environment is changing, lighting changes, weather changes and complex terrain make it difficult for a single sensor to cope with these difficulties at the same time. , Existing fusion technology relies on the uncertainty covariance matrix of sensor measurements and cannot fully perceive the complexity of the environment for real-time adjustment.

Method used

Using a multi-sensor fusion method, combined with visual sensors, inertial sensors and depth sensors, the complexity of the environment is perceived through visual feature points and laser point cloud information. The Kalman filter and point cloud registration algorithm are used to generate the final positioning information and dynamically adjust the system. To adapt to environmental changes and improve positioning accuracy and stability.

Benefits of technology

It has improved the accuracy, stability and reliability of unmanned vehicle positioning in agricultural environments. It can sense environmental changes in real time and carry out targeted optimization, reduce the degradation of positioning systems, and meet the high-precision and high-reliability requirements in agricultural scenarios. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115451948B_ABST
    Figure CN115451948B_ABST
Patent Text Reader

Abstract

The present invention proposes a method and system for positioning odometer of agricultural unmanned vehicle based on multi-sensor fusion, comprising: acquiring multiple visual feature points of the environment in which the agricultural unmanned vehicle is located by detecting with a visual sensor, acquiring depth information of the visual feature points by using an environment point cloud acquired by a depth sensor, taking the visual feature points with acquired depth information as stable feature points, and counting the proportion of the number of stable feature points to the total number of visual feature points as complexity; acquiring relative posture information by an inertial sensor, and generating inertial posture information according to the relative posture information; fusing the inertial posture information and the visual feature points by a Kalman filter to obtain first posture information, performing de-distortion processing on the environment point cloud according to the relative posture information to obtain a corrected point cloud, and performing point cloud registration processing in combination with the inertial posture information to obtain second posture information; and selecting the first posture information or the second posture information according to the complexity as the final positioning result of the agricultural unmanned vehicle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical fields of agricultural unmanned vehicles, multi-sensor fusion and positioning odometers, and in particular to a method and system for positioning odometers for agricultural unmanned vehicles based on multi-sensor fusion. Background Art

[0002] With the development of sensor hardware technology, computer software technology and artificial intelligence technology, the application of unmanned vehicles in different scenarios is becoming more and more extensive. In the past few years, the application of unmanned vehicles in warehousing and logistics, exploration and rescue and other fields has become more mature, and the technical solutions have tended to be diversified and practical. However, unmanned vehicles are still in urgent need of development in the agricultural field (precision agriculture, smart agriculture, etc.), and there are a series of problems and limitations, which cannot be ignored due to the variability and complexity of the agricultural environment. Among them, the positioning of unmanned vehicles in the agricultural environment is a technical challenge for the current application of unmanned vehicles. The odometer is the entire positioning software and hardware system.

[0003] Agricultural unmanned vehicle positioning technology belongs to the sub-field of unmanned vehicle positioning technology. The existing unmanned vehicle positioning technologies mainly include the following: 1) Satellite differential positioning: Based on the GNSS system or Beidou satellite positioning system, supplemented by differential signal base stations, the latitude and longitude coordinates of the unmanned vehicle with high precision are calculated; but the attitude obtained based on GPS has low accuracy. The attitude parameters include vehicle roll angle, pitch angle, and heading angle; 2) Visual positioning: Based on a monocular camera or a stereo camera, the relative motion posture (position and posture) of the unmanned vehicle is calculated using the visual geometric features or photometric features in the environment; 3) LiDAR positioning: Based on a multi-line LiDAR, the shape distribution features or geometric features of the laser point cloud in the environment are used to calculate the relative motion posture of the unmanned vehicle; 4) QR code positioning: Based on the QR code pre-established in the environment, the posture of the unmanned vehicle is obtained by scanning the QR code with a camera; 5) UMB positioning: Based on the UWB wireless base station pre-placed in the environment, the positioning tag installed on the unmanned vehicle is used to measure the posture of the unmanned vehicle through wireless communication technology.

[0004] The types of unmanned vehicles serving agriculture include unmanned tractors, harvesters, and autonomous agricultural inspection vehicles. The demand for the positioning of these unmanned vehicles in agriculture is mainly reflected in high positioning accuracy (positioning accuracy requires centimeter level), good stability (positioning signal output frequency is stable above 10Hz), and strong reliability (positioning system is not prone to downtime). The positioning methods of unmanned vehicles mentioned above have some problems in the application of agricultural scenarios. 1) Some scenes of unmanned vehicles working in farmland cannot use satellite differential positioning methods to obtain accurate positions, such as indoor working scenes such as plastic greenhouses and farmland scenes where satellite signals are blocked by elevated bridges; 2) The farmland to be cultivated or harvested contains fewer visual geometric features and photometric features, which is not conducive to feature extraction and matching by the camera, so it is difficult to obtain accurate positioning information of unmanned vehicles through vision; 3) Farmland scenes often contain relatively wide planes, which is not conducive to point cloud registration by laser radar, and the laser radar odometer will degrade; 4) The area of ​​farmland scenes is large, which is not suitable for positioning methods such as QR code positioning or UWB positioning, which require equipment to be arranged in the environment in advance. In summary, the existing unmanned vehicle positioning methods cannot meet the requirements of agricultural unmanned vehicle positioning in terms of accuracy, stability and reliability.

[0005] The difficulty of unmanned vehicle positioning in agricultural scenarios lies in the changeable environment (lighting, weather, terrain, field operation type, etc.), bumpy road conditions, few environmental geometric features, and unstable satellite differential signals. For a single sensor, it is impossible to deal with these difficulties at the same time. Multi-sensor fusion can comprehensively utilize the advantages of various sensors to cover most scenarios. Therefore, the application of multi-sensor fusion in positioning technology can effectively solve the positioning problem in agricultural scenarios. When applying multi-sensor fusion positioning in agricultural scenarios, it should be noted that the fusion of multiple sensors is not the accumulation of hardware devices. It is necessary to select a suitable minimum set of sensors (sensor suite) to balance the performance and cost of the positioning system, and minimize the cost while achieving system accuracy, stability and reliability.

[0006] Most existing fusion technologies are based on Kalman filters or graph optimization technology to fuse sensor positioning information. These two fusion methods rely on the uncertainty of the position of the unmanned vehicle measured by the sensor for fusion, and usually use the covariance matrix to describe the uncertainty of the position measurement. The scenes in the agricultural environment are changeable. To fuse the sensor positioning information in the changing scenes, it is necessary to modify the system parameters in real time and dynamically to make the positioning system adapt to the environment. The method of using the covariance matrix to describe the uncertainty is relatively simple and cannot fully perceive the complexity of the environment to adjust the fusion system in time. With the changes in the surrounding environment, when the fusion odometer system degrades, it is necessary to perceive it in time and optimize the system in a targeted manner to meet the accuracy, stability and reliability of the system. Summary of the invention

[0007] It is found that according to the above analysis, the present invention proposes a method for real-time perception of the surrounding agricultural environment and dynamic optimization of the system, which improves the adaptability of the fusion odometer system to the environment. The optimization of the fusion system by this method does not only rely on the uncertainty covariance matrix measured by the sensor, but also judges whether the system is degraded through the perception of the surrounding environment through visual information and laser point cloud information, and then adjusts the system output through a targeted optimization strategy.

[0008] The purpose of the present invention is to improve the accuracy, stability and reliability of unmanned vehicle positioning in agricultural scenarios, solve the problem of poor environmental adaptability of existing positioning systems, and propose an agricultural unmanned vehicle positioning odometer method based on multi-sensor fusion, which includes:

[0009] Step 1: The agricultural unmanned vehicle is equipped with a visual sensor, an inertial sensor and a depth sensor. The visual sensor is used to detect and obtain multiple visual feature points of the environment in which the agricultural unmanned vehicle is located. At the same time, the depth information of the visual feature points is obtained using the environmental point cloud collected by the depth sensor. The visual feature points with depth information are used as stable feature points, and the proportion of the number of stable feature points to the total number of visual feature points is counted as the complexity of the current environment.

[0010] Step 2, the inertial sensor collects relative posture information, and generates inertial posture information according to the relative posture information; the inertial posture information and the visual feature points are fused through a Kalman filter to obtain the first posture information, and the environment point cloud is dedistorted according to the relative posture information to obtain a corrected point cloud, and the point cloud registration processing is performed in combination with the inertial posture information to obtain the second posture information;

[0011] Step 3: According to the complexity, select the first pose information or the second pose information as the final positioning result of the agricultural unmanned vehicle.

[0012] The agricultural unmanned vehicle positioning odometer method based on multi-sensor fusion, wherein the de-distortion processing includes:

[0013]

[0014] where Δφ tk represents the posture correction information of the kth point in the point cloud received at time t, Δp tk represents the position correction information of the kth point in the point cloud received at time t, t represents the actual time when the point is received, tk represents the start time of receiving the frame point cloud, Δt represents the total time of receiving the frame point cloud, Δφ k,k+1 and Δp k,k+1Respectively represent the attitude transformation and position transformation of the point cloud of this frame relative to the previous frame calculated by the inertial sensor;

[0015] The posture correction information and the position correction information are integrated to form a posture transformation matrix, and the 3D coordinates of the correction point cloud are obtained by multiplying the posture transformation matrix with the 3D coordinates of the environment point cloud.

[0016] The agricultural unmanned vehicle positioning odometer method based on multi-sensor fusion, wherein the generation process of the inertial posture information includes:

[0017] The inertial posture information includes and Represents the transformation information of posture and position respectively, t k and t k-1 represents the moment when two consecutive point clouds or images are received, the subscript k represents the sequence number of the point cloud or image, ω t and a t represents the angular velocity and acceleration collected by the inertial sensor at time t, v k-1 Represents the speed measured when the k-1th point cloud or image is received;

[0018]

[0019] The agricultural unmanned vehicle positioning odometer method based on multi-sensor fusion, wherein the point cloud registration processing includes:

[0020] The corrected point cloud is gridded, and the normal distribution of the laser point cloud contained in each grid is calculated using the principal component analysis method; the point cloud distribution of each frame of point cloud after PCA is expressed as follows:

[0021]

[0022] in Represents the coordinates of the center point of the normal distribution in the i-th grid of the point cloud of this frame, represents its covariance matrix;

[0023] The two point clouds to be matched are P = {p i} and Q = {q i}, the objective function of the iterative closest point based on the normal distribution transformation is:

[0024]

[0025] In the formula, R and τ represent the rotation and translation information between the two frames of point cloud changes, respectively. The R and τ corresponding to the minimum value of the objective function are taken as the transformation relationship T kk-1 , T kk-1Represents the rotation information R and translation information t between the k-th frame point cloud and the k-1-th frame point cloud;

[0026] The second posture information T k =T k =Π k T k T k-1 .

[0027] The agricultural unmanned vehicle positioning odometer method based on multi-sensor fusion, wherein the first pose information generation process includes:

[0028] According to the transformation information T between the laser radar coordinate system and the camera coordinate system LC , project the point cloud coordinates from the laser radar coordinate system to the camera coordinate system, and the depth of the visual feature point can be obtained by searching; let the laser point cloud coordinates be p(x,y,z), the projected coordinates be p'(x',y',z'), and project according to the following formula:

[0029] p′=T LC p

[0030] The pixel coordinates of the visual feature point before depth acquisition are x(u, v, 1). After laser point cloud projection, for each visual feature point, the projected laser point cloud is searched within the specified radius, and the depth average of all searched point clouds is counted. As the depth information of the visual feature point, the coordinates of the visual feature point after obtaining the depth The spatial position coordinates P (X, Y, Z) of the visual feature points are calculated by the epipolar geometry method;

[0031] There are n spatial position coordinates P of feature points, and their pixel coordinates θ are expressed as The bundle adjustment optimization objective function is:

[0032]

[0033] Where K represents the intrinsic parameter matrix of the camera, and R represents the pose to be solved;

[0034] According to the inertial posture information The Kalman filter gain K is calculated in the update step of the Kalman filter, and finally the pose R optimized in the bundle adjustment optimization objective function is integrated as the first pose information Where C represents the covariance matrix of pose measurement.

[0035] The agricultural unmanned vehicle positioning odometer method based on multi-sensor fusion, wherein step 3 comprises:

[0036] The number of visual feature points obtained by the visual feature point detection module is n, of which m feature points can be used to obtain the depth through the lidar point cloud, then the environmental complexity E is:

[0037]

[0038] The final positioning result T final for:

[0039]

[0040] Threshold is a constant, ranging from 0 to 1.

[0041] The present invention also proposes an agricultural unmanned vehicle positioning odometer system based on multi-sensor fusion, which includes:

[0042] The initial module is used to obtain multiple visual feature points of the environment in which the agricultural unmanned vehicle is located through the visual sensor detection of the agricultural unmanned vehicle, and at the same time obtain the depth information of the visual feature points using the environmental point cloud collected by the depth sensor of the agricultural unmanned vehicle. The visual feature points with the obtained depth information are used as stable feature points, and the proportion of the number of stable feature points to the total number of visual feature points is counted as the complexity of the current environment;

[0043] A positioning module is used to collect relative posture information through an inertial sensor of the agricultural unmanned vehicle, generate inertial posture information according to the relative posture information; fuse the inertial posture information and the visual feature points through a Kalman filter to obtain first posture information, perform de-distortion processing on the environmental point cloud according to the relative posture information to obtain a corrected point cloud, and perform point cloud registration processing in combination with the inertial posture information to obtain second posture information;

[0044] The decision module is used to select the first pose information or the second pose information as the final positioning result of the agricultural unmanned vehicle according to the complexity.

[0045] The agricultural unmanned vehicle positioning odometer system based on multi-sensor fusion, wherein the de-distortion processing includes:

[0046]

[0047] where Δφ tk represents the posture correction information of the kth point in the point cloud received at time t, Δp tk represents the position correction information of the kth point in the point cloud received at time t, t represents the actual time when the point is received, tk represents the start time of receiving the frame point cloud, Δt represents the total time of receiving the frame point cloud, Δφ k,k+1 and Δp k,k+1Respectively represent the attitude transformation and position transformation of the point cloud of this frame relative to the previous frame calculated by the inertial sensor;

[0048] The posture correction information and the position correction information are integrated to form a posture transformation matrix, and the 3D coordinates of the correction point cloud are obtained by multiplying the posture transformation matrix with the 3D coordinates of the environment point cloud;

[0049] The process of generating the inertial posture information includes:

[0050] The inertial posture information includes and Represents the transformation information of posture and position respectively, t k and t k-1 represents the moment when two consecutive point clouds or images are received, the subscript k represents the sequence number of the point cloud or image, ω t and a t represents the angular velocity and acceleration collected by the inertial sensor at time t, v k-1 Represents the speed measured when the k-1th point cloud or image is received;

[0051]

[0052] The point cloud registration process includes:

[0053] The corrected point cloud is gridded, and the normal distribution of the laser point cloud contained in each grid is calculated using the principal component analysis method; the point cloud distribution of each frame of point cloud after PCA is expressed as follows:

[0054]

[0055] in Represents the coordinates of the center point of the normal distribution in the i-th grid of the point cloud of this frame, represents its covariance matrix;

[0056] The two point clouds to be matched are P = {p i} and Q = {q i}, the objective function of the iterative closest point based on the normal distribution transformation is:

[0057]

[0058] In the formula, R and τ represent the rotation and translation information between the two frames of point cloud changes, respectively. The R and τ corresponding to the minimum value of the objective function are taken as the transformation relationship T kk-1 , T kk-1 Represents the rotation information R and translation information t between the k-th frame point cloud and the k-1-th frame point cloud;

[0059] The second posture information Tk =T k =Π k T k T k-1 ;

[0060] The first pose information generation process includes:

[0061] According to the transformation information T between the laser radar coordinate system and the camera coordinate system LC , project the point cloud coordinates from the laser radar coordinate system to the camera coordinate system, and the depth of the visual feature point can be obtained by searching; let the laser point cloud coordinates be p(x,y,z), the projected coordinates be p'(x',y',z'), and project according to the following formula:

[0062] p′=T LC p

[0063] The pixel coordinates of the visual feature point before depth acquisition are x(u, v, 1). After laser point cloud projection, for each visual feature point, the projected laser point cloud is searched within the specified radius, and the depth average of all searched point clouds is counted. As the depth information of the visual feature point, the coordinates of the visual feature point after obtaining the depth The spatial position coordinates P (X, Y, Z) of the visual feature points are calculated by the epipolar geometry method;

[0064] There are n spatial position coordinates P of feature points, and their pixel coordinates θ are expressed as The bundle adjustment optimization objective function is:

[0065]

[0066] Where K represents the intrinsic parameter matrix of the camera, and R represents the pose to be solved;

[0067] According to the inertial posture information The Kalman filter gain K is calculated in the update step of the Kalman filter, and finally the pose R optimized in the bundle adjustment optimization objective function is integrated as the first pose information Where C represents the covariance matrix of posture measurement;

[0068] The decision module is used to obtain the number of visual feature points obtained by the visual feature point detection module as n, where m feature points can be obtained through the laser radar point cloud to obtain the depth, then the environment complexity E:

[0069]

[0070] The final positioning result Tfinal is:

[0071]

[0072] Threshold is a constant, ranging from 0 to 1.

[0073] The present invention also proposes a storage medium for storing a program for executing any one of the agricultural unmanned vehicle positioning odometer methods based on multi-sensor fusion.

[0074] The present invention also proposes a client, which is used for any of the agricultural unmanned vehicle positioning odometer systems based on multi-sensor fusion.

[0075] It can be seen from the above scheme that the advantages of the present invention are:

[0076] The multi-sensor fusion odometer proposed in this invention includes two sub-odometer systems, namely the laser inertial odometer and the visual inertial odometer. The two subsystems run simultaneously to provide two position information outputs, dynamically perceive the surrounding environment through visual information and laser point cloud information, calculate and analyze the complexity of the environment, and then determine which subsystem output can be used as the final positioning information output. The system meets the requirements of the accuracy, stability and reliability of unmanned vehicle positioning technology in the changing characteristics of agricultural environments. BRIEF DESCRIPTION OF THE DRAWINGS

[0077] Figure 1 A diagram of a hardware integrated carrier of the method proposed in the present invention;

[0078] Figure 2 It is a software framework diagram of the method proposed in the present invention;

[0079] Figure 3 The figure is a specific operation flow chart of the method proposed in the present invention. DETAILED DESCRIPTION

[0080] Based on the above analysis, the present invention proposes a multi-sensor fusion odometer system for agricultural scenarios. The odometer system is based on three positioning sensors (monocular camera, 16-line laser radar, inertial measurement unit IMU) and vehicle information (visual information, laser point cloud information, relationship information), and uses SLAM (simultaneous mapping and localization) and other related technologies for information fusion. It is optimized in a targeted manner based on the characteristics of agricultural scenarios, and finally outputs accurate and stable agricultural unmanned vehicle positioning information, while taking into account the low-cost requirements in agricultural scenarios. Specifically, the present invention includes the following key technical points:

[0081] Key point 1, environmental complexity analysis technology: Since visual information provides a richer and more specific description of the details of the environment, and laser point cloud information provides a more detailed description of the geometric features of the environment, the complexity analysis of the agricultural environment in which the current unmanned vehicle is located is performed based on visual information and point cloud information. Feature points in the environment are acquired through visual feature detection, and the depth information of the visual feature points is acquired using the environmental point cloud information collected by the laser radar. Since the laser point cloud is discrete, the location of the visual feature point may not necessarily have a corresponding laser point. Therefore, the present invention divides the feature points into stable feature points and unstable feature points according to whether the visual feature points can obtain the depth, and counts the proportion of the number of stable feature points to the total number of feature points, which is used as a complexity description of the current environment; the extraction of stable feature points and the analysis of complexity use both visual information and point cloud information, which can more accurately evaluate the characteristics of the current environment in which the unmanned vehicle is located, making the fusion odometer system more environmentally adaptable.

[0082] Key point 2, laser-vision-IMU sensor fusion technology: In order to improve the stability of the odometer system output and operational reliability, two sub-odometer systems (visual inertial odometer and laser inertial odometer) are used. The visual inertial odometer system is driven by a monocular camera and IMU, and the information of the camera and IMU is fused through a Kalman filter. The laser inertial odometer system is driven by a lidar and IMU. The relative position information output by the IMU is used to dedistort the lidar point cloud and provide an initial position estimate for the ICP point cloud registration algorithm. The final position information output of the system is determined according to the environmental complexity described in key point 1. The two sub-odometers run simultaneously, and the environmental complexity analysis strategy is used to take into account the accuracy and continuity of the unmanned vehicle's position information output, reducing the phenomenon of odometer system degradation.

[0083] In order to make the above features and effects of the present invention more clearly understood, embodiments are given below and described in detail with reference to the accompanying drawings.

[0084] The specific implementation is as follows:

[0085] 1. Systematize the hardware (such as Figure 1 shown);

[0086] 2. Analyze and receive raw data from three sensors (inertial unit IMU, lidar, camera);

[0087] 3. Inertial unit data processing

[0088] 3.1 Dedistortion of point cloud based on IMU input information

[0089] The inertial data collected from the IMU is first used to dedistort the LiDAR point cloud to eliminate the position error of the point cloud scanned in the same frame due to the rotation of the LiDAR. The dedistortion method is based on the uniform motion assumption, as shown below:

[0090]

[0091] where Δφ tk represents the posture correction information of the kth point in the point cloud received at time t, Δp tk represents the position correction information of the kth point in the point cloud received at time t, t represents the actual time when the point is received, tk represents the start time of receiving the frame point cloud, Δt represents the total time of receiving the frame point cloud, Δφ k,k+1 and Δp k,k+1 Represents the pose transformation of the point cloud of this frame calculated by IMU relative to the previous frame.

[0092] The point cloud correction information calculated in (1) is converted into the pose transformation matrix R, and the point cloud coordinates after dedistortion are calculated according to the following formula. original and P correct Represent the 3D coordinates of the point cloud before and after dedistortion.

[0093] P correct =RP original (2)

[0094] 3.2IMU pre-calculation initialization information

[0095] The position transformation information between two frames of laser point cloud or two frames of visual images at a fixed time interval is calculated according to the following formula, where and Represent the pre-calculated transformation information of posture and position, t k and t k-1 represents the moment when two consecutive point clouds or images are received, the subscript k represents the sequence number of the point cloud or image, ω t and a t represents the angular velocity and acceleration measured by the IMU at time t, v k-1 Represents the speed measured when the k-1th point cloud or image is received.

[0096]

[0097] 4. LiDAR point cloud data processing:

[0098] 4.1 Point Cloud Registration ICP (Iterative Closest Point) Algorithm

[0099] After receiving, parsing and dedistorting the point cloud information obtained from the laser radar, the pose is calculated by ICP (iterative closest point method). The present invention uses the ICP algorithm based on NDT (normal distribution transformation) for calculation. First, the point cloud is gridded, and the size of each grid is 1m×1m×1m. The PCA (principal component analysis) method is used to calculate the normal distribution of the laser point cloud contained in each grid, and then ICP alignment is performed based on these normal distributions.

[0100] Assume that the point cloud distribution of each frame after PCA is expressed as follows:

[0101]

[0102] in Represents the coordinates of the center point of the normal distribution in the i-th grid of the point cloud of this frame, represents the covariance matrix of the i-th grid of the frame point cloud. A represents the probability distribution set of all grids in the frame point cloud after PCA, a i represents the probability distribution of the point cloud in the i-th grid, with a i The meaning is the same, but for a i Specific explanation of .

[0103] Using the expression method in formula (5), suppose the two point clouds to be matched are P = {p i} and Q = {q i}, then the objective function of the ICP algorithm based on NDT is as follows:

[0104]

[0105] R and τ represent the rotation and translation information between the two frames of point cloud changes, respectively. By continuously optimizing and modifying R and τ through the ICP algorithm to minimize the objective function value, the transformation relationship T between the two frames of point cloud can be finally obtained. kk-1 , where T kk-1 Represents the rotation information R and translation information τ between the k-th frame point cloud and the k-1-th point cloud.

[0106] The final positioning information of the unmanned vehicle output by the laser inertial subsystem is T k for:

[0107] T k =Π k T k T k-1 (7)

[0108] 4.2 Feature Point Depth Acquisition

[0109] The point cloud information collected by the LiDAR can provide depth information for visual feature points. According to the transformation information T between the pre-calibrated LiDAR coordinate system and the camera coordinate system, LC , project the point cloud coordinates from the laser radar coordinate system to the camera coordinate system, and the visual feature points can be searched to obtain the depth. Let the laser point cloud coordinates be p(x,y,z), and the projected coordinates be p'(x',y',z'), and project according to the following formula:

[0110] p'=T LC p (8)

[0111] Assume that the pixel coordinates of the visual feature point before depth acquisition are x(u, v, 1). After laser point cloud projection, for each visual feature point, search the projected laser point cloud within a radius of 0.5m, then count all the searched point clouds and calculate the average depth. As the depth information of the visual feature points, the coordinates of the visual feature points after obtaining the depth are as follows:

[0112]

[0113] 5. Visual information data processing:

[0114] 5.1 Visual feature point extraction and matching

[0115] The corner detection algorithm is used to extract the SURF, SIFT or ORB feature point descriptors in the visual image, and the pixel coordinates of each feature point in the camera coordinate system are expressed as:

[0116] x(u,v,1)(10)

[0117] Then, the corresponding matching feature points between the two frames of visual images are searched, and the matching feature points are found using the fast approximate nearest neighbor method. The depth information of the feature points is obtained by the method in 4.2, and the feature points with depth can be expressed as formula (9). Finally, the spatial position coordinates of the feature points are calculated by the epipolar geometry method, which is expressed as follows. The fast approximate nearest neighbor method and epipolar geometry methods are relatively mature and will not be repeated here.

[0118] P(X, Y, Z)(11)

[0119] 5.2 Bundle Adjustment

[0120] After obtaining the matching feature points, the bundle adjustment is used to minimize the reprojection error between the matching feature points, and then the camera pose is solved (after transformation, the position information of the unmanned vehicle can be obtained). Suppose the spatial coordinates P of n feature points are expressed as formula (11), and their pixel coordinates θ are expressed as formula (9). The objective function of the bundle adjustment optimization is as follows.

[0121]

[0122] Where K represents the intrinsic parameter matrix of the camera, and R represents the pose to be solved.

[0123] 5.3 Kalman Filter

[0124] The pose obtained by bundle adjustment needs to be further fused with the inertial information input by the IMU to obtain the output of the visual inertial odometry subsystem. The fusion method uses the extended Kalman filter. First, the pose formula (3) (4) obtained by the IMU pre-calculation is used to perform the Kalman filter prediction step to obtain the predicted pose. Then, the Kalman filter gain K is calculated in the Kalman filter update step, and finally the optimized pose R in formula (12) is integrated as the final position information output

[0125]

[0126] Where C represents the covariance matrix of the pose measurement. The application of the extended Kalman filter is relatively mature, and the detailed process will not be repeated here.

[0127] 6. Environmental complexity analysis and system decision-making

[0128] Assume that the number of visual feature points obtained by the visual feature point detection module is n, of which m feature points can be obtained through the depth of the lidar point cloud, then the environment complexity E is defined as:

[0129]

[0130] Finally, the system location information T final The output is:

[0131]

[0132] Threshold is a constant, ranging from 0 to 1.

[0133] The following is a system embodiment corresponding to the above method embodiment. This embodiment can be implemented in conjunction with the above embodiment. The relevant technical details mentioned in the above embodiment are still valid in this embodiment. In order to reduce repetition, they are not repeated here. Accordingly, the relevant technical details mentioned in this embodiment can also be applied in the above embodiment.

[0134] The present invention also proposes an agricultural unmanned vehicle positioning odometer system based on multi-sensor fusion, which includes:

[0135] The initial module is used to obtain multiple visual feature points of the environment in which the agricultural unmanned vehicle is located through the visual sensor detection of the agricultural unmanned vehicle, and at the same time obtain the depth information of the visual feature points using the environmental point cloud collected by the depth sensor of the agricultural unmanned vehicle. The visual feature points with the obtained depth information are used as stable feature points, and the proportion of the number of stable feature points to the total number of visual feature points is counted as the complexity of the current environment;

[0136] A positioning module is used to collect relative posture information through an inertial sensor of the agricultural unmanned vehicle, generate inertial posture information according to the relative posture information; fuse the inertial posture information and the visual feature points through a Kalman filter to obtain first posture information, perform de-distortion processing on the environmental point cloud according to the relative posture information to obtain a corrected point cloud, and perform point cloud registration processing in combination with the inertial posture information to obtain second posture information;

[0137] The decision module is used to select the first pose information or the second pose information as the final positioning result of the agricultural unmanned vehicle according to the complexity.

[0138] The agricultural unmanned vehicle positioning odometer system based on multi-sensor fusion, wherein the de-distortion processing includes:

[0139]

[0140] where Δφ tk represents the posture correction information of the kth point in the point cloud received at time t, Δp tk represents the position correction information of the kth point in the point cloud received at time t, t represents the actual time when the point is received, tk represents the start time of receiving the frame point cloud, Δt represents the total time of receiving the frame point cloud, Δφ k,k+1 and Δp k,k+1 Respectively represent the attitude transformation and position transformation of the point cloud of this frame relative to the previous frame calculated by the inertial sensor;

[0141] The posture correction information and the position correction information are integrated to form a posture transformation matrix, and the 3D coordinates of the correction point cloud are obtained by multiplying the posture transformation matrix with the 3D coordinates of the environment point cloud;

[0142] The process of generating the inertial posture information includes:

[0143] The inertial posture information includes and Represents the transformation information of posture and position respectively, t k and t k-1 represents the moment when two consecutive point clouds or images are received, the subscript k represents the sequence number of the point cloud or image, ω t and a t represents the angular velocity and acceleration collected by the inertial sensor at time t, v k-1 Represents the speed measured when the k-1th point cloud or image is received;

[0144]

[0145] The point cloud registration process includes:

[0146] The corrected point cloud is gridded, and the normal distribution of the laser point cloud contained in each grid is calculated using the principal component analysis method; the point cloud distribution of each frame of point cloud after PCA is expressed as follows:

[0147]

[0148] in Represents the coordinates of the center point of the normal distribution in the i-th grid of the point cloud of this frame, represents its covariance matrix;

[0149] The two point clouds to be matched are P = {p i} and Q = {q i}, the objective function of the iterative closest point based on the normal distribution transformation is:

[0150]

[0151] In the formula, R and τ represent the rotation and translation information between the two frames of point cloud changes, respectively. The R and τ corresponding to the minimum value of the objective function are taken as the transformation relationship T kk-1 , T kk-1 Represents the rotation information R and translation information t between the k-th frame point cloud and the k-1-th frame point cloud;

[0152] The second posture information T k =T k =Π k T k T k-1 ;

[0153] The first pose information generation process includes:

[0154] According to the transformation information T between the laser radar coordinate system and the camera coordinate system LC , project the point cloud coordinates from the laser radar coordinate system to the camera coordinate system, and the depth of the visual feature point can be obtained by searching; let the laser point cloud coordinates be p(x,y,z), the projected coordinates be p'(x',y',z'), and project according to the following formula:

[0155] p′=T LC p

[0156] The pixel coordinates of the visual feature point before depth acquisition are x(u, v, 1). After laser point cloud projection, for each visual feature point, the projected laser point cloud is searched within the specified radius, and the depth average of all searched point clouds is counted. As the depth information of the visual feature point, the coordinates of the visual feature point after obtaining the depth The spatial position coordinates P (X, Y, Z) of the visual feature points are calculated by the epipolar geometry method;

[0157] There are n spatial position coordinates P of feature points, and their pixel coordinates θ are expressed as The bundle adjustment optimization objective function is:

[0158]

[0159] Where K represents the intrinsic parameter matrix of the camera, and R represents the pose to be solved;

[0160] According to the inertial posture information The Kalman filter gain K is calculated in the update step of the Kalman filter, and finally the pose R optimized in the bundle adjustment optimization objective function is integrated as the first pose information Where C represents the covariance matrix of posture measurement;

[0161] The decision module is used to obtain the number of visual feature points obtained by the visual feature point detection module as n, where m feature points can be obtained through the laser radar point cloud to obtain the depth, then the environment complexity E:

[0162]

[0163] The final positioning result T final for:

[0164]

[0165] Threshold is a constant, ranging from 0 to 1.

[0166] The present invention also proposes a storage medium for storing a program for executing any one of the agricultural unmanned vehicle positioning odometer methods based on multi-sensor fusion.

[0167] The present invention also proposes a client, which is used for any of the agricultural unmanned vehicle positioning odometer systems based on multi-sensor fusion.

Claims

1. A method for positioning odometer of agricultural unmanned vehicle based on multi-sensor fusion, characterized in that: include: Step 1: The agricultural unmanned vehicle is equipped with a visual sensor, an inertial sensor and a depth sensor. The visual sensor is used to detect and obtain multiple visual feature points of the environment in which the agricultural unmanned vehicle is located. At the same time, the depth information of the visual feature points is obtained using the environmental point cloud collected by the depth sensor. The visual feature points with depth information are used as stable feature points, and the proportion of the number of stable feature points to the total number of visual feature points is counted as the complexity of the current environment. Step 2, the inertial sensor collects relative posture information, and generates inertial posture information according to the relative posture information; the inertial posture information and the visual feature points are fused through a Kalman filter to obtain the first posture information, and the environment point cloud is dedistorted according to the relative posture information to obtain a corrected point cloud, and the point cloud registration processing is performed in combination with the inertial posture information to obtain the second posture information; Step 3: If the complexity is greater than the threshold, the second posture information is selected as the final positioning result of the agricultural unmanned vehicle; otherwise, the first posture information is selected as the final positioning result of the agricultural unmanned vehicle; The first pose information generation process includes: According to the transformation information T between the laser radar coordinate system and the camera coordinate system LC , project the point cloud coordinates from the laser radar coordinate system to the camera coordinate system, and the depth of the visual feature point can be obtained by searching; let the laser point cloud coordinates be p(x,y,z), the projected coordinates be p'(x',y',z'), and project according to the following formula: p=T LC p The pixel coordinates of the visual feature point before depth acquisition are (u, v, 1). After laser point cloud projection, for each visual feature point, the projected laser point cloud is searched within the specified radius, and the depth average of all searched point clouds is counted. As the depth information of the visual feature point, the coordinates of the visual feature point after obtaining the depth The spatial position coordinates P (X, Y, Z) of the visual feature points are calculated by the epipolar geometry method; There are n spatial position coordinates P of feature points, and the pixel coordinate θ is expressed as The bundle adjustment optimization objective function is: Where K represents the intrinsic parameter matrix of the camera, and R represents the pose to be solved; According to the inertial posture information The Kalman filter gain K is calculated in the update step of the Kalman filter, and finally the pose R optimized in the bundle adjustment optimization objective function is integrated as the first pose information Where C represents the covariance matrix of pose measurement.

2. The agricultural unmanned vehicle positioning odometer method based on multi-sensor fusion as claimed in claim 1, characterized in that: The de-distortion process includes: where Δφ tk represents the posture correction information of the kth point in the point cloud received at time t, Δp tk represents the position correction information of the kth point in the point cloud received at time t, t represents the actual time when the point is received, tk represents the start time of the point cloud reception of this frame, Δt represents the total time of the point cloud reception of this frame, Δφ k,k+1 and Δp k,k+1 Respectively represent the attitude transformation and position transformation of the point cloud of this frame relative to the previous frame calculated by the inertial sensor; The posture correction information and the position correction information are integrated to form a posture transformation matrix, and the 3D coordinates of the correction point cloud are obtained by multiplying the posture transformation matrix with the 3D coordinates of the environment point cloud.

3. The agricultural unmanned vehicle positioning odometer method based on multi-sensor fusion as claimed in claim 1, characterized in that: The inertial posture information The generation process includes: The inertial posture information include and Represents the transformation information of posture and position respectively, t k and t k-1 represents the moment when two consecutive point clouds or images are received, the subscript k represents the sequence number of the point cloud or image, ω t and a t represents the angular velocity and acceleration collected by the inertial sensor at time t, v k-1 Represents the speed measured when the k-1th point cloud or image is received; 4. The agricultural unmanned vehicle positioning odometer method based on multi-sensor fusion as claimed in claim 3, characterized in that: The point cloud registration process includes: The corrected point cloud is gridded, and the normal distribution of the laser point cloud contained in each grid is calculated using the principal component analysis method; the point cloud distribution of each frame of point cloud after PCA is expressed as follows: in Represents the coordinates of the center point of the normal distribution in the i-th grid of the point cloud of this frame, represents its covariance matrix; A represents the probability distribution set of all grids in the point cloud of this frame after PCA, a i Represents the probability distribution of the point cloud in the i-th grid; The two point clouds to be matched are P = {p i } and Q = {q i }, the objective function of the iterative closest point based on the normal distribution transformation is: In the formula, R and τ represent the rotation and translation information between the two frames of point cloud changes, respectively. The R and τ corresponding to the minimum value of the objective function are taken as the transformation relationship T kk-1 , T kk-1 Represents the rotation information R and translation information t between the k-th frame point cloud and the k-1-th frame point cloud; The second posture information T k =T k =T kk-1 T k-1 .

5. The agricultural unmanned vehicle positioning odometer method based on multi-sensor fusion as claimed in claim 1 or 4, characterized in that: This step 3 includes: The number of visual feature points obtained by the visual feature point detection module is n, of which m feature points can be used to obtain the depth through the lidar point cloud, then the environmental complexity E is: The final positioning result T final for: Threshold is a constant, ranging from 0 to 1.

6. An agricultural unmanned vehicle positioning odometer system based on multi-sensor fusion, characterized in that: include: The initial module is used to obtain multiple visual feature points of the environment in which the agricultural unmanned vehicle is located through the visual sensor detection of the agricultural unmanned vehicle, and at the same time obtain the depth information of the visual feature points using the environmental point cloud collected by the depth sensor of the agricultural unmanned vehicle. The visual feature points with the obtained depth information are used as stable feature points, and the proportion of the number of stable feature points to the total number of visual feature points is counted as the complexity of the current environment; A positioning module is used to collect relative posture information through an inertial sensor of the agricultural unmanned vehicle, generate inertial posture information according to the relative posture information; fuse the inertial posture information and the visual feature points through a Kalman filter to obtain first posture information, perform de-distortion processing on the environmental point cloud according to the relative posture information to obtain a corrected point cloud, and perform point cloud registration processing in combination with the inertial posture information to obtain second posture information; The decision module selects the second posture information as the final positioning result of the agricultural unmanned vehicle if the complexity is greater than a threshold, otherwise selects the first posture information as the final positioning result of the agricultural unmanned vehicle; The first pose information generation process includes: According to the transformation information T between the laser radar coordinate system and the camera coordinate system LC , project the point cloud coordinates from the laser radar coordinate system to the camera coordinate system, and the depth of the visual feature point can be obtained by searching; let the laser point cloud coordinates be p(x,y,z), the projected coordinates be p'(x',y',z'), and project according to the following formula: p=T LC p The pixel coordinates of the visual feature point before depth acquisition are (u, v, 1). After laser point cloud projection, for each visual feature point, the projected laser point cloud is searched within the specified radius, and the depth average of all searched point clouds is counted. As the depth information of the visual feature point, the coordinates of the visual feature point after obtaining the depth The spatial position coordinates P (X, Y, Z) of the visual feature points are calculated by the epipolar geometry method; There are n spatial position coordinates P of feature points, and the pixel coordinate θ is expressed as The bundle adjustment optimization objective function is: Where K represents the intrinsic parameter matrix of the camera, and R represents the pose to be solved; According to the inertial posture information The Kalman filter gain K is calculated in the update step of the Kalman filter, and finally the pose R optimized in the bundle adjustment optimization objective function is integrated as the first pose information Where C represents the covariance matrix of pose measurement.

7. A storage medium for storing a program for executing a method for positioning odometer of an agricultural unmanned vehicle based on multi-sensor fusion as described in any one of claims 1 to 5.