Path planning method and device

By adaptively adjusting the penalty function weight in local path planning, the problem of insufficient solution quality in the TEB algorithm is solved, feasible and safe motion trajectory planning is achieved, and a better path is provided for robot walking.

CN112000088BActive Publication Date: 2024-09-24BEIJING JINGDONG QIANSHITECHNOLOGY CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN201910379913.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-05-08
Publication Date
2024-09-24
Estimated Expiration
2039-05-08

AI Technical Summary

Technical Problem

The time-controlled elastic band algorithm (TEB) uses the idea of ​​external penalty function in local trajectory planning, which results in the feasibility of the solution results being unable to be guaranteed. There are problems with kinematic feasibility and insufficient collision avoidance capabilities, which can easily lead to wall penetration during driving. etc. questions.

Method used

By adaptively adjusting the weight of the penalty function during local path planning, an optimal solution that satisfies the preset termination conditions is generated to ensure kinematic feasibility and avoid collisions. The g2o algorithm is used to solve the optimization proposition and the weights are adjusted until the constraints are met.

Benefits of technology

It achieves kinematically feasible motion trajectory planning without collision risk, overcomes the common problem of insufficient collision avoidance capabilities of the TEB algorithm, and provides better path planning for application scenarios such as robot walking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112000088B
    Figure CN112000088B
Patent Text Reader

Abstract

The present disclosure provides a path planning method and device. The path planning method includes: after determining the global path according to the starting point and the end point, determining multiple local areas and the local starting point, local end point, and local scene of each local area; establishing an unconstrained optimization proposition corresponding to the local area according to the local starting point, the local end point, and the local scene, generating multiple local paths as the initial solution of the optimization proposition, the optimization proposition includes trajectory curvature and multiple penalty functions. Under each initial solution, the weights of multiple penalty functions are set to be the same, and the solution of the optimization proposition is calculated. When the solution does not meet the preset termination condition, the weights of the multiple penalty functions are adjusted and the solution is used as the initial solution to continue the calculation until the optimal solution that meets the preset termination condition is output. Multiple local paths are generated according to the optimal solution corresponding to each initial solution, and the optimal path of the local area is determined in the multiple local paths. The path planning method provided by the present disclosure can reduce the risk of robot collision.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] Local trajectory planning generally refers to the generation of time-space related driving paths or control instructions based on the given global planning rough guideline. The Timed Elastic Band algorithm (TEB) is a well-known local trajectory planning algorithm in the ROS environment proposed in recent years. It pursues real-time computing and is essentially a nonlinear model predictive control method, which is in stark contrast to the mainstream method based on the internal penalty function optimization algorithm.

[0003] The main disadvantage of TEB is that it adopts the idea of ​​external penalty function to construct its core optimization problem, which leads to the fact that the feasibility of the solution cannot be fundamentally guaranteed. This is also the reason why most classical methods that draw on the idea of ​​internal penalty function dare not and are unwilling to adopt the idea of ​​external penalty function. This disadvantage leads to the inherent hidden dangers of the solution quality of TEB algorithm, such as the lack of kinematic feasibility and collision avoidance ability, which can easily lead to many strange phenomena such as passing through walls during driving.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0005] The purpose of the present disclosure is to provide a path planning method and a path planning device, which are used to overcome one or more problems caused by limitations and defects of related technologies at least to a certain extent.

[0006] According to a first aspect of an embodiment of the present disclosure, a path planning method is provided, comprising: after determining a global path according to a starting point and an end point, determining a plurality of local areas and a local starting point, a local end point, and a local scene of each of the local areas; establishing an unconstrained optimization proposition corresponding to the local area according to the local starting point, the local end point, and the local scene, generating a plurality of local paths as initial solutions to the optimization proposition, wherein the optimization proposition comprises trajectory curvature and a plurality of penalty functions; under each of the initial solutions, setting the weights of the plurality of penalty functions to be the same, and calculating a solution to the optimization proposition; when the solution does not meet a preset termination condition, adjusting the weights of the plurality of penalty functions and continuing to calculate with the solution as the initial solution until an optimal solution that meets the preset termination condition is output; generating a plurality of local paths according to the optimal solution corresponding to each of the initial solutions, and determining the optimal path of the local area among the plurality of local paths; in an exemplary embodiment of the present disclosure, the preset termination condition comprises:

[0007] The optimal solution satisfies the constraints of all the multiple penalty functions;

[0008] The solution time reaches a first preset threshold;

[0009] Among the weights of the plurality of penalty functions, a difference between a maximum value and a minimum value reaches a second preset threshold.

[0010] In an exemplary embodiment of the present disclosure, adjusting the weights of the plurality of penalty functions and continuing the calculation with the current optimal solution as the initial solution comprises:

[0011] Determining a triggering penalty function according to the constraint condition of the penalty function violated by the optimal solution;

[0012] The weight of the trigger penalty function is updated to α times its current weight, where α is a preset value;

[0013] The optimization problem is solved again using the optimal solution as the initial solution.

[0014] In an exemplary embodiment of the present disclosure, adjusting the weights of the plurality of penalty functions and continuing to calculate the optimal solution using the optimal solution as the initial solution comprises solving the optimization problem using a g2o algorithm.

[0015] In an exemplary embodiment of the present disclosure, setting the weights of the multiple penalty functions to be the same includes:

[0016] The weights of the multiple penalty functions are all set to 1.

[0017] In an exemplary embodiment of the present disclosure, the plurality of penalty functions include:

[0018] Penalty function for violating kinematic equation constraints;

[0019] Penalty functions for violating mechanical / physical constraints;

[0020] Penalty function for violating initial and final state configuration constraints;

[0021] Penalty function for violating the collision avoidance constraint.

[0022] 11. In an exemplary embodiment of the present disclosure, the optimal solution is a solution that minimizes the value of the optimization proposition, and the optimization proposition includes:

[0023] Curvature of trajectory +λ1||Penalty function for violating kinematic equation constraints|| 2 +λ2||Penalty function for violating mechanical / physical constraints|| 2 +λ3||Penalty function for violating the initial and final state configuration restrictions|| 2 +λ4||Penalty function for violating collision avoidance constraints|| 2 .

[0024] According to a second aspect of an embodiment of the present disclosure, a path planning device is provided, including:

[0025] A local segmentation module is configured to determine a global path according to a starting point and an end point, and then determine multiple local areas and a local starting point, a local end point, and a local scene proposition construction module for each local area, and is configured to establish an unconstrained optimization proposition corresponding to the local area according to the local starting point, the local end point, and the local scene, and generate multiple local paths as initial solutions to the optimization proposition, wherein the optimization proposition includes trajectory curvature and multiple penalty functions.

[0026] A preliminary solution module is configured to set the weights of the plurality of penalty functions to be the same under each of the initial solutions and calculate the solution of the optimization problem.

[0027] A weight adjustment module is configured to adjust the weights of the plurality of penalty functions and continue to calculate with the solution as the initial solution when the solution does not meet the preset termination condition, until an optimal solution that meets the preset termination condition is output.

[0028] A path integration module is configured to generate multiple local paths according to the optimal solution corresponding to each of the initial solutions, and determine the optimal path of the local area from the multiple local paths.

[0029] According to a third aspect of the present disclosure, a path planning device is provided, comprising: a memory; and a processor coupled to the memory, wherein the processor is configured to execute any one of the methods described above based on instructions stored in the memory.

[0030] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a program is stored, and when the program is executed by a processor, the path planning method as described in any one of the above items is implemented.

[0031] The path planning method provided in the embodiment of the present disclosure can reduce the triggering of each penalty function by adaptively adjusting the weight of each penalty function during local path planning, output a motion trajectory that is feasible in the kinematic sense and has no collision risk, overcome the problem that the collision avoidance ability common in the TEB algorithm cannot be guaranteed, and provide better path planning for application scenarios such as robot walking.

[0032] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0034] Figure 1 The flowchart of the path planning method in the exemplary embodiment of the present disclosure is schematically shown.

[0035] Figure 2 The sub-flowchart of step S108 in the exemplary embodiment of the present disclosure is schematically shown.

[0036] Figure 3 The overall flow chart of the path planning method in one embodiment of the present disclosure is schematically shown.

[0037] Figure 4 Schematically shown Figure 3 A sub-flow chart of step S407 in the illustrated embodiment.

[0038] Figure 5 A block diagram of a path planning device in an exemplary embodiment of the present disclosure is schematically shown.

[0039] Figure 6 A block diagram schematically shows an electronic device in an exemplary embodiment of the present disclosure.

[0040] Figure 7 The diagram schematically shows a computer-readable storage medium in an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0041] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.

[0042] In addition, the accompanying drawings are only schematic diagrams of the present disclosure, and the same reference numerals in the drawings represent the same or similar parts, so their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities, which do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0043] The exemplary embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.

[0044] Figure 1 The flowchart of the path planning method in the exemplary embodiment of the present disclosure is schematically shown. Figure 1 , the path planning method 100 may include:

[0045] Step S102, after determining the global path according to the starting point and the end point, determine a plurality of local areas and a local starting point, a local end point, and a local scene of each of the local areas;

[0046] Step S104, establishing an unconstrained optimization proposition corresponding to the local area according to the local starting point, the local end point, and the local scene, and generating multiple local paths as initial solutions to the optimization proposition, wherein the optimization proposition includes trajectory curvature and multiple penalty functions;

[0047] Step S106, under each of the initial solutions, setting the weights of the multiple penalty functions to be the same, and calculating a solution to the optimization problem;

[0048] Step S108, when the solution does not meet the preset termination condition, the weights of the plurality of penalty functions are adjusted and the calculation is continued with the solution as the initial solution until an optimal solution that meets the preset termination condition is output;

[0049] Step S110 , generating a plurality of local paths according to the optimal solution corresponding to each of the initial solutions, and determining an optimal path of the local area among the plurality of local paths.

[0050] The path planning method provided in the embodiment of the present disclosure can reduce the triggering of each penalty function by adaptively adjusting the weight of each penalty function during local path planning, output a motion trajectory that is feasible in the kinematic sense and has no collision risk, overcome the problem that the collision avoidance ability common in the TEB algorithm cannot be guaranteed, and provide better path planning for application scenarios such as robot walking.

[0051] Next, each step of the path planning method 100 is described in detail.

[0052] In step S102, after the global path is determined according to the starting point and the end point, a plurality of local areas and a local starting point, a local end point, and a local scene of each local area are determined.

[0053] In each local area, the local starting point and local end point are determined by the global path, and the information of the local scene includes obstacle coordinates, obstacle shape and range, etc.

[0054] The starting point and the end point of the global path may be given by the path planning task, or may be extracted automatically according to the path planning task, and the present disclosure does not make any special limitation on this.

[0055] In step S104, an unconstrained optimization proposition corresponding to the local area is established according to the local starting point, the local end point, and the local scene, and multiple local paths are generated as initial solutions to the optimization proposition, wherein the optimization proposition includes trajectory curvature and multiple penalty functions.

[0056] In the disclosed embodiment, the TEB algorithm framework is used to construct the optimization proposition. In the TEB algorithm framework, the minimization target is the trajectory curvature of the local path, and the constraints include vehicle kinematic equation constraints, vehicle mechanical and physical constraints, vehicle starting point state configuration constraints, and collision avoidance constraints. Thus, the optimization proposition F is constructed as:

[0057] F = trajectory curvature + λ1||Penalty function for violating kinematic equation constraints|| 2 +λ2||Penalty function for violating mechanical / physical constraints|| 2 +λ3||Penalty function for violating the initial and final state configuration restrictions|| 2 +λ4||Penalty function for violating collision avoidance constraints|| 2 ……(1)

[0058] The solution that minimizes the value of F is the optimal solution to the optimization problem, and the equation has no constraints. In formula (1), λ1,λ2,λ3,λ4>0 are the weights of the external penalty function. When solving this unconstrained optimization problem, the value of each weight is the key link that affects the quality of the entire calculation. However, the author of the TEB method did not provide a generalized method for determining the weights, nor did he give the key guiding ideology for weight setting, which led to many strange phenomena such as vehicles passing through walls during driving.

[0059] In step S106, under each of the initial solutions, the weights of the multiple penalty functions are set to be the same, and a solution to the optimization problem is calculated.

[0060] In the disclosed embodiment, the initial values ​​of the plurality of penalty functions may be set to be 1, that is, λ1=λ2=λ3=λ4=1, and then the g2o algorithm is called to solve the optimization problem to obtain a solution.

[0061] In step S108, when the solution does not satisfy the preset termination condition, the weights of the plurality of penalty functions are adjusted and the calculation is continued with the solution as the initial solution until an optimal solution satisfying the preset termination condition is output.

[0062] In the disclosed embodiment, the preset termination conditions include but are not limited to: (1) the solution satisfies the constraints of all the multiple penalty functions; (2) the solution time reaches a first preset threshold; (3) the difference between the maximum and minimum values ​​in the weights of the multiple penalty functions reaches a second preset threshold. As long as the solution process and result of a solution can meet any of the above preset termination conditions, the solution can be output as an optimal solution for the local area.

[0063] The preset termination condition (2) refers to the CPU time consumed by the solution reaching the maximum allowed duration, which can be set by a person skilled in the art according to actual conditions, i.e., the first preset threshold. The preset termination condition (3) refers to the difference between any two of the weight values ​​λ1 to λ4 being less than the second preset threshold, which can be set to a sufficiently large positive number.

[0064] Figure 2 It is a flowchart of adjusting the weight of the penalty function in the embodiment of the present disclosure.

[0065] refer to Figure 2 , step S108 may include:

[0066] Step S1081, determining a triggering penalty function according to the constraint condition of the penalty function violated by the optimal solution;

[0067] Step S1082, updating the weight of the triggering penalty function to α times its current weight, where α is a preset value;

[0068] Step S1083, solving the optimization problem again using the optimal solution as the initial solution.

[0069] Specifically, first, we can verify whether the solution violates the kinematic equation constraints, mechanical physics constraints, initial and final state constraints, and collision avoidance constraints. If none of them are violated, the solution is directly output as the optimal solution. If some of the constraints are violated, the weights of the penalty functions corresponding to these violated factors are updated to α times the current value. Taking λ1 as an example, it should be updated to λ1·α. After the update, the solution is used as the initial solution, and the G2O algorithm is re-called to solve the optimization proposition to obtain the next solution. The above process is repeated until at least one of the above preset termination conditions is met.

[0070] The optimal solution obtained in this way can provide a path that is as safe and feasible as possible and avoid collisions.

[0071] In step S110, a plurality of local paths are generated according to the optimal solution corresponding to each of the initial solutions, and an optimal path of the local area is determined among the plurality of local paths.

[0072] After obtaining the optimal solution, the accuracy of the optimal solution corresponding to each initial solution can be iteratively adjusted to finally obtain a series of candidate motion trajectories. After verifying the feasibility of each selected motion trajectory, the motion trajectory that can optimize the performance index is selected from the feasible candidate motion trajectories, which is converted into a timing signal of the corresponding control variable, and finally a control signal within a sampling period is output to the underlying controller as a control signal for controlling the walking of an automatic walking device (such as a robot, an unmanned vehicle), providing a safe and reliable walking path for the automatic walking device.

[0073] Figure 3 Figure 4 It is a schematic diagram of the entire path planning process in the embodiment of the present disclosure.

[0074] refer to Figure 3 , the path planning process 400 may include:

[0075] Step S401, using globa_planner to generate a global path (from the current position to the global focus);

[0076] Step S402, determining a local end point according to the global path;

[0077] Step S403, updating the local scene (obstacle location information, etc.);

[0078] Step S404, establishing an unconstrained quadratic optimization proposition from the current position to the local end point;

[0079] Step S405, generating N local paths with non-homotopic properties;

[0080] Step S406, converting the N local paths into N local trajectories;

[0081] Step S407, using the N local trajectories as initial solutions respectively, and using the g2o algorithm to solve the optimization problem in parallel;

[0082] Step S408, iteratively adjusting the accuracy of the optimization result, and finally obtaining a series of candidate trajectories;

[0083] Step S409, checking the feasibility of each candidate motion trajectory, selecting the trajectory with the best performance index from the feasible candidate trajectories, and converting it into a corresponding control variable time series signal;

[0084] Step S410: output a control signal within a sampling period to the bottom-level controller.

[0085] In step S405, the H index may be introduced based on the Voronoi diagram or PRM to determine whether the homotopy exists.

[0086] refer to Figure 4 , step S407 includes:

[0087] Step S4071, setting the weight of each external penalty function in the optimization proposition to 1;

[0088] Step S4072, using the N local trajectories as initial solutions respectively, and using the g2o algorithm to solve the optimization problem in parallel;

[0089] Step S4073, determine whether the solution violates the constraint condition, if yes, proceed to step S4074, otherwise proceed to step S4076;

[0090] Step S4074, determine whether the termination criterion is triggered, if yes, proceed to step S4076, otherwise, proceed to step S4075;

[0091] Step S4075, adjusting the weight of the external penalty function corresponding to the unsatisfied constraint to α times the current value, and returning to step S4072;

[0092] Step S4076, output the path obtained by the most recent solution.

[0093] Among them, the termination criteria include that the CPU time consumed by the solution reaches the maximum allowed duration, the optimization result obtained by the most recent solution satisfies all constraints, and the maximum weight among the current external penalty function weights is greater than the minimum weight by more than a preset threshold (a sufficiently large positive number).

[0094] Corresponding to the above method embodiments, the present disclosure also provides a path planning device, which can be used to execute the above method embodiments.

[0095] Figure 5 A block diagram of a path planning device in an exemplary embodiment of the present disclosure is schematically shown.

[0096] refer to Figure 5 , the path planning device 500 may include:

[0097] A local segmentation module 502 is configured to determine a plurality of local areas and a local starting point, a local end point, and a local scene of each local area after determining a global path according to a starting point and an end point;

[0098] A proposition building module 504 is configured to establish an unconstrained optimization proposition corresponding to the local area according to the local starting point, the local end point, and the local scene, and generate multiple local paths as initial solutions to the optimization proposition, wherein the optimization proposition includes a trajectory curvature and multiple penalty functions;

[0099] A preliminary solution module 506 is configured to set the weights of the plurality of penalty functions to be the same under each of the initial solutions and calculate a solution to the optimization problem;

[0100] A weight adjustment module 508, configured to adjust the weights of the plurality of penalty functions and continue calculation with the solution as the initial solution when the solution does not meet the preset termination condition, until an optimal solution that meets the preset termination condition is output;

[0101] The path integration module 510 is configured to generate a plurality of local paths according to the optimal solution corresponding to each of the initial solutions, and determine the optimal path of the local area among the plurality of local paths.

[0102] Since the functions of the device 500 have been described in detail in the corresponding method embodiments, the present disclosure will not elaborate on them here.

[0103] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0104] In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.

[0105] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as a system, method or program product. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as a "circuit", "module" or "system".

[0106] Refer to the following Figure 6 The electronic device 600 according to this embodiment of the present invention is described. Figure 6 The electronic device 600 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0107] like Figure 6As shown, the electronic device 600 is in the form of a general computing device. The components of the electronic device 600 may include but are not limited to: at least one processing unit 610, at least one storage unit 620, and a bus 630 connecting different system components (including the storage unit 620 and the processing unit 610).

[0108] The storage unit stores program codes, which can be executed by the processing unit 610, so that the processing unit 610 performs the steps according to various exemplary embodiments of the present invention described in the above “Exemplary Method” section of this specification. For example, the processing unit 610 can perform the following steps: Figure 1 Step S102 shown in: after determining the global path according to the starting point and the end point, determine multiple local areas and the local starting point, local end point, and local scene of each local area; Step S104: establish an unconstrained optimization proposition corresponding to the local area according to the local starting point, the local end point, and the local scene, and generate multiple local paths as initial solutions to the optimization proposition, and the optimization proposition includes trajectory curvature and multiple penalty functions; Step S106: under each of the initial solutions, set the weights of the multiple penalty functions to be the same, and calculate the solution of the optimization proposition; Step S108: when the solution does not meet the preset termination condition, adjust the weights of the multiple penalty functions and continue the calculation with the solution as the initial solution until the optimal solution that meets the preset termination condition is output.

[0109] The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 6201 and / or a cache memory unit 6202 , and may further include a read-only memory unit (ROM) 6203 .

[0110] The storage unit 620 may also include a program / utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0111] Bus 630 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0112] The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 600, and / or communicate with any device that enables the electronic device 600 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 650. Furthermore, the electronic device 600 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 660. As shown, the network adapter 660 communicates with other modules of the electronic device 600 via a bus 630. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0113] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0114] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of the present specification.

[0115] refer to Figure 7 As shown, a program product 800 for implementing the above method according to an embodiment of the present invention is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.

[0116] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0117] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0118] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0119] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0120] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to an exemplary embodiment of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0121] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are to be considered exemplary only, and the true scope and concept of the present disclosure are indicated by the claims.

Claims

1. A path planning method, characterized in that: include: After determining the global path according to the starting point and the end point, determining a plurality of local areas and a local starting point, a local end point, and a local scene of each of the local areas; Establishing an unconstrained optimization proposition corresponding to the local area according to the local starting point, the local end point, and the local scene, and generating multiple local paths as initial solutions to the optimization proposition, wherein the optimization proposition includes a weighted sum of a trajectory curvature and multiple penalty function norms; Under each of the initial solutions, the weights of the multiple penalty functions are set to be the same, and a solution to the optimization problem is calculated; When the solution does not satisfy the preset termination condition, adjusting the weights of the multiple penalty functions and continuing the calculation with the solution as the initial solution until an optimal solution satisfying the preset termination condition is output; Generate a plurality of local paths according to the optimal solution corresponding to each of the initial solutions, and determine the optimal path of the local area among the plurality of local paths; The preset termination conditions include: the optimal solution satisfies all the constraints of the multiple penalty functions; the solution time reaches a first preset threshold; the difference between the maximum and minimum values ​​of the weights of the multiple penalty functions reaches a second preset threshold; The step of adjusting the weights of the multiple penalty functions and continuing the calculation with the solution as the initial solution includes: determining a triggering penalty function according to the constraint of the penalty function violated by the solution; updating the weight of the triggering penalty function to α times its current weight, where α is a preset value; and solving the optimization problem again with the solution as the initial solution.

2. The path planning method according to claim 1, characterized in that: After adjusting the weights of the multiple penalty functions, continuing to calculate the optimal solution using the optimal solution as the initial solution includes using the g2o algorithm to solve the optimization proposition.

3. The path planning method according to claim 1, characterized in that: The setting the weights of the plurality of penalty functions to be the same comprises: The weights of the multiple penalty functions are all set to 1.

4. The path planning method according to claim 1, characterized in that: The plurality of penalty functions include: Penalty function for violating kinematic equation constraints; Penalty functions for violating mechanical / physical constraints; Penalty function for violating initial and final state configuration constraints; Penalty function for violating the collision avoidance constraint.

5. The path planning method according to claim 4, characterized in that: The optimal solution is a solution that minimizes the value of the optimization proposition, and the optimization proposition includes: Curvature of trajectory +λ1||Penalty function for violating kinematic equation constraints|| 2 +λ2||Penalty function for violating mechanical / physical constraints|| 2 +λ3||Penalty function for violating the initial and final state configuration restrictions|| 2 +λ4||Penalty function for violating collision avoidance constraints|| 2 .

6. A path planning device, characterized in that: include: A local segmentation module, configured to determine a plurality of local areas and a local starting point, a local end point, and a local scene of each local area after determining a global path according to a starting point and an end point; a proposition building module, configured to establish an unconstrained optimization proposition corresponding to the local area according to the local starting point, the local end point, and the local scene, and generate multiple local paths as initial solutions to the optimization proposition, wherein the optimization proposition includes trajectory curvature and multiple penalty functions; A preliminary solution module is configured to set the weights of the plurality of penalty functions to be the same under each of the initial solutions and calculate a solution to the optimization problem; A weight adjustment module, configured to adjust the weights of the plurality of penalty functions and continue calculation with the solution as the initial solution when the solution does not meet the preset termination condition, until an optimal solution that meets the preset termination condition is output; A path integration module, configured to generate a plurality of local paths according to the optimal solution corresponding to each of the initial solutions, and determine the optimal path of the local area among the plurality of local paths; The preset termination conditions include: the optimal solution satisfies all the constraints of the multiple penalty functions; the solution time reaches a first preset threshold; the difference between the maximum and minimum values ​​of the weights of the multiple penalty functions reaches a second preset threshold; The weight adjustment module is set to: Determining a trigger penalty function according to the constraint condition of the penalty function violated by the solution; The weight of the trigger penalty function is updated to α times its current weight, where α is a preset value; The optimization problem is solved again using the solution as the initial solution.

7. An electronic device, characterized in that: include: Memory; as well as A processor coupled to the memory, wherein the processor is configured to execute the path planning method according to any one of claims 1 to 5 based on instructions stored in the memory.

8. A computer-readable storage medium having a program stored thereon, wherein when the program is executed by a processor, the path planning method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Multi-target optimization method for dispatching of automatic stereoscopic warehouse with limitation on storage time

    CN103049800A

  • Method for optimizing multi-objective coordination problem in progressive combination manner

    CN104598754A

  • Multi-target particle swarm-based power outage management optimization method

    CN105740977A

  • Method and system for solving integer programming and discrete optimization problems using analog processors

    US20080065573A1