Algorithm compatibility method and device for automatic driving system
By obtaining and processing the compatibility information and code information of third-party algorithms, the compatibility problem of third-party algorithm replacement and expansion in the autonomous driving system is solved, achieving efficient compatibility and security of the system, and reducing development costs and time.
Patent Information
- Application Number
- CN202210579768.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-25
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-05-25
AI Technical Summary
In autonomous driving systems, third-party algorithms are difficult to replace and expand, resulting in heavy development workload, high cost, and compatibility issues. Especially when the same type of algorithm needs to be updated or replaced, a large amount of manual debugging and bug correction are required, which increases development time and cost.
By obtaining the compatibility information and code information of the third-party algorithm, it is judged whether it meets the algorithm operation requirements of the system to be compatible. If it meets, compatibility processing will be performed. If not, code conversion will be performed to achieve the compatibility of the third-party algorithm and the matching of the system. , which provides algorithm-compatible processing and code conversion modules to support system calls.
It realizes the replacement and expansion of third-party algorithms in the autonomous driving system, improves system compatibility, saves development costs, shortens development time, and improves algorithm compatibility success rate and system security through vulnerability detection.
Smart Images

Figure CN114816412B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of autonomous driving technology, and in particular to an algorithm compatibility method and device for an autonomous driving system. Background Art
[0002] In the development process of autonomous driving systems, different subsystems are often designed for different scenarios, and each subsystem has a fixed set of algorithms, such as perception algorithms, decision-making algorithms, or control algorithms. If the algorithm needs to be modified or replaced, the entire subsystem needs to be adjusted, which requires a lot of development work. In addition, the algorithms provided by third-party platforms often have certain compatibility issues with the systems developed by users themselves in terms of definitions or rules, and have poor scalability. In addition, even if the same type of algorithm is updated or replaced, such as using a third-party perception algorithm to optimize the autonomous driving system's own algorithm, a lot of manual debugging or bug fixes are required, which increases the development time and cost. Summary of the invention
[0003] An embodiment of the present invention provides an algorithm compatibility method and device for an autonomous driving system, which enables replacement and expansion of third-party algorithms in the autonomous driving system and improves system compatibility.
[0004] An embodiment of the present invention provides an algorithm compatibility method for an autonomous driving system, characterized by comprising:
[0005] Obtaining compatibility information and first code information of a third-party algorithm; wherein the compatibility information includes: the algorithm type, operating environment, code format and language type of the third-party algorithm; the first code information is used to record the operating code of the third-party algorithm;
[0006] In response to a compatible operation input by a user, and according to the compatible operation, querying a to-be-compatible system in the autonomous driving system, and extracting second code information of a currently running algorithm in the to-be-compatible system;
[0007] According to the compatibility information, determining whether the third-party algorithm meets the algorithm operation requirements preset by the to-be-compatible system;
[0008] If the conditions are met, the first code information is processed for compatibility according to the second code information, and the first code information after the compatibility processing is stored for the compatible system to call;
[0009] If not, the first code information is subjected to code conversion processing according to the algorithm operation requirement to obtain third code information, and the third code information is stored for the compatible system to call.
[0010] Further, judging whether the third-party algorithm meets the algorithm operation requirements preset by the system to be compatible is performed according to the compatibility information, specifically:
[0011] According to the algorithm type of the third-party algorithm, determining whether the algorithm type is the same as the algorithm type of the system to be compatible, and obtaining a first determination result;
[0012] According to the operating environment of the third-party algorithm, determining whether the operating environment is the same as the operating environment of the system to be compatible, and obtaining a second determination result;
[0013] According to the code format and language type of the third-party algorithm, determining whether the code format and language type are consistent with the current running algorithm of the system to be compatible, and obtaining a third determination result;
[0014] If the first judgment result, the second judgment result and the third judgment result are all yes, it is determined that the third-party algorithm meets the algorithm operation requirement;
[0015] Otherwise, it is determined that the third-party algorithm does not meet the algorithm operation requirement.
[0016] Further, the compatibility processing of the first code information according to the second code information is specifically:
[0017] Loading the first code information into the system to be compatible, and filtering out code statements that cannot be loaded;
[0018] Identify the operation logic corresponding to the code statement, and extract the code with the same operation logic from the second code information;
[0019] Performing a compatibility conversion on the code statement according to the extracted code to obtain a revised code statement; wherein the revised code statement can be loaded into the system to be compatible;
[0020] The corrected code statement is written into the first code information to obtain the first code information after compatibility processing.
[0021] Further, the first code information is subjected to code conversion processing according to the algorithm operation requirements to obtain the third code information, specifically:
[0022] According to the code format and language type of the algorithm currently running on the compatible system, the first code information is subjected to code conversion processing to obtain third code information;
[0023] Alternatively, an operating environment code corresponding to the current operating environment of the system to be compatible is obtained, and the operating environment code is written into the first code information to obtain the third code information.
[0024] Furthermore, after obtaining the compatibility information and the first code information of the third-party algorithm, the method further includes:
[0025] According to a preset vulnerability detection algorithm, a vulnerability check is performed on the first code information, and according to a code modification operation input by a user, the first code information is updated.
[0026] Accordingly, another embodiment of the present invention provides an algorithm compatibility device for an autonomous driving system, comprising: an acquisition module, a query module, a judgment module, a compatibility processing module, and a code conversion module;
[0027] The acquisition module is used to acquire the compatibility information and first code information of the third-party algorithm; wherein the compatibility information includes: the algorithm type, operating environment, code format and language type of the third-party algorithm; the first code information is used to record the operating code of the third-party algorithm;
[0028] The query module is used to respond to the compatible operation input by the user, and query the to-be-compatible system in the autonomous driving system according to the compatible operation, and extract the second code information of the currently running algorithm in the to-be-compatible system;
[0029] The judgment module is used to judge whether the third-party algorithm meets the algorithm operation requirements preset by the system to be compatible according to the compatibility information;
[0030] The compatibility module is used for, when the judgment module determines that the third-party algorithm meets the algorithm operation requirement preset by the system to be compatible, performing compatibility processing on the first code information according to the second code information, and storing the first code information after the compatibility processing for calling by the system to be compatible;
[0031] The code conversion module is used to perform code conversion processing on the first code information according to the algorithm operation requirements when the judgment module determines that the third-party algorithm does not meet the algorithm operation requirements preset by the system to be compatible, obtain third code information, and store the third code information for calling by the system to be compatible.
[0032] Further, the judgment module includes a first judgment unit, a second judgment unit, a third judgment unit and a determination unit;
[0033] The first judgment unit is used to judge whether the algorithm type of the third-party algorithm is the same as the algorithm type of the system to be compatible, and obtain a first judgment result;
[0034] The second judgment unit is used to judge whether the operating environment is the same as the operating environment of the system to be compatible according to the operating environment of the third-party algorithm, and obtain a second judgment result;
[0035] The third judgment unit is used to judge whether the code format and language type of the third-party algorithm are consistent with the current running algorithm of the system to be compatible, and obtain a third judgment result;
[0036] The determination unit is used to determine that the third-party algorithm meets the algorithm operation requirement when the first judgment result, the second judgment result and the third judgment result are all yes; otherwise, determine that the third-party algorithm does not meet the algorithm operation requirement.
[0037] Further, the compatibility module is used to perform compatibility processing on the first code information according to the second code information, specifically:
[0038] Loading the first code information into the system to be compatible, and filtering out code statements that cannot be loaded;
[0039] Identify the operation logic corresponding to the code statement, and extract the code with the same operation logic from the second code information;
[0040] Performing a compatibility conversion on the code statement according to the extracted code to obtain a revised code statement; wherein the revised code statement can be loaded into the system to be compatible;
[0041] The corrected code statement is written into the first code information to obtain the first code information after compatibility processing.
[0042] Further, the code conversion module is used to perform code conversion processing on the first code information according to the algorithm operation requirements to obtain third code information, specifically:
[0043] According to the code format and language type of the algorithm currently running on the compatible system, the first code information is subjected to code conversion processing to obtain third code information;
[0044] Alternatively, an operating environment code corresponding to the current operating environment of the system to be compatible is obtained, and the operating environment code is written into the first code information to obtain the third code information.
[0045] Furthermore, the algorithm compatibility device of the autonomous driving system further includes: a vulnerability detection module;
[0046] The vulnerability detection module is used to perform a vulnerability check on the first code information according to a preset vulnerability detection algorithm after obtaining the compatibility information of the third-party algorithm and the first code information, and update the first code information according to the code modification operation input by the user.
[0047] As can be seen from the above, the present invention provides an algorithm compatibility method and device for an autonomous driving system, which first obtains the compatibility information and first code information of a third-party algorithm, and then determines whether the third-party algorithm meets the algorithm operation requirements of the system to be compatible based on the compatibility information; if it does, the first code information is processed for compatibility based on the second code information, and the first code information after the compatibility processing is stored for the system to be compatible to call; if it does not meet the requirements, the first code information is processed for code conversion based on the algorithm operation requirements to obtain the third code information, and the third code information is stored for the system to be compatible to call. Compared with the prior art where third-party algorithms are difficult to replace and expand, the present invention realizes the replacement and expansion of third-party algorithms in autonomous driving systems, improves system compatibility, saves development costs, and shortens development time.
[0048] Furthermore, the present invention automatically performs vulnerability detection on the third-party algorithm before acquiring the third-party algorithm, which not only improves the success rate of algorithm compatibility but also improves the security of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 It is a flowchart of an embodiment of an algorithm compatibility method for an autonomous driving system provided by the present invention;
[0050] Figure 2 It is a structural diagram of an embodiment of an algorithm compatibility system of an autonomous driving system provided by the present invention. DETAILED DESCRIPTION
[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] See also Figure 1 , Figure 1 FIG. 1 is a flow chart of an embodiment of the algorithm compatibility method of the automatic driving system provided by the present invention. Figure 1 As shown, the specific steps are as follows:
[0053] Step 101: Obtain compatibility information and first code information of a third-party algorithm; wherein the compatibility information includes: the algorithm type, operating environment, code format and language type of the third-party algorithm; the first code information is used to record the operating code of the third-party algorithm.
[0054] In this embodiment, the present invention is applied in the field of autonomous driving, and the subsystems of the autonomous driving system will correspond to a set of algorithms. The types of algorithms may be, but are not limited to, perception algorithms, control algorithms, decision algorithms, optimization algorithms, and the like. Algorithms are generally designed by system developers themselves or using existing technologies, and when the system needs secondary development or optimization, other algorithms often need to be introduced. The introduction method is generally designed by the developer himself or directly obtained from a third-party platform. The third-party algorithm in step 101 is also obtained based on the same principle. After data sorting of the algorithm, its compatibility information and first code information can be obtained.
[0055] In this embodiment, the compatibility information may include, but is not limited to: algorithm type, operating environment, code format, and language type. The algorithm type is as described above, and the operating environment refers to the system architecture under which the algorithm runs, whether it is an Android system, a Linux system, or other open source systems or custom systems. The code format refers to the encoding format used by the algorithm. Common encoding formats include ASCII, ANSI, GBK, GB2312, UTF-8, GB18030, and UNICODE. The language type may include, but is not limited to: PASCAL, C language, FORTRAN, BASIC, COBOL, FOXBASE, etc.
[0056] In this embodiment, the first code information is used to record the running code of the third-party algorithm.
[0057] As an example of this embodiment, after step 101, it also includes: according to a preset vulnerability detection algorithm, the first code information is checked for vulnerabilities, and the first code information is updated according to the code modification operation input by the user. In this example, the vulnerability detection algorithm is a prior art and is not described here. Generally, vulnerability detection is only applied in the later stage of development, and vulnerability detection is not performed in the early stage of development. In this example, by checking the vulnerabilities of the first code information and modifying it according to the user's code modification operation, not only the success rate of algorithm compatibility is improved, but also the security of the system is improved.
[0058] Step 102: Respond to the compatible operation input by the user, and query the system to be compatible in the autonomous driving system according to the compatible operation, and extract the second code information of the currently running algorithm in the system to be compatible.
[0059] In this embodiment, since the autonomous driving system includes various subsystems, the system to be compatible is queried according to the user's compatible operation, which is used to establish a connection between the system to be compatible and the third-party algorithm.
[0060] In this embodiment, step 102 is specifically as follows: the compatible operation includes a system identifier of the system to be compatible, queries a database according to the system identifier, finds a code database corresponding to the system to be compatible, and extracts second code information corresponding to the currently running algorithm from the code database.
[0061] Step 103: According to the compatibility information, determine whether the third-party algorithm meets the algorithm operation requirements preset by the compatible system. If yes, execute step 104; if not, execute step 105.
[0062] In this embodiment, step 103 specifically includes:
[0063] Step 1031: judging, according to the algorithm type of the third-party algorithm, whether the algorithm type is the same as the algorithm type of the system to be compatible, and obtaining a first judgment result;
[0064] Step 1032: judging whether the operating environment of the third-party algorithm is the same as the operating environment of the system to be compatible, and obtaining a second judgment result;
[0065] Step 1033: judging, according to the code format and language type of the third-party algorithm, whether the code format and language type are consistent with the current running algorithm of the system to be compatible, and obtaining a third judgment result;
[0066] Step 1034: If the first judgment result, the second judgment result and the third judgment result are all yes, it is determined that the third-party algorithm meets the algorithm operation requirements;
[0067] Step 1035: Otherwise, determine that the third-party algorithm does not meet the algorithm operation requirements.
[0068] In this embodiment, the third-party algorithm is identified according to the algorithm type, operating environment, code format and language type to determine whether it meets the algorithm operation requirements of the system to be compatible. The algorithm operation requirements are customized by the user for each system to be compatible, or the corresponding algorithm type, operating environment, code format and language type information can be captured from the existing system to be compatible through data query or data extraction to generate the corresponding algorithm operation requirements.
[0069] In this embodiment, only when all three judgment results are yes, is it determined that the third-party algorithm meets the algorithm operation requirements, and other cases are all deemed to be unsatisfactory.
[0070] Step 104: Perform compatibility processing on the first code information according to the second code information, and store the first code information after compatibility processing for calling by the compatible system.
[0071] In this embodiment, step 104 is specifically as follows: loading the first code information into the system to be compatible, and filtering out code statements that cannot be loaded; identifying the running logic corresponding to the code statement, and extracting the code with the same running logic from the second code information; performing compatibility conversion on the code statement according to the extracted code to obtain a corrected code statement; wherein the corrected code statement can be loaded into the system to be compatible; writing the corrected code statement into the first code information to obtain the first code information after compatibility processing.
[0072] In this embodiment, since the third-party algorithm meets the algorithm operation requirements, it can be seen that the first code information is first preloaded into the system to be compatible, and the loading process focuses on screening out the code statements that cannot be loaded, and then the code statements are identified in operation logic in combination with the preset recognition algorithm. The recognition process is a prior art and will not be described in detail here. At the same time, the code with the same operation logic is extracted from the second code information. Since the code format and language type of the two are the same, the unrecognizable code statements can be compatible converted according to the extracted code to obtain the corrected code statements. At this point, the code statement can be continuously updated by multiple corrections or multiple iterations until the corrected code statement can be loaded into the system to be compatible. Finally, the corrected code statement is written into the first code information to obtain and store the first code information after compatibility processing.
[0073] In this embodiment, the revised code statement does not directly replace the original code statement, but is used as a new code in the first code information, without affecting the original first code information. When the user subsequently calls, the code statement before the revision can be traced back, and the revised code statement can also be viewed, thereby improving the fault tolerance rate.
[0074] Step 105: According to the algorithm operation requirement, the first code information is subjected to code conversion processing to obtain third code information, and the third code information is stored for calling by the compatible system.
[0075] In this embodiment, step 105 has two specific implementation methods: implementation method 1: according to the code format and language type of the current running algorithm of the compatible system, the first code information is subjected to code conversion processing to obtain the third code information. Implementation method 2: the running environment code corresponding to the current running environment of the compatible system is obtained, and the running environment code is written into the first code information to obtain the third code information.
[0076] When the first judgment result is no, it means that the third-party algorithm obtained this time is of a different algorithm type from the original algorithm, that is, the algorithm span is large, such as the perception algorithm and the decision algorithm, and the correlation between the two is weak. At this time, you can ignore the third judgment result and decide how to perform code conversion processing based on the second judgment result. At this time, if the second judgment result is yes, the operating environment of the two is the same, and the first code information is directly used as the third code information; if the second judgment result is no, the third code information is obtained by using the second implementation method.
[0077] When the first judgment result is yes, the second judgment result is no, and the third judgment result is yes, implementation method 2 is adopted to obtain the third code information.
[0078] When the first judgment result is yes, the second judgment result is yes, and the third judgment result is no, implementation method 1 is adopted to obtain the third code information.
[0079] In this embodiment, whether it is the compatibility processing of step 104 or the code conversion processing of step 105, the original code of the third method is not replaced, but the corresponding code is added, and the original code corresponding to the newly added code is marked, so that users can directly call or refer to it during subsequent system development or algorithm calling, thereby improving the practicality and compatibility of the present invention.
[0080] Accordingly, see Figure 2 , Figure 2 is a structural diagram of an embodiment of an algorithm compatible device for an automatic driving system provided by the present invention, such as Figure 2 As shown, the device includes: an acquisition module 201, a query module 202, a judgment module 203, a compatibility processing module 204 and a code conversion module 205.
[0081] Among them, the acquisition module 201 is used to obtain the compatibility information and first code information of the third-party algorithm; wherein the compatibility information includes: the algorithm type, operating environment, code format and language type of the third-party algorithm; the first code information is used to record the operating code of the third-party algorithm.
[0082] The query module 202 is used to respond to the compatible operation input by the user, and according to the compatible operation, query the system to be compatible in the automatic driving system, and extract the second code information of the currently running algorithm in the system to be compatible.
[0083] The judgment module 203 is used to judge whether the third-party algorithm meets the algorithm operation requirement preset by the system to be compatible according to the compatibility information.
[0084] The compatibility module 204 is used to perform compatibility processing on the first code information according to the second code information when the judgment module 203 determines that the third-party algorithm meets the algorithm operation requirements preset by the system to be compatible, and store the first code information after compatibility processing for the system to be compatible to call.
[0085] The code conversion module 205 is used to perform code conversion processing on the first code information according to the algorithm operation requirements when the judgment module 203 determines that the third-party algorithm does not meet the algorithm operation requirements preset by the system to be compatible, obtain third code information, and store the third code information for calling by the system to be compatible.
[0086] In this embodiment, the judgment module 203 includes a first judgment unit, a second judgment unit, a third judgment unit and a determination unit.
[0087] The first judgment unit is used to judge whether the algorithm type of the third-party algorithm is the same as the algorithm type of the system to be compatible, and obtain a first judgment result;
[0088] The second judgment unit is used to judge whether the operating environment is the same as the operating environment of the system to be compatible according to the operating environment of the third-party algorithm, and obtain a second judgment result;
[0089] The third judgment unit is used to judge whether the code format and language type of the third-party algorithm are consistent with the current running algorithm of the system to be compatible, and obtain a third judgment result;
[0090] The determination unit is used to determine that the third-party algorithm meets the algorithm operation requirement when the first judgment result, the second judgment result and the third judgment result are all yes; otherwise, determine that the third-party algorithm does not meet the algorithm operation requirement.
[0091] In this embodiment, the compatibility module 204 is used to perform compatibility processing on the first code information based on the second code information, specifically: loading the first code information into the system to be compatible, and filtering out code statements that cannot be loaded; identifying the running logic corresponding to the code statement, and extracting the code with the same running logic from the second code information; performing compatibility conversion on the code statement based on the extracted code to obtain a corrected code statement; wherein the corrected code statement can be loaded into the system to be compatible; writing the corrected code statement into the first code information to obtain the first code information after compatibility processing.
[0092] In this embodiment, the code conversion module 205 is used to perform code conversion processing on the first code information according to the algorithm running requirements to obtain third code information, specifically: according to the code format and language type of the algorithm currently running the compatible system, the first code information is subjected to code conversion processing to obtain the third code information; or, the operating environment code corresponding to the current operating environment of the compatible system is obtained, and the operating environment code is written into the first code information to obtain the third code information.
[0093] As an example of this embodiment, the device further includes: a vulnerability detection module. The vulnerability detection module is used to perform a vulnerability check on the first code information according to a preset vulnerability detection algorithm after obtaining the compatibility information of the third-party algorithm and the first code information, and update the first code information according to the code modification operation input by the user.
[0094] The more detailed working principle and step flow of the device can refer to but are not limited to the contents described above.
[0095] As can be seen from the above, the present invention provides an algorithm compatibility method and device for an autonomous driving system, which first obtains the compatibility information and first code information of a third-party algorithm, and then determines whether the third-party algorithm meets the algorithm operation requirements of the system to be compatible based on the compatibility information; if it does, the first code information is processed for compatibility based on the second code information, and the first code information after the compatibility processing is stored for the system to be compatible to call; if it does not meet the requirements, the first code information is processed for code conversion based on the algorithm operation requirements to obtain the third code information, and the third code information is stored for the system to be compatible to call. Compared with the prior art where third-party algorithms are difficult to replace and expand, the present invention realizes the replacement and expansion of third-party algorithms in autonomous driving systems, improves system compatibility, saves development costs, and shortens development time.
[0096] Furthermore, the present invention automatically performs vulnerability detection on the third-party algorithm before acquiring the third-party algorithm, which not only improves the success rate of algorithm compatibility but also improves the security of the system.
[0097] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.
[0098] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. An algorithm compatibility method for an autonomous driving system, characterized in that: include: Obtaining compatibility information and first code information of a third-party algorithm; wherein the compatibility information includes: the algorithm type, operating environment, code format and language type of the third-party algorithm; the first code information is used to record the operating code of the third-party algorithm; In response to a compatible operation input by a user, and according to the compatible operation, querying a to-be-compatible system in the autonomous driving system, and extracting second code information of a currently running algorithm in the to-be-compatible system; According to the compatibility information, determining whether the third-party algorithm meets the algorithm operation requirements preset by the to-be-compatible system; If the conditions are met, the first code information is processed for compatibility according to the second code information, and the first code information after the compatibility processing is stored for the compatible system to call; If not, the first code information is subjected to code conversion processing according to the algorithm operation requirement to obtain third code information, and the third code information is stored for the compatible system to call.
2. The algorithm compatibility method of the automatic driving system according to claim 1, characterized in that: The step of judging, according to the compatibility information, whether the third-party algorithm meets the algorithm operation requirement preset by the system to be compatible is specifically: According to the algorithm type of the third-party algorithm, determining whether the algorithm type is the same as the algorithm type of the system to be compatible, and obtaining a first determination result; According to the operating environment of the third-party algorithm, determining whether the operating environment is the same as the operating environment of the system to be compatible, and obtaining a second determination result; According to the code format and language type of the third-party algorithm, determining whether the code format and language type are consistent with the current running algorithm of the system to be compatible, and obtaining a third determination result; If the first judgment result, the second judgment result and the third judgment result are all yes, it is determined that the third-party algorithm meets the algorithm operation requirement; Otherwise, it is determined that the third-party algorithm does not meet the algorithm operation requirement.
3. The algorithm compatibility method of the automatic driving system according to claim 2, characterized in that: The performing compatibility processing on the first code information according to the second code information is specifically: Loading the first code information into the system to be compatible, and filtering out code statements that cannot be loaded; Identify the operation logic corresponding to the code statement, and extract the code with the same operation logic from the second code information; Performing a compatibility conversion on the code statement according to the extracted code to obtain a revised code statement; wherein the revised code statement can be loaded into the system to be compatible; The corrected code statement is written into the first code information to obtain the first code information after compatibility processing.
4. The algorithm compatibility method of the automatic driving system according to claim 2, characterized in that: The performing code conversion processing on the first code information according to the algorithm operation requirement to obtain the third code information is specifically: According to the code format and language type of the algorithm currently running on the compatible system, the first code information is subjected to code conversion processing to obtain third code information; Alternatively, an operating environment code corresponding to the current operating environment of the system to be compatible is obtained, and the operating environment code is written into the first code information to obtain the third code information.
5. The algorithm compatibility method of the automatic driving system according to any one of claims 1 to 4, characterized in that: After obtaining the compatibility information and the first code information of the third-party algorithm, the method further includes: According to a preset vulnerability detection algorithm, a vulnerability check is performed on the first code information, and according to a code modification operation input by a user, the first code information is updated.
6. An algorithm compatibility device for an autonomous driving system, characterized in that: include: Acquisition module, query module, judgment module, compatibility module and code conversion module; The acquisition module is used to acquire the compatibility information and first code information of the third-party algorithm; wherein the compatibility information includes: the algorithm type, operating environment, code format and language type of the third-party algorithm; the first code information is used to record the operating code of the third-party algorithm; The query module is used to respond to the compatible operation input by the user, and query the to-be-compatible system in the autonomous driving system according to the compatible operation, and extract the second code information of the currently running algorithm in the to-be-compatible system; The judgment module is used to judge whether the third-party algorithm meets the algorithm operation requirements preset by the system to be compatible according to the compatibility information; The compatibility module is used for, when the judgment module determines that the third-party algorithm meets the algorithm operation requirement preset by the system to be compatible, performing compatibility processing on the first code information according to the second code information, and storing the first code information after the compatibility processing for calling by the system to be compatible; The code conversion module is used to perform code conversion processing on the first code information according to the algorithm operation requirements when the judgment module determines that the third-party algorithm does not meet the algorithm operation requirements preset by the system to be compatible, obtain third code information, and store the third code information for calling by the system to be compatible.
7. The algorithm compatible device of the automatic driving system according to claim 6, characterized in that: The judgment module includes a first judgment unit, a second judgment unit, a third judgment unit and a determination unit; The first judgment unit is used to judge whether the algorithm type of the third-party algorithm is the same as the algorithm type of the system to be compatible, and obtain a first judgment result; The second judgment unit is used to judge whether the operating environment is the same as the operating environment of the system to be compatible according to the operating environment of the third-party algorithm, and obtain a second judgment result; The third judgment unit is used to judge whether the code format and language type of the third-party algorithm are consistent with the current running algorithm of the system to be compatible, and obtain a third judgment result; The determination unit is used to determine that the third-party algorithm meets the algorithm operation requirement when the first judgment result, the second judgment result and the third judgment result are all yes; otherwise, determine that the third-party algorithm does not meet the algorithm operation requirement.
8. The algorithm compatible device of the automatic driving system according to claim 7, characterized in that: The compatibility module is used to perform compatibility processing on the first code information according to the second code information, specifically: Loading the first code information into the system to be compatible, and filtering out code statements that cannot be loaded; Identify the operation logic corresponding to the code statement, and extract the code with the same operation logic from the second code information; Performing a compatibility conversion on the code statement according to the extracted code to obtain a revised code statement; wherein the revised code statement can be loaded into the system to be compatible; The corrected code statement is written into the first code information to obtain the first code information after compatibility processing.
9. The algorithm compatible device of the automatic driving system according to claim 7, characterized in that: The code conversion module is used to perform code conversion processing on the first code information according to the algorithm operation requirements to obtain third code information, specifically: According to the code format and language type of the algorithm currently running on the compatible system, the first code information is subjected to code conversion processing to obtain third code information; Alternatively, an operating environment code corresponding to the current operating environment of the system to be compatible is obtained, and the operating environment code is written into the first code information to obtain the third code information.
10. The algorithm compatible device of the automatic driving system according to any one of claims 6 to 9, characterized in that: Also includes: Vulnerability detection module; The vulnerability detection module is used to perform a vulnerability check on the first code information according to a preset vulnerability detection algorithm after obtaining the compatibility information of the third-party algorithm and the first code information, and update the first code information according to the code modification operation input by the user.
Citation Information
Patent Citations
Software vulnerability fixing method and device for terminal
CN107451474A
Compatibility test method, device and equipment and storage medium
CN110688300A
