Reversing track generation method and device, electronic equipment and storage medium

By acquiring and converting the current steering data of the vehicle and using preset equations to generate the target curve, it solves the problem of high computational cost of the traditional RVC reversing trajectory function and achieves more efficient reversing trajectory generation.

CN118560575APending Publication Date: 2024-08-30CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD

Patent Information

Application Number
CN202410499427.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-24
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The traditional RVC reversing trajectory function requires a lot of computing costs when generating reversing trajectories. It relies on the vehicle's front and rear wheelbase, axle length, rear wheel distance and other data, resulting in high computing power consumption.

Method used

By obtaining the current steering data of the vehicle, converting it into a target constant, and generating a target curve based on the preset target equation, the target reversing trajectory of the vehicle under the current steering data is generated, reducing reliance on front and rear wheelbase and other data.

Benefits of technology

It reduces the computing power cost when generating reversing trajectories, realizes reversing trajectory generation with less data volume, and improves efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118560575A
    Figure CN118560575A
Patent Text Reader

Abstract

The invention provides a car backing track generation method and device, electronic equipment and a storage medium. The method comprises the steps of obtaining current steering data of a vehicle; converting the current steering data into a target constant; generating a target curve according to a preset target equation taking the target constant as a constant term; and according to the target curve, generating a target backing track of the vehicle under the current steering data. Compared with a traditional RVC backing track function for generating the backing track based on data such as the wheel base of the front and rear wheels, the axle length and the distance between the rear wheels and the tail of the vehicle, the backing track generating method and device can generate the backing track of the vehicle through less data, and therefore the computing power cost needed to be input when the backing track is generated is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicle reversing trajectory generation, and in particular to a reversing trajectory generation method, a reversing trajectory generation device, an electronic device and a computer-readable storage medium. Background Art

[0002] The RVC (Rear View Camera) reversing trajectory line function plays a very important role in the automotive industry. By installing a camera at the rear of the vehicle, it can display real-time images from the rear when the vehicle is reversing, and display the reversing trajectory line on the screen, helping the driver to grasp the vehicle's position and surrounding environment more accurately, thereby reducing the risk of reversing accidents.

[0003] The RVC reversing trajectory function is very practical in daily driving, especially in narrow parking lots or complex reversing scenarios, which can help the driver complete reversing operations more easily.

[0004] In addition, for some novice drivers or elderly drivers, the RVC reversing trajectory function can improve driving safety and accuracy.

[0005] However, the RVC reversing trajectory function has some technical challenges and problems in the current market. For example, when generating a reversing trajectory, the traditional RVC reversing trajectory function needs to obtain data such as the front and rear wheel wheelbase, axle length, and the distance between the rear wheel and the rear of the vehicle, and then generate the reversing trajectory based on a large amount of data. This process requires a lot of computing costs. Summary of the invention

[0006] In view of the above problems, a method for generating a reversing trajectory, a device for generating a reversing trajectory, an electronic device and a computer-readable storage medium are proposed to overcome the above problems or at least partially solve the above problems, including:

[0007] A method for generating a reversing trajectory, the method comprising:

[0008] Get the current steering data of the vehicle;

[0009] Converting the current steering data into a target constant;

[0010] Generate a target curve according to a preset target equation with the target constant as a constant term;

[0011] A target reversing trajectory of the vehicle under current steering data is generated according to the target curve.

[0012] Optionally, the method further comprises:

[0013] determining a maximum steering angle of the vehicle;

[0014] According to the maximum steering angle, establishing a corresponding relationship between the steering data of the vehicle and each constant in a preset constant range;

[0015] The converting the current steering data into a target constant comprises:

[0016] According to the corresponding relationship, a target constant corresponding to the current steering data is determined.

[0017] Optionally, generating a target reversing trajectory of the vehicle under current steering data according to the target curve includes:

[0018] According to the target curve, the preset reversing trajectory is adjusted to obtain the target reversing trajectory.

[0019] Optionally, the method further comprises:

[0020] Create a reverse trajectory model;

[0021] Texture is added to the reversing trajectory model to obtain the preset reversing trajectory.

[0022] Optionally, adjusting a preset reversing trajectory according to the target curve to obtain the target reversing trajectory includes:

[0023] determining a target opening direction of the target curve;

[0024] Determining a target adjustment direction according to the target opening direction;

[0025] According to the target curve, the preset reversing trajectory is adjusted in the target adjustment direction to obtain the target reversing trajectory.

[0026] Optionally, the obtaining of current steering data of the vehicle includes:

[0027] acquiring steering data from a steering wheel of the vehicle according to a first preset time interval;

[0028] The redirected data is stored in the structure memory of a single column object;

[0029] According to a second preset time interval, current turning data is obtained from the structure memory of the single column object.

[0030] Optionally, the target equation is a univariate equation.

[0031] Optionally, the preset target equation is a quadratic equation.

[0032] The embodiment of the present invention further provides a device for generating a reversing trajectory, the device comprising:

[0033] An acquisition module, used to acquire the current steering data of the vehicle;

[0034] A conversion module, used for converting the current steering data into a target constant;

[0035] A curve generating module, used for generating a target curve according to a preset target equation with the target constant as a constant term;

[0036] The trajectory generation module is used to generate a target reversing trajectory of the vehicle under current steering data according to the target curve.

[0037] Optionally, the device further comprises:

[0038] A corresponding relationship determination module, used to determine the maximum steering angle of the vehicle; and establish a corresponding relationship between the steering data of the vehicle and each constant in a preset constant range according to the maximum steering angle;

[0039] The conversion module is used to determine the target constant corresponding to the current steering data according to the corresponding relationship.

[0040] Optionally, the trajectory generating module is used to adjust a preset reversing trajectory according to the target curve to obtain the target reversing trajectory.

[0041] Optionally, the device further comprises:

[0042] The initial trajectory generation module is used to create a reversing trajectory model; add texture to the reversing trajectory model to obtain the preset reversing trajectory.

[0043] Optionally, the trajectory generation module is used to determine a target opening direction of the target curve; determine a target adjustment direction according to the target opening direction; and adjust the preset reversing trajectory in the target adjustment direction according to the target curve to obtain the target reversing trajectory.

[0044] Optionally, the acquisition module is used to acquire steering data from the steering wheel of the vehicle according to a first preset time interval; store the steering data in a structure memory of a single-column object; and acquire current steering data from the structure memory of the single-column object according to a second preset time interval.

[0045] Optionally, the preset target equation is a quadratic equation.

[0046] An embodiment of the present invention further provides an electronic device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the above method for generating a reversing trajectory when executed by the processor.

[0047] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method for generating a reversing trajectory as described above is implemented.

[0048] The embodiments of the present invention have the following advantages:

[0049] In an embodiment of the present invention, the current steering data of the vehicle is obtained; the current steering data is converted into a target constant; a target curve is generated according to a preset target equation with the target constant as a constant term; and a target reversing trajectory of the vehicle under the current steering data is generated according to the target curve. Compared with the traditional RVC reversing trajectory function that generates the reversing trajectory based on the vehicle's front and rear wheel wheelbase, axle length, distance between the rear wheel and the rear of the vehicle, and other data, the embodiment of the present invention can generate the vehicle's reversing trajectory with less data, thereby reducing the computing power cost required to generate the reversing trajectory. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0051] Figure 1 is a flowchart of a method for generating a reversing trajectory according to an embodiment of the present invention;

[0052] Figure 2a is a flowchart of another method for generating a reversing trajectory according to an embodiment of the present invention;

[0053] Figure 2b is a schematic diagram of an interface for generating a reversing trajectory model according to an embodiment of the present invention;

[0054] Figure 3a is a flowchart of another method for generating a reversing trajectory according to an embodiment of the present invention;

[0055] Figure 3b is a schematic diagram of a curve corresponding to the target equation of an embodiment of the present invention;

[0056] Figure 3c is a schematic diagram of a reversing trajectory under different steering data according to an embodiment of the present invention;

[0057] Figure 3d is a flowchart of steps for generating and presenting a reversing trajectory according to an embodiment of the present invention;

[0058] Figure 4 It is a structural block diagram of a device for generating a reversing trajectory according to an embodiment of the present invention. DETAILED DESCRIPTION

[0059] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0060] In order to reduce the computing power cost required to generate the reversing trajectory, in an embodiment of the present invention, the reversing trajectory of the vehicle can be generated only based on the steering data of the vehicle; compared with the traditional RVC reversing trajectory function that generates the reversing trajectory based on the vehicle's front and rear wheel wheelbase, axle length, distance between the rear wheel and the rear of the vehicle, etc., the present invention can generate the reversing trajectory of the vehicle with less data, thereby reducing the computing power cost required to generate the reversing trajectory. For details, please refer to Figure 1 , Figure 1 A flowchart of a method for generating a reversing trajectory according to an embodiment of the present invention is shown. The method may include the following steps:

[0061] Step 101: Obtain current steering data of the vehicle.

[0062] In some feasible embodiments, when it is detected that the vehicle is in reverse gear, it can be determined that the user in the vehicle may need to use the RVC reverse trajectory function; at this time, the vehicle can obtain the vehicle's current steering data; the current steering data can be used to characterize the vehicle's current steering angle; the current steering data can be generated based on the steering data of the steering wheel, or it can be generated based on the steering data of the wheel, and the embodiments of the present invention are not limited to this.

[0063] In actual application, the user can choose whether to turn on the RVC reversing trajectory function; when the user turns on the RVC reversing trajectory function, the vehicle can obtain the current steering data when it detects that it is in reverse gear, and further execute subsequent steps 102-step 104 to generate a target reversing trajectory for display to the user.

[0064] On the contrary, if the user turns off the RVC reverse track function, the vehicle will not obtain the current steering data when it detects that it is in reverse gear until the user turns on the RVC reverse track function again. This embodiment of the present invention does not limit this.

[0065] Step 102: Convert the current steering data into a target constant.

[0066] After obtaining the current steering data, the current steering data may be converted into a target constant; illustratively, the value range of the target constant may be between [-1, 1], and may also be set according to actual conditions.

[0067] In some feasible embodiments, when converting the current steering data into the target constant, the conversion may be based on a preset relationship or a preset corresponding relationship, and the embodiment of the present invention does not limit this.

[0068] Step 103: Generate a target curve according to a preset target equation with the target constant as a constant term.

[0069] After obtaining the target constant, the target constant can be used as a constant term in a preset target equation; then, a target curve is generated based on the preset target equation with the target constant as the constant term; the target equation can be a univariate equation, that is, an equation with only one independent variable.

[0070] In one embodiment of the present invention, the preset target equation may be a quadratic equation; for example, the preset target equation may be y=C0x 2 ; Among them, C0 is a constant term. After determining the target constant, the value of the target constant can be assigned to C0, and then the target curve is generated based on the assigned target equation.

[0071] In some feasible embodiments, the preset target equation may be an algorithm that is preset and stored in the vehicle, and may be an algorithm that is preset for different vehicles, which is not limited in the embodiments of the present invention.

[0072] It should be noted that y = C0x 2 This is only an exemplary description and does not limit the preset target equation of the embodiment of the present invention.

[0073] In some other feasible embodiments, the target equation may also be a linear equation of one variable, etc., which is not limited in the embodiment of the present invention.

[0074] Step 104: Generate a target reversing trajectory of the vehicle under the current steering data according to the target curve.

[0075] After the target curve is obtained, the target reversing trajectory of the vehicle under the current steering data can be generated according to the slope of the target curve.

[0076] Exemplarily, when the target equation is a linear equation, the target reversing trajectory of the vehicle under the current steering data can be generated based on the slope of the linear equation with the target constant as the constant term; when the target equation is a quadratic equation, the target reversing trajectory of the vehicle under the current steering data can also be generated based on the slope of the linear equation with the target constant as the constant term. This embodiment of the present invention is not limited to this.

[0077] In some feasible embodiments, after obtaining the target reversing trajectory, the vehicle may display the target reversing trajectory to the user in the vehicle, so that the user may reverse based on the displayed target reversing trajectory.

[0078] In an embodiment of the present invention, the current steering data of the vehicle is obtained; the current steering data is converted into a target constant; a target curve is generated according to a preset target equation with the target constant as a constant term; and a target reversing trajectory of the vehicle under the current steering data is generated according to the target curve. Compared with the traditional RVC reversing trajectory function that generates the reversing trajectory based on the vehicle's front and rear wheel wheelbase, axle length, distance between the rear wheel and the rear of the vehicle, and other data, the embodiment of the present invention can generate the vehicle's reversing trajectory with less data, thereby reducing the computing power cost required to generate the reversing trajectory.

[0079] Reference Figure 2a , shows a flowchart of another method for generating a reversing trajectory according to an embodiment of the present invention, the method may include the following steps:

[0080] Step 201: Determine the maximum steering angle of the vehicle.

[0081] In some feasible embodiments, a correspondence between the vehicle's specific data and constants may be established in advance; thus, after the vehicle's current steering data is determined, the current steering data may be quickly converted into a target constant based on the correspondence.

[0082] Specifically, the maximum steering angle of the vehicle can be determined first; illustratively, when the steering data is steering data of a steering wheel, the maximum steering angle of the steering wheel of the vehicle can be determined; when the steering data is steering data of a wheel, the maximum steering angle of the wheel of the vehicle can be determined.

[0083] As an example, the maximum steering angle may include a maximum left steering angle and a maximum right steering angle; wherein the maximum left steering angle may correspond to the maximum left steering angle of the steering wheel or the maximum left steering angle of the wheel, and the maximum right steering angle may correspond to the maximum right steering angle of the steering wheel or the maximum right steering angle of the wheel, and the embodiment of the present invention is not limited to this.

[0084] Step 202: Establish a corresponding relationship between the steering data of the vehicle and each constant in a preset constant range according to the maximum steering angle.

[0085] After determining the maximum steering angle of the vehicle, a corresponding relationship between the steering data of the vehicle and each constant in a preset constant range can be established according to the maximum steering angle. The constants in the preset constant range can be used as constant terms to be substituted into the target equation to obtain different curves.

[0086] Exemplarily, the maximum steering angles are -450° and 450°, and the preset constant range is [-1, 1]. Then, a correspondence between the steering data in the steering angle range of [-450°, 450°] and the constants in the preset constant range [-1, 1] can be established; wherein, -450° can correspond to -1, 450° can correspond to 1, and 0° can correspond to 0. This is not limited in the embodiments of the present invention.

[0087] In some feasible embodiments, when establishing the correspondence between the steering data and the preset constant range, the steering data and the preset constant range may be normalized first, and then the correspondence is established based on the two normalized data; for example, [-1, 1] may be evenly divided to obtain 901 constants, and then the correspondence between the constants and the steering data in the steering angle range of [-450°, 450°] is established in ascending order. For example: -450° corresponds to -1, -449° corresponds to correspond correspond Corresponds to 0, ..., 447° correspond 449° corresponds Corresponding to 1, this embodiment of the present invention does not limit this.

[0088] Step 203: Acquire the current steering data of the vehicle.

[0089] When it is detected that the vehicle is in reverse gear, the vehicle can determine that the user currently needs to use the RVC reverse trajectory function; at this time, the vehicle can obtain the current steering data of the vehicle.

[0090] In one embodiment of the present invention, the current steering data of the vehicle may be obtained through the following sub-steps:

[0091] Sub-step 11: acquiring steering data from a steering wheel of the vehicle according to a first preset time interval.

[0092] In some feasible embodiments, steering data may be acquired from a steering wheel of a vehicle according to a first preset time interval; the first preset time interval may be set according to actual conditions, for example, 30 ms.

[0093] Sub-step 12: Store the redirected data into the structure memory of the single-column object.

[0094] After obtaining the steering data from the steering wheel of the vehicle, the steering data may be converted and stored in the structure memory of a single column object.

[0095] Sub-step 13: According to a second preset time interval, obtain the current turning data from the structure memory of the single-column object.

[0096] Next, the current turning data at the current moment can be obtained from the structure memory of the single-column object according to the second preset time interval; wherein the second preset time interval can be set according to actual conditions, for example: 32ms, and the embodiment of the present invention does not limit this.

[0097] Exemplarily, when the RVC reversing track function is powered on, a receiving thread is started to receive the entire packet of data for extracting the steering data of the steering wheel, and the special data is converted and stored in a structure memory composed of a single column object.

[0098] In the drawing thread of the RVC reversing trajectory function, the steering data of the steering wheel can be obtained every 30ms; and the current steering data can be obtained from the structure memory of the single-column object every 32ms, and the data is transmitted to Kanzistudio through the datasource, and the current steering data is bound to the drawing node to generate the target reversing trajectory.

[0099] The process of obtaining the current steering data can be achieved through the following code:

[0100]

[0101] Step 204: Determine the target constant corresponding to the current steering data according to the corresponding relationship.

[0102] In some feasible embodiments, after the current steering data of the vehicle is determined, a target constant corresponding to the current steering data may be determined according to the aforementioned corresponding relationship, thereby converting the current steering data into the target constant.

[0103] Exemplarily, when the current steering data is -450°, it can be determined that the target constant corresponding to the current steering data is -1, which is not limited in this embodiment of the present invention.

[0104] Step 205: Generate a target curve according to a preset target equation with the target constant as a constant term.

[0105] After the target constant is obtained, the target constant can be used as a constant term in a preset target equation; then, a target curve is generated based on the preset target equation with the target constant as the constant term.

[0106] In one embodiment of the present invention, the preset target equation may be a quadratic equation; for example, the preset target equation may be y=C0x 2 ; Among them, C0 is a constant term. After determining the target constant, the value of the target constant can be assigned to C0, and then the target curve is generated based on the assigned target equation.

[0107] For example, after determining that the target constant is -1, the target constant "-1" can be assigned to C0, thereby obtaining the target equation y=-x with the target constant as the constant term. 2 .

[0108] Step 206: According to the target curve, the preset reversing trajectory is adjusted to obtain a target reversing trajectory.

[0109] After the target curve is obtained, the pre-generated reversing trajectory may be adjusted according to the slope of the target curve; specifically, the pre-generated reversing trajectory may be deformed to obtain the target reversing trajectory.

[0110] In some feasible embodiments, after obtaining the target reversing trajectory, the vehicle may display the target reversing trajectory to the user in the vehicle, so that the user may reverse based on the displayed target reversing trajectory.

[0111] In an embodiment of the present invention, the above method may further include the following steps:

[0112] Create a reversing trajectory model; add texture to the reversing trajectory model to obtain a preset reversing trajectory.

[0113] In some feasible embodiments, an initial reversing trajectory model may be created first; for example, Figure 2b As shown, in blender, the reversing track model uses a normal plane, and the origin of the reversing track model is moved to the starting y position of the reversing track model. The model parameters are x is 4.6m, y is 12m, and there are 51 faces in total. Adjust according to the actual effect. X is 4.6m to be closest to the viewport effect, and y is 12m and the model in the y direction is subdivided to make the model bending effect closest to the track line effect. If the number of faces is less than 51, a more obvious sawtooth effect will appear, and if the number of faces exceeds 51, the program performance will be wasted; the origin must be at the starting position to make the bending at the starting position, otherwise it will bend from the middle point of the model.

[0114] In actual applications, when displaying the reversing trajectory at night or in bad weather, there may be a problem of unclear display; in order to solve this problem, texture can be added to the generated reversing model to obtain the preset reversing trajectory mentioned above.

[0115] For example, the texture with the alpha channel can be placed on the reversing track model by UV texture unfolding on the reversing track model that has been built.

[0116] In an embodiment of the present invention, the maximum steering angle of the vehicle can be determined in advance, and based on the maximum steering angle, a corresponding relationship between the steering data of the vehicle and each constant in a preset constant range is established; then, the current steering data of the vehicle is obtained; based on the corresponding relationship, the target constant corresponding to the current steering data is determined; based on a preset target equation with the target constant as a constant term, a target curve is generated; based on the target curve, the preset reversing trajectory is adjusted to obtain a target reversing trajectory. Compared with the traditional RVC reversing trajectory function that generates a reversing trajectory based on data such as the front and rear wheel wheelbase, axle length, and the distance between the rear wheel and the rear of the vehicle, the embodiment of the present invention can generate a reversing trajectory of the vehicle with a smaller amount of data, thereby reducing the computing power cost required to generate the reversing trajectory.

[0117] In addition, adding texture to the reversing track can avoid the problem of unclear display when the reversing track is displayed at night or in bad weather.

[0118] Reference Figure 3a , shows a flowchart of another method for generating a reversing trajectory according to an embodiment of the present invention, the method may include the following steps:

[0119] Step 301: Determine the maximum steering angle of the vehicle.

[0120] In some feasible embodiments, a correspondence between the vehicle's specific data and constants may be established in advance; thus, after the vehicle's current steering data is determined, the current steering data may be quickly converted into a target constant based on the correspondence.

[0121] Specifically, the maximum steering angle of the vehicle may be determined first.

[0122] Step 302: Establish a corresponding relationship between the steering data of the vehicle and each constant in a preset constant range according to the maximum steering angle.

[0123] After the maximum steering angle of the vehicle is determined, a corresponding relationship between the steering data of the vehicle and each constant in a preset constant range may be established according to the maximum steering angle.

[0124] Step 303: Acquire the current steering data of the vehicle.

[0125] When it is detected that the vehicle is in reverse gear, the vehicle can determine that the user currently needs to use the RVC reverse trajectory function; at this time, the vehicle can obtain the current steering data of the vehicle.

[0126] Step 304: Determine the target constant corresponding to the current steering data according to the corresponding relationship.

[0127] After the current steering data of the vehicle is determined, the target constant corresponding to the current steering data may be determined according to the aforementioned corresponding relationship, thereby converting the current steering data into the target constant.

[0128] Step 305: Generate a target curve according to a preset target equation with the target constant as a constant term.

[0129] After the target constant is obtained, the target constant can be used as a constant term in a preset target equation; then, a target curve is generated based on the preset target equation with the target constant as the constant term.

[0130] Step 306: Determine the target opening direction of the target curve.

[0131] After obtaining the target curve, the target opening direction of the target curve may be determined first; the target opening direction may refer to the opening direction of the parabola of the target curve, which may be an upward opening or a downward opening.

[0132] Step 307: Determine the target adjustment direction according to the target opening direction.

[0133] After determining the target opening direction, the target adjustment direction for the preset reversing trajectory can be determined according to the target opening direction; illustratively, the correspondence between the opening direction and the adjusted direction can be preset, for example: a correspondence can be established between the opening direction upward and the adjustment direction to the left, and a correspondence can be established between the opening direction downward and the adjustment direction to the right. The embodiments of the present invention do not limit the specific correspondence.

[0134] For example, Figure 3b As shown, the target equation is y = C0x 2When C0 is 1.0, 0.5, 0.0, -0.5, -1.0, the curve graph is shown in Figure 1. When C0 is greater than 0, the parabola corresponding to the target equation opens upward; when C0 is less than 0, the parabola corresponding to the target equation opens downward. The larger the absolute value of C0, the narrower and steeper the opening of the parabola corresponding to the target equation; the closer the absolute value of C0 is to 0, the wider and gentler the opening of the parabola corresponding to the target equation; when C0 is equal to 0, the equation is simplified to y=0, and the target equation is a horizontal straight line; when C0 is positive, the value of the parabola corresponding to the target equation on the y-axis is the minimum value; when C0 is negative, the value of the parabola corresponding to the target equation on the y-axis is the maximum value; in short, the change of C0 will affect the shape, opening direction and steepness of the parabola corresponding to the target equation. When C0 is positive, the parabola corresponding to the target equation opens upward; when C0 is negative, the parabola corresponding to the target equation opens downward.

[0135] Step 308: According to the target curve, the preset reversing trajectory is adjusted in the target adjustment direction to obtain the target reversing trajectory.

[0136] After determining the target adjustment direction, the preset reversing track can be adjusted in the target adjustment direction according to the slope of the target curve. Specifically, the pre-generated reversing track can be deformed in the target adjustment direction according to the slope of the target curve to obtain the target reversing track.

[0137] For example, the adjustment can be achieved through the following code:

[0138]

[0139] In some feasible embodiments, the reversing track model and texture image can be imported into Kanzistudio, and then a deformation shader can be created to achieve the bending effect of the reversing track. In this deformation shader, we need to pass in the steering data to control the deformation of the reversing track. In the shader, we can use the passed in steering data to calculate the degree of curvature of the reversing track.

[0140] For example, when the steering wheel angle is -450°, we can make the reversing track show the maximum bending effect of turning left; when the steering wheel angle is 0°, the reversing track maintains its original shape; when the steering wheel angle is 450°, the wheel shows the maximum bending effect of turning right. By calculating and adjusting in the shader, we can directly control the deformation effect of the reversing track in real time according to the steering data, so that it can show a real bending effect in the 3D scene.

[0141] By reducing the steering data in the range of -450 to 450 of the steering wheel to -1.0 to 1.0, substituting it into the quadratic equation in the shader (y = C0*x 2 ). In the shader, we can use the steering data as input C0 and use a quadratic equation to calculate the coordinates of each point on the curve. In the shader, use the variable C0 to control the curvature of the curve. By adjusting the value of C0, we can make the curve more curved or flatter.

[0142] When the steering data is brought into the shader, the shader will calculate the y coordinate of each point according to the quadratic equation to draw a curve effect. Figure 3c , shows the reversing trajectory when the steering wheel is at 450°, 225°, 0°, -225°, and -450°.

[0143] like Figure 3d As shown, after obtaining the steering data of the steering wheel, the reversing trajectory can be generated through the Vertex shader and presented to the user in the car through a 3D scene.

[0144] In an embodiment of the present invention, the maximum steering angle of the vehicle can be determined in advance, and based on the maximum steering angle, a corresponding relationship between the steering data of the vehicle and each constant in a preset constant range is established; then, the current steering data of the vehicle is obtained; based on the corresponding relationship, the target constant corresponding to the current steering data is determined; based on a preset target equation with the target constant as a constant term, a target curve is generated; the target opening direction of the target curve is determined; based on the target opening direction, the target adjustment direction is determined; based on the target curve, the preset reversing trajectory is adjusted in the target adjustment direction to obtain a target reversing trajectory. Compared with the traditional RVC reversing trajectory function that generates a reversing trajectory based on data such as the front and rear wheel wheelbase, axle length, and the distance between the rear wheel and the rear of the vehicle, the embodiment of the present invention can generate a reversing trajectory of the vehicle with a smaller amount of data, thereby reducing the computing power cost required to generate the reversing trajectory.

[0145] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0146] Reference Figure 4 , shows a schematic diagram of the structure of a device for generating a reversing trajectory according to an embodiment of the present invention, which may include the following modules:

[0147] An acquisition module 401 is used to acquire current steering data of the vehicle;

[0148] A conversion module 402, used to convert current steering data into a target constant;

[0149] The curve generating module 403 is used to generate a target curve according to a preset target equation with a target constant as a constant term;

[0150] The trajectory generation module 404 is used to generate a target reverse trajectory of the vehicle under the current steering data according to the target curve.

[0151] In an optional embodiment of the present invention, the device further comprises:

[0152] A corresponding relationship determination module is used to determine the maximum steering angle of the vehicle; according to the maximum steering angle, establish a corresponding relationship between the steering data of the vehicle and each constant in a preset constant range;

[0153] The conversion module is used to determine the target constant corresponding to the current steering data according to the corresponding relationship.

[0154] In an optional embodiment of the present invention, the trajectory generation module 404 is used to adjust the preset reversing trajectory according to the target curve to obtain the target reversing trajectory.

[0155] In an optional embodiment of the present invention, the device further comprises:

[0156] The initial trajectory generation module 404 is used to create a reversing trajectory model; add texture to the reversing trajectory model to obtain a preset reversing trajectory.

[0157] In an optional embodiment of the present invention, the trajectory generation module 404 is used to determine a target opening direction of a target curve; determine a target adjustment direction according to the target opening direction; and adjust a preset reversing trajectory in the target adjustment direction according to the target curve to obtain a target reversing trajectory.

[0158] In an optional embodiment of the present invention, the acquisition module 401 is used to obtain steering data from the steering wheel of the vehicle according to a first preset time interval; store the steering data in the structure memory of a single-column object; and obtain current steering data from the structure memory of the single-column object according to a second preset time interval.

[0159] In an optional embodiment of the present invention, the preset target equation is a quadratic equation.

[0160] In an embodiment of the present invention, the current steering data of the vehicle is obtained; the current steering data is converted into a target constant; a target curve is generated according to a preset target equation with the target constant as a constant term; and a target reversing trajectory of the vehicle under the current steering data is generated according to the target curve. Compared with the traditional RVC reversing trajectory function that generates the reversing trajectory based on the vehicle's front and rear wheel wheelbase, axle length, distance between the rear wheel and the rear of the vehicle, and other data, the embodiment of the present invention can generate the vehicle's reversing trajectory with less data, thereby reducing the computing power cost required to generate the reversing trajectory.

[0161] An embodiment of the present invention further provides an electronic device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, the method for generating a reversing trajectory as described above is implemented.

[0162] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method for generating a reversing trajectory as described above is implemented.

[0163] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0164] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

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

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

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

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

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

[0170] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device 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 device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0171] The above provides a detailed introduction to a method for generating a reversing trajectory, a device for generating a reversing trajectory, an electronic device and a computer-readable storage medium. In this article, specific examples are used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for a general technician in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for generating a reversing trajectory, characterized in that: The method comprises: Get the current steering data of the vehicle; Converting the current steering data into a target constant; A target curve is generated according to a preset target equation with the target constant as a constant term; and a target reversing trajectory of the vehicle under current steering data is generated according to the target curve.

2. The method according to claim 1, characterized in that The method further comprises: determining a maximum steering angle of the vehicle; According to the maximum steering angle, establishing a corresponding relationship between the steering data of the vehicle and each constant in a preset constant range; The converting the current steering data into a target constant comprises: According to the corresponding relationship, a target constant corresponding to the current steering data is determined.

3. The method according to claim 1, characterized in that Generating a target reversing trajectory of the vehicle under current steering data according to the target curve includes: According to the target curve, the preset reversing trajectory is adjusted to obtain the target reversing trajectory.

4. The method according to claim 3, characterized in that The method further comprises: Create a reverse trajectory model; Texture is added to the reversing trajectory model to obtain the preset reversing trajectory.

5. The method according to claim 3, characterized in that: The step of adjusting the preset reversing trajectory according to the target curve to obtain the target reversing trajectory includes: determining a target opening direction of the target curve; Determining a target adjustment direction according to the target opening direction; According to the target curve, the preset reversing trajectory is adjusted in the target adjustment direction to obtain the target reversing trajectory.

6. The method according to claim 1, characterized in that The obtaining of the current steering data of the vehicle includes: acquiring steering data from a steering wheel of the vehicle according to a first preset time interval; The redirected data is stored in the structure memory of a single column object; According to a second preset time interval, current turning data is obtained from the structure memory of the single column object.

7. The method according to claim 1, characterized in that The preset target equation is a quadratic equation.

8. A device for generating a reversing trajectory, characterized in that: The device comprises: An acquisition module, used to acquire the current steering data of the vehicle; A conversion module, used for converting the current steering data into a target constant; A curve generating module, used for generating a target curve according to a preset target equation with the target constant as a constant term; The trajectory generation module is used to generate a target reversing trajectory of the vehicle under current steering data according to the target curve.

9. An electronic device, characterized in that: The invention comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the method for generating a reversing trajectory as claimed in any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for generating a reversing trajectory as claimed in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Reversing trajectory display method and device

    CN105824592A

  • Dynamic car backing track implementation method and device, computer equipment and storage medium

    CN113470140A

  • Vehicle forward steering trajectory generation method and device, and storage medium

    CN116430851A

  • Method and device for automatically reversing vehicle

    US20190270451A1

Cited By

  • Track determination method and device, computer equipment and storage medium

    CN120558238A