CN114537416A - Calibration table generation method and device, electronic equipment and storage medium - Google Patents
Calibration table generation method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114537416A CN114537416A CN202210150938.6A CN202210150938A CN114537416A CN 114537416 A CN114537416 A CN 114537416A CN 202210150938 A CN202210150938 A CN 202210150938A CN 114537416 A CN114537416 A CN 114537416A
- Authority
- CN
- China
- Prior art keywords
- curve
- curves
- speed control
- vehicle speed
- acceleration
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 80
- 238000011088 calibration curve Methods 0.000 claims abstract description 80
- 238000012937 correction Methods 0.000 claims abstract description 80
- 238000012545 processing Methods 0.000 claims abstract description 16
- 230000001133 acceleration Effects 0.000 claims description 147
- 230000008569 process Effects 0.000 claims description 35
- 238000004422 calculation algorithm Methods 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 17
- 238000010586 diagram Methods 0.000 description 22
- 238000004364 calculation method Methods 0.000 description 7
- 239000006185 dispersion Substances 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000002159 abnormal effect Effects 0.000 description 3
- 230000005856 abnormality Effects 0.000 description 3
- 238000013480 data collection Methods 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
- B60W50/00—Details of control systems for road vehicle drive control not related to the control of a particular sub-unit, e.g. process diagnostic or vehicle driver interfaces
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
- B60W50/00—Details of control systems for road vehicle drive control not related to the control of a particular sub-unit, e.g. process diagnostic or vehicle driver interfaces
- B60W2050/0001—Details of the control system
- B60W2050/0043—Signal treatments, identification of variables or parameters, parameter estimation or state estimation
Landscapes
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Human Computer Interaction (AREA)
- Transportation (AREA)
- Mechanical Engineering (AREA)
- Control Of Driving Devices And Active Controlling Of Vehicle (AREA)
Abstract
Description
技术领域technical field
本申请属于数据处理技术领域,尤其涉及一种标定表的生成方法、装置、电子设备及存储介质。The present application belongs to the technical field of data processing, and in particular, relates to a method, device, electronic device and storage medium for generating a calibration table.
背景技术Background technique
随着汽车的不断普及,用户自驾成为最为常用的出行方式,在用户驾驶的过程中,可以通过控制油门以及刹车,以实现对车辆的车速进行调控,而油门以及刹车的开度(即踩踏的深度)会直接决定车速控制的快慢,即决定了车辆行驶过程中的加速度大小。而在用户控制车辆加速度的过程中,从用户控制油门或刹车到汽车实际响应,需要经过油门制动踏板系统-车辆动力系统-加速度实现的转换,是一个较为复杂的实现过程,因此为了提高用户操作与加速度实现之间转换的准确性,可以通过配置标定表,以确定不同的车速调控操作(即控制油门以及刹车的开度)对应的加速度。With the continuous popularization of automobiles, self-driving has become the most commonly used way of travel. During the driving process, the user can control the speed of the vehicle by controlling the accelerator and brake, and the opening of the accelerator and brake (that is, the stepping Depth) will directly determine the speed of the vehicle speed control, that is, the acceleration of the vehicle during driving. In the process of the user controlling the acceleration of the vehicle, from the user controlling the accelerator or the brake to the actual response of the car, the conversion from the accelerator/brake pedal system - the vehicle power system - acceleration is required, which is a relatively complex realization process. The accuracy of the conversion between operation and acceleration can be determined by configuring a calibration table to determine the acceleration corresponding to different vehicle speed control operations (ie, controlling the opening of the accelerator and the brake).
现有的标定表的生成方法,主要是通过采集得到汽车行驶过程中在不同的车速调控操作下对应的运动数据,通过人为经验的方式对各个车速调控操作对应的加速度进行标注,上述方式依赖人工经验完成,生成效率较低以及准确率无法保证。The existing method for generating the calibration table is mainly to obtain the corresponding motion data under different vehicle speed control operations during the driving process of the vehicle, and to mark the acceleration corresponding to each vehicle speed control operation by means of human experience. The above method relies on manual labor. Experience is completed, the generation efficiency is low and the accuracy cannot be guaranteed.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种标定表的生成方法、装置、电子设备及存储介质,可以解决现有的标定表的生成技术,依赖人工经验完成,生成效率较低以及准确率无法保证的问题。The embodiments of the present application provide a method, device, electronic device, and storage medium for generating a calibration table, which can solve the problems that the existing generation technology of the calibration table relies on manual experience, the generation efficiency is low, and the accuracy cannot be guaranteed.
第一方面,本申请实施例提供了一种标定表的生成方法,应用于加密装置,包括:In a first aspect, an embodiment of the present application provides a method for generating a calibration table, which is applied to an encryption device, including:
根据采集得到的关于目标车辆在不同车速调控操作下的运动数据,生成各个所述车速调控操作对应的待校准曲线;所述待校准曲线用于表示所述目标车辆在所述车速调控操作下速度与加速度之间的对应关系;According to the collected motion data about the target vehicle under different vehicle speed control operations, a to-be-calibrated curve corresponding to each of the vehicle speed control operations is generated; the to-be-calibrated curve is used to represent the speed of the target vehicle under the vehicle speed control operation Corresponding relationship with acceleration;
若任意两个待校准曲线之间存在曲线交点,则根据所述曲线交点调整所述任意两个待校准曲线中所述曲线交点所在的曲线段,得到一次校正曲线;If there is a curve intersection point between any two curves to be calibrated, adjust the curve segment where the curve intersection point is located in the any two curves to be calibrated according to the curve intersection point to obtain a primary calibration curve;
对各个所述车速调控操作对应的待平直曲线进行平直处理,得到二次校正曲线;所述待平直曲线为所述一次校正曲线或所述待校准曲线;performing straightening processing on the curves to be straightened corresponding to each of the vehicle speed control operations to obtain a secondary correction curve; the curve to be straightened is the primary correction curve or the curve to be calibrated;
基于所述二次校正曲线,生成所述目标车辆的标定表。Based on the quadratic correction curve, a calibration table for the target vehicle is generated.
在第一方面的一种可能的实现方式中,所述若任意两个待校准曲线之间存在曲线交点,则根据所述曲线交点调整所述任意两个待校准曲线中所述曲线交点所在的曲线段,得到一次校正曲线,包括:In a possible implementation manner of the first aspect, if there is a curve intersection point between any two curves to be calibrated, adjust the position where the curve intersection point of the any two curves to be calibrated is located according to the curve intersection point. Curve segment, get a calibration curve, including:
根据任意两个交叉曲线对应的所述车速调控操作之间的单调关系,分别从所述任意两个交叉曲线中识别出不符合所述单调关系的所述曲线段;所述交叉曲线为所述待校准曲线或第N调整曲线;所述N的初始值为0;According to the monotonic relationship between the vehicle speed control operations corresponding to any two intersecting curves, the curve segments that do not conform to the monotonic relationship are respectively identified from the any two intersecting curves; the intersecting curve is the The curve to be calibrated or the Nth adjustment curve; the initial value of N is 0;
基于所述任意两个交叉曲线中任一曲线的曲线段,调整所述任意两个交叉曲线中另一曲线的曲线段,得到第N调整曲线;Based on the curve segment of any one of the any two intersecting curves, adjusting the curve segment of the other curve of the any two intersecting curves to obtain the Nth adjustment curve;
若所有车速调控操作的所述第N调整曲线和/或所述待校准曲线之间均不存在所述曲线交点,则将所述第N调整曲线识别为所述一次校正曲线,并执行所述对各个所述车速调控操作对应的待平直曲线进行平直处理,得到二次校正曲线的操作;If the curve intersection point does not exist between the Nth adjustment curve and/or the to-be-calibrated curve of all vehicle speed control operations, identify the Nth adjustment curve as the primary correction curve, and execute the Performing a flattening process on the to-be-flattened curve corresponding to each of the vehicle speed control operations to obtain an operation of a quadratic correction curve;
若所有车速调控操作对应的曲线间存在所述曲线交点,则增加所述N的值,并返回执行所述根据任意两个交叉曲线对应的所述车速调控操作之间的单调关系,分别从所述任意两个交叉曲线中识别出不符合所述单调关系的所述曲线段;车速调控操作对应的曲线为所述待校准曲线或第N调整曲线。If there is the curve intersection point between the curves corresponding to all the vehicle speed control operations, increase the value of N, and return to execute the monotonic relationship between the vehicle speed control operations corresponding to any two intersection curves, respectively The curve segment that does not conform to the monotonic relationship is identified from the any two intersecting curves; the curve corresponding to the vehicle speed control operation is the to-be-calibrated curve or the Nth adjustment curve.
在第一方面的一种可能的实现方式中,所述若所有车速调控操作对应的曲线间存在所述曲线交点,则增加所述N的值,并返回执行所述根据任意两个交叉曲线对应的所述车速调控操作之间的单调关系,分别从所述任意两个交叉曲线中识别出不符合所述单调关系的所述曲线段,包括:In a possible implementation manner of the first aspect, if there is the curve intersection point between the curves corresponding to all the vehicle speed control operations, increase the value of N, and return to execute the corresponding curve according to any two intersection curves. The monotonic relationship between the vehicle speed control operations, respectively identifying the curve segments that do not conform to the monotonic relationship from the any two intersecting curves, including:
所述若所有车速调控操作对应的曲线间存在所述曲线交点,则增加所述N的值;The value of N is increased if there is the curve intersection point between the curves corresponding to all the vehicle speed control operations;
若所述N的值大于预设的循环上限值,则基于预设的调整阈值以及所述单调关系,对所述任意两个交叉曲线中的所述曲线段进行调整,得到一次校正曲线;If the value of N is greater than the preset upper limit of the cycle, based on the preset adjustment threshold and the monotonic relationship, the curve segments in the any two cross curves are adjusted to obtain a primary correction curve;
若所述N的值小于或等于所述循环上限值,则返回执行所述根据任意两个交叉曲线对应的所述车速调控操作之间的单调关系,分别从所述任意两个交叉曲线中识别出不符合所述单调关系的所述曲线段。If the value of N is less than or equal to the upper limit of the cycle, return to execute the monotonic relationship between the vehicle speed control operations corresponding to any two intersection curves, respectively from the any two intersection curves. The segment of the curve that does not meet the monotonic relationship is identified.
在第一方面的一种可能的实现方式中,所述对各个所述车速调控操作对应的待平直曲线进行平直处理,得到二次校正曲线,包括:In a possible implementation manner of the first aspect, the flattening process is performed on the to-be-flattened curve corresponding to each of the vehicle speed control operations to obtain a quadratic correction curve, including:
根据所述待平直曲线中的加速度极值,计算所述待平直曲线的均方根;所述加速度极值与所述车速调控操作的车速调控方向相同;According to the acceleration extreme value in the to-be-flattened curve, calculate the root mean square of the to-be-flattened curve; the acceleration extreme value is the same as the vehicle speed control direction of the vehicle speed control operation;
若所述均方根大于或等于预设的浮动阈值,则通过预设的曲线收敛算法对所述待平直曲线进行处理,直到处理后的曲线的均方根小于所述浮动阈值,得到所述二次校正曲线;If the root mean square is greater than or equal to a preset floating threshold, the curve to be flattened is processed by a preset curve convergence algorithm until the root mean square of the processed curve is less than the floating threshold, and the obtained the quadratic calibration curve;
若所述均方根小于所述浮动阈值,则识别所述待平直曲线为所述二次校正曲线。If the root mean square is less than the floating threshold, the curve to be flattened is identified as the quadratic correction curve.
在第一方面的一种可能的实现方式中,所述若所述均方根大于或等于预设的浮动阈值,则通过预设的曲线收敛算法对所述待平直曲线进行处理,直到处理后的曲线的均方根小于所述浮动阈值,得到所述二次校正曲线,包括:In a possible implementation manner of the first aspect, if the root mean square is greater than or equal to a preset floating threshold, the curve to be flattened is processed by a preset curve convergence algorithm until processing The root mean square of the latter curve is less than the floating threshold, and the quadratic correction curve is obtained, including:
将所述待平直曲线上各个速度点对应的实际加速度与所述加速度极值之间的中值,作为各个所述速度点的校正加速度;Taking the median value between the actual acceleration corresponding to each speed point on the curve to be flattened and the acceleration extreme value as the correction acceleration of each speed point;
基于所有所述速度点的所述校正加速度,得到平直处理后的曲线;obtaining a flattened curve based on the corrected accelerations of all the speed points;
基于所述加速度极值,计算所述平直处理后的曲线的均方根;based on the acceleration extreme value, calculating the root mean square of the flattened curve;
若所述平直处理后的曲线的均方根大于或等于所述浮动阈值,则返回执行所述将所述待平直曲线上各个速度点对应的实际加速度与所述加速度极值之间的中值,作为各个所述速度点的校正加速度,直到平直处理后的曲线的均方根小于所述浮动阈值。If the root mean square of the flattened curve is greater than or equal to the floating threshold value, return to execute the process of comparing the actual acceleration corresponding to each speed point on the curve to be flattened and the acceleration extreme value. The median value is used as the corrected acceleration for each of the speed points until the root mean square of the flattened curve is less than the floating threshold.
在第一方面的一种可能的实现方式中,所述基于所述二次校正曲线,生成所述目标车辆的标定表,包括:In a possible implementation manner of the first aspect, generating the calibration table of the target vehicle based on the quadratic calibration curve includes:
根据各个所述二次校正曲线之间的偏差度,识别冗余曲线;Identifying redundant curves according to the degree of deviation between each of the secondary calibration curves;
从所有所述二次校正曲线中移除所述冗余曲线,得到有效标定曲线;Remove the redundant curves from all the quadratic calibration curves to obtain a valid calibration curve;
基于所有有效标定曲线以及所述有效标定曲线对应的车速控制操作,生成所述目标车辆的标定表。A calibration table of the target vehicle is generated based on all valid calibration curves and vehicle speed control operations corresponding to the valid calibration curves.
在第一方面的一种可能的实现方式中,所述根据各个所述二次校正曲线之间的偏差度,识别冗余曲线,包括:In a possible implementation manner of the first aspect, identifying the redundant curve according to the degree of deviation between each of the quadratic calibration curves includes:
将上限加速操作的第一曲线与下限减速操作的第二曲线在各个速度点之间的加速度偏差的第一均值,作为所述目标车辆的极限偏差值;taking the first mean value of the acceleration deviation between each speed point between the first curve of the upper limit acceleration operation and the second curve of the lower limit deceleration operation as the limit deviation value of the target vehicle;
计算任意两个二次校正曲线在各个速度点之间的加速度偏差的第二均值,并将所述第二均值与所述极限偏差度之间的比值作为所述任意两个二次校正曲线的所述偏差度;Calculate the second mean value of the acceleration deviations between any two quadratic calibration curves at each speed point, and use the ratio between the second mean value and the limit deviation as the difference between the any two quadratic calibration curves. the degree of deviation;
若所述偏差度小于预设的偏差阈值,则将所述任意两个二次校正曲线中的一个二次校正曲线识别为所述冗余曲线。If the degree of deviation is smaller than a preset deviation threshold, then one of the two quadratic calibration curves is identified as the redundant curve.
第二方面,本申请实施例提供了一种标定表的生成装置,包括:In a second aspect, an embodiment of the present application provides a device for generating a calibration table, including:
运动数据采集单元,用于根据采集得到的关于目标车辆在不同车速调控操作下的运动数据,生成各个所述车速调控操作对应的待校准曲线;所述待校准曲线用于表示所述目标车辆在所述车速调控操作下速度与加速度之间的对应关系;A motion data acquisition unit, configured to generate a curve to be calibrated corresponding to each of the vehicle speed control operations according to the collected motion data about the target vehicle under different speed control operations; the to-be-calibrated curve is used to indicate that the target vehicle is in the corresponding relationship between the speed and the acceleration under the vehicle speed control operation;
一次校正单元,用于若任意两个待校准曲线之间存在曲线交点,则根据所述曲线交点调整所述任意两个待校准曲线中所述曲线交点所在的曲线段,得到一次校正曲线;a primary correction unit, configured to adjust the curve segment where the curve intersection point is located in the any two curves to be calibrated according to the curve intersection point, to obtain a primary correction curve;
二次校正单元,用于对各个所述车速调控操作对应的待平直曲线进行平直处理,得到二次校正曲线;所述待平直曲线为所述一次校正曲线或所述待校准曲线;a secondary correction unit, configured to perform flattening processing on the curves to be flattened corresponding to each of the vehicle speed control operations to obtain a secondary correction curve; the curve to be flattened is the primary correction curve or the curve to be calibrated;
标定表生成单元,用于基于所述二次校正曲线,生成所述目标车辆的标定表。A calibration table generating unit, configured to generate a calibration table of the target vehicle based on the quadratic correction curve.
第三方面,本申请实施例提供了一种电子设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述第一方面任一项所述的方法。In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, when the processor executes the computer program A method as described in any one of the above first aspects is implemented.
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如上述第一方面任一项所述的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the implementation of any one of the foregoing first aspect Methods.
第五方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在服务器上运行时,使得服务器执行上述第一方面中任一项所述的方法。In a fifth aspect, an embodiment of the present application provides a computer program product that, when the computer program product runs on a server, causes the server to execute the method described in any one of the foregoing first aspects.
本申请实施例与现有技术相比存在的有益效果是:通过获取目标车辆在不同车速调控操作下对应的运动数据,从而生成关于不同速度调控操作对应的待校准曲线,在正常情况下,不同的车速调控操作之间的加速度是符合相互之间的单调关系,即曲线不存在交叉的情况,因此,电子设备可以对存在曲线交叉点的待校准曲线进行调整,得到一次校正曲线,继而通过预设的平直处理算法对曲线进行平直处理,以对加速度突变的曲线段进行处理,以使车速调控操作在不同速度下对应的加速度趋于平稳,继而根据所有二次校正曲线生成该目标车辆的标定表,实现了标定表的自动生成的目的。与现有的标定表的生成技术相比,本申请实施例中的标定表可以自动生成,对标定表内的各个待校准曲线中加速度存在单调异常的部分进行调整,并进行曲线平直处理,以使实现对曲线的校正,在提高标定表内各个标定曲线的生成效率的同时,也能够提高标定曲线的准确性。Compared with the prior art, the beneficial effect of the embodiment of the present application is: by acquiring the motion data corresponding to the target vehicle under different speed control operations, the to-be-calibrated curves corresponding to different speed control operations are generated. The accelerations between the speed control operations of the different speed control operations are in line with the monotonic relationship between each other, that is, the curves do not cross. Therefore, the electronic device can adjust the curve to be calibrated with the intersection of the curves to obtain a correction curve, and then pass the pre-calibration curve. The designed straightening processing algorithm performs straightening processing on the curve to process the curve segment with sudden acceleration, so that the corresponding acceleration of the vehicle speed control operation at different speeds tends to be stable, and then the target vehicle is generated according to all quadratic correction curves. The calibration table realizes the purpose of automatic generation of the calibration table. Compared with the generation technology of the existing calibration table, the calibration table in the embodiment of the present application can be automatically generated, and the parts in the calibration table where the acceleration has a monotonic abnormality in each curve to be calibrated is adjusted, and the curve is straightened, In order to realize the correction of the curve, while improving the generation efficiency of each calibration curve in the calibration table, the accuracy of the calibration curve can also be improved.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only for the present application. In some embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1是本申请一实施例提供的一种标定表的生成方法的实现示意图;1 is a schematic diagram of the realization of a method for generating a calibration table provided by an embodiment of the present application;
图2是本申请一实施例提供的待校准曲线的示意图;2 is a schematic diagram of a curve to be calibrated provided by an embodiment of the present application;
图3是本申请一实施例提供的平直处理的示意图;3 is a schematic diagram of a straightening process provided by an embodiment of the present application;
图4是本申请一实施例提供的一种标定表的生成方法S102的一种实现方式示意图;4 is a schematic diagram of an implementation manner of a method for generating a calibration table S102 provided by an embodiment of the present application;
图5是本申请一实施例提供的曲线段调整的示意图;5 is a schematic diagram of curve segment adjustment provided by an embodiment of the present application;
图6是本申请一实施例提供的交叉校正示意图;FIG. 6 is a schematic diagram of cross-correction provided by an embodiment of the present application;
图7是本申请一实施例提供的一种标定表的生成方法的S103一种实现方式示意图;7 is a schematic diagram of an implementation of S103 of a method for generating a calibration table provided by an embodiment of the present application;
图8是本申请一实施例提供的曲线平直处理的示意图;8 is a schematic diagram of a curve flattening process provided by an embodiment of the present application;
图9是本申请一实施例提供的一种标定表的生成方法的S104一种实现方式示意图;9 is a schematic diagram of an implementation of S104 of a method for generating a calibration table provided by an embodiment of the present application;
图10是本申请一实施例提供的标定曲线的过滤示意图;10 is a schematic diagram of filtering a calibration curve provided by an embodiment of the present application;
图11是本申请实施例提供的标定表的生成装置的结构示意图;11 is a schematic structural diagram of a device for generating a calibration table provided by an embodiment of the present application;
图12是本申请实施例提供的电子设备的结构示意图。FIG. 12 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as a specific system structure and technology are set forth in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It is to be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described feature, integer, step, operation, element and/or component, but does not exclude one or more other The presence or addition of features, integers, steps, operations, elements, components and/or sets thereof.
另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of the specification of the present application and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the description, and should not be construed as indicating or implying relative importance.
本申请实施例提供的标定表的生成方法可以应用于智能手机、服务器、平板电脑、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、服务器等能够实现生成关于目标车辆的标定表的电子设备上。本申请实施例对电子设备的具体类型不作任何限制。The method for generating a calibration table provided by the embodiments of the present application can be applied to smart phones, servers, tablet computers, notebook computers, ultra-mobile personal computers (UMPC), netbooks, servers, etc., and can generate information about the target vehicle. on the electronics of the calibration table. The embodiments of the present application do not limit any specific types of electronic devices.
请参阅图1,图1示出了本申请实施例提供的一种标定表的生成方法的实现示意图,该方法包括如下步骤:Please refer to FIG. 1. FIG. 1 shows a schematic implementation diagram of a method for generating a calibration table provided by an embodiment of the present application. The method includes the following steps:
在S101中,根据采集得到的关于目标车辆在不同车速调控操作下的运动数据,生成各个所述车速调控操作对应的待校准曲线;所述待校准曲线用于表示所述目标车辆在所述车速调控操作下速度与加速度之间的对应关系。In S101, a curve to be calibrated corresponding to each of the vehicle speed control operations is generated according to the collected motion data about the target vehicle under different speed control operations; the to-be-calibrated curve is used to indicate that the target vehicle is at the vehicle speed Correspondence between speed and acceleration under control operation.
在本实施例中,车速调控操作具体为用户发起的会对目标车辆的行驶速度产生影响的操作,包括:控制车辆的油门(即提高行驶速度)以及控制车辆的刹车(即降低行驶速度),根据用户按压油门或刹车的压力大小,可以改变油门或刹车的开度,若油门的开度越大,则对应的正向加速度越大,即行驶速度提升得越快;若刹车的开度越大,则对应的负向加速度越大,即行驶速度下降得越快,因此,油门以及刹车的开度不同,在行驶过程中所对应的加速度的数值也会存在差异,为了准确响应用户发起的车速调控操作,以控制目标车辆以与车速调控操作对应的加速度进行行驶,需要设定标定表,从而能够确定不同车速调控操作在各个速度下对应的加速度。In this embodiment, the vehicle speed control operation is specifically an operation initiated by the user that will affect the driving speed of the target vehicle, including: controlling the accelerator of the vehicle (that is, increasing the driving speed) and controlling the braking of the vehicle (that is, reducing the driving speed), According to the pressure of the user pressing the accelerator or brake, the opening of the accelerator or brake can be changed. Larger, the greater the corresponding negative acceleration, that is, the faster the driving speed drops. Therefore, the opening of the accelerator and the brake is different, and the corresponding acceleration value will also be different during the driving process. In order to accurately respond to the user-initiated The speed regulation operation is to control the target vehicle to drive at the acceleration corresponding to the speed regulation operation, and a calibration table needs to be set, so that the acceleration corresponding to different vehicle speed regulation operations at each speed can be determined.
在本实施例中,目标车辆在出厂之前,可以进行车辆行驶测试,获取目标车辆在不同车速控制操作下,不同行驶速度对应的加速度值,例如,在油门按压开度在5%的状态下,在各个车速下对应的加速度,得到油门按压开度在5%的状态下对应的运动数据;然后再获取油门开度在10%的状态下,在各个车速下对应的加速度,得到油门按压开度在5%的状态下对应的运动数据,以此类推,获取得到所有车速控制操作下对应的运动数据。In this embodiment, before the target vehicle leaves the factory, a vehicle driving test can be performed to obtain the acceleration values corresponding to different driving speeds of the target vehicle under different vehicle speed control operations. For example, when the accelerator opening is at 5%, The corresponding acceleration at each vehicle speed is obtained, and the corresponding motion data is obtained when the accelerator opening is 5%; and then the corresponding acceleration at each vehicle speed is obtained when the accelerator opening is 10%, and the accelerator opening is obtained. The corresponding motion data in the state of 5%, and so on, are obtained to obtain the corresponding motion data under all vehicle speed control operations.
需要说明的是,不同的车速控制操作具有相应的车速调控方向,相互之间也具有固定的单调特性。例如,所有的油门控制操作均是使得车辆速度提升的,即加速度均为正值,其车速调控方向为速度的正向;所有刹车控制操作均是使得车辆速度降低的,即加速度均为负值,其车速调控方向为速度的负向。即车速控制操作的车速控制方向与其操作类型相关。另一方面,不同的车速调控操作之间也存在严格的单调特性。其中,油门开度越大,其对应的加速度值则越大,例如油门开度为10%的状态对应的加速度是大于油门开度为5%的状态下对应的加速度的;刹车开度为10%的状态下对应的负向加速度也是大于刹车开度为5%的状态下对应的负向加速度。当然,若部分车辆并非通过油门或刹车进行加速减速的,如提高运行档位,则可以根据档位的类型确定其对应的车速控制方向以及单调关系,在此不做限定。It should be noted that different vehicle speed control operations have corresponding vehicle speed control directions, which also have fixed monotonic characteristics between them. For example, all the throttle control operations are to increase the vehicle speed, that is, the acceleration is positive, and the direction of the speed control is the positive direction of the speed; all the brake control operations are to reduce the vehicle speed, that is, the acceleration is negative. , and its speed regulation direction is the negative direction of speed. That is, the vehicle speed control direction of the vehicle speed control operation is related to its operation type. On the other hand, there is also strict monotonicity between different speed control operations. Among them, the larger the accelerator opening, the larger the corresponding acceleration value. For example, the acceleration corresponding to the state where the accelerator opening is 10% is greater than the corresponding acceleration when the accelerator opening is 5%; the braking opening is 10%. The corresponding negative acceleration in the state of % is also greater than the negative acceleration corresponding to the state in which the brake opening is 5%. Of course, if some vehicles do not accelerate or decelerate through the accelerator or brake, such as increasing the operating gear, the corresponding vehicle speed control direction and monotonic relationship can be determined according to the type of gear, which is not limited here.
在一种可能的实现方式中,电子设备可以根据预设的插值数,在车速调控操作范围内确定需要生成待校准曲线的多个车速调控操作,其中,车速调控操作的个数是根据上述的插值数确定的,若插值数为6,加上车速调控操作范围的两个边界值对应的车速调控操作,则一共所需生成待校准曲线的个数为8。举例性地,以油门开度最大时对应的状态定义为+100%,则刹车开度最大时对应的状态定位为-100%,则所需采集的不同车速调控速度的数据集合为:{cmd}={-100,-50,-25,-10,10,25,50,100}。In a possible implementation manner, the electronic device may determine a plurality of vehicle speed control operations that need to generate a curve to be calibrated within the vehicle speed control operation range according to a preset interpolation number, wherein the number of vehicle speed control operations is based on the above The number of interpolations is determined. If the number of interpolations is 6, and the vehicle speed control operations corresponding to the two boundary values of the vehicle speed control operation range are added, the total number of curves to be calibrated that needs to be generated is 8. For example, the state corresponding to the maximum accelerator opening is defined as +100%, and the corresponding state positioning when the brake opening is maximum is -100%, then the data set of different vehicle speed control speeds to be collected is: {cmd }={-100,-50,-25,-10,10,25,50,100}.
在本实施例中,电子设备可以根据车速调控操作的不同,对各个运动数据进行分类,继而统计属于同一车速调控操作下,测试过程中目标车辆在不同速度下对应的加速度,从而生成该车速调控操作对应的待校准曲线,以确定目标车辆在车速调控操作下速度与加速度之间的对应关系。In this embodiment, the electronic device can classify each motion data according to the different speed control operations, and then count the corresponding accelerations of the target vehicle at different speeds during the test under the same speed control operation, so as to generate the speed control operation. The corresponding curve to be calibrated is operated to determine the corresponding relationship between the speed and the acceleration of the target vehicle under the vehicle speed control operation.
示例性地,图2示出了本申请一实施例提供的待校准曲线的示意图。参见图2中的(a)所示,坐标系中的横坐标为速度,纵坐标为加速度,不同的车速控制操作对应不同的待校准曲线,例如油门开度为10%的车速控制操作对应的待校准曲线为曲线1,而油门开度为20%的车速控制操作对应的待校准曲线为曲线2。Exemplarily, FIG. 2 shows a schematic diagram of a curve to be calibrated provided by an embodiment of the present application. Referring to (a) in Figure 2, the abscissa in the coordinate system is the speed, and the ordinate is the acceleration. Different vehicle speed control operations correspond to different curves to be calibrated. For example, the vehicle speed control operation with an accelerator opening of 10% corresponds to The curve to be calibrated is
在S102中,若任意两个待校准曲线之间存在曲线交点,则根据所述曲线交点调整所述任意两个待校准曲线中所述曲线交点所在的曲线段,得到一次校正曲线。In S102, if there is a curve intersection point between any two curves to be calibrated, adjust the curve segment where the curve intersection point is located in the any two curves to be calibrated according to the curve intersection point to obtain a primary calibration curve.
在本实施例中,电子设备在生成了不同车速调控操作对应的待校准曲线后,可以在同一坐标系内标记各个待校准曲线,并判断各个待校准曲线之间是否存在交叠的曲线交叉点。在正常情况下,不同车速控制操作对应的加速度之间的单调关系是符合其车速控制操作之间的单调关系的,例如,在相同速度的情况下,油门开度为10%时对应的加速度,应该大于油门开度为5%时对应的加速度,即符合油门开度为10%与油门开度为5%之间的单调关系。在该情况下,不同车速控制操作对应的加速度与速度之间的关系曲线,应该不存在相互交叠的曲线交点。若存在曲线交点,则可以认为对应区域的数值存在异常,此时需要对该区域的曲线段进行调整。In this embodiment, after generating the curves to be calibrated corresponding to different vehicle speed control operations, the electronic device can mark each curve to be calibrated in the same coordinate system, and determine whether there is an overlapping curve intersection between the curves to be calibrated . Under normal circumstances, the monotonic relationship between the accelerations corresponding to different vehicle speed control operations is consistent with the monotonic relationship between their vehicle speed control operations. For example, at the same speed, the corresponding acceleration when the accelerator opening is 10%, It should be greater than the corresponding acceleration when the accelerator opening is 5%, that is, it conforms to the monotonic relationship between the accelerator opening of 10% and the accelerator opening of 5%. In this case, the relationship curves between acceleration and speed corresponding to different vehicle speed control operations should not have overlapping points of curve intersections. If there is a curve intersection, it can be considered that the value of the corresponding area is abnormal, and the curve segment in this area needs to be adjusted.
示例性地,继续参见图2中的(a),曲线1对应的油门开度为10%,曲线2对应的油门开度为20%,在相同速度下,理论上油门开度为10%的加速度应该小于油门开度为20的加速度,才符合用户实际的驾驶操作预期,而在速度为a时,两个待校准曲线相交,在速度为a之前的区间,油门开度为10%的加速度均大于油门开度为20%的加速度,与实际情况不符,因此可以将速度为a所在的曲线段(速度在0-a区间的曲线段)识别为异常曲线段,对该异常曲线段进行调整。Exemplarily, continue to refer to (a) in FIG. 2 , the accelerator opening corresponding to
在一种可能的实现方式中,电子设备调整曲线交点在不同待校准曲线上的曲线段的方式可以为:根据两个曲线段之间各个坐标点对应的加速度的均值,作为各个坐标点对应的校正值,基于校正值以及两个待校准曲线之间的单调关系,调整各个两个曲线段上的各个坐标点,从而得到一次校正曲线。In a possible implementation manner, the electronic device adjusts the curve segments whose intersection points of the curves are on different curves to be calibrated: according to the mean value of the acceleration corresponding to each coordinate point between the two curve segments, as the corresponding value of each coordinate point For the correction value, based on the correction value and the monotonic relationship between the two curves to be calibrated, each coordinate point on each of the two curve segments is adjusted to obtain a primary correction curve.
继续以图2为例进行说明,图2中的(a)的曲线1在速度为a之前的加速度应该小于曲线2的加速度,即曲线1相对于曲线2而言,为单调下降,因此可以根据校正值减少曲线段中各个坐标点对应的加速度;而曲线2相对于曲线1而言,为单调上升,因此可以根据校正值增加曲线段中各个坐标点对应的加速度,修改后的调整曲线如图2中的(b)所示。Continue to take Figure 2 as an example to illustrate, the acceleration of
在一种可能的实现方式中,若所有车速调控操作对应的待校准曲线之间均不存在曲线交点,则执行S103的操作。In a possible implementation manner, if there is no curve intersection between the curves to be calibrated corresponding to all the vehicle speed regulation operations, the operation of S103 is performed.
在一种可能的实现方式中,在根据交叉点对曲线的进行调整,得到一次校正曲线后,可以再次判断是否仍存在曲线交点,若存在,则继续执行S102的操作,直到所有车速控制操作对应的待校准曲线或一次校正曲线之间并不存在曲线交点后,再执行S103的操作。In a possible implementation manner, after the curve is adjusted according to the intersection point and a correction curve is obtained, it can be judged again whether there is still a curve intersection point, and if so, the operation of S102 is continued until all vehicle speed control operations correspond to After the curve to be calibrated or the primary calibration curve does not have a curve intersection point, the operation of S103 is performed again.
在S103中,对各个所述车速调控操作对应的待平直曲线进行平直处理,得到二次校正曲线;所述待平直曲线为所述一次校正曲线或所述待校准曲线。In S103, a straightening process is performed on the to-be-flattened curve corresponding to each of the vehicle speed control operations to obtain a secondary calibration curve; the to-be-flattened curve is the primary calibration curve or the to-be-calibrated curve.
在本实施例中,由于在运动数据采集的过程中,会存在一定的响应延迟,会导致运动数据与实际的车速控制操作之间不对应,为了解决上述的数据采集的延迟而带来的曲线抖动的情况,电子设备可以对一次校正曲线以及待校准曲线进行平直处理,以使车速控制操作在不同速度下的加速度趋于稳定,更加切合实际的行驶情况。In this embodiment, there will be a certain response delay in the process of motion data collection, which will lead to a mismatch between motion data and the actual vehicle speed control operation. In order to solve the curve caused by the above-mentioned delay in data collection In the case of jitter, the electronic device can straighten the primary correction curve and the curve to be calibrated, so that the acceleration of the vehicle speed control operation at different speeds tends to be stable, which is more suitable for the actual driving situation.
示例性地,图3示出了本申请一实施例提供的平直处理的示意图,参见图3中的(a)所示,该待平直曲线在不同的速度下加速度的浮动较大,电子设备可以通过收敛算法,对待平直曲线进行处理,处理后的二次校正曲线如图3中的(b)所示。Exemplarily, FIG. 3 shows a schematic diagram of the flattening process provided by an embodiment of the present application. Referring to (a) in FIG. 3 , the acceleration of the curve to be flattened at different speeds fluctuates greatly, and the electronic The device can process the straight curve through the convergence algorithm, and the processed quadratic correction curve is shown in (b) in Figure 3.
在本实施例中,由于部分车速调控操作的曲线与其他曲线之间不存在曲线交点,则并没有进行一次校正,因此在S103中进行平直处理的待平直曲线,可以为一次校正曲线,或者是待校准曲线,具体根据实际情况确定。In this embodiment, since there is no curve intersection between some of the curves of the vehicle speed control operation and other curves, no one-time correction is performed. Therefore, the curve to be flattened to be flattened in S103 may be a one-time correction curve, Or the curve to be calibrated, which is determined according to the actual situation.
在S104中,基于所述二次校正曲线,生成所述目标车辆的标定表。In S104, a calibration table of the target vehicle is generated based on the quadratic correction curve.
在本实施例中,电子设备可以将各个车速调控操作对应的二次校正曲线,作为该目标车辆在该车速调控操作下对应的标定曲线,将所有车速调控操作的标定曲线进行封装,则得到该目标车辆关于各个车速调控操作的标定表,以确定在不同速度下对应的加速度。In this embodiment, the electronic device can use the quadratic calibration curve corresponding to each vehicle speed control operation as the calibration curve corresponding to the target vehicle under the vehicle speed control operation, and encapsulate the calibration curves of all the vehicle speed control operations to obtain the A calibration table of the target vehicle for each speed regulation operation to determine the corresponding acceleration at different speeds.
以上可以看出,本申请实施例提供的一种标定表的生成方法通过获取目标车辆在不同车速调控操作下对应的运动数据,从而生成关于不同速度调控操作对应的待校准曲线,在正常情况下,不同的车速调控操作之间的加速度是符合相互之间的单调关系,即曲线不存在交叉的情况,因此,电子设备可以对存在曲线交叉点的待校准曲线进行调整,得到一次校正曲线,继而通过预设的平直处理算法对曲线进行平直处理,以对加速度突变的曲线段进行处理,以使车速调控操作在不同速度下对应的加速度趋于平稳,继而根据所有二次校正曲线生成该目标车辆的标定表,实现了标定表的自动生成的目的。与现有的标定表的生成技术相比,本申请实施例中的标定表可以自动生成,对标定表内的各个待校准曲线中加速度存在单调异常的部分进行调整,并进行曲线平直处理,以使实现对曲线的校正,在提高标定表内各个标定曲线的生成效率的同时,也能够提高标定曲线的准确性。It can be seen from the above that the method for generating a calibration table provided by the embodiment of the present application generates the to-be-calibrated curves corresponding to different speed control operations by acquiring motion data corresponding to the target vehicle under different speed control operations. , the accelerations between different vehicle speed control operations are in line with the monotonic relationship between each other, that is, the curves do not intersect. Therefore, the electronic device can adjust the curve to be calibrated with the intersection of the curves to obtain a correction curve, and then The curve is flattened by the preset flattening processing algorithm to process the curve segment with sudden acceleration, so that the acceleration corresponding to the vehicle speed control operation at different speeds tends to be stable, and then the curve is generated according to all quadratic correction curves. The calibration table of the target vehicle realizes the purpose of automatic generation of the calibration table. Compared with the generation technology of the existing calibration table, the calibration table in the embodiment of the present application can be automatically generated, and the parts in the calibration table where the acceleration has a monotonic abnormality in each curve to be calibrated is adjusted, and the curve is straightened, In order to realize the correction of the curve, while improving the generation efficiency of each calibration curve in the calibration table, the accuracy of the calibration curve can also be improved.
图4示出了本发明第二实施例提供的一种标定表的生成方法S102的具体实现流程图。参见图4,相对于图1所述实施例,本实施例提供的一种标定表的生成方法中S102包括:S1021~S1024,具体详述如下:FIG. 4 shows a specific implementation flowchart of a method S102 for generating a calibration table provided by the second embodiment of the present invention. Referring to FIG. 4 , with respect to the embodiment shown in FIG. 1 , in a method for generating a calibration table provided in this embodiment, S102 includes: S1021 to S1024 , which are described in detail as follows:
进一步地,所述若任意两个待校准曲线之间存在曲线交点,则根据所述曲线交点调整所述任意两个待校准曲线中所述曲线交点所在的曲线段,得到一次校正曲线,包括:Further, if there is a curve intersection point between any two curves to be calibrated, adjust the curve segment where the curve intersection point is located in the any two curves to be calibrated according to the curve intersection point to obtain a primary calibration curve, including:
在S1021中,若任意两个待校准曲线之间存在曲线交点,则根据任意两个交叉曲线对应的所述车速调控操作之间的单调关系,分别从所述任意两个交叉曲线中识别出不符合所述单调关系的所述曲线段;所述交叉曲线为所述待校准曲线或第N调整曲线;所述N的初始值为0;。In S1021, if there is a curve intersection point between any two curves to be calibrated, according to the monotonic relationship between the vehicle speed control operations corresponding to any two intersecting curves, identify from the any two intersecting curves that are not the curve segment conforming to the monotonic relationship; the cross curve is the to-be-calibrated curve or the Nth adjustment curve; the initial value of N is 0;
在本实施例中,电子设备可以根据存在曲线交点的两个曲线对应的车速调控操作的单调关系,确定两个交叉曲线在正常情况下相互之间的单调关系,则电子设备可以根据曲线交点,在曲线交点对应的区域范围内,确定出不符合单调关系的曲线段,作为需要调整的曲线段。如图2中的(a)内,曲线1与曲线2在速度为(0-a]范围内的曲线段不满足两者对应的车速调控操作的单调关系,则将其作为需要调整的曲线段。In this embodiment, the electronic device can determine the monotonic relationship between the two intersecting curves under normal conditions according to the monotonic relationship of the vehicle speed control operations corresponding to the two curves having the curve intersection, then the electronic device can, according to the curve intersection, Within the range of the area corresponding to the curve intersection point, the curve segment that does not conform to the monotonic relationship is determined as the curve segment that needs to be adjusted. As shown in (a) in Figure 2, the curve segment of
其中,N用于记录本次交叉调整过程中的迭代次数,初始迭代次数为0。Among them, N is used to record the number of iterations in this cross-adjustment process, and the initial number of iterations is 0.
在S1022中,增加所述N的值,并基于所述任意两个交叉曲线中任一曲线的曲线段,调整所述任意两个交叉曲线中另一曲线的曲线段,得到第N调整曲线。In S1022, the value of N is increased, and based on the curve segment of any one of the any two intersecting curves, the curve segment of the other curve of the any two intersecting curves is adjusted to obtain the Nth adjustment curve.
在本实施例中,由于存在交叉的曲线,此时进行了一次迭代,增加迭代次数N的值,与此同时,电子设备可以根据其中一个曲线中的曲线段,对另一曲线中的曲线段进行调整,即根据曲线1中(0-a]范围内的曲线段对曲线2中(0-a]范围内的曲线段进行调整,从而得到第一次调整后的曲线,即第N调整曲线。In this embodiment, since there are intersecting curves, one iteration is performed at this time, and the value of the number of iterations N is increased. Adjust, that is, adjust the curve segment in the range of (0-a) in
在一种可能的实现方式中,电子设备可以将任意两个交叉曲线中任一曲线的曲线段中的加速度值,作为任意两个交叉曲线中另一曲线的曲线段的加速度值,即将两个曲线段中的加速度值进行调换。示例性地,图5示出了本申请一实施例提供的曲线段调整的示意图。参见图5中的(a)所示,曲线1为油门开度为20%的加速度与速度之间的对应关系曲线(即为待校准曲线或第N调整曲线),而曲线2为油门开度为50%的加速度与速度之间的对应关系曲线(即为待校准曲线或第N调整曲线),在速度为v时,曲线1对应的加速度为a2,而曲线2对应的加速度为a1,可见a2>a1,不符合两个车速调整操作之间的单调关系,因此,将上述两个坐标点的加速度的数值互换,即将曲线1在速度为v时对应的加速度调整为a1,而将曲线2在速度为v时对应的加速度调整为a2,其他坐标点也可以通过上述方式进行设置。In a possible implementation manner, the electronic device may use the acceleration value in the curve segment of any one of any two intersecting curves as the acceleration value of the curve segment of the other curve in any two intersecting curves, that is, the two The acceleration values in the curve segment are swapped. Exemplarily, FIG. 5 shows a schematic diagram of curve segment adjustment provided by an embodiment of the present application. Referring to (a) in FIG. 5 ,
在S1023中,若所有车速调控操作对应的曲线间均不存在所述曲线交点,则将所述第N调整曲线识别为所述一次校正曲线,并执行所述对各个所述车速调控操作对应的待平直曲线进行平直处理,得到二次校正曲线的操作;所述车速调控操作对应的曲线为所述待校准曲线或第N调整曲线。In S1023, if the curve intersection point does not exist between the curves corresponding to all the vehicle speed control operations, the Nth adjustment curve is identified as the primary correction curve, and the corresponding curve for each of the vehicle speed control operations is executed. An operation of performing a flattening process on the to-be-flattened curve to obtain a secondary correction curve; the curve corresponding to the vehicle speed control operation is the to-be-calibrated curve or the Nth adjustment curve.
在本实施例中,若经过S1022的调整后,所有车速调整操作对应的曲线之间并不存在曲线交点,此时可以执行下一步的操作,即执行S1023的操作。In this embodiment, if after the adjustment in S1022 , there is no curve intersection between the curves corresponding to all the vehicle speed adjustment operations, the next operation can be performed at this time, that is, the operation of S1023 can be performed.
在S1024中,若任意两个所述车速调控操作对应的曲线间存在所述曲线交点,则返回执行所述根据任意两个交叉曲线对应的所述车速调控操作之间的单调关系,分别从所述任意两个交叉曲线中识别出不符合所述单调关系的所述曲线段。In S1024, if there is the curve intersection between the curves corresponding to any two of the vehicle speed control operations, return to execute the monotonic relationship between the vehicle speed control operations corresponding to any two intersection curves, respectively The curve segment that does not conform to the monotonic relationship is identified from the any two intersecting curves.
在本实施例中,若经过S1022的调整后,仍然存在相互交叠的交叉曲线,在可以返回S1021的操作,继续进行调整。In this embodiment, if there are still intersecting curves that overlap each other after the adjustment in S1022, the operation of S1021 can be returned to continue the adjustment.
在本申请实施例中,在出现相互交叉的曲线段时,根据一个曲线段的数值调整另一个曲线段的数值,能够快速实现不符合单调性的曲线段的调整,提高了曲线调整的效率,也降低了算法的难度。In the embodiment of the present application, when there are intersecting curve segments, the value of one curve segment is adjusted according to the value of another curve segment, which can quickly realize the adjustment of curve segments that do not conform to monotonicity, and improve the efficiency of curve adjustment. It also reduces the difficulty of the algorithm.
进一步地,作为本申请的另一实施例,上述S1024具体可以包括:Further, as another embodiment of the present application, the above S1024 may specifically include:
在S1024.1中,若任意两个车速调控操作对应的曲线间存在所述曲线交点,则判断所述N的值是否大于预设的循环上限值。In S1024.1, if the curve intersection point exists between the curves corresponding to any two vehicle speed control operations, it is determined whether the value of N is greater than the preset upper limit value of the cycle.
在S1024.2中,若所述N的值大于预设的循环上限值,则基于预设的调整阈值以及所述单调关系,对所述任意两个交叉曲线中的所述曲线段进行调整,得到一次校正曲线。In S1024.2, if the value of N is greater than a preset upper cycle limit value, adjust the curve segments in the any two cross curves based on a preset adjustment threshold and the monotonic relationship , to obtain a calibration curve.
在S1024.3中,若所述N的值小于或等于所述循环上限值,则返回执行所述根据任意两个交叉曲线对应的所述车速调控操作之间的单调关系,分别从所述任意两个交叉曲线中识别出不符合所述单调关系的所述曲线段。In S1024.3, if the value of N is less than or equal to the upper limit value of the cycle, return to execute the monotonic relationship between the vehicle speed control operations corresponding to any two intersection curves, respectively from the The curve segment that does not satisfy the monotonic relationship is identified from any two intersecting curves.
在本实施例中,在迭代次数N小于或等于循环上限值时,可以返回S1021再次进行曲线段中各数值对调的方式进行调整;而在迭代次数大于循环上限值时,则可以根据预设的调整阈值,对交叉曲线中的曲线段进行调整,其中调整的方向根据两个交叉曲线之间的单调关系确定。例如,参见图5中的(a)所示,曲线1为油门开度为20%的加速度与速度之间的对应关系曲线(即为待校准曲线或第N调整曲线),而曲线2为油门开度为50%的加速度与速度之间的对应关系曲线(即为待校准曲线或第N调整曲线),油门开度为50%的加速度会大于油门开度为20%的加速度,因此,在速度为v时,可以根据调整阈值增加油门开度为50%对应的加速度,例如调整为a1’,而根据调整阈值减少油门开度为20%对应的加速度,例如调整为a2’,如图5中的(c)所示。In this embodiment, when the number of iterations N is less than or equal to the upper limit of the loop, it is possible to return to S1021 to adjust the values in the curve segment again; and when the number of iterations is greater than the upper limit of the loop, it can be adjusted according to the preset value. The set adjustment threshold is used to adjust the curve segment in the cross curve, wherein the direction of adjustment is determined according to the monotonic relationship between the two cross curves. For example, as shown in (a) of FIG. 5 ,
示例性地,图6示出了本申请一实施例提供的交叉校正示意图,参见图6中的(a)所示,不同的车速控制操作对应不同的待校准曲线,如右上角的指示的开度为-50(即刹车开度为50%),开度为70(即油门开度为70%)等。通过上述实施例进行调整后,对交叉部分的曲线段进行调整,则得到图6中的(b)所示的曲线,使得各个曲线之间在相同速度间的单调关系,与车速控制操作的单调关系相同。Exemplarily, FIG. 6 shows a schematic diagram of cross-calibration provided by an embodiment of the present application. Referring to FIG. 6 (a), different vehicle speed control operations correspond to different curves to be calibrated, such as the indicated open in the upper right corner. The degree of opening is -50 (that is, the brake opening is 50%), the opening is 70 (that is, the accelerator opening is 70%), etc. After the adjustment in the above-mentioned embodiment, the curve segment of the intersecting part is adjusted to obtain the curve shown in (b) in FIG. 6 , so that the monotonic relationship between the curves at the same speed is different from the monotonicity of the vehicle speed control operation. The relationship is the same.
在本申请实施例中,通过设置迭代的上限值,在检测到迭代次数超过上限值时停止迭代,而是基于预设的调整阈值对仍存在交叉的曲线进行调整,能够减少不必要的循环次数,提高标定表生成的效率。In this embodiment of the present application, by setting the upper limit of the iteration, the iteration is stopped when it is detected that the number of iterations exceeds the upper limit, and the curves that still have intersections are adjusted based on the preset adjustment threshold, which can reduce unnecessary Cycle times, improve the efficiency of calibration table generation.
图7示出了本发明第三实施例提供的一种标定表的生成方法S103的具体实现流程图。参见图7,相对于图1所述实施例,本实施例提供的一种标定表的生成方法S103包括:S1031~S1033,具体详述如下:FIG. 7 shows a specific implementation flowchart of a method S103 for generating a calibration table provided by the third embodiment of the present invention. Referring to FIG. 7 , with respect to the embodiment shown in FIG. 1 , a method S103 for generating a calibration table provided in this embodiment includes: S1031 to S1033 , which are described in detail as follows:
进一步地,所述对各个所述车速调控操作对应的待平直曲线进行平直处理,得到二次校正曲线,包括:Further, the straightening process is performed on the to-be-flattened curve corresponding to each of the vehicle speed control operations to obtain a quadratic correction curve, including:
在S1031中,根据所述待平直曲线中的加速度极值,计算所述待平直曲线的均方根;所述加速度极值与所述车速调控操作的车速调控方向相同。In S1031, the root mean square of the curve to be flattened is calculated according to the acceleration extreme value in the curve to be straightened; the acceleration extreme value is the same as the vehicle speed regulation direction of the vehicle speed regulation operation.
在本实施例中,电子设备可以在车速控制曲线对应的待平直曲线上确定出加速度极值,该加速度极值与车速调控方向相同。若该车速调整方向为加速度的正向,则该加速度极值即为正向的极值;反之,若该车速调整方向为加速度的负向,则该加速度极值即为负向的极值。In this embodiment, the electronic device may determine the acceleration extreme value on the curve to be flattened corresponding to the vehicle speed control curve, and the acceleration extreme value is in the same direction as the vehicle speed control curve. If the vehicle speed adjustment direction is the positive direction of acceleration, the acceleration extreme value is the positive extreme value; otherwise, if the vehicle speed adjustment direction is the negative acceleration direction, the acceleration extreme value is the negative extreme value.
在本实施例中,电子设备可以根据加速度极值,计算该待平直曲线的均方根,以判断该待平直曲线的曲线形状是否区域平稳。均方根的计算方式具体可以表示为:In this embodiment, the electronic device may calculate the root mean square of the curve to be flattened according to the extreme value of the acceleration, so as to determine whether the curve shape of the curve to be flattened is regionally stable. The calculation method of the root mean square can be expressed as:
其中,M为第j个车速控制操作中包含的坐标点的个数;cmdji为第i个坐标点的加速度数值;{cmdj}max为第j个车速控制操作对应的加速度极值。均方根越大,则表示离散程度越大,因此,可以将该均方根与预设的浮动阈值进行比对,以判断是否需要进行平直处理。Among them, M is the number of coordinate points included in the jth vehicle speed control operation; cmd ji is the acceleration value of the ith coordinate point; {cmd j } max is the acceleration extreme value corresponding to the jth vehicle speed control operation. The larger the root mean square, the greater the degree of dispersion. Therefore, the root mean square can be compared with a preset floating threshold to determine whether the flattening process is required.
在S1032中,若所述均方根大于或等于预设的浮动阈值,则通过预设的曲线收敛算法对所述待平直曲线进行处理,直到处理后的曲线的均方根小于所述浮动阈值,得到所述二次校正曲线。In S1032, if the root mean square is greater than or equal to a preset floating threshold, the curve to be flattened is processed by a preset curve convergence algorithm until the root mean square of the processed curve is less than the floating threshold threshold to obtain the quadratic calibration curve.
在本实施例中,若该均方根大于或等于浮动阈值,则表示该曲线离散程度较大,需要进行平直处理,可以通过收敛算法对该平直曲线内各个坐标点进行调整,以使该待平直曲线以加速度极值为基准收敛,直到处理后的曲线的均方根小于浮动阈值,即在通过曲线收敛算法处理后的曲线仍大于或等于上述的浮动阈值,可以再次通过曲线收敛算法进行二次或多次处理,直到处理后的曲线的均方根小于浮动阈值,并将小于浮动阈值时对应的处理后的曲线识别为二次校正曲线,即平直处理完毕。In this embodiment, if the root mean square is greater than or equal to the floating threshold, it means that the curve has a relatively large degree of dispersion and needs to be flattened. The to-be-flattened curve converges based on the acceleration extreme value until the root mean square of the processed curve is less than the floating threshold, that is, the curve processed by the curve convergence algorithm is still greater than or equal to the above floating threshold, and the curve can be converged again. The algorithm performs quadratic or multiple processing until the root mean square of the processed curve is less than the floating threshold, and the processed curve corresponding to less than the floating threshold is identified as a quadratic correction curve, that is, the flattening process is completed.
需要说明的是,上述收敛算法可以为任意实现曲线趋近于直线的收敛算法,在此不对收敛算法进行限定。It should be noted that, the above-mentioned convergence algorithm may be any convergence algorithm that realizes that the curve approaches a straight line, and the convergence algorithm is not limited here.
进一步地,作为本申请的另一实施例,上述S1032具体可以包括:Further, as another embodiment of the present application, the above S1032 may specifically include:
在S1032.1中,将所述待平直曲线上各个速度点对应的实际加速度与所述加速度极值之间的中值,作为各个所述速度点的校正加速度。In S1032.1, the median value between the actual acceleration corresponding to each speed point on the curve to be flattened and the acceleration extreme value is used as the correction acceleration of each speed point.
在S1032.2中,基于所有所述速度点的所述校正加速度,得到平直处理后的曲线。In S1032.2, a flattened curve is obtained based on the corrected accelerations of all the speed points.
在S1032.3中,基于所述加速度极值,计算所述平直处理后的曲线的均方根。In S1032.3, based on the acceleration extreme value, the root mean square of the flattened curve is calculated.
在S1033.4中,若所述平直处理后的曲线的均方根大于或等于所述浮动阈值,则返回执行所述将所述待平直曲线上各个速度点对应的实际加速度与所述加速度极值之间的中值,作为各个所述速度点的校正加速度,直到平直处理后的曲线的均方根小于所述浮动阈值。In S1033.4, if the root mean square of the flattened curve is greater than or equal to the floating threshold, return to performing the step of comparing the actual acceleration corresponding to each speed point on the curve to be flattened with the The median value between the extreme acceleration values is used as the corrected acceleration for each of the speed points until the root mean square of the flattened curve is smaller than the floating threshold value.
在本实施例中,电子设备具体采用二分法对待平直曲线进行平直处理。其中,电子设备会计算各个坐标点对应的实际加速度与加速度极值之间的中值,将该中值作为该坐标点对应的校正加速度,并基于所有坐标点对应的校正加速度,重新构建关于该车速控制操作对应的曲线,即平直处理后的曲线,并根据加速度极值再次计算该平直处理后的曲线的均方根,判断本次平直处理后,其离散程序是否符号预期(即均方根是否小于浮动阈值),若是,则将本次平直处理后的曲线识别为二次校正曲线;反之,若本次平直处理后的曲线仍大于或等于浮动阈值,则继续通过上述方式进行处理,直到平直处理后的曲线的均方根小于所述浮动阈值。In this embodiment, the electronic device specifically adopts the bisection method to straighten the curve to be flattened. Among them, the electronic device will calculate the median value between the actual acceleration corresponding to each coordinate point and the acceleration extreme value, and use the median value as the correction acceleration corresponding to the coordinate point, and based on the correction acceleration corresponding to all coordinate points, reconstruct the The curve corresponding to the vehicle speed control operation, that is, the curve after the flattening process, and the root mean square of the flattened curve is calculated again according to the acceleration extreme value, and it is judged whether the discrete program after the flattening process is the symbol expected (ie. Whether the root mean square is less than the floating threshold), if so, identify the curve after this flattening process as a quadratic calibration curve; otherwise, if the curve after this flattening process is still greater than or equal to the floating threshold, continue to pass the above process until the root mean square of the flattened curve is less than the floating threshold.
在本申请实施例中,通过二分法对待平直曲线进行平直处理,由于二分法收敛速度快,能快速的收敛到任意小的阈值内,提高了平直处理的效率。In the embodiment of the present application, the flattening curve is processed by the bisection method. Since the dichotomy method has a fast convergence speed, it can quickly converge to an arbitrarily small threshold value, which improves the efficiency of the flattening processing.
在S1033中,若所述均方根小于所述浮动阈值,则识别所述待平直曲线为所述二次校正曲线。In S1033, if the root mean square is smaller than the floating threshold, the curve to be flattened is identified as the quadratic correction curve.
在本实施例中,若均方根小于浮动阈值,则表示该待平直曲线较为平整,无需进行调整,可以直接将其识别为二次校正曲线。In this embodiment, if the root mean square is smaller than the floating threshold, it means that the curve to be flattened is relatively flat, and no adjustment is required, and it can be directly identified as a quadratic calibration curve.
示例性地,图8示出了本申请一实施例提供的曲线平直处理的示意图。参见图8中的(a)所示,待平直曲线在速度较小以及速度较大的位置存在较大的突变,曲线存在明显的起伏,离散程度较大,通过平直处理后,可以得到离散程序较小的二次校正曲线,即如图8中的(b)所示。Exemplarily, FIG. 8 shows a schematic diagram of the curve flattening process provided by an embodiment of the present application. Referring to (a) in Figure 8, the flattened curve has a large sudden change at the position where the speed is small and the speed is large, the curve has obvious fluctuations, and the degree of dispersion is large. After the flattening process, it can be obtained. The quadratic calibration curve with a smaller discrete program is shown in (b) in Figure 8.
在本申请实施例中,通过确定加速度阈值,并基于加速度阈值计算待平直曲线的均方根,能够确定待平直曲线的离散程度,并对曲线进行对应的调整,从而减少曲线的离散程度,以使在不同速度下相同的车速控制操作的加速度趋于稳定。In the embodiment of the present application, by determining the acceleration threshold and calculating the root mean square of the curve to be flattened based on the acceleration threshold, the degree of dispersion of the curve to be flattened can be determined, and the curve can be adjusted accordingly, thereby reducing the degree of dispersion of the curve , to stabilize the acceleration of the same vehicle speed control operation at different speeds.
图9示出了本发明第四实施例提供的一种标定表的生成方法S104的具体实现流程图。参见图9,相对于图1-7任一项所述实施例,本实施例提供的一种标定表的生成方法S104包括:S1041~S1043,具体详述如下:FIG. 9 shows a specific implementation flowchart of a method S104 for generating a calibration table provided by the fourth embodiment of the present invention. Referring to FIG. 9 , with respect to any of the embodiments described in FIGS. 1 to 7 , a method S104 for generating a calibration table provided in this embodiment includes: S1041 to S1043 , which are described in detail as follows:
在S1041中,根据各个所述二次校正曲线之间的偏差度,识别冗余曲线。In S1041, redundant curves are identified according to the degree of deviation between each of the quadratic calibration curves.
在本实施例中,电子设备为了减少不必要的标定曲线,电子设备可以对标定表中的冗余曲线进行过滤,电子设备可以分别计算各个二次校正曲线之间的偏差度,若两者的偏差度越小,则表示两个曲线较为接近,可以删除一个,即将其中一条作为冗余曲线。In this embodiment, in order to reduce unnecessary calibration curves, the electronic device can filter the redundant curves in the calibration table, and the electronic device can separately calculate the deviation between the quadratic calibration curves. The smaller the deviation, the closer the two curves are, and one can be deleted, that is, one of the curves is used as a redundant curve.
在一种可能的实现方式中,根据车速控制操作之间的单调关系,对各个二次校正曲线进行排列,并从上到下依次比对相邻的两个二次校正曲线之间的偏差度是否大于预设的偏差阈值,若大于偏差阈值,则识别上述两个二次校正曲线均为有效曲线;反之,若小于或或等于偏差阈值,则保留其中一条二次校正曲线,而将另一条校正曲线识别为冗余曲线(如默认将位于下方的二次校正曲线),依次类推,继续进行两两比对,直到遍历比对所有相邻的二次校正曲线,识别出冗余曲线。其中,上述偏差阈值可以根据最大油门开度曲线和最大制动开度曲线间的在每一个速度点下误差的平均值确定,也可以根据其他任意曲线间的在每一个速度点下误差的平均值确定,偏差阈值的计算方式不做限定。In a possible implementation manner, each quadratic correction curve is arranged according to the monotonic relationship between the vehicle speed control operations, and the deviations between two adjacent quadratic correction curves are compared sequentially from top to bottom Whether it is greater than the preset deviation threshold, if it is greater than the deviation threshold, it is recognized that the above two quadratic calibration curves are valid curves; otherwise, if it is less than or equal to the deviation threshold, one of the quadratic calibration curves is retained, and the other The calibration curve is identified as a redundant curve (such as the quadratic calibration curve located below by default), and so on, and the pairwise comparison is continued until all adjacent quadratic calibration curves are traversed and compared, and redundant curves are identified. The above deviation threshold can be determined according to the average value of the error between the maximum accelerator opening curve and the maximum brake opening curve at each speed point, or can be determined according to the average value of the error between other arbitrary curves at each speed point The value is determined, and the calculation method of the deviation threshold is not limited.
进一步地,作为本申请的另一实施例,S1041具体包括:Further, as another embodiment of the present application, S1041 specifically includes:
在S1041.1中,将上限加速操作的第一曲线与下限减速操作的第二曲线在各个速度点之间的加速度偏差的第一均值,作为所述目标车辆的极限偏差值。In S1041.1, the first mean value of the acceleration deviation between the speed points of the first curve of the upper limit acceleration operation and the second curve of the lower limit deceleration operation at each speed point is taken as the limit deviation value of the target vehicle.
在S1041.2中,计算任意两个二次校正曲线在各个速度点之间的加速度偏差的第二均值,并将所述第二均值与所述极限偏差度之间的比值作为所述任意两个二次校正曲线的所述偏差度。In S1041.2, calculate the second mean value of the acceleration deviation between any two quadratic correction curves at each speed point, and use the ratio between the second mean value and the limit deviation as the any two The degree of deviation of a quadratic calibration curve.
在S1041.3中,若所述偏差度小于预设的偏差阈值,则将所述任意两个二次校正曲线中的一个二次校正曲线识别为所述冗余曲线。In S1041.3, if the degree of deviation is less than a preset deviation threshold, one of the two quadratic calibration curves is identified as the redundant curve.
在本实施例中,电子设备可以根据两个极限操作对应的曲线之间的加速度偏差,计算偏差阈值。具体地,上述极限操作具体为上限加速操作(即油门开度最大时对应的操作)以及下限减速操作(即刹车开度最大时对应的操作),分别根据上述两个操作对应的曲线在各个速度下对应的加速度差值的平均值,作为该目标车辆的极限偏差,并以这极限偏差为基准,计算其他曲线对应的偏差度,若该偏差度大于预设的偏差阈值,则识别上述任意两个二次校正曲线均有效,即均为有效曲线;反之,若上述两个二次校正曲线间的偏差度小于预设的偏差阈值,则识别两个曲线过密,将其中一个二次校正曲线识别为冗余曲线。In this embodiment, the electronic device may calculate the deviation threshold according to the acceleration deviation between the curves corresponding to the two limit operations. Specifically, the above-mentioned limit operations are the upper limit acceleration operation (that is, the operation corresponding to the maximum accelerator opening degree) and the lower limit deceleration operation (that is, the corresponding operation when the brake opening degree is the largest). The average value of the corresponding acceleration difference is used as the limit deviation of the target vehicle, and the limit deviation is used as the benchmark to calculate the deviation degree corresponding to other curves. If the deviation degree is greater than the preset deviation threshold, identify any two of the above All quadratic calibration curves are valid, that is, they are all valid curves; on the contrary, if the deviation between the above two quadratic calibration curves is less than the preset deviation threshold, it is recognized that the two curves are too dense, and one of the quadratic calibration curves is identified as being too dense. Identified as redundant curves.
在S1042中,从所有所述二次校正曲线中移除所述冗余曲线,得到有效标定曲线。In S1042, the redundant curve is removed from all the quadratic calibration curves to obtain a valid calibration curve.
在S1043中,基于所有有效标定曲线以及所述有效标定曲线对应的车速控制操作,生成所述目标车辆的标定表。In S1043, a calibration table of the target vehicle is generated based on all valid calibration curves and vehicle speed control operations corresponding to the valid calibration curves.
在本实施例中,电子设备可以将冗余曲线从所有二次校正曲线中移除,并基于剩余的有效标定曲线生成该目标车辆的标定表。In this embodiment, the electronic device may remove redundant curves from all quadratic calibration curves, and generate a calibration table for the target vehicle based on the remaining valid calibration curves.
示例性地,图10示出了本申请一实施例提供的标定曲线的过滤示意图。参见图10所示,虚线的曲线即为识别得到的冗余曲线,将冗余曲线从标定表中移除,则基于剩余的有效曲线生成该目标车辆的标定表。Exemplarily, FIG. 10 shows a schematic diagram of filtering a calibration curve provided by an embodiment of the present application. Referring to FIG. 10 , the dashed curve is the identified redundant curve. If the redundant curve is removed from the calibration table, the calibration table of the target vehicle is generated based on the remaining valid curves.
在本申请实施例中,通过删除差异较小的标定曲线,能够减少标定表的冗余程度。In the embodiment of the present application, by deleting the calibration curves with small differences, the redundancy degree of the calibration table can be reduced.
图11示出了本发明一实施例提供的一种标定表的生成装置的结构框图,该标定表的生成装置包括的各单元用于执行图1对应的实施例中加密装置实现的各步骤。具体请参阅图1与图1所对应的实施例中的相关描述。为了便于说明,仅示出了与本实施例相关的部分。FIG. 11 shows a structural block diagram of an apparatus for generating a calibration table provided by an embodiment of the present invention. The units included in the apparatus for generating a calibration table are used to execute the steps implemented by the encryption apparatus in the embodiment corresponding to FIG. 1 . For details, please refer to the relevant descriptions in FIG. 1 and the embodiment corresponding to FIG. 1 . For convenience of explanation, only the parts related to this embodiment are shown.
参见图11,所述标定表的生成方法装置包括:Referring to Figure 11, the method and device for generating the calibration table include:
运动数据采集单元111,用于根据采集得到的关于目标车辆在不同车速调控操作下的运动数据,生成各个所述车速调控操作对应的待校准曲线;所述待校准曲线用于表示所述目标车辆在所述车速调控操作下速度与加速度之间的对应关系;The motion
一次校正单元112,用于若任意两个待校准曲线之间存在曲线交点,则根据所述曲线交点调整所述任意两个待校准曲线中所述曲线交点所在的曲线段,得到一次校正曲线;A
二次校正单元113,用于对各个所述车速调控操作对应的待平直曲线进行平直处理,得到二次校正曲线;所述待平直曲线为所述一次校正曲线或所述待校准曲线;The
标定表生成单元114,用于基于所述二次校正曲线,生成所述目标车辆的标定表。The calibration
可选地,所述一次校正单元112包括:Optionally, the
曲线段识别单元,用于若任意两个待校准曲线之间存在曲线交点,则根据任意两个交叉曲线对应的所述车速调控操作之间的单调关系,分别从所述任意两个交叉曲线中识别出不符合所述单调关系的所述曲线段;所述交叉曲线为所述待校准曲线或第N调整曲线;所述N的初始值为0;The curve segment identification unit is used for, if there is a curve intersection between any two curves to be calibrated, according to the monotonic relationship between the vehicle speed control operations corresponding to any two intersection curves, respectively, from the any two intersection curves. Identifying the curve segment that does not conform to the monotonic relationship; the cross curve is the to-be-calibrated curve or the Nth adjustment curve; the initial value of N is 0;
曲线段调整单元,用于增加所述N的值,并基于所述任意两个交叉曲线中任一曲线的曲线段,调整所述任意两个交叉曲线中另一曲线的曲线段,得到第N调整曲线;a curve segment adjustment unit, configured to increase the value of N, and based on the curve segment of any one of the any two intersecting curves, adjust the curve segment of the other curve of the any two intersecting curves to obtain the Nth adjust the curve;
迭代完成单元,用于若所有车速调控操作对应的曲线间均不存在所述曲线交点,则将所述第N调整曲线识别为所述一次校正曲线,并执行所述对各个所述车速调控操作对应的待平直曲线进行平直处理,得到二次校正曲线的操作;所述车速调控操作对应的曲线为所述待校准曲线或第N调整曲线;an iterative completion unit, configured to identify the Nth adjustment curve as the primary correction curve if the curves corresponding to all the vehicle speed control operations do not have the curve intersection point, and perform the said control operation for each vehicle speed The corresponding curve to be flattened is subjected to a straightening process to obtain an operation of a secondary correction curve; the curve corresponding to the vehicle speed control operation is the curve to be calibrated or the Nth adjustment curve;
循环迭代单元,用于若任意两个所述车速调控操作对应的曲线间存在所述曲线交点,则返回执行所述根据任意两个交叉曲线对应的所述车速调控操作之间的单调关系,分别从所述任意两个交叉曲线中识别出不符合所述单调关系的所述曲线段。A loop iteration unit, configured to return to execute the monotonic relationship between the vehicle speed control operations corresponding to any two intersection curves if there is the curve intersection point between any two curves corresponding to the vehicle speed control operations, respectively The segment of the curve that does not conform to the monotonic relationship is identified from the any two intersecting curves.
可选地,所述迭代完成单元包括:Optionally, the iteration completion unit includes:
循环上限值比对单元,用于若任意两个车速调控操作对应的曲线间存在所述曲线交点,则判断所述N的值是否大于预设的循环上限值;a cycle upper limit value comparison unit, configured to judge whether the value of N is greater than a preset cycle upper limit value if there is the curve intersection point between any two curves corresponding to the vehicle speed control operations;
循环停止单元,用于若所述N的值大于预设的循环上限值,则基于预设的调整阈值以及所述单调关系,对所述任意两个交叉曲线中的所述曲线段进行调整,得到一次校正曲线;A cycle stop unit, configured to adjust the curve segments in the any two intersecting curves based on a preset adjustment threshold and the monotonic relationship if the value of N is greater than a preset cycle upper limit value , get a calibration curve;
循环继续单元,用于若所述N的值小于或等于所述循环上限值,则返回执行所述根据任意两个交叉曲线对应的所述车速调控操作之间的单调关系,分别从所述任意两个交叉曲线中识别出不符合所述单调关系的所述曲线段。A cycle continuation unit, configured to return and execute the monotonic relationship between the vehicle speed control operations corresponding to any two intersection curves if the value of N is less than or equal to the upper limit value of the cycle, respectively from the The curve segment that does not satisfy the monotonic relationship is identified from any two intersecting curves.
可选地,所述二次校正单元113包括:Optionally, the
均方根计算单元,用于根据所述待平直曲线中的加速度极值,计算所述待平直曲线的均方根;所述加速度极值与所述车速调控操作的车速调控方向相同;a root mean square calculation unit, configured to calculate the root mean square of the curve to be straightened according to the acceleration extreme value in the curve to be straightened; the extreme value of acceleration is the same as the speed regulation direction of the vehicle speed control operation;
收敛触发单元,用于若所述均方根大于或等于预设的浮动阈值,则通过预设的曲线收敛算法对所述待平直曲线进行处理,直到处理后的曲线的均方根小于所述浮动阈值,得到所述二次校正曲线;a convergence triggering unit, configured to process the to-be-flattened curve through a preset curve convergence algorithm if the root mean square is greater than or equal to a preset floating threshold, until the root mean square of the processed curve is less than the preset floating threshold The floating threshold is obtained to obtain the quadratic calibration curve;
曲线平直响应单元,用于若所述均方根小于所述浮动阈值,则识别所述待平直曲线为所述二次校正曲线。A curve flattening response unit, configured to identify the curve to be flattened as the quadratic correction curve if the root mean square is less than the floating threshold.
可选地,所述收敛触发单元包括:Optionally, the convergence triggering unit includes:
中值计算单元,用于将所述待平直曲线上各个速度点对应的实际加速度与所述加速度极值之间的中值,作为各个所述速度点的校正加速度;a median value calculation unit, used for taking the median value between the actual acceleration corresponding to each speed point on the curve to be flattened and the acceleration extreme value as the correction acceleration of each of the speed points;
中值替换单元,用于基于所有所述速度点的所述校正加速度,得到平直处理后的曲线;a median replacement unit for obtaining a straightened curve based on the corrected accelerations of all the speed points;
二次均方计算单元,用于基于所述加速度极值,计算所述平直处理后的曲线的均方根;a quadratic mean square calculation unit, configured to calculate the root mean square of the flattened curve based on the acceleration extreme value;
循环收敛单元,用于若所述平直处理后的曲线的均方根大于或等于所述浮动阈值,则返回执行所述将所述待平直曲线上各个速度点对应的实际加速度与所述加速度极值之间的中值,作为各个所述速度点的校正加速度,直到平直处理后的曲线的均方根小于所述浮动阈值。A loop convergence unit, configured to return to performing the step of comparing the actual acceleration corresponding to each speed point on the curve to be flattened with the The median value between the extreme acceleration values is used as the corrected acceleration for each of the speed points until the root mean square of the flattened curve is smaller than the floating threshold value.
可选地,所述标定表生成单元114包括:Optionally, the calibration
冗余曲线识别单元,用于根据各个所述二次校正曲线之间的偏差度,识别冗余曲线;a redundant curve identification unit, used for identifying redundant curves according to the degree of deviation between each of the quadratic calibration curves;
冗余曲线移除单元,用于从所有所述二次校正曲线中移除所述冗余曲线,得到有效标定曲线;a redundant curve removing unit, configured to remove the redundant curves from all the quadratic calibration curves to obtain an effective calibration curve;
有效曲线封装单元,用于基于所有有效标定曲线以及所述有效标定曲线对应的车速控制操作,生成所述目标车辆的标定表。A valid curve packaging unit, configured to generate a calibration table of the target vehicle based on all valid calibration curves and vehicle speed control operations corresponding to the valid calibration curves.
可选地,所述冗余曲线识别单元包括:Optionally, the redundant curve identification unit includes:
第一均值计算单元,用于将上限加速操作的第一曲线与下限减速操作的第二曲线在各个速度点之间的加速度偏差的第一均值,作为所述目标车辆的极限偏差值;a first mean value calculation unit, configured to use the first mean value of the acceleration deviation between each speed point between the first curve of the upper limit acceleration operation and the second curve of the lower limit deceleration operation as the limit deviation value of the target vehicle;
第二均值计算单元,用于计算任意两个二次校正曲线在各个速度点之间的加速度偏差的第二均值,并将所述第二均值与所述极限偏差度之间的比值作为所述任意两个二次校正曲线的所述偏差度;The second mean value calculation unit is configured to calculate the second mean value of the acceleration deviations between any two quadratic correction curves at various speed points, and use the ratio between the second mean value and the limit deviation as the the degree of deviation of any two quadratic calibration curves;
偏差度比较单元,用于若所述偏差度小于预设的偏差阈值,则将所述任意两个二次校正曲线中的一个二次校正曲线识别为所述冗余曲线。A deviation degree comparison unit, configured to identify one of the any two quadratic calibration curves as the redundant curve if the deviation degree is smaller than a preset deviation threshold.
因此,本发明实施例提供的标定表的生成装置同样可以通过获取目标车辆在不同车速调控操作下对应的运动数据,从而生成关于不同速度调控操作对应的待校准曲线,在正常情况下,不同的车速调控操作之间的加速度是符合相互之间的单调关系,即曲线不存在交叉的情况,因此,电子设备可以对存在曲线交叉点的待校准曲线进行调整,得到一次校正曲线,继而通过预设的平直处理算法对曲线进行平直处理,以对加速度突变的曲线段进行处理,以使车速调控操作在不同速度下对应的加速度趋于平稳,继而根据所有二次校正曲线生成该目标车辆的标定表,实现了标定表的自动生成的目的。与现有的标定表的生成技术相比,本申请实施例中的标定表可以自动生成,对标定表内的各个待校准曲线中加速度存在单调异常的部分进行调整,并进行曲线平直处理,以使实现对曲线的校正,在提高标定表内各个标定曲线的生成效率的同时,也能够提高标定曲线的准确性。Therefore, the device for generating a calibration table provided by the embodiment of the present invention can also generate the to-be-calibrated curves corresponding to different speed control operations by acquiring motion data corresponding to the target vehicle under different speed control operations. The accelerations between the vehicle speed control operations conform to the monotonic relationship between each other, that is, the curves do not cross. Therefore, the electronic device can adjust the curve to be calibrated with the intersection of the curves to obtain a correction curve, and then pass the preset The straightening processing algorithm of the straightening processing algorithm is used to straighten the curve to process the curve segment with sudden acceleration, so that the corresponding acceleration of the vehicle speed control operation at different speeds tends to be stable, and then generate the target vehicle according to all the quadratic correction curves. The calibration table realizes the purpose of automatic generation of the calibration table. Compared with the generation technology of the existing calibration table, the calibration table in the embodiment of the present application can be automatically generated, and the parts in the calibration table where the acceleration has a monotonic abnormality in each curve to be calibrated is adjusted, and the curve is straightened, In order to realize the correction of the curve, while improving the generation efficiency of each calibration curve in the calibration table, the accuracy of the calibration curve can also be improved.
应当理解的是,图11示出的标定表的生成方法装置的结构框图中,各模块用于执行图1至图10对应的实施例中的各步骤,而对于图1至图10对应的实施例中的各步骤已在上述实施例中进行详细解释,具体请参阅图1至图10以及图1至图10所对应的实施例中的相关描述,此处不再赘述。It should be understood that, in the structural block diagram of the method and apparatus for generating the calibration table shown in FIG. 11 , each module is used to execute each step in the embodiment corresponding to FIG. 1 to FIG. 10 , and for the implementation corresponding to FIG. 1 to FIG. The steps in the examples have been explained in detail in the above-mentioned embodiments. For details, please refer to FIG. 1 to FIG. 10 and the relevant descriptions in the corresponding embodiments of FIG. 1 to FIG. 10 , which will not be repeated here.
图12是本申请另一实施例提供的一种电子设备的结构框图。如图12所示,该实施例的电子设备1200包括:处理器1210、存储器1220以及存储在存储器1220中并可在处理器1210运行的计算机程序1230,例如标定表的生成方法的程序。处理器1210执行计算机程序1230时实现上述各个标定表的生成方法各实施例中的步骤,例如图1所示的S101至S104。或者,处理器1210执行计算机程序1230时实现上述图7对应的实施例中各模块的功能,例如,图11所示的单元111至114的功能,具体请参阅图11对应的实施例中的相关描述。FIG. 12 is a structural block diagram of an electronic device provided by another embodiment of the present application. As shown in FIG. 12 , the electronic device 1200 of this embodiment includes: a
示例性的,计算机程序1230可以被分割成一个或多个模块,一个或者多个模块被存储在存储器1220中,并由处理器1210执行,以完成本申请。一个或多个模块可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述计算机程序1230在电子设备1200中的执行过程。例如,计算机程序1230可以被分割成各个单元模块,各模块具体功能如上。Illustratively, the
电子设备1200可包括,但不仅限于,处理器1210、存储器1220。本领域技术人员可以理解,图12仅仅是电子设备1200的示例,并不构成对电子设备1200的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如电子设备还可以包括输入输出设备、网络接入设备、总线等。The electronic device 1200 may include, but is not limited to, a
所称处理器1210可以是中央处理单元,还可以是其他通用处理器、数字信号处理器、专用集成电路、现成可编程门阵列或者其他可编程逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者是任何常规的处理器等。The so-called
存储器1220可以是电子设备1200的内部存储单元,例如电子设备1200的硬盘或内存。存储器1220也可以是电子设备1200的外部存储设备,例如电子设备1200上配备的插接式硬盘,智能存储卡,闪存卡等。进一步地,存储器1220还可以既包括电子设备1200的内部存储单元也包括外部存储设备。The
以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The recorded technical solutions are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions in the embodiments of the application, and should be included in the application. within the scope of protection.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210150938.6A CN114537416A (en) | 2022-02-18 | 2022-02-18 | Calibration table generation method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210150938.6A CN114537416A (en) | 2022-02-18 | 2022-02-18 | Calibration table generation method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114537416A true CN114537416A (en) | 2022-05-27 |
Family
ID=81675006
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210150938.6A Pending CN114537416A (en) | 2022-02-18 | 2022-02-18 | Calibration table generation method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114537416A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109204310A (en) * | 2017-06-29 | 2019-01-15 | 上海汽车集团股份有限公司 | vehicle power control method and device |
CN109747654A (en) * | 2019-01-11 | 2019-05-14 | 吉林大学 | A working condition-oriented hybrid electric vehicle control parameter calibration method |
CN109795506A (en) * | 2019-02-26 | 2019-05-24 | 百度在线网络技术(北京)有限公司 | A kind of driving control method, device and vehicle |
CN110967991A (en) * | 2018-09-30 | 2020-04-07 | 百度(美国)有限责任公司 | Method and device for determining vehicle control parameters, vehicle-mounted controller and unmanned vehicle |
WO2020177571A1 (en) * | 2019-03-05 | 2020-09-10 | 阿里巴巴集团控股有限公司 | Method and device for establishing longitudinal motion model of vehicle, and computer system |
-
2022
- 2022-02-18 CN CN202210150938.6A patent/CN114537416A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109204310A (en) * | 2017-06-29 | 2019-01-15 | 上海汽车集团股份有限公司 | vehicle power control method and device |
CN110967991A (en) * | 2018-09-30 | 2020-04-07 | 百度(美国)有限责任公司 | Method and device for determining vehicle control parameters, vehicle-mounted controller and unmanned vehicle |
CN109747654A (en) * | 2019-01-11 | 2019-05-14 | 吉林大学 | A working condition-oriented hybrid electric vehicle control parameter calibration method |
CN109795506A (en) * | 2019-02-26 | 2019-05-24 | 百度在线网络技术(北京)有限公司 | A kind of driving control method, device and vehicle |
WO2020177571A1 (en) * | 2019-03-05 | 2020-09-10 | 阿里巴巴集团控股有限公司 | Method and device for establishing longitudinal motion model of vehicle, and computer system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10627805B2 (en) | Method, device, and terminal device for servo movement smoothing | |
DE112019003288T5 (en) | USING A MODULE WITH MACHINE LEARNING TO DETERMINE WHEN TO TROUBLESHOOT A MEMORY ELEMENT | |
CN107967514A (en) | Convolution network device and image enhancement device and method thereof | |
CN112564117A (en) | Voltage sag treatment method, voltage sag treatment device and terminal equipment | |
CN111126822A (en) | Industrial robot health assessment method and device and storage medium | |
WO2023202355A1 (en) | Soil body state data calculation method and device based on boundary surface plasticity model | |
WO2024046230A1 (en) | Memory training method and system | |
CN113886237A (en) | Method, device, electronic device and storage medium for generating analysis report | |
CN114537416A (en) | Calibration table generation method and device, electronic equipment and storage medium | |
CN108364026A (en) | A kind of cluster heart update method, device and K-means clustering methods, device | |
TWI727639B (en) | Method and device for tracing block chain transactions | |
CN116300801A (en) | Vehicle control parameter calibration method and device and nonvolatile storage medium | |
CN109657373B (en) | A multi-agent fault detection method and device | |
CN107436954B (en) | A kind of online flow data approximate processing method of quality control and device | |
CN114370875A (en) | Vehicle state detection method and device and terminal equipment | |
CN115175455A (en) | Method for flattening impedance of power delivery network | |
CN110161835B (en) | Method and apparatus for computing a data model in a safety-critical system | |
CN112434607B (en) | Feature processing method, device, electronic equipment and computer readable storage medium | |
CN114492251B (en) | Method, device, equipment and medium for low-speed flow field divergence processing in supercomputing environment | |
WO2019207767A1 (en) | Control device and control method | |
US11185983B2 (en) | Position control method for servo, computer readable storage medium, and robot | |
CN113223505A (en) | Model training method, data processing method, device, electronic equipment and storage medium | |
CN110085284B (en) | SSD (solid State disk) -oriented gene comparison method and system | |
CN110533158A (en) | Model Construction method, system and non-volatile readable in computer recording medium | |
CN118468453B (en) | A method and device for parametric design of airfoil |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |