Control system of a weeding robot
By integrating the control system of collection, analysis, prediction and tracking modules on the weeding robot, the movement trajectory can be corrected in real time, which solves the problem of route deviation and repeated driving on uneven lawns, and improves weeding efficiency and equipment service life.
Patent Information
- Application Number
- CN202410136560.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-31
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-01-31
AI Technical Summary
Existing weeding robots cannot effectively adjust their driving routes when faced with uneven roads and obstacles, resulting in route deviations, repeated driving, increased time consumption, and equipment wear.
Using a control system including an acquisition module, an analysis module, a prediction module and a tracking module, the lawn map is obtained through mechanical vision, positioning points are divided, obstacle values are calculated, weeding instructions and offset signals are generated, and movement trajectories are corrected in real time to avoid obstacle collisions and Optimize routes.
It enables the weeding robot to drive safely and effectively on uneven lawns, avoids repeated driving, and reduces energy consumption and equipment wear.
Smart Images

Figure CN117970929B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of weeding robots, and in particular to a control system of a weeding robot. Background Art
[0002] Chinese patent CN115167402A discloses a method and system for path finding of a weeding robot, which belongs to the technical field of weeding robots, and is characterized in that it includes: S1, drawing a blueprint; S2, weeding robot path finding; wherein: S201, installing magnetic nails around the boundary and obstacles of the weeding area; S202, determining the initial position of the weeding robot in the two-dimensional array map; S203, path finding starts; S204, when the weeding robot enters a certain point, if it is determined by logic that the point has no movable direction, it will go back to find an operable position according to the points that have been run; when an operable point is found, it moves with the current position of the weeding robot as the initial position and the operable point as the end point; S205, when the mobile robot reaches the operable point, it will re-perform the path finding operation in S203; S206, when the mobile robot can no longer find an operable point through S204, the path finding is completed;
[0003] In the prior art, when a lawn mower robot is mowing the entire lawn, its operating route depends on a pre-planned route. When faced with uneven areas, uneven road conditions, or obstacles such as stones, the lawn mower robot cannot move according to the pre-predicted route, thereby deviating from the route, affecting the completeness of lawn mowing. If the deviation is too large, it will have a greater impact on re-planning the route, and the mowed lawn may be re-planned into the driving route, resulting in longer time-consuming repeated driving. In addition, when the lawn mower robot has not reached the lawn that needs to be mowed, the mowing device is in a normally open state, which has a certain impact on the wear of the blade and energy consumption. Summary of the invention
[0004] The purpose of the present invention is to solve the above-mentioned problems of the background technology and to provide a control system for a weeding robot.
[0005] The purpose of the present invention can be achieved through the following technical solutions:
[0006] A control system for a weeding robot, comprising: a collection module, an analysis module, a prediction module, a tracking module and a communication module;
[0007] Communication module: used to obtain external instructions and soil data;
[0008] Acquisition module: used to pre-plan the motion trajectory of the weeding robot, obtain the target map of the weeding area through machine vision, draw the running trajectory curve of the weeding robot according to the target map, divide the running trajectory curve into i positioning points at equal intervals; the lawn growth situation is the highest height of the weeds in the circle center area with a radius of r and the positioning point as the center, and is marked as Hz n , n∈i; and the number and height of obstacles in the center area of the circle with radius r are marked as La n and Ha n , through the formula ZA n =a1*La n +a2*Ha n , calculate the obstacle value ZA in the circle center area with the nth positioning point as the center and the radius r n , where n∈i, a1 and a2 are both proportional coefficients;
[0009] Analysis module: used to obtain the Hz collected by the acquisition module n value and the corresponding positioning point n to generate the corresponding weeding instruction; it is also used to obtain the obstacle value ZA n and the corresponding positioning point n, generating a corresponding offset signal;
[0010] Prediction module: determines whether to generate a detour signal and corrects the running trajectory based on the surrounding environment conditions obtained by the weeding robot during real-time operation;
[0011] The tracking module locates the position of the weeding robot in real time, and analyzes and judges the real-time motion trajectory of the weeding robot and the running trajectory curve of the weeding robot drawn by the acquisition module according to the target map.
[0012] Further: The principle of the analysis module generating the weeding instruction and the offset signal is as follows:
[0013] Weeding instruction: The analysis module obtains the preset ideal lawn height Hz, and when the highest weed height Hz corresponding to each positioning point n > Hz, a weeding instruction corresponding to the positioning point n is generated. When the tracking module detects that the weeding robot is within a range with a radius of r and the positioning point n as the center, the weeding device is started;
[0014] Offset signal: The overall soil moisture value Zs of the weeding area obtained by the communication module and the obstacle value ZA collected n Perform product processing to generate the influence coefficient set X:X1,X2,......,X n , n∈i, process the influence coefficient set X to generate the influence coefficient threshold X t , and then the influence coefficient X corresponding to each positioning point nand the influence coefficient threshold X t For comparison, X n >X t , an offset signal is generated.
[0015] Further: the influence coefficient threshold X t , which is obtained by the following steps:
[0016] S1: Get the average value of the influence coefficient set X Sample standard deviation S and theoretical frequency U x , to determine whether it satisfies the normal distribution, the formula is as follows:
[0017]
[0018] If the normal distribution is not satisfied, execute S2;
[0019] If the normal distribution is satisfied, execute S3;
[0020] S2: Calculate the sample variance value σ, and eliminate samples with large differences through the mean-variance test. The mean-variance test formula is as follows:
[0021]
[0022] Among them, X n The sample under test for the influence coefficient set X is eliminated if it does not meet the requirements. The influence coefficient set after elimination enters S1 again.
[0023] S3: Take out the maximum value in the processed influence coefficient set X, which is the influence coefficient threshold X t .
[0024] Further: The specific working process of the prediction module is as follows:
[0025] The sweeping robot takes the x-axis of the current observation image as the direction and calculates the height difference between the highest point of the obstacle and the horizontal plane, the height difference between the lowest point of the obstacle and the horizontal plane in the area with a radius of r, and marks them as Hxman and Hxmin respectively, and the angle between the highest point and the lowest point and the horizontal plane, marked as xa; the first influence value ZY1 is calculated by the formula ZY1 = (Hxmax-Hxmin) / sin(xa)LJa; where LJa represents the body width of the weeding robot;
[0026] Taking the y-axis of the current observation image as the direction, obtain the height difference between the highest point of the obstacle and the horizontal plane in the area with the current position as the center and the radius r, and mark them as Hymax and Hymin respectively, as well as the angle between the highest point and the lowest point and the horizontal plane, marked as ya; the second influence value ZY2 is calculated by the formula ZY2 = (Hymax-Hymin) / sin(ya)LJb; where LJb represents the body length of the weeding robot;
[0027] Substitute the obtained first impact value ZY1 and second impact value ZY2 into the formula ZY=1 / (b1*ZY1+b2*ZY2)+1 / (sin(xa)+sin(ya)) to calculate the obstacle impact value ZY; wherein b1 and b2 are both proportional coefficients;
[0028] If the obstacle impact value ZY is greater than or equal to the offset signal, the vehicle will drive according to the original offset signal instruction, that is, a detour signal is generated;
[0029] If the obstacle impact value ZY is smaller than the offset signal, a crossing signal is generated.
[0030] Further: The analysis and judgment process of the tracking module is as follows:
[0031] The real-time detour curve along the detour curve is obtained through real-time positioning on the weeding robot, and the real-time detour curve is divided into j detection points at equal intervals, and the interval is equal to the interval of the positioning point division; the distance value between the current detection point and the current positioning point closest to the detection point is calculated, and marked as the distance difference ZJ j , when ZJ j >LJa, the deviation is judged to be too large and the route is replanned.
[0032] Further: the route planning is based on dynamic programming to generate multiple paths, and the generated paths are stored in a top-down memorandum method, with the shortest path as the purpose, and the bottom-up logic is selected;
[0033] When ZJ j >LJa, select the optimal solution of the previous layer of the current path solution by backtracking method, and then select the optimal solution of the next layer corresponding to this optimal solution.
[0034] Beneficial effects of the present invention:
[0035] The present invention divides the whole lawn into multiple identical areas, observes the weed growth and obstacles in advance, calculates the initial motion trajectory of the weeding robot and accurately locates the area that needs weeding; during real-time operation, based on the initial motion trajectory and combined with the observation of the surrounding environment, the motion trajectory is further corrected under the conditions of limiting the offset range and taking the shortest route;
[0036] The present invention adjusts the motion trajectory in real time, ensures the safety of the weeding robot, avoids collision with obstacles, and avoids repeated operation, which is less time-consuming and more effective; by accurately dividing the weeding area, the weeding device is controlled to weed only in the area where weeding is required, reducing energy consumption and avoiding excessive wear of the weeding device. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present invention and the technical solutions in the prior art, the drawings required for use in the embodiments and the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some implementation methods recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 It is a system block diagram of the present invention. DETAILED DESCRIPTION
[0039] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0040] See also Figure 1 As shown, the present invention is a control system of a weeding robot, comprising:
[0041] Communication module, receiving external instructions, presetting the height HZ required for weeding and providing soil parameters;
[0042] The acquisition module obtains the lawn growth and obstacle conditions of the weeding robot as it moves along the walking path;
[0043] The specific working process of the acquisition module is as follows:
[0044] Step 1: Get the soil moisture ZS of the current area;
[0045] Step 2: Obtain a target map of the weeding area, and draw a running trajectory curve of the weeding robot on the target map, dividing the running trajectory curve into i positioning points at equal distances;
[0046] Step 3: The lawn growth situation in the area is obtained through the image acquisition of the weeding robot, and the obstacle situation in the area is obtained through the laser radar of the weeding robot;
[0047] Specifically, the lawn growth is the height of weeds in the circle center area with radius r and the nth positioning point as the center, n∈i, and is marked as Hz n ;
[0048] The number and height of obstacles in the center area of the circle with radius r are marked as La n and Ha n , through the formula ZA n =a1*La n +a2*Ha n , calculate the obstacle value ZA in the circle center area with the nth positioning point as the center and the radius r n , where n∈i, a1 and a2 are both proportional coefficients; where a1 and a2 are both proportional coefficients, in this embodiment, a1 is 0.51, and a2 is 0.39;
[0049] The analysis module obtains the Hz collected by the acquisition module n value and the corresponding positioning point n to generate the corresponding weeding instruction; it is also used to obtain the obstacle value ZA n and the corresponding positioning point n, generating a corresponding offset signal;
[0050] The specific working process of this analysis module is as follows:
[0051] Generate weeding instructions: The analysis module obtains the preset ideal lawn height Hz, and when the highest weed height Hz corresponding to each positioning point n > Hz, a weeding instruction corresponding to the positioning point n is generated. When the tracking module detects that the weeding robot is within a range with a radius of r and the positioning point n as the center, the weeding device is started;
[0052] Generate offset signal: The overall soil moisture value Zs of the weeding area obtained by the communication module and the obstacle value ZA collected n Perform product processing to generate the influence coefficient set X:X1,X2,......,X n , n∈i, process the influence coefficient set X to generate the influence coefficient threshold X t , and then the influence coefficient X corresponding to each positioning point n and the influence coefficient threshold X t For comparison, X n >X t , then an offset signal is generated;
[0053] The influence coefficient threshold X t The specific steps are as follows:
[0054] S1: Get the average value of the influence coefficient set X Sample standard deviation S and theoretical frequency U x, to determine whether it satisfies the normal distribution, the formula is as follows:
[0055]
[0056] If the normal distribution is not satisfied, execute S2;
[0057] If the normal distribution is satisfied, execute S3;
[0058] S2: Calculate the sample variance value σ, and eliminate samples with large differences through the mean-variance test. The mean-variance test formula is as follows:
[0059]
[0060] Among them, X n The sample under test for the influence coefficient set X is eliminated if it does not meet the requirements. The influence coefficient set after elimination enters S1 again.
[0061] S3: Take out the maximum value in the processed influence coefficient set X, which is the influence coefficient threshold X t ;
[0062] The prediction module, when receiving the abnormal weeding signal from the analysis module, determines whether the robot can pass through the preset running track;
[0063] The specific working process of the prediction module is as follows:
[0064] Step 1: Taking the x-axis as the direction, obtain the height difference between the highest point of the obstacle and the horizontal plane, the height difference between the lowest point of the obstacle and the horizontal plane in the area with the current position as the center and the radius r, and mark them as Hxman and Hxmin respectively, as well as the angle between the highest point and the lowest point and the horizontal plane, marked as xa; calculate the first impact value ZY1 through the formula ZY1 = (Hxmax-Hxmin) / sin(xa)LJa; where LJa represents the body width of the weeding robot;
[0065] Taking the y-axis as the direction, obtain the height difference between the highest point of the obstacle and the horizontal plane in the area with the current position as the center and the radius r, and mark them as Hymax and Hymin respectively, as well as the angle between the highest point and the lowest point and the horizontal plane, marked as ya; calculate the second impact value ZY2 through the formula ZY2 = (Hymax-Hymin) / sin(ya)LJb; where LJb represents the body length of the weeding robot;
[0066] Step 2: Substitute the obtained first impact value ZY1 and the second impact value ZY2 into the formula ZY=1 / (b1*ZY1+b2*ZY2)+1 / (sin(xa)+sin(ya)) to calculate the obstacle impact value ZY; wherein b1 and b2 are both proportional coefficients. In this embodiment, b1 is 0.14 and b2 is 0.36.
[0067] Compare the obtained obstacle impact value ZY with the offset signal;
[0068] If the obstacle impact value ZY is greater than or equal to the offset signal, the robot will drive according to the original offset signal instruction, that is, generate a detour signal, which enables the weeding robot to execute the original offset signal instruction;
[0069] If the obstacle impact value ZY is less than the offset signal, a crossing signal is generated;
[0070] In the present invention, the crossing signal indicates that when the weeding robot runs to the area, the overall distribution of the slope of the obstacles in the area is relatively gentle, and the weeding robot can walk across the obstacle. The detour signal indicates that when the weeding robot runs to the area, the overall distribution of the slope of the obstacles in the area is relatively steep, and the weeding robot cannot walk across the obstacle and needs to detour along the obstacle.
[0071] The tracking module, upon receiving the detour signal from the prediction module, conducts real-time analysis and judgment of the whereabouts of the weeding robot;
[0072] The specific working process of the tracking module is as follows:
[0073] The real-time detour curve along the detour curve is obtained through real-time positioning on the weeding robot, and the real-time detour curve is divided into j detection points at equal intervals, and the interval is equal to the interval of the positioning point division; the distance value between the current detection point and the current positioning point closest to the detection point is calculated, and marked as the distance difference ZJ j , when ZJ j >LJa, the deviation is judged to be too large and the route is replanned;
[0074] Specifically: re-plan the route, generate multiple paths based on dynamic programming, store the generated paths in a top-down memo method, and select the shortest path logically from the bottom up;
[0075] When ZJ j >LJa, select the optimal solution of the previous layer of the current path solution by backtracking method, and then select the optimal solution of the next layer corresponding to this optimal solution.
[0076] The offset signal in the present invention indicates that when the weeding robot is walking around a curve, the obstacles and soil conditions in its area are not suitable for the weeding robot to walk, so that the weeding robot is offset by a distance of a vehicle width away from the obstacle; the walking signal indicates that when the weeding robot passes through a bypass curve, the obstacles and soil conditions in its area are suitable for the weeding robot to walk.
[0077] Working principle of the present invention: The present invention divides the whole lawn into multiple identical areas, observes the weed growth and obstacles in advance, calculates the preliminary motion trajectory of the weeding robot and accurately locates the area that needs weeding; during real-time operation, based on the preliminary motion trajectory and combined with the observation of the surrounding environment, the motion trajectory is further corrected under the conditions of limiting the offset range and taking the shortest route;
[0078] Therefore, the present invention combines the preset motion trajectory with the real-time adjustment of the motion trajectory to ensure the safety of the weeding robot, avoid collisions with obstacles, and avoid repeated operations, which is less time-consuming and more effective; by accurately dividing the weeding areas, the weeding device is controlled to weed only in the areas where weeding is required, thereby reducing energy consumption and avoiding excessive wear of the weeding device.
[0079] The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the patent coverage of the present invention.
Claims
1. A control system for a weeding robot, characterized in that: include: Acquisition module, analysis module, prediction module, tracking module and communication module; Communication module: used to obtain external instructions and soil data; Acquisition module: used to pre-plan the motion trajectory of the weeding robot, obtain the target map of the weeding area through machine vision, draw the running trajectory curve of the weeding robot according to the target map, divide the running trajectory curve into i positioning points at equal intervals; the lawn growth situation is the highest height of the weeds in the circle center area with a radius of r and the positioning point as the center, and is marked as Hz n , n∈i; and the number and height of obstacles in the center area of the circle with radius r are marked as La n and Ha n , through the formula ZA n =a1*La n +a2*Ha n , calculate the obstacle value ZA in the circle center area with the nth positioning point as the center and the radius r n , where n∈i, a1 and a2 are both proportional coefficients; Analysis module: used to obtain the Hz collected by the acquisition module n value and the corresponding positioning point n to generate the corresponding weeding instruction; it is also used to obtain the obstacle value ZA n and the corresponding positioning point n, generating a corresponding offset signal; Prediction module: determines whether to generate a detour signal and corrects the running trajectory based on the surrounding environment conditions obtained by the weeding robot during real-time operation; Tracking module: locates the position of the weeding robot in real time, and analyzes and judges the real-time motion trajectory of the weeding robot and the weeding robot running trajectory curve drawn by the acquisition module according to the target map.
2. A control system for a weeding robot according to claim 1, characterized in that: The principle of the analysis module generating the weeding instruction and the offset signal is as follows: Weeding instruction: The analysis module obtains the preset ideal lawn height Hz, and when the highest weed height Hz corresponding to each positioning point n > Hz, a weeding instruction corresponding to the positioning point n is generated. When the tracking module detects that the weeding robot is within a range with a radius of r and the positioning point n as the center, the weeding device is started; Offset signal: The overall soil moisture value Zs of the weeding area obtained by the communication module and the obstacle value ZA collected n Perform product processing to generate the influence coefficient set X:X1,X2,......,X n , n∈i, process the influence coefficient set X to generate the influence coefficient threshold X t , and then the influence coefficient X corresponding to each positioning point n and the influence coefficient threshold X t For comparison, X n >X t , an offset signal is generated.
3. The control system of a weeding robot according to claim 2, characterized in that: The influence coefficient threshold X t , which is obtained by the following steps: S1: Get the average value of the influence coefficient set X Sample standard deviation S and theoretical frequency U x , to determine whether it satisfies the normal distribution, the formula is as follows: If the normal distribution is not satisfied, execute S2; If the normal distribution is satisfied, execute S3; S2: Calculate the sample variance value σ, and eliminate samples with large differences through the mean-variance test. The mean-variance test formula is as follows: Among them, X n The sample under test for the influence coefficient set X is eliminated if it does not meet the requirements. The influence coefficient set after elimination enters S1 again. S3: Take out the maximum value in the processed influence coefficient set X, which is the influence coefficient threshold X t .
4. The control system of a weeding robot according to claim 1, characterized in that: The specific working process of the prediction module is as follows: The sweeping robot takes the x-axis of the current observation image as the direction, obtains the height difference between the highest point of the obstacle and the horizontal plane, the height difference between the lowest point of the obstacle and the horizontal plane in the area with the current position as the center and the radius r, and marks them as Hxman and Hxmin respectively, and the angle between the highest point and the lowest point and the horizontal plane, marked as xa; the first influence value ZY1 is calculated by the formula ZY1=(Hxmax-Hxmin) / sin(xa)LJa; where LJa represents the body width of the weeding robot; Taking the y-axis of the current observation image as the direction, obtain the height difference between the highest point of the obstacle and the horizontal plane in the area with the current position as the center and the radius r, and mark them as Hymax and Hymin respectively, as well as the angle between the highest point and the lowest point and the horizontal plane, marked as ya; the second influence value ZY2 is calculated by the formula ZY2 = (Hymax-Hymin) / sin(ya)LJb; where LJb represents the body length of the weeding robot; Substitute the obtained first impact value ZY1 and second impact value ZY2 into the formula ZY=1 / (b1*ZY1+b2*ZY2)+1 / (sin(xa)+sin(ya)) to calculate the obstacle impact value ZY; wherein b1 and b2 are both proportional coefficients; Compare the obtained obstacle impact value ZY with the offset signal; If the obstacle impact value ZY is greater than or equal to the offset signal, the vehicle will drive according to the original offset signal instruction, that is, a detour signal is generated; If the obstacle impact value ZY is smaller than the offset signal, a crossing signal is generated.
5. The control system of a weeding robot according to claim 1, characterized in that: The analysis and judgment process of the tracking module is as follows: The real-time detour curve along the detour curve is obtained through real-time positioning on the weeding robot, and the real-time detour curve is divided into j detection points at equal intervals, and the interval is equal to the interval of the positioning point division; the distance value between the current detection point and the current positioning point closest to the detection point is calculated, and marked as the distance difference ZJ j , when ZJ j >LJa, the deviation is judged to be too large and the route is replanned.
6. The control system of a weeding robot according to claim 5, characterized in that: The re-planning of the route is based on dynamic programming, generating multiple paths, storing the generated paths in a top-down memorandum method, and selecting the shortest path from the bottom up; When ZJ j >LJa, select the optimal solution of the previous layer of the current path solution by backtracking method, and then select the optimal solution of the next layer corresponding to this optimal solution.
Citation Information
Patent Citations
Weeding robot way-finding method and system
CN115167402A
Control method and control device for sweeping robot with telescopic camera
CN110968081A
Method for recognizing congestion in robot delivery scene, robot and delivery system
CN113807795A
Unmanned aerial vehicle obstacle avoidance method based on hand-eye coordination
CN115752468A
Moving body and obstacle detection method of the same
JP2017036945A
