A motion planning method and system, electronic device and storage medium

By performing braking prediction and motion curve generation in the maglev transmission system, the problem that the car's motion state does not meet the constraints of the new road section is solved, the rationality and computing efficiency of offline motion planning are improved, and the computing load is reduced.

CN118295402BActive Publication Date: 2024-09-03SUZHOU ZONGWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410300880.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-15
Publication Date
2024-09-03
Estimated Expiration
2044-03-15

AI Technical Summary

Technical Problem

In the maglev transmission system, the motion state of the car between different driving sections may not meet the constraint conditions of the new section, causing the offline trajectory planning to fail. Online motion planning is required, which increases the computational load and the difficulty of data collection.

Method used

Propose a motion planning method and system. By obtaining the motion data and constraint data of the target car, brake prediction is performed, a braking motion curve is generated, the motion data is updated based on the braking curve, motion planning is performed, and finally the braking and motion curves are spliced ​​to generate The target motion curve improves the rationality of offline planning and reduces the computing load.

Benefits of technology

By introducing braking processing, it can be judged in advance whether the car needs to brake, avoiding the problem that the motion planning does not meet the constraint data, improving the rationality of the car's offline motion planning, reducing the calculation load, and overcoming the shortcomings of traditional trajectory planning methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118295402B
    Figure CN118295402B
Patent Text Reader

Abstract

The present application provides a motion planning method and system, an electronic device and a storage medium, which belong to the field of magnetic levitation transmission. The method includes: obtaining the first motion data and motion constraint data of the target car; predicting the braking of the target car based on the first motion data and preset conditions to obtain a prediction result; if the prediction result indicates that the target car needs to brake, generating a braking motion curve for the target car based on the first motion data and motion constraint data to obtain a braking motion curve; updating the first motion data based on the braking motion curve to obtain the second motion data; performing motion planning on the target car based on the second motion data and motion constraint data to obtain a first motion curve; performing curve splicing on the braking motion curve and the first motion curve to obtain a target motion curve for the target car. The present application can improve the rationality of the offline motion planning of the car, thereby reducing the computational load.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of magnetic levitation transmission, and in particular to a motion planning method and system, an electronic device and a storage medium. Background Art

[0002] In the magnetic levitation transmission system, different workstations form different driving sections, and different driving sections may have different constraints on the movement of the car. Therefore, it is often the case that when the car finishes moving in the previous section, the current movement state of the car may not meet the constraints of the new section.

[0003] In related technologies, once the current motion state of the car does not meet the constraints, the offline trajectory planning method will fail, and it is often necessary to use an online method for motion planning. This method has high requirements on acquisition accuracy and computational load, which will greatly increase the difficulty of data acquisition and computational load of motion planning. Summary of the invention

[0004] The main purpose of the embodiments of the present application is to propose a motion planning method and system, an electronic device and a storage medium, aiming to improve the rationality of the offline motion planning of the car, thereby reducing the computational load.

[0005] To achieve the above object, a first aspect of an embodiment of the present application proposes a motion planning method, the method comprising:

[0006] Acquire the first motion data and motion constraint data of the target vehicle;

[0007] Based on the first motion data and the preset condition, a braking prediction is performed on the target vehicle to obtain a prediction result, wherein the prediction result is used to indicate that the target vehicle needs braking, or is used to indicate that the target vehicle does not need braking;

[0008] If the prediction result indicates that the target vehicle needs to brake, a braking motion curve is generated for the target vehicle according to the first motion data and the motion constraint data to obtain a braking motion curve;

[0009] Based on the braking motion curve, the first motion data is updated to obtain second motion data;

[0010] Performing motion planning on the target vehicle based on the second motion data and the motion constraint data to obtain a first motion curve;

[0011] The braking motion curve and the first motion curve are curve spliced ​​to obtain a target motion curve of the target vehicle.

[0012] In some embodiments, the first motion data includes an initial position, a first speed, and a first acceleration of the target vehicle, and the motion constraint data includes a maximum allowable jerk, a maximum allowable acceleration, and a maximum allowable speed;

[0013] The step of generating a braking motion curve for the target vehicle according to the first motion data and the motion constraint data to obtain a braking motion curve includes:

[0014] updating the first acceleration based on the first speed and the first acceleration to obtain a second acceleration;

[0015] Calculate the braking time of the target vehicle based on the first speed, the second acceleration, the maximum allowable jerk, the maximum allowable acceleration, and the maximum allowable speed to obtain time data, the time data including a first time when the target vehicle sets the second acceleration to zero, and a second time when the target vehicle decelerates from the first speed to a speed less than the maximum allowable speed;

[0016] A motion curve is generated based on the first time, the second time, the first speed, the second acceleration, the initial position, the maximum allowable jerk, and pre-acquired accuracy data to obtain a braking motion curve.

[0017] In some embodiments, the first motion data includes a first speed of the target vehicle;

[0018] The step of performing braking prediction on the target vehicle based on the first motion data and the preset conditions to obtain a prediction result includes:

[0019] If it is determined that the first speed meets the preset condition, then the prediction result indicates that the target vehicle needs to brake;

[0020] If it is determined that the first speed does not satisfy the preset condition, the prediction result indicates that the target vehicle does not need to brake.

[0021] In some embodiments, the first motion data includes a first speed and a first acceleration of the target vehicle;

[0022] The step of performing braking prediction on the target vehicle based on the first motion data and the preset conditions to obtain a prediction result includes:

[0023] If it is determined that the first speed and the first acceleration meet the preset condition, then the prediction result indicates that the target vehicle needs to brake;

[0024] If it is determined that the first speed and the first acceleration do not satisfy the preset condition, the prediction result indicates that the target vehicle does not need to brake.

[0025] In some embodiments, updating the first acceleration based on the first velocity and the first acceleration to obtain a second acceleration includes:

[0026] Determining an initial driving state of the target vehicle according to the first speed and the first acceleration;

[0027] The first acceleration is updated according to the initial driving state to obtain the second acceleration.

[0028] In some embodiments, the initial driving state is used to indicate that the target vehicle is in an accelerating state or a decelerating state, and updating the first acceleration according to the initial driving state to obtain the second acceleration includes:

[0029] If it is determined that the initial driving state indicates that the target vehicle is in an accelerating state, the first acceleration is updated based on a preset function to obtain the second acceleration;

[0030] If it is determined that the initial driving state indicates that the target vehicle is in a deceleration state, the first acceleration is determined as the second acceleration.

[0031] In some embodiments, after performing braking prediction on the target vehicle based on the first motion data and the preset conditions to obtain a prediction result, the method further includes:

[0032] If the prediction result indicates that the target car does not need to brake, motion planning is performed on the target car based on the first motion data and the motion constraint data to obtain a target motion curve of the target car.

[0033] To achieve the above object, a second aspect of an embodiment of the present application provides a motion planning system, the system comprising:

[0034] A data acquisition module, used to acquire first motion data and motion constraint data of the target vehicle;

[0035] A braking prediction module, used for performing braking prediction on the target vehicle based on the first motion data and a preset condition to obtain a prediction result, wherein the prediction result is used to indicate that the target vehicle needs braking, or is used to indicate that the target vehicle does not need braking;

[0036] A braking motion curve generating module, configured to generate a braking motion curve for the target vehicle according to the first motion data and the motion constraint data to obtain a braking motion curve if the prediction result indicates that the target vehicle needs to brake;

[0037] A data updating module, configured to update the first motion data based on the braking motion curve to obtain the second motion data;

[0038] A first motion curve generating module, used for performing motion planning for the target vehicle based on the second motion data and the motion constraint data to obtain a first motion curve;

[0039] The motion curve splicing module is used to perform curve splicing on the braking motion curve and the first motion curve to obtain a target motion curve of the target vehicle.

[0040] To achieve the above objectives, a third aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method described in the first aspect is implemented.

[0041] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.

[0042] The motion planning method and system, electronic device and storage medium proposed in the present application obtain the first motion data and motion constraint data of the target car; based on the first motion data and preset conditions, the target car is braked and predicted to obtain a prediction result. The prediction result is used to characterize that the target car needs to brake, or is used to characterize that the target car does not need to brake. The target car can be braked and judged in advance whether the target car needs to brake, so as to avoid the target car performing motion planning with the first motion data not satisfying the motion constraint data. Furthermore, if the prediction result indicates that the target car needs to brake, a braking motion curve is generated for the target car according to the first motion data and the motion constraint data to obtain a braking motion curve; the first motion data is updated based on the braking motion curve to obtain second motion data; motion planning is performed on the target car based on the second motion data and the motion constraint data to obtain a first motion curve; the braking motion curve and the first motion curve are spliced ​​to obtain a target motion curve for the target car. This method can introduce braking processing to perform braking processing on the target car whose first motion data meets preset conditions, so that the target car can perform motion planning with the second motion data, thereby improving the rationality of the car's offline motion planning, thereby reducing the computational load and overcoming the problem that traditional trajectory planning methods cannot perform offline trajectory planning according to any initial motion state. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 is a flow chart of a motion planning method provided in an embodiment of the present application;

[0044] Figure 2 yes Figure 1 Flow chart of step S102 in FIG.

[0045] Figure 3 yes Figure 1 Another flow chart of step S102 in FIG. 1 ;

[0046] Figure 4 yes Figure 1 Flow chart of step S103 in FIG.

[0047] Figure 5 yes Figure 4 Flow chart of step S401 in FIG.

[0048] Figure 6 yes Figure 5 Flow chart of step S502 in FIG.

[0049] Figure 7 is a specific flow chart of the motion planning method provided in the embodiment of the present application;

[0050] Figure 8 is a specific example diagram of a target motion curve provided in an embodiment of the present application;

[0051] Fig. 9 is a specific example diagram of a target motion curve provided by another embodiment of the present application;

[0052] Fig.10 is a schematic diagram of the structure of a motion planning system provided in an embodiment of the present application;

[0053] Fig.11 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0055] It should be noted that, although the functional modules are divided in the system schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the system or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0056] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0057] In the magnetic levitation transmission system, different workstations form different driving sections, and different driving sections may have different constraints on the movement of the car. Therefore, it is often the case that when the car finishes moving in the previous section, the current movement state of the car may not meet the constraints of the new section.

[0058] In related technologies, once the current motion state of the car does not meet the constraints, the offline trajectory planning method will fail, and it is often necessary to use an online method for motion planning. This method has high requirements on acquisition accuracy and computational load, which will greatly increase the difficulty of data acquisition and computational load of motion planning.

[0059] Therefore, the embodiments of the present application propose a motion planning method and system, an electronic device and a storage medium, aiming to improve the rationality of the offline motion planning of the car, thereby reducing the computational load.

[0060] The motion planning method and system, electronic device and storage medium provided in the embodiments of the present application are specifically illustrated through the following embodiments. First, the motion planning method in the embodiments of the present application is described.

[0061] The motion planning method provided in the embodiment of the present application relates to the field of magnetic levitation transmission. The motion planning method provided in the embodiment of the present application can be applied to a terminal, can be applied to a server side, or can be software running in a terminal or a server side. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the server side can be configured as an independent physical server side, or can be configured as a server side cluster or distributed system composed of multiple physical server sides, and can also be configured as a cloud server side that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application that implements the motion planning method, etc., but is not limited to the above forms.

[0062] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0063] It should be noted that in each specific implementation of the present application, when it comes to the need to perform relevant processing based on data related to the identity or characteristics of the object, such as object information, object behavior data, object historical data, and object location information, the permission or consent of the object will be obtained first, and the collection, use, and processing of these data will comply with relevant laws, regulations, and standards. In addition, when the embodiment of the present application needs to obtain sensitive personal information of the object, the separate permission or separate consent of the object will be obtained through a pop-up window or by jumping to a confirmation page. After clearly obtaining the separate permission or separate consent of the object, the necessary object-related data for the normal operation of the embodiment of the present application will be obtained.

[0064] See also Figure 1 , Figure 1 is an optional flowchart of the motion planning method provided in the embodiment of the present application. Figure 1 The method may include but is not limited to steps S101 to S106:

[0065] Step S101, obtaining first motion data and motion constraint data of the target vehicle;

[0066] Step S102, performing braking prediction on the target vehicle based on the first motion data and the preset conditions to obtain a prediction result, where the prediction result is used to indicate that the target vehicle needs braking, or is used to indicate that the target vehicle does not need braking;

[0067] Step S103, if the prediction result indicates that the target car needs to brake, a braking motion curve is generated for the target car according to the first motion data and the motion constraint data to obtain a braking motion curve;

[0068] Step S104, updating the first motion data based on the braking motion curve to obtain second motion data;

[0069] Step S105, performing motion planning for the target vehicle based on the second motion data and the motion constraint data to obtain a first motion curve;

[0070] Step S106, performing curve splicing on the braking motion curve and the first motion curve to obtain a target motion curve of the target vehicle.

[0071] In steps S101 to S106 shown in the embodiment of the present application, first motion data and motion constraint data of the target car are obtained; braking prediction is performed on the target car based on the first motion data and preset conditions to obtain a prediction result, and the prediction result is used to characterize that the target car needs to brake, or is used to characterize that the target car does not need to brake. The braking prediction of the target car can be performed, and it is determined in advance whether the target car needs to brake, so as to avoid the target car performing motion planning with the first motion data not satisfying the motion constraint data. Furthermore, if the prediction result indicates that the target car needs to brake, a braking motion curve is generated for the target car according to the first motion data and the motion constraint data to obtain a braking motion curve; the first motion data is updated based on the braking motion curve to obtain second motion data; motion planning is performed on the target car based on the second motion data and the motion constraint data to obtain a first motion curve; the braking motion curve and the first motion curve are spliced ​​to obtain a target motion curve for the target car. This method can introduce braking processing to perform braking processing on the target car whose first motion data meets preset conditions, so that the target car can perform motion planning with the second motion data, thereby improving the rationality of the car's offline motion planning, thereby reducing the computational load and overcoming the problem that traditional trajectory planning methods cannot perform offline trajectory planning according to any initial motion state.

[0072] First, step S101 will be described.

[0073] In step S101 of some embodiments, the target car refers to a car that needs to be offline motion planned. The first motion data is the initial motion data of the target car, and the first motion data includes the initial position, the end position, the first speed, the first acceleration, and the end speed of the target car, wherein the first speed is the initial speed of the target car, and the first acceleration is the initial acceleration of the target car. The motion constraint data is the motion constraint data of the driving section of the target car, and the motion constraint data includes the maximum allowable acceleration, the maximum allowable acceleration, and the maximum allowable speed. Among them, the initial position can be obtained by a position monitoring device, and the position monitoring device includes at least one of a GPS locator and a visual sensor; the end position and the end speed are pre-set; the initial speed and the initial acceleration can be obtained by a sensor. The motion constraint data is a pre-set parameter of the driving section, which can be stored in the system where the motion planning method is applied, or in other designated spaces, which are not limited here. Accordingly, the pre-set parameters can be obtained from the storage space. Specifically, the initial position is the initial station, the end position is the end station, and the target vehicle's travel between the initial station and the end station is constrained by motion constraint data. The initial position is denoted as q0, the end position is denoted as q1, the first speed is denoted as v0, the first acceleration is denoted as a0, the end speed is denoted as v1, and the maximum allowable jerk is denoted as J max , the maximum permissible acceleration is denoted as a max , the maximum permissible speed is denoted as v max .

[0074] Next, step S102 will be described.

[0075] See also Figure 2 In step S102 of some embodiments, the motion planning method may include but is not limited to steps S201 to S202:

[0076] Step S201, if it is determined that the first speed meets the preset condition, the prediction result indicates that the target vehicle needs to brake;

[0077] Step S202: If it is determined that the first speed does not meet the preset condition, the prediction result indicates that the target vehicle does not need to brake.

[0078] Steps S201 to S202 are described in detail below.

[0079] In step S201 of some embodiments, the preset condition is used to determine whether the target vehicle needs to brake. Specifically, the preset condition may be that the first speed is greater than the maximum allowable speed. The prediction result is used to indicate that the target vehicle needs to brake, or is used to indicate that the target vehicle does not need to brake. After obtaining the first speed and the maximum allowable speed, if it is determined that the first speed meets the preset condition, that is, the first speed is greater than the maximum allowable speed, the prediction result indicates that the target vehicle needs to brake.

[0080] In step S202 of some embodiments, if it is determined that the first speed does not satisfy the preset condition, that is, the first speed is less than or equal to the maximum allowed speed, the prediction result indicates that the target vehicle does not need to brake.

[0081] Through the above steps S201 to S202, the important factor of speed can be considered. When the first speed exceeds the maximum allowable speed, it is determined that braking is required. The movement trend can be quickly predicted according to the speed of the target car and a reasonable braking decision can be made.

[0082] See also Figure 3 In step S102 of some other embodiments, the motion planning method may include but is not limited to steps S301 to S302:

[0083] Step S301, if it is determined that the first speed and the first acceleration meet the preset conditions, the prediction result indicates that the target vehicle needs to brake;

[0084] Step S302: If it is determined that the first speed and the first acceleration do not satisfy the preset conditions, the prediction result indicates that the target vehicle does not need to brake.

[0085] Steps S301 to S302 are described in detail below.

[0086] In step S301 of some embodiments, the preset condition may also be that the first speed is greater than the maximum allowable speed and the first acceleration is not equal to zero, the first speed is greater than the maximum allowable speed and the first acceleration is equal to zero, and the first speed is less than or equal to the maximum allowable speed and the first acceleration is not equal to zero. Specifically, if it is determined that the first speed and the first acceleration meet the preset condition, that is, the first speed is greater than the maximum allowable speed and the first acceleration is not equal to zero, or the first speed is greater than the maximum allowable speed and the first acceleration is equal to zero, or the first speed is less than or equal to the maximum allowable speed and the first acceleration is not equal to zero, then the prediction result indicates that the target vehicle needs to brake.

[0087] In step S302 of some embodiments, if it is determined that the first speed and the first acceleration do not satisfy the preset conditions, that is, the first speed is less than or equal to the maximum allowable speed and the first acceleration is zero, the prediction result indicates that the target vehicle does not need to brake.

[0088] Through the above steps S301 to S302, the two important factors of speed and acceleration can be considered at the same time. Braking is judged not to be necessary only when the first speed is less than or equal to the maximum allowable speed and the first acceleration is equal to zero. The movement trend can be predicted quickly and more accurately based on the speed and acceleration of the target vehicle and a reasonable braking decision can be made.

[0089] Next, step S103 will be described.

[0090] See also Figure 4 In step S103 of some embodiments, the motion planning method may include but is not limited to steps S401 to S403:

[0091] Step S401, updating the first acceleration based on the first speed and the first acceleration to obtain a second acceleration;

[0092] Step S402, calculating the braking time of the target vehicle based on the first speed, the second acceleration, the maximum allowable jerk, the maximum allowable acceleration, and the maximum allowable speed to obtain time data, the time data including a first time when the target vehicle sets the second acceleration to zero, and a second time when the target vehicle decelerates from the first speed to a speed less than the maximum allowable speed;

[0093] Step S403, generating a motion curve based on the first time, the second time, the first speed, the second acceleration, the initial position, the maximum allowable jerk, and the pre-acquired accuracy data to obtain a braking motion curve.

[0094] Steps S401 to S403 are described in detail below.

[0095] See also Figure 5 In step S401 of some embodiments, the motion planning method may include but is not limited to steps S501 to S502:

[0096] Step S501, determining an initial driving state of the target vehicle according to a first speed and a first acceleration;

[0097] Step S502: updating the first acceleration according to the initial driving state to obtain a second acceleration.

[0098] Steps S501 to S502 are described in detail below.

[0099] In step S501 of some embodiments, the initial driving state is used to characterize that the target vehicle is in an accelerating state or a decelerating state. After obtaining the first speed and the first acceleration, the initial driving state of the target vehicle can be determined according to the first speed and the first acceleration. Specifically, if the product of the first speed and the first acceleration is greater than or zero, that is, v0×a0≥0, then it is determined that the initial driving state characterizes that the target vehicle is in an accelerating state. If the product of the first speed and the first acceleration is less than zero, that is, v0×a0<0, then it is determined that the initial driving state characterizes that the target vehicle is in a decelerating state.

[0100] See also Figure 6 In step S502 of some embodiments, the motion planning method may include but is not limited to steps S601 to S602:

[0101] Step S601: if it is determined that the initial driving state indicates that the target vehicle is in an accelerating state, the first acceleration is updated based on a preset function to obtain a second acceleration;

[0102] Step S602: If it is determined that the initial driving state indicates that the target vehicle is in a deceleration state, the first acceleration is determined as the second acceleration.

[0103] Steps S601 to S602 are described in detail below.

[0104] In step S601 of some embodiments, the second acceleration is the initial acceleration of the target vehicle on the braking motion curve. The preset function is used to change the initial acceleration of the target vehicle, and its mathematical expression is shown in formula (1), where Specifically, if it is determined that the initial driving state indicates that the target vehicle is in an accelerating state, the driving module needs to immediately apply a maximum reverse force to the vehicle, and the first acceleration is substituted into formula (1) for calculation to obtain the second acceleration.

[0105]

[0106] In step S602 of some embodiments, if it is determined that the initial driving state indicates that the target vehicle is in a deceleration state, the driving module does not need to apply a reverse force, and the first acceleration is determined as the second acceleration, that is,

[0107] Through the above steps S601 to S602, different driving states of the target car can be distinguished and corresponding acceleration updating methods can be adopted, so that the target car can achieve the effect of setting the acceleration to zero based on the second acceleration.

[0108] Through the above steps S501 to S502, the movement trend of the target car can be more accurately determined based on the speed and acceleration of the target car, and the acceleration can be accurately updated by using the changing rules of speed and acceleration.

[0109] In step S402 of some embodiments, the time data is used to plan the braking motion curve of the target vehicle. The time data includes a first time and a second time, wherein the first time is the time when the target vehicle sets the second acceleration to zero, and the second time is the time when the target vehicle decelerates from the first speed to less than the maximum allowable speed. The first time is recorded as t s1 , the second time is recorded as t s2 The time data is calculated based on the first speed, the second acceleration, the maximum allowable jerk, the maximum allowable acceleration, and the maximum allowable speed for the target vehicle to brake.

[0110] In step S403 of some embodiments, the pre-acquired precision data is the minimum precision of the data type corresponding to the magnetic levitation transmission system, and the precision data is recorded as EPS. The braking motion curve is used to indicate how the target car brakes, and the braking motion curve includes the relationship between the target car's acceleration and time, the relationship between the target car's acceleration and time, the relationship between the target car's speed and time, and the relationship between the target car's displacement and time. The braking motion curve is obtained by generating a motion curve based on the first time, the second time, the first speed, the second acceleration, the initial position, the maximum allowable jerk and the precision data. Specifically, taking the generation of the braking motion curve based on a recursive S-curve braking curve formula as an example, the braking curve formula is divided into two parts, and the specific mathematical expressions are shown in formulas (2) and (3), one part is when time t is in [0, t s1 ], and the other part is at time t (t s1 ,t s2 ]. When 0≤t≤t s1 When t s1 <t≤t s2 , the braking motion curve is generated based on formula (3).

[0111]

[0112] Among them, p(t) refers to the position of the target car at time t; v(t) refers to the speed of the target car at time t; a(t) refers to the acceleration of the target car at time t; J(t) refers to the jerk of the target car at time t.

[0113]

[0114] In other embodiments, the braking motion curve can be generated by a T-curve or a Bayesian curve. In other embodiments, the braking can be controlled mechanically instead of software. The specific braking method can be selected based on the specific application scenario and is not limited here.

[0115] Through the above steps S401 to S403, the physical laws of the actual movement of the target car can be utilized, the influence of the motion constraint data can be taken into account, and the braking motion laws that conform to the actual situation can be generated. Compared with simply using a constant acceleration, the complex deceleration change process of the target car is more accurately simulated.

[0116] Next, step S104 will be described.

[0117] In step S104 of some embodiments, the second motion data is the motion data of the target car when the driving is completed based on the braking motion curve, and the second motion data includes a second position, an end position, a second speed, a third acceleration, and an end speed, wherein the second position is the position of the target car when the driving is completed based on the braking motion curve, the second speed is the speed of the target car when the driving is completed based on the braking motion curve, and the third acceleration is the acceleration of the target car when the driving is completed based on the braking motion curve. Specifically, the second motion data is obtained by updating the first motion data based on the braking motion curve, and serves as the initial motion data for subsequent motion planning. The second position is recorded as q s , the second speed is denoted as v s , the third acceleration is 0, and the ending speed is recorded as v1.

[0118] Next, step S105 will be described.

[0119] In step S105 of some embodiments, the first motion curve is used to indicate that the target car moves from the second position to the end position, and the first motion curve includes the relationship between the target car's acceleration and time, the relationship between the target car's acceleration and time, the relationship between the target car's speed and time, and the relationship between the target car's displacement and time. The first motion curve can be obtained by motion planning based on the time-optimal seven-segment planning method, which is also called the standard symmetrical seven-segment S-curve speed planning method. Specifically, assuming that the first motion curve includes an acceleration segment, a uniform acceleration segment, a deceleration segment, a uniform speed segment, an acceleration and deceleration segment, a uniform deceleration segment, and a deceleration and deceleration segment, the acceleration time t is calculated according to the standard symmetrical seven-segment S-curve speed planning method. ja , acceleration time t a , constant speed time t v , deceleration time t jd , and deceleration time t d, and generate the first motion curve based on the S-curve speed planning formula. The mathematical expression of the S-curve speed planning formula is shown in formulas (4) to (10). Let t ′ =tt s2 The motion curve of the acceleration segment is generated based on formula (4), the motion curve of the uniform acceleration segment is generated based on formula (5), the motion curve of the deceleration segment is generated based on formula (6), the motion curve of the uniform speed segment is generated based on formula (7), the motion curve of the acceleration and deceleration segment is generated based on formula (8), the motion curve of the uniform deceleration segment is generated based on formula (9), and the motion curve of the deceleration segment is generated based on formula (10).

[0120]

[0121]

[0122] Here, alim a refers to the maximum acceleration of the target car based on the first motion curve.

[0123]

[0124] Among them, v lim Refers to the speed of the target car in the uniform speed section.

[0125]

[0126]

[0127] Wherein, T refers to the total time that the target car travels based on the first motion curve.

[0128]

[0129] Here, alim d refers to the minimum acceleration of the target car based on the first motion curve.

[0130]

[0131] It should be noted that, since the acceleration of the target car is set to zero in advance through braking planning, the standard symmetrical 7-segment S-curve speed planning method can be used for subsequent motion planning, thereby achieving the optimal time effect of the overall motion planning.

[0132] Next, step S106 will be described.

[0133] In step S106 of some embodiments, the target motion curve is used to indicate the movement of the target car from the initial position to the end position, and the target motion curve includes the relationship between the target car acceleration and time, the relationship between the target car acceleration and time, the relationship between the target car speed and time, and the relationship between the target car displacement and time. Curve splicing can splice the braking motion curve and the first motion curve based on the parameter type of the motion curve, so as to obtain the target motion curve of the target car, that is, the braking motion curve and the first motion curve both include four types of motion curve parameter types, namely, the curve of the target car acceleration and time, the curve of the target car acceleration and time, the curve of the target car speed and time, and the curve of the target car displacement and time. The curve of the target car acceleration and time in the braking motion curve is spliced ​​with the curve of the target car acceleration and time in the first motion curve; the curve of the target car acceleration and time in the braking motion curve is spliced ​​with the curve of the target car acceleration and time in the first motion curve; the curve of the target car speed and time in the braking motion curve is spliced ​​with the curve of the target car speed and time in the first motion curve; the curve of the target car displacement and time in the braking motion curve is spliced ​​with the curve of the displacement and time in the first motion curve, so as to obtain the target motion curve. Specifically, since the braking motion curve is located before the first motion curve in time, the predetermined splicing sequence can be set to splice the braking motion curve before the first motion curve, and splice the braking motion curve and the first motion curve based on the predetermined splicing sequence.

[0134] In other embodiments, if the prediction result indicates that the target car does not need to brake, motion planning is performed on the target car based on the first motion data and the motion constraint data to obtain a target motion curve of the target car. At this time, the target motion curve does not include a braking motion curve.

[0135] See also Figure 7 , Figure 7It is a specific flow chart of the motion planning method provided by the embodiment of the present application. First, the first motion data and motion constraint data are input, and its specific implementation process is similar to the specific implementation process of step S101, which will not be repeated here. Secondly, it is determined whether the first motion data meets the preset conditions, and its specific implementation process is similar to the specific implementation process of step S102, which will not be repeated here. Then, if the first motion data meets the preset conditions, the first time and the second time are calculated to obtain the braking motion curve, and its specific implementation process is similar to the specific implementation process of steps S401 to S403, which will not be repeated here. After obtaining the braking motion curve, the first motion data is updated to obtain the second motion data, and its specific implementation process is similar to the specific implementation process of step S104, which will not be repeated here. If the first motion data does not meet the preset conditions, the acceleration time, acceleration time, constant speed time, deceleration time, and deceleration time are calculated, and then the target motion curve is calculated, and its specific implementation process is similar to the specific implementation process of steps S105 to S106, which will not be repeated here.

[0136] See also Figure 8 , Figure 8 It is a specific example diagram of the target motion curve provided in the embodiment of the present application. Figure 8 The first motion data and motion constraint data of the corresponding embodiment are set to q0=0m, q1=10m, v0=4m / s, a0=0.5m / s 2 , v1=1m / s, J max =3m / s 3 , a max =2m / s 2 , v max =3m / s. In this case, the initial acceleration is positive, that is, the initial driving state indicates that the target vehicle is in an accelerating state. Therefore, this embodiment requires the driving module to provide a reverse force to cause a sudden change in acceleration, thereby causing the target vehicle to decelerate immediately.

[0137] See also Fig. 9 , Fig. 9 It is a specific example diagram of a target motion curve provided by another embodiment of the present application. Fig. 9 The first motion data and motion constraint data of the corresponding embodiment are set to q0=0m, q1=10m, v0=4m / s, a0=-2m / s 2 , v1=1m / s, J max =3m / s 3 , a max =2m / s 2 , v max=3m / s. In this case, the initial acceleration is negative, that is, the initial driving state indicates that the target car is in a deceleration state. Therefore, in this embodiment, the driving module does not need to provide a reverse force to cause a sudden change in acceleration. The target car can be decelerated by continuing to drive according to a0.

[0138] It should be noted that the motion planning method provided in this application is applicable to the application scenario where the target car travels across road sections. Assume that the target car's travel sections include road section A, road section B, and road section C. The target car passes through road section A, road section B, and road section C in sequence. Each road section has a road section start position and a road section end position. The initial position of the target car is the start position of road section A, and the end position of the target car is the end position of road section C. The first speed of the target car is the speed of the target car at the start position of road section A. The first acceleration of the target car is the acceleration of the target car at the start position of road section A. The end speed of the target car is is the preset target vehicle speed at the end position of section C, wherein the motion constraint data of sections A and B are the same, but are different from the motion constraint data of section C. The driving section is first divided into sections according to the motion constraint data. Since the motion constraint data of sections A and B are the same and sections A and B are connected, sections A and B are regarded as one section and recorded as the first section. Since the motion constraint data of section C is different from that of the first section, section C is regarded as one section and recorded as the second section.

[0139] Secondly, the motion planning method provided by the present application is applied to the first section and the second section respectively. Specifically, in the first section, the starting position of section A is the initial position, the ending position of section B is the ending position, the ending speed can be set to any speed less than the maximum allowed speed of section B, the speed at the starting position of section A is the first speed, the acceleration at the starting position of section A is the first acceleration, and the motion constraint data is the motion constraint data corresponding to the first section. The subsequent specific implementation process is similar to the specific implementation process of steps S101 to S106, which will not be repeated here.

[0140] In the second section, the starting position of section C is the initial position, the ending position of section C is the ending position, the ending speed is the pre-set speed of the target vehicle at the ending position of section C, the speed at the ending position of section B is the first speed, and the acceleration at the ending position of section B is the first acceleration. At this time, the motion constraint data is the motion constraint data corresponding to the second section, and the first speed and the first acceleration can be obtained through the target motion curve generated corresponding to the first section. The subsequent specific implementation process is similar to the specific implementation process of steps S101 to S106, and will not be repeated here.

[0141] After the target motion curve corresponding to the first section and the target motion curve corresponding to the second section are acquired, the cross-section target motion curve can be acquired by splicing the target motion curve corresponding to the first section and the target motion curve corresponding to the second section.

[0142] In the application scenario of cross-section driving, that is, in the specific scenario where the motion constraint data is different motion constraint data for multiple sections, the motion planning method provided in this application can ensure that the current motion state of the target vehicle does not exceed the constraints of the new section when changing sections.

[0143] See also Fig.10 The present application also provides a motion planning system that can implement the above motion planning method. The system includes:

[0144] The data acquisition module 1001 is used to acquire the first motion data and motion constraint data of the target vehicle;

[0145] A braking prediction module 1002 is used to perform braking prediction on the target vehicle based on the first motion data and a preset condition to obtain a prediction result, where the prediction result is used to indicate that the target vehicle needs braking, or is used to indicate that the target vehicle does not need braking;

[0146] A braking motion curve generating module 1003 is used to generate a braking motion curve for the target vehicle according to the first motion data and the motion constraint data to obtain a braking motion curve if the prediction result indicates that the target vehicle needs to brake;

[0147] A data updating module 1004 is used to update the first motion data based on the braking motion curve to obtain second motion data;

[0148] A first motion curve generating module 1005 is used to perform motion planning on the target vehicle based on the second motion data and the motion constraint data to obtain a first motion curve;

[0149] The motion curve splicing module 1006 is used to perform curve splicing on the braking motion curve and the first motion curve to obtain a target motion curve of the target vehicle.

[0150] The specific implementation of the motion planning system is basically the same as the specific implementation of the above-mentioned motion planning method, and will not be repeated here.

[0151] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above motion planning method when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.

[0152] See also Fig.11 , Fig.11 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0153] The processor 1101 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0154] The memory 1102 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1102 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1102, and the processor 1101 calls and executes the motion planning method of the embodiment of this application;

[0155] Input / output interface 1103, used to implement information input and output;

[0156] The communication interface 1104 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, Wi-Fi, Bluetooth, etc.);

[0157] A bus 1105 that transmits information between various components of the device (e.g., the processor 1101, the memory 1102, the input / output interface 1103, and the communication interface 1104);

[0158] The processor 1101 , the memory 1102 , the input / output interface 1103 and the communication interface 1104 are connected to each other in communication within the device via the bus 1105 .

[0159] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned motion planning method is implemented.

[0160] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0161] The motion planning method, motion planning system, electronic device and storage medium provided in the embodiments of the present application obtain first motion data and motion constraint data of a target car; based on the first motion data and preset conditions, a braking prediction is performed on the target car to obtain a prediction result, and the prediction result is used to characterize that the target car needs to brake, or is used to characterize that the target car does not need to brake. The braking prediction of the target car can be performed, and it is determined in advance whether the target car needs to brake, so as to avoid the target car performing motion planning with the first motion data not satisfying the motion constraint data. Furthermore, if the prediction result indicates that the target car needs to brake, a braking motion curve is generated for the target car according to the first motion data and the motion constraint data to obtain a braking motion curve; the first motion data is updated based on the braking motion curve to obtain second motion data; motion planning is performed on the target car based on the second motion data and the motion constraint data to obtain a first motion curve; the braking motion curve and the first motion curve are spliced ​​to obtain a target motion curve for the target car. This method can introduce braking processing to perform braking processing on the target car whose first motion data meets preset conditions, so that the target car can perform motion planning with the second motion data, thereby improving the rationality of the car's offline motion planning, thereby reducing the computational load and overcoming the problem that traditional trajectory planning methods cannot perform offline trajectory planning according to any initial motion state.

[0162] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0163] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0164] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0165] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0166] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0167] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0168] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0169] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0170] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A motion planning method, characterized in that: The method comprises: Acquire first motion data and motion constraint data of the target vehicle, wherein the first motion data includes an initial position, a first speed, and a first acceleration of the target vehicle, and the motion constraint data includes a maximum allowable jerk, a maximum allowable acceleration, and a maximum allowable speed; Based on the first motion data and the preset condition, a braking prediction is performed on the target vehicle to obtain a prediction result, wherein the prediction result is used to indicate that the target vehicle needs braking, or is used to indicate that the target vehicle does not need braking; If the prediction result indicates that the target vehicle needs to brake, a braking motion curve is generated for the target vehicle according to the first motion data and the motion constraint data to obtain a braking motion curve; Based on the braking motion curve, the first motion data is updated to obtain second motion data; Performing motion planning on the target vehicle based on the second motion data and the motion constraint data to obtain a first motion curve; Performing curve splicing on the braking motion curve and the first motion curve to obtain a target motion curve of the target vehicle; The step of generating a braking motion curve for the target vehicle according to the first motion data and the motion constraint data to obtain a braking motion curve includes: updating the first acceleration based on the first speed and the first acceleration to obtain a second acceleration; Calculate the braking time of the target vehicle based on the first speed, the second acceleration, the maximum allowable jerk, the maximum allowable acceleration, and the maximum allowable speed to obtain time data, the time data including a first time when the target vehicle sets the second acceleration to zero, and a second time when the target vehicle decelerates from the first speed to a speed less than the maximum allowable speed; A motion curve is generated based on the first time, the second time, the first speed, the second acceleration, the initial position, the maximum allowable jerk, and pre-acquired accuracy data to obtain a braking motion curve.

2. A motion planning method according to claim 1, characterized in that: The first motion data includes a first speed of the target vehicle; The step of performing braking prediction on the target vehicle based on the first motion data and the preset conditions to obtain a prediction result includes: If it is determined that the first speed meets the preset condition, then the prediction result indicates that the target vehicle needs to brake; If it is determined that the first speed does not satisfy the preset condition, the prediction result indicates that the target vehicle does not need to brake.

3. A motion planning method according to claim 1, characterized in that: The first motion data includes a first speed and a first acceleration of the target vehicle; The step of performing braking prediction on the target vehicle based on the first motion data and the preset conditions to obtain a prediction result includes: If it is determined that the first speed and the first acceleration meet the preset condition, then the prediction result indicates that the target vehicle needs to brake; If it is determined that the first speed and the first acceleration do not satisfy the preset condition, the prediction result indicates that the target vehicle does not need to brake.

4. A motion planning method according to claim 1, characterized in that: The updating the first acceleration based on the first speed and the first acceleration to obtain a second acceleration includes: Determining an initial driving state of the target vehicle according to the first speed and the first acceleration; The first acceleration is updated according to the initial driving state to obtain the second acceleration.

5. A motion planning method according to claim 4, characterized in that: The initial driving state is used to indicate that the target vehicle is in an accelerating state or a decelerating state, and the updating of the first acceleration according to the initial driving state to obtain the second acceleration includes: If it is determined that the initial driving state indicates that the target vehicle is in an accelerating state, the first acceleration is updated based on a preset function to obtain the second acceleration; If it is determined that the initial driving state indicates that the target vehicle is in a deceleration state, the first acceleration is determined as the second acceleration.

6. A motion planning method according to any one of claims 1 to 5, characterized in that: After performing braking prediction on the target vehicle based on the first motion data and the preset conditions to obtain a prediction result, the method further includes: If the prediction result indicates that the target car does not need to brake, motion planning is performed on the target car based on the first motion data and the motion constraint data to obtain a target motion curve of the target car.

7. A motion planning system, the motion planning system being applied to the motion planning method according to any one of claims 1 to 6, characterized in that: The system comprises: A data acquisition module, used to acquire first motion data and motion constraint data of the target vehicle; A braking prediction module, used for performing braking prediction on the target vehicle based on the first motion data and a preset condition to obtain a prediction result, wherein the prediction result is used to indicate that the target vehicle needs braking, or is used to indicate that the target vehicle does not need braking; A braking motion curve generating module, configured to generate a braking motion curve for the target vehicle according to the first motion data and the motion constraint data to obtain a braking motion curve if the prediction result indicates that the target vehicle needs to brake; A data updating module, configured to update the first motion data based on the braking motion curve to obtain the second motion data; A first motion curve generating module, used for performing motion planning for the target vehicle based on the second motion data and the motion constraint data to obtain a first motion curve; The motion curve splicing module is used to perform curve splicing on the braking motion curve and the first motion curve to obtain a target motion curve of the target vehicle.

8. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements a motion planning method according to any one of claims 1 to 6 when executing the computer program.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, a motion planning method according to any one of claims 1 to 6 is implemented.