Automatic fruit tree pruning system based on machine vision

Through multi-sensor fusion technology based on machine vision, the precise positioning and pruning of the automatic fruit tree pruning system is achieved, which solves the problem of difficult balance between pruning quality and efficiency in the existing technology, and improves the accuracy and efficiency of fruit tree pruning.

CN118542162AActive Publication Date: 2024-08-27NANJING AGRICULTURAL UNIVERSITY

Patent Information

Application Number
CN202410686427.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-08-21
Filing Date
2024-05-30
Publication Date
2024-08-27
Estimated Expiration
2044-05-30

AI Technical Summary

Technical Problem

Existing automatic fruit tree pruning systems have challenges in ensuring pruning quality and efficiency, especially under complex canopy structures and environmental conditions, where it is difficult to achieve accuracy and robustness.

Method used

An automatic fruit tree pruning system based on machine vision is used, combined with multi-sensor fusion positioning and three-dimensional RGB point cloud map construction technology, using crawler vehicles, robotic arms, navigation lidar, depth cameras and edge computing modules to achieve accurate analysis of the structure of fruit branches. Evaluate and prune. Specific steps include path planning, real-time positioning and simultaneous mapping, point cloud filtering, tree trunk identification, pruning area determination and robotic arm operation.

Benefits of technology

It achieves precise pruning of fruit tree branches, improves pruning accuracy and efficiency, reduces labor costs, and reduces damage to fruit trees.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118542162A
    Figure CN118542162A
Patent Text Reader

Abstract

The invention provides an automatic fruit tree pruning system based on machine vision. A mechanical arm device, a positioning navigation device and an edge calculation module are arranged on a crawler. The system can synchronously scan an orchard through a laser radar to obtain laser point clouds in the operation process, construct an orchard panoramic point cloud map in cooperation with orchard images collected by a camera, and segment the point clouds of all fruit trees so as to guide a crawler to move to the vicinity of the fruit trees; then, according to local point cloud and close-range images obtained through scanning of a close-range laser radar arranged at the working end of the mechanical arm and a working end depth camera, branches needing to be pruned on the fruit tree branches are recognized, and an actuator is correspondingly driven to prune. The laser scanning technology, the machine vision technology, the autonomous navigation and obstacle avoidance technology and the fruit tree branch pruning technology are integrated, automation and intelligentization of fruit tree branch pruning are truly achieved, and powerful systematic technical support is provided for improving the fruit tree cultivation efficiency by improving the tree shape.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of orchard operation equipment, and in particular to an automatic fruit tree pruning system based on machine vision. Background Art

[0002] Fruit tree pruning is an important horticultural measure, which is of great significance for improving light distribution and gas exchange at the canopy and orchard scales, balancing the nutritional and reproductive growth of fruit trees, and promoting the implementation of cultivation and harvesting measures. However, fruit tree pruning requires professional agricultural technicians, which makes pruning one of the most expensive and labor-intensive tasks. For decades, researchers have been committed to the mechanization of fruit tree pruning. However, large-scale mechanical pruning systems are difficult to ensure pruning quality, which may lead to a decrease in fruit quality and yield.

[0003] In recent years, many academic institutions and enterprises at home and abroad have been committed to the research and development of automatic pruning technology for fruit trees. Mechanical pruning and robotic pruning are the two mainstream methods. Mechanical pruning is mainly hedge pruning, which is a non-selective large-scale pruning system. This method has been widely used in grapevine pruning, but for fruit crops, the pruning quality assurance ability of non-selective pruning systems is limited and may cause excessive growth of branches, so it is mostly used for summer pruning. Robotic pruning is a selective pruning operation that achieves the same quality and level of pruning as manual pruning through fine target recognition and mechanical control. However, due to the complexity of the crown structure and environment, high requirements are placed on the mobility of the robot, the control accuracy and efficiency of the robotic arm.

[0004] With the development of machine vision sensors such as stereo vision and lidar, as well as target detection technology in the field of image analysis, some progress has been made in robotics for pruning complex tree crowns (such as apple and cherry trees). However, most current research faces the problem of balancing pruning accuracy and efficiency. Therefore, the accuracy, robustness and efficiency of robots in outdoor orchard environments need to be further addressed. Summary of the invention

[0005] In view of the shortcomings of the prior art, this application provides an automatic fruit tree pruning system based on machine vision. This application comprehensively utilizes multi-sensor fusion positioning and coordinated three-dimensional RGB point cloud map construction technology to achieve accurate evaluation of the device posture and the structure of the branches of the fruit tree, so as to achieve accurate pruning of the branches of the fruit tree according to the pruning strategy set by the user. This application specifically adopts the following technical solutions.

[0006] Firstly, to achieve the above-mentioned purpose, a machine vision-based automatic pruning system for fruit trees is proposed, which comprises: a tracked vehicle, on which a rotating base is arranged, a mechanical arm device is arranged on the rotating base, the mechanical arm device has telescopic freedom, and an end effector, a working end depth camera and a close-range laser radar are also arranged on the top of the mechanical arm device; the tracked vehicle is also equipped with a navigation laser radar, a navigation depth camera and an inertial navigation unit which are communicatively connected to the edge computing module; the edge computing module is used to perform the following steps: perform path planning according to a pre-received and recorded digital map of the orchard, and drive the tracked vehicle to run in the orchard according to the planned path according to the inertial navigation data fed back by the inertial navigation unit, the orchard image fed back by the navigation depth camera and the scanning information detected by the navigation laser radar; during the operation of the tracked vehicle, the navigation laser radar is triggered to scan the orchard area, and the navigation depth camera is synchronously triggered to collect the orchard image, and then the image scanned by the navigation laser radar at the same time is collected. The laser point cloud obtained and the orchard image obtained by the navigation depth camera are used to perform real-time positioning and simultaneous mapping (SLAM) output posture, and the extended Kalman filter is used for data assimilation to update the orchard panoramic point cloud map; according to the orchard panoramic point cloud map, the fruit tree point cloud is filtered in a given area, the point cloud with a height higher than the trunk is screened out, the trunk position of the fruit tree is identified, and then the trunk position determines the corresponding stop point when the robot is pruning; after driving the crawler vehicle to the corresponding stop point near the fruit tree to be pruned according to the position of the single fruit tree point cloud, the local point cloud obtained by the close-range laser radar scanning and the close-range image collected by the depth camera at the operation end are segmented to remove background noise, extract the point cloud cluster corresponding to the fruit tree, and then determine the pruning area according to the pruning rules received and entered in advance; the rotating base and the robotic arm device are driven to move the end effector to the pruning area, and the end effector is triggered to perform the pruning operation according to the position distance between the end effector and the branch to be pruned.

[0007] Optionally, a machine vision-based automatic pruning system for fruit trees as described in any of the above, wherein the specific steps of removing background noise and extracting the point cloud cluster corresponding to the fruit tree according to the local point cloud obtained by the close-range laser radar scanning and the close-range image captured by the depth camera at the working end include: first, performing threshold segmentation on the depth image of the depth camera at the working end to obtain a foreground image with complex background removed, masking it to the close-range color image to obtain a foreground branch image; then, segmenting the pixels of the main branches and side branches in the foreground branch image through the SegNet semantic segmentation network to obtain a mask image of the main branches and side branches; then, jointly calibrating the depth camera at the working end and the close-range laser radar to obtain an external parameter matrix from the camera to the radar, so that the point cloud and the image can be accurately matched, and the image coordinate system is projected to the point cloud coordinate system, so as to segment the three-dimensional point cloud of the branch based on the branch pixel position recognized by the image, and extract the point cloud cluster corresponding to the fruit tree.

[0008] In an orchard, trees are planted in multiple rows, so it is inevitable that multiple rows of fruit trees appear in the field of view at the same time. It is difficult to remove the fruit trees in the last row simply by relying on color information. The depth camera can simultaneously obtain depth images and color images, and the depth image can be used to effectively remove the background such as distant trees.

[0009] Optionally, an automatic fruit tree pruning system based on machine vision as described in any of the above, wherein the laser point cloud obtained by scanning the navigation laser radar at the same time and the posture output by the navigation depth camera for real-time positioning and synchronous mapping (SLAM) are used, and the extended Kalman filter is used for data assimilation to update the orchard panoramic point cloud map. The specific process of obtaining positioning and three-dimensional point cloud information includes the following steps: Step S1: Based on the timestamps marked when the navigation depth camera and the navigation laser radar are collected, the orchard image and laser scanning data with a timestamp interval of less than 30 milliseconds are aligned; Step S2: The navigation depth camera and the navigation laser radar are jointly calibrated through livox_camera_lidar_calibration. First, the intrinsic parameter matrix K of the camera is obtained, and then the images of the navigation laser radar and the camera are simultaneously captured using a calibration plate for calibration to obtain the external parameter matrix T from the camera to the radar. LIDAR_CAMERA , according to [x LIDAR ,y LIDAR ,z LIDAR ,1]=T LIDAR_CAMERA -1 ·(Z·K -1 [u,v,1]) projects the image coordinate system to the point cloud coordinate system, where x LIDAR Indicates the horizontal position of the point under the laser radar coordinates, y LIDAR Indicates the position of the point in the left and right directions under the laser radar coordinates, z LIDAR Indicates the vertical position of the point under the laser radar coordinates, Z indicates the depth corresponding to the pixel coordinates, K -1Represents the inverse matrix of the camera's intrinsic parameter matrix, and [u, v, 1] represents the position of the point in the pixel coordinate system; Step S3: After point cloud preprocessing and feature point extraction steps, the Loam_livox algorithm is used to perform real-time positioning and synchronous mapping based on the livox laser radar, and the VIO-SLAM algorithm is used to perform real-time positioning and synchronous mapping based on the ZED2 depth camera, and their corresponding pose information is output respectively; Step S4: The extended Kalman filter is used to assimilate the poses output by the laser radar SLAM and the depth camera SLAM, and the camera field of view is used to calibrate the pose error caused by the loss of laser SLAM feature points. After initializing the initial position and map of the robot, the extended Kalman filter algorithm predicts the next state through the state model, and then uses the sensor model and observation model, as well as the currently detected data, to update the robot's position, direction, map and other variables. By repeatedly executing the above steps, the position and posture of the robot at any time are calculated; Step S5: Update the orchard digital map of the corresponding position according to the real-time posture, and update the orchard panoramic three-dimensional point cloud in real time; Step S6: Based on the improved Loam_livox algorithm, the laser point cloud is colored using the mapping relationship between the laser point cloud and the camera point cloud to generate a panoramic three-dimensional color point cloud of the orchard.

[0010] With the help of extended Kalman filtering, feature loss and positioning errors caused by perspective changes, target movement, etc. between different frame data can be reduced in motion.

[0011] Optionally, a machine vision-based automatic fruit tree pruning system as described in any of the above, wherein the specific steps of segmenting and determining the pruning area and adjusting the lateral angle and longitudinal position of the robot arm accordingly according to the pruning area density pruning rules received and entered in advance are as follows: Step T1: According to the height and orientation, the fruit tree point cloud cluster is divided into different units corresponding to different pruning areas, numbered S1, S2 to Sn; Step T2: By rotating the base to adjust the lateral angle of the robot arm, by retracting the rod to adjust the longitudinal position of the robot arm, each area to be pruned is adjusted in turn to be maintained within the field of view of the working end depth camera and the close-range lidar on the end effector.

[0012] Optionally, in an automatic fruit tree pruning system based on machine vision as described in any of the above, the point cloud clusters corresponding to the branches are segmented and extracted according to the point cloud obtained by the close-range lidar scanning and the close-range image collected by the depth camera at the working end in the following manner: Step R1: By performing threshold segmentation on the depth image of the depth camera at the working end, a foreground image with complex background removed is obtained, and the foreground branch image is obtained by masking to the close-range color image; Step R2: The main branch and side branch pixels are segmented by the SegNet semantic segmentation network, and the mask images of the main branch and side branch are obtained after denoising; Step R3: Use the depth camera and close-range laser radar at the working end to accurately match the point cloud and image according to step S2, and project the image coordinate system to the point cloud coordinate system; Step R4: Segment the three-dimensional point cloud of the main branch and the side branch based on the branch pixel position recognized by the image; Step R5: Cluster the single fruit tree point cloud obtained by the close-range laser radar scan through the K-Means algorithm to obtain multiple point cloud clusters corresponding to different fruit trees; Step R6: Further segment and merge the point cloud clusters of each tree through column fitting and calculation of the cluster center distance to obtain the single branch point cloud of the main branch and the side branch.

[0013] Optionally, an automatic fruit tree pruning system based on machine vision as described in any of the above, wherein the end effector is driven to move to the corresponding pruning area, the branches to be pruned are identified according to the pruning rules received and entered in advance, and the end effector is triggered to perform the pruning operation according to the position distance between the end effector and the branches to be pruned. The specific steps until the pruning is completed include: Step P1: Determine the branch inclination angle and branch length of a single side branch in the pruning area, and identify and screen the branches to be pruned and the lower end positions of the branches based on the branch inclination angle range and branch length range required by the user-specified pruning rules; Step P2: Sort the pruning points in the field of view by distance, and perform pruning operations on the branches to be pruned that are closest to the end effector one by one; During the pruning operation, according to the depth The depth information obtained from the image of the camera is used to measure the position distance and orientation between the end effector and the position to be pruned in real time, and the end effector is adjusted to the same straight line as the pruning point by extending and retracting the telescopic rod. The end effector is controlled to approach the pruning point by the telescopic arm, and the motion trajectory of the robotic arm is recorded. After the depth camera at the working end detects that the position to be pruned of the branch to be pruned reaches the executable range between the blades of the end effector, the end effector is triggered to drive the blades to close for pruning. Step P3: According to the motion trajectory of the robotic arm recorded during the pruning operation, the robotic arm is driven to return to the original position, and the next pruning point in the pruning area is detected according to step P1, and steps P2 and P3 are executed until there is no pruning point in the area, and the crawler chassis and the rotating base are moved to the next pruning area.

[0014] After the fruit trees are shaped, dormant pruning is mostly focused on pruning one-year-old branches. Due to the growth characteristics of fruit trees, the growth angle of one-year-old branches has specific rules. By measuring the inclination of branches, one-year-old branches can be quickly identified, and by measuring the length of branches, it can be quickly determined whether pruning is needed.

[0015] Optionally, an automatic fruit tree pruning system based on machine vision as described in any of the above, wherein the robotic arm device comprises: a supporting pole, a telescopic arm and a retractable rod, wherein the bottom of the supporting pole is connected to the rotating base, the rotating base is used to realize horizontal rotation, the upper part of the supporting pole is movably connected to the telescopic arm, the retractable rod is arranged between the supporting pole and the telescopic arm, and an end effector is arranged at the end of the telescopic arm; the retractable rod is retracted and extended to drive the telescopic arm to make a longitudinal circular motion with the length of the telescopic arm as a radius; the telescopic arm is retracted and extended to drive the end effector to move forward and backward.

[0016] Optionally, an automatic fruit tree pruning system based on machine vision as described in any of the above, wherein the end actuator includes a stepper motor, a transmission mechanism and a pruning knife; wherein the output shaft direction of the stepper motor is perpendicular to the direction of the opening and closing movement of the pruning knife, and the end of the output shaft is provided with a frustum structure that maintains surface contact with the transmission mechanism, the frustum structure drives the transmission mechanism to make a circular motion, and the transmission mechanism is also provided with a gear, and one side of the pruning knife is provided with a rack structure that matches the gear; the transmission mechanism is provided with a circular ring structure on the outer periphery, and the thickness of the circular ring structure gradually decreases from the inner circular end to the outer circular end; the side surface of the frustum structure maintains surface contact with the circular ring structure; the stepper motor drives the frustum structure to drive the circular ring structure to rotate, and the circular ring structure synchronously drives the gear to rotate during the rotation process, and the engagement of the gear and the rack structure drives the movable blade to rotate and open and close relative to the fixed blade.

[0017] Optionally, in any of the above-described automatic fruit tree pruning systems based on machine vision, the step of using the SLAM algorithm to perform pose estimation and panoramic mapping on the data scanned by the laser radar in step S3 specifically includes: first, removing edge points, points with excessively large or small intensities, points with incident angles close to π or 0, and obscured points in the laser point cloud collected by the navigation laser radar; then, performing feature extraction, dividing the points into two main categories based on the local smoothness of the candidate points and the reflectivity of the points: edge points and plane points, wherein plane points refer to points belonging to a plane; then, using an iterative pose optimization program to calculate the pose of the navigation laser radar, and during the calculation process , use the residuals between points to estimate the pose: for edge points and plane points, when estimating the pose, first find the 5 nearest points in the point cloud set, calculate the mean and covariance matrix of these five points, ensure that the edge points are in a straight line and the plane points are in the same plane, and then calculate the distance residual; after obtaining the edge point residual and the plane point residual, iterative pose solution is performed by constructing the optimization equation; in this iterative process, two iterations are first performed to eliminate dynamic objects, and the pose is updated using the optimization result of the previous iteration until 20% of the maximum residual is removed, and then a complete pose optimization is performed to obtain the six-degree-of-freedom pose estimation of the navigation lidar and output the orchard panoramic point cloud map.

[0018] Due to the laser spot size, laser signal-to-noise ratio and mechanical characteristics of scanning of solid-state laser radar, there are bad points and empty points in the original point cloud. Through denoising, high-quality points are selected from the original point cloud as valid points. In this way, the state estimation of the system will be more robust when the point cloud is used later. By identifying edge points and plane points, reliable feature points can be obtained, so that different feature points collected by the laser radar in adjacent frames can be matched, and the laser radar posture in the moving state can be updated through distance iterative optimization.

[0019] Optionally, in any of the above-described automatic fruit tree pruning systems based on machine vision, the real-time posture in step S3 is determined according to the estimated amount of mechanical arm rotation determined in the following steps: t The angular velocity provided by the gyroscope is affected by noise. The white noise contained in the gyroscope measurement is n ω and the gyroscope bias is b ωt , where white noise n ω is modeled as Gaussian white noise, with bias b ωt It is modeled as a random walk process, and the angular velocity formula including the error is obtained as The time length between two consecutive close-range LiDAR frames, frame k and frame k+1, is t k and t k+1 , then the pre-integration of the gyroscope The pre-integration result is subjected to coordinate transformation to obtain a rotation estimate in the world coordinate system.

[0020] Optionally, the automatic pruning system for fruit trees based on machine vision as described in any of the above is characterized in that the step S6 improves the Loam_livox algorithm and adds a point cloud map coloring function. Q1: Jointly calibrate the laser radar and the camera, refer to the aforementioned step S2. Q2: De-noise and feature extraction, iterative posture optimization, feature matching, and odometer output of the point cloud, refer to the aforementioned step S3. Q3: Timestamp alignment of the laser radar point cloud and the camera image point cloud. Record the timestamps of each frame of the laser radar point cloud and the image respectively. Because the frame rate of the image is higher than the frame rate of the point cloud, when the image corresponding to each frame of the point cloud is registered, the image with a time range of 15ms before and after the timestamp of each frame of the point cloud will be selected. If there are multiple images, the image with the closest time distance will be selected. Q4: Projection is established from the laser point cloud to the image pixel. Using the extrinsic parameters of the laser radar and the left eye of the binocular camera, each point processed in the current frame of the point cloud is converted from the laser radar coordinate system to the camera left eye coordinate system. Then, the point cloud is projected from the camera coordinate system to the pixel coordinate system using the intrinsic parameters of the camera. The RGB information contained in the corresponding pixel is added to the information of the point to obtain a point with RGB color information. Q5: Set the point cloud color display to correspond to the RGB attribute value of the point to display the three-dimensional color point cloud map. Through map reconstruction, the point cloud map is continuously updated to obtain the latest colored point cloud map. The original laser point cloud map is registered with the three-dimensional color point cloud map using plane feature points and edge feature points to compare the point cloud coloring effect.

[0021] By coloring the three-dimensional point cloud and adding spectral information in addition to position and shape, it is more helpful to evaluate the quality of point cloud reconstruction and subsequently use color information to detect tree trunks and distinguish point clouds between branches and leaves.

[0022] Beneficial Effects

[0023] The machine vision-based automatic pruning system for fruit trees provided in the present application is provided with a mechanical arm device, a positioning and navigation device, and an edge computing module on a tracked vehicle, so as to obtain a laser point cloud by scanning the orchard through a laser radar during the operation of the tracked vehicle, and to construct a full-view point cloud map of the orchard in coordination with the orchard image collected by the camera. The present application can segment the point cloud of each fruit tree according to the full-view point cloud map of the orchard to guide the tracked vehicle to run near the fruit tree, and then further identify the branches to be pruned on the fruit tree trunks according to the local point cloud and close-range image obtained by scanning the close-range laser radar and the depth camera at the operating end of the mechanical arm, and drive the actuator accordingly for pruning. The present application truly realizes the automation and intelligence of fruit tree branch pruning by integrating laser scanning technology, machine vision technology, autonomous navigation and obstacle avoidance technology, and fruit tree branch pruning technology, and provides strong systematic technical support for improving the efficiency of fruit tree cultivation by improving tree shape.

[0024] This application uses three-dimensional laser scanning technology for fruit trees to predict pruning areas; and uses depth cameras and close-range laser radar imaging technology to achieve accurate pruning point prediction. The fruit tree pruning robot provided in this application uses a tracked vehicle, a robotic arm device, a positioning and navigation device, a machine vision device, and a control device to comprehensively realize fruit tree pruning. The positioning and navigation device and the machine vision device can realize the collection of equipment operation data, which is used for user-indicated path planning and the formulation of pruning rules; the positioning and navigation system can be used for path navigation, orchard map construction and real-time obstacle avoidance through GNSS antennas, inertial navigation units, laser radars, and depth cameras; the pruning rule-execution system can identify the robot's stop point and determine the pruning points of the branches on the fruit tree trunks that need to be pruned based on the local point cloud and close-range image obtained by the close-range laser radar and the depth camera scanning at the working end of the robotic arm, so as to realize real-time tracking and visualization of pruning. The present invention creatively integrates the robot's autonomous positioning and navigation system with the fruit tree branch pruning system, realizing the automation and intelligence of fruit tree branch pruning; the present invention adopts a crawler mobile platform, which can adapt to the complex orchard road environment; the present invention uses the GNSS positioning and navigation system and the laser radar to enable real-time obstacle avoidance, and instructs the robot to travel along the indicated path. The three-dimensional scanning system located in front of the crawler vehicle will obtain an initial scan of the orchard and fruit trees during driving. The robot then returns to the charging point along the indicated path. The present invention uses a depth camera to perform target detection, analyzes the diameter and direction of the branches in real time, identifies the location of the pruning point, feeds back to the robotic arm, and finally performs pruning. The present invention reduces labor costs, improves pruning accuracy and efficiency, and reduces damage to fruit trees during the pruning process.

[0025] Other features and advantages of the present application will be set forth in the following description, and in part will become apparent from the description, or may be understood by practicing the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The accompanying drawings are used to provide a further understanding of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings:

[0027] Figure 1 is a side view of the crawler vehicle used in the present application;

[0028] Figure 2 It is a schematic diagram of the overall structure of the crawler vehicle used in this application;

[0029] Figure 3 It is a schematic diagram of the positioning and map construction method used in the system of this application;

[0030] Figure 4 This is a schematic diagram of the system framework of this application;

[0031] Figure 5 This is a schematic diagram of the branch and trunk structure of a fruit tree;

[0032] Figure 6 This is a schematic diagram of the branch image segmentation mask;

[0033] Figure 7 A schematic diagram of the structure of the branches required for calculating whether to prune the branches and a schematic diagram of measuring the length and angle of the pruned branches;

[0034] Figure 8 This is a system overview diagram of the Loam_livox technology used in this application;

[0035] Fig. 9 A schematic diagram of the camera posture estimation for this application;

[0036] Fig.10 This is a schematic diagram of the structural principle of the end effector of this application;

[0037] Fig.11 A system platform built for real-time positioning and mapping;

[0038] Fig.12 The absolute position error and relative position error of the system of this application for the turning trajectory;

[0039] Fig.13 It is the overall framework of the multi-sensor fusion system;

[0040] Fig.14 Estimation framework for the camera's pose;

[0041] Fig.15 Project the laser point cloud to image pixels;

[0042] Fig.16Different test scenarios for applying the present application, where (a) is a pond; (b) is a road; (c) is a densely planted fruit forest, and (d) is a partial view of a densely planted fruit forest; (e) is a sparsely planted fruit forest, and (f) is a partial view of a sparsely planted fruit forest;

[0043] Fig.17 The point cloud map of the orchard, where (a) is a densely planted pear orchard, (d) is a sparsely planted pear orchard, (g) is a pond in the orchard, (j) is a road in the orchard, (b, e, h, k) are local enlarged images of the point cloud, and (c, f, i, l) are camera views corresponding to the local enlarged point cloud images;

[0044] Fig.18 The “mouth”-shaped operation scenario in a sparse pear orchard, where (a) is the absolute error comparison between our method and Loam_livox, (b) is the comparison of the APE curves over time, (c) is the comparison of the RES box plots, and (d) is the comparison of the RES histograms;

[0045] Fig.19 The “N” type operation scenario in a sparse pear orchard, where (a) is the absolute error comparison between our method and Loam_livox; (b) is the comparison of APE curves over time; (c) is the comparison of RES box plots; (d) is the comparison of RES bar graphs;

[0046] Fig. 20 For the sparsely planted pear orchard scenario: (a) absolute error comparison between our method and Loam_livox, (b) comparison of APE curves over time, (c) comparison of RES box plots, and (d) comparison of RES histograms;

[0047] Fig.21 In the densely planted pear orchard scenario: (a) absolute error comparison between our method and Loam_livox, (b) comparison of APE curves over time, (c) comparison of RES box plots, and (d) comparison of RES histograms;

[0048] Fig. 22 For the orchard road scenario: (a) absolute error comparison between our method and Loam_livox, (b) comparison of APE curves over time, (c) comparison of RES box plots, and (d) comparison of RES histograms.

[0049] Fig.23 For the orchard pond scenario: (a) absolute error comparison between our method and Loam_livox, (b) comparison of APE curves over time, (c) comparison of RES box plots, and (d) comparison of RES histograms;

[0050] Fig.24This is an example of classifying points into edge points and plane points based on the local smoothness of the candidate points and the reflectivity of the points during feature extraction. DETAILED DESCRIPTION

[0051] In order to make the purpose and technical solution of the embodiment of the present application clearer, the technical solution of the embodiment of the present application will be clearly and completely described in conjunction with the drawings of the embodiment of the present application. Obviously, the described embodiment is a part of the embodiment of the present application, not all of the embodiments. Based on the described embodiment of the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0052] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art to which this application belongs. It should also be understood that terms such as those defined in common dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless defined as herein.

[0053] The meaning of "and / or" described in this application means that the situations where each exists alone or both exist at the same time are included.

[0054] The meaning of "inside and outside" mentioned in the present application refers to the direction from the outer shell to the battery module inside the box body relative to the tracked vehicle itself, and the opposite direction is outside; it is not a specific limitation on the device mechanism of the present application.

[0055] The meaning of "left and right" in this application refers to that when the user is facing the forward direction of the tracked vehicle, the user's left is left and the user's right is right, rather than a specific limitation on the device mechanism of this application.

[0056] The term “connection” as used in this application may mean a direct connection between components or an indirect connection between components via other components.

[0057] The meaning of "up and down" mentioned in this application refers to that when the user is facing the forward direction of the crawler vehicle, the direction from the ground to the top of the telescopic arm is up, and the opposite is down, rather than a specific limitation on the device mechanism of this application.

[0058] For decades, the precise positioning, mapping, and navigation of agricultural robots in orchard environments have been a hot topic of research. With the development and in-depth research of SLAM technology, there are more and more research results on LiDAR SLAM, and the application scenarios are becoming more and more complex. The scanning range and data acquisition accuracy of LiDAR are suitable for building some large-scale scene maps. However, the agricultural orchard environment is completely different from the campus environment. There are no high walls in the orchard, only some shorter fruit trees, and the branches and leaves of the fruit trees have irregular angles and gaps. These factors will reduce the accuracy of the data obtained by the LiDAR sensor. Therefore, the limitations of a single LiDAR sensor are difficult to adapt to the complex scenes in agricultural orchards.

[0059] In response to the above problems, an efficient adaptive sensor fusion odometer framework based on simultaneous localization and mapping can solve the positioning problem of some agricultural unmanned ground vehicles without the help of GPS. However, this framework will greatly reduce the stable geometric features of laser SLAM due to the unstructured and complex characteristics of the orchard. The unstructured characteristics of the orchard scene include irregular and unstable environmental information such as the size of the fruit trees, the number of branches, the shaking of leaves, and the high overlap of leaves and branches, which leads to the uncertainty and indescribability of the lidar data. When processing, feature extracting and matching laser point clouds, problems such as insufficient, imperfect and difficult matching of geometric features will be encountered.

[0060] The dynamics of the environment and the unevenness of the ground cause the LiDAR to increase the outliers of point cloud features when acquiring point clouds, reduce the validity of the data and reduce the available point cloud data. During the point cloud processing, more bad points will be eliminated, resulting in a reduction in the number of point clouds and a reduction in the extracted geometric features. This in turn leads to a reduction in the available valid data when estimating the pose, reducing the accuracy and precision of the estimate, increasing the pose error, and thus reducing the robustness of the system.

[0061] By applying the multi-sensor fusion method proposed in this application, technicians can use the data obtained by IMU and depth camera to increase the diversity of data and improve the accuracy of pose estimation. The loosely coupled method of this application can further enhance the robustness of the system, enabling it to better adapt to complex and harsh environments. Experimental results show that the multi-sensor fusion method proposed in this article increases the diversity of data, so that even when the information obtained by the lidar is insufficient, the loosely coupled fusion framework can still be effectively used to estimate high-precision results, increasing the stability and robustness of the system.

[0062] In addition, the point cloud obtained by the lidar has no color information, and the environmental map established using Loam_livox does not contain color features. This application also improves the algorithm, using the information obtained by multiple sensors, fusing the lidar point cloud and the depth camera image, and extracting the RGB color information of the depth camera image to each corresponding point cloud point, so that the established environmental map has rich color features. The experimental results show that our improvement is effective, which increases the diversity of map information, establishes a richer point cloud map for orchard management, and provides reliable data for intelligent management.

[0063] Specifically, if Figure 4 As shown, the automatic fruit tree pruning system based on machine vision proposed by the present invention utilizes pruning point positioning and recognition technology, and truly realizes free movement and precise operation in the complex road environment of the orchard through the fruit tree pruning robot hardware device, the fruit tree pruning control system and the crawler chassis. The present application realizes positioning, navigation and synchronous mapping through GNSS, inertial navigation unit and laser radar, realizes branch recognition through machine vision device, and performs pruning in combination with pruning rules.

[0064] During the specific operation process, this application Figure 1 , 2 The fruit tree automatic pruning system based on machine vision shown in the figure realizes the pruning operation of fruit trees. The hardware device of the fruit tree pruning robot includes:

[0065] The tracked mobile platform is used to carry system-related devices such as the robotic arm device, the positioning and navigation device, and can also meet the needs of the fruit tree pruning system on complex roads in the orchard; the robotic arm device is installed on the tracked mobile platform and is used for pruning fruit tree branches; the positioning and navigation device is installed on the tracked mobile platform and is used for the system's path planning and real-time obstacle avoidance.

[0066] The crawler mobile platform consists of a driving wheel 2 at the upper front, a guide wheel 12 at the rear, a load-bearing wheel 1 in the middle, a tensioning wheel 10, an annular crawler track 13 wrapped around the above wheels, a chassis driving motor 11, a battery module 3 and a box 21. Among them, the battery module 3 is connected to the chassis drive motor 11 to provide electrical energy for the chassis drive motor 11. Both of them are arranged inside the box body 21. The two sides of the box body 21 are provided with a driving wheel 2, a guide wheel 12, a load-bearing wheel 1, a tensioning wheel 10, and an annular track 13. The driving wheel 2, the guide wheel 12, the load-bearing wheel 1, the tensioning wheel 10 and the annular track 13 constitute the walking system of the crawler mobile platform. The chassis drive motor 11 drives the driving wheel 2 to rotate, and the driving wheel 2 drives the rear guide wheel 12 to rotate through the annular track 13. A load-bearing wheel 1 is arranged between the driving wheel 2 and the guide wheel 12, and rotates driven by the annular track 13. The load-bearing wheel 1 is arranged at the rear and lower part of the driving wheel 2, and walks in contact with the guide wheel 12. The tensioning wheel 10 is located above the load-bearing wheel 1.

[0067] The robot arm device includes a rotating base 19, which is arranged on the box 21 of the crawler mobile platform and is located at the rear of the box 21. The rotating base 19 is connected to the supporting pole 8, and the supporting pole 8 can rotate on the rotating base 19 to realize the full rotation of the robot arm device. The front end of the supporting pole 8 is connected to the telescopic arm 7, and a retracting rod 6 is connected between the supporting pole 8 and the telescopic arm 7. The end of the telescopic arm 7 is provided with an end effector 17. The retracting rod 6 is extended and retracted, driving the telescopic arm 7 to make a longitudinal arc motion with the length of the telescopic arm 7 as the radius; the telescopic arm 7 controls the end effector 17 to move forward and backward, which is used to adjust the trimming position and distance.

[0068] The end effector 17 includes Fig.10 The stepper motor 26, transmission mechanism and trimmer are shown, wherein the transmission mechanism is a gear transmission mechanism 24, and all three are arranged in the inner cavity of the trimmer housing 23. The stepper motor 26 drives the gear transmission mechanism 24 to rotate, and the gear transmission mechanism 24 drives the trimmer to open and close. The output shaft direction of the stepper motor 26 is perpendicular to the direction of the trimmer opening and closing movement.

[0069] The pruning knife includes a movable blade 22 and a fixed blade 25, wherein the fixed blade 25 is fixedly arranged inside a pruning knife housing 23, and the movable blade 22 is arranged above the fixed blade 25 and movably connected to the fixed blade 25 through a column, wherein the length of the rack structure 22-1 is designed to enable the movable blade 22 to rotate to contact the pruning knife housing 23, at which time, the angle formed by the movable blade 22 and the fixed blade 25 is the maximum opening and closing angle of the pruning knife.

[0070] The output shaft end of the stepper motor 26 is provided with a first transmission structure that maintains surface contact with the gear transmission mechanism 24. The first transmission structure is a truncated cone structure 27. The truncated cone structure 27 drives the gear transmission mechanism 24 to make a circular motion. The gear transmission mechanism 24 is also provided with a transmission member, which is a gear 24-1. The gear 24-1 is fixedly arranged at the middle position of the gear transmission mechanism 24. The trimming knife is provided with a matching member, which is a rack structure 22-1. The rack structure 22-1 is arranged at the tail of the moving blade 22. The gear 24-1 meshes with the rack structure 22-1 for movement, that is, the gear 24-1 drives the rack structure 22-1 to move, so that the moving blade 22 opens and closes relative to the fixed blade 25.

[0071] The outer periphery of the gear transmission mechanism 24 is a circular ring structure 24-2, the thickness of the circular ring structure 24-2 gradually decreases from the inner circular end to the outer circular end, the circular ring structure 24-2 maintains surface contact with the side of the truncated cone structure 27, the thin end of the truncated cone structure 27 contacts the inner circular end of the circular ring structure 24-2, and the thick end of the truncated cone structure 27 contacts the outer circular end of the circular ring structure 24-2. The stepper motor 26 drives the truncated cone structure 27 to rotate, the truncated cone structure 27 drives the circular ring structure 24-2 to rotate, the circular ring structure 24-2 drives the gear 24-1 to rotate, and the gear 24-1 drives the trimming knife to move.

[0072] When positioning and controlling the movement route of the above-mentioned fruit tree pruning robot, one can rely on a navigation device composed of an inertial navigation unit 20 for positioning navigation, a GNSS antenna 5 for receiving positioning signals, a navigation lidar 4 for building a panoramic map of the orchard, and a depth camera 14 for path planning and point cloud coloring.

[0073] In this system, the GNSS antenna, inertial navigation unit, depth camera and laser radar are directly connected to the edge computing module to guide the robot to complete the initial scan through the inertial navigation unit 20 according to the path diagram specified by the user, and use the navigation laser radar 4 and the depth camera 14 to build a SLAM panoramic map of the orchard. After identifying the pruning area, the navigation robot drives to the vicinity of the pruning point. The PID algorithm controls the robotic arm to a suitable pruning position close to the target branch and the position where the shears can be inserted, so that the shears are close to and perpendicular to the branch to perform the pruning operation.

[0074] During the pruning process, the close-range LiDAR at the robot terminal can be set to be connected to the telescopic arm and communicated with the edge computing module to measure the distance between the end effector and the branch;

[0075] The depth camera with polarized lens can also be installed at the end of the telescopic arm and communicate with the edge computing module for the identification of pruning points;

[0076] The actuator 17 at the end of the robotic arm can be realized by a stepper motor and a pruning knife. The stepper motor is connected to the edge computing module to drive the pruning knife to open or close to prune the branches.

[0077] The depth camera used in machine vision can be equipped with a polarized lens. The depth camera 18 at the working end is installed on the robot arm to achieve further accurate identification and positioning of the pruning point. When the depth camera 18 at the working end identifies the pruning point and the close-range laser radar 16 detects branches between the pruning knives, the signal can be transmitted to the edge computing module, the edge computing module issues a command, and the stepper motor drives the pruning knives to move. These steps will be repeated until all pruning tasks are completed.

[0078] The specific control of the system can be achieved through the PC 9, wireless communication module and edge computing module 15 such as Jetson Orin. The pruning robot can thus achieve the following based on the data collected by various sensors:

[0079] a Data collection, used for user-indicated path planning, pruning rule formulation, and machine vision data collection;

[0080] b Positioning and navigation, used for path navigation, orchard map construction and real-time obstacle avoidance;

[0081] c Pruning planning-execution, used for robot stop and pruning point determination, robotic arm and branch pruning point control, and real-time pruning tracking and visualization.

[0082] The above system can realize communication between the PC and the robot controller through the 4G network. The integration of each subsystem can be realized through the interface defined by the ROS system. The linkage between each subsystem can realize the complete positioning pruning operation process, that is, accurately controlling the robot to navigate from one location in the orchard to the vicinity of the pruning point of the target fruit tree by bypassing obstacles, and then perform pruning.

[0083] In the specific implementation process, this application can be assisted by Figure 3 , 4 The system shown implements the automatic pruning function of fruit trees based on machine vision, and automatically prunes the branches of each fruit tree in the orchard through the following steps:

[0084] Step 1: The user enters a two-dimensional digital map of the orchard obtained based on remote sensing images in the basic data to perform path planning and enter pruning rules;

[0085] Step 2: Enable real-time obstacle avoidance through the inertial navigation unit 20, the depth camera 14 and the navigation laser radar 4, and instruct the robot to drive along the indicated path;

[0086] Step 3: Use the navigation laser radar 4 carried by the crawler to obtain an initial scan of the orchard and fruit trees during driving, trigger the depth camera 14 to collect orchard images, upload the collected data to the edge computing, and then perform real-time positioning and synchronous mapping (SLAM) output of the laser point cloud obtained by the laser radar 4 scanning at the same time and the orchard image obtained by the navigation depth camera 14. Use the extended Kalman filter to assimilate the data, generate a SLAM-based orchard three-dimensional point cloud strip on the PC 9, and then generate a panoramic map of the orchard, obtain more stable and accurate positioning and three-dimensional point cloud information, and realize the point cloud segmentation of a single fruit tree through point cloud density detection. Specifically, this step can be achieved in the following way:

[0087] Step 3-1: Based on the timestamp, the laser point cloud collected by the navigation laser radar 4 and the orchard image collected by the depth camera 14 are registered; since the laser point cloud and the depth camera image are collected synchronously, the relative positions of the two sensors are fixed, so the robot continuously collects data during movement, and the image and the laser scanning point cloud with an interval of 30 milliseconds between the collection timestamps can be set to belong to the same position, so as to register the two data, and obtain the orchard panoramic point cloud map by combining the two data through subsequent analysis and processing steps;

[0088] Step 3-2: The navigation depth camera 14 and the navigation laser radar 4 are jointly calibrated through livox_camera_lidar_calibration. First, the intrinsic parameter matrix K of the camera is obtained. The calibration board is used to simultaneously capture images of the laser radar and the camera for calibration, and the external parameter matrix T from the camera to the radar is obtained. LIDAR_CAMERA , according to [x LIDAR ,y LIDAR ,y LIDAR ,1]=T LIDAR_CAMERA -1 ·(Z·K -1 [u,v,1]) projects the image coordinate system to the point cloud coordinate system;

[0089] Step 3-3: Use the Loam_livox algorithm to perform real-time positioning and synchronous mapping based on the livox laser radar, and use the VIO-SLAM algorithm to perform real-time positioning and synchronous mapping based on the ZED2 depth camera, and output their corresponding pose information respectively; Specifically, after performing point cloud preprocessing and feature point extraction steps, use the Loam_livox algorithm to perform real-time positioning and synchronous mapping based on the livox laser radar, and use the VIO-SLAM algorithm to perform real-time positioning and synchronous mapping based on the ZED2 depth camera, and output their corresponding pose information respectively;

[0090] Step 3-4: Use the extended Kalman filter to assimilate the data of the posture output by the laser radar SLAM and the depth camera SLAM, and use the camera's field of view to calibrate the posture error caused by the loss of the laser SLAM feature point. After initializing the robot's initial position and map, the extended Kalman filter algorithm predicts the next state through the state model, and then uses the sensor model and observation model, as well as the currently detected data to update the robot's position, direction, map and other variables. By repeatedly executing the above steps, the robot's position and posture at any time are calculated; For example, the extended Kalman filter can be used to assimilate the data of the posture output by the laser radar SLAM and the depth camera SLAM, and use the camera's field of view to calibrate the posture error caused by the loss of the laser SLAM feature point. After initializing the robot's initial position and map, the extended Kalman filter algorithm predicts the next state through the state model, and then uses the sensor model and observation model, as well as the currently detected data to update the robot's position, direction, map and other variables. By repeatedly executing the above steps, the robot's position and posture at any time are calculated;

[0091] Step 3-5: Continuously update the map according to the position and generate a panoramic 3D point cloud of the orchard in real time;

[0092] Step 3-6: Based on the improved Loam_livox algorithm, the laser point cloud is colored using the mapping relationship between the laser point cloud and the camera point cloud to generate a panoramic three-dimensional color point cloud of the orchard.

[0093] Step 4: According to the pruning rules (pruning area density) received and entered in advance, the pruning area is divided and the horizontal angle and vertical position of the robot arm are adjusted. Step 4 can be implemented in the following ways:

[0094] Step 4-1: According to the height and orientation, the fruit tree point cloud cluster is divided into different units, corresponding to different pruning areas, numbered S1, S2 to Sn;

[0095] Step 4-2: Adjust the lateral angle of the robot arm by rotating the base 19, and adjust the longitudinal position of the robot arm by retracting the rod 6 to ensure that the area to be trimmed is within the field of view of the working end depth camera 18 and the close-range laser radar 16 on the end effector.

[0096] Step 5: Identify the pruning area through the working end depth camera 18 and the close-range laser radar 16 installed on the robot arm. According to the segmentation of the local point cloud obtained by the close-range laser radar 16 scanning and the close-range image collected by the working end depth camera 18, remove the background noise and extract the point cloud cluster corresponding to the fruit tree. First, by thresholding the depth image of the working end depth camera 18, a foreground image with complex background removed is obtained, which is masked to the close-range color image to obtain the foreground branch image, and then the pixels of the main branches and side branches are segmented through the SegNet semantic segmentation network to obtain the mask images of the main branches and side branches. The working end depth camera 18 and the close-range laser radar 16 are jointly calibrated to obtain the camera-to-radar external parameter matrix, so that the point cloud and image can be accurately matched, and the image coordinate system is projected to the point cloud coordinate system. Based on the branch pixel position recognized by the image, the three-dimensional point cloud of the branch is segmented, and then the pruning area is determined according to the pruning rules received and entered in advance; according to Figure 7 Example a identifies the side branches of a fruit tree, according to Figure 7 b. Measure the length and angle of the branches. The specific steps for calculating the length of the branches and the inclination angle are as follows.

[0097] Step 5-1: Downsample the branch point cloud to reduce the computational pressure of subsequent operations. The downsampled point cloud is first subjected to a skeletonization operation based on the Laplace compression algorithm, as shown in formula (1), where P is the original point cloud, P' is the shrunk point cloud, and W L and W H is a diagonal weight matrix that balances contraction and attraction. During the contraction process, the point cloud will become thinner and thinner until the solution of the equation converges.

[0098] step5-2: Use the farthest point sampling method to sample the shrunken point cloud (ie skeleton).

[0099] Step 5-3: Take the lowest point (x i ,y i ,z i ) as the starting point (Formula 2), calculate the point closest to it (x i+1 ,y i+1 ,z i+1 ) and add the distance obtained to the total length, then make the nearest point (x i+1 ,y i+1 ,z i+1 ) is taken as the new lowest point to calculate the distance between it and the third point, and the cycle is ended until the last two points are reached to obtain the total length L of the branch.

[0100] Step 5-4: Use the open source point cloud processing library Open3D to read the point cloud of the branch and create an o3d.geometry instance. Use the "get_oriented_bounding_box()" function to get the OBB (Oriented Bounding Box) of the target branch. Assuming that the center point of the bounding box is C, the three main axis vectors are U1U2U3, and the size of the bounding box is L1L2L3, the oriented bounding box can be expressed as formula (3). Then use the rotate(self,R) function in the Open3D library to calculate the rotation matrix of the obtained OBB bounding box. Assuming that the rotation matrix is ​​R (Formula 4), the vectors of the first two columns are extracted as U x and U y After normalization, they are expressed as and Because the first and second columns correspond to the X-axis and Y-axis directions respectively. The angle θ between the main direction of the bounding box and the XoY plane (i.e. the ground) can be obtained by the dot product property of the vector (Formula 5). Since the long side direction of the bounding box is basically consistent with the extension direction of the branch, the angle information of the branch is also obtained.

[0101]

[0102] OBB={C,U1,U2,U3,L1,L2,L3} (3)

[0103]

[0104] Identify the branches to be pruned and the positions of the lower ends of the branches, so as to perform the pruning operation. Step 5 can be specifically implemented in the following manner.

[0105] Step 5-1: Perform threshold segmentation on the depth image of the depth camera 18 at the work end to obtain a foreground image with complex background removed.

[0106] Mask the foreground color image to obtain the foreground branch image;

[0107] Step 5-2: Segment the main branch and side branch pixels through the SegNet semantic segmentation network, and obtain the mask images of the main branch and side branch after denoising;

[0108] Step 5-3: Jointly calibrate the depth camera 18 and the close-range laser radar 16 at the working end to obtain the external parameter matrix from the camera to the radar, so that the point cloud and the image can be accurately matched, and the image coordinate system is projected to the point cloud coordinate system;

[0109] Step 5-4: Segment the 3D point cloud of the main branch and side branch based on the branch pixel position identified by the image;

[0110] Step 5-5: Cluster the single fruit tree point cloud obtained by the close-range LiDAR 16 scan using the K-Means algorithm to obtain multiple point cloud clusters;

[0111] Step 5-6: Use the split-merge method to further divide the obtained multiple point cloud clusters into approximate cylindrical segments. The segmentation step traverses each point cloud cluster and decomposes them until all point cloud clusters can be approximated by a cylinder. If the fitting effect is not good, it will be further decomposed (dividing the point cloud cluster into two subsets). Traverse all clusters, calculate the center point of each cluster, and merge the over-segmented clusters according to the center distance between clusters to obtain a single branch point cloud of the main branch and side branch.

[0112] Step 6: Drive the end effector 17 to move to the pruning area (such as S1), identify the branches to be pruned according to the pruning rules received and recorded in advance, and trigger the end effector 17 to perform the pruning operation according to the position distance between the end effector 17 and the branches to be pruned until the pruning is completed. The specific control process in this step is as follows:

[0113] Step 6-1: Determine the branch inclination angle and branch length of a single side branch in the pruning area, and identify the branch to be pruned and the position of the lower end of the branch based on the pruning rules (branch inclination angle and branch length range) specified by the user;

[0114] Step 6-2: Sort the distances of the pruning points in the field of view, and select the nearest branch to be pruned to perform the pruning operation;

[0115] Step 6-3: Based on the depth information obtained from the depth camera image, the position distance and orientation between the end effector 17 and the position to be pruned are calculated in real time. The end effector and the pruning point are adjusted to the same straight line through the telescopic rod 6. The end effector is controlled to approach the pruning point through the telescopic arm 7. The movement trajectory of the robotic arm is recorded. After the depth camera 18 at the working end detects that the position to be pruned of the branch to be pruned reaches the executable range of the blade of the end effector 17, the end effector 17 is triggered to close for pruning.

[0116] Step 6-4: According to the movement trajectory of the robot arm recorded in step P3, drive the robot arm back to the original position, detect the next pruning point in the pruning area according to step P1, execute steps P2 and P3 until there is no pruning point in the area, and move the crawler chassis (19) and the rotating base (19) to the next pruning area.

[0117] During the above operation, when the fruit tree pruning intelligent robot encounters an obstacle, the depth camera 14 and the navigation lidar 4 transmit the information of the obstacle to the edge computing module. At the same time, the inertial navigation unit 20 and the depth camera 14 calculate and process the road surface information. If the obstacle can be avoided, the robot starts the obstacle avoidance program. If the obstacle cannot be avoided, the robot will start the emergency stop system and issue an alarm.

[0118] In a more realistic application scenario, considering the complex environment of the unstructured, dynamic and GPS-deficient orchard, the present application may preferably adopt the following technology to realize the construction of a panoramic cloud map of the orchard, and then locate the branches of the fruit trees based on the panoramic cloud map of the orchard, and accurately drive the robotic arm to prune according to the position of the branches that need to be pruned.

[0119] The scheme of this preferred embodiment integrates multi-sensor fusion positioning and three-dimensional RGB point cloud to achieve map construction. In order to achieve accurate and robust pose estimation of the tracked robot in a complex orchard, the measurement results of the lidar odometer, inertial measurement unit and visual-inertial odometer are integrated into a loosely coupled multi-sensor fusion framework based on the extended Kalman filter in this scheme to make up for the shortcomings of a single sensor. At the same time, an improved Loam_livox algorithm is used to generate a three-dimensional RGB point cloud map of the surrounding environment. Combining the results of precise positioning with the three-dimensional RGB point cloud map can achieve more accurate positioning for the tracked robot and provide a basis for further autonomous navigation.

[0120] In the specific implementation process, the multi-sensor fusion positioning part in this solution can integrate the attitude estimation from the lidar odometer, IMU and VIO. By processing the lidar scan point cloud, the lidar odometer is output, and the angular velocity provided by the IMU's three-axis gyroscope is used to estimate the robot's rotation. At the same time, the attitude solution of the lidar odometer and IMU is combined to obtain the robot's 6-DOF attitude. This attitude is used as the state model of the extended Kalman filter system. In order to correct the state model pose estimation, the VIO (gyroscope and tightly coupled visual inertial odometer data) output by the depth camera is used as the observation model. By weighting the Kalman gain of the fusion state equation and the observation equation, the optimal solution of the estimated state can be obtained.

[0121] Specifically:

[0122] The positioning and mapping strategy used in this example is based on a LiDAR SLAM technology called Loam_livox. This technology is developed for LiVOX solid-state LiDAR and is suitable for orchard scenarios. This method can provide 20Hz odometer output and map updates in real time. For details, refer to Figure 8As shown in the figure, Loam_livox has 5 modules: point selection and feature extraction, iterative attitude optimization, feature matching, odometer output and map update. The input of the Loam_livox module is the original point cloud of the laser radar, and the output is the robot posture and the environmental point cloud map. It is mainly used to use SLAM to perform pose estimation and panoramic mapping on the data scanned by the laser radar according to the following steps: The point cloud of the laser radar sensor first performs a point strategy selection, and removes edge points, points with too large or too small intensity, points with incident angles close to π or 0, and occluded points. Then feature extraction is performed, and the points are divided into two main categories based on the local smoothness of the candidate points and the reflectivity of the points: edge points and plane points. Among them, plane points refer to points belonging to a plane. Due to the characteristics of the laser radar, it is preferred to use an iterative attitude optimization program to calculate the attitude of the laser radar. In the attitude calculation stage, the residual between points is used to estimate the attitude. The edge points and plane points are processed in the same way: first find the five nearest points in the point cloud set, calculate the mean and covariance matrix of these five points, ensure that the edge points are in a straight line and the plane points are in the same plane, and then calculate the distance residual. After obtaining the edge point residual and the plane point residual, the iterative pose solution is performed by constructing the optimization equation. During the iteration process, two iterations are performed to remove dynamic objects, and the pose is updated using the optimization result of the previous iteration. After removing 20% ​​of the maximum residual, a full pose optimization is performed to obtain the six-degree-of-freedom pose estimation of the lidar and output the point cloud map.

[0123] After processing the laser radar scan point cloud and outputting the laser radar odometer in the above manner, this embodiment further uses the angular velocity provided by the three-axis gyroscope of the IMU to estimate the rotation of the robot in the following manner. Define ω t The angular velocity provided by the gyroscope. Due to noise, gyroscope measurements usually contain white noise n ω and the gyroscope bias b ωt , where white noise n ω is modeled as Gaussian white noise, with bias b ωt It is modeled as a random walk process, as shown in formulas (1) and (2):

[0124]

[0125] The angular velocity formula including the error is:

[0126]

[0127] The time length between two consecutive lidar frames, frame k and frame k+1, is t k and t k+1 , then the pre-integration of the gyroscope can be calculated by formula (4):

[0128]

[0129] The pre-integrated value of the gyroscope is calculated in the inertial coordinate system, so by performing a coordinate transformation on the pre-integrated result, the rotation estimate in the world coordinate system can be obtained.

[0130] To further calibrate the state estimates of the LiDAR odometry and IMU, we use a depth camera in the Visual-Inertial SLAM (VIO-SLAM) module to obtain the robot's 6DOF pose estimate. To integrate the depth camera data into the existing code base, we installed the ZED Software Development Kit (SDK) 4.0 and used the ROS package zed-ros-wrapper to make the depth camera available in the ROS environment.

[0131] Similar to other visual-inertial SLAM algorithms, the VIO-SLAM provided by the depth camera consists of four main parts: visual front-end, IMU, back-end optimization, and closed-loop detection. Like the classic SLAM algorithm, the visual front-end extracts and matches the features of two adjacent image frames and performs attitude estimation. In the IMU calculation, pre-integration is required to calculate the translation and rotation changes of the camera by double integration of acceleration and single integration of gyroscope deflection. In the back-end optimization, the factor graph of the camera and IMU attitude is combined to pass Fig. 9 The steps shown achieve the optimal pose estimation. In the loop closure detection step, the estimated trajectory is corrected by checking whether the robot revisits a previously visited area.

[0132] Therefore, this embodiment can fuse the attitude estimation from the lidar odometer, IMU and VIO through a loosely coupled multi-sensor fusion framework based on the extended Kalman filter to improve the robustness and accuracy of the attitude estimation.

[0133] In this step, in order to effectively handle the nonlinearity of the system, the present embodiment may further adopt an extended Kalman filter algorithm to divide the system into two steps: prediction and update, and perform prediction and update based on the state model and observation model of the system.

[0134] The state model and observation model are as follows:

[0135]

[0136] In the formula, x k is the state vector at time k, u k is the input control quantity, ω k is the state noise, f(·) is the system state transfer function which is nonlinear, z k is the observed state vector at time k, v kis the observation noise, h(·) is the observation state function. Assume ω k and v k is Gaussian white noise, and the amplitude of the noise follows Gaussian distribution.

[0137] Assume that the motion noise is Gaussian white noise with a mean of 0:

[0138] ω k ~N(0,Q k )#(6)

[0139] Perform a first-order Taylor formula expansion on the state vector of the system and expand the state model into a linear equation:

[0140]

[0141] In the formula is the posterior estimate of the state vector at time k-1; is the Jacobian matrix of the state model.

[0142] Assume that the observation noise is Gaussian white noise with mean 0:

[0143] v k ~N(0,R k )#(8)

[0144] Perform a first-order Taylor formula expansion on the observation vector of the system and expand the observation model into a linear equation:

[0145]

[0146] In the formula is the prior estimate of the state vector at time k; Jacobian matrix of the observation model.

[0147] The prediction part formula of the EKF algorithm can be derived:

[0148] Predict the prior estimate of the state vector:

[0149]

[0150] The covariance matrix of the prior estimate of the predicted state vector:

[0151]

[0152] The update formula of the EKF algorithm can be derived:

[0153] Calculate the Kalman gain:

[0154]

[0155] Obtain a posteriori estimates of the state variables by updating them with the observed values:

[0156]

[0157] Update the covariance matrix to the covariance matrix of the posterior estimates of the state variables:

[0158]

[0159] Therefore, this embodiment can use the workflow of the extended Kalman filter to estimate the state of the system: by fusing the prior information (the state model and observation model of the system) with the actual observation information, the optimal state estimate is obtained, and by real-time updating of the state estimate and the estimated error covariance matrix, the state estimate is continuously optimized, thereby improving the accuracy and stability of the estimate.

[0160] In specific practice, the ROS package robot_location we use uses the state estimation of the lidar odometer and IMU as the state model, and the state estimation of VIO as the observation model when implementing real-time multi-sensor fusion positioning.

[0161] In this embodiment, the three-dimensional RGB point cloud map construction part uses the improved Loam_livox algorithm to output the RGB point cloud, thereby generating a three-dimensional RGB point cloud map of the surrounding environment in real time.

[0162] Specifically, in the map building module, we can further improve the Loam_livox algorithm and add point cloud map coloring. To ensure accurate matching of 3D point clouds and 2D images in indoor and outdoor scenes, we also add RGB colors to achieve joint calibration of lidar and camera.

[0163] When coloring, we first align the timestamps of each frame of the lidar point cloud and the left image of the depth camera to ensure that each point cloud can be matched with the corresponding two-dimensional image in real time. Next, feature point extraction and iterative optimization of three consecutive point cloud frames are performed to estimate the robot's pose, and the odometer output is calculated at a rate of 30Hz to ensure real-time map updates and real-time navigation and mapping functions. Then, the point cloud set of plane feature points and edge feature points is projected to the image pixel coordinate system through the calibrated coordinate transformation relationship, and the corresponding RGB information is assigned to each point cloud. Finally, the plane feature points and edge feature points are aligned and reorganized to continuously update the point cloud map to obtain the latest colored point cloud map.

[0164] To achieve positioning, navigation and obstacle avoidance functions, it is necessary to establish a high-precision point cloud map. In this embodiment, through a series of processing of the point cloud provided by the laser radar, all parts seen by the robot can be modeled, thereby providing the mobile robot with detailed information about the surrounding environment.

[0165] Therefore, the present application can guide the tracked robot to achieve detailed path planning and automatic obstacle avoidance in autonomous navigation tasks by using the three-dimensional RGB point cloud map of the orchard environment and the multi-sensor fusion positioning results, and use similar point cloud processing methods to identify the branches that need to be pruned according to the branch distribution structure of each fruit tree, and drive the execution device to achieve pruning.

[0166] To verify the effectiveness of the above-mentioned comprehensive multi-sensor fusion positioning solution, this application also conducted eight outdoor experimental tests. Four of them tested different action trajectories, and the other four tested different scenarios. Each test included complex environmental conditions. In the experiment, we used the EVO precision evaluation tool to comprehensively evaluate the performance of the system. The trajectory accuracy calculated by this application in the eight outdoor experiments can meet the operation requirements of tracked vehicles. The following is a detailed description of the specific process and test results of the eight outdoor experiments conducted at the Baima Teaching and Research Base of Nanjing Agricultural University in Nanjing, Jiangsu Province, China. In the 8 outdoor experiments, modern horticultural pear orchards were used as the test environment for the positioning, mapping and navigation of orchard robots.

[0167] During the test in the orchard, the fruit trees were in the growth stage of new shoots and young fruits. In the experiment, the crawler robot was controlled by a handle, moving in different scenes and completing positioning and mapping tasks in real time.

[0168] The system framework used in the 8 outdoor experiments:

[0169] In this experiment, the system is mainly divided into two parts: Fig.13 As shown in the figure: Multi-sensor fusion positioning and 3D RGB point cloud map construction. The multi-sensor fusion positioning part integrates the attitude estimation from the lidar odometer, IMU and VIO. It processes the lidar scan point cloud, outputs the lidar odometer, uses the angular velocity provided by the IMU's three-axis gyroscope to estimate the robot's rotation, and combines the attitude solution of the lidar odometer and the IMU to obtain the robot's 6-DOF attitude. This attitude is used as the state model of the extended Kalman filter system. In order to correct the state model pose estimation, the VIO output by the camera is used as the observation model. By weighting the Kalman gain of the fusion state equation and the observation equation, the optimal solution of the estimated state can be obtained. In the 3D RGB point cloud map construction part, the improved Loam_livox algorithm is used to add a point cloud coloring function to the algorithm, and the RGB point cloud is output, thereby generating a 3D RGB point cloud map of the surrounding environment in real time.

[0170] The test platforms and locations in the 8 outdoor experiments are:

[0171] This experiment uses a self-developed orchard crawler robot platform for experiments. The robot chassis adopts a crawler structure, which can adapt to the complex terrain environment of the orchard and realize movement in any direction in the plane space. The sensor system includes a lidar, a depth camera, and an IMU, which are installed above the control box of the crawler vehicle so that its field of view will not scan the edge of the crawler vehicle. The lidar adopts a unique non-mechanical solid-state laser scanning technology, using a lidar (livox MID-70, livox, China) with a field of view of 70.4° and an accuracy of 100,000 points / second. The depth camera (ZED2, Stereolabs, America) has a field of view of 110° (H) x 70° (V) x 120° (D), a focal length of 2.12mm, and a baseline of 120mm. In order to integrate the depth camera data into the existing code base, we installed the ZED software development kit (SDK) 4.0 and used the ROS package zed-ros-wrapper to make the depth camera available in the ROS environment. The IMU (WHEELTEC N100, WHEELTEC, China) includes a three-axis digital gyroscope with a measurement range of ±250° / s. The high-precision point cloud provided by the lidar is used to build a visual 3D point cloud map of the large-scale orchard environment. A high-precision inertial navigation system (INS, INS-D-E1, BDstar Navigation, China) is used for error comparison, supporting RTK positioning with an accuracy of 1cm+1ppm.

[0172] To run the multi-sensor fusion localization and mapping algorithm, we used a laptop equipped with an AMD Ryzen 7 5800h, 3.2GHz CPU, 16GB memory, and NVIDIA GeForce RTX 3070 GPU. The algorithm was implemented in the Ubuntu 18.04LTS operating system running ROS Melodic and developed in C++.

[0173] The localization and mapping strategy models used in the 8 outdoor experiments are:

[0174] The localization and mapping strategy used in this experiment is based on a LiDAR SLAM technology called Loam_livox. This technology was developed for the LiVOX solid-state LiDAR and is suitable for orchard scenarios. This approach can provide 20Hz odometer output and map updates in real time. Loam_livox has 5 modules: point selection and feature extraction, iterative pose optimization, feature matching, odometer output, and map update. The input is the LiDAR raw point cloud, and the output is the robot pose and the environment point cloud map.

[0175] To calibrate the state estimates of the LiDAR odometer and IMU, we use a depth camera in the Visual-Inertial SLAM (VIO-SLAM) module to obtain the robot's 6DOF pose estimate. Similar to other visual-inertial SLAM algorithms, the VIO-SLAM provided by the depth camera consists of four main parts: visual front-end, IMU side, back-end optimization, and closed-loop detection. Fig.14 Shows the basic process of pose estimation for a depth camera.

[0176] The lidar-IMU-vision fusion technology based on extended Kalman filtering used in 8 outdoor experiments:

[0177] In the experiment, we used the ROS package robot_location to implement real-time multi-sensor fusion positioning. The state estimates of the lidar odometer and IMU were used as the state model, and the state estimate of the VIO was used as the observation model. Through the loosely coupled multi-sensor fusion framework based on the extended Kalman filter, we can fuse the attitude estimates from the lidar odometer, IMU and VIO to improve the robustness and accuracy of the attitude estimation. The extended Kalman filter is essentially an optimization problem solving method for estimating the state of the system. By fusing the prior information (the state model and observation model of the system) with the actual observation information, the optimal state estimate is obtained, and the state estimate is continuously optimized by updating the state estimate and the estimated error covariance matrix in real time, thereby improving the accuracy and stability of the estimate

[23] . In order to effectively deal with the nonlinearity of the system, the extended Kalman filter algorithm divides the system into two steps: prediction and update, and performs prediction and update based on the state model and observation model of the system.

[0178] The state model and observation model are as follows:

[0179]

[0180] In the formula, x k is the state vector at time k, u k is the input control quantity, ω k is the state noise, f(·) is the system state transfer function which is nonlinear, z kis the observed state vector at time k, v k is the observation noise, h(·) is the observation state function. Assume ω k and v k is Gaussian white noise, and the amplitude of the noise follows Gaussian distribution.

[0181] Assume that the motion noise is Gaussian white noise with a mean of 0:

[0182] ω k ~N(0,Q k )#(2)

[0183] Perform a first-order Taylor formula expansion on the state vector of the system and expand the state model into a linear equation:

[0184]

[0185] In the formula is the posterior estimate of the state vector at time k-1; is the Jacobian matrix of the state model.

[0186] Assume that the observation noise is Gaussian white noise with mean 0:

[0187] v k ~N(0,R k )#(4)

[0188] Perform a first-order Taylor formula expansion on the observation vector of the system and expand the observation model into a linear equation:

[0189]

[0190] In the formula is the prior estimate of the state vector at time k; Jacobian matrix of the observation model.

[0191] The prediction formula of the extended Kalman filter algorithm can be derived:

[0192] Predict the prior estimate of the state vector:

[0193]

[0194] The covariance matrix of the prior estimate of the predicted state vector:

[0195]

[0196] The update formula of the extended Kalman filter algorithm can be derived:

[0197] Calculate the Kalman gain:

[0198]

[0199] Obtain a posteriori estimates of the state variables by updating them with the observed values:

[0200]

[0201] Update the covariance matrix to the covariance matrix of the posterior estimates of the state variables:

[0202]

[0203] Point cloud coloring methods used in 8 outdoor experiments:

[0204] In the map building module, we improved the Loam_livox algorithm and added the point cloud map coloring function. In order to ensure the accurate matching of the 3D point cloud and the 2D image in the outdoor scene and add RGB color information to the point cloud, we carried out the following steps: joint calibration of the laser radar and camera, point cloud filtering, timestamp registration, laser point cloud projection to image pixels, and point cloud coloring.

[0205] We calibrate the device using the open source livox_camera_lidar_calibration calibration software, which is specially designed for the joint calibration of livox lidar and camera. The calibration content includes the calibration of the camera's intrinsic parameters, the acquisition of calibration data, and the calculation of the extrinsic parameters between the camera and lidar. The non-repetitive scanning feature of the livox lidar makes it easier to find the exact position of the corner in a high-density point cloud, which enables us to obtain better calibration results and better lidar camera fusion effects.

[0206] When coloring, the number of points in each frame of the point cloud is huge. If every point is colored, it will take a considerable amount of time. To ensure the real-time performance of the algorithm, it is necessary to first select points and extract features from the point cloud, perform iterative posture optimization, feature matching, and odometer output. The filtering of the point cloud is mainly performed during point selection and feature extraction. The point cloud of the lidar sensor first performs a point strategy selection, and removes edge points, points with excessively large or small intensities, points with incident angles close to π or 0, and occluded points. Feature extraction is then performed, and the points are divided into two main categories based on the local smoothness of the candidate points and the reflectivity of the points: edge points and plane points, such as Fig.24 As shown. A plane point refers to a point that belongs to a plane. For plane feature points, in order to ensure that the five points found in the set of all plane points on the map are in the same plane, the covariance matrix is ​​calculated. If the smallest eigenvalue is less than one-third of the second smallest eigenvalue, the five points are determined to be in the same plane.

[0207] We first align the timestamps of each frame of the lidar point cloud and the left image of the depth camera to ensure that each point cloud can be matched with the corresponding 2D image in real time. Because the frame rate of the lidar point cloud is 10Hz and the frame rate of the left image of the depth camera is 30Hz, we need to select the camera image to match the real-time lidar point cloud. We record the timestamps of each frame of the point cloud and the image. After processing the point cloud and outputting the pose estimation, we perform time alignment of the point cloud and the image. Because the frame rate of the image is higher than the frame rate of the point cloud, when aligning the images corresponding to each frame of the point cloud, we will select images with a time range of 15ms before and after the timestamp of each frame of the point cloud. If there are multiple images, the image with the closest time distance will be selected.

[0208] After matching the point cloud and the corresponding image, we can use the extrinsic parameters of the LiDAR and the depth camera's left eye to transform each point in the current frame's point cloud from the LiDAR coordinate system to the camera's left eye coordinate system. Then, we use the camera's intrinsic parameters to project the point cloud from the camera coordinate system to the pixel coordinate system. In the pixel coordinate system, the x and y coordinates of each point are the pixel corresponding to the point in the pixel coordinate system. We add the RGB information contained in the corresponding pixel to the information of the point to obtain the point of the point cloud with RGB color information.

[0209] Finally, the plane feature points and edge feature points are aligned and reorganized to continuously update the point cloud map to obtain the latest colored point cloud map. To achieve positioning, navigation and obstacle avoidance functions, a high-precision point cloud map needs to be established. Through a series of processing of the point cloud provided by the lidar, all parts seen by the robot can be modeled, thereby providing the mobile robot with detailed information about the surrounding environment. Therefore, by using the three-dimensional RGB point cloud map of the orchard environment and the multi-sensor fusion positioning results, the crawler robot can achieve detailed path planning and automatic obstacle avoidance in autonomous navigation tasks, thus playing an important role in precision agriculture tasks.

[0210] In order to demonstrate the effectiveness of the proposed multi-sensor fusion positioning method, we conducted 8 experimental tests, all of which were conducted in outdoor orchards. Four of them tested different action trajectories, and the other four tested different scenarios to verify the feasibility of the proposed method in different situations. Each test involved complex environmental conditions, which brought challenges to the robot's accurate positioning.

[0211] Experiments on motion trajectories

[0212] Robots often need to travel some complex routes in orchards, so it is very necessary to study the diverse trajectory driving of robots in complex scenarios. We conducted four motion trajectory test experiments, namely "mouth" type, turning trajectory, curved trajectory and "N" type trajectory. Among them, the "mouth" type trajectory was carried out in a semi-structured pear orchard with a flat ground and a small slope, and there were brackets between each row of pear trees. This trajectory tests the robot to travel a closed route in an environment with less complexity, which is very common in the actual application of robots. When the tracked robot turns through the fruit trees, the trajectory estimated by this application is more accurate than the Loam_livox method. Fig.12 (f) The analysis shows that when turning sharply, the solution path of Loam_livox has a large error, resulting in a general effect of the subsequent trajectory. The scheme proposed in this paper can correct the error appropriately. In addition, it can be seen from the third and fourth rows of Table 1 that the root mean square error (RMSE) and mean error (Median) of Loam_livox are 0.431939 and 0.357968, respectively, while the root mean square error (RMSE) and mean error (Median) of the method proposed in this application are 0.118604 and 0.079514, respectively, which proves that the above-mentioned measurement method based on depth camera and IMU can effectively improve the positioning accuracy of LiDAR, and the method provided in this application can effectively guide the operation of crawler vehicles in orchards with various complex environmental conditions. In all tests, the method showed a high level of accuracy and robustness in positioning and mapping.

[0213] Table 1. Comparison of APE values ​​between this method and Loam_livox

[0214]

[0215] The turning trajectory, curved trajectory and "N" type trajectory are all carried out in a sparsely planted pear orchard, because in this scenario, the pear trees in each row are planted at large intervals and without obstructions, which allows the robot to perform some complex trajectory movements. The turning trajectory allows the robot to perform a nearly right-angle turning movement. When the robot turns, the front features are greatly reduced, which increases the instability and uncertainty of the sensor data. The curved trajectory allows the robot to move between the pear trees in a large-angle curve. Sometimes the robot needs to alternate between fruit trees, in which case it is very necessary to test this trajectory. When driving on a curve, the data obtained by the sensor will be very unstable, which increases the difficulty of the algorithm to process the data. The unstable features also make it more difficult to match the features, which brings great challenges to the robustness of the algorithm. In order to verify the robustness and accuracy of the proposed solution in complex and changeable trajectory movement, we let the robot perform "N" type trajectory movement. This complex and changeable action trajectory brings great challenges.

[0216] Experiments with different scenarios

[0217] The different planting methods of fruit trees in orchards lead to differences in the internal environment of the orchards, increasing the diversity and complexity of the environment. Therefore, it is necessary to study the robustness and accuracy of robots in complex and diverse scenarios. We conducted test experiments in four scenarios, including sparsely planted pear orchards, densely planted pear orchards, roads, and ponds. The pear trees are 5-6 years old. The row spacing of sparsely planted pear orchards is 4 meters and the column spacing is 3 meters; the row spacing of densely planted pear orchards is 2.8 meters and the column spacing is 1.5 meters. These scenarios have different complexities and characteristics, which poses great challenges to the precise positioning of robots.

[0218] In a sparsely planted pear orchard, the distance between pear trees is roughly the same, the ground is relatively regular, and each row of pear trees is protected by a support structure and cannot be passed through. This is the most common environment in an orchard because the distance between pear trees is large and the branches and leaves are specially pruned. In this scenario, the robot can only travel in a straight line because the special planting method limits its driving direction. In a densely planted pear orchard, the pear trees are planted very densely and the distance between each row is narrow, which makes the branches and leaves between the rows more numerous, increasing the occlusion and adding challenges to the feature extraction and matching of the sensor. The road refers to the road in the orchard, which is characterized by a flat ground, planted pear trees on both sides, a wide field of view in front of the robot, and fewer features. Only on both sides of the robot will there be a large number of feature objects, which poses a challenge to the robustness of positioning and mapping. The environment next to the pond is characterized by different scenes on both sides of the robot. On one side is a pond with a wide field of view and basically no feature objects, and the refraction of light on the water surface also increases the difficulty of sensor data collection, reducing the reliability of the data; on the other side are the outer fruit trees of the orchard, which have more feature objects and diverse structures, and can provide rich data for the sensor. Due to the huge differences between the scenes on both sides, the robot's positioning and mapping require higher robustness.

[0219] Test evaluation index

[0220] All 8 experiments used the EVO precision evaluation tool to comprehensively evaluate the performance of the system. When evaluating the accuracy of the SLAM algorithm, the evaluation indicators are the absolute pose error (APE) values ​​of rotation and translation, also known as the absolute trajectory error (ATE). APE is a measure used to study the global consistency of SLAM trajectories.

[0221] APE is based on two postures P at timestamp i est,i , P ref,i ∈SE(3), which can be calculated by the formula:

[0222]

[0223] In the formula is an inverse synthesis operator that takes two poses and gives the relative pose.

[0224] In APE, the translation error is calculated by using E i The translation part is calculated in meters:

[0225] APE trans,i =‖trans(E i )‖#(12)

[0226] The rotation error is obtained by using E i The rotation part is calculated without units:

[0227] APE rot,i=‖rot(E i ) - I 3×3 ‖ F #(13)

[0228] By using the full E i to calculate the full error considering rotational and translational errors, unitless:

[0229] APE i =‖E i - I 4×4 ‖ F #(14)

[0230] Its root mean square error can be calculated using the absolute error at all times:

[0231]

[0232] In EVO, evo_res is a tool for comparing the evo_ape results of one or more files. Therefore, RES can be used for APE value comparison. For precision error analysis, we use a high-precision inertial navigation system for comparison.

[0233] Results of 8 outdoor experiments

[0234] Regarding the action trajectory, Fig.12 and Table 1 show the RES between our method and Loam_livox in the action trajectory test.

[0235] Among them, the "mouth"-shaped trajectory experiment in the sparse pear orchard shows that:

[0236] As Fig.18 (a) shows, the tracked robot walked a "mouth" shape in the pear orchard. This area has a "Y"-shaped tree support structure for construction, a relatively large tree spacing, and regular row spacing. There is a ditch in the middle of this area, and the tracked vehicle can pass through it, but it will cause bumps. The trajectory diagram shows that both methods can complete the task, but as can be seen from Fig.18 (b), the positioning error of Loam_livox is larger. The trajectory estimated by our method is more accurate, and the maximum absolute pose error (APE) difference is 0.2. Other calculated error metrics are also smaller than the error value of Loam_livox, as shown in the first and second rows of Table 1, which proves the effectiveness of this method in positioning in the orchard environment.

[0237] For tracked robots, achieving turns between crop rows in a large orchard environment is a very crucial ability. The accuracy of turning directly affects the effect of autonomous precision agriculture work. Therefore, we also designed a turning trajectory experiment in the sparse planted pear orchard.

[0238] As Fig.18As shown in (a), in the test trajectory turning, we evaluated the effectiveness of the multi-sensor fusion positioning method by allowing the robot to actively intersperse between the fruit trees to achieve the turning. Fig.18 (a) It can be seen intuitively that the trajectory estimated by the proposed method is more accurate than that of Loam_livox. When turning sharply, the solution path of Loam_livox has a large error, resulting in a general effect of the subsequent trajectory. The proposed scheme can correct the error appropriately. In addition, it can be seen from the third and fourth rows of Table 1 that the root mean square error (RMSE) and mean error (Median) of Loam_livox are 0.510759 and 0.446691, respectively, while the root mean square error (RMSE) and mean error (Median) of the proposed method are 0.285338 and 0.275739, respectively. Therefore, when the tracked robot passes through the fruit trees and turns, the proposed scheme can provide more accurate positioning for the robot, which is conducive to the autonomous navigation of the orchard robot.

[0239] In large orchard environments, especially unstructured orchards, tracked robots are sometimes required to perform curved motion because there are no obstacles between fruit trees. When moving in a curve, the tracking of feature points will be reduced, resulting in unstable tracking and increased trajectory estimation errors. Therefore, we also designed a curved trajectory experiment in a sparsely planted pear orchard.

[0240] In the test action trajectory curve, such as Fig.19 As shown in (a), the effectiveness of the multi-sensor fusion positioning method is evaluated. Fig.19 (a) It can be seen intuitively that the Loam_livox method has a trajectory deviation in the middle of the large-angle curve, resulting in a large error in the subsequent trajectory. In contrast, the solution proposed in this paper relies on the depth camera and IMU sensor data to correct the error in the middle of the large-angle curve, and the subsequent trajectory error is also small. In addition, it can be seen from the fifth and sixth rows of Table 1 that the various error indicators of Loam_livox are higher than those of the solution proposed in this paper. Therefore, when the crawler robot is traveling in a large-angle curve in the forest, the solution proposed in this paper can provide more accurate positioning for the robot.

[0241] In a large orchard environment, tracked robots need to perform many complex navigation tasks. In order to verify the robustness and accuracy of the proposed solution in complex trajectory movement, this study also designed an experiment to let the tracked robot perform "N" trajectory actions in a sparsely planted pear orchard.

[0242] from Fig.19(a) It can be seen that the error of the Loam_livox method is large at corner tracking. The reason is that the laser radar field of view is small, which makes it impossible to match the recognized feature points when making large turns, the features between frames are reduced, the iterative error data converges poorly, and the pose solution error increases. The solution proposed in this paper can take advantage of multi-sensor fusion to correct the trajectory error at the corner. Fig.19 The box plot analysis in (c) shows that the estimation error of the proposed scheme is within a small range. In addition, it can be seen from the seventh and eighth rows of Table 1 that the error indicators obtained by other algorithms are also smaller than the error value of Loam_livox. Therefore, the proposed scheme can make the pose error of the crawler robot converge to a smaller range in complex environments such as forests, proving its effectiveness.

[0243] Table 2 shows the RES between our method and Loam_livox tested on different scenarios. The quantitative results are compared in Table 2.

[0244] Table 2. Comparison of APE values ​​between this method and Loam_livox

[0245]

[0246] For sparsely planted pear orchards:

[0247] Tracked robots encounter various complex environments in large orchards. These complexities and diversity pose higher challenges to the robot's navigation and positioning, and also directly affect the effectiveness of autonomous precision agriculture. In order to verify the accuracy of the proposed solution in straight-line travel in a structured pear orchard, Fig. 20 As shown in (a), this study allows the tracked robot to move in a straight line.

[0248] from Fig. 20 (a) It can be seen intuitively that both methods have good error values ​​in this scenario. This is because in the structured support pear orchard, the spacing between the pear trees is roughly the same, and the ground is relatively regular, which facilitates the movement of the crawler robot. In addition, there are no large turns during the movement, the tracking and matching of feature points are also good, and the pose solution error is also small. At the same time, it can be seen from the first and second rows of Table 2 that the error indicators calculated by the two methods are also small. However, the scheme proposed in this paper is better than the Loam_livox method because the multi-sensor fusion technology provides more data information for pose solution, making it more accurate. Therefore, the trajectory estimation of both schemes in the structured pear orchard scenario is relatively accurate, but the error of the scheme proposed in this paper is smaller.

[0249] For densely planted pear orchards:

[0250] There are also dense fruit tree plantings in orchards. This scenario tests the accuracy and robustness of the tracked robot in dense fruit forests, such as Fig.21 (a). Due to the dense planting, the crawler robot can only move in a straight line. The error range of both solutions is very small, such as Fig.21 (a) As shown. There are many objects between dense fruit tree rows, which provide good feature points for the sensor. The increase in data volume reduces the pose error of the solution and improves the accuracy and robustness. Fig.21 As shown in the box plot of (c), both schemes can work well and have good accuracy. From the third and fourth rows of Table 2, it can be seen that the error indicators of both methods are very small. The advantage of multi-sensor fusion is that it uses a variety of data information to provide more accurate information. It can also be seen from Table 2 that compared with the Loam_livox method, multi-sensor fusion is slightly better.

[0251] For the orchard road:

[0252] In order to evaluate the positioning ability of the tracked robot on a flat road, this scenario allows the robot to drive on an orchard road for testing. Fig. 22 (a). It can be seen that the error of the Loam_livox method is large, mainly for two reasons. First, the field of view of the laser radar is small, and the feature points cannot be correctly matched at the turn, resulting in increased errors and affecting the subsequent accuracy. Second, the tracked vehicle shakes a lot when driving on the road, which reduces the accuracy of the data obtained by various sensors and increases the error. It can also be seen from the error comparison of the fifth and sixth rows of Table 2 with other scenarios that the error of the multi-sensor fusion scheme in this scenario has increased significantly. Therefore, the trajectory estimation errors of both schemes have increased, but the scheme proposed in this article has a smaller error in this environment.

[0253] For orchard ponds:

[0254] The orchard sometimes presents a relatively complex environment. Therefore, the scenario test was conducted around a pond next to the orchard. Fig.23 (a) As shown in the figure, the overall positioning effect of this scheme is good, and the estimated trajectory is consistent with the actual ground situation. The trajectory of Loam_livox is not smooth in the back, such as Fig.23(b), the error increases. In this scene, the trajectory calculated by the method proposed in this paper is of high accuracy, with an RMSE of 0.105891, which is reliable overall. Therefore, the measurements of the depth camera and IMU effectively improve the positioning accuracy of the lidar, and the method proposed in this paper is also applicable to such semi-open complex scenes. There are fewer objects in an open environment, and the reflection of the pond surface also poses a great challenge to the sensor in acquiring data. It can be seen from the seventh and eighth rows of Table 2 that the depth camera and IMU eliminate the scale error of the lidar to a certain extent, thereby improving the positioning accuracy. Therefore, the multi-sensor fusion method can make up for the defects of each sensor and achieve relatively more accurate positioning in a complex environment.

[0255] In addition, considering that positioning and mapping are both key capabilities for robots to achieve autonomous navigation, this experiment also evaluated the mapping quality as follows:

[0256] This application uses a three-dimensional RGB point cloud map to provide tracked robots with more detailed information about the surrounding environment, and can also provide more map information for intelligent management of orchards. Therefore, the robot can achieve more accurate and efficient autonomous navigation. In order to verify the feasibility of the three-dimensional RGB point cloud map method, a series of experiments were carried out in a complex orchard environment. In terms of the processing time of a frame of lidar point cloud, the improved Loam_livox algorithm is 75.01ms, which is 2.79ms longer than the original Loam_livox algorithm, which fully meets the requirements of real-time positioning and mapping. Fig.17 As shown:

[0257] The experiments 1 and 2 mentioned above in this application were conducted in orchards and orchards. The orchards adopted a variety of fruit tree planting methods. We selected structured "Y"-shaped orchards and non-structured densely planted orchards to generate three-dimensional RGB point cloud maps. Fig.17 In the figure, a shows the 3D RGB point cloud map of a densely planted fruit forest with non-structured planting; d shows the 3D RGB point cloud map of a "Y"-shaped fruit forest with structured planting. These two different planting structures have their own characteristics, so there are certain challenges in constructing a 3D RGB point cloud map. The experimental results show that the 3D RGB point cloud map has a good display effect and the real-time RGB map algorithm is also effective. Unstructured crops, structured poles, and the mesh cover above the fruit forest can all be well constructed into RGB point cloud maps, and the various colors are also very clear. However, these maps still have room for improvement. Due to the limitations of the laser radar scanning characteristics and frame rate, point cloud acquisition cannot fully depict the shape of the entire tree, and the intervals between fruit trees and leaves will also cause the laser radar light to pass through the fruit forest without generating a valid point cloud. Therefore, the tree shape seen on the map is not complete.

[0258] The aforementioned experiments 3 and 4 of this application were conducted in an orchard environment with spatial constraints and structural characteristics. The scene of experiment 3 was conducted between the pond and the orchard in the orchard, such as Fig.17 As shown in (g) in the figure. The weeds on the side of the orchard and the side of the pond were successfully constructed. Therefore, the 3D RGB point cloud map construction method is applicable to such an environment. In Experiment 4, we constructed the road in the orchard and the orchard next to it, as shown in Fig.17 As shown in (j) in the figure. In this scene, the grids outside the road and the orchard are successfully constructed, the map coloring is clear and accurate, and the spatial structure of the environment is very clear on the map. However, these maps still have room for improvement. Since the environments are similar and have relatively empty spatial structures, the reflection and reception of the laser point cloud decrease, and the density of the point cloud decreases, which affects the clarity of the fruit tree structure. After map construction experiments, our results show the robustness of the 3D RGB point cloud map construction method in unstructured, dynamic and large-scale orchard environments.

[0259] In summary, the present application aims at the problem that the dynamic and unstructured orchard environment brings to accurate and stable positioning and mapping. In order to establish a richer point cloud map and provide reliable data for intelligent management, a real-time positioning and environmental map construction system for an automatic fruit tree pruning system is proposed. The system of the present application uses laser SLAM and multi-source information fusion technology to realize real-time positioning and 3D RGB point cloud map construction for mobile robots in orchard environments. First, the laser radar odometer, gyroscope and tightly coupled visual inertial odometer (VIO) data are integrated into a loosely coupled framework based on an extended Kalman filter to obtain a more accurate robot pose estimation. In the multi-sensor fusion algorithm, the laser radar odometer and gyroscope pose estimation are used as prediction values, and the VIO positioning results are used as observation values ​​to update the pose estimation. Finally, the Loam_livox algorithm is improved, and the camera image color information is added to the laser radar point cloud to construct a 3D RGB point cloud map of the orchard environment in real time. The performance of the proposed system is evaluated in the complex environment of a modern standard orchard. Our method fuses multi-sensor data and can cope with various challenges in orchard environments, achieve accurate positioning under various challenges, and can even withstand severe estimation errors of lidar algorithms, with high robustness and accuracy. In addition, our framework can also improve the positioning accuracy of lidar odometers. The improved 3D RGB point cloud mapping provided in this application is suitable for unstructured dynamic orchards, can generate clear point cloud maps, intuitively present map colors, and adapt to various orchard environmental challenges. This verifies the advantages of the proposed method and highlights its potential application in autonomous navigation of agricultural robots.

[0260] This application proposes a new real-time positioning and mapping method for unstructured, dynamic and GPS-deficient orchard environments. In order to achieve accurate and robust pose estimation of tracked robots in complex orchards, this method integrates the measurement results of lidar odometers, inertial measurement units and visual-inertial odometers into a loosely coupled multi-sensor fusion framework based on extended Kalman filters to make up for the shortcomings of a single sensor. At the same time, an improved Loam_livox algorithm is used to generate a three-dimensional RGB point cloud map of the surrounding environment. By combining the results of precise positioning with the three-dimensional RGB point cloud map, this application can achieve more accurate positioning for tracked robots and provide a basis for further autonomous navigation.

[0261] The present application was also evaluated in orchards with various complex environmental conditions. In all tests, the present application demonstrated a high level of accuracy and robustness in both positioning and mapping. However, during the test, due to the small field of view of the lidar, the tracking reliability of feature points decreased when turning, thereby reducing the accuracy in the multi-sensor fusion positioning and mapping system. In addition, the study did not deeply combine the positioning and mapping results for autonomous navigation. Therefore, in future work, the multi-sensor fusion positioning framework may need to involve other sensors to adapt to more complex environments, while better combining the positioning and mapping results to achieve autonomous navigation in complex agricultural environments.

[0262] The above is only an implementation method of the present application, and its description is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present application. It should be pointed out that for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present application, which all belong to the protection scope of the present application.

Claims

1. A fruit tree automatic pruning system based on machine vision, characterized in that: include: A crawler vehicle is provided with a rotating base (19), a mechanical arm device is provided on the rotating base (19), the mechanical arm device has telescopic freedom, and an end effector (17), a working end depth camera (18) and a close-range laser radar (16) are also provided on the top of the mechanical arm device; The crawler vehicle is also equipped with a navigation laser radar (4), a navigation depth camera (14) and an inertial navigation unit (20) which are communicatively connected to the edge computing module (15); The edge computing module (15) is used to perform the following steps: Path planning is performed according to a pre-received and recorded digital map of the orchard, and the crawler vehicle is driven to run in the orchard according to the planned path according to the inertial navigation data fed back by the inertial navigation unit (20), the orchard image fed back by the navigation depth camera (14), and the scanning information detected by the navigation laser radar (4); During the operation of the crawler vehicle, the navigation laser radar (4) is triggered to scan the orchard area, and the navigation depth camera (14) is synchronously triggered to collect orchard images, and then the laser point cloud scanned by the navigation laser radar (4) and the orchard image collected by the navigation depth camera (14) at the same time are real-time positioned and synchronously mapped (SLAM) outputted, and the extended Kalman filter is used for data assimilation to update and generate a full-view point cloud map of the orchard; According to the orchard panoramic point cloud map, the point cloud of the fruit trees is filtered in a given area, the point cloud with a height higher than the trunk is screened out, the trunk position of the fruit tree is identified, and then the corresponding stop point of the robot during pruning is determined based on the trunk position; After driving the crawler vehicle to a corresponding stop point near the fruit tree to be pruned according to the position of the point cloud of the single fruit tree, the local point cloud obtained by scanning with the close-range laser radar (16) and the close-range image captured by the depth camera (18) at the operation end are segmented, background noise is removed, and the point cloud cluster corresponding to the fruit tree is extracted, and then the pruning area is determined according to the pruning rules received and recorded in advance; The rotating base (19) and the mechanical arm device are driven to move the end effector (17) to the pruning area, and the end effector (17) is triggered to perform pruning operations according to the position distance between the end effector (17) and the branch to be pruned.

2. The machine vision-based automatic pruning system for fruit trees according to claim 1, characterized in that: The specific steps of segmenting the local point cloud obtained by scanning with the close-range laser radar (16) and the close-range image collected by the operation end depth camera (18), removing background noise, and extracting the point cloud cluster corresponding to the fruit tree include: First, a depth image of a depth camera (18) at the operation end is subjected to threshold segmentation to obtain a foreground image with a complex background removed, which is then masked to a near-field color image to obtain a foreground branch image; Then, the pixels of the main branch and the side branch in the foreground trunk image are segmented through the SegNet semantic segmentation network to obtain the mask images of the main branch and the side branch; The depth camera (18) and the close-range laser radar (16) at the working end are then jointly calibrated to obtain an external parameter matrix from the camera to the radar, so that the point cloud and the image can be accurately matched, and the image coordinate system is projected onto the point cloud coordinate system, thereby segmenting the three-dimensional point cloud of the branch based on the branch pixel position identified by the image, and extracting the point cloud cluster corresponding to the fruit tree.

3. The machine vision-based automatic pruning system for fruit trees according to claim 1, characterized in that: The laser point cloud obtained by the navigation laser radar (4) and the position output by the navigation depth camera (14) are subjected to real-time positioning and synchronous mapping (SLAM) at the same time, and the extended Kalman filter is used to perform data assimilation to update and generate a full-view point cloud map of the orchard. The specific process of obtaining positioning and three-dimensional point cloud information includes the following steps: Step S1: based on the timestamps marked when the navigation depth camera (14) and the navigation laser radar (4) are collected, the orchard image and the laser scanning data with a timestamp interval of less than 30 milliseconds are aligned; Step S2: The navigation depth camera (14) and the navigation laser radar (4) are jointly calibrated through livox_camera_lidar_calibration. First, the intrinsic parameter matrix K of the camera is obtained. Then, the calibration board is used to simultaneously capture images of the navigation laser radar and the camera for calibration, and the camera-to-radar extrinsic parameter matrix T is obtained. LIDAR_CAMERA , according to [x LIDAR ,y LIDAR ,z LIDAR ,1]=T LIDAR_CAMERA -1 ·(Z·K -1 [u,v,1]) projects the image coordinate system to the point cloud coordinate system, where x LIDAR Indicates the horizontal position of the point under the laser radar coordinates, y LIDAR Indicates the position of the point in the left and right directions under the laser radar coordinates, z LIDAR Indicates the vertical position of the point under the laser radar coordinates, and Z indicates the depth corresponding to the pixel coordinates. K -1 represents the inverse matrix of the camera intrinsic parameter matrix, [u,v,1] represents the position of the point in the pixel coordinate system; Step S3: After point cloud preprocessing and feature point extraction, the Loam_livox algorithm is used to perform real-time positioning and synchronous mapping based on the livox laser radar, and the VIO-SLAM algorithm is used to perform real-time positioning and synchronous mapping based on the ZED2 depth camera, and their corresponding posture information is output respectively; Step S4: Use the extended Kalman filter to assimilate the posture output by the laser radar SLAM and the depth camera SLAM, and use the camera's field of view to calibrate the posture error caused by the loss of laser SLAM feature points. After initializing the robot's initial position and map, the extended Kalman filter algorithm predicts the next state through the state model, and then uses the sensor model and observation model, as well as the currently detected data to update the robot's position, direction, map and other variables. By repeatedly executing the above steps, the robot's position and posture at any time are calculated; Step S5: updating the digital map of the orchard at the corresponding position according to the real-time position and posture, and generating a panoramic three-dimensional point cloud of the orchard in real time; Step S6: Based on the improved Loam_livox algorithm, the laser point cloud is colored using the mapping relationship between the laser point cloud and the camera point cloud to generate a panoramic three-dimensional color point cloud of the orchard.

4. The machine vision-based automatic pruning system for fruit trees according to claim 1, characterized in that: According to the pre-received and entered pruning area density pruning rules, the specific steps of segmenting and determining the pruning area and adjusting the horizontal angle and vertical position of the robot arm accordingly are as follows: Step T1: According to the height and orientation, the fruit tree point cloud cluster is divided into different units, corresponding to different pruning areas, numbered S1, S2 to Sn; Step T2: By rotating the base (19) to adjust the lateral angle of the robot arm, and by retracting the rod (6) to adjust the longitudinal position of the robot arm, each area to be trimmed is adjusted in turn to be within the field of view of the working end depth camera (18) and the close-range laser radar (16) on the end effector.

5. The machine vision-based automatic fruit tree pruning system according to claim 4, characterized in that: Specifically, the point cloud clusters corresponding to the branches are segmented and extracted based on the point cloud obtained by scanning the close-range laser radar (16) and the close-range image collected by the working end depth camera (18) in the following manner: Step R1: performing threshold segmentation on the depth image of the depth camera (18) at the working end to obtain a foreground image with the complex background removed, masking the foreground color image, and obtaining a foreground branch image; Step R2: Segment the main branch and side branch pixels through the SegNet semantic segmentation network, and obtain the mask images of the main branch and side branch after denoising; Step R3: the working end depth camera (18) and the close-range laser radar (16) are used to accurately match the point cloud and the image according to step S2, and the image coordinate system is projected into the point cloud coordinate system; Step R4: Segment the three-dimensional point clouds of the main branches and side branches based on the branch pixel positions identified by the image; Step R5: clustering the single fruit tree point cloud obtained by scanning the close-range laser radar (16) using a K-Means algorithm to obtain multiple point cloud clusters corresponding to different fruit trees; Step R6: The point cloud clusters of each tree are further segmented and merged by column fitting and calculating the cluster center distance to obtain individual branch point clouds of the main branch and side branch.

6. The machine vision-based automatic fruit tree pruning system according to claims 1-4, characterized in that: The specific steps of driving the end effector (17) to move to the corresponding pruning area, identifying the branches to be pruned according to the pruning rules received and recorded in advance, and triggering the end effector (17) to perform the pruning operation according to the position distance between the end effector (17) and the branches to be pruned until the pruning is completed include: Step P1: measuring the branch inclination angle and branch length of a single side branch in the pruning area, and identifying and selecting the branches to be pruned and the positions of the lower ends of the branches based on the branch inclination angle range and branch length range required by the pruning rules specified by the user; Step P2: sort the distances of the pruning points in the field of view, and perform pruning operations on the branches to be pruned that are closest to the end effector one by one; During the pruning operation, the position distance and orientation between the end effector (17) and the position to be pruned are measured in real time based on the depth information obtained from the depth camera image, the end effector is adjusted to be in the same straight line as the pruning point by extending and retracting the telescopic rod (6), the end effector is controlled to approach the pruning point by the telescopic arm (7), the movement trajectory of the mechanical arm is recorded, and after the depth camera (18) at the working end detects that the position to be pruned of the branch to be pruned reaches the executable range between the blades of the end effector (17), the end effector (17) is triggered to drive the blades to close to perform the pruning operation; Step P3: According to the recorded movement trajectory of the mechanical arm during the pruning operation, the mechanical arm is driven to return to the original position, and the next pruning point in the pruning area is detected according to step P1, and steps P2 and P3 are executed until there is no pruning point in the area, and the crawler chassis (19) and the rotating base (19) are moved to the next pruning area.

7. The machine vision-based automatic fruit tree pruning system according to claim 1, characterized in that: The mechanical arm device comprises: A support pole (8), a telescopic arm (7) and a retractable rod (6), wherein the bottom of the support pole (8) is connected to the rotating base (19), the rotating base is used to realize horizontal rotation, the upper part of the support pole (8) is movably connected to the telescopic arm (7), the retractable rod (6) is arranged between the support pole (8) and the telescopic arm (7), and the end of the telescopic arm (7) is provided with an end effector (17); the retractable rod (6) is extended and retracted, driving the telescopic arm (7) to make a longitudinal circular motion with the length of the telescopic arm (7) as a radius; the telescopic arm (7) is extended and retracted, driving the end effector (17) to move forward and backward.

8. The machine vision-based automatic fruit tree pruning system according to claim 6, characterized in that: The end effector (17) comprises a stepping motor (26), a transmission mechanism and a trimming knife; The output shaft direction of the stepper motor (26) is perpendicular to the direction of the opening and closing movement of the trimming knife, the end of the output shaft is provided with a truncated cone structure (27) which is in surface contact with the transmission mechanism, the truncated cone structure (27) drives the transmission mechanism to make circular motion, the transmission mechanism is also provided with a gear (24-1), and one side of the trimming knife is provided with a rack structure (22-1) which matches the gear (24-1); The transmission mechanism is provided with a circular ring structure (24-2) on the outer periphery, and the thickness of the circular ring structure (24-2) gradually decreases from the inner circular end to the outer circular end; the side surface of the truncated cone structure (27) maintains surface contact with the circular ring structure (24-2); The stepping motor (26) drives the truncated cone structure (27) to drive the annular structure (24-2) to rotate; the annular structure (24-2) synchronously drives the gear (24-1) to rotate during the rotation process; the gear (24-1) meshes with the rack structure (22-1) to drive the movable blade (22) to rotate and open and close relative to the fixed blade (25).

9. The machine vision-based automatic fruit tree pruning system according to claim 3, characterized in that: In step S3, the steps of using the SLAM algorithm to perform pose estimation and panoramic mapping on the data scanned by the laser radar specifically include: First, edge points, points with too high or too low intensity, points with incident angles close to π or 0, and blocked points in the laser point cloud collected by the navigation laser radar (4) are removed; Next, feature extraction is performed. Based on the local smoothness of the candidate points and the reflectivity of the points, the points are divided into two main categories: edge points and plane points, where plane points refer to points belonging to a plane; The pose of the navigation lidar is then calculated using an iterative pose optimization procedure, where the residuals between points are used to estimate the pose: For edge points and plane points, when estimating the pose, first find the five nearest points in the point cloud set, calculate the mean and covariance matrix of these five points to ensure that the edge points are in a straight line and the plane points are in the same plane, and then calculate the distance residual; after obtaining the edge point residual and the plane point residual, construct an optimization equation to iteratively solve the pose; in this iterative process, perform two iterations to eliminate dynamic objects, and use the optimization result of the previous iteration to update the pose until 20% of the maximum residual is removed, and then perform a complete pose optimization to obtain the six-degree-of-freedom pose estimation of the navigation lidar and output the orchard panoramic point cloud map.

10. The automatic fruit tree pruning system based on machine vision according to claims 1-8, characterized in that: The real-time posture in step S3 is determined according to the estimated rotation of the robot arm determined in the following steps: Remember t The angular velocity provided by the gyroscope is affected by noise. The white noise contained in the gyroscope measurement is n ω and the gyroscope bias is b ωt , where white noise n ω is modeled as Gaussian white noise, with bias b ωt It is modeled as a random walk process, and the angular velocity formula including the error is obtained as The time length between two consecutive close-range LiDAR frames, frame k and frame k+1, is t k and t k+1 , then the pre-integration of the gyroscope The pre-integration result is subjected to coordinate transformation to obtain a rotation estimate in the world coordinate system.

Citation Information

Patent Citations

  • Vine pruning robot device

    CN109964675A

  • Semantic map construction method based on laser and vision fusion

    CN115187737A

  • Design pruning method and system for trunk type fruit trees

    CN116127737A

  • Pipe duct cover panel assembly

    KR102497317B1

  • Computerized learning landscaping apparatus and methods

    US20160150739A1

Cited By

  • Automatic sowing machine for Chinese cabbages

    CN118805496A

  • Method and system for positioning junction box of photovoltaic module

    CN119169250A

  • Fruit tree pruning robot and pruning method

    CN119817349A

  • Automatic fruit tree pruning system based on machine vision

    CN119856647A

  • Plant modeling three-dimensional modeling automatic pruning method and system based on laser radar

    CN119924098A