Orchard navigation universal tree row perception method and system based on 3D point cloud distribution peak
By using 3D point cloud distribution peak detection technology in the orchard navigation system, the problem of tree row perception in complex orchard environments is solved, universal navigation for multiple types of orchards is achieved, and accurate navigation of robots in different environments is ensured.
Patent Information
- Application Number
- CN202410672208.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-09-03
Smart Images

Figure CN118584500A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of agricultural robots, and in particular to a universal tree row perception method and system for orchard navigation based on 3D point cloud distribution peaks. Background Art
[0002] Satellite navigation solutions are widely used in the field. However, due to the obstruction of satellite signals by the dense canopy of the orchard, it is difficult to meet the positioning requirements of inter-row navigation. Robots can realize autonomous navigation between rows through local environmental perception in the orchard, which is an objective need to solve the unmanned and robotized production of orchards. Tree row perception uses sensors such as cameras and radars to collect environmental data in real time. By detecting the position of the visual or geometric features of the tree row in the robot coordinate system, the robot's position relative to the center line of the tree row is estimated. my country's orchard production is mainly based on family-style decentralized management, with small scale and many operators, resulting in a variety of orchard types. From trellis orchards with slender stems and discrete planting to high spindle orchards with vertical canopy distribution and dense planting, the tree row environment of different types of orchards is significantly different; at the same time, the poor standardization of orchard planting leads to differences in agronomy such as row spacing, plant spacing, and ground management in different orchards of the same type.
[0003] At present, local perception schemes used for orchard navigation can be mainly classified into three categories: the first category is the perception of individual fruit trees, the second category is the boundary line extraction for the entire tree row, and the third category is to match and locate the data collected by the sensor in real time with the known tree row model. The perception scheme for individual fruit trees relies on the relatively regular columnar geometric features of the trunk, and can achieve good results in orchards where the trunks are not covered by the canopy and the fruit trees are separated from each other. Since the canopy does not have any regular geometric shapes, the scheme based on trunk detection cannot be applied to orchards where the canopy is vertically distributed and the sensor cannot detect the trunk. Even in orchards where the trunk can be detected, the color and radius of the trunk will affect the perception effect; the premise of the boundary line extraction scheme is that there is a clear continuous boundary between the tree row area and the non-tree row area, and it cannot be applied to orchards with discrete planting and slender trunks; the model established based on a certain orchard can be applied to other orchards with similar inter-row environments, but the model is established based on the spatial position of the tree row structure, and it is still necessary to establish respective perception models based on the differences in the tree row structure of different types of orchards.
[0004] The complex and changeable orchard environment poses a huge challenge to navigation based on local environmental perception. Existing research mainly focuses on extracting environmental features of specific orchards, which is difficult to meet the robot's general perception needs between orchards with large differences. Summary of the invention
[0005] In view of the shortcomings in the prior art, the present invention provides a universal tree row perception method and system for orchard navigation based on 3D point cloud distribution peaks, which provides correct point cloud data for universal tree row point cloud distribution peak detection for multiple types of orchards under conditions of local uneven ground and multiple interferences through technical means such as attitude deviation compensation, region of interest segmentation, inter-row interference point cloud filtering and heading pre-correction, and then performs tree row point cloud distribution peak detection based on distribution variance, thereby achieving fully autonomous perception of tree rows in complex orchard environments.
[0006] The present invention achieves the above technical objectives through the following technical means.
[0007] A universal tree row perception system for orchard navigation based on 3D point cloud distribution peaks, comprising:
[0008] The pitch-roll attitude deviation compensation algorithm module obtains the ground point cloud through a multi-line laser radar, estimates the tilt angle of the robot body caused by the unevenness of the local ground based on the angle between the ground point cloud and the laser radar horizontal coordinate plane, and performs deviation compensation on the point cloud data to obtain the corrected point cloud;
[0009] The region segmentation and point cloud filtering algorithm module extracts the point cloud of the region of interest for tree row perception from the corrected point cloud, and then implements point cloud clustering filtering of large-volume interfering point cloud clusters between rows to obtain the point cloud for inter-row positioning;
[0010] The heading pre-correction algorithm module performs linear fitting in the point cloud used for inter-row positioning, determines whether heading pre-correction is needed based on the fitting results, and provides the angle range of the robot's heading;
[0011] The tree row point cloud distribution peak detection algorithm module performs tree row point cloud distribution peak detection in the point cloud used for inter-row positioning according to the angle range of the robot's heading, and then determines the heading deviation and lateral deviation.
[0012] In the above technical solution, the multi-line laser radar is horizontally installed on the median vertical line in front of the robot body at a height H1 from the ground, and its X-coordinate axis coincides with the robot heading.
[0013] A generalized tree row perception method for orchard navigation based on 3D point cloud distribution peaks:
[0014] (1) The multi-line laser radar obtains the tree row and the inter-row environment point cloud P0, and obtains the ground point cloud after filtering; the pitch angle α and roll angle β of the robot body relative to the ground are estimated based on the angle between the normal vector of the plane equation where the ground point cloud is located and the Z axis of the laser radar coordinate system; the rotation matrix M1 composed of α and β is multiplied on the left by P0 to compensate for the measurement deviation of the tree row point cloud caused by the tilt of the robot, and the corrected point cloud P is obtained;
[0015] (2) In the corrected point cloud P, the length interval, width interval, and height interval of the region of interest are determined based on the distance thresholds in the three coordinate axis directions of the radar coordinate system, and the point cloud P of the region of interest is segmented. I ; According to the point cloud P of the area of interest I The vertical angle of each laser point relative to the horizontal coordinate plane of the laser radar is determined to determine the laser scan line number to which it belongs. The point cloud is clustered in units of laser scan lines to obtain point cloud clusters. The middle point of each point cloud cluster is used to replace all the points of the point cloud cluster to obtain the point cloud P used for line positioning. L ;
[0016] (3) The point cloud P used for inter-row positioning L Project along the Z axis to reduce the dimension and obtain a 2D point cloud. Perform linear fitting on the tree point cloud to obtain a straight line l. Determine the reference heading angle θ0 obtained by linear fitting of the tree point cloud according to the slope k of l. When θ0>t θ When , the robot rotates in place by -θ0 to pre-correct the heading and returns to (1). Otherwise, according to the angle interval R where the robot's heading is located, the point cloud P used for inter-row positioning is L In the distribution, based on the variance δ 2 Perform tree line point cloud peak detection, determine heading deviation and lateral deviation, and control the robot body to move along the tree line centerline; where t θ Heading deviation threshold for determining whether heading pre-correction is required;
[0017] Furthermore, the length interval, width interval and height interval of the region of interest are respectively expressed as (0, X max )、(-Y t , Y t ) and (Z min , Z max ), distance threshold Y t , X max , Z min and Z max satisfy:
[0018]
[0019] Where d is the orchard row width, z1 is the height of the highest point in the ground point cloud; z2 is the height of the robot body, θ h is the horizontal resolution of the multi-line laser radar, θ v is the vertical resolution of the multi-line laser radar, t w is the minimum trunk diameter, t h It is one third of the lowest tree row height, and H1 is the height of the multi-line lidar above the ground.
[0020] Furthermore, the angle interval R of the robot's heading is: θ0=arctank,T θ0 The tolerance threshold for linear fitting of tree point cloud.
[0021] Furthermore, in the angle interval R where the robot's heading is located, in the point cloud P used for inter-row positioning L In the above, the tree point cloud peak detection is performed based on the distribution variance to determine the heading deviation, specifically:
[0022] Angle sampling is performed from left to right in R at equal intervals Δθ to construct a set of rotation matrices M2 = {M 21 , M 22 , ...M 2i ……}, the point cloud P used for inter-row positioning L Multiply M on the left 2i , and obtain a set of point clouds P L ′={P L1 , P L2 , ... P Li ...}, where i = 1, 2, 3...;
[0023] In the direction perpendicular to the robot’s heading, L Each point cloud P in ′ Li Divide into m equal intervals;
[0024] In each point cloud P Li Calculate the variance of tree row point cloud distribution in Get a set of variances
[0025] According to δ 2 The maximum value of δ 2 imax Determine the heading deviation θ.
[0026] Furthermore, the P Li =M 2i P L , Among them, θ l is the left boundary value of interval R, and i is the sampling number.
[0027] Furthermore, the Among them, S ij P Li The number of point clouds within the jth partition, P Li The mean value of the number of point clouds in the middle interval △d is the width between partitions.
[0028] Furthermore, the heading deviation θ=-(θ l +i max*Δθ), where i max is δ 2 imax The corresponding sampling times.
[0029] Furthermore, the maximum value δ 2 imax The corresponding point cloud is divided into left and right parts based on the robot heading. The lateral deviation L is determined based on the partition with the largest number of point clouds in the left and right parts and the partition with the largest point cloud height difference: E(Y l ) is the mean Y coordinate of all points in the partition with the largest number of point clouds on the left and the partition with the largest point cloud height difference. E(Y r ) is the mean Y coordinate of all points in the partition with the largest number of point clouds on the right and the partition with the largest point cloud height difference.
[0030] The present invention has the following beneficial effects: the present invention determines the common 3D point cloud distribution peak features of orchard tree rows of multiple types and specifications, thereby constructing a universal tree row perception method and system for orchard navigation based on 3D point cloud distribution peaks, and realizing fully autonomous universal perception of multi-type and multi-specification orchard tree rows in complex orchard environments such as local ground undulations and the presence of large-volume interference point cloud clusters. The method is simple and reliable, and is convenient for the deployment and operation of different robot bodies. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 This is a schematic diagram of the robot navigation perception of the present invention;
[0032] Figure 2 This is a schematic diagram of the multi-line laser radar and its scanning lines according to the present invention;
[0033] FIG3( a ) is a schematic diagram of a tree row in an orchard of the multi-main-branch tree-forming type according to the present invention;
[0034] FIG3( b ) is a schematic diagram of a high spindle type orchard tree row according to the present invention;
[0035] FIG3( c ) is a schematic diagram of a tree row in an orchard of the horizontal trellis type according to the present invention;
[0036] FIG4( a ) is a schematic diagram of a point cloud P0 of a tree row and an environment between rows in an orchard of the multi-branch tree-forming type according to the present invention;
[0037] FIG4( b ) is a schematic diagram of a high spindle type orchard tree row and an inter-row environment point cloud P0 according to the present invention;
[0038] FIG4( c ) is a schematic diagram of a point cloud P0 of a horizontal trellis type orchard tree row and the inter-row environment according to the present invention;
[0039] Figure 5A schematic diagram of the angle between the normal line of the horizontal coordinate plane of the laser radar and the normal line of the ground according to the present invention;
[0040] Figure 6 The point cloud P of the region of interest described in the present invention I Schematic diagram;
[0041] Figure 7 is the point cloud P used for inter-row positioning according to the present invention L Schematic diagram;
[0042] Figure 8(a) is a schematic diagram of the equal-interval segmentation of the point cloud of a high spindle type orchard tree row;
[0043] Figure 8(b) is a schematic diagram of the equal-interval segmentation of the point cloud of the orchard tree row of the multi-main-branch tree-arbor type / horizontal trellis type;
[0044] Fig. 9 It is a schematic diagram of the data transmission sequence between the algorithm modules of the perception system;
[0045] In the figure, 1. tree row, 2. robot body, 3. robot heading, 4. multi-line lidar, 5. lidar horizontal coordinate plane, 6. tree row point cloud, 7. ground point cloud, 8. laser scanning line, 9. large volume interference point cloud cluster between rows, 10. partition with the largest number of point clouds, 11. partition with the largest height difference of point clouds. DETAILED DESCRIPTION
[0046] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments, but the protection scope of the present invention is not limited thereto.
[0047] Figures 3(a), (b) and (c) show different types of orchard tree rows. In the horizontal trellis type (Figure 3(c)) orchard, the tree rows are composed of discrete, slender trunks; in the multi-main branch tree type (Figure 3(a)) orchard, the tree rows are mainly composed of trunks, but are affected by low branches, and the plant spacing, trunk shape and diameter are quite different from those of the horizontal trellis type (Figure 3(c)); in the high spindle type (Figure 3(b)) orchard, the branches and leaves of the tree rows are connected as a whole due to the vertical distribution of the canopy and the small plant spacing; although the tree row environments of different types of orchards are different, the tree rows all have the inherent characteristics of linear arrangement. According to the feature that the point cloud will gather into peaks near the tree row position, the present invention designs a tree row point cloud distribution peak detection algorithm module that is common to different orchards, and designs a heading pre-correction module to provide a detection range for the detection of the tree row point cloud distribution peak while overcoming the unknown large deviation. However, the uneven ground in the actual working environment will cause the robot to produce a pitch angle α and a roll angle β relative to the ground, causing the spatial distribution of the point cloud to deviate from the actual environment; in addition, a large amount of orchard environmental data such as the top canopy of the orchard, the ground and distant discrete point clouds have no effect on the detection of tree row point cloud distribution peaks, and the large point cloud clusters generated by branches between rows, pedestrians, fruit frames, clustered high-stem weeds, etc. will interfere with the robot's judgment of tree rows; therefore, the present invention designs a pitch-roll attitude deviation compensation algorithm module and a region segmentation and point cloud filtering algorithm module to solve the above two problems respectively. The order of data transmission between the pitch-roll attitude deviation compensation algorithm module, the region segmentation and point cloud filtering algorithm module, the heading pre-correction algorithm module and the tree row point cloud distribution peak detection algorithm module is as follows: Fig. 9 As shown, the fully autonomous operation of the airborne general tree row perception method is achieved.
[0048] The pitch-roll attitude deviation compensation algorithm module obtains the ground point cloud 7 through the multi-line laser radar 4, and autonomously estimates the tilt angle of the robot body 2 caused by the unevenness of the local ground according to the angle between the ground point cloud 7 and the laser radar horizontal coordinate plane 5, and performs deviation compensation on the point cloud data to obtain the corrected point cloud P;
[0049] The region segmentation and point cloud filtering algorithm module extracts the point cloud P of the region of interest for tree row perception from the corrected point cloud P. I , and then realize the point cloud clustering filtering of the large volume interference point cloud cluster 9 between rows, and obtain the point cloud P for inter-row positioning L ;
[0050] Heading pre-correction algorithm module is used for point cloud P of inter-line positioning L Perform linear fitting in the robot, determine whether heading pre-correction is needed based on the fitting result, and provide the angle interval R of the robot heading 3;
[0051] The tree row point cloud distribution peak detection algorithm module detects the point cloud P used for inter-row positioning according to the angle interval R where the robot heading 3 is located. L The tree line point cloud peak detection is performed in the process, and the heading deviation θ and lateral deviation L are determined autonomously.
[0052] like Figure 1 As shown, a multi-line laser radar 4 (preferably a 16-line laser radar in this embodiment) is horizontally installed on the vertical midline in front of the robot body 2 at a height H1 above the ground, and its X coordinate axis coincides with the robot heading 3. The XYZ coordinate axes of the 16-line laser radar form a right-hand rectangular coordinate system as shown in Figure 2 As shown; the robot body 2 obtains the tree row and the inter-row environment point cloud P0 through the 16-line laser radar, and transmits the tree row and the inter-row environment point cloud P0 to the orchard navigation universal tree row perception system deployed in the airborne industrial computer. The perception system autonomously processes the tree row and the inter-row environment point cloud P0 to obtain the heading deviation θ and lateral deviation L of the robot body 2 relative to the center line of the tree row, and finally generates a motion steering instruction based on θ and L to control the robot body 2 to move along the center line of the tree row. Specifically, it includes the following steps:
[0053] 1) 16-line laser radar obtains the point cloud P0 of tree rows and inter-row environment;
[0054] 2) Calculate the distance D1 between the position where the bottom laser scanning line 8 of the 16-line laser radar intersects with the ground and the 16-line laser radar, and filter out the point cloud within the sphere with the origin of the 16-line laser radar coordinate as the center and D1 as the radius, so as to avoid the interference of higher protruding objects such as ridges near the robot body 2 on the ground fitting;
[0055]
[0056] In the formula, is the vertical angle of the 16-line laser radar scanning downward;
[0057] 3) The filtered tree rows and inter-row environment point clouds are subjected to terrain filtering to obtain ground point clouds 7. In this embodiment, the terrain filtering adopts a point cloud cloth filter algorithm CFM (Cloth Filter method);
[0058] 4) Using the random sampling consistency algorithm in the ground point cloud 7 to estimate the approximate area of the ground, performing the least squares plane fitting on the ground point cloud falling in the area, and calculating the normal vector N1 of the obtained plane equation;
[0059] N1 = (a1, b1, 1) (2)
[0060] In the formula, the intermediate quantity A, B, C are the coefficients of the obtained plane equation Ax+By+Cz+D=0;
[0061] 5) According to Figure 5 The angle between N1 and the Z axis of the laser radar coordinate system is shown, and the pitch angle α and roll angle β of the robot body 2 relative to the ground are calculated:
[0062]
[0063] 6) The tree row and inter-row environment point cloud P0 obtained by the 16-line laser radar as shown in Figure 4 (a), (b), and (c) is multiplied by the rotation matrix M1 composed of α and β to compensate for the measurement deviation of the tree row point cloud 6 caused by the tilt of the robot, and the corrected point cloud P is obtained;
[0064]
[0065] 7) In the corrected point cloud P, the length interval (0, X max )、Width interval(-Y t , Y t ) and height interval (Z min , Z max ), and split into Figure 6 The point cloud P of the region of interest shown I ; Y t , X max , Z min and Z max satisfy:
[0066]
[0067] Where d is the orchard row width; z1 is the height of the highest point in the ground point cloud 7; z2 is the height of the robot body 2; θ h is the horizontal resolution of the 16-line laser radar, θ v is the vertical resolution of the 16-line laser radar; t w is the minimum trunk diameter; t h One third of the lowest tree row height;
[0068] 8) According to the point cloud P of the area of interest I The vertical angle of each laser point relative to the laser radar horizontal coordinate plane 5 is determined autonomously to determine the laser scan line 8 serial number ID to which it belongs;
[0069]
[0070] Where (x, y, z) represents the point cloud P of the region of interest I Coordinates of the laser point in the middle;
[0071] 9) After determining the IDs of all laser points, perform Euclidean clustering of the point cloud based on the laser scanning line 8, and cluster the points with a Euclidean distance less than t on each laser scanning line 8. w The adjacent points of are clustered into a point cloud cluster;
[0072] 10) Using the middle point of each point cloud cluster to replace all the points of the point cloud cluster, the number of point clouds of the large volume interference point cloud cluster 9 between rows is reduced without changing the spatial structure of the tree row 1, and the following is obtained: Figure 7 The point cloud P used for inter-row positioning is shown L ;
[0073] 11) The point cloud P used for inter-row positioning L Project along the Z axis to reduce the dimension, and obtain a 2D point cloud without height information. Perform linear fitting of the tree point cloud in the 2D point cloud to obtain a straight line l. In this embodiment, the linear fitting algorithm adopts a random sampling consistency algorithm.
[0074] 12) Determine the angle interval R of the robot's heading 3 according to the slope k of l or perform heading pre-correction:
[0075]
[0076] Where θ0 is the reference heading angle obtained by linear fitting of the tree point cloud, T θ0 is the tolerance threshold of the linear fitting of the tree point cloud, t θ Heading deviation threshold for determining whether heading pre-correction is required;
[0077] When θ0 exceeds t θ When the robot rotates in place -θ0 to perform heading pre-correction, and re-performs point cloud acquisition, posture deviation compensation, interference point cloud filtering and heading pre-correction, otherwise, angle sampling is performed in the angle interval R; in this embodiment, T θ0 Take 5°, t θ Take 15°;
[0078] 13) Perform angular sampling from left to right in the angle interval R where the robot heading 3 is located at equal intervals Δθ to construct a set of rotation matrices M2 = {M 21 , M 22 , ...M 2i ……}, the point cloud P used for inter-row positioning L Multiply M on the left 2i (i=1,2,3……), get a set of point clouds P L ′={P L1 , P L2 , ... P Li ……}, in this embodiment, Δθ is 0.1°;
[0079]
[0080] In the formula, θ l is the left boundary value of interval R, i is the number of sampling times;
[0081] 14) As shown in Figure 8(a) and (b), in the direction perpendicular to the robot heading 3, P L Each point cloud P in ′ Li Divide into m equal intervals;
[0082] 15) In each point cloud P Li (i=1,2,3......) calculate the variance of tree row point cloud distribution Get a set of variances
[0083]
[0084] In the formula, △d is the width of the partition, S ij P Li The number of point clouds within the jth partition; P Li The mean value of the number of point clouds in the middle partition interval;
[0085] Due to the linear arrangement of tree row 1, the point cloud will gather into a peak in the interval near the tree row position, and the better the parallelism between robot heading 3 and tree row 1, the more prominent the tree row point cloud peak is. 2 the bigger it is;
[0086] 16) According to δ 2 The maximum value of δ 2 imax Determine the heading deviation θ;
[0087] θ=-(θ l +i max *Δθ)(10)
[0088] In the formula, i max is δ 2 imax The corresponding number of sampling times;
[0089] 17) As shown in Figure 8(a) and (b), the maximum value δ 2 imax The corresponding point cloud P rimax The robot heading 3 is used as the boundary to divide the robot into left and right parts. The partition 10 with the largest number of point clouds and the partition 11 with the largest point cloud height difference are used as the basis for calculating the lateral deviation L:
[0090]
[0091] In the formula, E(Y l) is the mean Y coordinate of all points in the partition 10 with the largest number of point clouds on the left and the partition 11 with the largest point cloud height difference. r ) is the mean Y coordinate of all points in the partition 10 with the largest number of point clouds on the right and the partition 11 with the largest point cloud height difference.
[0092] The embodiments are preferred implementations of the present invention, but the present invention is not limited to the above-mentioned implementations. Any obvious improvements, substitutions or modifications that can be made by those skilled in the art without departing from the essential content of the present invention belong to the protection scope of the present invention.
Claims
1. A universal tree row perception system for orchard navigation based on 3D point cloud distribution peaks, characterized in that: include: The pitch-roll attitude deviation compensation algorithm module obtains the ground point cloud through a multi-line laser radar, estimates the tilt angle of the robot body caused by the unevenness of the local ground based on the angle between the ground point cloud and the laser radar horizontal coordinate plane, and performs deviation compensation on the point cloud data to obtain the corrected point cloud; The region segmentation and point cloud filtering algorithm module extracts the point cloud of the region of interest for tree row perception from the corrected point cloud, and then implements point cloud clustering filtering of large-volume interfering point cloud clusters between rows to obtain the point cloud for inter-row positioning; The heading pre-correction algorithm module performs linear fitting in the point cloud used for inter-row positioning, determines whether heading pre-correction is needed based on the fitting results, and provides the angle range of the robot's heading; The tree row point cloud distribution peak detection algorithm module performs tree row point cloud distribution peak detection in the point cloud used for inter-row positioning according to the angle range of the robot's heading, and then determines the heading deviation and lateral deviation.
2. The universal tree row perception system for orchard navigation based on 3D point cloud distribution peaks according to claim 1 is characterized in that: The multi-line laser radar is horizontally installed on the median vertical line in front of the robot body at a height H1 above the ground, and its X-coordinate axis coincides with the robot heading.
3. A method for generalized tree row perception of orchard navigation based on 3D point cloud distribution peaks according to any one of claims 1-2, characterized in that: (1) The multi-line laser radar obtains the tree row and the inter-row environment point cloud P0, and obtains the ground point cloud after filtering; the pitch angle α and roll angle β of the robot body relative to the ground are estimated based on the angle between the normal vector of the plane equation where the ground point cloud is located and the Z axis of the laser radar coordinate system; the rotation matrix M1 composed of α and β is multiplied on the left by P0 to compensate for the measurement deviation of the tree row point cloud caused by the tilt of the robot, and the corrected point cloud P is obtained; (2) In the corrected point cloud P, the length interval, width interval, and height interval of the region of interest are determined based on the distance thresholds in the three coordinate axis directions of the radar coordinate system, and the point cloud P of the region of interest is segmented. I ; According to the point cloud P of the area of interest I The vertical angle of each laser point relative to the horizontal coordinate plane of the laser radar is determined to determine the laser scan line number to which it belongs. The point cloud is clustered in units of laser scan lines to obtain point cloud clusters. The middle point of each point cloud cluster is used to replace all the points of the point cloud cluster to obtain the point cloud P used for line positioning. L ; (3) The point cloud P used for inter-row positioning L Project along the Z axis to reduce the dimension and obtain a 2D point cloud. Perform linear fitting on the tree point cloud to obtain a straight line l. Determine the reference heading angle θ0 obtained by linear fitting of the tree point cloud according to the slope k of l. When θ0>t θ When , the robot rotates in place by -θ0 to pre-correct the heading and returns to (1). Otherwise, according to the angle interval R where the robot's heading is located, the point cloud P used for inter-row positioning is L In the above, the tree line point cloud peak detection is performed based on the distribution variance, the heading deviation and lateral deviation are determined, and the robot body is controlled to move along the center line of the tree line; where t θ Heading deviation threshold for determining whether heading pre-correction is required.
4. The universal tree row perception method for orchard navigation according to claim 3 is characterized in that: The length interval, width interval and height interval of the region of interest are respectively expressed as (0, x max )、(-Y t , Y t ) and (Z min , Z max ), distance threshold Y t , X max , Z min and Z max satisfy: Where d is the orchard row width, z1 is the height of the highest point in the ground point cloud; z2 is the height of the robot body, θ h is the horizontal resolution of the multi-line laser radar, θ v is the vertical resolution of the multi-line laser radar, t w is the minimum trunk diameter, t h It is one third of the lowest tree row height, and H1 is the height of the multi-line lidar above the ground.
5. The universal tree row perception method for orchard navigation according to claim 3 is characterized in that: The angle interval R of the robot's heading is: θ0=arctank,T θ0 The tolerance threshold for linear fitting of tree point cloud.
6. The universal tree row perception method for orchard navigation according to claim 5, characterized in that: According to the angle interval R of the robot's heading, the point cloud P used for inter-row positioning L In the above, the tree point cloud peak detection is performed based on the distribution variance to determine the heading deviation, specifically: Angle sampling is performed from left to right in R at equal intervals Δθ to construct a set of rotation matrices M2 = {M 21 , M 22 , ...M 2i ……}, the point cloud P used for inter-row positioning L Multiply M on the left 2i , and obtain a set of point clouds P L ′={P L1 , P L2 , ... P Li ...}, where i = 1, 2, 3...; In the direction perpendicular to the robot’s heading, L Each point cloud P in ′ Li Divide into m equal intervals; In each point cloud P Li Calculate the variance of tree row point cloud distribution in Get a set of variances According to δ 2 The maximum value of δ 2 imax Determine the heading deviation θ.
7. The universal tree row perception method for orchard navigation according to claim 6 is characterized in that: The P Li =M 2i P L , Among them, θ l is the left boundary value of interval R, and i is the sampling number.
8. The universal tree row perception method for orchard navigation according to claim 6, characterized in that: Said Among them, S ij P Li The number of point clouds within the jth partition, P Li The mean value of the number of point clouds in the middle interval △d is the width between partitions.
9. The universal tree row perception method for orchard navigation according to claim 6, characterized in that: The heading deviation θ=-(θ l +i max *Δθ), where i max is δ 2 imax The corresponding sampling times.
10. The universal tree row perception method for orchard navigation according to claim 9, characterized in that: The maximum value δ 2 imax The corresponding point cloud is divided into left and right parts based on the robot heading. The lateral deviation L is determined based on the partition with the largest number of point clouds in the left and right parts and the partition with the largest point cloud height difference: E(Y l ) is the mean Y coordinate of all points in the partition with the largest number of point clouds on the left and the partition with the largest point cloud height difference. E(Y r ) is the mean Y coordinate of all points in the partition with the largest number of point clouds on the right and the partition with the largest point cloud height difference.
