Road bumping condition simulation method and related device
By constructing a segmented bump model to simulate the cross-section bump conditions of non-paved roads, it solves the problem that existing technology cannot effectively simulate the bump characteristics of non-paved roads, provides more realistic simulation data, and optimizes the vehicle dynamics model. .
Patent Information
- Application Number
- CN202310347598.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-28
- Publication Date
- 2024-10-01
AI Technical Summary
Existing road bumpiness simulation models are not suitable for non-paved roads. In particular, they cannot effectively simulate the lateral bumpy characteristics of non-paved roads, resulting in unrealistic autonomous driving or assisted driving simulation data and affecting the optimization of vehicle dynamics models.
By obtaining the cross-section pavement parameters of the road, a segmented model is constructed to simulate the bumps on both sides of the road and the middle road. The large-scale and small-scale bumps are comprehensively considered. The objective function and the segmented function are used to build the bump model to ensure that the model is more accurate. Real road conditions.
It achieves more accurate modeling of the bumpiness of non-paved roads, provides more realistic and effective autonomous driving or assisted driving simulation data, and helps optimize vehicle dynamics models.
Smart Images

Figure CN118734523A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of intelligent connected vehicles, and specifically to a method and related device for simulating road bumps in autonomous driving or assisted driving simulation scenarios. Background Art
[0002] In the simulation scenario of autonomous driving or assisted driving, the degree of road bumps is an important environmental simulation condition, which is used to test the impact of road bumps on the dynamic model of vehicle operation. For paved roads with artificial structural layers such as asphalt or bricks on the road surface, the existing literature standards have described the degree of road bumps. However, roads in areas such as mines or construction sites are unpaved roads. These unpaved roads have very special road characteristics, especially special lateral bumps. The modeling of road bumps in existing technical solutions is mostly an average of long-distance road characteristics, or only considers the longitudinal bumps, and does not take into account large-scale bumps or lateral road bumps such as local rutting or deep pits. Therefore, the existing road bumps simulation model is not suitable for unpaved roads. Summary of the invention
[0003] The present application provides a road bump simulation method and related devices, which can be applied to modeling the bumpiness of unpaved roads, thereby simulating unpaved roads that are closer to the actual situation. In addition, more realistic and effective autonomous driving or assisted driving simulation data can be obtained for training and optimizing vehicle dynamics models.
[0004] In a first aspect, the present application provides a method for simulating road bumps, the method comprising: obtaining parameters of a first cross-sectional road surface of a road; the first cross-sectional road surface comprises two side roads and a middle road surface, the middle road surface being located between the two side roads; the parameters comprise at least one of the width of the first cross-sectional road surface, the width of the two side roads, and the width of the middle road surface; determining a first bump condition of the first cross-sectional road surface according to a first model associated with the parameters. Optionally, the road is an unpaved road.
[0005] In this solution, for unpaved roads, the bumps on both sides of the road are greater than those in the middle, so segmented modeling is needed to provide a road model that is closer to the actual situation. In turn, more realistic and effective autonomous driving or assisted driving simulation data can be obtained for training and optimizing vehicle dynamics models.
[0006] In a possible implementation, the method further includes: determining a second bumpy condition of the road surface of the first cross-section according to a second model associated with the aforementioned parameters; the degree of bumpiness in the aforementioned second bumpy condition is less than the degree of bumpiness in the aforementioned first bumpy condition; and simulating the bumpy condition of the road surface of the first cross-section by combining the aforementioned first bumpy condition and the aforementioned second bumpy condition.
[0007] In this scheme, a small-scale bumpy model (the second model) is constructed through parameters to simulate the situation where the cross-sectional road surface is less bumpy, and then the large-scale bumpy situation with a larger degree of bumpy (the first bumpy situation mentioned above) and the small-scale bumpy situation (the second bumpy situation) are comprehensively characterized to simulate the final cross-sectional road surface bumpy situation to be more in line with the actual road conditions.
[0008] In a possible implementation, the second model indicates the bumpiness of the road surfaces on both sides and the road surface in the middle, and the bumpiness of the road surfaces on both sides indicated in the second model is greater than or equal to the bumpiness of the road surface in the middle.
[0009] In this solution, the second model is a small-scale bumpy model of the entire cross-sectional road surface. In this model, the bumpiness of the road surfaces on both sides is still no less than that of the middle road surface, so as to be more in line with the actual road conditions.
[0010] In one possible implementation, the first model indicates the degree of bumpiness of the road surfaces on both sides and the road surface in the middle, and the degree of bumpiness of the road surfaces on both sides indicated in the first model is greater than the degree of bumpiness of the road surface in the middle; the degree of bumpiness of the road surface in the middle indicated in the first model is expressed by a constant.
[0011] In this scheme, the first model is a large-scale bumpy model of the entire cross-sectional road surface. In this model, the bumpiness of the roads on both sides is greater than that of the middle road surface. The bumpiness of the middle road surface can be expressed by a constant to more reasonably describe the large-scale bumpiness of the cross-sectional road surface.
[0012] In a possible implementation, the first model is constructed based on the objective function; the waveform of the objective function includes waveforms showing a downward trend and / or an upward trend, and the waveforms showing a downward trend and / or an upward trend are used to simulate the bumpy conditions of the roads on both sides.
[0013] In this solution, for unpaved roads, the road surfaces on both sides generally present a hillside shape, so a function with an upward and / or downward trend waveform can be selected to simulate and construct a bumpy model of the road surfaces on both sides to better conform to the actual road conditions.
[0014] In a possible implementation, the first model is constructed based on the objective function, including: the first model is constructed based on a first piecewise function and a second piecewise function, the first piecewise function and the second piecewise function are determined according to a target piecewise function obtained from the objective function;
[0015] The aforementioned target piecewise function includes one or more piecewise functions whose waveform shows a downward trend, and / or one or more piecewise functions whose waveform shows an upward trend; the aforementioned first piecewise function is used to represent the bumpy condition of the first side of the aforementioned two side roads, and the aforementioned second piecewise function is used to represent the bumpy condition of the second side of the aforementioned two side roads.
[0016] In this solution, two piecewise functions are used to construct models of the bumpy conditions of the roads on both sides, respectively, so that the constructed models are closer to the actual bumpy conditions of the roads. In a specific implementation, the target piecewise function is one or more piecewise functions directly intercepted from the target function, and then the piecewise function specifically used to simulate the bumpy conditions of the roads on both sides is obtained by selecting and / or transforming (translating, scaling, or finding symmetric functions, etc.) the one or more piecewise functions. Alternatively, in order to be more practical, multiple piecewise functions can be used to fit the bumpy conditions of one side of the road, and the multiple functions can be combined into one piecewise function to simulate the bumpy conditions of one side of the road, and so on.
[0017] In a possible implementation manner, the objective function includes a first function and a second function, and the first function and the second function are two different functions;
[0018] The first piecewise function is determined according to the first target piecewise function in the first function, and the second piecewise function is determined according to the second target piecewise function in the second function;
[0019] The aforementioned first target piecewise function includes one or more piecewise functions whose waveforms present a downward trend, and the aforementioned second piecewise function includes one or more piecewise functions whose waveforms present an upward trend.
[0020] In this solution, since there are differences in the bumpy conditions of the road surfaces on both sides of the cross section, the functions for simulating the road surfaces on both sides can be different functions, so as to find a more appropriate function to simulate the bumpy conditions of the road surfaces on both sides.
[0021] In a possible implementation manner, the independent variable x of the first function represents any point on the first cross-sectional road surface, and the dependent variable f(x) of the first function represents the height of the first cross-sectional road surface at x relative to a preset reference line;
[0022] The second function is a function obtained by horizontally translating the first function by d in the direction in which the independent variable x increases, and the d is the width of the first cross section;
[0023] The aforementioned first piecewise function is a piecewise function in which the independent variable x in the aforementioned first function takes values between (0, w), and the aforementioned second piecewise function is a piecewise function in which the independent variable x in the aforementioned second function takes values between (du, d); the aforementioned w is the width of the road surface on the aforementioned first side, and the aforementioned u is the width of the road surface on the aforementioned second side.
[0024] In this solution, a representation method of piecewise function is described, so that a bumpy condition representation model can be specifically constructed. It can be understood that this representation method is only a possible implementation method. In a specific implementation, the second function can be a function obtained by other deformations of the first function.
[0025] In a possible implementation, the first model is constructed based on the first piecewise function and the second piecewise function, including:
[0026] The first model is constructed based on a third piecewise function and a fourth piecewise function. The third piecewise function is obtained by taking the absolute value of the first piecewise function, and the fourth piecewise function is obtained by taking the absolute value of the second piecewise function.
[0027] In this solution, the absolute value of the piecewise function is taken before constructing the bumpy model on both sides of the road. This is because the road surfaces on both sides are generally higher than the middle road surface, and the model is constructed based on the horizontal plane where the middle road surface is located. Some function values are less than zero, so in order to be closer to the actual situation, the absolute value is taken before modeling.
[0028] In a second aspect, the present application provides a device for simulating road bumps, the device comprising:
[0029] an acquisition unit, configured to acquire parameters of a first cross-sectional road surface of the road; the first cross-sectional road surface includes two side road surfaces and a middle road surface, wherein the middle road surface is located between the two side road surfaces; the parameters include at least one of the width of the first cross-sectional road surface, the width of the two side road surfaces, and the width of the middle road surface;
[0030] A determination unit is used to determine a first bump condition of the road surface of the first cross section according to a first model associated with the above parameters.
[0031] Optionally, the aforementioned road is an unpaved road.
[0032] In a possible implementation manner, the determination unit is further configured to determine a second bumpy condition of the road surface of the first cross section according to a second model associated with the parameters; the bumpy degree of the second bumpy condition is less than the bumpy degree of the first bumpy condition;
[0033] The aforementioned device also includes a simulation unit for simulating the bumpy condition of the aforementioned first cross-section road surface by combining the aforementioned first bumpy condition and the aforementioned second bumpy condition.
[0034] In a possible implementation, the second model indicates the bumpiness of the road surfaces on both sides and the road surface in the middle, and the bumpiness of the road surfaces on both sides indicated in the second model is greater than or equal to the bumpiness of the road surface in the middle.
[0035] In one possible implementation, the first model indicates the degree of bumpiness of the road surfaces on both sides and the road surface in the middle, and the degree of bumpiness of the road surfaces on both sides indicated in the first model is greater than the degree of bumpiness of the road surface in the middle; the degree of bumpiness of the road surface in the middle indicated in the first model is expressed by a constant.
[0036] In a possible implementation, the first model is constructed based on the objective function; the waveform of the objective function includes waveforms showing a downward trend and / or an upward trend, and the waveforms showing a downward trend and / or an upward trend are used to simulate the bumpy conditions of the roads on both sides.
[0037] In a possible implementation, the first model is constructed based on the objective function, including: the first model is constructed based on a first piecewise function and a second piecewise function, the first piecewise function and the second piecewise function are determined according to a target piecewise function obtained from the objective function;
[0038] The aforementioned target piecewise function includes one or more piecewise functions whose waveform shows a downward trend, and / or one or more piecewise functions whose waveform shows an upward trend; the aforementioned first piecewise function is used to represent the bumpy condition of the first side of the aforementioned two side roads, and the aforementioned second piecewise function is used to represent the bumpy condition of the second side of the aforementioned two side roads.
[0039] In a possible implementation manner, the objective function includes a first function and a second function, and the first function and the second function are two different functions;
[0040] The first piecewise function is determined according to the first target piecewise function in the first function, and the second piecewise function is determined according to the second target piecewise function in the second function;
[0041] The aforementioned first target piecewise function includes one or more piecewise functions whose waveforms present a downward trend, and the aforementioned second piecewise function includes one or more piecewise functions whose waveforms present an upward trend.
[0042] In a possible implementation manner, the independent variable x of the first function represents any point on the first cross-sectional road surface, and the dependent variable f(x) of the first function represents the height of the first cross-sectional road surface at x relative to a preset reference line;
[0043] The second function is a function obtained by horizontally translating the first function by d in the direction in which the independent variable x increases, and the d is the width of the first cross section;
[0044] The aforementioned first piecewise function is a piecewise function in which the independent variable x in the aforementioned first function takes values between (0, w), and the aforementioned second piecewise function is a piecewise function in which the independent variable x in the aforementioned second function takes values between (du, d); the aforementioned w is the width of the road surface on the aforementioned first side, and the aforementioned u is the width of the road surface on the aforementioned second side.
[0045] In a possible implementation, the first model is constructed based on the first piecewise function and the second piecewise function, including:
[0046] The first model is constructed based on a third piecewise function and a fourth piecewise function. The third piecewise function is obtained by taking the absolute value of the first piecewise function, and the fourth piecewise function is obtained by taking the absolute value of the second piecewise function.
[0047] In a third aspect, the present application provides a device for simulating road bumps, the device comprising a processor and a memory. The memory is coupled to the processor, and when the processor executes a computer program or computer instruction stored in the memory, the method described in any one of the second aspects above can be implemented. The device may also include a communication interface, the communication interface is used for the device to communicate with other devices, and exemplarily, the communication interface may be a transceiver, circuit, bus, module or other type of communication interface.
[0048] In a possible implementation, the device may include:
[0049] Memory for storing computer programs or computer instructions;
[0050] A processor is used to: obtain parameters of a first cross-sectional road surface of a road; the aforementioned first cross-sectional road surface includes two side road surfaces and a middle road surface, and the aforementioned middle road surface is located between the aforementioned two side road surfaces; the aforementioned parameters include at least one of the width of the aforementioned first cross-sectional road surface, the width of the aforementioned two side road surfaces and the width of the aforementioned middle road surface; determine a first bump condition of the aforementioned first cross-sectional road surface according to a first model associated with the aforementioned parameters.
[0051] It should be noted that the computer program or computer instruction in the memory in the present application can be stored in advance or downloaded from the Internet and stored when the device is used. The present application does not specifically limit the source of the computer program or computer instruction in the memory. The coupling in the embodiments of the present application is an indirect coupling or connection between devices, units or modules, which can be electrical, mechanical or other forms, and is used for information exchange between devices, units or modules.
[0052] In a fourth aspect, the present application provides a chip, comprising a processor and a memory, wherein the memory is used to store computer programs or computer instructions, and the processor is used to execute the computer programs or computer instructions stored in the memory, so that the chip executes any method described in the first aspect above.
[0053] In a fifth aspect, the present application provides a computer-readable storage medium, which stores a computer program or computer instructions, and the computer program or computer instructions are executed by a processor to implement any method described in the first aspect above.
[0054] In a sixth aspect, the present application provides a computer program product. When the computer program product is executed by a processor, the method described in any one of the first aspects above will be implemented.
[0055] In a seventh aspect, the present application provides a method for simulating road bumps, the method comprising:
[0056] Constructing a first model, wherein the first model is used to represent a first bump condition of a first cross-sectional road surface of the road; the first cross-sectional road surface includes two side roads and a middle road surface, the middle road surface is located between the two side roads; the bump degree of the two side roads is greater than the bump degree of the middle road surface;
[0057] Constructing a second model, the second model is used to represent a second bumpy condition of the road surface of the first cross section; the bumpy degree of the second bumpy condition is less than the bumpy degree of the first bumpy condition;
[0058] The first model and the second model are superimposed to obtain a model representing the bumpy condition of the road surface of the first cross section.
[0059] In a possible implementation manner, constructing the first model includes:
[0060] The aforementioned first model is constructed based on the objective function; the waveform of the aforementioned objective function includes waveforms showing a downward trend and / or an upward trend, and the aforementioned waveforms showing a downward trend and / or an upward trend are used to simulate the bumpy conditions of the aforementioned roads on both sides.
[0061] In a possible implementation manner, the aforementioned constructing the aforementioned first model based on the objective function includes:
[0062] Obtaining a target piecewise function in the aforementioned target function; the aforementioned target piecewise function includes one or more piecewise functions with a waveform showing a downward trend, and / or includes one or more piecewise functions with a waveform showing an upward trend;
[0063] Determining a first piecewise function and a second piecewise function according to the target piecewise function; the first piecewise function is used to represent the bumpiness of the first side of the road surface on both sides, and the second piecewise function is used to represent the bumpiness of the second side of the road surface on both sides;
[0064] The first model is constructed based on the first piecewise function and the second piecewise function.
[0065] In a possible implementation manner, the objective function includes a first function and a second function, and the first function and the second function are two different functions;
[0066] The aforementioned obtaining of the target piecewise function in the aforementioned target function includes:
[0067] Acquire a first target piecewise function in the aforementioned first function and a second target piecewise function in the aforementioned second function; the aforementioned first target piecewise function includes one or more piecewise functions whose waveforms present a downward trend, and the aforementioned second function includes one or more piecewise functions whose waveforms present an upward trend;
[0068] The determining of the first piecewise function and the second piecewise function according to the target piecewise function comprises:
[0069] The first piecewise function is determined according to the first target piecewise function, and the second piecewise function is determined according to the second target piecewise function.
[0070] In a possible implementation manner, the independent variable x of the first function represents any point on the first cross-sectional road surface, and the dependent variable f(x) of the first function represents the height of the first cross-sectional road surface at x relative to a preset reference line;
[0071] The second function is a function obtained by horizontally translating the first function by d in the direction in which the independent variable x increases, and the d is the width of the first cross section;
[0072] The aforementioned first piecewise function is a piecewise function in which the independent variable x in the aforementioned first function takes values between (0, w), and the aforementioned second piecewise function is a piecewise function in which the independent variable x in the aforementioned second function takes values between (du, d); the aforementioned w is the width of the road surface on the aforementioned first side, and the aforementioned u is the width of the road surface on the aforementioned second side.
[0073] In a possible implementation manner, the first model is constructed based on the first piecewise function and the second piecewise function, including:
[0074] Taking the absolute value of the first piecewise function to obtain a third piecewise function, and taking the absolute value of the second piecewise function to obtain a fourth piecewise function;
[0075] The aforementioned first model is constructed based on the aforementioned third piecewise function and the second piecewise function.
[0076] In a possible implementation manner, the first model indicates the degree of bumpiness of the road surfaces on both sides and the middle road surface included in the first cross-sectional road surface, and the degree of bumpiness of the middle road surface in the first model is represented by a constant.
[0077] In a possible implementation, the second model indicates the degree of bumpiness of the road surfaces on both sides and the middle of the road surface included in the first cross-sectional road surface, and the degree of bumpiness of the road surfaces on both sides in the second model is greater than or equal to the degree of bumpiness of the middle road surface.
[0078] In a possible implementation manner, the aforementioned method further includes:
[0079] Construct a model to represent the bumpiness of the second cross-sectional road surface of the aforementioned road; the width of the road surfaces on both sides of the aforementioned second cross-sectional road surface is different from the width of the road surfaces on both sides of the aforementioned first cross-sectional road surface, and / or the bumpiness of the aforementioned second cross-sectional road surface is different from the bumpiness of the aforementioned first cross-sectional road surface.
[0080] The solutions provided in the second to seventh aspects are used to implement or cooperate with the corresponding methods provided in the first aspect, and therefore can achieve the same or corresponding beneficial effects as the corresponding methods in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0081] Figure 1 and Figure 2 Shown is a schematic diagram of the road surface;
[0082] Figure 3 A schematic diagram of a method flow chart provided in an embodiment of the present application;
[0083] Figure 3A A schematic diagram of a user interface provided in an embodiment of the present application;
[0084] Figure 4 A schematic diagram of a cross-sectional road surface provided in an embodiment of the present application;
[0085] Figure 5 A schematic diagram showing a cross-sectional road surface in a coordinate system provided for an embodiment of the present application;
[0086] Figures 6 to 15 A schematic diagram of a function waveform provided in an embodiment of the present application;
[0087] Fig.16 Shown is a schematic diagram of the road surface;
[0088] Figure 17 to Figure 18 A schematic diagram of the device structure provided in an embodiment of the present application. DETAILED DESCRIPTION
[0089] In the embodiment of the present application, "multiple" refers to two or more. In the embodiment of the present application, "and / or" is used to describe the association relationship of the associated objects, indicating three relationships that can exist independently, for example, A and / or B, which can be expressed as: A exists alone, B exists alone, or A and B exist at the same time. The description methods such as "at least one (or at least one) of a1, a2, ... and an" used in the embodiment of the present application include the situation where any one of a1, a2, ... and an exists alone, and also include any combination of any multiple of a1, a2, ... and an, each of which can exist alone; for example, the description method of "at least one of a, b and c" includes the situation where a is alone, b is alone, c is alone, a and b are combined, a and c are combined, b and c are combined, or abc is combined.
[0090] In the various embodiments of the present application, unless otherwise specified or logically conflicting, the terms and / or descriptions between the various embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships.
[0091] The following first introduces the application scenarios of this solution by way of example.
[0092] In the simulation scenario of autonomous driving or assisted driving, the degree of road bumps is an important environmental simulation condition, which is used to test the impact of road bumps on the dynamic model of the vehicle in operation. For example, the dynamic model can be run in a constructed simulation scenario, and then the dynamic model can be optimized based on the feedback obtained during the operation. This is equivalent to a process of training the dynamic model.
[0093] Road pavement can include paved pavement and unpaved pavement. Among them, paved pavement refers to a pavement with a structural layer such as asphalt, concrete or bricks laid on the road surface, such as the pavement of roads such as highways or sidewalks.
[0094] Unpaved roads refer to unstructured roads that have not been paved by humans, such as roads in areas such as mines or construction sites. For ease of understanding, please refer to Figure 1 , Figure 1 The road surface shown is an unpaved road surface. Unpaved roads have road characteristics different from paved roads, such as special lateral and / or longitudinal bumpy characteristics. Figure 2 . Figure 2 (a) in the figure shows a paved road, the unevenness (also called bumpiness) of which is uniform. Figure 2 (b) and (c) show unpaved roads. Figure 2The unpaved road shown in (b) has obvious local lateral bumpy characteristics. Figure 2 The unpaved road shown in (c) has obvious local longitudinal bumpy characteristics.
[0095] For paved roads, existing literature has described the modeling of road bumps. However, the modeling of road bumps in existing technical solutions is mostly an average of long-distance road characteristics, or only considers the longitudinal bumps, without considering large-scale bumps or lateral road bumps such as local ruts or deep pits. The lateral bumps will affect the performance of different wheels of the vehicle, causing a larger excitation response in the vehicle dynamics model, affecting the stable driving of the vehicle. Therefore, the existing road bumps simulation model is not suitable for unpaved roads.
[0096] To this end, the embodiment of the present application provides a method and a related device for simulating road bumps. The method can be applied to modeling the bumpiness of unpaved roads, thereby simulating unpaved roads that are closer to the actual situation. In turn, more realistic and effective autonomous driving or assisted driving simulation data can be obtained to train and optimize the dynamics model of the vehicle. In addition, it can be understood that the method can also be applied to modeling the bumpiness of paved roads, and the following description takes unpaved roads as an example.
[0097] The road bump simulation method can be implemented by any device with computing capabilities (such as a server, etc.), or a chip, circuit, or processor, etc., and the present application embodiment does not limit this. For ease of description, the device that executes the road bump simulation method is referred to as a processing device in the following introduction.
[0098] For example, see Figure 3 , exemplarily shows a flow chart of a method for simulating road bumps provided in an embodiment of the present application. The method includes but is not limited to the following steps:
[0099] S301. Obtain parameters of a first cross-sectional road surface of a road; the first cross-sectional road surface includes two side road surfaces and a middle road surface, and the middle road surface is located between the two side road surfaces; the parameters include at least one of the width of the first cross-sectional road surface, the width of the two side road surfaces, and the width of the middle road surface.
[0100] To facilitate understanding of the cross-sectional pavement of a road, see for example Figure 4 .exist Figure 4 In (a), a schematic diagram of a portion of a road is shown. There are objects such as soil piles or gravel on both sides of the road (not shown in the figure, the actual road can be shown in FIG. Figure 1 road shown).
[0101] The cross section between the edge points A and B on the road surface (i.e., the first cross section) is as follows: Figure 4 As shown in (b). The first cross section can be a cross section from the road surface to the preset reference plane. The preset reference plane can be set according to actual needs, and the embodiment of the present application does not limit this. The straight line intersecting the first cross section and the preset reference plane can be called the preset reference line of the first cross section road surface. It can be seen that the first cross section road surface includes three parts: two side road surfaces (first side road surface and second side road surface) and the middle road surface.
[0102] See for example Figure 4 (c), assuming that the width of the first cross-sectional road surface is d, the width of the first side road surface is w, and the width of the second side road surface is u, then the width of the middle road surface is dwu. Exemplarily, the values of d, w and u can be greater than zero. The w and u can be the same or different.
[0103] In a specific implementation, the processing device may acquire the parameters of the first cross-sectional road surface to construct a bumpy condition representation model of the first cross-sectional road surface to simulate the bumpy condition of the first cross-sectional road surface. The parameters may include, for example, one or more of d, w, u and dwu.
[0104] For example, in a possible implementation, the processing device may obtain the parameters of the first cross-section road surface from another road surface detection device. Alternatively, the processing device may receive the parameters of the first cross-section road surface input by a user through a user interface. For example, see Figure 3A . Figure 3A The user interface for parameter input is shown in the figure. The processing device can display the user interface on the display screen, instructing the user to input the parameters of the first cross section in the user interface. For example, input the width of the first cross section road surface, the width of the first side road surface, the width of the middle road surface, and the width of the second side road surface. After the user inputs the parameters and confirms them, the processing device can obtain these parameters, and then use them to construct a bumpy condition representation model of the first cross section road surface. It can be understood that Figure 3A What is shown is only a schematic diagram and does not constitute a limitation on the embodiments of the present application.
[0105] S302: Determine a first bump condition of the road surface of the first cross-section according to a first model associated with the parameters.
[0106] After the parameters of the first cross-sectional road surface are obtained, they can be used to construct a bumpy condition representation model of the first cross-sectional road surface. In a specific implementation, the bumpiness of the road surfaces on both sides of the first cross-sectional road surface is greater than the bumpiness of the middle road surface. For example, see the above Figure 4 (b) or Figure 4(c). Based on this, in order to construct a road bump condition representation model that is closer to the actual situation, the modeling can be done step by step. Exemplarily, a bump condition model can be established to represent the bump condition with a larger bump degree in the first cross-sectional road surface, and the model can be referred to as the first model. In addition, another bump condition model is established to represent the bump condition with a smaller bump degree in the first cross-sectional road surface, and the model can be referred to as the second model. Then, the road bump condition representation model obtained by superimposing the first model and the second model can well simulate the bump condition of the first cross-sectional road surface.
[0107] In addition, it is understandable that in another possible implementation, the first model can also simulate the bumps of the first cross-sectional road surface. When the simulation accuracy of the bumps of the first cross-sectional road surface is not high, the first model can be used to represent the bumps of the first cross-sectional road surface.
[0108] The following is an exemplary introduction to the process of establishing the model representing the bumpy road surface condition in the first cross section.
[0109] exist Figure 4 (b) or Figure 4 It can be seen in (c) that the road surfaces on both sides show a steep drop trend, so the first model can be constructed by a function that can present a steep drop curve. Exemplarily, the function may include one or two of the following function sets: sinc function, Gaussian function, wavelet function, sine function, cosine function, preset fitting function, and the function obtained after translation transformation and / or scaling transformation of the sinc function, Gaussian function, wavelet function, sine function, cosine function or preset fitting function. The preset fitting function refers to a function that can fit the steep drop trend of the road surfaces on both sides. For example, the function can be fitted by curve fitting and other methods. The embodiment of the present application does not limit the specific fitting method. The function introduction here is only an example and does not constitute a limitation on the embodiment of the present application.
[0110] Exemplarily, in a possible implementation, the envelope of the road surface of the first cross section can be obtained and compared with the functions in the function set, and the function that meets the similarity requirement is selected to construct the first model. For example, the similarity reaches more than 70%, etc., and the embodiment of the present application does not limit the specific similarity requirement. Alternatively, the function closest to the envelope of the road surface of the first cross section is selected to construct the first model. Exemplarily, the similarity between the road envelope and the function waveform can be determined by using mean square error (MSE) or Euclidean distance calculation. Or, exemplarily, the envelope of multiple cross sections on the road can be obtained, and then the average value of the similarity between the multiple envelopes and the function waveform is calculated. Then, the function corresponding to the maximum similarity average value is selected to construct the first model. It can be understood that this is only an example and does not constitute a limitation on the embodiment of the present application. In a specific implementation, functions can also be selected in other ways, and the embodiment of the present application does not limit this.
[0111] The following is an exemplary introduction to the implementation process of constructing the first model based on functions.
[0112] First, define a coordinate system in which to describe the above functions and models. For example, see Figure 5 . Figure 5 Combined with the above Figure 4 The coordinate system is defined by the cross-sectional road surface shown in FIG. The coordinate system uses the straight line where the preset reference line of the cross-sectional road surface is located as the horizontal axis, as shown in FIG. Figure 5 The vertical axis of the coordinate system represents the height of the cross-section road surface relative to the preset reference line. The origin O of the coordinate system is the point where the edge point A on the first side road surface is vertically mapped to the preset reference line.
[0113] It is understandable that the coordinate system defined above is only an example. In a specific implementation, the origin of the coordinate system may be different, for example, it may be any point on the straight line where the preset reference line is located. In this case, the constructed coordinate system will be different, and the function expression will also change accordingly, but the idea does not exceed the protection scope of this application. Figure 5 The coordinate system shown is used as an example.
[0114] Exemplarily, based on the coordinate system defined above, if the functions in the above function set are described in the coordinate system, the waveforms presented by these functions in the coordinate system cannot be directly used to model the bumpy conditions of the above-mentioned roads on both sides. However, the piecewise functions of these functions can well show the bumpy conditions of the roads on both sides, and the piecewise functions of these functions can be used to achieve the modeling of the bumpy conditions of the roads on both sides. In a specific implementation, the bumpy conditions of the first side of the roads on both sides can be modeled using one or more piecewise functions (the one or more piecewise functions are referred to as the first piecewise functions). The bumpy conditions of the second side of the roads on both sides can be modeled using another one or more piecewise functions (the other one or more piecewise functions are referred to as the second piecewise functions).
[0115] In a possible implementation, the first piecewise function may include a piecewise function of one or more functions in the function set (the one or more functions are referred to as the first function for short). The second piecewise function may include a piecewise function of one or more functions in the function set (the one or more functions are referred to as the second function for short). Exemplarily, the first function is the same as the second function. Or, exemplarily, the first function and the second function are different. This is because the bumpy conditions of the road surfaces on both sides of the first cross-sectional road surface may be different, and therefore, it is necessary to select the functions used to construct the models of the road surfaces on both sides respectively. The specific selection method can be exemplified in the above introduction, which will not be repeated here.
[0116] In order to facilitate understanding of the process of constructing the first model when the first function and the second function are different, an example is given below. For example, the first function is a sinc function and the second function is a deformed function of the sinc function. Figure 6 , a waveform diagram of the sinc function is shown in the coordinate system defined above, that is, a waveform diagram of f(x) = sinc(x) is shown. It can be seen that the waveform of the sinc function has the largest value at the origin O, and then gradually oscillates and decreases on both sides of O. The oscillating and decreasing trend can well simulate the bumpy conditions of the road surface on both sides.
[0117] For example, the second function can be a function obtained by horizontally translating the first function by d in the direction in which the independent variable x increases. The second function can be expressed as f(x)=sinc(xd). Since the sinc function is an even function, the second function can be expressed as f(x)=sinc(xd)=sinc(dx). Figure 7 , which shows a schematic waveform diagram of the second function.
[0118] The waveforms of the first function and the second function are presented together in the above coordinate system, which can be exemplified by referring to Figure 8.exist Figure 8 It can be seen that based on the waveforms of the two functions presented, the piecewise function in which the independent variable x in the first function takes values between (0, w) can be taken as the first piecewise function to represent the bumpiness of the road surface on the first side. The piecewise function in which the independent variable x in the second function takes values between (du, d) can be taken as the second piecewise function to represent the bumpiness of the road surface on the second side. Then the model for representing the large-scale bumpiness of the road surfaces on both sides (i.e., the first model) can be obtained as follows:
[0119]
[0120] In the first model, the intermediate road surface, that is, the portion where the independent variable x takes a value between (w, du), can take a constant value c. Exemplarily, the constant value c can be a natural number greater than or equal to zero. In a possible implementation, c=0.
[0121] The waveform presented by the first model in the above coordinate system can be exemplified by referring to Fig. 9 .exist Fig. 9 It can be seen that the waveform of the first piecewise function can well simulate the large-scale bumps of the road surface on the first side, and the waveform of the second piecewise function can well simulate the large-scale bumps of the road surface on the second side.
[0122] In a possible implementation, in order to be closer to the actual road bumps, the first model may be constructed by taking the absolute values of the first piecewise function and the second piecewise function.
[0123] Specifically, the horizontal axis is a straight line where the preset reference line is located. Fig. 9 It can be seen that some function values (i.e., the height of the road surface relative to the preset reference line) are less than 0, while in the actual road surface, the height of the road surface relative to the preset reference line is generally greater than 0. The third piecewise function can be obtained by taking the absolute value of the above-mentioned first piecewise function, and the third piecewise function can be expressed as f(x)=abs(sinc(x)), 0<x<w, where abs() represents taking the absolute value. In addition, the fourth piecewise function is obtained by taking the absolute value of the above-mentioned second piecewise function, and the fourth piecewise function can be expressed as f(x)=abs(sinc(xd)), du<x<d. The first model constructed based on the third piecewise function and the fourth piecewise function is as follows:
[0124]
[0125] The waveform presented by the first model in the above coordinate system can be exemplified by referring to Fig.10 .exist Fig.10In the figure, it can be seen that the waveform of the third piecewise function is above the horizontal axis, that is, the function values are all greater than 0, which can well simulate the large-scale bumps of the road surface on the first side. Similarly, the waveform of the second piecewise function is also above the horizontal axis, that is, the function values are all greater than 0, which can well simulate the large-scale bumps of the road surface on the second side.
[0126] For another example, the first function is a Gaussian function, and the second function is a deformation function of the Gaussian function. This Gaussian function is introduced as an example of the first function. It can be understood that the formula of the Gaussian function can have many variations and is not limited to the formula form listed here.
[0127] See for example Fig.11 , a waveform diagram of the first function is shown in the coordinate system defined above, that is, It can be seen that the waveform of the Gaussian function is the largest at the origin O, and then gradually decreases on both sides of O. This downward trend can well simulate the bumpy conditions of the road on both sides mentioned above.
[0128] Exemplarily, the second function may be a function obtained by horizontally translating the first function by d in the direction in which the independent variable x increases. The second function may be expressed as Since the Gaussian function is an even function, the second function can be expressed as
[0129] The waveforms of the first function and the second function are presented together in the above coordinate system, which can be exemplified by referring to Fig.12 .exist Fig.12 It can be seen that based on the waveforms of the two functions presented, the piecewise function in which the independent variable x in the first function takes the value between (0, w) can be taken as the first piecewise function to represent the bumpiness of the road surface on the first side. The piecewise function in which the independent variable x in the second function takes the value between (du, d) can be taken as the second piecewise function to represent the bumpiness of the road surface on the second side. Then the model (i.e., the first model) for representing the large-scale bumpiness of the road surfaces on both sides can be obtained as follows:
[0130]
[0131] The value of the constant value c can refer to the above description.
[0132] The waveform presented by the first model in the above coordinate system can be exemplified by referring to Fig.13 .exist Fig.13It can be seen that the waveform of the first piecewise function can well simulate the large-scale bumps of the road surface on the first side, and the waveform of the second piecewise function can well simulate the large-scale bumps of the road surface on the second side.
[0133] The above mainly introduces the second function as a function obtained by horizontally translating the first function by d along the direction in which the independent variable x increases. In a specific implementation, the distance of the horizontal translation of the first function along the direction in which the independent variable x increases is not limited to d. Exemplarily, it can also be greater than d, as long as it is ensured that the second piecewise function intercepted from the second function obtained after the translation can simulate the large-scale bumpy condition of the second side road surface.
[0134] In a possible implementation, if the bumps of the second side road surface are quite different from those of the first side road surface, for example, steeper, flatter, narrower or wider, etc., then the second function can be a function obtained by translation and scaling of the first function. For example, after the first function is horizontally translated by d in the direction in which the independent variable x increases, it is also scaled along the horizontal axis and / or the vertical axis to obtain the second function. For ease of understanding, the first function is taken as the sinc function. For example, see Fig.14 , schematic diagram of the waveform of the first function and the second function. It can be seen that the second function is obtained by horizontally shifting the first function by d, and then performing an elongation transformation along the horizontal axis and a compression transformation along the vertical axis. The specific elongation and compression can be set according to actual conditions, and the embodiments of the present application do not limit it.
[0135] The above mainly introduces the second function as a deformation function of the first function as an example. However, in a specific implementation, the second function and the first function can be functions of different types. For example, the first function is a sinc function, and the second function is a Gaussian function. Or, for another example, the first function is a Gaussian function, and the second function is a wavelet function, etc. The embodiment of the present application does not limit this. The specific implementation of constructing the above-mentioned first model based on two functions of different types can refer to the above description, which is not repeated here.
[0136] The above mainly introduces the construction of the first model based on two different functions in the above function set. In another possible implementation, the above first function and the second function may be the same. The following takes the first function and the second function as the same function in the above function set (referred to as the third function) to construct the first model as an example. The waveform of the third function can be the maximum value corresponding to a certain point on the horizontal axis, and then gradually shows a downward trend on both sides of the certain point. Then, the above first piecewise function and the second piecewise function can be obtained from the third function. Then, the above first model is constructed based on the first piecewise function and the second piecewise function.
[0137] For ease of understanding, the third function is taken as a sinc function as an example. The waveform of the sinc function is shown in the above Figure 6 As shown. Then, the piecewise function in which the independent variable x in the sinc function takes values between (0, w) can be taken as the above-mentioned first piecewise function to represent the bumpy condition of the road surface on the first side. The piecewise function in which the independent variable x in the sinc function takes values between (-u, 0) can be taken as the above-mentioned second piecewise function to represent the bumpy condition of the road surface on the second side. In a specific implementation, after obtaining the second piecewise function, the second piecewise function can be horizontally translated d in the direction in which the independent variable x becomes larger. The independent variable x of the translated second piecewise function takes values of (du, d). Then, the above-mentioned first model is constructed based on the translated second piecewise function and the first piecewise function obtained above. The constructed first model is the same as the model shown in the above formula (1), which will not be repeated here. It can be understood that the third function is taken as a sinc function as an example here, which does not constitute a limitation on the embodiments of the present application. In a specific implementation, the third function can be any function in the above-mentioned function set, and the embodiments of the present application do not limit this.
[0138] In a possible implementation, after obtaining the first piecewise function and the second piecewise function from the third function, in addition to performing a translation transformation on the first piecewise function and / or the second piecewise function, the first piecewise function and / or the second piecewise function may also be subjected to a scaling transformation to obtain a model that better conforms to the actual road bump conditions. The specific parameters of the translation transformation and / or scaling transformation may be set according to the actual road conditions, and the embodiments of the present application do not limit this.
[0139] It can be understood that the above-mentioned implementation of constructing the first model is only an example. In the specific implementation process, any function in the above-mentioned function set can be used to construct the above-mentioned first model, and the embodiment of the present application does not limit this.
[0140] The above mainly takes the example that the first piecewise function and the second piecewise function are both piecewise functions intercepted from the above function. In a possible implementation, the first piecewise function may include multiple piecewise functions in the above first function, and similarly, the second piecewise function may include multiple piecewise functions in the above second function. The following is an exemplary introduction.
[0141] For example, assuming that the first function includes the above-mentioned Gaussian function and sinc function, the second function also includes the Gaussian function and sinc function. Fig.15 . Fig.15 (a) shows an example of the waveform of the Gaussian function. Fig.15The waveform of the sinc function is exemplified in (b). Then, as shown in the figure, a piecewise function (piecewise function 1) in which the x value in the Gaussian function is between (0, w1) can be intercepted, and then a piecewise function (piecewise function 2) in which the x value in the sinc function is between [w1, w2) can be intercepted. Then, a piecewise function (piecewise function 3) in which the x value in the Gaussian function is between (-u1, 0) can be intercepted, and a piecewise function (piecewise function 4) in which the x value in the sinc function is between [-u1, -u2) can be intercepted. Then, the first piecewise function mentioned above is constructed based on the piecewise function 1 and the piecewise function 2, and the second piecewise function mentioned above is constructed based on the piecewise function 3 and the piecewise function 4, as shown in FIG. Fig.15 The specific construction process will go through function translation or function mirror calculation, etc., which will not be repeated here. It can be understood that in Fig.15 In the example, two piecewise functions are used to construct the first piecewise function and the second piecewise function. However, in a specific implementation, more piecewise functions may be used to construct the first piecewise function and the second piecewise function. The exemplary introduction here does not constitute a limitation on the embodiments of the present application.
[0142] Exemplarily, assuming that the piecewise functions for representing the bumpiness of the road surface on the first side are uniformly represented by f1(x), and the piecewise functions for representing the bumpiness of the road surface on the second side are uniformly represented by f2(x), the first model can be represented as:
[0143]
[0144] Among them, in formula (4), in order to be closer to the actual road bumps, the above-mentioned first model can be constructed by taking the absolute values of the above-mentioned piecewise function f1(x) and the piecewise function f2(x).
[0145] The following is an exemplary introduction to the implementation process of constructing the second model.
[0146] In a specific implementation, the first model mainly describes the large-scale bumps of the road surfaces on both sides of the cross-sectional road surface. In order to obtain a more appropriate road bump model, a bump model of the cross-sectional road surface (i.e., the second model) can also be constructed on a smaller bump scale. Exemplarily, the second model can use the existing road bumpiness level to represent the bumps of the cross-sectional road surface.
[0147] In a possible implementation, the road bumpiness level specified in the national standard can be used to represent the bumpiness of the road surface of the cross section. See Table 1, which exemplarily shows the differentiation of road bumpiness levels in the national standard GB7031.
[0148] Table 1
[0149]
[0150] In the national standard GB7031, roads are divided into eight grades: A, B, C, D, E, F, G and H, or they can also be called road roughness (or bumpiness) grades. Grades from A to H indicate that the bumpiness of the road surface is getting more and more serious. In Table 1, G q (n0) is the road surface power spectrum density value at the reference spatial frequency, which is called the road surface roughness coefficient. n0 is called the reference spatial frequency, n0 = 0.1m -1 In the national standard GB7031, the degree of road bumpiness can be expressed by the road power spectrum density G q (n) is used to represent the road surface power spectrum density G q (n) can be calculated by the following formula:
[0151]
[0152] Where n is the spatial frequency, which is the reciprocal of the wavelength, indicating how many wavelengths are included in each meter of road surface length. W is the frequency index, which is the slope of the oblique line on the double logarithmic coordinate system, and it determines the frequency structure in the road surface power spectrum density. In the specific calculation, G q (n0) may be a random number that satisfies the upper limit, lower limit and geometric mean conditions corresponding to the road grade in Table 1. For example, the random number may be the random roughness of the road surface fitted by Fourier transforming the random fluctuation of the road elevation into white noise that satisfies certain conditions. It is understood that this is only an example, and the embodiments of the present application are not applicable to the G q There is no restriction on the calculation of the specific value of (n0).
[0153] It can be seen from the above formula (5) that the degree of road bumps is related to the road roughness coefficient, the road spatial frequency, the reference spatial frequency and the frequency index. The frequency index W of the general road power spectrum density is 2. Then, when the spatial frequency n is constant, the degree of road bumps is mainly related to the road roughness coefficient. Specifically, the larger the road roughness coefficient, the greater the degree of road bumps.
[0154] Based on the above description, considering that the bumpiness of the road surfaces on both sides of the cross-sectional road surface is relatively large, the bumpiness of the middle road surface will not be greater than the bumpiness of the road surfaces on both sides. Therefore, the bumpiness of the middle road surface can be calculated based on the level of the lighter bumpiness in Table 1, and the bumpiness of the road surfaces on both sides can be calculated based on the level of the larger bumpiness in Table 1.
[0155] For example, the degree of bumpiness of the middle road surface can be calculated based on the level B in Table 1, and the degree of bumpiness of the two side roads can be calculated based on the level F in Table 1. Or, for example, the degree of bumpiness of the middle road surface can be calculated based on the level B in Table 1, and the degree of bumpiness of the two side roads can be calculated based on the level G in Table 1. Exemplarily, the degree of bumpiness of the two side roads can be calculated based on different levels. For example, the degree of bumpiness of the first side road surface of the two side roads can be calculated based on the level F, and the degree of bumpiness of the first side road surface of the two side roads can be calculated based on the level E.
[0156] Alternatively, in a possible implementation, the bumpiness of the middle road surface and the road surfaces on both sides may be calculated based on the same levels in Table 1.
[0157] It is to be understood that the above description is only an example and does not constitute a limitation on the embodiments of the present application. In a specific implementation, a corresponding level can be selected for calculation according to the actual conditions of the road surface.
[0158] For example, in a specific implementation, it is assumed that the bumpiness of the middle road surface is calculated based on the first level, the bumpiness of the first side road surface is calculated based on the second level, and the bumpiness of the second side road surface is calculated based on the third level. The first level, the second level, and the third level are all road levels in Table 1 above, and the first level is not greater than the second level, nor greater than the third level. The second level and the third level may be the same, or may be different.
[0159] Then, the bumpiness of the intermediate road surface calculated based on the first level is as follows:
[0160]
[0161] Among them, G q (n) 1 represents the bumpiness of the middle road surface, G q (n0)1 represents the road roughness coefficient corresponding to the first level in the above Table 1.
[0162] The bumpiness of the road surface on the first side calculated based on the second level is as follows:
[0163]
[0164] Among them, G q (n)2 represents the bumpiness of the first side road surface, G q (n0)2 represents the road roughness coefficient corresponding to the second level in the above Table 1.
[0165] The bumpiness of the road surface on the second side calculated based on the third level is as follows:
[0166]
[0167] Among them, G q (n)3 represents the bumpiness of the road surface on the second side, G q (n0)3 represents the road roughness coefficient corresponding to the third level in the above Table 1.
[0168] Based on the above formula (6), formula (7) and formula (8), the above second model is constructed as follows:
[0169]
[0170] It is understandable that the above is just an example of using the road bumpiness level specified in the national standard to represent the bumpiness of the cross-section road surface, which does not constitute a limitation on the embodiments of the present application. In specific implementation, the bumpiness of the cross-section road surface can also be calculated based on a custom road bumpiness level, and the embodiments of the present application do not limit this.
[0171] In a possible implementation, according to the needs of actual application, any section of the first side road surface, the middle road surface and the second side road surface can be further divided into several road surface sections. Then, the bumpiness of each road surface section can be calculated based on a road grade in Table 1 above, so that the bumpiness of each road surface section can be refined to simulate a more realistic road bumpiness.
[0172] In a possible implementation, after the first model and the second model are obtained by the above calculation, the two models can be superimposed to obtain a bumpy condition representation model of the above cross-sectional road surface. For ease of understanding, an example is given below.
[0173] For example, in the above step S301, the first model can be constructed by referring to the above formula (4). In the above step S302, the second model can be constructed by referring to the above formula (9). Then, by superimposing formula (4) and formula (9), the bumpy condition representation model of the cross-sectional road surface can be obtained as follows:
[0174]
[0175] It can be understood that the above-mentioned representation of the bumpy condition representation model is only an example, and its representation method can be deformed in a specific implementation, but it still does not exceed the protection scope of the embodiments of the present application.
[0176] In a possible implementation, the above exemplary process of obtaining the bumpy condition representation model of the first cross-section road surface in a road is introduced. In a specific implementation, the conditions of the cross-section road surfaces at different locations on a road may be different. For example, the width of the cross-section road surface is different, the width of the road surface on both sides of the cross-section road surface and / or the width of the middle road surface is different, or the bumpiness of the cross-section road surface is different, etc. For example, you can refer to the exemplary Fig.16 , the width of the cross-sectional road surface between the edge points C and D on the road surface is smaller than the width of the cross-sectional road surface between points A and B. Due to the different widths of the cross-sectional road surfaces, at least one of the side road surfaces and the middle road surface in the cross-sectional road surface is different. Based on this situation, corresponding bumpy condition representation models can be constructed according to different cross-sectional road surfaces. The specific implementation process can refer to the construction of the bumpy condition representation model of the first cross-sectional road surface mentioned above, which will not be repeated here. Constructing corresponding bumpy condition representation models according to different cross-sectional road surfaces can simulate roads that are more in line with real conditions, which helps to provide more realistic environmental simulation in autonomous driving or assisted driving simulation scenarios to train and optimize the vehicle's dynamics model.
[0177] The above mainly introduces the road bump simulation method provided by the embodiment of the present application. It can be understood that in order to realize the corresponding functions mentioned above, each control unit or device includes a hardware structure and / or software module corresponding to the execution of each function. In combination with the units and steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.
[0178] The embodiment of the present application can divide the functional modules of the device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0179] In the case of dividing each functional module according to each function, the embodiment of the present application also provides an apparatus for implementing any of the above methods. For example, the provided apparatus includes a unit (or means) for implementing each step in any of the above methods.
[0180] For example, see Fig.17, which is a structural schematic diagram of a road bumpy condition simulation device 1700 provided in an embodiment of the present application. Fig.17 The road bump simulation device 1700 shown may be a processing device for implementing any embodiment of the road bump simulation method described above. The road bump simulation device 1700 may include an acquisition unit 1701 and a determination unit 1702. Among them:
[0181] The acquisition unit 1701 is used to acquire parameters of a first cross-sectional road surface of the road; the first cross-sectional road surface includes two side road surfaces and a middle road surface, and the middle road surface is located between the two side road surfaces; the parameters include at least one of the width of the first cross-sectional road surface, the width of the two side road surfaces, and the width of the middle road surface;
[0182] The determination unit 1702 is used to determine a first bump condition of the road surface of the first cross section according to a first model associated with the parameter.
[0183] In a possible implementation manner, the determining unit 1702 is further configured to determine a second bumpy condition of the road surface of the first cross section according to a second model associated with the parameter; the bumpy degree of the second bumpy condition is less than the bumpy degree of the first bumpy condition;
[0184] The device also includes a simulation unit for simulating the bumpy condition of the road surface with the first cross section by integrating the first bumpy condition and the second bumpy condition.
[0185] In a possible implementation manner, the second model indicates the bumpiness of the road surfaces on both sides and the middle road surface, and the bumpiness of the road surfaces on both sides indicated in the second model is greater than or equal to the bumpiness of the middle road surface.
[0186] In a possible implementation, the first model indicates the degree of bumpiness of the road surfaces on both sides and the middle road surface, and the degree of bumpiness of the road surfaces on both sides indicated in the first model is greater than the degree of bumpiness of the middle road surface; the degree of bumpiness of the middle road surface indicated in the first model is represented by a constant.
[0187] In a possible implementation, the first model is constructed based on an objective function; the waveform of the objective function includes a waveform showing a downward trend and / or an upward trend, and the waveform showing a downward trend and / or an upward trend is used to simulate the bumpy conditions of the road surface on both sides.
[0188] In a possible implementation, the first model is constructed based on the objective function, including: the first model is constructed based on a first piecewise function and a second piecewise function, the first piecewise function and the second piecewise function are determined according to a target piecewise function obtained from the objective function;
[0189] The target piecewise function includes one or more piecewise functions whose waveform shows a downward trend, and / or one or more piecewise functions whose waveform shows an upward trend; the first piecewise function is used to represent the bumpiness of the first side of the road surface on both sides, and the second piecewise function is used to represent the bumpiness of the second side of the road surface on both sides.
[0190] In a possible implementation manner, the objective function includes a first function and a second function, and the first function and the second function are two different functions;
[0191] The first piecewise function is determined according to the first target piecewise function in the first function, and the second piecewise function is determined according to the second target piecewise function in the second function;
[0192] The first target piecewise function includes one or more piecewise functions whose waveforms are in a downward trend, and the second piecewise function includes one or more piecewise functions whose waveforms are in an upward trend.
[0193] In a possible implementation manner, the independent variable x of the first function represents any point on the first cross-sectional road surface, and the dependent variable f(x) of the first function represents the height of the first cross-sectional road surface at x relative to a preset reference line;
[0194] The second function is a function obtained by horizontally translating the first function by d in a direction in which the independent variable x increases, where d is the width of the first cross section;
[0195] The first piecewise function is a piecewise function in which the independent variable x takes values between (0, w), and the second piecewise function is a piecewise function in which the independent variable x takes values between (du, d); w is the width of the first side road surface, and u is the width of the second side road surface.
[0196] In a possible implementation, the first model is constructed based on the first piecewise function and the second piecewise function, including:
[0197] The first model is constructed based on a third piecewise function and a fourth piecewise function. The third piecewise function is obtained by taking the absolute value of the first piecewise function, and the fourth piecewise function is obtained by taking the absolute value of the second piecewise function.
[0198] Fig.17 The specific operation and beneficial effects of each unit in the road bump simulation device 1700 can be found in the above Figure 3 The corresponding descriptions in possible embodiments thereof will not be repeated here.
[0199] It should be understood that the division of the above-mentioned servers or driving devices among the units is only a division of logical functions, and in actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. In addition, the units in the device can be implemented in the form of a processor calling software; for example, the device includes a processor, the processor is connected to a memory, and instructions are stored in the memory, and the processor calls the instructions stored in the memory to implement any of the above methods or implement the functions of the various units of the device, wherein the processor is, for example, a general-purpose processor, such as a central processing unit (CPU) or a microprocessor, and the memory is a memory inside the device or a memory outside the device. Alternatively, the units in the device can be implemented in the form of hardware circuits, and the functions of some or all of the units can be realized by designing the hardware circuits, and the hardware circuits can be understood as one or more processors; for example, in one implementation, the hardware circuit is an application-specific integrated circuit (ASIC), and the functions of some or all of the above units are realized by designing the logical relationship of the components in the circuit; for another example, in another implementation, the hardware circuit can be realized by a programmable logic device (PLD), taking a field programmable gate array (FPGA) as an example, which can include a large number of logic gate circuits, and the connection relationship between the logic gate circuits is configured by a configuration file, so as to realize the functions of some or all of the above units. All units of the above devices can be realized in the form of a processor calling software, or in the form of hardware circuits, or in part by a processor calling software, and the rest by hardware circuits.
[0200] In the embodiment of the present application, the processor is a circuit with data processing capability. In one implementation, the processor may be a circuit with instruction reading and running capability, such as a CPU, a microprocessor, a graphics processing unit (GPU) (which may be understood as a microprocessor), or a digital signal processor (DSP), etc.; in another implementation, the processor may implement certain functions through the logical relationship of a hardware circuit, and the logical relationship of the hardware circuit may be fixed or reconfigurable, such as a hardware circuit implemented by an ASIC or PLD, such as an FPGA. In a reconfigurable hardware circuit, the process of the processor loading a configuration document and implementing the hardware circuit configuration may be understood as the process of the processor loading instructions to implement the functions of some or all of the above units. In addition, it may also be a hardware circuit designed for artificial intelligence, which may be understood as an ASIC, such as a neural network processing unit (NPU), a tensor processing unit (TPU), a deep learning processing unit (DPU), etc.
[0201] It can be seen that each unit in the above device can be one or more processors (or processing circuits) configured to implement the above method, such as: CPU, GPU, NPU, TPU, DPU, microprocessor, DSP, ASIC, FPGA, or a combination of at least two of these processor forms.
[0202] In addition, all or part of the units in the above device can be integrated together, or can be implemented independently. In one implementation, these units are integrated together and implemented in the form of a system-on-a-chip (SOC). The SOC may include at least one processor for implementing any of the above methods or implementing the functions of each unit of the device. The type of the at least one processor may be different, for example, including a CPU and an FPGA, a CPU and an artificial intelligence processor, a CPU and a GPU, etc.
[0203] For example, see Fig.18 , which is a structural schematic diagram of a possible physical entity of the road bumpy condition simulation device provided in this application. Fig.18The road bump simulation device 1800 shown can be a processing device in the method described in the above embodiment. The road bump simulation device 1800 includes: a processor 1801, a memory 1802 and a communication interface 1803. The processor 1801, the communication interface 1803 and the memory 1802 can be connected to each other or connected to each other through a bus 1804.
[0204] Exemplarily, the memory 1802 is used to store computer programs and data of the road bumpy condition simulation device 1800. The memory 1802 may include but is not limited to random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM) or portable read only memory (compact disc read-only memory, CD-ROM), etc.
[0205] The software or program code required for all or part of the functions of the road bumpy condition simulation device in the above method embodiment is stored in the memory 1802 .
[0206] In one possible implementation, if the software or program code required for some functions is stored in the memory 1802, the processor 1801, in addition to calling the program code in the memory 1802 to implement some functions, can also cooperate with other components (such as the communication interface 1803) to complete other functions described in the method embodiment (such as the function of receiving or sending data).
[0207] There may be multiple communication interfaces 1803 to support the road bump simulation device 1800 to communicate, such as receiving or sending data or signals.
[0208] Exemplarily, the processor 1801 may be the CPU, GPU, NPU, TPU, DPU, microprocessor, DSP, ASIC, FPGA, or a combination of at least two of these processor forms. The processor 1801 may be used to read the program stored in the memory 1802 and execute the above-mentioned Figure 3 The operations performed in the method and its possible embodiments.
[0209] Fig.18 The specific operation and beneficial effects of each unit in the road bump simulation device 1800 can be found in the above Figure 3 The corresponding descriptions in possible embodiments thereof will not be repeated here.
[0210] The present application also provides a chip, which includes a processor and a memory. The memory is used to store computer programs or computer instructions, and the processor is used to execute the computer programs or computer instructions stored in the memory, so that the chip executes the above Figure 3 And the operations performed by the processing device in possible embodiments thereof.
[0211] The present application also provides a computer-readable storage medium, which stores a computer program or computer instructions, which is executed by a processor to implement the above Figure 3 And the method implemented by the processing device in possible embodiments thereof.
[0212] The present application also provides a computer program product. When the computer program product is read and executed by a computer, the above Figure 3 The operations implemented by the processing device in any one of the methods and possible embodiments thereof will be executed.
[0213] In this application, the terms "first", "second", etc. are used to distinguish between identical or similar items with substantially the same effects and functions. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", nor is there a limitation on the quantity and execution order. It should also be understood that although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by the terms. These terms are only used to distinguish one element from another element.
[0214] It should also be understood that in the various embodiments of the present application, the size of the serial number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0215] It should also be understood that the term “comprise” (also known as “includes,” “including,” “comprises” and / or “comprising”) when used in this specification specifies the presence of stated features, integers, steps, operations, elements, and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.
[0216] It should also be understood that the references to "one embodiment", "an embodiment", or "a possible implementation" throughout the specification mean that specific features, structures, or characteristics related to the embodiment or implementation are included in at least one embodiment of the present application. Therefore, the references to "in one embodiment" or "in an embodiment", or "a possible implementation" throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0217] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for simulating road bumps, characterized in that: The method comprises: Acquire parameters of a first cross-sectional road surface of the road; the first cross-sectional road surface includes two side road surfaces and a middle road surface, and the middle road surface is located between the two side road surfaces; the parameters include at least one of the width of the first cross-sectional road surface, the width of the two side road surfaces, and the width of the middle road surface; A first bump condition of the road surface with the first cross section is determined according to the first model associated with the parameters.
2. The method according to claim 1, characterized in that: The method further comprises: Determine a second bump condition of the road surface of the first cross section according to the second model associated with the parameters; the bump degree of the second bump condition is less than the bump degree of the first bump condition; The first bump condition and the second bump condition are combined to simulate the bump condition of the first cross-section road surface.
3. The method according to claim 2, characterized in that The second model indicates the bumpiness of the road surfaces on both sides and the middle road surface, and the bumpiness of the road surfaces on both sides indicated in the second model is greater than or equal to the bumpiness of the middle road surface.
4. The method according to any one of claims 1 to 3, characterized in that: The first model indicates the degree of bumpiness of the road surfaces on both sides and the middle road surface. The degree of bumpiness of the road surfaces on both sides indicated in the first model is greater than that of the middle road surface. The degree of bumpiness of the middle road surface indicated in the first model is represented by a constant.
5. The method according to any one of claims 1 to 4, characterized in that: The first model is constructed based on the objective function; the waveform of the objective function includes waveforms with a downward trend and / or an upward trend, and the waveforms with a downward trend and / or an upward trend are used to simulate the bumpy conditions of the roads on both sides.
6. The method according to claim 5, characterized in that The first model is constructed based on the objective function, including: the first model is constructed based on a first piecewise function and a second piecewise function, the first piecewise function and the second piecewise function are determined according to a target piecewise function obtained from the objective function; The target piecewise function includes one or more piecewise functions whose waveform shows a downward trend, and / or one or more piecewise functions whose waveform shows an upward trend; the first piecewise function is used to represent the bumpiness of the first side of the road surface on both sides, and the second piecewise function is used to represent the bumpiness of the second side of the road surface on both sides.
7. The method according to claim 6, characterized in that The objective function includes a first function and a second function, wherein the first function and the second function are two different functions; The first piecewise function is determined according to a first target piecewise function in the first function, and the second piecewise function is determined according to a second target piecewise function in the second function; The first target piecewise function includes one or more piecewise functions whose waveforms are in a downward trend, and the second piecewise function includes one or more piecewise functions whose waveforms are in an upward trend.
8. The method according to claim 7, characterized in that The independent variable x of the first function represents any point on the first cross-sectional road surface, and the dependent variable f(x) of the first function represents the height of the first cross-sectional road surface at x relative to a preset reference line; The second function is a function obtained by horizontally translating the first function by d in a direction in which the independent variable x increases, and d is the width of the first cross section; The first piecewise function is a piecewise function in which the independent variable x in the first function takes values between (0, w), and the second piecewise function is a piecewise function in which the independent variable x in the second function takes values between (-u, d); the w is the width of the first side road surface, and the u is the width of the second side road surface.
9. The method according to any one of claims 6 to 8, characterized in that: The first model is constructed based on the first piecewise function and the second piecewise function, including: The first model is constructed based on a third piecewise function and a fourth piecewise function, wherein the third piecewise function is obtained by taking the absolute value of the first piecewise function, and the fourth piecewise function is obtained by taking the absolute value of the second piecewise function.
10. The method according to any one of claims 1 to 9, characterized in that: The road is an unpaved road.
11. A device for simulating road bumps, characterized in that: The device comprises: an acquisition unit, configured to acquire parameters of a first cross-sectional road surface of the road; the first cross-sectional road surface includes two side road surfaces and a middle road surface, and the middle road surface is located between the two side road surfaces; the parameters include at least one of the width of the first cross-sectional road surface, the width of the two side road surfaces, and the width of the middle road surface; A determination unit is used to determine a first bump condition of the road surface of the first cross-section according to a first model associated with the parameters.
12. The device according to claim 11, characterized in that The determining unit is further used to determine a second bumpy condition of the road surface of the first cross-section according to the second model associated with the parameters; the bumpy degree of the second bumpy condition is less than the bumpy degree of the first bumpy condition; The device also includes a simulation unit for simulating the bumpy condition of the first cross-section road surface by integrating the first bumpy condition and the second bumpy condition.
13. The device according to claim 12, characterized in that The second model indicates the bumpiness of the road surfaces on both sides and the middle road surface, and the bumpiness of the road surfaces on both sides indicated in the second model is greater than or equal to the bumpiness of the middle road surface.
14. The device according to any one of claims 11 to 13, characterized in that: The first model indicates the degree of bumpiness of the road surfaces on both sides and the middle road surface. The degree of bumpiness of the road surfaces on both sides indicated in the first model is greater than that of the middle road surface. The degree of bumpiness of the middle road surface indicated in the first model is represented by a constant.
15. The device according to any one of claims 11 to 14, characterized in that: The first model is constructed based on the objective function; the waveform of the objective function includes waveforms with a downward trend and / or an upward trend, and the waveforms with a downward trend and / or an upward trend are used to simulate the bumpy conditions of the roads on both sides.
16. The device according to claim 15, characterized in that The first model is constructed based on the objective function, including: the first model is constructed based on a first piecewise function and a second piecewise function, the first piecewise function and the second piecewise function are determined according to a target piecewise function obtained from the objective function; The target piecewise function includes one or more piecewise functions whose waveform shows a downward trend, and / or one or more piecewise functions whose waveform shows an upward trend; the first piecewise function is used to represent the bumpiness of the first side of the road surface on both sides, and the second piecewise function is used to represent the bumpiness of the second side of the road surface on both sides.
17. The device according to claim 16, characterized in that The objective function includes a first function and a second function, wherein the first function and the second function are two different functions; The first piecewise function is determined according to a first target piecewise function in the first function, and the second piecewise function is determined according to a second target piecewise function in the second function; The first target piecewise function includes one or more piecewise functions whose waveforms are in a downward trend, and the second piecewise function includes one or more piecewise functions whose waveforms are in an upward trend.
18. The device according to claim 17, characterized in that The independent variable x of the first function represents any point on the first cross-sectional road surface, and the dependent variable f(x) of the first function represents the height of the first cross-sectional road surface at x relative to a preset reference line; The second function is a function obtained by horizontally translating the first function by d in a direction in which the independent variable x increases, and d is the width of the first cross section; The first piecewise function is a piecewise function in which the independent variable x in the first function takes values between (0, w), and the second piecewise function is a piecewise function in which the independent variable x in the second function takes values between (du, d); w is the width of the first side road surface, and u is the width of the second side road surface.
19. The device according to any one of claims 16 to 18, characterized in that: The first model is constructed based on the first piecewise function and the second piecewise function, including: The first model is constructed based on a third piecewise function and a fourth piecewise function, wherein the third piecewise function is obtained by taking the absolute value of the first piecewise function, and the fourth piecewise function is obtained by taking the absolute value of the second piecewise function.
20. The device according to any one of claims 11 to 19, characterized in that The road is an unpaved road.
21. A device for simulating road bumps, characterized in that: The device comprises a processor and a memory, wherein the memory is used to store a computer program or a computer instruction, and the processor is used to execute the computer program or the computer instruction stored in the memory, so that the device executes the method according to any one of claims 1 to 10.
22. A chip, characterized in that: The chip includes a processor and a memory, wherein the memory is used to store computer programs or computer instructions, and the processor is used to execute the computer programs or computer instructions stored in the memory, so that the chip executes the method according to any one of claims 1-10.
23. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program or computer instructions, and the computer program or computer instructions are executed by a processor to implement the method according to any one of claims 1 to 10.
24. A computer program product, characterized in that When the computer program product is executed by a processor, the method according to any one of claims 1 to 10 will be implemented.
