Path planning method for multiple agricultural machines, unmanned agricultural machine and path planning system of unmanned agricultural machine
By deploying neural networks on agricultural machinery, combining octree and ESDF models, and using reinforcement learning algorithms for path planning, the collision problem in multi-agricultural machinery operations is solved, more accurate and real-time path planning is achieved, and operation safety and efficiency are improved. .
Patent Information
- Application Number
- CN202410774684.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-10-18
Smart Images

Figure CN118795880A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of path planning, and more specifically, to a path planning method for multiple agricultural machines, unmanned agricultural machines and path planning systems thereof. Background Art
[0002] As precision agriculture is widely accepted in China, the coordination of multiple agricultural machinery has become an indispensable part of agricultural operations. However, when multiple agricultural machinery are operating in parallel, how to ensure that agricultural machinery avoids collisions in real time during path planning is a problem worth considering. Summary of the invention
[0003] The present application provides a path planning method for multiple agricultural machines, unmanned agricultural machines and their path planning system, which aims to deploy a trained neural network on each agricultural machine, send the received real-time performance information, environmental information and location information of each agricultural machine into the neural network, and obtain the path planning for the next time period, so as to avoid collisions between agricultural machines or between agricultural machines and obstacles in real time.
[0004] In a first aspect, a path planning method for multiple agricultural machines is provided, which is applied to an operation scenario with multiple agricultural machines. The method is executed on a first agricultural machine among the multiple agricultural machines, and the method includes: obtaining first performance information, first environmental information and first position information of the first agricultural machine in a current time period, the first performance information being used to characterize the structural performance and power performance of the first agricultural machine; receiving second environmental information and second position information of other agricultural machines among the multiple agricultural machines except the first agricultural machine in the current time period; inputting the first performance information, first environmental information, second environmental information, first position information and second position information into a first neural network to perform path planning for the next time period.
[0005] Based on the above scheme, compared with the existing scheme of using a neural network to plan the paths of multiple parallel agricultural machines and using a control system to transmit the respective path plans to each agricultural machine, the present application trains multiple neural networks and installs them on each agricultural machine for path planning. For the first agricultural machine, the trained neural network is deployed on the first agricultural machine, and the performance information, environmental information and location information acquired in real time are sent to the neural network to obtain the path planning of the first agricultural machine in the next time period. By sending multiple information into the neural network to obtain more accurate path planning, collisions can be avoided in real time during the parallel process of multiple agricultural machines.
[0006] In some possible implementations, obtaining first environmental information of the first agricultural machinery in the current time period includes: obtaining the first environmental information of the first agricultural machinery in the current time period through an octree and an ESDF model.
[0007] In some possible implementations, first environmental information of the first agricultural machinery in the current time period is obtained through an octree and an ESDF model, including: obtaining third environmental information of the first agricultural machinery in the current time period, the third environmental information being measured by a sensor; obtaining three-dimensional terrain information through the third environmental information and the octree, the three-dimensional terrain information including at least one of the following: terrain spatial segmentation, terrain shape, terrain size, and terrain position; inputting the three-dimensional terrain information into the ESDF model to obtain a first distance between the first agricultural machinery and an obstacle and a second distance between the first agricultural machinery and an adjacent agricultural machinery; fusing the first distance and the second distance to obtain the first environmental information.
[0008] Based on the above scheme, more accurate environmental information of the first agricultural machinery can be obtained through environmental information processed by the octree and ESDF models.
[0009] In some possible implementations, receiving second environment information and second location information of other agricultural machines among multiple agricultural machines except the first agricultural machine includes: receiving the second environment information and second location information of other agricultural machines sent from the cloud; the method also includes: sending the first environment information and the first location information to the cloud.
[0010] It should be understood that the information of other agricultural machinery is uploaded to the cloud through the agricultural machinery, and then sent to the first agricultural machinery by the cloud. In addition, the information of the first agricultural machinery is also needed for other agricultural machinery, so the first agricultural machinery needs to send information to the cloud and send the information of the first agricultural machinery to each agricultural machinery respectively.
[0011] In some possible implementations, the method further includes: sending first number information to the cloud, the first number information being used to identify the first agricultural machine; the cloud is also used to receive second number information, second environment information, and second location information sent by other agricultural machines among the plurality of agricultural machines except the first agricultural machine, the cloud stores a first neural network, and is used to train the first neural network based on the first number information, the second number information, the first environment information, the first location information, the second environment information, and the second location information.
[0012] In some possible implementations, obtaining the first performance information includes: measuring parameter data of the first agricultural machinery in a current time period, the parameter data including at least one of the following: rotational speed, torque, and fuel consumption; and inputting the parameter data into a mathematical model to obtain the first performance information.
[0013] In some possible implementations, before inputting the parameter data into the mathematical model to obtain the first performance information, the method also includes: determining an initial function based on the parameter data of the first agricultural machinery in different time periods and the corresponding third performance information; inputting the parameter data of the first agricultural machinery in different time periods into the initial function to obtain fourth performance information; fitting the fourth performance information and the third performance information by the least squares method to obtain the first parameter of the initial function, and updating the initial function to obtain the mathematical model.
[0014] In some possible implementations, the method also includes: obtaining first motion state information of a first agricultural machine; receiving second motion state information of other agricultural machines except the first agricultural machine among a plurality of agricultural machines; inputting first performance information, first environmental information, second environmental information, first position information and second position information into a first neural network, and performing path planning for a next time period, including: inputting first motion state information, second motion state information, first performance information, first environmental information, second environmental information, first position information and second position information into a first neural network, and performing path planning for a next time period.
[0015] In some possible implementations, the method further includes: acquiring training samples, the training samples including: virtual training samples generated by a sample generation model; and training the initial neural network according to the virtual training samples to obtain the first neural network.
[0016] In some possible implementations, obtaining training samples includes: obtaining multiple real training samples; determining the similarity of the multiple real training samples through a sample generation model, where the similarity is obtained by the distance between the features of the multiple real training samples, and the distance includes the Euclidean distance or the Manhattan distance; and expanding the multiple real training samples according to the similarity to obtain virtual training samples.
[0017] In some possible implementations, multiple real training samples are expanded according to similarity to obtain virtual training samples, including: grouping multiple real training samples so that the difference in similarity between each group of real training samples is less than a preset threshold; transforming each group of real training samples to obtain virtual training samples, wherein the transformation includes at least one of the following: scrambling, rotation or cropping.
[0018] In some possible implementations, training an initial neural network according to virtual training samples to obtain a first neural network includes: sending virtual training samples and real training samples to the initial neural network; and using a reinforcement learning algorithm to train the initial neural network to obtain the first neural network.
[0019] In some possible implementations, a reinforcement learning algorithm is used to train an initial neural network to obtain a first neural network, including: training the initial neural network including initial parameters to obtain a first path plan; obtaining a first reward based on the first path plan; adjusting the initial parameters based on the first reward to obtain the first parameters; training the neural network including the first parameters to obtain a second path plan; obtaining a second reward based on the second path plan; adjusting the first parameters based on the second reward to obtain the second parameters; when the cumulative reward is greater than or equal to a predetermined reward, using the neural network including the second parameters as the first neural network, wherein the cumulative reward is the sum of the first reward and the second reward; when the cumulative reward is less than the predetermined reward, continuing to train the neural network including the second parameters until the cumulative reward is greater than or equal to the predetermined reward.
[0020] Based on the above scheme, the initial neural network is trained through the reinforcement learning algorithm, and the parameters of the neural network are adjusted through the reward value during the training process, and finally the target neural network is obtained.
[0021] In some possible implementations, obtaining the first reward according to the first path planning includes: the first path planning is the same as the target planning path, and the first reward is positive; or the first path planning is different from the target path planning, and the first reward is negative.
[0022] In a second aspect, a control device for an unmanned agricultural machinery is provided, the control device comprising a processor and a memory, the memory being used to store a computer program, and the processor being used to call and run the computer program stored in the memory to execute: the method of the first aspect.
[0023] In a third aspect, an unmanned agricultural machine is provided, which includes a power unit and a control device for executing the method in the first aspect or the control device in the second aspect, wherein the control device is used to control the power unit so that the unmanned agricultural machine travels along a planned path.
[0024] In a fourth aspect, a path planning system for an unmanned agricultural machine is provided, the path planning system comprising: an unmanned agricultural machine cluster, each unmanned agricultural machine in the unmanned agricultural machine cluster being used to execute any path planning method as described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a schematic architecture diagram of a process 100 of multiple agricultural machines operating in parallel applicable to an embodiment of the present application.
[0026] Figure 2 It is a schematic flowchart of a method 200 for path planning of agricultural machinery provided in an embodiment of the present application.
[0027] Figure 3It is a schematic flowchart of another method 300 for path planning of agricultural machinery provided in an embodiment of the present application.
[0028] Figure 4 It is a schematic flowchart of a neural network training process 400 in a path planning process provided in an embodiment of the present application.
[0029] Figure 5 It is a schematic structural block diagram of a control device 500 for an unmanned agricultural machinery provided in an embodiment of the present application.
[0030] Figure 6 It is a schematic structural block diagram of an unmanned agricultural machine 600 provided in an embodiment of the present application. DETAILED DESCRIPTION
[0031] The technical solution in this application will be described below in conjunction with the accompanying drawings.
[0032] The present application involves the operation of multiple agricultural machines in the same field. Normally, it is necessary to perform real-time path planning for each agricultural machine to avoid collisions between multiple agricultural machines or between agricultural machines and obstacles. If a collision occurs due to improper path planning, it will not only affect the operation efficiency but may also cause damage to the agricultural machinery. Therefore, reasonable path planning is performed by collecting a variety of environmental information or information about the agricultural machinery itself, thereby avoiding collisions between multiple agricultural machines.
[0033] Figure 1 A schematic architecture diagram of a process 100 of multiple agricultural machines operating in parallel applicable to an embodiment of the present application is shown.
[0034] like Figure 1 As shown, in the process 100 of parallel operation of multiple agricultural machines, the required units include: client 110, cloud 120 and agricultural machine 130. Among them, the client 110 may include: computer equipment, handheld terminal equipment and server equipment, etc. As an example, the computer equipment includes but is not limited to desktop computers, laptop computers, etc., and the handheld terminal equipment includes but is not limited to mobile phones, smart wearable devices, etc. The client 110 can be operated by the user 101 to generate control commands for the agricultural machine 130.
[0035] The cloud 120 can receive relevant requests or commands from various clients 110, and send the requests or commands to the agricultural machine 130, so that the agricultural machine 130 can perform corresponding operations. The cloud 120 can also receive relevant information of the agricultural machine 130, and plan the path of the agricultural machine based on the relevant information. The relevant information can be performance information, environmental information or location information of the agricultural machine, etc.
[0036] When multiple agricultural machines are working in parallel and performing operations according to path planning, collisions are likely to occur when multiple agricultural machines encounter obstacles during operation or one of the agricultural machines suddenly deviates, due to the non-real-time information update to obtain real-time path planning, and the path planning algorithm is not very accurate.
[0037] In view of this, an embodiment of the present application provides a method for path planning of agricultural machinery. When multiple agricultural machinery are operating in parallel, taking the first agricultural machinery as an example, the relevant information of the first agricultural machinery's current time period and the relevant information of other agricultural machinery are considered to obtain the path planning of the first agricultural machinery in the next time period, which can effectively avoid collisions in real time.
[0038] Figure 2 A schematic flowchart of a method 200 for path planning of an agricultural machinery provided in an embodiment of the present application is shown.
[0039] like Figure 2 As shown, the path planning method 200 of the agricultural machinery includes the following steps.
[0040] S210: Acquire first performance information, first environmental information and first position information of the first agricultural machine in a current time period, where the first performance information is used to characterize the structural performance and power performance of the first agricultural machine.
[0041] S220: Receive second environment information and second location information of other agricultural machines among the multiple agricultural machines except the first agricultural machine in the current time period.
[0042] S230: Input the first performance information, the first environment information, the second environment information, the first position information and the second position information into the first neural network to perform path planning for the next time period.
[0043] Specifically, the execution subject of the present method embodiment is a first agricultural machine. Optionally, the first agricultural machine can be Figure 1 Any one of the agricultural machines 130 shown in FIG.
[0044] In the above step S210, the first agricultural machine obtains the first environmental information of the first agricultural machine in the current time period through the octree and ESDF model.
[0045] Specifically, first, the first agricultural machine obtains the third environmental information of the first agricultural machine in the current time period. The third environmental information is obtained by measuring with a sensor. The present application may also use other instruments to measure the third environmental information, and the present application does not impose any limitation on this. Secondly, three-dimensional terrain information is obtained through the third environmental information and the octree. The three-dimensional terrain information includes at least one of the following: terrain spatial segmentation, terrain shape, terrain size, and terrain position; the three-dimensional terrain information is input into the ESDF model to obtain a first distance between the first agricultural machine and the obstacle and a second distance between the first agricultural machine and the adjacent agricultural machine; the first distance and the second distance are merged to obtain the first environmental information.
[0046] In summary, the combination of octree and ESDF models can take into account environmental information more comprehensively and achieve efficient, safe and accurate path planning. Octree provides an efficient spatial segmentation and query mechanism, while ESDF provides detailed distance information. The combination of the two can improve the quality and reliability of path planning.
[0047] Optionally, the first performance information is obtained by inputting parameter data into a mathematical model.
[0048] Specifically, the first agricultural machine measures parameter data of the first agricultural machine in a current time period, wherein the parameter data includes rotation speed, torque, fuel consumption, etc. The parameter data is input into a mathematical model to obtain first performance information.
[0049] Among them, the determination process of the mathematical model is specifically as follows: determine the initial function according to the parameter data of the first agricultural machinery in different time periods and the corresponding third performance information; input the parameter data of the first agricultural machinery in different time periods into the initial function to obtain the fourth performance information; the fourth performance information and the third performance information are fitted by the least squares method to obtain the first parameter of the initial function, and the initial function is updated to obtain the mathematical model.
[0050] For example, in the previous operation process of agricultural machinery, historical parameter data and corresponding performance information are obtained, and the initial function is determined. Assuming that it is simply expressed as y=ax+b, the performance information obtained from the initial function of the historical data input value is fitted with the corresponding performance information, and the parameters of the initial function are updated by reducing the error between the two, thereby obtaining a mathematical model.
[0051] Optionally, the first location information is obtained by GPS measurement, or by other means, and this application does not impose any limitation on this.
[0052] In the above step S220, the first agricultural machine receives the second environment information and the second location information of the other agricultural machines except the first agricultural machine in the current time period among the multiple agricultural machines, wherein the second environment information and the second location information are sent to the first agricultural machine by the cloud.
[0053] Optionally, while receiving the second environment information and the second location information of other agricultural machinery sent by the cloud, the first agricultural machinery sends the first environment information and the first location information to the cloud, and the cloud can send the first environment information and the first location information to other agricultural machinery.
[0054] Optionally, a first numbering information is sent to the cloud, and the first numbering information is used to identify the first agricultural machine; the cloud is also used to receive second numbering information, second environmental information and second location information sent by other agricultural machines among multiple agricultural machines except the first agricultural machine. The cloud stores a first neural network and is used to train the first neural network based on the first numbering information, the second numbering information, the first environmental information, the first location information, the second environmental information and the second location information.
[0055] In the above step S230, the first performance information, the first environment information, the second environment information, the first position information and the second position information are input into the first neural network to perform path planning for the next time period. That is, in the first neural network, the first agricultural machine is judged in the next time period between the first agricultural machine and the adjacent agricultural machine and whether there are obstacles, etc., through the environment information and position information of multiple agricultural machines in this time period, so as to obtain the path planning of the first agricultural machine in the next time period and avoid collision in the next time period.
[0056] Through the technical solution of the embodiment of the present application, by collecting the information of the first agricultural machine and other information of the first agricultural machine in real time, and sending this information into the trained neural network model, the path planning of the first agricultural machine in the next time period can be obtained, and the path information of the first agricultural machine in the next time period can be effectively and real-time predicted, so as to avoid obstacles and collisions. In addition, in the process of real-time path planning, the trained first neural network is deployed on the first agricultural machine, and the real-time path planning of the first agricultural machine is obtained through the neural network through the information of multiple agricultural machines including the first agricultural machine itself, which can more effectively and accurately avoid collisions. Compared with the neural network with a large volume for path planning of multiple agricultural machines, the first neural network provided by the present application is deployed on a single agricultural machine (i.e., the first agricultural machine), and path planning is only performed for a single agricultural machine, which can make the path planning process of the first neural network more timely and rapid, and further improve the real-time and effectiveness of path planning.
[0057] Figure 3 A schematic flowchart of another method 300 for path planning of an agricultural machine provided in an embodiment of the present application is shown.
[0058] like Figure 3 As shown, the method 2 300 for path planning of the agricultural machinery includes the following steps.
[0059] S310: Acquire first motion state information of a first agricultural machine;
[0060] S320: receiving second motion state information of other agricultural machines except the first agricultural machine among the plurality of agricultural machines;
[0061] S330: Input the first motion state information, the second motion state information, the first performance information, the first environment information, the second environment information, the first position information and the second position information into the first neural network to perform path planning for the next time period.
[0062] Specifically, the execution subject of the present method embodiment is a first agricultural machine. Optionally, the first agricultural machine can be Figure 1 Any one of the agricultural machines 130 shown in FIG.
[0063] In the above method 2 300, the motion state information of the first agricultural machine and agricultural machines other than the first agricultural machine is added, wherein the motion state information includes the current speed information, direction information, posture information and operation status of the agricultural machine, etc., so that the neural network can obtain more accurate path planning based on more information.
[0064] Figure 4 A schematic flowchart of a neural network training process 400 in agricultural machinery path planning provided in an embodiment of the present application is shown.
[0065] like Figure 4 As shown, the training process 400 includes the following steps.
[0066] S410: Acquire training samples, where the training samples include: virtual training samples generated by a sample generation model.
[0067] S420: Training the initial neural network according to the virtual training samples to obtain a first neural network.
[0068] In the above step S410, it is not enough to rely only on historical samples of agricultural machinery as training samples, and a large amount of data is required for training. In this application, the similarity of multiple real training samples is determined through a sample generation model. The similarity is obtained by the distance between the features of the multiple real training samples. The distance includes Euclidean distance or Manhattan distance, etc. Other distance calculation methods can also be used to calculate the distance between features. This application does not make any limitation on this.
[0069] Optionally, when multiple initial neural networks are trained simultaneously, they do not need to be deployed on agricultural machinery, but can be deployed on the cloud, server or computer equipment. A large number of virtual training samples can be used to uniformly train the path planning of multiple agricultural machinery, and then the trained neural network model can be deployed on each agricultural machinery. The neural network model deployed on each agricultural machinery can perform path planning for each agricultural machinery through the method of the above-mentioned embodiment 200 or embodiment 300.
[0070] Optionally, multiple real training samples are expanded according to similarity to obtain virtual training samples. Specifically, multiple real training samples are grouped so that the difference in similarity between each group of real training samples is less than a preset threshold; each group of real training samples is transformed to obtain virtual training samples, wherein the transformation includes at least one of the following: scrambling, rotation or cropping, etc.
[0071] For example, multiple real training samples are divided into three groups, namely A, B and C. The similarity of samples in A, that is, the distance between samples is less than a preset threshold, the similarity of samples in B, that is, the distance between samples is less than a preset threshold, and the distance between the data in A and B is greater than the preset threshold.
[0072] Among them, the predetermined thresholds in A, B and C can be the same or different, and can be set according to actual conditions. This application does not impose any limitations on this.
[0073] Optionally, the virtual training samples and the real training samples are sent to the initial neural network; and the initial neural network is trained using a reinforcement learning algorithm to obtain a first neural network.
[0074] Specifically, virtual training samples and real training samples are sent to the initial neural network to obtain a first path planning, and a first reward is obtained according to the first path planning; according to the first reward, the initial parameters are adjusted to obtain the first parameters; the neural network including the first parameters is trained to obtain a second path planning; according to the second path planning, a second reward is obtained; according to the second reward, the first parameters are adjusted to obtain the second parameters; when the cumulative reward is greater than or equal to the predetermined reward, the neural network including the second parameters is used as the first neural network, wherein the cumulative reward is the result of adding the first reward and the second reward; when the cumulative reward is less than the predetermined reward, the neural network including the second parameters continues to be trained until the cumulative reward is greater than or equal to the predetermined reward.
[0075] Among them, if the first path planning is the same as the target planning path, the first reward is positive; or, if the first path planning is different from the target path planning, the first reward is negative.
[0076] Based on the above technical solution, the neural network is trained by a reinforcement learning algorithm, and finally a neural network model is obtained and deployed on various agricultural machines to perform the operation process of the above embodiment 200 or 300.
[0077] Figure 5 A schematic structural block diagram of a control device 500 for an unmanned agricultural machine provided in an embodiment of the present application is shown.
[0078] like Figure 5As shown, the control device 500 of the drone includes: a processor 510 and a memory 520, the memory 520 is used to store computer programs, and the processor 510 is used to call and run the computer program stored in the memory 520 to execute the above Figures 2 to 4 The method provided in any embodiment.
[0079] Figure 6 A schematic structural block diagram of an unmanned agricultural machine 600 provided in an embodiment of the present application is shown.
[0080] like Figure 6 As shown, the unmanned agricultural machine 600 includes a power device 610 and a control device for executing the above method or the above control device 500, and the control device 500 is used to control the power device 610 so that the unmanned agricultural machine travels along the planned path.
[0081] An embodiment of the present application also provides a path planning system for an unmanned agricultural machinery, the path planning system comprising: an unmanned agricultural machinery cluster, each unmanned agricultural machinery in the unmanned agricultural machinery cluster being used to execute any path planning method as described in Embodiment 200 or Embodiment 300.
[0082] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0083] It should be understood that the specific examples in this article are only intended to help those skilled in the art better understand the embodiments of the present application, rather than to limit the scope of the embodiments of the present application.
[0084] It should also be understood that in the various embodiments of the present application, the size of the serial number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0085] It should also be understood that the various implementation methods described in this specification can be implemented individually or in combination, and the embodiments of the present application are not limited to this.
[0086] Unless otherwise stated, all technical and scientific terms used in the embodiments of the present application are the same as the meanings generally understood by those skilled in the art of the technical field of the present application. The terms used in the present application are only for the purpose of describing specific embodiments and are not intended to limit the scope of the present application. The term "and / or" used in the present application includes any and all combinations of one or more related listed items. The singular forms of "a kind of", "above" and "the" used in the embodiments of the present application and the appended claims are also intended to include majority forms, unless the context clearly indicates other meanings. In addition, the terms "first", "second" etc. are only used for description purposes and cannot be understood as indicating or suggesting relative importance.
[0087] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0088] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0089] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0090] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0091] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A path planning method for multiple agricultural machines, characterized in that: Applied to an operation scenario with multiple agricultural machines, the method is executed on a first agricultural machine among the multiple agricultural machines, and the method includes: Acquiring first performance information, first environmental information of the first agricultural machine in a current time period, and first location information, wherein the first performance information is used to characterize structural performance and power performance of the first agricultural machine; receiving second environment information and second location information of the agricultural machines other than the first agricultural machine among the plurality of agricultural machines during the current time period; The first performance information, the first environment information, the second environment information, the first location information and the second location information are input into a first neural network to perform path planning for the next time period.
2. The path planning method according to claim 1, characterized in that: Acquiring first environmental information of the first agricultural machine in a current time period includes: The first environmental information of the first agricultural machinery in the current time period is obtained through the octree and ESDF model.
3. The path planning method according to claim 2, characterized in that: The obtaining of first environmental information of the first agricultural machine in the current time period by using the octree and ESDF model includes: Acquiring third environmental information of the first agricultural machine in a current time period, the third environmental information being obtained by measurement by a sensor; Obtaining three-dimensional terrain information through the third environment information and the octree, wherein the three-dimensional terrain information includes at least one of the following: terrain spatial segmentation, terrain shape, terrain size, and terrain position; Inputting the three-dimensional terrain information into the ESDF model to obtain a first distance between the first agricultural machine and an obstacle and a second distance between the first agricultural machine and an adjacent agricultural machine; The first distance and the second distance are fused to obtain the first environmental information.
4. The path planning method according to claim 1, wherein: The receiving the second environment information and the second location information of the agricultural machines other than the first agricultural machine among the plurality of agricultural machines includes: receiving the second environment information and the second location information of the other agricultural machinery sent by the cloud; The method further comprises: The first environment information and the first location information are sent to the cloud.
5. The path planning method according to claim 4, characterized in that: The method further comprises: Sending first number information to the cloud, where the first number information is used to identify the first agricultural machine; The cloud is also used to receive second number information, second environmental information and second location information sent by other agricultural machines among multiple agricultural machines except the first agricultural machine. The cloud stores the first neural network and is used to train the first neural network based on the first number information, the second number information, the first environmental information, the first location information, the second environmental information and the second location information.
6. The path planning method according to any one of claims 1 to 5, characterized in that: The obtaining of the first performance information includes: measuring parameter data of the first agricultural machine in a current time period, the parameter data including at least one of the following: speed, torque, and fuel consumption; The parameter data is input into a mathematical model to obtain the first performance information.
7. The path planning method according to claim 6, characterized in that: Before inputting the parameter data into a mathematical model to obtain the first performance information, the method further includes: determining an initial function based on parameter data of the first agricultural machine at different time periods and corresponding third performance information; inputting parameter data of the first agricultural machine at different time periods into the initial function to obtain fourth performance information; The fourth performance information and the third performance information are fitted by the least square method to obtain a first parameter of the initial function, and the initial function is updated to obtain the mathematical model.
8. The path planning method according to any one of claims 1 to 5, characterized in that: The method further comprises: obtaining first motion state information of the first agricultural machine; receiving second motion state information of other agricultural machines among the plurality of agricultural machines except the first agricultural machine; The step of inputting the first performance information, the first environment information, the second environment information, the first location information, and the second location information into the first neural network to perform path planning for the next time period includes: The first motion state information, the second motion state information, the first performance information, the first environment information, the second environment information, the first position information and the second position information are input into the first neural network to perform path planning for the next time period.
9. The path planning method according to any one of claims 1 to 5, characterized in that: The method further comprises: Acquire training samples, wherein the training samples include: virtual training samples generated by a sample generation model; The initial neural network is trained according to the virtual training samples to obtain the first neural network.
10. The path planning method according to claim 9, characterized in that: The obtaining of training samples includes: Obtain multiple real training samples; Determining the similarity of the plurality of real training samples by using the sample generation model, wherein the similarity is obtained by the distance between the features of the plurality of real training samples, wherein the distance includes Euclidean distance or Manhattan distance; The multiple real training samples are expanded according to the similarity to obtain the virtual training samples.
11. The path planning method according to claim 10, characterized in that: The virtual training sample includes: Grouping the plurality of real training samples so that a difference in similarity between the real training samples in each group is less than a preset threshold; Each group of real training samples is transformed to obtain the virtual training samples, wherein the transformation includes at least one of the following: scrambling, rotation or cropping.
12. The path planning method according to claim 11, characterized in that: The step of training the initial neural network according to the virtual training sample to obtain the first neural network includes: Sending the virtual training samples and the real training samples into the initial neural network; The initial neural network is trained using a reinforcement learning algorithm to obtain the first neural network.
13. The path planning method according to claim 12, characterized in that: The method of using a reinforcement learning algorithm to train the initial neural network to obtain the first neural network includes: Training the initial neural network including initial parameters to obtain a first path plan; Obtaining a first reward according to the first path planning; According to the first reward, adjusting the initial parameter to obtain a first parameter; Training a neural network including the first parameters to obtain a second path plan; Obtaining a second reward according to the second path planning; According to the second reward, adjusting the first parameter to obtain a second parameter; When the accumulated reward is greater than or equal to a predetermined reward, using the neural network including the second parameter as the first neural network, wherein the accumulated reward is a sum of the first reward and the second reward; When the accumulated reward is less than the predetermined reward, the neural network including the second parameter continues to be trained until the accumulated reward is greater than or equal to the predetermined reward.
14. The path planning method according to claim 13, wherein: Obtaining a first reward according to the first path planning includes: The first path planning is the same as the target planning path, and the first reward is positive; or The first path planning is different from the target path planning, and the first reward is negative.
15. A control device for an unmanned agricultural machine, characterized in that: include: A processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory to execute: the path planning method according to any one of claims 1 to 14.
16. An unmanned agricultural machine, characterized in that: include: A power device, and a control device for executing the path planning method according to any one of claims 1 to 14 or the control device according to claim 15, wherein the control device is used to control the power device so that the unmanned agricultural machine travels along the planned path.
17. A path planning system for unmanned agricultural machinery, characterized in that: include: An unmanned agricultural machine cluster, wherein each unmanned agricultural machine in the unmanned agricultural machine cluster is used to execute the path planning method according to any one of claims 1 to 14.
Citation Information
Cited By
Double agricultural machinery collaborative operation high-precision positioning method and device
CN120831684A
