Motion trajectory display method, device, computer equipment and storage medium

By resampling and smoothing the motion trajectory data of autonomous vehicles, a smooth trajectory point set is generated, which solves the problem of poor display results caused by sudden changes in motion trajectory data and achieves a smoother trajectory display effect.

CN118274863BActive Publication Date: 2024-08-23GUANGZHOU XIAOMA HUIXING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410670416.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-28
Publication Date
2024-08-23
Estimated Expiration
2044-05-28

AI Technical Summary

Technical Problem

In autonomous vehicles, sudden changes in motion trajectory data cause the display effect to be less smooth, causing jitters and sudden changes, which degrades the user's viewing experience.

Method used

By obtaining the current motion trajectory data of the vehicle, resampling and trajectory smoothing are performed to generate a smooth trajectory point set and optimize the display effect of the motion trajectory. Specific steps include resampling the original trajectory point set, inserting new trajectory points, and using preset interpolation factors to perform trajectory smoothing to generate a smooth trajectory point set.

Benefits of technology

Significantly improves the display effect of motion trajectories, making it smoother and improving the user's viewing experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118274863B
    Figure CN118274863B
Patent Text Reader

Abstract

The present application relates to a motion trajectory display method, device, computer equipment and storage medium. The method comprises: obtaining the current motion trajectory data of a vehicle; the current motion trajectory data comprises an original trajectory point set; resampling the original trajectory point set to obtain a resampled trajectory point set; obtaining a pre-stored last motion trajectory point set; performing trajectory smoothing processing based on the resampled trajectory point set and the last motion trajectory point set to obtain a smoothed trajectory point set; and displaying the motion trajectory based on the smoothed trajectory point set. The embodiment of the present application can smooth the motion trajectory of the vehicle, so that the smoothed motion trajectory becomes smoother when displayed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle motion trajectory display, and in particular to a motion trajectory display method, device, computer equipment and storage medium. Background Art

[0002] When the vehicle is in the state of automatic driving, the PNC (planning and control) module in the automatic driving system of the vehicle will comprehensively consider the user's destination information, map information and other information to plan an optimal trajectory from the current location to the destination that can ensure the safety, comfort and efficiency of the route. Among them, the process from collecting environmental information around the vehicle to planning the trajectory can be called "planning".

[0003] For the planned motion trajectory, current autonomous driving companies or car manufacturers generally render and present it to users through HMI (Human Machine Interface), so that users can intuitively and clearly see the future motion trajectory of the vehicle, and thus can ride the vehicle with greater peace of mind.

[0004] The motion trajectory data is actually a Polyline. Polyline can be understood as a continuous line composed of one or more connected straight line segments. For example Figure 1 The figure shows a Polyline composed of n Points.

[0005] Whenever the HMI receives new motion trajectory data, it will render the corresponding motion trajectory and display it in the 3D scene of the HMI. The inventor noticed that if the motion trajectory transmitted from the autonomous driving system does not have obvious changes before and after the two adjacent times t1 and t2, at this time, if it is directly rendered based on the received motion trajectory data (that is, without any processing of the received motion trajectory data), the display effect of the motion trajectory is relatively smooth and coherent. The display effect can be seen in Figure 2 (1) is shown. However, if the motion trajectory data has obvious mutations before and after two adjacent times t1 and t2, then if it is directly rendered, the motion trajectory will not be smooth enough when displayed. For example, the motion trajectory will appear to be jittery and / or mutated, which will reduce the user's viewing experience. Therefore, how to optimize the display effect of the motion trajectory and make the motion path display more smoothly is a technical problem that needs to be solved urgently. Summary of the invention

[0006] In view of the above-mentioned deficiencies or shortcomings, the present application provides a motion trajectory display method, device, computer equipment and storage medium that can optimize the display effect of the motion trajectory and make the motion path display more smoothly.

[0007] The present application provides a motion trajectory display method according to a first aspect. In some embodiments, the method includes:

[0008] Acquire the current motion trajectory data of the vehicle; the current motion trajectory data includes an original trajectory point set;

[0009] Resample the original trajectory point set to obtain a resampled trajectory point set;

[0010] Get the pre-stored last motion trajectory point set;

[0011] Perform trajectory smoothing processing according to the resampled trajectory point set and the last motion trajectory point set to obtain a smooth trajectory point set;

[0012] The motion trajectory is displayed based on the smooth trajectory point set.

[0013] In some embodiments, resampling the original trajectory point set to obtain a resampled trajectory point set includes:

[0014] Each trajectory point in the original trajectory point set is copied as an original trajectory point, and a trajectory point is inserted between every two original trajectory points according to a preset resampling distance to obtain a resampled trajectory point set.

[0015] In some embodiments, a trajectory point is inserted between every two original trajectory points according to a preset resampling distance to obtain a resampled trajectory point set, including:

[0016] The first original trajectory point is used as the first trajectory point, and the next original trajectory point of the first original trajectory point is used as the second trajectory point;

[0017] Calculate the distance between the first trajectory point and the second trajectory point, and determine whether the distance is greater than a preset resampling distance;

[0018] In response to the distance being greater than the resampling distance, a trajectory point is added after the first trajectory point based on the first formula, and the added trajectory point is used as the first trajectory point, and the step of returning to the step of detecting whether the distance between the first trajectory point and the second trajectory point is greater than the preset resampling distance is returned.

[0019] In response to the distance being less than or equal to the resampling distance, detecting whether the second trajectory point is the last original trajectory point;

[0020] When the second trajectory point is not the last original trajectory point, a trajectory point is added after the second trajectory point based on the second formula, and the added trajectory point is used as the first trajectory point, and the next original trajectory point of the original second trajectory point is used as the second trajectory point, and the step of returning to the step of detecting whether the distance between the first trajectory point and the second trajectory point is greater than the preset resampling distance is returned;

[0021] When the second track point is the last original track point, the operation ends.

[0022] In some embodiments, the first formula includes:

[0023] Point_1' = Point _1 + (Point _2 - Point _1).normalized *ResampleDistance

[0024] Wherein, Point _1' represents the trajectory point added after the first trajectory point, Point _1 represents the first trajectory point, Point _2 represents the second trajectory point, (Point _2 - Point _1).normalized represents the normalized direction vector between the first trajectory point and the second trajectory point, and ResampleDistance represents the resampling distance;

[0025] The second formula includes:

[0026] Point_2' = Point_2 + (Point _3 - Point _2).normalized *(ResampleDistance - Dist(Point _1, Point _2))

[0027] Among them, Point _2' represents the trajectory point added after the second trajectory point, Point _2 represents the second trajectory point, Point _3 represents the next original trajectory point of the second trajectory point, (Point _3 - Point _2).normalized represents the normalized direction vector between the second trajectory point and the next original trajectory point of the second trajectory point, ResampleDistance represents the resampling distance, and Dist(Point _1, Point _2) represents the distance between the first trajectory point and the second trajectory point.

[0028] In some embodiments, trajectory smoothing is performed according to the resampled trajectory point set and the last motion trajectory point set to obtain a smooth trajectory point set, including:

[0029] Calculate the direction vector between the i-th trajectory point and the i+1-th trajectory point in the resampled trajectory point set;

[0030] Calculate the straight line passing through the i-th trajectory point and perpendicular to the direction vector;

[0031] Determine the connection points between the straight line and the point set of the previous motion trajectory;

[0032] A new trajectory point is calculated according to the third formula, and the trajectory point is used as the i-th trajectory point in the smooth trajectory point set;

[0033] The third formula includes: SP_i=RP_i+(1-factor)*IP_i

[0034] Among them, SP_i represents the calculated trajectory point, RP_i represents the i-th trajectory point in the resampled trajectory point set, factor represents the preset interpolation factor, and IP_i represents the associated point between the straight line and the previous motion trajectory point set.

[0035] In some embodiments, determining the associated point between the straight line and the last motion trajectory point set includes:

[0036] Check whether there is an intersection between the straight line and the point set of the previous motion trajectory;

[0037] If there is an intersection, use the intersection as the connection point between the straight line and the point set of the last motion trajectory;

[0038] If there is no intersection, the trajectory point closest to the i-th trajectory point in the last motion trajectory point set is used as the connection point between the straight line and the last motion trajectory point set.

[0039] In some embodiments, after performing trajectory smoothing processing according to the resampled trajectory point set and the last motion trajectory point set to obtain a smoothed trajectory point set, the method further includes:

[0040] Resample the smooth trajectory point set;

[0041] The resampled smooth trajectory point set is used as the new last motion trajectory point set.

[0042] According to a second aspect, the present application provides a motion trajectory display device. In some embodiments, the device includes:

[0043] The first acquisition module is used to acquire the current motion trajectory data of the vehicle; the current motion trajectory data includes an original trajectory point set;

[0044] A resampling module is used to resample the original trajectory point set to obtain a resampled trajectory point set;

[0045] The second acquisition module is used to acquire the pre-stored last motion trajectory point set;

[0046] A smoothing processing module is used to perform trajectory smoothing processing according to the resampled trajectory point set and the last motion trajectory point set to obtain a smooth trajectory point set;

[0047] The trajectory display module is used to display the motion trajectory according to the smooth trajectory point set.

[0048] According to a third aspect, the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the motion trajectory display method provided in any of the above embodiments are implemented.

[0049] According to a fourth aspect, the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the motion trajectory display method provided in any of the above embodiments are implemented.

[0050] In the above-mentioned embodiment of the present application, when the HMI receives the current motion trajectory data of the vehicle, the original trajectory point set included in the current motion trajectory data is resampled to obtain a resampled trajectory point set, and then the pre-stored previous motion trajectory point set is obtained, and the trajectory is smoothed according to the resampled trajectory point set and the previous motion trajectory point set to obtain a smoothed trajectory point set, and finally the motion trajectory is displayed according to the smoothed trajectory point set. The embodiment of the present application can smooth the motion trajectory of the vehicle, so that the smoothed motion trajectory becomes smoother when displayed. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 It is a schematic diagram of polyline;

[0052] Figure 2 A schematic diagram of the display effect of the motion trajectory in the prior art;

[0053] Figure 3 A schematic diagram of a flow chart of a motion trajectory display method provided by the present application according to one or more embodiments;

[0054] Figure 4 A schematic diagram of the effect of resampling provided by the present application according to one or more embodiments;

[0055] Figure 5 A schematic diagram of a process for determining a newly inserted trajectory point according to one or more embodiments of the present application;

[0056] Figure 6 A schematic diagram of the effect of resampling provided by the present application according to another one or more embodiments;

[0057] Figure 7 A schematic diagram of a trajectory smoothing process provided by the present application according to one or more embodiments;

[0058] Figure 8 A structural block diagram of a motion trajectory display device provided by the present application according to one or more embodiments;

[0059] Fig. 9 This is a diagram of the internal structure of a computer device provided by the present application according to one or more embodiments. DETAILED DESCRIPTION

[0060] In order to make the purpose, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below in conjunction with the accompanying drawings. It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0061] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0062] In the description of the present application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0063] In view of the shortcomings or defects of the prior art, the present application provides a motion trajectory display method, which can smooth the motion trajectory of a vehicle so that the smoothed motion trajectory becomes smoother when displayed. In some embodiments, the method includes: Figure 3 The steps shown are described in detail below.

[0064] S110: Acquire current motion trajectory data of the vehicle, where the current motion trajectory data includes an original trajectory point set.

[0065] The motion trajectory display method provided in this embodiment can be applied to the HMI (Human Machine Interface) of a vehicle.

[0066] The vehicle may be an autonomous driving vehicle (ADV), such as a vehicle that can automatically perceive the environment, make decisions and perform corresponding driving tasks without direct operation by a human driver by using advanced sensors, control systems, machine learning algorithms and other technologies.

[0067] The vehicle's motion trajectory data obtained by the HMI comes from the PNC (planning and control) module in the autonomous driving system. The above-mentioned current motion trajectory data refers to the motion trajectory data obtained by the latest planning. The motion trajectory data specifically includes a point set containing multiple trajectory points (points), which can be called an original trajectory point set, and the trajectory points in the original trajectory point set are called original trajectory points.

[0068] S120: resample the original trajectory point set to obtain a resampled trajectory point set.

[0069] In some embodiments, the operation of resampling the original trajectory point set to obtain the resampled trajectory point set includes: copying each trajectory point in the original trajectory point set as the original trajectory point, and inserting a trajectory point between every two original trajectory points according to a preset resampling distance to obtain the resampled trajectory point set.

[0070] The resampling distance is preset and can be set and adjusted according to actual conditions. This embodiment does not impose any special restrictions on its specific value. This embodiment obtains a resampled trajectory point set by inserting more trajectory points into the original trajectory point set. Therefore, the resampled trajectory point set is a point set containing multiple trajectory points, which is specifically composed of the original trajectory points in the original trajectory point set and the newly inserted trajectory points. The changes before and after resampling can be seen in Figure 4 As shown, after the polyline of n points is resampled, a polyline of m points is obtained, where n and m are both positive integers, and m is greater than n.

[0071] In some embodiments, the method of inserting trajectory points into the original trajectory point set may be to insert a trajectory point every resampling distance between every two original trajectory points until the distance between the inserted trajectory point and the subsequent trajectory point is less than the preset resampling distance. For example, assuming that a trajectory point needs to be inserted between two adjacent original trajectory points P_1 and P_2, P_1 may be used as the starting point, and a trajectory point may be inserted every resampling distance, and then it is determined whether the distance between the trajectory point and P_2 is less than the resampling distance. If yes, the insertion of trajectory points is stopped, and if not, the trajectory points are continued to be inserted after the trajectory point according to the above method of inserting trajectory points.

[0072] In some other embodiments, the above operation of inserting a trajectory point between every two original trajectory points according to a preset resampling distance to obtain a resampled trajectory point set includes the following steps: Figure 5 The steps shown are:

[0073] S121: The foremost original trajectory point is used as the first trajectory point, and the next original trajectory point of the foremost original trajectory point is used as the second trajectory point.

[0074] S122: Calculate the distance between the first trajectory point and the second trajectory point, and determine whether the distance is greater than a preset resampling distance;

[0075] S123: in response to the distance being greater than the resampling distance, a trajectory point is added after the first trajectory point based on the first formula, and the added trajectory point is used as the first trajectory point, and the step of returning to the step of detecting whether the distance between the first trajectory point and the second trajectory point is greater than the preset resampling distance is returned;

[0076] S124: In response to the distance being less than or equal to the resampling distance, detecting whether the second trajectory point is the last original trajectory point;

[0077] S125: when the second trajectory point is not the last original trajectory point, a trajectory point is added after the second trajectory point based on the second formula, and the added trajectory point is used as the first trajectory point, and the next original trajectory point of the original second trajectory point is used as the second trajectory point, and the process returns to the step of detecting whether the distance between the first trajectory point and the second trajectory point is greater than a preset resampling distance;

[0078] S126: When the second track point is the last original track point, the operation ends.

[0079] For the convenience of operation, two parameters can be set, namely the first trajectory point and the second trajectory point. Each time a trajectory point is inserted, how to insert the new trajectory point is determined based on the distance between the first trajectory point and the second trajectory point, that is, the first formula is used to determine the new trajectory point or the second formula is used to determine the new trajectory point.

[0080] The first formula above includes:

[0081] Point_1' = Point _1 + (Point _2 - Point _1).normalized *ResampleDistance

[0082] Wherein, Point _1' represents the trajectory point added after the first trajectory point, Point _1 represents the first trajectory point, Point _2 represents the second trajectory point, (Point _2 - Point _1).normalized represents the normalized direction vector between the first trajectory point and the second trajectory point, and ResampleDistance represents the resampling distance;

[0083] The second formula above includes:

[0084] Point_2' = Point _2 + (Point _3 - Point _2).normalized *(ResampleDistance - Dist(Point _1, Point _2))

[0085] Among them, Point _2' represents the trajectory point added after the second trajectory point, Point _2 represents the second trajectory point, Point _3 represents the next original trajectory point of the second trajectory point, (Point _3 - Point _2).normalized represents the normalized direction vector between the second trajectory point and the next original trajectory point of the second trajectory point, ResampleDistance represents the resampling distance, and Dist(Point _1, Point _2) represents the distance between the first trajectory point and the second trajectory point.

[0086] In this embodiment, the resampling operation starts with the original trajectory point that is ranked first in the original trajectory point set (i.e., the trajectory point that the vehicle will move to first). At this time, the first trajectory point is the first original trajectory point, and the second trajectory point is the next trajectory point of the first original trajectory point (i.e., the original trajectory point ranked second before). After inserting the new trajectory point, the first trajectory point is updated, or the first trajectory point and the second trajectory point are updated at the same time, and the new trajectory point is determined based on the latest first trajectory point and the second trajectory point.

[0087] Compared with the method of inserting trajectory points into the original trajectory points provided in the previous embodiment, the method of inserting trajectory points into the original trajectory points provided in this embodiment can obtain a fit with the original motion trajectory, and at the same time can insert trajectory points at the mutation points of the motion trajectory, thereby reducing the amplitude of the front-to-back changes of the motion trajectory, making the front-to-back changes of the motion trajectory appear smoother and more fluent visually.

[0088] The resampling operation of this embodiment is described below by using an example.

[0089] See also Figure 6 The upper part of the figure shows the original trajectory point set, that is, the original trajectory points P_1, P_2, P_3, and the lower part of the figure shows the resampled trajectory point set obtained after the resampling operation, that is, the original trajectory points P_1, P_2, P_3, and the newly inserted trajectory points P_2', P_3', P_4', P_5'. The trajectory point insertion process is as follows:

[0090] (1) The first original trajectory point P_1 is used as the first trajectory point, and the next original trajectory point P_2 of the first original trajectory point P_1 is used as the second trajectory point;

[0091] (2) Determine whether the distance between P_1 and P_2 is greater than the resampling distance;

[0092] (3) Since the distance between P_1 and P_2 is greater than the resampling distance, the new trajectory point P_2' can be determined based on the first formula;

[0093] (4) Take the trajectory point P_2' as the new first trajectory point, and the second trajectory point is still P_2;

[0094] (5) Determine whether the distance between P_2' and P_2 is greater than the resampling distance;

[0095] (6) Since the distance between P_2' and P_2 is greater than the resampling distance, the new trajectory point P_3' can be determined based on the first formula;

[0096] (7) Take the trajectory point P_3' as the new first trajectory point, and the second trajectory point is still P_2;

[0097] (8) Determine whether the distance between P_3' and P_2 is greater than the resampling distance;

[0098] (9) Since the distance between P_3' and P_2 is less than or equal to the resampling distance, and P_2 is not the last original trajectory point, the new trajectory point P_4' can be determined based on the second formula;

[0099] (10) Taking the trajectory point P_4' as the new first trajectory point, and taking the next original trajectory point P_3 of the original second trajectory point P_2 as the new second trajectory point;

[0100] (11) Determine whether the distance between P_4' and P_3 is greater than the resampling distance;

[0101] (12) Since the distance between P_4' and P_3 is greater than the resampling distance, the new trajectory point P_5' can be determined based on the first formula;

[0102] (13) Take the trajectory point P_5' as the new first trajectory point, and the second trajectory point is still P_3;

[0103] (14) Determine whether the distance between P_5' and P_3 is greater than the resampling distance;

[0104] (15) Since the distance between P_5' and P_3 is less than or equal to the resampling distance, and P_3 is the last original trajectory point, the operation ends and the resampling operation is completed.

[0105] S130: Obtain the pre-stored last motion trajectory point set.

[0106] Among them, if the current motion trajectory data is the motion trajectory data received by the vehicle for the first time during this autonomous driving process, the resampled trajectory point set obtained through step S120 is directly rendered and displayed, and is stored as the previous motion trajectory point set.

[0107] If the current motion trajectory data is not the first motion trajectory data received by the vehicle during this automatic driving process, after executing step S120, continue to execute steps S130-S150.

[0108] S140: performing trajectory smoothing processing according to the resampled trajectory point set and the last motion trajectory point set to obtain a smoothed trajectory point set.

[0109] This embodiment obtains a smooth trajectory point set by resampling the trajectory point set and the last motion trajectory point set.

[0110] In some embodiments, trajectory smoothing is performed based on a resampled trajectory point set and a previous motion trajectory point set to obtain a smoothed trajectory point set, including: calculating a direction vector between an i-th trajectory point and an i+1-th trajectory point in the resampled trajectory point set; calculating a straight line passing through the i-th trajectory point and perpendicular to the direction vector; determining an associated point between the straight line and the previous motion trajectory point set; and calculating a new trajectory point according to a third formula, and using the new trajectory point as the i-th trajectory point in the smoothed trajectory point set.

[0111] The third formula includes: SP_i=RP_i+(1-factor)*IP_i

[0112] Among them, SP_i represents the calculated trajectory point, RP_i represents the i-th trajectory point in the resampled trajectory point set, factor represents the preset interpolation factor, and IP_i represents the associated point between the straight line and the previous motion trajectory point set.

[0113] In this embodiment, the smoothed trajectory point set includes multiple trajectory points, and the calculation method of each trajectory point is similar. Assuming that the resampled trajectory point set is recorded as ResampledPoints, the previous motion trajectory point set is recorded as PrePoints, and the smoothed trajectory point set is recorded as SmoothedPoints, then the i-th trajectory point in SmoothedPoints is determined based on the i-th trajectory point in ResampledPoints and the i-th trajectory point in PrePoints. The process of trajectory smoothing can be seen in Figure 7 As shown in the figure, it can be seen intuitively that there is an obvious difference between the motion trajectory corresponding to the previous motion trajectory point set and the motion trajectory corresponding to the resampled trajectory point set, and the motion trajectory corresponding to the smoothed trajectory point set obtained after trajectory smoothing is less different from the motion trajectory corresponding to the previous motion trajectory point set, so the display effect of the motion trajectory will be smoother.

[0114] The following describes the process of performing trajectory smoothing based on the resampled trajectory point set and the previous motion trajectory point set to obtain a smoothed trajectory point set by introducing the related operations of determining the i-th trajectory point in SmoothedPoints based on the i-th trajectory point in ResampledPoints and the i-th trajectory point in PrePoints.

[0115] The i-th trajectory point in ResampledPoints is recorded as RP_i, and the i-th trajectory point in PrePoints is recorded as PP_i. When determining the i-th trajectory point in SmoothedPoints, the direction vector between the i-th trajectory point RP_i and the i+1-th trajectory point RP_i+1 in the resampled trajectory point set ResampledPoints is first calculated, recorded as V_i;

[0116] Next, calculate the straight line passing through the trajectory point RP_i and perpendicular to the direction vector V_i, denoted as SL_i;

[0117] Then, determine the associated point between the straight line SL_i and the last motion trajectory point set PrePoints, denoted as IP_i;

[0118] A new trajectory point is calculated according to the third formula above, which is denoted as SP_i; SP_i indicates that the trajectory point is the i-th trajectory point in the smoothed trajectory point set SmoothedPoints.

[0119] In some embodiments, the above-mentioned determination of the association point between the straight line and the previous motion trajectory point set includes: detecting whether there is an intersection between the straight line and the previous motion trajectory point set; if there is an intersection, using the intersection as the association point between the straight line and the previous motion trajectory point set; if there is no intersection, using the trajectory point closest to the i-th trajectory point in the previous motion trajectory point set as the association point between the straight line and the previous motion trajectory point set.

[0120] Among them, first check whether there is an intersection between the straight line SL_i and the previous motion trajectory point set PrePoints; if there is an intersection, the intersection is used as IP_i; if there is no intersection, the trajectory point closest to the trajectory point RP_i in the previous motion trajectory point set PrePoints is used as IP_i.

[0121] S150: Displaying the motion trajectory according to the smooth trajectory point set.

[0122] After obtaining the smooth trajectory point set, the existing rendering method can be used to render and display the corresponding motion trajectory.

[0123] Accordingly, in some embodiments, after performing trajectory smoothing processing on the resampled trajectory point set and the last motion trajectory point set to obtain a smooth trajectory point set, the method further includes: resampling the smooth trajectory point set; and using the resampled smooth trajectory point set as a new last motion trajectory point set.

[0124] It should be noted that, with respect to the various steps included in the motion trajectory display method provided in any of the above embodiments, unless otherwise clearly stated in this document, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a part of these steps may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0125] Based on the same inventive concept, the present application also provides a motion trajectory display device. In some embodiments, Figure 8 As shown, the motion trajectory display device includes the following modules:

[0126] The first acquisition module 110 is used to acquire the current motion trajectory data of the vehicle; the current motion trajectory data includes an original trajectory point set;

[0127] A resampling module 120, used for resampling the original trajectory point set to obtain a resampled trajectory point set;

[0128] The second acquisition module 130 is used to acquire the pre-stored last motion trajectory point set;

[0129] A smoothing processing module 140 is used to perform trajectory smoothing processing according to the resampled trajectory point set and the last motion trajectory point set to obtain a smoothed trajectory point set;

[0130] The trajectory display module 150 is used to display the motion trajectory according to the smooth trajectory point set.

[0131] Resample the original trajectory point set to obtain a resampled trajectory point set, including:

[0132] Each trajectory point in the original trajectory point set is copied as an original trajectory point, and a trajectory point is inserted between every two original trajectory points according to a preset resampling distance to obtain a resampled trajectory point set.

[0133] In some embodiments, the resampling module 120 is specifically configured to:

[0134] The first original trajectory point is used as the first trajectory point, and the next original trajectory point of the first original trajectory point is used as the second trajectory point;

[0135] Calculate the distance between the first trajectory point and the second trajectory point, and determine whether the distance is greater than a preset resampling distance;

[0136] In response to the distance being greater than the resampling distance, a trajectory point is added after the first trajectory point based on the first formula, and the added trajectory point is used as the first trajectory point, and the step of returning to the step of detecting whether the distance between the first trajectory point and the second trajectory point is greater than the preset resampling distance is returned.

[0137] In response to the distance being less than or equal to the resampling distance, detecting whether the second trajectory point is the last original trajectory point;

[0138] When the second trajectory point is not the last original trajectory point, a trajectory point is added after the second trajectory point based on the second formula, and the added trajectory point is used as the first trajectory point, and the next original trajectory point of the original second trajectory point is used as the second trajectory point, and the step of returning to the step of detecting whether the distance between the first trajectory point and the second trajectory point is greater than the preset resampling distance is returned;

[0139] When the second track point is the last original track point, the operation ends.

[0140] In some embodiments, the first formula includes:

[0141] Point_1' = Point _1 + (Point _2 - Point _1).normalized *ResampleDistance

[0142] Wherein, Point _1' represents the trajectory point added after the first trajectory point, Point _1 represents the first trajectory point, Point _2 represents the second trajectory point, (Point _2 - Point _1).normalized represents the normalized direction vector between the first trajectory point and the second trajectory point, and ResampleDistance represents the resampling distance;

[0143] The second formula includes:

[0144] Point _2' = Point _2 + (Point _3 - Point _2).normalized *(ResampleDistance - Dist(Point _1, Point _2))

[0145] Among them, Point _2' represents the trajectory point added after the second trajectory point, Point _2 represents the second trajectory point, Point _3 represents the next original trajectory point of the second trajectory point, (Point _3 - Point _2).normalized represents the normalized direction vector between the second trajectory point and the next original trajectory point of the second trajectory point, ResampleDistance represents the resampling distance, and Dist(Point _1, Point _2) represents the distance between the first trajectory point and the second trajectory point.

[0146] In some embodiments, the smoothing processing module 140 is specifically configured to:

[0147] Calculate the direction vector between the i-th trajectory point and the i+1-th trajectory point in the resampled trajectory point set;

[0148] Calculate the straight line passing through the i-th trajectory point and perpendicular to the direction vector;

[0149] Determine the connection points between the straight line and the point set of the previous motion trajectory;

[0150] A new trajectory point is calculated according to the third formula, and the trajectory point is used as the i-th trajectory point in the smooth trajectory point set;

[0151] The third formula includes: SP_i=RP_i+(1-factor)*IP_i

[0152] Among them, SP_i represents the calculated trajectory point, RP_i represents the i-th trajectory point in the resampled trajectory point set, factor represents the preset interpolation factor, and IP_i represents the associated point between the straight line and the previous motion trajectory point set.

[0153] In some embodiments, when the smoothing processing module 140 determines the associated point between the straight line and the last motion trajectory point set, it is used to:

[0154] Check whether there is an intersection between the straight line and the point set of the previous motion trajectory;

[0155] If there is an intersection, use the intersection as the connection point between the straight line and the point set of the last motion trajectory;

[0156] If there is no intersection, the trajectory point closest to the i-th trajectory point in the last motion trajectory point set is used as the connection point between the straight line and the last motion trajectory point set.

[0157] In some embodiments, after performing trajectory smoothing processing according to the resampled trajectory point set and the last motion trajectory point set to obtain a smoothed trajectory point set, the above apparatus is further used to:

[0158] The smooth trajectory point set is resampled by the resampling module 120; and the resampled smooth trajectory point set is used as a new last motion trajectory point set.

[0159] For the specific definition of the motion trajectory display device, please refer to the definition of the motion trajectory display method above, which will not be repeated here. Each module in the above-mentioned motion trajectory display device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0160] In some embodiments, the present application provides a computer device, whose internal structure diagram can be as follows: Fig. 9As shown. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as the last motion trajectory point set. The specific stored data can also refer to the definition in the above method embodiment. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a motion trajectory display method is implemented. In some embodiments, the computer device also includes a display, and the computer device can present the motion trajectory of the vehicle to the user through the display screen.

[0161] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0162] This embodiment also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the motion trajectory display method provided in any of the above embodiments can be implemented.

[0163] In some embodiments, the present application also provides a vehicle, which includes the computer device provided in the above embodiments.

[0164] In some embodiments, the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the motion trajectory display method provided in any of the above embodiments are implemented.

[0165] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0166] Those of ordinary skill in the art can understand that all or part of the processes in the above method embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink), DRAM (SLDRAM), memory bus (Rambus), direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0167] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0168] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A motion trajectory display method, characterized in that: The method comprises: Acquire current motion trajectory data of the vehicle; the current motion trajectory data includes an original trajectory point set; Resampling the original trajectory point set to obtain a resampled trajectory point set; Get the pre-stored last motion trajectory point set; Perform trajectory smoothing processing according to the resampled trajectory point set and the previous motion trajectory point set to obtain a smoothed trajectory point set; Displaying the motion trajectory according to the smooth trajectory point set; The original trajectory point set is resampled to obtain a resampled trajectory point set, including: Copying each trajectory point in the original trajectory point set as an original trajectory point, and inserting a trajectory point between every two original trajectory points according to a preset resampling distance to obtain a resampled trajectory point set; Inserting a trajectory point between every two original trajectory points according to a preset resampling distance to obtain a resampled trajectory point set, including: The first original trajectory point is used as the first trajectory point, and the next original trajectory point of the first original trajectory point is used as the second trajectory point; Calculating the distance between the first trajectory point and the second trajectory point, and determining whether the distance is greater than a preset resampling distance; In response to the distance being greater than the resampling distance, a trajectory point is added after the first trajectory point based on a first formula, the added trajectory point is used as the first trajectory point, and the step of returning to detecting whether the distance between the first trajectory point and the second trajectory point is greater than a preset resampling distance is returned. In response to the distance being less than or equal to the resampling distance, detecting whether the second trajectory point is the last original trajectory point; When the second trajectory point is not the last original trajectory point, a trajectory point is added after the second trajectory point based on the second formula, and the added trajectory point is used as the first trajectory point, and the next original trajectory point of the original second trajectory point is used as the second trajectory point, and the step of returning to the step of detecting whether the distance between the first trajectory point and the second trajectory point is greater than a preset resampling distance is returned; When the second track point is the last original track point, the operation ends; The first formula includes: Point_1'=Point_1+(Point_2-Point_1).normalized*ResampleDistance Wherein, Point_1' represents the trajectory point added after the first trajectory point, Point_1 represents the first trajectory point, Point_2 represents the second trajectory point, (Point_2-Point_1).normalized represents the normalized direction vector between the first trajectory point and the second trajectory point, and ResampleDistance represents the resampled distance; The second formula includes: Point_2'=Point_2+(Point_3-Point_2).normalized*(ResampleDistance-Dist(Point_1,Point_2)) Among them, Point_2' represents the trajectory point added after the second trajectory point, Point_2 represents the second trajectory point, Point_3 represents the next original trajectory point of the second trajectory point, (Point_3-Point_2).normalized represents the normalized direction vector between the second trajectory point and the next original trajectory point of the second trajectory point, ResampleDistance represents the resampling distance, and Dist(Point_1,Point_2) represents the distance between the first trajectory point and the second trajectory point.

2. The method according to claim 1, characterized in that Performing trajectory smoothing processing according to the resampled trajectory point set and the last motion trajectory point set to obtain a smoothed trajectory point set, including: Calculate the direction vector between the i-th trajectory point and the i+1-th trajectory point in the resampled trajectory point set; Calculate a straight line passing through the i-th trajectory point and perpendicular to the direction vector; Determine the associated points between the straight line and the last motion trajectory point set; A new trajectory point is calculated according to the third formula, and the trajectory point is used as the i-th trajectory point in the smooth trajectory point set; The third formula includes: SP_i=RP_i+(1-factor)*IP_i Among them, SP_i represents the calculated trajectory point, RP_i represents the i-th trajectory point in the resampled trajectory point set, factor represents a preset interpolation factor, and IP_i represents the associated point between the straight line and the last motion trajectory point set.

3. The method according to claim 2, characterized in that Determining the associated points between the straight line and the last motion trajectory point set includes: Detecting whether there is an intersection between the straight line and the point set of the last motion trajectory; If there is an intersection, the intersection is used as the connection point between the straight line and the point set of the last motion trajectory; If there is no intersection, the trajectory point in the last motion trajectory point set that is closest to the i-th trajectory point is used as the association point between the straight line and the last motion trajectory point set.

4. The method according to claim 2, characterized in that After performing trajectory smoothing processing according to the resampled trajectory point set and the last motion trajectory point set to obtain a smoothed trajectory point set, the method further includes: Resampling the smooth trajectory point set; The resampled smooth trajectory point set is used as the new last motion trajectory point set.

5. A motion trajectory display device, characterized in that: The device comprises: A first acquisition module is used to acquire current motion trajectory data of the vehicle; the current motion trajectory data includes an original trajectory point set; a resampling module, configured to copy each trajectory point in the original trajectory point set as an original trajectory point, and insert a trajectory point between every two original trajectory points according to a preset resampling distance to obtain a resampled trajectory point set; The second acquisition module is used to acquire the pre-stored last motion trajectory point set; A smoothing processing module, used for performing trajectory smoothing processing according to the resampled trajectory point set and the last motion trajectory point set to obtain a smoothed trajectory point set; A trajectory display module, used for displaying the motion trajectory according to the smooth trajectory point set; The resampling module is used to: The first original trajectory point is used as the first trajectory point, and the next original trajectory point of the first original trajectory point is used as the second trajectory point; Calculating the distance between the first trajectory point and the second trajectory point, and determining whether the distance is greater than a preset resampling distance; In response to the distance being greater than the resampling distance, a trajectory point is added after the first trajectory point based on a first formula, the added trajectory point is used as the first trajectory point, and the step of returning to detecting whether the distance between the first trajectory point and the second trajectory point is greater than a preset resampling distance is returned. In response to the distance being less than or equal to the resampling distance, detecting whether the second trajectory point is the last original trajectory point; When the second trajectory point is not the last original trajectory point, a trajectory point is added after the second trajectory point based on the second formula, and the added trajectory point is used as the first trajectory point, and the next original trajectory point of the original second trajectory point is used as the second trajectory point, and the step of returning to the step of detecting whether the distance between the first trajectory point and the second trajectory point is greater than a preset resampling distance is returned; When the second track point is the last original track point, the operation ends; The first formula includes: Point_1'=Point_1+(Point_2-Point_1).normalized*ResampleDistance Wherein, Point_1' represents the trajectory point added after the first trajectory point, Point_1 represents the first trajectory point, Point_2 represents the second trajectory point, (Point_2-Point_1).normalized represents the normalized direction vector between the first trajectory point and the second trajectory point, and ResampleDistance represents the resampled distance; The second formula includes: Point_2'=Point_2+(Point_3-Point_2).normalized*(ResampleDistance-Dist(Point_1,Point_2)) Among them, Point_2' represents the trajectory point added after the second trajectory point, Point_2 represents the second trajectory point, Point_3 represents the next original trajectory point of the second trajectory point, (Point_3-Point_2).normalized represents the normalized direction vector between the second trajectory point and the next original trajectory point of the second trajectory point, ResampleDistance represents the resampling distance, and Dist(Point_1,Point_2) represents the distance between the first trajectory point and the second trajectory point.

6. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.