Path planning method and device, chip system, computer system and mobile tool

By constructing and selecting a state transfer path that conforms to the dynamics model, the problem in the existing technology that the driving path conversion does not conform to the dynamics model is solved, and the effectiveness of path planning is improved.

CN112824838BActive Publication Date: 2024-10-01BEIJING TUSEN ZHITU TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201911145865.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-11-21
Publication Date
2024-10-01
Estimated Expiration
2039-11-21

AI Technical Summary

Technical Problem

Existing path planning methods do not comply with the dynamics model when the vehicle travel path is converted, resulting in invalid travel paths.

Method used

Multiple state transition paths are constructed, and the target state transition path that conforms to the dynamics model is selected as the driving path to ensure that the vehicle can drive safely.

Benefits of technology

The effectiveness of the driving path is improved, allowing the vehicle to drive safely according to the planned path and in line with the dynamics model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112824838B_ABST
    Figure CN112824838B_ABST
Patent Text Reader

Abstract

The present invention discloses a path planning method and device, a chip system, a computer system and a mobile tool to improve the effectiveness of path planning. The path planning method includes: constructing multiple state transition paths according to the current driving state of the mobile tool; wherein each state transition path includes multiple driving state nodes and the starting driving state node is the current driving state of the mobile tool; selecting a target state transition path from the multiple state transition paths; and determining the waypoint sequence corresponding to the target state transition path as the driving path of the mobile tool.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence, and in particular to a path planning method, a path planning device, a computer-readable storage medium, a computer program product containing instructions, a chip system, a circuit system, a computer system and a mobile tool. Background Art

[0002] To ensure that autonomous vehicles can drive autonomously, the environmental perception system, path planning system (i.e., behavior decision system) and driving control system are three essential subsystems.

[0003] Path planning is the basis of navigation and control of autonomous vehicles, and can be divided into local path planning and global path planning. Global path planning is to plan a navigation route from the starting point to the target point based on global map data. This navigation route is only a rough route from the starting point to the target point. If you need to ensure that the vehicle drives safely on this navigation route, you also need to perform local path planning on the autonomous vehicle to obtain the local driving path of the autonomous vehicle, and plan a collision-free and safe driving path based on the local environmental information and the vehicle's own status information.

[0004] At present, the local path planning methods mainly include spatial search method, hierarchical method, action behavior method, potential field method, grid method, fuzzy logic method and neural network method. The planned driving path consists of multiple waypoints, each of which corresponds to a vehicle driving state. However, no matter which path planning method is used, there may be a technical problem that the conversion between the vehicle driving states between the waypoints in the planned driving path does not conform to the vehicle dynamics model, resulting in the vehicle being unable to drive according to the planned driving path, that is, the planned driving path may be invalid. Summary of the invention

[0005] In view of the aforementioned technical problems existing in the existing path planning methods, an embodiment of the present invention provides a new path planning method to improve the effectiveness of path planning of a mobile tool.

[0006] According to a first aspect of an embodiment of the present invention, a path planning method is provided, comprising: constructing a plurality of state transition paths according to a current driving state of a mobile tool; wherein each state transition path comprises a plurality of driving state nodes and a starting driving state node is the current driving state of the mobile tool; selecting a target state transition path from the plurality of state transition paths; and determining a waypoint sequence corresponding to the target state transition path as the driving path of the mobile tool.

[0007] In terms of some technical effects, the path planning method provided by the embodiment of the present invention does not directly perform path search to obtain the driving path like the prior art, but first constructs multiple state transition paths according to the current driving state of the mobile tool, then selects a target state transition path, and finally determines the waypoint sequence corresponding to the target state transition path as the driving path of the mobile tool. Since the state transition path represents the state transition relationship of the mobile tool from one driving state to another, that is, each adjacent driving state node on the planned state transition path is transferable, which conforms to the dynamic model of the mobile tool, therefore, the mobile tool travels along the driving path corresponding to the target state transition path in accordance with the dynamic model, can truly travel along the driving path, and the effectiveness of the driving path is high.

[0008] According to a second aspect of an embodiment of the present invention, a path planning device is provided, comprising:

[0009] A construction unit, used to construct a plurality of state transition paths according to the current driving state of the mobile tool; wherein each state transition path comprises a plurality of driving state nodes and the starting driving state node is the current driving state of the mobile tool;

[0010] A selection unit, configured to select a target state transition path from the plurality of state transition paths;

[0011] A determination unit is used to determine the waypoint sequence corresponding to the target state transition path as the driving path of the mobile tool.

[0012] According to a third aspect of an embodiment of the present invention, a path planning device is provided, comprising: a processor, configured to construct a plurality of state transition paths according to a current driving state of a mobile tool; wherein each state transition path comprises a plurality of driving state nodes and a starting driving state node is the current driving state of the mobile tool; a target state transition path is selected from the plurality of state transition paths; waypoints corresponding to each driving state node of the target state transition path are determined to obtain a waypoint sequence, and the waypoint sequence is determined as the driving path of the mobile tool.

[0013] According to a fourth aspect of an embodiment of the present invention, a computer-readable storage medium is provided, comprising a program or an instruction. When the program or the instruction is executed on a computer, the path planning method provided in the first aspect is implemented.

[0014] According to a fifth aspect of an embodiment of the present invention, there is provided a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the path planning method provided in the first aspect.

[0015] According to a sixth aspect of an embodiment of the present invention, a chip system is provided, including a processor, wherein the processor is coupled to a memory, wherein the memory stores program instructions, and when the program instructions stored in the memory are executed by the processor, the path planning method provided in the first aspect is implemented.

[0016] According to a seventh aspect of the embodiments of the present invention, a circuit system is provided, the circuit system comprising a processing circuit, and the processing circuit is configured to execute the path planning method provided in the first aspect.

[0017] In an eighth aspect of an embodiment of the present invention, a computer system is provided, comprising a memory, and one or more processors communicatively connected to the memory; the memory stores instructions executable by the one or more processors, and the instructions are executed by the one or more processors so that the one or more processors implement the path planning method provided in the first aspect.

[0018] According to a ninth aspect of an embodiment of the present invention, a mobile tool is provided, comprising a memory, and one or more processors communicatively connected to the memory; the memory stores instructions executable by the one or more processors, and the instructions are executed by the one or more processors so that the one or more processors implement the path planning method provided in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention.

[0020] Figure 1 is a flow chart of a path planning method in an embodiment of the present invention;

[0021] Figure 2 This is one of the flow charts of the method for constructing a state transition path in an embodiment of the present invention;

[0022] Figure 3 One of the flow charts of the method for determining the state transition space of the current driving state node in an embodiment of the present invention;

[0023] Figure 4 One of the schematic diagrams of constructing a state transition path in an embodiment of the present invention;

[0024] Figure 5 This is a second flow chart of a method for determining a state transition space of a current driving state node in an embodiment of the present invention;

[0025] Figure 6 The second schematic diagram of constructing a state transition path in an embodiment of the present invention;

[0026] Figure 7 A schematic diagram of a state transition library preset in an embodiment of the present invention;

[0027] Figure 8 A flow chart of a method for constructing a state transfer library in an embodiment of the present invention;

[0028] Figures 9A to 9C A schematic diagram of constructing a state transfer library in an embodiment of the present invention;

[0029] Fig.10 One of the schematic diagrams of sampling a driving trajectory to obtain a sampling result in an embodiment of the present invention;

[0030] Fig.11 This is a second schematic diagram of sampling a driving trajectory to obtain a sampling result in an embodiment of the present invention;

[0031] Fig.12 The third schematic diagram of sampling the driving trajectory to obtain the sampling result in the embodiment of the present invention;

[0032] Fig.13 This is a second flow chart of a method for constructing a state transition path in an embodiment of the present invention;

[0033] Fig.14 This is a third flow chart of a method for constructing a state transition path in an embodiment of the present invention;

[0034] Figures 15A to 15C One of the schematic diagrams of modifying the node value and the number of times selected of the driving state node in an embodiment of the present invention;

[0035] Fig.16 This is a fourth flow chart of a method for constructing a state transition path in an embodiment of the present invention;

[0036] Figures 17A to 17C The second schematic diagram of modifying the node value and the number of times selected of the driving state node in the embodiment of the present invention;

[0037] Fig.18A A flow chart of a method for determining whether a driving state node has a collision risk in an embodiment of the present invention;

[0038] Fig.18B A flow chart of a method for determining whether a state transition path has a collision risk in an embodiment of the present invention;

[0039] Fig.19 Schematic diagram of mobile tools in different postures in a mobile tool occupation template in an embodiment of the present invention;

[0040] Fig. 20A Schematic diagram of the constructed occupancy grid map;

[0041] Fig. 20B A schematic diagram of the template occupied by the mobile tool;

[0042] Fig. 20C is a schematic diagram of a second grid area occupied by a mobile tool in an occupied grid map;

[0043] Fig.21A , Fig.21B , Fig. 21C A schematic diagram showing the template occupied by a target moving tool and the values ​​of each grid in the grid map in an example;

[0044] Fig.22A , 22B 22C is a schematic diagram of an example in which a target moving tool occupies a template, takes values ​​of each grid in an occupied grid map, and the moving tool occupies a second grid area in the occupied grid map;

[0045] Fig.23A , 23B 23C is a schematic diagram of an example in which a target moving tool occupies a template, values ​​of each grid in an occupied grid map, and a second grid area of ​​the moving tool in the occupied grid map;

[0046] Fig.24 A schematic diagram of the structure of a path planning device in an embodiment of the present invention;

[0047] Fig.25 A schematic diagram of a mobile tool system according to an embodiment of the present invention;

[0048] Fig.26 This is one of the structural diagrams of the computer system in the mobile tool system in the embodiment of the present invention;

[0049] Fig. 27 This is a second structural diagram of a computer system in a mobile tool system according to an embodiment of the present invention;

[0050] Fig.28 The third structural diagram of the computer system in the mobile tool system in the embodiment of the present invention;

[0051] Fig.29 A schematic diagram of a computer program product provided by an embodiment of the present invention;

[0052] Fig.30 A schematic diagram of the structure of a state transition library construction device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0053] The terms "first" and "second" in the specification and drawings of the present application are used to distinguish different objects, or to distinguish different treatments of the same object, rather than to describe the specific order of objects. In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes other steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to represent examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way. In the embodiments of the present application, "A and / or B" means A and B, A or B. “A, and / or B, and / or C” means any one of A, B, and C, or any two of A, B, and C, or A, B, and C.

[0054] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0055] The path planning method provided in the embodiment of the present invention can be applied to a mobile tool with a driving function, or applied to other devices (such as a cloud server, such as a server on a mobile tool) with a function of controlling the driving of the mobile tool. The mobile tool can implement the path planning method provided in the embodiment of the present application through the components (including hardware and software) it contains. Alternatively, other devices (such as a cloud server, such as a server on a mobile tool) are used to implement the path planning method provided in the embodiment of the present application, and send the obtained driving path to the mobile tool.

[0056] In an embodiment of the present invention, the mobile tool can be any movable tool, such as a vehicle (such as a passenger car, a bus, a coach, a van, a truck, a truck, a trailer, a tractor-trailer, a crane, an excavator, a bulldozer, a road train, a sweeper, a sprinkler truck, a garbage truck, an engineering vehicle, a rescue vehicle, a logistics vehicle, an AGV (Automated Guided Vehicle), etc.), a motorcycle, a bicycle, a tricycle, a trolley, a tire crane, an overhead crane, a quay crane, a robot, a sweeper, a balance vehicle, an aircraft, a ship, a submarine, a train, etc. The present application does not strictly limit the type of mobile tools and will not list them all here.

[0057] Embodiment 1

[0058] See also Figure 1 , is a flow chart of a path planning method provided in Embodiment 1 of the present invention, the method comprising steps 101 to 103, wherein:

[0059] Step 101: construct multiple state transition paths according to the current driving state of the mobile tool; wherein each state transition path includes multiple driving state nodes and the starting driving state node is the current driving state of the mobile tool.

[0060] In the embodiment of the present invention, the state transition path represents the change and transition of the driving state of the mobile tool, that is, the mobile tool takes the current driving state as the starting point and transfers from the previous driving state node of the state transition path to the next driving state node along the state transition path.

[0061] Step 102: Select a target state transition path from the multiple state transition paths.

[0062] Step 103: Determine the waypoint sequence corresponding to the target state transition path as the driving path of the mobile tool.

[0063] In some optional embodiments, the specific implementation of the above step 101 can be found in Figure 2 The method flow shown in the figure, in which each state transition path is constructed according to the following steps 1 to 4, until the process is terminated when the termination condition is met. In some optional examples, the termination condition may be that the number of constructed state transition paths reaches a preset number; in other optional instances, the termination condition may be that the execution time of step 101 reaches a preset time. Those skilled in the art can flexibly set the termination condition according to actual conditions, and this application does not strictly limit it.

[0064] Step 1: taking the current driving state of the mobile tool as the starting driving state node, and taking the starting driving state node as the current driving state node;

[0065] Step 2: determine the state transfer space of the current driving state node, and search for the next driving state node of the current driving state node in the state transfer space of the current driving state node;

[0066] Step 3: taking the next driving state node obtained in step 2 as the current driving state node, and repeating step 2; until a preset number (the value of the preset number can be flexibly set by those skilled in the art according to actual conditions, and is not strictly limited in this application) of multiple driving state nodes are generated;

[0067] Step 4: Construct a state transfer path according to the sequence of multiple driving state nodes.

[0068] In some optional embodiments, in order to improve the efficiency of state transition path construction and narrow the search range of the state transition space of the driving state node, the state transition space of the current driving state node determined in the aforementioned step 2 can be obtained by Figure 3 The method flow shown results in:

[0069] Step 2A, taking the current driving state node as the target driving state node;

[0070] Step 2B, determining the state transition space corresponding to the target driving state node;

[0071] Step 2C: determine the state transition space corresponding to the target driving state node as the state transition space of the current driving state node.

[0072] Based on the above Figure 3 The method for determining the state transition space of the current driving state node shown in FIG. Figure 2 The method shown in the figure constructs a state transition path, which can be Figure 4 shown. Figure 4This is just an exemplary description. Assume that a state transition path contains 4 driving state nodes, and the starting driving state node of the mobile tool is S1. The starting driving state node S1 of the mobile tool is taken as the current driving state node, and S1 is taken as the target driving state node. The state transition space of S1 is determined to be {a1, a2, a3, a4, a5}, and {a1, a2, a3, a4, a5} is taken as the state transition space of the current driving state node. A4 is selected from the state transition space {a1, a2, a3, a4, a5} as the next driving state node of the current driving state node S1, and a4 is stored; a4 is taken as the current driving state node, and a4 is taken as the target driving state node. The state transition space of a4 is determined to be {a41, a42, a43}, and {a41, a44, a45} is selected from the state transition space {a1, a2, a3, a4, a5} as the next driving state node of the current driving state node S1, and a4 is stored; a4 is taken as the current driving state node, and a4 is taken as the target driving state node. The state transition space of a4 is determined to be {a41, a42, a43}, and {a41, a44, a45} is selected from the state transition space {a1, a2, a3, a4, a5} as the next driving state node of the current driving state node S1, and a4 is stored; 42, a43} as the state transition space of the current driving state node, select a42 from {a41, a42, a43} as the next driving state node of the current driving state node a4, and store a42; take a42 as the current driving state node, and take a42 as the target driving state node, determine the state transition space of a42 {a421, a422, a423}, and take {a421, a422, a423} as the state transition space of the current driving state node, select a421 from {a421, a422, a423} as the next driving state node of the current driving state node a42, and store a421. S1, a4, a42, a421 form a state transition path (such as Figure 4 Medium thick solid line), represented by S1>a4>a42>a421.

[0073] In some optional embodiments, in order to improve the accuracy of state transition path construction and expand the search range of the state transition space of the driving state node, the state transition space of the current driving state node determined in the aforementioned step 2 can be obtained by Figure 5 The method flow shown results in:

[0074] Step 2D: taking all or part of the driving state nodes in the state transfer space of the previous driving state node of the current driving state node as the target driving state node, wherein all or part of the driving state nodes include the current driving state node.

[0075] Of course, if the current driving state node is the starting driving state node, since the starting driving state node does not have a previous driving state node, the current driving state node can be used as the target driving state node.

[0076] Step 2E: Determine the state transition space corresponding to each target driving state node.

[0077] Step 2F: determine the union of the state transition spaces corresponding to the target driving state nodes as the state transition space of the current driving state node.

[0078] Based on the above Figure 5 The method for determining the state transition space of the current driving state node shown in FIG. Figure 2 The method shown in the figure constructs a state transition path, which can be Figure 6 shown. Figure 6 This is just an exemplary description. It is assumed that a state transfer path includes 4 driving state nodes, and the starting driving state node of the mobile tool is S1. The starting driving state node S1 of the mobile tool is taken as the current driving state node, and S1 is taken as the target driving state node, and the state transition space of S1 is determined to be {a1, a2, a3, a4, a5}, and {a1, a2, a3, a4, a5} is taken as the state transition space of the current driving state node, and a4 is selected from the state transition space {a1, a2, a3, a4, a5} as the next driving state node of the current driving state node S1, and a4 is stored; a4 is taken as the current driving state node, and all the driving state nodes a1, a2, a3, a4 and a5 in the state transition space of the previous driving state node S1 of a4 are taken as the target driving state nodes, and the state transition spaces {a11, a12}, {a21}, {a31, a32}, {a41, a42, a43} and {a51, a52} (such as Figure 6, the state transition space of each target driving state node is represented by a dotted line), and the union of the state transition spaces of a1, a2, a3, a4 and a5 {a11, a12, a21, a31, a32, a41, a42, a43, a51, a52} is used as the state transition space of the current driving state node a4, a42 is selected from {a11, a12, a21, a31, a32, a41, a42, a43, a51, a52} as the next driving state node of the current driving state node a4, and a42 is stored; a42 is used as the current driving state node, and all the driving state nodes a11, a12, a21, a31, a32, a41, a42, a43, a51 and a52 in the state transition space of the previous driving state node a4 of a42 are used as the target driving state node. The state transition spaces of a11, a12, a21, a31, a32, a41, a42, a43, a51 and a52 are determined as the union of {a111}, {}, {a211, a212}, {a311}, {a411, a421, a422, a423, a424}, {}, {a521}. , a411, a421, a422, a423, a424, a521} as the state transition space of the current driving state node a42, select a421 from {a111, a211, a212, a311, a411, a421, a422, a423, a424, a521} as the next driving state node of the current driving state node a42, and store a421. S1, a4, a42, a421 form a state transition path (such as Figure 6 The thick solid line shown is expressed by S1>a4>a42>a421.

[0079] In some optional embodiments, the state transition space corresponding to the target driving state node in the aforementioned step 2B and / or step 2E can be determined by querying the state transition space corresponding to the target driving state node from a preset state transition library. In this embodiment, the state transition space corresponding to each driving state node is pre-set in the state transition library, such as Figure 7 As shown, it is assumed that the state transition library contains n driving state nodes, which are represented by S1, S2, S3..., Sn respectively, the state transition space corresponding to S1 is {S11, S12,..., S1k}, the state transition space corresponding to S2 is {S21, S22,..., S2m},..., the state transition space corresponding to Si is {Si1, Si2,..., Sij},... In the above-mentioned step 2B and / or step 2E, the state transition space corresponding to each target driving state node can be queried from the state transition library.

[0080] In some optional embodiments, the target driving state node is matched with the driving state nodes in the state transfer library. If there is a driving state node consistent with the target driving state node, the state transfer space corresponding to the driving state node is used as the state transfer space corresponding to the target driving state node; if there is no driving state node consistent with the target driving state node in the state transfer library, a driving state node that is relatively similar to the target driving state node is determined from the state transfer library, and the state transfer space of the driving state node is determined as the state transfer space corresponding to the target driving state node. In some optional embodiments, a driving state node that is relatively similar to the target driving state node can be searched from the state transfer library by using algorithms such as kd tree, ball-tree or octree.

[0081] In some optional embodiments, in step 2, a Monte Carlo Tree Search (MCTS) method may be used to search for the next driving state node of the current driving state node in the state transition space of the current driving state node.

[0082] The state transition library may be a pre-set state transition library corresponding to the mobile tool, and the state transition library may be pre-constructed according to the driving trajectory of the mobile tool or other mobile tools of the same type.

[0083] In some optional embodiments, the state transfer library can be pre- Figure 8 The method flow shown is obtained, that is, Figure 8 Flowchart of the method to build the state transfer library:

[0084] Step 201: obtaining multiple driving trajectories corresponding to a mobile tool;

[0085] Step 202: for each driving trajectory, sampling the trajectory points in the driving trajectory to obtain a waypoint sequence corresponding to the driving trajectory;

[0086] Step 203: for each waypoint sequence, sequentially convert the waypoints in the waypoint sequence into corresponding driving state nodes to obtain a state transition sequence corresponding to the waypoint sequence;

[0087] Step 204: according to each state transition sequence, obtain a state transition space corresponding to each driving state node in the state transition sequence;

[0088] Step 205: Determine a state transition library corresponding to the mobile tool according to the state transition space corresponding to each driving state node.

[0089] In some optional embodiments, in the aforementioned step 205, for example, a set of state transition spaces corresponding to each driving state node is determined as a state transition library corresponding to the mobile tool.

[0090] In some optional embodiments, the waypoint includes location information and driving status information of the mobile tool. In step 203, the driving parameters included in the driving status node are selected from the driving status information of the waypoint to obtain the driving status node corresponding to the waypoint.

[0091] like Fig.9A As shown, the driving tracks a, b, c and d corresponding to the mobile tool are obtained, and the driving tracks a, b, c and d corresponding to the mobile tool are obtained. Figure 8 The method flow shown in the figure obtains the state transition sequences corresponding to the driving trajectory a, the driving trajectory b, the driving trajectory c and the driving trajectory d respectively as follows Fig. 9B Based on Fig. 9B The state transition sequence shown is obtained as Fig. 9C The state transfer library shown. Figures 9A to 9C This is merely an exemplary description.

[0092] In some optional embodiments, in the aforementioned step 201, obtaining multiple driving trajectories corresponding to the mobile tool may be obtained by, but not limited to, any one of the following methods 1 to 4:

[0093] Method 1: receiving waypoints including position information and driving status information from the mobile tool or other mobile tools of the same type, and generating a driving trajectory according to the waypoints.

[0094] The position information may include coordinate information and driving direction information of the mobile tool, and the driving status information may include but is not limited to any one or more of the following information of the mobile tool: linear speed, linear acceleration, linear acceleration, steering gear angle, steering wheel angle, steering wheel rotation angular velocity, steering wheel rotation angular acceleration, hanging box angle, etc.

[0095] Method 2: receiving the driving trajectory from the mobile tool or other mobile tools of the same type.

[0096] Method 3: receiving the driving trajectory of the mobile tool or other mobile tools of the same type from a cloud server.

[0097] Method 4: receiving from the simulation system a driving trajectory of the mobile tool or other mobile tools of the same type that are driven in the simulation system.

[0098] In some optional embodiments, in step 202, sampling the trajectory points in the driving trajectory to obtain a road point sequence corresponding to the driving trajectory can be specifically implemented in the following manner: selecting an initial sampling point from the trajectory points of the driving trajectory; taking the initial sampling point as the sampling starting point and a preset time as the sampling period, sampling the driving trajectory for equal time to obtain a sampling point sequence; determining the sampling point sequence as a road point sequence corresponding to the driving trajectory. A skilled person can select an initial sampling point from the driving trajectory according to actual needs. For example, in some optional embodiments, the initial sampling point can be an initial trajectory point in the driving trajectory; in some optional embodiments, the initial sampling point can be a trajectory point in the driving trajectory that is relatively close to the initial trajectory point; this application does not strictly limit how to select the initial sampling point.

[0099] In the embodiment of the present invention, the value of the aforementioned sampling period can be flexibly set by those skilled in the art according to actual conditions, and the present application does not impose strict limitations on the value of the sampling period.

[0100] In some optional embodiments, the sampling period can be set to an integer multiple of the trajectory point generation period in the driving trajectory. Assuming that the initial sampling point is the initial trajectory point, the sampling period is n times the trajectory point generation period in the driving trajectory, and the trajectory point generation period is t, then the sampling period is T=nt. Then, the trajectory points in the driving trajectory are sampled with the initial sampling point as the starting point and T as the sampling period. Each sampling point obtained by this sampling method will coincide with a trajectory point in the driving trajectory. At this time, the parameter value of the sampling point is determined according to the parameter value of the trajectory point that coincides with the sampling point (for example, the parameter value of the coincident trajectory point is directly assigned to the sampling point, or the parameter value of the coincident trajectory point is multiplied by a preset coefficient to obtain the parameter value of the sampling point). Taking the sampling period as 4 times the trajectory point generation period as an example, the sampling results are as follows: Fig.10 As shown, the sampling points C1, C2, C3, and C4 coincide with the trajectory points g0, g4, g8, and g12 in the driving trajectory, respectively.

[0101] In some optional embodiments, the sampling period can be set to not be an integer multiple of the trajectory point generation period in the driving trajectory. The sampling point obtained by this sampling method may coincide with a certain trajectory point in the driving trajectory or may not coincide with any trajectory point in the driving trajectory. If the sampling point coincides with a certain trajectory point, the parameter value of the sampling point is determined according to the parameter value of the trajectory point that coincides with the sampling point (for example, the parameter value of the coincident trajectory point is directly assigned to the sampling point, or the parameter value of the coincident trajectory point is multiplied by a preset coefficient to obtain the parameter value of the sampling point). If the sampling point does not coincide with any trajectory point, the parameter value of the sampling point is determined according to the parameter value of the trajectory point adjacent to the sampling point in the driving trajectory. Determining the parameter value of the sampling point according to the parameter values ​​of the adjacent trajectory points of the sampling point can be obtained according to but not limited to any of the following methods: Method 1, determining the parameter value of the sampling point according to the parameter value of the previous adjacent trajectory point of the sampling point, such as assigning the parameter value of the previous adjacent trajectory point to the sampling point, or multiplying the parameter value of the previous adjacent trajectory point by a preset coefficient to obtain the parameter value of the sampling point; Method 2, determining the parameter value of the sampling point according to the parameter value of the next adjacent trajectory point of the sampling point, such as assigning the parameter value of the next adjacent trajectory point to the sampling point, or multiplying the parameter value of the next adjacent trajectory point by a preset coefficient to obtain the parameter value of the sampling point; Method 3, taking the weighted average of the parameter value of the previous adjacent trajectory point of the sampling point and the parameter value of the next adjacent trajectory point to obtain the parameter value of the sampling point; Method 4, obtaining the parameter value of the sampling point according to the parameter value of the previous adjacent trajectory point and the parameter value of the next adjacent trajectory point through an interpolation algorithm. This application does not strictly limit how to obtain the parameter value of the sampling point according to the parameter values ​​of the adjacent trajectory points of the sampling point. Assuming that the initial sampling point is the initial trajectory point, the sampling period is 3.2 times the trajectory point generation period in the driving trajectory, and the trajectory point generation period is t, then the sampling period is T=3.2t. Then, the trajectory points in the driving trajectory are sampled with the initial sampling point as the sampling starting point and T as the sampling period. The sampling results are as follows: Fig.11 shown.

[0102] In some optional embodiments, sampling the trajectory points in the driving trajectory to obtain a road point sequence corresponding to the driving trajectory specifically includes: selecting an initial sampling point from the trajectory points of the driving trajectory; taking the initial sampling point as the sampling starting point and a preset distance as the step length, sampling the driving trajectory at equal distances to obtain a sampling point sequence; and determining the sampling point sequence as a road point sequence corresponding to the driving trajectory. The sampling point obtained by this sampling method may coincide with a certain trajectory point in the driving trajectory or may not coincide with any trajectory point in the driving trajectory. If the sampling point coincides with a certain trajectory point, the parameter value of the sampling point is determined according to the parameter value of the trajectory point that coincides with the sampling point (for example, the parameter value of the coincident trajectory point is directly assigned to the sampling point, or the parameter value of the coincident trajectory point is multiplied by a preset coefficient to obtain the parameter value of the sampling point). If the sampling point does not coincide with any trajectory point, the parameter value of the sampling point is determined according to the parameter value of the trajectory point adjacent to the sampling point in the driving trajectory. Determining the parameter value of the sampling point according to the parameter values ​​of the adjacent trajectory points of the sampling point can be obtained according to but not limited to any of the following methods: Method 1, determining the parameter value of the sampling point according to the parameter value of the previous adjacent trajectory point of the sampling point, such as assigning the parameter value of the previous adjacent trajectory point to the sampling point, or multiplying the parameter value of the previous adjacent trajectory point by a preset coefficient to obtain the parameter value of the sampling point; Method 2, determining the parameter value of the sampling point according to the parameter value of the next adjacent trajectory point of the sampling point, such as assigning the parameter value of the next adjacent trajectory point to the sampling point, or multiplying the parameter value of the next adjacent trajectory point by a preset coefficient to obtain the parameter value of the sampling point; Method 3, taking the weighted average of the parameter value of the previous adjacent trajectory point of the sampling point and the parameter value of the next adjacent trajectory point to obtain the parameter value of the sampling point; Method 4, obtaining the parameter value of the sampling point according to the parameter value of the previous adjacent trajectory point and the parameter value of the next adjacent trajectory point through an interpolation algorithm. This application does not strictly limit how to obtain the parameter value of the sampling point according to the parameter values ​​of the adjacent trajectory points of the sampling point. Assuming that the initial sampling point is the initial trajectory point and the step length is d, the trajectory points in the driving trajectory are sampled at equal distances with the initial sampling point as the sampling starting point and the step length d. The sampling results are as follows: Fig.12 shown.

[0103] In the above-mentioned embodiment, on the one hand, since a state transition library is pre-set, in the process of constructing a state transition path, the state transition space of each target driving state node can be obtained by directly querying the state transition library, which can improve the speed of determining the state transition space of each driving state node, thereby improving the speed and efficiency of state transition path construction as a whole. On the other hand, since the state transition library is pre-constructed according to the driving trajectory of the mobile tool, it can be ensured that the transfer between the driving state nodes in the state transition library is physically feasible and conforms to the dynamic model of the mobile tool, so it can be ensured that the constructed state transition path is physically feasible, and the mobile tool can transfer from the previous driving state node of the state transition path to the next driving state node along the state transition path while conforming to the dynamic model.

[0104] In some optional embodiments, the state transition space corresponding to the target driving state node determined in the aforementioned step 2B and / or step 2E can be obtained specifically in the following manner: for each target driving state node, the following steps are performed: for each driving parameter of the target driving state node, the target value of the driving parameter is determined, and the current value and the target value of the driving parameter are discretized to obtain a discrete point sequence; the discrete point sequences corresponding to the driving parameters of the target driving state node are combined to obtain a plurality of driving state nodes, and the plurality of driving state nodes constitute the state transition space of the target driving state node. In some optional embodiments, the target value of the driving parameter of the target driving state node can be a preset value, or can be determined based on the environmental information of the current driving of the mobile tool, or can be determined based on the attribute parameters of the mobile tool itself. For example, if the driving parameter is the speed of the mobile tool, the target value corresponding to the speed may be the speed limit of the lane where the mobile tool is currently located; if the driving parameter is the steering wheel angle of the mobile tool, the target value corresponding to the steering wheel angle may be the maximum angle or the minimum angle of the steering wheel angle; if the driving parameter is the hanging box angle of the mobile tool, the target value of the hanging box angle may be the minimum value or the maximum value of the hanging box angle of the mobile tool. Those skilled in the art may flexibly set the target value of each driving parameter according to different driving parameters, and this application does not make strict limitations. Since the variables of the driving parameters of the mobile tool are quantities that can change continuously and there are infinite possible states, each driving parameter may be discretized to obtain a limited number of discrete points through the aforementioned embodiments, so that the state transition space constructed according to the discrete points of each driving parameter of the driving state node is a bounded search space, which can improve the search speed of the state transition space.

[0105] Assume that each driving state node of the mobile tool contains three driving parameters, which are represented by v, θ, It means that the current value of v and the target value are discretized to obtain the first discrete point sequence [v1,v2,…,v m ]; discretize the current value and target value of θ to obtain a second discrete point sequence [θ1, θ2, …, θ n ];Will The current value and target value of are discretized to obtain the third discrete point sequence containing k discrete points The discrete points in the first discrete point sequence, the second discrete point sequence and the third discrete point sequence are combined to obtain m×n×k parameter combinations, each parameter combination represents a driving parameter combination of a driving state node, that is, m×n×k driving state nodes are obtained, and the m×n×k driving state nodes constitute the state transition space of the target driving state node. The aforementioned m, n, and k are all natural numbers preset to be greater than or equal to 1. In some optional embodiments, the values ​​of the N discrete points obtained by discretizing the current value and the target value of the driving parameter are arithmetic difference values.

[0106] In some optional embodiments, after each state transition path is constructed in step 101, a corresponding waypoint sequence is determined according to the state transition path.

[0107] In some optional embodiments, after multiple state transition paths are obtained in step 101, for each state transition path, a corresponding waypoint sequence is determined according to the state transition path; or, after each state transition path is constructed in step 101, a corresponding waypoint sequence is determined according to the state transition path.

[0108] In some optional embodiments, when the target state transition path is determined in step 102, a corresponding waypoint sequence is determined according to the target state transition path.

[0109] In some optional embodiments, the corresponding waypoint sequence may also be determined according to the target state transition path in step 103 .

[0110] In some optional embodiments, the corresponding waypoint sequence is determined according to the state transition path in the aforementioned step 101, step 102 or step 103, which can be implemented in the following manner but not limited to: for the starting driving state node in the state transition path, since the starting driving state node is the current driving state of the mobile tool, the waypoint of the starting driving state node can be directly determined according to the position information and driving state information obtained by the current positioning of the mobile tool; for each driving state node other than the starting driving state node in the state transition path, the waypoint of the driving state node can be calculated according to the waypoint of the previous driving state node of the driving state node and its driving state, and the driving state of the driving state node. For example, the coordinates of the vehicle in a driving state node p2 can be calculated according to the vehicle coordinates in the previous driving state node p, the vehicle orientation and the speed in S1. The vehicle orientation in p2 can be calculated according to the vehicle orientation in p and the steering wheel angles in S1 and S2.

[0111] In some optional embodiments, in the aforementioned Figure 2 The process shown in step 4 may further include step 5, such as Fig.13 As shown, where:

[0112] Step 5: Set a first evaluation value for indicating the quality of the waypoint sequence for the waypoint sequence corresponding to the state transition path constructed in step 4. The first evaluation value can be expressed in terms of a score or a grade, which is not strictly limited in this application.

[0113] In some optional embodiments, taking the first evaluation value as a score as an example, the first evaluation value of the waypoint sequence can be obtained by weighted summing any one or more of the following parameters: parameter 1, the offset distance between the waypoint sequence and the center line of the lane where the mobile tool is located (the offset distance can be, for example, the average distance between each waypoint in the waypoint sequence and the center line, or it can also be the maximum distance between each waypoint in the waypoint sequence and the center line, or it can also be the minimum distance between each waypoint in the waypoint sequence and the longitudinal direction), parameter 2, the similarity between the waypoint sequence and the driving path obtained by the previous plan; parameter 3, the distance that the waypoint sequence extends in the forward direction of the mobile tool relative to the driving path obtained by the previous plan. Those skilled in the art can set the types of the above parameters according to actual needs, and this application does not strictly limit them.

[0114] In some optional embodiments, Fig.13 The process shown in step 5 may further include step 6, such as Fig.14 As shown, where:

[0115] Step 6: modify the node value and the number of times selected of each driving state node in the state transition path according to the first evaluation value corresponding to the waypoint sequence of the state transition path, wherein the node value is used to indicate the quality of the driving state node.

[0116] In the embodiment of the present invention, the node value of the driving state node can be expressed by a score or a level, which is not strictly limited in this application. Taking the node value expressed by a score as an example, it is assumed that after a state transition path is constructed, the road point sequence corresponding to the state transition path is evaluated to obtain the corresponding evaluation value n. The node value of the driving state node on the state transition path is modified according to the evaluation value of the road point sequence, which can be specifically implemented by but not limited to any of the following methods: in an optional embodiment, the evaluation value n is directly updated to the node value of each driving state node on the state transition path; in an optional embodiment, the evaluation value n and the node value of the driving state node are weighted averaged to obtain the new node value of the driving state node; in an optional embodiment, the evaluation value n is multiplied by a preset coefficient to obtain the node value of the driving state node. Those skilled in the art can determine how to modify the node value of the driving state node on the state transition path according to the evaluation value n according to actual needs, which is not strictly limited in this application.

[0117] In some optional embodiments, after each state transition path is constructed, the number of times each driving state node on the state transition path is selected is accumulated by 1, and the number of times each driving state node is selected is stored.

[0118] like Fig.15A As shown in the figure, it is the node value and the number of times each driving state node is selected. The node value and the number of times that the driving state node that has not been selected can be set to 0 as the initial value. Fig. 15B After the state transition path (S1>a4>a42>a421) shown in FIG. 1 is obtained, the evaluation value and the number of times selected of each driving state node on the state transition path are modified according to the evaluation value n (for example, n is 75 points) of the waypoint sequence corresponding to the state transition path, as shown in FIG. Fig. 15C shown.

[0119] In some optional embodiments, Fig.13 The process shown in step 5 may further include step 7, such as Fig.16 As shown, where:

[0120] Step 7: modify the node value and the number of times selected of each driving state node in the state transition path and the driving state node in the state transition space of each driving state node according to the first evaluation value corresponding to the waypoint sequence of the state transition path.

[0121] Assume that after a state transition path is constructed, the waypoint sequence corresponding to the state transition path is evaluated to obtain the corresponding evaluation value n. The driving state node on the state transition path is called the main node, and the state driving node in the state transition space of the previous main node of the main node is called the brother node of the main node. Fig.17A As shown, the state transition space of the initial state driving node S1 is {a1, a2, a3, a4, a5}, and the node value and the number of times selected of each driving state node are initialized to 0; according to Fig.16 The process shown in the figure constructs a state transition path of S1>a4>a42>a421, as shown in Fig. 17B As shown. a4, a42, a421 in the state transition path are called master nodes, the driving state nodes a1, a2, a3, a5 in the transfer state space of S1 are called brother nodes of the master node a4, the driving state nodes a21, a31, a41, a43, a51, a52 in the state transition space of the master node a4 are called brother nodes of the master node a42; the driving state nodes a211, a212, a313, a411, a422, a423, a521 in the state transition space of the master node a42 are called brother nodes of the master node a421. The node value and the number of times selected of each driving state node in the state transfer space of each driving state node in the state transfer path are modified according to the waypoint sequence evaluation value n. Specifically, it can be achieved by but not limited to the following methods: for each main node on the state transfer path, the following steps are performed: the evaluation value n and the node value of the main node are weighted averaged to obtain the new node value of the main node, and the number of times the main node is selected is accumulated by 1; for each sibling node of the main node, the similarity between the main node and the sibling node is calculated (the similarity is a value less than or equal to 1), the product of the evaluation value n and the similarity is used as the evaluation score, the evaluation score and the node value of the sibling node are weighted averaged to obtain the new node value of the sibling node, and the number of times the sibling node is currently selected is accumulated by the similarity. Fig. 17C The node value and the number of times selected of each driving state node are modified according to the evaluation value of the waypoint sequence of the newly generated state transition path S1>a4>a42>a421.

[0122] In some optional embodiments, based on the above Fig.14 and Fig.16 In the process shown, in the aforementioned step 2, the search for the next driving state node of the current driving state node in the state transfer space of the current driving state node can be specifically implemented as follows: determine whether each driving state node in the state transfer space of the current driving state node is optional; and select the next driving state node of the current driving state node from the optional driving state nodes based on the node value and the number of times the optional driving state node is selected.

[0123] In some optional embodiments, according to the node value and the number of times the optional driving state node is selected, the next driving state node of the current driving state node is selected from the optional driving state nodes, specifically including: for each optional driving state node, the second evaluation value of the driving state node is calculated according to the node value and the number of times the driving state node is selected, and the second evaluation value is used to indicate the priority of the driving state node being selected; according to the second evaluation value of the optional driving state node, the driving state node with the highest priority is selected as the next driving state node in the current driving state node. The higher the node value of the driving state node, the better the driving state node, the higher the node value of the driving state node, the larger the second evaluation value, and the higher the number of times the driving state node is selected, the smaller the second evaluation value. In an optional embodiment, the second evaluation value of the driving state node can be calculated according to but not limited to the following formula (1).

[0124]

[0125] In formula (1), Eval(v) is the second evaluation value of the driving state node v, u is the current driving state node, v is a driving state node in the state transition space of the current driving state node, and Score is v is the node value of node v, Count v is the number of times node v is selected, Count u is the number of times node u is selected, λ,μ, is the prefabricated coefficient, g is about Score v An increasing function, h is about Count v A decreasing function, f is a decreasing function with Score v and Count u increases with the increase of Count v decreases with the increase of .

[0126] In some optional embodiments, determining whether each driving state node in the state transfer space of the current driving state node is selectable specifically includes: determining whether the current driving state node satisfies a preset unselectable condition; if the unselectable condition is satisfied, determining that the driving state node is unselectable.

[0127] In some optional embodiments, the unselectable conditions may include but are not limited to any one or more of the following: unselectable condition 1, the driving state node has a collision risk, unselectable condition 2, the driving parameter value of the driving state node is unreasonable, unselectable condition 3, the transfer from the current driving state node to the driving state node is unreasonable. Of course, those skilled in the art can also flexibly set the unselectable conditions according to actual conditions, and the above-mentioned unselectable conditions 1 to unselectable conditions 3 are only some examples.

[0128] In some optional embodiments, the driving parameter value of the driving state node is unreasonable, which means that the value of the driving parameter exceeds the preset value range, or the value between any two or more driving parameters does not conform to the kinematic model of the mobile tool. For example, the driving speed of the driving state node reaches 300km / h.

[0129] In some optional embodiments, the transfer from the current driving state node to the driving state node is unreasonable, for example, the change between the value of a driving parameter of the driving state node and the corresponding driving parameter of the previous driving state node does not conform to the kinematic model of the mobile tool. For example, the steering wheel angle of the driving state node is 540° on the right, while the steering wheel angle of the previous driving state node of the driving state node is 540° on the left. Since the time interval between the driving state nodes is relatively close, the steering wheel angle change difference is too large in a short period of time, which obviously does not conform to the kinematic model of the mobile tool. For example, the driving speed of the driving state node is 130km / h, while the driving speed of the previous driving state node of the driving state node is 1km / h. Since the time interval between the driving state nodes is relatively close, the driving speed change is too large in a short period of time, which obviously does not conform to the kinematic model of the mobile tool.

[0130] In some optional embodiments, to ensure the safety of the state transition path, in the embodiment of the present invention, when constructing the state transition path, each time a driving state node is generated, it is determined whether the driving state node has a collision risk. If the driving state node has a collision risk, the driving state node is discarded and another driving state node is found. It is also possible to determine whether the state transition path has a collision risk after each state transition path is generated.

[0131] In some optional embodiments, in the process of constructing the state transition path, Fig.18A The method flow shown in the figure determines whether there is a collision risk at a driving state node, and the flow includes steps 301 to 304, wherein:

[0132] Step 301: construct an occupation grid map with the current position of the mobile tool as the center;

[0133] Step 302: Determine a target mobile tool occupation template that matches the posture of the mobile tool from preset mobile tool occupation templates;

[0134] Step 303: align the center point of the first grid area occupied by the mobile tool in the target mobile tool occupation template with the position of the state travel node in the occupation grid map to obtain the second grid area occupied by the mobile tool in the occupation grid map;

[0135] Step 304: Determine whether there is a collision risk at the driving state node according to the occupancy status of the first grid area and the second grid area.

[0136] In some optional embodiments, when a state transition path is constructed, Fig.18B The method flow shown determines whether there is a collision risk on the state transition path, and the flow includes steps 401 to 406, wherein:

[0137] Step 401: construct an occupation grid map with the current position of the mobile tool as the center;

[0138] Step 402: Determine a target mobile tool occupation template that matches the posture of the mobile tool from preset mobile tool occupation templates;

[0139] Step 403: align the center point of the first grid area occupied by the mobile tool in the target mobile tool occupation template with the position of a driving state node of the state transition path in the occupation grid map to obtain a second grid area occupied by the mobile tool in the occupation grid map;

[0140] Step 404, determining whether there is a collision risk at the driving state node according to the occupation status of the first grid area and the second grid area; if there is a collision risk, executing step 405, and if there is no collision risk, executing step 406;

[0141] Step 405: determine that there is a collision risk in the state transition path, and end the process;

[0142] Step 406: Is there any next driving state node in the state transition path? If yes, execute step 407; if not, execute step 408;

[0143] Step 407, selecting the next driving state node from the state transition path, and executing steps 403 to 406 for the driving state node;

[0144] Step 408: Determine that there is no collision risk in the state transition path, and end the process.

[0145] In some optional embodiments, the mobile tool occupation template is a grid map pre-constructed with the mobile tool as the center, and the grid area occupied by the mobile tool is pre-marked in the grid map according to the size, shape and posture of the mobile tool. Fig.19 As shown, the mobile tool is a semi-trailer. Semi-trailers of the same size and shape occupy different grid areas in the grid map in different postures. Fig.19 The figure only illustrates several of the postures. Those skilled in the art can construct mobile tool occupation templates of different postures according to different granularities based on actual needs.

[0146] In some optional embodiments, in the aforementioned step 302 / step 402, after determining the current posture of the mobile tool, a target mobile tool occupation template that matches the current posture of the mobile tool is searched from the mobile tool occupancy template. For example, if there is a mobile tool occupation template in the mobile tool occupation template whose posture is consistent with the current posture of the mobile tool, the mobile tool occupation template is used as the target mobile tool occupation template; if there is no mobile tool occupation template in the mobile tool occupation template whose posture is consistent with the current posture of the mobile tool, the mobile tool occupation template whose posture is closer to the posture of the mobile tool is used as the target mobile tool occupation template.

[0147] In some optional embodiments, in step 304 / step 404, determining whether the driving state node has a collision risk based on the occupation of the first grid area and the second grid area specifically includes: if a preset number of grids in the second grid area are marked as occupied by obstacles, then determining that the driving state node has a collision risk. The value of each grid in the mobile tool occupation template is 0. The target mobile tool occupies the template as shown in FIG. Fig. 20A As shown, the mobile tool occupies 36 grids in the first grid area in the target mobile tool occupation template; each grid in the occupied grid map constructed in step 301 / step 401 is marked as "occupied" or "unoccupied" according to the occupancy status, for example, "occupied" can be marked with 1 and "unoccupied" can be marked with 0, such as Fig. 20B As shown in FIG. 1 , the occupancy grid map is constructed; the center point of the first grid area occupied by the mobile tool in the target mobile tool occupation template is aligned with the position of the state driving node in the occupancy grid map to obtain the second grid area occupied by the mobile tool in the occupancy grid map, as shown in FIG. Fig. 20C As shown, the second grid area includes 36 grids, and the 36 grids in the first grid area correspond to the 36 grids in the second grid area. There is no grid marked as "occupied" in the second grid area, so it can be determined that there is no collision risk at the state driving node.

[0148] In some optional embodiments, in step 304 / step 404, determining whether the driving state node has a collision risk based on the occupation of the first grid area and the second grid area specifically includes: calculating a collision assessment value used to characterize the collision probability based on the occupation of the first grid area and the second grid area, and determining whether the driving state node has a collision risk based on the collision assessment value. For example, determining whether the collision assessment value is greater than or equal to a preset value, if so, determining that the driving state node has a collision risk, and if not, determining that the driving state node does not have a collision risk.

[0149] In some optional embodiments, a collision evaluation value used to characterize the collision probability is calculated based on the occupancy of the first grid area and the second grid area. The specific implementation may be as follows: the sum of the products of the occupancy probability of the grids in the first grid area and the occupancy probability of the corresponding grids in the second grid area is taken as the collision evaluation value. Fig.21A As shown in , the first grid area contains 36 grids, and the grid occupancy probability is 1. The values ​​of each grid in the grid map are as follows: Fig.21B As shown. Align the center point of the first grid area occupied by the mobile tool in the target mobile tool occupation template with the position of the state driving node in the occupation grid map to obtain the second grid area occupied by the mobile tool in the occupation grid map. The second grid area contains 36 grids, as shown in FIG. Fig. 21C The product of the occupancy probability of the 36 grids in the first grid area and the occupancy probability of the 36 grids in the second grid area is summed (for example, the i-th grid in the first grid area is represented by Ai, and the i-th grid in the second grid area is represented by Bi, and the collision evaluation value is calculated as ∑A i B i ), and the collision assessment value is 2.9.

[0150] In some optional embodiments, the value of each grid in the mobile tool occupation template is set to a binary value according to a preset occupation rule; after constructing an occupation grid map with the current position of the mobile tool as the center, it also includes: setting the value of the grid in the occupation grid map according to the occupation rule; determining whether the driving status node has a collision risk based on the occupancy status of the first grid area and the second grid area, specifically including: performing binary operations on the values ​​of the grids in the first grid area and the corresponding grids in the second grid area, and determining whether the driving status node has a collision risk based on the operation results.

[0151] In some optional embodiments, the occupation rule is that when the grid is occupied by an obstacle or a moving tool, its value is set to 1, otherwise it is set to 0; the binary operation is a binary "AND" operation; the grids in the first grid area are binary operated with the values ​​of the corresponding grids in the second grid area, and the operation result is used to determine whether the driving status node has a collision risk, specifically including: performing a binary "AND" operation on the values ​​of each grid in the grid area and the values ​​of the corresponding grids in the occupied grid map, and if there are more than a preset number (the preset number of values ​​can be flexibly set by technicians in this field according to actual needs, and this application does not strictly limit it) and the result of the "AND" operation is 1, then it is determined that the driving status node has a collision risk. Fig.22A As shown, the target moving tool occupies the template, and the values ​​of the 36 grids in the first grid area occupied by the moving tool are all 1, and the values ​​of the other grids are 0; Fig. 22B As shown, the grid occupied by obstacles in the occupied grid map has a value of 1, and the grid not occupied by obstacles has a value of 0; the center point of the first grid area is aligned with the position of the state driving node in the occupied grid map to obtain the second grid area occupied by the mobile tool in the occupied grid map, as shown in FIG. Fig. 22C As shown, the 36 grids contained in the second grid area are obtained. The 36 grids in the first grid area correspond to the 36 grids in the second grid area one by one. Ai represents the i-th grid in the first grid area, and Bi represents the i-th grid in the second grid area. The grids Ai and Bi are ANDed, and if 1 is obtained in the operation result, it can be determined that the driving state node has a collision risk.

[0152] In some optional embodiments, the occupation rule is that when the grid is occupied by an obstacle or a moving tool, its value is set to 0, otherwise it is set to 1; the binary operation is a binary "or" operation; the grids in the first grid area are binary operated with the values ​​of the corresponding grids in the second grid area, and the driving state node is determined based on the operation result. It specifically includes: the values ​​of each grid in the grid area are binary "or" operated with the values ​​of the corresponding grids in the occupied grid map, and if there are more than a preset number (the preset number of values ​​can be flexibly set by technicians in this field according to actual needs, and this application does not strictly limit it) and the result of the "or" operation is 0, it is determined that the driving state node has a collision risk. Fig.23A As shown, the target moving tool occupies the template, and the values ​​of the 36 grids in the first grid area occupied by the moving tool are all 0, and the values ​​of the other grids are 1; Fig. 23BAs shown, the grid occupied by obstacles in the occupied grid map has a value of 0, and the grid not occupied by obstacles has a value of 1; the center point of the first grid area is aligned with the position of the state driving node in the occupied grid map to obtain the second grid area occupied by the mobile tool in the occupied grid map, as shown in FIG. Fig.23C As shown, the second grid area contains 36 grids. The 36 grids in the first grid area correspond to the 36 grids in the second grid area one by one. Ai is used to represent the i-th grid in the first grid area, and Bi is used to represent the i-th grid in the second grid area. Ai and Bi are "or" operated, and if there is 0 in the operation result, it can be determined that the driving state node has a collision risk.

[0153] In some optional embodiments, in the aforementioned step 102, a target state transition path is selected from the multiple state transition paths, which is specifically implemented as follows: an optimal state transition path is selected as the target state transition path according to the first evaluation value.

[0154] Embodiment 2

[0155] Embodiment 2 of the present application provides a path planning device, which can divide the path planning device into functional modules according to the path planning method provided in the above embodiment 1. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. The division of modules in the embodiment of the present application is schematic, which is only a logical function division, and there may be other division methods in actual implementation. The path planning device has the function of implementing any one of the path planning methods in the above embodiment 1. The function can be implemented by hardware, or it can be implemented by hardware executing the corresponding software. The hardware or software includes one or more modules corresponding to the above functions.

[0156] In an optional embodiment, the path planning device can be divided into the following according to its function: Fig.24 As shown, it includes a construction unit 1, a selection unit 2 and a determination unit 3, wherein:

[0157] A construction unit 1 is used to construct a plurality of state transition paths according to the current driving state of the mobile tool; wherein each state transition path comprises a plurality of driving state nodes and the starting driving state node is the current driving state of the mobile tool;

[0158] A selection unit 2, configured to select a target state transition path from the plurality of state transition paths;

[0159] The determination unit 3 is used to determine the waypoint sequence corresponding to the target state transition path as the driving path of the mobile tool.

[0160] In some optional embodiments, the construction unit 1 constructs each state transition path according to the following steps 1 to 4, wherein:

[0161] Step 1, constructing unit 1 takes the current driving state of the mobile tool as the starting driving state node, and takes the starting driving state node as the current driving state node;

[0162] Step 2: The construction unit 1 determines the state transition space of the current driving state node, and searches for the next driving state node of the current driving state node in the state transition space of the current driving state node;

[0163] Step 3, the construction unit 1 uses the next driving state node obtained in step 2 as the current driving state node, and repeats step 2 until a preset number of driving state nodes are generated;

[0164] Step 4: The construction unit 1 constructs a state transfer path according to the sequence of multiple driving state nodes.

[0165] In some optional embodiments, the construction unit 1 in step 2 determines the state transition space of the current driving state node, specifically including: the construction unit 1 takes the current driving state node as the target driving state node; or, the construction unit 1 takes all or part of the driving state nodes including the current driving state node in the state transition space of the previous driving state node of the current driving state node as the target driving state node; the construction unit 1 determines the state transition space corresponding to each target driving state node, and determines the union of the state transition spaces corresponding to each target driving state node as the state transition space of the current driving state node.

[0166] In some optional embodiments, the construction unit 1 determines the state transition space corresponding to each target driving state node, specifically including: querying the state transition space corresponding to the target driving state node from a preset state transition library. The construction method of the state transition library can refer to the corresponding content in the first embodiment, which will not be repeated here.

[0167] In some optional embodiments, the construction unit 1 determines the state transition space corresponding to each target driving state node, specifically including: for each target driving state node, performing the following steps: for each driving parameter of the target driving state node, determining the target value of the driving parameter, and discretizing the current value and the target value of the driving parameter to obtain a discrete point sequence; combining the discrete point sequences corresponding to the driving parameters of the target driving state node to obtain multiple driving state nodes, and the multiple driving state nodes constitute the state transition space of the target driving state node. For specific implementation, please refer to the corresponding content in Example 1, which will not be repeated here.

[0168] In some optional embodiments, the construction unit 1 is further configured to, after constructing the state transition path by executing steps 1 to 4, further execute the following step 5, wherein:

[0169] Step 5: Setting a first evaluation value for indicating the quality of the waypoint sequence for the waypoint sequence corresponding to the state transition path constructed in step 4.

[0170] In some optional embodiments, the construction unit 1 further performs step 6 after performing step 5, wherein:

[0171] Step 6: modify the node value and the number of times selected of each driving state node in the state transition path according to the first evaluation value corresponding to the waypoint sequence of the state transition path, wherein the node value is used to indicate the quality of the driving state node.

[0172] In some optional embodiments, the construction unit 1 further performs step 7 after performing step 5, wherein:

[0173] Step 7: modify the node value and the number of times selected of each driving state node in the state transition path and the driving state node in the state transition space of each driving state node according to the first evaluation value corresponding to the waypoint sequence of the state transition path.

[0174] In some optional embodiments, in the step 2, the construction unit 1 searches for the next driving state node of the current driving state node in the state transfer space of the current driving state node, specifically including: judging whether each driving state node in the state transfer space of the current driving state node is optional; and selecting the next driving state node of the current driving state node from the optional driving state nodes according to the node value and the number of times the optional driving state node is selected.

[0175] In some optional embodiments, the next driving status node of the current driving status node is selected from the optional driving status nodes according to the node value and the number of times the optional driving status nodes are selected, specifically including: for each optional driving status node, a second evaluation value of the driving status node is calculated according to the node value and the number of times the driving status node is selected, the second evaluation value is used to indicate the priority of the driving status node being selected; according to the second evaluation value of the optional driving status node, the driving status node with the highest priority is selected as the next driving status node in the current driving status node.

[0176] In some optional embodiments, the construction unit 1 determines whether each driving state node in the state transfer space of the current driving state node is optional, specifically including: determining whether the current driving state node satisfies a pre-set unselectable condition, and if the unselectable condition is satisfied, determining that the driving state node is unselectable.

[0177] In some optional embodiments, the unselectable conditions may include but are not limited to any one or more of the following: unselectable condition 1, the driving state node has a collision risk, unselectable condition 2, the driving parameter value of the driving state node is unreasonable, unselectable condition 3, the transfer from the current driving state node to the driving state node is unreasonable. Of course, those skilled in the art can also flexibly set the unselectable conditions according to actual conditions, and the above-mentioned unselectable conditions 1 to unselectable conditions 3 are only some examples. For details, please refer to the corresponding content in Example 1, which will not be repeated here.

[0178] In some optional embodiments, to ensure the safety of the state transition path, the construction unit 1 in the embodiment of the present invention may determine whether there is a collision risk for each driving state node generated during the process of constructing the state transition path. If there is a collision risk for the driving state node, the driving state node is discarded and another driving state node is found. The construction unit 1 may also determine whether there is a collision risk for each state transition path after generating the state transition path.

[0179] In some optional embodiments, determining whether there is a collision risk at the driving status node specifically includes: constructing an occupancy grid map with the current position of the mobile tool as the center; determining a target mobile tool occupancy template that matches the posture of the mobile tool from a preset mobile tool occupancy template; aligning the center point of a first grid area occupied by the mobile tool in the target mobile tool occupancy template with the position of the state driving node in the occupancy grid map to obtain a second grid area occupied by the mobile tool in the occupancy grid map; and determining whether there is a collision risk at the driving status node based on the occupancy conditions of the first grid area and the second grid area.

[0180] In some optional embodiments, determining whether the driving state node has a collision risk based on the occupation of the first grid area and the second grid area specifically includes: if a preset number of grids in the second grid area are marked as occupied by obstacles, determining that the driving state node has a collision risk. For details, please refer to the corresponding content in Example 1, which will not be repeated here.

[0181] In some optional embodiments, determining whether the driving state node has a collision risk according to the occupation of the first grid area and the second grid area specifically includes: calculating a collision assessment value for characterizing the collision probability according to the occupation of the first grid area and the second grid area, and determining whether the driving state node has a collision risk according to the collision assessment value. For details, please refer to the corresponding content in Example 1, which will not be repeated here.

[0182] In some optional embodiments, the value of each grid in the mobile tool occupation template is set to a binary value according to a preset occupation rule; after constructing an occupation grid map with the current position of the mobile tool as the center, it also includes: setting the value of the grid in the occupation grid map according to the occupation rule; determining whether the driving status node has a collision risk based on the occupancy status of the first grid area and the second grid area, specifically including: performing binary operations on the values ​​of the grids in the first grid area and the corresponding grids in the second grid area, and determining whether the driving status node has a collision risk based on the operation results.

[0183] In some optional embodiments, the occupation rule is that when the grid is occupied by an obstacle or a moving tool, its value is set to 1, otherwise it is set to 0; the binary operation is a binary "and" operation; the grids in the first grid area are binary operated with the values ​​of the corresponding grids in the second grid area, and whether the driving state node has a collision risk is determined according to the operation result, specifically including: the values ​​of each grid in the grid area are binary "and" operated with the values ​​of the corresponding grids in the occupied grid map, and if there are more than a preset number of "and" operation results that are 1, it is determined that the driving state node has a collision risk. For details, please refer to the corresponding content in Example 1, which will not be repeated here.

[0184] In some optional embodiments, the occupation rule is that when the grid is occupied by an obstacle or a moving tool, its value is set to 0, otherwise it is set to 1; the binary operation is a binary "or" operation; the grids in the first grid area are binary operated with the values ​​of the corresponding grids in the second grid area, and whether the driving state node has a collision risk is determined according to the operation result, specifically including: the values ​​of each grid in the grid area are binary "or" operated with the values ​​of the corresponding grids in the occupied grid map, and if there are more than a preset number of "or" operation results that are 0, it is determined that the driving state node has a collision risk. For details, please refer to the corresponding content in Example 1, which will not be repeated here.

[0185] In some optional embodiments, the selection unit 2 selects a target state transition path from the multiple state transition paths, specifically including: selecting an optimal state transition path as the target state transition path according to the first evaluation value.

[0186] In some optional embodiments, after obtaining multiple state transition paths, the construction unit 1 determines the corresponding waypoint sequence for each state transition path according to the state transition path; or, after each state transition path is constructed, the construction unit 1 determines the corresponding waypoint sequence according to the state transition path.

[0187] In some optional embodiments, after selecting the target state transition path, the selection unit 2 may determine a corresponding waypoint sequence according to the target state transition path.

[0188] In some optional embodiments, the determination unit 3 may also determine the corresponding waypoint sequence according to the selected target state transition path.

[0189] In some optional embodiments, the aforementioned construction unit 1, selection unit 2 or determination unit 3 determines the corresponding waypoint sequence according to the state transition path, which can be achieved in the following manner but not limited to: for the starting driving state node in the state transition path, since the starting driving state node is the current driving state of the mobile tool, the waypoint of the starting driving state node can be directly determined according to the position information and driving state information obtained by the current positioning of the mobile tool; for each driving state node other than the starting driving state node in the state transition path, the waypoint of the driving state node can be calculated according to the waypoint of the previous driving state node of the driving state node and its driving state, and the driving state of the driving state node. For example, the coordinates of the vehicle in a driving state node p2 can be calculated according to the vehicle coordinates in the previous driving state node p, the vehicle orientation and the speed in S1. The vehicle orientation in p2 can be calculated according to the vehicle orientation in p and the steering wheel angles in S1 and S2.

[0190] Embodiment 3

[0191] In an optional embodiment, the present application also provides a path planning device, including a processor and a memory. The processor is connected to the memory (such as interconnected via a bus). Optionally, the path planning device may also include a transceiver, which connects the processor and the memory, and the transceiver is used to receive / send data. The processor can perform the operations of any one of the path planning implementation schemes and various feasible implementation schemes provided in the aforementioned embodiment 1, and / or other operations described in the embodiments of the present application.

[0192] Embodiment 4

[0193] In some optional embodiments, the present application also provides a path planning device, including a non-volatile storage medium and a central processing unit, the non-volatile storage medium stores an executable program, the central processing unit is connected to the non-volatile storage medium, and executes the executable program to implement any one of the path planning methods provided in Example 1 of the present application.

[0194] In some optional embodiments, the embodiments of the present invention further provide a computer-readable storage medium, which includes one or more program codes, and the one or more programs include instructions. When the instructions are executed on a computer, any path planning method provided in Embodiment 1 can be implemented.

[0195] In some optional embodiments, the embodiments of the present invention further provide a computer program product, which includes computer execution instructions. When the computer program product runs on a computer, it enables the computer to execute the corresponding steps of any path planning method provided in the aforementioned embodiment 1.

[0196] In some optional embodiments, the present application also provides a state transition library construction device, including a non-volatile storage medium and a central processing unit, the non-volatile storage medium stores an executable program, the central processing unit is connected to the non-volatile storage medium, and executes the executable program to implement the state transition library construction method provided in Example 1 of the present application.

[0197] In some optional embodiments, the embodiments of the present invention further provide a computer-readable storage medium, which includes one or more program codes, and the one or more programs include instructions. When the instructions are executed on a computer, the state transfer library construction method provided in Embodiment 1 can be implemented.

[0198] In some optional embodiments, the embodiments of the present invention further provide a computer program product, which includes computer execution instructions. When the computer program product runs on a computer, it enables the computer to execute the corresponding steps of the state transfer library construction method provided in the aforementioned embodiment 1.

[0199] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can appear in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loading and executing computer program instructions on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD) or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.

[0200] Embodiment 5

[0201] like Fig.25 As shown in FIG. 1 , an exemplary mobile tool system 100 provided by an embodiment of the present invention is provided. The mobile tool system 100 is mounted on a mobile tool, and the mobile tool can be controlled by the mobile tool system 100 to achieve unmanned driving or nearly unmanned driving. The structure of the mobile tool system can be as follows: Fig.25 As shown, it includes an external environment sensor 110 , a positioning sensor 120 , an internal sensor 130 , a map database 140 , a navigation system 150 , an actuator 160 , and a computer system 170 .

[0202] The external environment sensor 110 is a detection device for detecting the surrounding environment information of the mobile tool, and may include but is not limited to at least one of a camera, a radar, and a laser radar (LIDAR). The camera is a shooting device for shooting the surrounding environment of the mobile tool. The camera may be set at the front end, side, etc. of the mobile tool, and the camera may be a single-lens camera or a binocular camera. The camera transmits the collected data to the computer system 170. The radar uses radio waves to detect objects around the mobile tool, and the radio waves are, for example, millimeter waves. The radar sends radio waves around the mobile tool and receives radio waves reflected by the object to detect the object. The radar can, for example, output the distance or direction of the object as object information to the computer system 170. The laser radar uses light to detect objects outside the mobile tool. The laser radar sends light around the mobile tool and receives light reflected by the object, thereby measuring the distance to the reflection point and detecting the object. The laser radar can, for example, output the distance or direction of the object as object information to the computer system 170.

[0203] The positioning sensor 120 may include one or more positioning modules, such as one or more of a GPS positioning module, a Beidou positioning system, an IMU positioning module, a visual-IMU odometer obtained by combining a camera and an IMU, a combined navigation module obtained by combining GNSS and an IMU, etc. The positioning sensor 120 outputs positioning information for positioning the mobile tool to the computer system 170.

[0204] The internal sensor 130 is a detector that detects information corresponding to the driving state of the mobile tool. The internal sensor 130 may include, for example, at least one of an IMU (Inertial Measurement Unit), a speed sensor, an acceleration sensor, a steering wheel sensor, and a steering gear sensor. In some optional embodiments, the internal sensor 130 may also include at least one of an accelerator pedal sensor, a brake pedal sensor, and a yaw rate sensor. The speed sensor is a detector that detects the speed of the mobile tool, and the speed sensor transmits the speed information of the mobile tool to the computer system 170. The acceleration sensor is a detector that detects the acceleration of the mobile tool, and the acceleration sensor transmits information including the acceleration of the mobile tool to the computer system 170. The steering wheel sensor is a detector that detects the rotation state of the steering wheel, and the detection value of the rotation state is, for example, a steering wheel angle, a steering wheel angular velocity, a steering wheel rotation angular acceleration, etc., and transmits the steering wheel angle, the steering wheel angular velocity, and the steering wheel rotation angular acceleration of the mobile tool to the computer system 170. The steering gear sensor is a detector that detects the steering gear angle, and transmits the steering gear angle to the computer system 170. The yaw rate sensor is a detector that detects the yaw rate (rotational angular velocity) of the mobile tool around the vertical axis of the center of gravity, and a gyroscope sensor can be used, for example. The yaw rate sensor transmits yaw rate information including the yaw rate of the mobile tool to the computer system 170. The accelerator pedal sensor is, for example, a detector that detects the amount of accelerator pedal depression. The accelerator pedal sensor is, for example, disposed on the shaft portion of the accelerator pedal of the mobile tool. The accelerator pedal sensor transmits operation information corresponding to the amount of accelerator pedal depression to the computer system 170. The brake pedal sensor is, for example, a detector that detects the amount of brake pedal depression. The brake pedal sensor is, for example, disposed on the shaft portion of the brake pedal. The brake pedal sensor can also detect the operating force of the brake pedal (the force applied to the brake pedal, the pressure of the master cylinder, etc.). The brake pedal sensor transmits operation information corresponding to the amount of brake pedal depression or the operating force to the computer system 170.

[0205] The map database 140 is a database having high-precision map information. The map database 140 is formed in, for example, a HDD (Hard disk drive) mounted on a mobile tool. The high-precision map information includes, for example, lane line information, location information, road shape information, traffic light information, traffic sign information, and location information of intersections and branch intersections.

[0206] The navigation system 150 calculates the navigation route of the mobile tool based on the location information of the mobile tool positioned by the positioning sensor 120 and the map information of the map database 140. The navigation system 150, for example, transmits the information of the target navigation route of the mobile tool to the computer system 170. In addition, the navigation system 150 can be a local system set on the mobile tool, or a cloud system that can communicate with the mobile tool.

[0207] The actuator 160 is a device for executing the driving control of the mobile tool. The actuator 160 includes at least a throttle actuator, a brake actuator, and a steering wheel actuator. The throttle actuator controls the amount of air supplied to the engine (throttle opening) according to the control signal transmitted by the computer system 170, thereby controlling the driving force of the mobile tool. Of course, if the mobile tool is a hybrid tool or an electric tool, the mobile tool may not include a throttle actuator, and the control signal from the computer system 170 is input to the motor as a power source to control the driving force. The brake actuator controls the brake system according to the control signal from the computer system 170, thereby controlling the braking force applied to the wheels of the mobile tool. As the brake system, for example, a hydraulic brake system can be used. The steering wheel actuator controls the drive of the auxiliary motor that controls the steering torque in the electric power steering system according to the control signal from the computer system 170. Thus, the steering wheel actuator controls the steering torque (steering torque) of the mobile tool.

[0208] In some optional embodiments, the computer system 170 may be an electronic control unit having a CPU (Central Processing Unit), a ROM (Read Only Memory), a RAM (Random Access Memory), etc. In the computer system 170, various controls are performed by loading a program stored in the ROM into the RAM and executing it by the CPU. The computer system 170 may also be composed of a plurality of electronic control units.

[0209] In some optional embodiments, the computer system 170 may include a memory and one or more processors in communication with the memory; the memory stores instructions (e.g., program logic) executable by the one or more processors, and the instructions are executed by the one or more processors to enable the one or more processors to implement various functions, such as positioning fusion function, perception function, driving state determination function, path planning function (i.e., decision-making function), and driving control function. In some optional embodiments, the memory may also contain additional instructions, including instructions for sending data to, receiving data from, interacting with, and / or controlling one or more of the external environment sensor 110, the positioning sensor 120, the internal sensor 130, the map database 140, the navigation system 150, the actuator 160, and other peripheral devices.

[0210] In some optional embodiments, the computer system 170 may also be a plurality of computing devices that control individual components or subsystems of the mobile tool 100 in a distributed manner.

[0211] According to the function, such as Fig.26 As shown, the computer system 170 may include a positioning fusion module 170A, a perception module 170B, a driving state determination module 170C, a decision module 170D, and a driving control module 170E. The perception module 170B identifies the external conditions of the mobile tool based on the detection results of the external environment sensor 110, for example, the position of the white line relative to the driving lane of the mobile tool or the position of the lane center, the road width, the shape of the road, etc. In addition, the external conditions may also be the conditions of objects such as obstacles around the mobile tool, for example, information distinguishing between fixed obstacles and mobile obstacles, the position of the obstacle relative to the mobile tool, the moving direction of the obstacle relative to the mobile tool, the relative speed of the obstacle relative to the mobile tool, etc. The driving state determination module 170C identifies the driving state of the mobile tool based on the detection results of the internal sensor 130, for example, including speed, acceleration, steering wheel angle, steering wheel rotation angular velocity, steering wheel rotation cross acceleration, hanging box angle, etc. The decision module 170D, for example, generates a target state transfer path for the mobile tool based on any one of the path planning methods provided in Example 1, and determines the waypoint sequence corresponding to the target state transfer path as the driving path of the mobile tool (i.e., waypoint information). The waypoints in the waypoint information are trajectory points along which the mobile tool moves in the driving path, and sends the waypoint information to the driving control module 170E, which controls the actuator 160 according to the waypoint information so that the mobile tool travels according to the waypoint information.

[0212] In some optional embodiments, the computer system 170 may also be Fig. 27In the structure shown, the computer system 170 is set on the mobile tool, and the computer system 170 may include a processor, and the processor is coupled to the system bus. The processor may be one or more processors, wherein each processor may include one or more processor cores. Optionally, the computer server may also include a display adapter, which may drive a display, and the display is coupled to the system bus. The system bus is coupled to the input and output (I / O) bus through a bus bridge. The I / O interface is coupled to the I / O bus. The I / O interface communicates with a variety of I / O devices, such as input devices (such as: keyboard, mouse, touch screen, etc.), multimedia disks, such as CD-ROM, multimedia interface, etc. Transceiver (can send and / or receive radio communication signals), camera and external USB interface. Optionally, the interface connected to the I / O interface may be a USB interface. The processor may be any conventional processor, including a reduced instruction set computing ("RISC") processor, a complex instruction set computing ("CISC") processor, or a combination of the above. Optionally, the processor may be a dedicated device such as an application-specific integrated circuit ("ASIC"). The computer system 170 may communicate with the software deployment server via a network interface. The network interface is a hardware network interface, such as a network card. The network can be an external network, such as the Internet, or an internal network, such as Ethernet or a virtual private network (VPN). Optionally, the network can also be a wireless network, such as a WiFi network, a cellular network, etc. The hard disk drive interface is coupled to the system bus. The hardware drive interface is connected to the hard disk drive. The system memory is coupled to the system bus. The data running in the system memory may include the operating system and application programs of the computer server. The operating system includes a shell and a kernel. The shell is an interface between the user and the kernel of the operating system. The shell is the outermost layer of the operating system. The shell manages the interaction between the user and the operating system: waiting for the user's input, interpreting the user's input to the operating system, and processing various operating system output results. The kernel consists of those parts of the operating system used to manage memory, files, peripherals, and system resources. Directly interacting with the hardware, the operating system kernel usually runs processes and provides communication between processes, provides CPU time slice management, interrupts, memory management, IO management, etc. The application program may include related programs of any path planning method provided in Example 1 and other related programs. The application program may also exist on the system of the software deployment server. In one embodiment, when an application needs to be executed, the computer system 170 may download the application from a software deployment server.

[0213] In some optional embodiments, the computer system 170 may also receive information from other computer systems or transfer information to other computer systems. Alternatively, the data received from the mobile tool may be transferred to another computer system, which may process the data. The data from the computer system 170 may be transmitted to a cloud computer system via a network, which may further process the data, and the cloud computer system may send the processing results to the computer system 170 via the network. Fig.28 As shown. The network and intermediate nodes may include various configurations and protocols, including the Internet, the World Wide Web, an intranet, a virtual private network, a wide area network, a local area network, a private network using one or more companies' proprietary communication protocols, Ethernet, WiFi, and HTTP (Hyper Text Transfer Protocol) and various combinations of the foregoing. Such communication may be performed by any device capable of transmitting data to and from other computer systems, such as a modem and a wireless interface. In one example, the cloud computer system may include a computer server, such as a load balancing server cluster. In order to receive, process and transmit data from the computer system 170, the cloud computer system exchanges information with different nodes of the network. The cloud computer system may have a configuration similar to that of the computer system 170, and has a processor, a memory, instructions, and data. The cloud computer system may receive data (such as the current position of the mobile tool, the current driving status, etc.) from the computer system 170 on the mobile tool via a network such as a wireless communication network. The cloud computer system runs any path planning method stored in the first embodiment according to the received data to generate the driving path of the mobile tool, and provides the driving path to the computer system 170 on the mobile tool through the network.

[0214] Embodiment 6

[0215] In some optional embodiments, any one of the path planning methods provided in the first embodiment of the present application may also be executed by a chip system. The chip system in the embodiment of the present invention may include a processor, the processor is coupled to a memory, the memory stores program instructions, and when the program instructions stored in the memory are executed by the processor, any one of the path planning methods provided in the first embodiment is implemented.

[0216] In some optional embodiments, the state transition library construction method provided in the first embodiment of the present application can be executed by a chip system. The chip system in the embodiment of the present invention may include a processor, the processor is coupled to a memory, the memory stores program instructions, and when the program instructions stored in the memory are executed by the processor, the state transition library construction method provided in the first embodiment is implemented.

[0217] Embodiment 7

[0218] In some optional embodiments, any path planning method provided in Embodiment 1 may be implemented as computer program instructions encoded in a machine-readable format on a computer-readable storage medium or encoded on other non-transitory media or products. Fig.29 Schematically illustrating a conceptual partial view of an example computer program product arranged according to at least some of the embodiments presented herein, the example computer program product includes a computer program for executing a computer process on a computing device. In one embodiment, the example computer program product is provided using a signal-bearing medium. The signal-bearing medium may include one or more program instructions, which when executed by one or more processors may provide any of the path planning methods provided in the first embodiment above to obtain a travel path for a mobile tool. For example, Figure 1 One or more features in steps 101 to 103 shown may be undertaken by one or more instructions associated with the signal bearing medium. Figure 8 One or more features of steps 201 to 205 shown may be borne by one or more instructions associated with a signal-bearing medium. In some examples, the signal-bearing medium may include a computer-readable medium, such as, but not limited to, a hard drive, a compact disk (CD), a digital video disk (DVD), a digital tape, a memory, a ROM, or a RAM, etc. In some embodiments, the signal-bearing medium may include a computer-recordable medium, such as, but not limited to, a memory, a read / write (R / W) CD, a R / W DVD, etc. In some embodiments, the signal-bearing medium may include a communication medium, such as, but not limited to, a digital and / or analog communication medium (e.g., a fiber optic cable, a waveguide, a wired communication link, a wireless communication link, etc.).

[0219] Embodiment 8

[0220] Embodiment 8 of the present invention provides a circuit system, the circuit system comprising a processing circuit, the processing circuit being configured to execute any one of the path planning methods provided in the aforementioned embodiment 1.

[0221] Embodiment 8 of the present invention further provides a circuit system, the circuit system comprising a processing circuit, the processing circuit being configured to execute the state transition library construction method provided in the aforementioned embodiment 2.

[0222] Embodiment 9

[0223] Embodiment 9 of the present invention provides a mobile tool, including a memory, and one or more processors communicatively connected to the memory; the memory stores instructions executable by the one or more processors, and the instructions are executed by the one or more processors so that the one or more processors implement the path planning method provided in the first aspect.

[0224] Embodiment 10

[0225] Embodiment 10 of the present invention provides a state transition library construction device, the structure of which can be as follows: Fig.30 As shown, it includes an acquisition module 21, a sampling module 22, a state transition sequence generation module 23, a state transition space generation module 24 and a state transition library generation module 25, wherein:

[0226] An acquisition module 21 is used to acquire multiple driving trajectories corresponding to the mobile tool;

[0227] The sampling module 22 is used for sampling the track points in each driving track to obtain a waypoint sequence corresponding to the driving track;

[0228] A state transition sequence generating module 23 is used for converting the waypoints in each waypoint sequence into corresponding driving state nodes in turn, so as to obtain a state transition sequence corresponding to the waypoint sequence;

[0229] The state transition space generating module 24 is used to obtain the state transition space corresponding to each driving state node in the state transition sequence according to each state transition sequence;

[0230] The state transition library generation module 25 is used to determine the set of state transition spaces corresponding to each driving state node as the state transition library corresponding to the mobile tool.

[0231] In some optional embodiments, the specific implementation of the acquisition module 21 can refer to step 201 in the aforementioned embodiment 1, which will not be repeated here.

[0232] In some optional embodiments, the specific implementation of the sampling module 22 may refer to step 202 in the aforementioned embodiment 1, which will not be described in detail here.

[0233] In some optional embodiments, the specific implementation of the state transition sequence generating module 23 may refer to step 203 in the first embodiment, which will not be described in detail here.

[0234] In some optional embodiments, the specific implementation of the state transition space generation module 24 can refer to step 204 in the first embodiment, which will not be repeated here.

[0235] In some optional embodiments, the specific implementation of the state transition space generation module 25 can refer to step 205 of the first embodiment, which will not be repeated here.

[0236] The basic principles of the present invention are described above in conjunction with specific embodiments. However, it should be pointed out that a person skilled in the art can understand that all or any steps or components of the method and apparatus of the present invention can be implemented in any computing device (including a processor, a storage medium, etc.) or a network of computing devices in the form of hardware firmware, software, or a combination thereof. This can be achieved by a person skilled in the art using their basic programming skills after reading the description of the present invention.

[0237] A person of ordinary skill in the art can understand that all or part of the steps carried out in the method of the above-mentioned embodiment can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. When the program is executed, it includes one of the steps of the method embodiment or a combination thereof.

[0238] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0239] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.

[0240] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1A device that provides the functions specified in a block or multiple blocks.

[0241] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0242] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0243] Although the above embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the above embodiments and all changes and modifications that fall within the scope of the present invention.

[0244] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A path planning method, It is characterized in that include: Constructing a plurality of state transition paths according to the current driving state of the mobile tool; wherein each state transition path comprises a plurality of driving state nodes and the starting driving state node is the current driving state of the mobile tool; Selecting a target state transition path from the multiple state transition paths; Determine the waypoint sequence corresponding to the target state transition path as the driving path of the mobile tool; Each state transition path has a corresponding first evaluation value, and the first evaluation value is used to indicate the quality of the waypoint sequence corresponding to the state transition path; Selecting a target state transition path from the multiple state transition paths includes: According to the first evaluation value, selecting an optimal state transition path from the multiple state transition paths as a target state transition path; Constructing a plurality of state transition paths according to the current driving state of the mobile tool, including: determining a state transition space of a current driving state node; The determining of the state transition space of the current driving state node comprises: Taking all or part of the driving state nodes in the state transfer space of the previous driving state node of the current driving state node, including the current driving state node, as the target driving state node; Determine the state transition space corresponding to each target driving state node; The union of the state transition spaces corresponding to the target driving state nodes is determined as the state transition space of the current driving state node.

2. The method according to claim 1, It is characterized in that Construct multiple state transition paths based on the current driving state of the mobile tool, including: Follow these steps to build each state transition path: Step 1: taking the current driving state of the mobile tool as the starting driving state node, and taking the starting driving state node as the current driving state node; Step 2: determine the state transfer space of the current driving state node, and search for the next driving state node of the current driving state node in the state transfer space of the current driving state node; Step 3, taking the next driving state node obtained in step 2 as the current driving state node, and repeating step 2; until a preset number of driving state nodes are generated; Step 4: Construct a state transfer path according to the sequence of multiple driving state nodes.

3. The method according to claim 2, It is characterized in that Determine the state transition space corresponding to each target driving state node, specifically including: Query the state transition space corresponding to the target driving state node from the preset state transition library.

4. The method according to claim 2, It is characterized in that Determine the state transition space corresponding to each target driving state node, specifically including: For each target driving state node, perform the following steps: For each driving parameter of the target driving state node, determining a target value of the driving parameter, and discretizing the current value and the target value of the driving parameter to obtain a discrete point sequence; The discrete point sequences corresponding to the driving parameters of the target driving state node are combined to obtain a plurality of driving state nodes, and the plurality of driving state nodes constitute a state transfer space of the target driving state node.

5. The method according to any one of claims 2 to 4, It is characterized in that The steps of constructing each state transition path according to the following steps further include: Step 5: Setting a first evaluation value for indicating the quality of the waypoint sequence for the waypoint sequence corresponding to the state transition path constructed in step 4.

6. The method according to claim 5, It is characterized in that The steps of constructing each state transition path according to the following steps further include: Step 6: modify the node value and the number of times selected of each driving state node in the state transition path according to the first evaluation value corresponding to the waypoint sequence of the state transition path, wherein the node value is used to indicate the quality of the driving state node.

7. The method according to claim 5, It is characterized in that The steps of constructing each state transition path according to the following steps further include: Step 7: modify the node value and the number of times selected of each driving state node in the state transition path and the driving state node in the state transition space of each driving state node according to the first evaluation value corresponding to the waypoint sequence of the state transition path.

8. The method according to claim 6 or 7, It is characterized in that In step 2, the step of searching in the state transition space of the current driving state node to obtain the next driving state node of the current driving state node specifically includes: Determine whether each driving state node in the state transition space of the current driving state node is selectable; According to the node value and the number of times the optional driving state node is selected, the next driving state node of the current driving state node is selected from the optional driving state nodes.

9. The method according to claim 8, It is characterized in that According to the node value and the number of times the optional driving state node is selected, the next driving state node of the current driving state node is selected from the optional driving state nodes, specifically including: For each optional driving state node, a second evaluation value of the driving state node is calculated according to the node value of the driving state node and the number of times the driving state node is selected, wherein the second evaluation value is used to indicate the priority of the driving state node being selected; The driving state node with the highest priority is selected according to the second evaluation value of the optional driving state node as the next driving state node in the current driving state node.

10. The method according to claim 8, It is characterized in that Determining whether each driving state node in the state transition space of the current driving state node is selectable includes: It is determined whether there is a collision risk at the driving state node, and if so, the driving state node is not selectable.

11. The method according to claim 10, It is characterized in that Determining whether the driving state node has a collision risk specifically includes: Construct an occupancy grid map centered on the current position of the mobile tool; Determine a target mobile tool occupancy template that matches the posture of the mobile tool from preset mobile tool occupancy templates; Aligning the center point of the first grid area occupied by the mobile tool in the target mobile tool occupation template with the position of the state travel node in the occupation grid map to obtain a second grid area occupied by the mobile tool in the occupation grid map; It is determined whether the driving state node has a collision risk according to the occupation status of the first grid area and the second grid area.

12. The method according to claim 11, It is characterized in that Determining whether the driving state node has a collision risk according to the occupation status of the first grid area and the second grid area specifically includes: If a preset number of grids in the second grid area are marked as being occupied by obstacles, it is determined that there is a collision risk at the driving state node.

13. The method according to claim 11, It is characterized in that Determining whether the driving state node has a collision risk according to the occupation status of the first grid area and the second grid area specifically includes: A collision assessment value for characterizing the collision probability is calculated according to the occupation status of the first grid area and the second grid area, and the presence of the collision risk at the driving state node is determined according to the collision assessment value.

14. The method according to claim 11, It is characterized in that The values ​​of each grid in the mobile tool occupation template are set to binary values ​​according to a preset occupation rule; after constructing an occupation grid map with the current position of the mobile tool as the center, it also includes: setting the values ​​of the grids in the occupation grid map according to the occupation rule; Determining whether the driving status node has a collision risk based on the occupancy status of the first grid area and the second grid area specifically includes: performing binary operations on the values ​​of the grids in the first grid area and the corresponding grids in the second grid area, and determining whether the driving status node has a collision risk based on the operation results.

15. The method according to claim 14, It is characterized in that The occupation rule is that when the grid is occupied by an obstacle or a moving tool, its value is set to 1, otherwise it is set to 0; the binary operation is a binary AND operation; Performing binary operations on the values ​​of the grids in the first grid area and the corresponding grids in the second grid area, and determining whether there is a collision risk at the driving state node according to the operation result, specifically includes: The values ​​of each grid in the grid area are respectively subjected to binary AND operations with the values ​​of the corresponding grids in the occupied grid map. If more than a preset number of AND operation results are 1, it is determined that there is a collision risk at the driving state node.

16. The method according to claim 14, It is characterized in that The occupation rule is that when the grid is occupied by an obstacle or a moving tool, its value is set to 0, otherwise it is set to 1; the binary operation is a binary OR operation; Performing binary operations on the values ​​of the grids in the first grid area and the corresponding grids in the second grid area, and determining whether there is a collision risk at the driving state node according to the operation result, specifically includes: A binary OR operation is performed on the values ​​of each grid in the grid area and the values ​​of the corresponding grids in the occupied grid map. If there are more than a preset number of OR operation results that are 0, it is determined that there is a collision risk at the driving state node.

17. A path planning device, It is characterized in that include: A construction unit, used to construct a plurality of state transition paths according to the current driving state of the mobile tool; wherein each state transition path comprises a plurality of driving state nodes and the starting driving state node is the current driving state of the mobile tool; A selection unit, configured to select a target state transition path from the plurality of state transition paths; A determination unit, configured to determine a waypoint sequence corresponding to the target state transition path as a driving path of the mobile tool; Each state transition path has a corresponding first evaluation value, and the first evaluation value is used to indicate the quality of the waypoint sequence corresponding to the state transition path; The selection unit is further configured to select an optimal state transition path from the plurality of state transition paths as a target state transition path according to the first evaluation value; The building blocks are further used for: Taking all or part of the driving state nodes in the state transfer space of the previous driving state node of the current driving state node, including the current driving state node, as the target driving state node; Determine the state transition space corresponding to each target driving state node; The union of the state transition spaces corresponding to the target driving state nodes is determined as the state transition space of the current driving state node.

18. A computer-readable storage medium, It is characterized in that The method comprises a program or an instruction, and when the program or the instruction is executed on a computer, the path planning method as claimed in any one of claims 1 to 16 is implemented.

19. A computer program product comprising instructions, It is characterized in that When the computer program product is run on a computer, the computer is enabled to execute the path planning method according to any one of claims 1 to 16.

20. A chip system, It is characterized in that The invention comprises a processor, wherein the processor is coupled to a memory, wherein the memory stores program instructions, and when the program instructions stored in the memory are executed by the processor, the path planning method according to any one of claims 1 to 16 is implemented.

21. A circuit system, It is characterized in that The circuit system comprises a processing circuit, and the processing circuit is configured to execute the path planning method according to any one of claims 1 to 16.

22. A computer system, It is characterized in that It includes a memory and one or more processors communicatively connected to the memory; the memory stores instructions executable by the one or more processors, and the instructions are executed by the one or more processors so that the one or more processors implement the path planning method as described in any one of claims 1 to 16.

23. A mobile tool, It is characterized in that It includes a memory and one or more processors communicatively connected to the memory; the memory stores instructions executable by the one or more processors, and the instructions are executed by the one or more processors so that the one or more processors implement the path planning method as described in any one of claims 1 to 16.