Trajectory planning method, device, motion equipment and computer-readable storage medium
By obtaining the trajectory and vibration prediction model of the moving equipment and constructing the optimization objective function, it solves the problem of difficulty in trajectory planning taking into account accuracy, smoothness and vibration energy in the existing technology, realizes an efficient trajectory planning method, and significantly reduces vibration energy.
Patent Information
- Application Number
- CN202210237630.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-11
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-03-11
AI Technical Summary
Existing trajectory planning technology cannot take into account the accuracy, smoothness and vibration energy suppression of the trajectory, and cannot effectively solve the long-term problems of vibration suppression and trajectory planning time.
By obtaining the trajectory prediction model and vibration prediction model of the moving equipment, an optimization objective function is constructed based on the initial state quantity and initial vibration energy, and the optimized trajectory from the initial position to the target position is determined. Multiple prediction velocities are obtained by combining the trajectory prediction model and vibration prediction model. , position and vibration energy, and construct an optimization objective function to obtain a trajectory that takes into account accuracy, smoothness and low vibration.
It achieves a significant reduction in vibration energy and improves the efficiency and effect of trajectory planning while ensuring trajectory accuracy and smoothness.
Smart Images

Figure CN114527769B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of robotics, and in particular to a trajectory planning method, apparatus, motion equipment, and computer-readable storage medium. Background Art
[0002] The existing solutions for vibration suppression using trajectory planning mainly include trajectory input shaping and trajectory high-order smoothing. Trajectory input shaping uses waveform cancellation in the frequency domain to simply and effectively suppress vibration, but it prolongs the overall time of trajectory planning; trajectory high-order smoothing uses high-order curves to smooth the trajectory, but there are also limitations in engineering implementation. The existing trajectory planning technology has the problem of not being able to take into account accuracy, smoothness, and low vibration energy. Summary of the invention
[0003] In order to solve the above technical problems, the embodiments of the present application provide a trajectory planning method, apparatus, motion equipment and computer-readable storage medium.
[0004] In a first aspect, an embodiment of the present application provides a trajectory planning method, the method comprising:
[0005] Obtain trajectory prediction model and vibration prediction model of motion equipment;
[0006] Acquiring initial motion parameters of the motion device at an initial position, wherein the initial motion parameters include an initial state quantity and an initial vibration energy;
[0007] Acquire a plurality of predicted speeds and a plurality of predicted positions based on the initial state quantity and the trajectory prediction model;
[0008] acquiring a plurality of predicted vibration energies based on the initial vibration energy and the vibration prediction model;
[0009] Acquire a target position of the motion device, and construct an optimization objective function based on the target position, a plurality of the predicted speeds, a plurality of the predicted positions, and a plurality of the predicted vibration energies;
[0010] An optimized trajectory from the initial position to the target position is determined based on the optimization objective function.
[0011] In a second aspect, an embodiment of the present application provides a trajectory planning device, the device comprising:
[0012] A first acquisition module, used to acquire a trajectory prediction model and a vibration prediction model of a motion device;
[0013] A second acquisition module is used to acquire initial motion parameters of the motion device at an initial position, wherein the initial motion parameters include an initial state quantity and an initial vibration energy;
[0014] A first determination module, configured to determine a plurality of predicted speeds and a plurality of predicted positions based on the initial state quantity and the trajectory prediction model;
[0015] a second determination module, configured to determine a plurality of predicted vibration energies based on the initial vibration energy and the vibration prediction model;
[0016] A construction module, used for obtaining a target position of the motion device, and constructing an optimization objective function based on the target position, a plurality of the predicted speeds, a plurality of the predicted positions, and a plurality of the predicted vibration energies;
[0017] The third determination module is used to determine the optimized trajectory from the initial position to the target position based on the optimization objective function.
[0018] In a third aspect, an embodiment of the present application provides a motion device, including a memory and a processor, wherein the memory is used to store a computer program, and when the computer program is run by the processor, the trajectory planning method provided in the first aspect is executed.
[0019] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, which executes the trajectory planning method provided in the first aspect when running on a processor.
[0020] The trajectory planning method, device and motion equipment provided by the present application above obtain the trajectory prediction model and vibration prediction model of the motion equipment; obtain the initial motion parameters of the motion equipment in the initial position, the initial motion parameters include the initial state quantity and the initial vibration energy; obtain multiple predicted speeds and multiple predicted positions based on the initial state quantity and the trajectory prediction model; obtain multiple predicted vibration energies based on the initial vibration energy and the vibration prediction model; obtain the target position of the motion equipment, and construct an optimization objective function based on the target position, multiple predicted speeds, multiple predicted positions and multiple predicted vibration energies; determine the optimized trajectory from the initial position to the target position based on the optimization objective function. In this way, by obtaining multiple predicted speeds, multiple predicted positions, and multiple predicted vibration energies based on the trajectory prediction model and the vibration prediction model, and constructing an optimization objective function based on multiple predicted speeds, multiple predicted positions, and multiple predicted vibration energies, an optimized trajectory that takes into account position accuracy, trajectory smoothness, and excites less vibration is obtained based on the optimization objective function. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solution of the present application, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present application and should not be regarded as limiting the scope of protection of the present application. In each of the drawings, similar components are numbered similarly.
[0022] Figure 1 A schematic diagram of a process of a trajectory planning method provided by an embodiment of the present application is shown;
[0023] Figure 2 A schematic diagram of the structure of a motion system provided by an embodiment of the present application is shown;
[0024] Figure 3 A structural schematic diagram of a trajectory planning device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0025] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
[0026] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0027] Hereinafter, the terms "including", "having" and their cognates, which may be used in various embodiments of the present application, are intended only to indicate specific features, numbers, steps, operations, elements, components, or combinations of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing items or adding the possibility of one or more features, numbers, steps, operations, elements, components, or combinations of the foregoing items.
[0028] Furthermore, the terms “first”, “second”, “third”, etc. are merely used for distinguishing descriptions and are not to be understood as indicating or implying relative importance.
[0029] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present application.
[0030] Example 1
[0031] An embodiment of the present disclosure provides a trajectory planning method.
[0032] For details, see Figure 1 , trajectory planning methods include:
[0033] Step S101, obtaining a trajectory prediction model and a vibration prediction model of a moving device.
[0034] In this embodiment, the motion device can be a mobile robot, a motion mechanism, etc., which is not limited here. The motion device will vibrate during the motion process, which will affect the motion device. In order to effectively take into account the planning requirements of trajectory planning accuracy, smoothness, and relatively small vibration energy, it is necessary to obtain a trajectory prediction model and a vibration prediction model, combine the trajectory prediction model to predict multiple state quantities, and combine the vibration prediction model to predict multiple vibration quantities, and comprehensively consider multiple state quantities and multiple vibration quantities to optimize the trajectory. Among them, the trajectory prediction model includes a position prediction sub-model, a velocity prediction sub-model, and an acceleration prediction sub-model. The state quantities include position, velocity, acceleration, etc., which are not limited here.
[0035] In one embodiment, step S101 includes the following steps:
[0036] Acquire a trajectory prediction model based on the current state quantity and the next state quantity of the motion device;
[0037] A vibration prediction model is obtained based on the dynamic characteristics of the sports equipment.
[0038] In one embodiment, the trajectory prediction model includes a position prediction sub-model, a speed prediction sub-model and an acceleration prediction sub-model, and the current state quantity includes a current position, a current speed, a current acceleration and a current jerk;
[0039] The next state quantity includes the next position, the next speed, the next acceleration and the next jerk;
[0040] The step of acquiring a trajectory prediction model based on the current state quantity and the next state quantity of the motion device comprises:
[0041] constructing the position prediction sub-model based on the current position, the current speed, the current acceleration, the current jerk and the next position;
[0042] constructing the speed prediction sub-model based on the current speed, the current acceleration, the current jerk and the next speed;
[0043] The acceleration prediction sub-model is constructed based on the current acceleration, the current jerk and the next acceleration.
[0044] In one embodiment, the specific process of constructing the position prediction sub-model is: integrating the current speed to obtain a first expression, integrating the current acceleration twice and multiplying it by To get the second expression, integrate the current jerk twice and multiply it by The third expression is obtained, and the first expression, the second expression, the third expression and the current position are added to obtain a position prediction sub-model.
[0045] Specifically, the location prediction sub-model includes the following formula 1:
[0046] Formula 1:
[0047] Among them, p i+1 Indicates the next position, p i Indicates the current position, v i Indicates the current speed, a i represents the current acceleration, j i represents the current jerk, and t represents the time.
[0048] In one embodiment, the specific process of constructing the speed prediction sub-model is: integrating the current acceleration to obtain the fourth expression, integrating the current jerk twice and multiplying it by The fifth expression is obtained, and the fourth expression, the fifth expression and the current speed are added to obtain the speed prediction sub-model.
[0049] Specifically, the speed prediction sub-model includes the following formula 2:
[0050] Formula 2:
[0051] Among them, v i+1 Indicates the next speed, v i Indicates the current speed, a i represents the current acceleration, j i represents the current jerk, and t represents the time.
[0052] In one embodiment, the specific process of constructing the acceleration prediction sub-model is: integrating the current jerk to obtain a sixth expression, and adding the sixth expression to the current acceleration to obtain the acceleration prediction sub-model.
[0053] Specifically, the acceleration prediction sub-model includes the following formula 3:
[0054] Formula 3:a i+1 =a i +j i dt;
[0055] Among them, a i+1 represents the next acceleration, a i represents the current acceleration, j i represents the current jerk, and t represents the time.
[0056] In one embodiment, the step of acquiring a vibration prediction model based on the dynamic characteristics of the sports equipment includes:
[0057] Acquire the mass and current vibration amount of the motion device, and determine the dynamic equation of the motion device based on the mass, the current acceleration, the current vibration amount, the first-order derivative of the current vibration amount, and the second-order derivative of the vibration amount;
[0058] Determine a first relational expression of the current vibration amount and a second relational expression of a first-order derivative of the current vibration amount based on the dynamic equation;
[0059] The vibration prediction model is determined based on the first relational expression, the second relational expression, the mass, and gravitational acceleration.
[0060] In engineering practice, the dynamic response of a motion system is mainly affected by its first-order mode. Usually, the flexible motion system can be expressed as Figure 2 In the dual mass block system shown, the relative displacement of the first mass block m relative to the second mass block M is y, k is the stiffness of the motion system, and c is the damping of the motion system. It should be noted that the first-order mode refers to the vibration form when the excitation frequency of the external force is equal to the natural frequency of the object. Figure 2 The dynamic equation of the dual mass system shown is the following equation 4:
[0061] Formula 4:
[0062] Among them, m represents the mass block, a i represents the current acceleration, c is the damping of the motion system, k is the stiffness of the motion system, y i is the current vibration amount, Yes i The first derivative of The physical meaning is the current vibration speed, Yes i The second-order derivative of The physical meaning of is the current vibration acceleration.
[0063] According to formula 4, the following formulas 5 and 6 can be derived:
[0064] Formula 5: y i =f1(a i );y i is the current vibration amount, f1(a i ) is an expression for the current acceleration derived from Formula 4;
[0065] Formula 6: is the current vibration speed, f2(a i ) is the expression for the current acceleration derived from Formula 5.
[0066] Specifically, the vibration prediction model includes the following formula 7:
[0067] Formula 7:
[0068] Among them, e i represents the current vibration energy, m represents the mass, g represents the acceleration of gravity, y represents the i is the current vibration amount.
[0069] Step S102, obtaining initial motion parameters of the motion device at an initial position, wherein the initial motion parameters include an initial state quantity and an initial vibration energy.
[0070] In this embodiment, the motion device can be started in a stationary state and move to the target position to be reached, or the motion device can move to the target position from a corresponding position at a certain moment during the motion process. The initial motion parameters may include an initial position, an initial velocity, an initial acceleration, and an initial jerk, which are not limited here.
[0071] Step S103, obtaining a plurality of predicted speeds and a plurality of predicted positions based on the initial state quantity and the trajectory prediction model.
[0072] In this embodiment, multiple predicted positions, multiple predicted speeds, and multiple predicted accelerations can be determined by combining the initial state quantity with Formula 1, Formula 2, and Formula 3. Multiple predicted positions, multiple predicted speeds, and multiple predicted accelerations can be expressed in matrix form as follows:
[0073] Formula 8: P k =T p J k +Bp ;
[0074] Formula 9: V k =T v J k +B v ;
[0075] Formula 10: A k =T a J k +B a ;
[0076] Among them, P k =[p i p i+1 p i+2 ···p i+k ] T , V k =[v i v i+1 v i+2 ···v i+k ] T , A k =[a i a i+1 a i+2 ···a i+k ] T ; T p , B p 、T v , B v 、T a , B a , is the parameter matrix, the number of rows of Tp, Tv, Ta and P k ,V k ,A k The number of rows is the same as J. k The number of rows is the same as that of . The elements are composed of t, which is the calculation organized into a matrix form after the trajectory prediction model is derived. It can also be understood as the matrix form of multiple trajectory prediction models.
[0077] B p ,B v ,B a The number of rows and P k ,V k ,A k The number of rows is the same, the number of columns is 1, and it is the initial value of each iteration.
[0078] Step S104: acquiring a plurality of predicted vibration energies based on the initial vibration energy and the vibration prediction model.
[0079] Specifically, multiple predicted vibration energies are determined according to the initial vibration energy and Formula 7. The multiple predicted vibration energies can be represented by a matrix, Ek =[e i e i+1 e i+2 ···e i+k ] T , E k represents the vibration energy matrix, e i 、e i+1 、e i+2 、···、e i+k Represents multiple predicted vibrational energies.
[0080] Step S105, obtaining a target position of the motion device, and constructing an optimization objective function based on the target position, a plurality of the predicted speeds, a plurality of the predicted positions, and a plurality of the predicted vibration energies.
[0081] In one embodiment, step S105 includes the following steps:
[0082] An optimization objective function is constructed based on the sum of squares of errors between the target position and the plurality of predicted positions, the sum of squares of the plurality of predicted velocities, and the sum of squares of the plurality of predicted vibration energies.
[0083] In one embodiment, constructing an optimization objective function based on the sum of squares of errors between the target position and the plurality of predicted positions, the sum of squares of the plurality of predicted velocities, and the sum of squares of the plurality of predicted vibration energies comprises:
[0084] Obtaining a first weight parameter, a second weight parameter, and a third weight parameter;
[0085] Multiplying the sum of squares of errors between the target position and the plurality of predicted positions by the first weight parameter to obtain a first expression;
[0086] Multiplying the sum of squares of a plurality of the predicted speeds by the second weight to obtain a second expression;
[0087] multiplying the sum of the squares of the plurality of predicted vibration energies by the third weight parameter to obtain a third expression;
[0088] An optimization objective function is constructed based on the first expression, the second expression and the third expression.
[0089] Among them, the first weight parameter, the second weight parameter, and the third weight parameter may be parameters determined based on experience.
[0090] Specifically, the optimization objective function includes the following formula 11:
[0091] Formula 11:
[0092] Wherein, ω1 represents the first weight parameter, ω2 represents the second weight parameter, and ω3 represents the third weight parameter. k -P obj ) T (P k -P obj ) represents the square of the position error, V k T V is the square of velocity, E k T E k It refers to the square of vibration energy. Based on the optimization objective function composed of the square of position error, the square of velocity, and the square of vibration energy, and setting the upper and lower limits of velocity, acceleration, and jerk, it can effectively solve the trajectory that takes into account accuracy, smoothness, and low vibration energy. The jerk can be called acceleration.
[0093] Step S106, determining an optimized trajectory from the initial position to the target position based on the optimization objective function.
[0094] In one implementation, step S106 may include the following steps:
[0095] Calculating the minimum function result of the optimization objective function;
[0096] Acquire an intermediate state quantity corresponding to the minimum function result, wherein the intermediate state quantity includes a plurality of intermediate positions between the initial position and the target position, and a target speed at each intermediate position;
[0097] The optimized trajectory is generated according to the initial position, the target position, a plurality of the intermediate positions, and a plurality of the target speeds.
[0098] For example, the calculation and solution process according to the optimization objective function is implemented using the qp solution library, which is a standard calculation tool and will not be described in detail here. The trajectory parameters include trajectory information such as multiple position points (Pk) on the trajectory line from the initial position to the target position and their corresponding speeds (Vk).
[0099] The trajectory planning method provided in this embodiment obtains a trajectory prediction model and a vibration prediction model of a moving device; obtains initial motion parameters of the moving device at an initial position, wherein the initial motion parameters include an initial state quantity and an initial vibration energy; obtains multiple predicted speeds and multiple predicted positions based on the initial state quantity and the trajectory prediction model; obtains multiple predicted vibration energies based on the initial vibration energy and the vibration prediction model; obtains a target position of the moving device, and constructs an optimization objective function based on the target position, multiple predicted speeds, multiple predicted positions, and multiple predicted vibration energies; and determines an optimized trajectory from the initial position to the target position based on the optimization objective function. In this way, by obtaining multiple predicted speeds, multiple predicted positions, and multiple predicted vibration energies based on the trajectory prediction model and the vibration prediction model, and constructing an optimization objective function based on multiple predicted speeds, multiple predicted positions, and multiple predicted vibration energies, an optimized trajectory that takes into account position accuracy, trajectory smoothness, and induces less vibration is obtained based on the optimization objective function.
[0100] Example 2
[0101] In addition, an embodiment of the present disclosure provides a trajectory planning device.
[0102] For details, see Figure 3 , the trajectory planning device 300 includes:
[0103] A first acquisition module 301 is used to acquire a trajectory prediction model and a vibration prediction model of a motion device;
[0104] A second acquisition module 302 is used to acquire initial motion parameters of the motion device at an initial position, wherein the initial motion parameters include an initial state quantity and an initial vibration energy;
[0105] A first determination module 303, configured to determine a plurality of predicted speeds and a plurality of predicted positions based on the initial state quantity and the trajectory prediction model;
[0106] A second determination module 304, configured to determine a plurality of predicted vibration energies based on the initial vibration energy and the vibration prediction model;
[0107] A construction module 305 is used to obtain a target position of the motion device, and to construct an optimization objective function based on the target position, a plurality of the predicted speeds, a plurality of the predicted positions, and a plurality of the predicted vibration energies;
[0108] The third determination module 306 is used to determine the optimized trajectory from the initial position to the target position based on the optimization objective function.
[0109] In one embodiment, the first acquisition module 301 is further used to acquire a trajectory prediction model based on the current state quantity and the next state quantity of the motion device;
[0110] A vibration prediction model is obtained based on the dynamic characteristics of the sports equipment.
[0111] In one embodiment, the trajectory prediction model includes a position prediction sub-model, a speed prediction sub-model and an acceleration prediction sub-model, and the current state quantity includes a current position, a current speed, a current acceleration and a current jerk;
[0112] The next state quantity includes the next position, the next speed, the next acceleration and the next jerk;
[0113] The first acquisition module 301 is further used to construct the position prediction sub-model based on the current position, the current speed, the current acceleration, the current jerk and the next position;
[0114] constructing the speed prediction sub-model based on the current speed, the current acceleration, the current jerk and the next speed;
[0115] The acceleration prediction sub-model is constructed based on the current acceleration, the current jerk and the next acceleration.
[0116] In one embodiment, the first acquisition module 301 is further used to acquire the mass and current vibration amount of the sports device, and determine the dynamic equation of the sports device based on the mass, the current acceleration, the current vibration amount, the first-order derivative of the current vibration amount, and the second-order derivative of the vibration amount;
[0117] Determine a first relational expression of the current vibration amount and a second relational expression of a first-order derivative of the current vibration amount based on the dynamic equation;
[0118] The vibration prediction model is determined based on the first relational expression, the second relational expression, the mass, and gravitational acceleration.
[0119] In one embodiment, the construction module 305 is further used to construct an optimization objective function based on the sum of squares of errors between the target position and the multiple predicted positions, the sum of squares of the multiple predicted velocities, and the sum of squares of the multiple predicted vibration energies.
[0120] In one embodiment, the construction module 305 is further used to obtain the first weight parameter, the second weight parameter, and the third weight parameter;
[0121] Multiplying the sum of squares of errors between the target position and the plurality of predicted positions by the first weight parameter to obtain a first expression;
[0122] Multiplying the sum of squares of a plurality of the predicted speeds by the second weight to obtain a second expression;
[0123] multiplying the sum of the squares of the plurality of predicted vibration energies by the third weight parameter to obtain a third expression;
[0124] An optimization objective function is constructed based on the first expression, the second expression and the third expression.
[0125] In one embodiment, the third determination module 306 is further used to calculate the minimum function result of the optimization objective function;
[0126] Acquire an intermediate state quantity corresponding to the minimum function result, wherein the intermediate state quantity includes a plurality of intermediate positions between the initial position and the target position, and a target speed at each intermediate position;
[0127] The optimized trajectory is generated according to the initial position, the target position, a plurality of the intermediate positions, and a plurality of the target speeds.
[0128] The trajectory planning device provided in this embodiment can implement the trajectory planning method shown in Example 1, and will not be described again here to avoid repetition.
[0129] Example 3
[0130] In addition, an embodiment of the present disclosure provides a sports device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the trajectory planning method provided in Example 1 is executed.
[0131] The sports device provided in this embodiment can implement the trajectory planning method shown in Example 1, and to avoid repetition, it will not be described here.
[0132] Example 4
[0133] The present application also provides a computer-readable storage medium storing a computer program, which executes the trajectory planning method provided in Example 1 when running on a processor.
[0134] In this embodiment, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0135] The computer-readable storage medium of this embodiment can implement the trajectory planning method shown in Example 1, and to avoid repetition, it will not be described here.
[0136] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or terminal including the element.
[0137] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0138] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A trajectory planning method, characterized in that: The method comprises: constructing a position prediction sub-model based on a current position of a motion device, an integral of a current velocity of the motion device, a quadratic integral of a current acceleration of the motion device, a quadratic integral of a current jerk of the motion device, and a next position of the motion device; constructing a speed prediction sub-model based on the current speed, the integral of the current acceleration, the quadratic integral of the current jerk, and the next speed of the motion device; constructing an acceleration prediction sub-model based on the current acceleration, the integral of the current jerk, and the next acceleration of the motion device; Acquire the mass and current vibration amount of the motion device, and determine the dynamic equation of the motion device based on the mass, the current acceleration, the current vibration amount, the first-order derivative of the current vibration amount, and the second-order derivative of the vibration amount; Determine a first relational expression of the current vibration amount and a second relational expression of a first-order derivative of the current vibration amount based on the dynamic equation; determining a vibration prediction model based on the first relational expression, the second relational expression, the mass and the gravitational acceleration; Acquiring initial motion parameters of the motion device at an initial position, wherein the initial motion parameters include an initial state quantity and an initial vibration energy; Acquire a plurality of predicted speeds and a plurality of predicted positions based on the initial state quantity, the position prediction sub-model, the speed prediction sub-model, and the acceleration prediction sub-model; acquiring a plurality of predicted vibration energies based on the initial vibration energy and the vibration prediction model; Acquire a target position of the motion device, and construct an optimization objective function based on the target position, a plurality of the predicted speeds, a plurality of the predicted positions, and a plurality of the predicted vibration energies; An optimized trajectory from the initial position to the target position is determined based on the optimization objective function.
2. The trajectory planning method according to claim 1, characterized in that: The optimizing objective function is constructed based on the target position, the plurality of predicted speeds, the plurality of predicted positions and the plurality of predicted vibration energies, including: An optimization objective function is constructed based on the sum of squares of errors between the target position and the plurality of predicted positions, the sum of squares of the plurality of predicted velocities, and the sum of squares of the plurality of predicted vibration energies.
3. The method according to claim 2, characterized in that The step of constructing an optimization objective function based on the sum of squares of errors between the target position and the plurality of predicted positions, the sum of squares of the plurality of predicted velocities, and the sum of squares of the plurality of predicted vibration energies comprises: Obtaining a first weight parameter, a second weight parameter, and a third weight parameter; Multiplying the sum of squares of errors between the target position and the plurality of predicted positions by the first weight parameter to obtain a first expression; Multiplying the sum of squares of a plurality of the predicted speeds by the second weight to obtain a second expression; multiplying the sum of the squares of the plurality of predicted vibration energies by the third weight parameter to obtain a third expression; An optimization objective function is constructed based on the first expression, the second expression and the third expression.
4. The trajectory planning method according to claim 3, characterized in that: The step of determining the optimized trajectory from the initial position to the target position based on the optimization objective function comprises: Calculating the minimum function result of the optimization objective function; Acquire an intermediate state quantity corresponding to the minimum function result, wherein the intermediate state quantity includes a plurality of intermediate positions between the initial position and the target position, and a target speed at each intermediate position; The optimized trajectory is generated according to the initial position, the target position, a plurality of the intermediate positions, and a plurality of the target speeds.
5. A trajectory planning device, characterized in that: The device comprises: A first acquisition module is used to construct a position prediction sub-model based on the current position of the motion device, the integral of the current speed of the motion device, the quadratic integral of the current acceleration of the motion device, the quadratic integral of the current jerk of the motion device and the next position of the motion device; construct a speed prediction sub-model based on the current speed, the integral of the current acceleration, the quadratic integral of the current jerk and the next speed of the motion device; construct an acceleration prediction sub-model based on the current acceleration, the integral of the current jerk and the next acceleration of the motion device; obtain the mass and current vibration amount of the motion device, and determine the dynamic equation of the motion device based on the mass, the current acceleration, the current vibration amount, the first-order derivative of the current vibration amount and the second-order derivative of the vibration amount; determine a first relational expression of the current vibration amount and a second relational expression of the first-order derivative of the current vibration amount based on the dynamic equation; determine a vibration prediction model based on the first relational expression, the second relational expression, the mass and the acceleration of gravity; A second acquisition module is used to acquire initial motion parameters of the motion device at an initial position, wherein the initial motion parameters include an initial state quantity and an initial vibration energy; A first determination module, configured to determine a plurality of predicted speeds and a plurality of predicted positions based on the initial state quantity, the position prediction sub-model, the speed prediction sub-model, and the acceleration prediction sub-model; a second determination module, configured to determine a plurality of predicted vibration energies based on the initial vibration energy and the vibration prediction model; A construction module, used for obtaining a target position of the motion device, and constructing an optimization objective function based on the target position, a plurality of the predicted speeds, a plurality of the predicted positions, and a plurality of the predicted vibration energies; The third determination module is used to determine the optimized trajectory from the initial position to the target position based on the optimization objective function.
6. A sports equipment, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the computer program executes the trajectory planning method according to any one of claims 1 to 4 when the processor is running.
7. A computer-readable storage medium, characterized in that: The computer program stores a computer program, which executes the trajectory planning method according to any one of claims 1 to 4 when running on a processor.
