A cross-architecture, cross-system, and cross-platform software deployment method

By deploying containers on ARM architecture virtual machines and directly running container deployment algorithms on embedded hardware platforms, it solves the problem of software deployment on multiple hardware platforms, achieves rapid migration and functional verification of cross-platform software, and adapts to hardware platforms. computing performance.

CN117407004BActive Publication Date: 2024-10-18ZHEJIANG UNIV
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202311306235.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-10
Publication Date
2024-10-18
Estimated Expiration
2043-10-10

AI Technical Summary

Technical Problem

Existing technology is difficult to implement cross-architecture, cross-system, and cross-platform software deployment on multiple hardware platforms, resulting in insufficient computing performance of the hardware platform and inability to effectively run the software required by the intelligent controller.

Method used

Adopting a cross-architecture, cross-system, and cross-platform software deployment method, by deploying containers on ARM architecture virtual machines and directly running container deployment algorithms on embedded hardware platforms, cross-platform simulation and model conversion reasoning can be achieved to adapt to different needs. The computing performance of the hardware platform.

Benefits of technology

It realizes rapid software migration and functional verification on multiple hardware platforms, shields the differences in the underlying architecture, operating system and sensor driver of the hardware platform, improves the efficiency of software development and testing, and adapts to the computing performance of the hardware platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117407004B_ABST
    Figure CN117407004B_ABST
Patent Text Reader

Abstract

The present invention discloses a cross-architecture, cross-system, and cross-platform software deployment method. The method is oriented to the computing requirements of different computing units of an embedded hardware platform, and divides the software algorithms to be deployed into a first algorithm and a second algorithm. The first algorithm is a general algorithm represented by filtering estimation and optimization estimation and deployed on a general computing processor (such as a CPU). The second algorithm is an intelligent algorithm represented by convolutional neural network (CNN) and reinforcement learning (RL) and deployed on an intelligent computing processor. The present invention designs a fast migration test mode for the separate development and testing phase of each module algorithm for the first algorithm, as well as a complete functional verification mode in the functional verification phase. The present invention designs a model conversion reasoning mode for the second algorithm.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the problem of software and hardware integration, and in particular to a cross-architecture, cross-system, and cross-platform software deployment method. Background Art

[0002] In response to the development needs of high-end intelligent controllers for unmanned systems, a general intelligent algorithm library was deployed and tested on multiple hardware platforms, including software deployment tests on controllable hardware platforms using different serial bus PCIe modes (including EP mode and SoC mode), different operating systems (including EulerOS, OpenEuler system), and different chips (HiSilicon CPU, Kunpeng 920CPU, Ascend 310). Taking a complete GVD path planning algorithm as an example, it was deployed on three different hardware platforms: Atlas500 smart station, PR210KI server, and ARES500AI edge intelligent computing platform, and rosbag data packets were played online to conduct multi-machine communication and algorithm function tests. The test results show that when running EP mode, HiSilicon CPU EulerOS system, and ARM architecture on the Atlas500 smart station, Ubuntu docker will be deployed, roscore will fail to run, and the CPU performance is too poor. When running EP mode, OpenEuler system, and ARM architecture on the PR210KI server, Ubuntu docker will be deployed, roscore will fail to run, and the single-core CPU occupancy rate is 99.7%, making it difficult to run other tasks.

[0003] Therefore, there is an urgent need to propose a cross-architecture, cross-system, and cross-platform software deployment method to adapt to the computing performance of the hardware platform. Summary of the invention

[0004] In view of the deficiencies in the prior art, the present invention provides a cross-architecture, cross-system, and cross-platform software deployment method.

[0005] In a first aspect, an embodiment of the present invention provides a cross-architecture, cross-system, and cross-platform software deployment method, which is applied to a first algorithm, and the method includes:

[0006] An ARM architecture virtual machine is deployed on a first host, the operating system of the first host is an Ubuntu operating system, the architecture of the first host is an x86 architecture, a container is installed on the ARM architecture virtual machine, and a container of the Ubuntu operating system is configured; a first algorithm is deployed in the container and compiled;

[0007] Install a container deployment environment on the embedded hardware platform to be migrated, copy the container of the Ubuntu operating system on the first host to the container deployment environment of the embedded hardware platform, and directly run the first algorithm deployed in the container;

[0008] The embedded hardware platform establishes communication with the ROS master and slave machines of multiple second hosts; the second hosts are coupled to the sensors, and the second hosts propagate the sensor data by publishing ROS topics. The first algorithm running in the Ubuntu container on the embedded hardware platform receives the sensor data propagated by the ROS topics by subscribing to the topics, thereby realizing the reception and processing of the sensor data.

[0009] In a second aspect, an embodiment of the present invention provides a cross-architecture, cross-system, and cross-platform software deployment method, which is applied to a first algorithm, and the method includes:

[0010] The first algorithm is cross-compiled directly on the Euler or OpenEuler operating system on the embedded hardware platform. After successful compilation, the sensor is connected to the embedded hardware platform to run the compiled first algorithm.

[0011] In a third aspect, an embodiment of the present invention provides a cross-architecture, cross-system, and cross-platform software deployment method, which is applied to the second algorithm, and the method includes:

[0012] On a development host with an Ubuntu operating system, an x86 architecture, and a GPU processor, the neural network model using the second algorithm is converted into a format using a CANN tool, including: converting the neural network model in a .pth format into a file in a .onnx format, and then converting the file in the .onnx format into a .om model supported by an intelligent computing processor of an embedded hardware platform;

[0013] The CANN Nnrt inference environment is configured on the embedded hardware platform, and the embedded hardware platform loads the converted .om model to perform model inference.

[0014] In a fourth aspect, an embodiment of the present invention provides an electronic device, comprising a memory and a processor, wherein the memory is coupled to the processor; wherein the memory is used to store program data, and the processor is used to execute the program data to implement the above-mentioned cross-architecture, cross-system, and cross-platform software deployment method.

[0015] In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned cross-architecture, cross-system, and cross-platform software deployment method.

[0016] Compared with the prior art, the invention has the following beneficial effects: the invention divides the software algorithm to be deployed into the first algorithm and the second algorithm, designs a fast migration test mode for the first algorithm in the separate development test phase, and a complete function verification mode in the function verification phase; designs a model conversion reasoning mode for the second algorithm. The invention adapts to the computing performance of the hardware platform through cross-architecture, cross-system, and cross-platform software deployment. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0018] Figure 1 A flowchart of a first algorithm fast migration test mode provided by an embodiment of the present invention;

[0019] Figure 2 A deployment architecture diagram of a first algorithm rapid migration test mode provided by an embodiment of the present invention;

[0020] Figure 3 A flowchart of a second algorithm model conversion reasoning mode provided by an embodiment of the present invention;

[0021] Figure 4 A deployment architecture diagram of the second algorithm model conversion reasoning mode provided by an embodiment of the present invention;

[0022] Figure 5 A schematic diagram of an electronic device provided by an embodiment of the present invention. Implementation

[0023] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0024] The terms used in the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The singular forms "a", "the" and "the" used in the present invention and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0025] It should be understood that although the terms first, second, third, etc. may be used in the present invention to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present invention, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0026] The present invention is described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the features of the following embodiments and implementations can be combined with each other.

[0027] Deploying algorithms to embedded hardware platforms faces the following challenges:

[0028] 1) Cross-architecture: from x86 architecture to ARM architecture, that is, it is necessary to migrate the code developed on the x86 architecture to the ARM architecture.

[0029] 2) Cross-operating system: from Ubuntu operating system to Euler or OpenEuler operating system.

[0030] 3) Across general computing processors: from Intel's CPU to the domestic Ascend 310 chip.

[0031] 4) Cross-intelligent computing processors: from GPU to NPU.

[0032] In this example, the embedded hardware platform uses the ARES500AI hardware platform including the Atlas200 module, Ascend 310 chip, Euler core, and ARM architecture.

[0033] The embodiment of the present invention proposes a cross-architecture, cross-system, and cross-platform software deployment method. The method is oriented to the computing requirements of different computing units of the embedded hardware platform and divides the software algorithms to be deployed into two categories (first algorithm and second algorithm).

[0034] The first algorithm is a general algorithm deployed on a general computing processor (such as a CPU) represented by filter estimation and optimization estimation. The second algorithm is an intelligent algorithm deployed on an intelligent computing processor represented by convolutional neural network (CNN) and reinforcement learning (RL). The present invention designs two deployment modes for the first algorithm, namely, a fast migration test mode for the separate development and testing phase of each module algorithm, and a complete function verification mode for the function verification phase of an unmanned autonomous system. One deployment mode is designed for the second algorithm, namely, a model conversion reasoning mode.

[0035] Among them, Figure 1 and Figure 2 As shown, the present invention provides a cross-architecture, cross-system, and cross-platform software deployment method, which is applied to the first algorithm to realize a rapid migration test mode, and specifically includes the following steps:

[0036] Step S1, deploying an ARM architecture virtual machine on a first host, the operating system of the first host is an Ubuntu operating system, the architecture of the first host is an x86 architecture, installing a container on the virtual machine, and configuring a container of the Ubuntu operating system; deploying a first algorithm in the container and compiling it.

[0037] Specifically, first use the container configuration tool on an ARM embedded hardware platform equipped with the Ubuntu operating system to generate an ARM image and submit it to the image cloud website. The container configuration tool is generally a dockerfile tool. The operation command for submitting the ARM image to the image cloud website is: docker push [user_name / image_name:tag]. Wherein, user_name is the user name, which is set by the user; image_name is the generated ARM image name, which is set by the user. Tag is the label of this ARM image, which can represent different versions and is set by the user.

[0038] Pull the ARM image from the image cloud website to the local machine on the first host with x86 architecture. Note that the attribute of the specified architecture platform must be added during the execution of this step, specifically docker pull user_name / [image_name:tag] --platform arm64. Among them, "--platform arm64" means that the specified architecture is arm64, and this attribute must be added. Among them, user_name is the user name, which is set by the user; image_name is the name of the generated ARM image, which is set by the user. tag is the tag of this ARM image, which can represent different versions and is set by the user.

[0039] Install and start a cross-platform simulator on the first host, and set it to simulate the ARM architecture. In this example, the cross-platform simulator is the QEMU (Quick Emulator) tool. The command to start the cross-platform simulator is set to: docker run --rm --privileged multiarch / qemu-user-static:register.

[0040] On the first host, create an Ubuntu operating system container from the pulled ARM image, start and enter the container. The command to create a container from the image is: docker run -i -d [--name your_container_name] [-v your_path_to_src: / root / workspace / src]user_name / [image_name:tag]. Wherein your_container_name is the name of the created container, which is set by the user; your_path_to_src is the path to create the container, which is set by the user; user_name is the user name, which is set by the user; image_name is the generated ARM image name, which is set by the user. tag is the tag of this ARM image, which can represent different versions and is set by the user. The command to start the container is: docker start [your_container_name]. The command to enter the container is: docker exec -it [your_container_name] bash.

[0041] A first algorithm running on a general computing processor (such as a CPU) is deployed in the container, and the first algorithm is selected from a filtering estimation algorithm, an optimization estimation algorithm, an image feature extraction algorithm, and a mileage estimation algorithm; the filtering estimation algorithm includes a Kalman filter and an extended Kalman filter; the optimization estimation algorithm includes a Gauss-Newton optimization algorithm and a LM optimization algorithm (Levenberg-Marquardt); the image feature extraction algorithm includes a scale-invariant feature extraction algorithm SIFT (Scale Invariant Feature Transform) and a local feature extraction algorithm ORB (Oriented FAST and Rotated BRIEF); the mileage estimation algorithm includes a fast and robust lidar-inertial odometer FastLIO2 (Fast Direct LiDAR-inertial Odometry) and a monocular visual inertial navigation VINSMono (Visual-Inertial Odometry and Navigation System for Monocular Estimation).

[0042] It should be noted that the container environment at this time is the same as the development environment of the first algorithm. Therefore, there is no need to modify the first algorithm. It can be directly compiled according to the development method. There is no need for additional cross-platform and cross-system cross-compilation, which greatly saves developers' time and energy.

[0043] Step S2, install the container deployment environment on the embedded hardware platform to be migrated. Directly copy the Ubuntu operating system container on the first host to the container environment on the embedded hardware platform. Without recompilation, the first algorithm deployed in the Ubuntu container can be directly run.

[0044] Specifically, first on the first host, submit the Ubuntu operating system container that has completed the deployment and compilation of the first algorithm to the ARM image where it is located for storage. The operation of submitting the container to the image for storage is completed through the "Docker commit" command. Specifically: docker commit your_container_name image_name.

[0045] Make the ARM image on the first host into a compressed package and copy it to the embedded hardware platform. Among them, the operation of copying to the embedded hardware platform can be completed by uploading through the scp command, rz command or fpt tool.

[0046] Load the ARM image on the embedded hardware platform, and then enter the Ubuntu operating system container. After starting the container, the first algorithm in the container can be directly run. Among them, the command to load the image is: docker load <image_name.tar. The command to enter the container is: docker run -i -d [--name your_container_name] user_name / [image_name:tag]. The commands to start the container are: docker start [your_container_name] and docker exec -it [your_container_name] bash. Subsequently, the first algorithm deployed and compiled in the previous steps can be run. Since the first algorithm has been compiled on the first host, there is no need for recompilation at this time and it can be directly run on the said embedded hardware platform.

[0047] Step S3, the embedded hardware platform establishes a ROS master-slave communication link with multiple second hosts through wired (Ethernet connection) or wireless means. The second host is coupled to the sensor. The second host propagates the sensor data by publishing ROS topics. The first algorithm running in the Ubuntu container on the embedded hardware platform can successfully receive the sensor data propagated by the ROS topic by subscribing to the topic, thereby realizing the reception and algorithm processing of the sensor data.

[0048] It should be noted that, without any extra operations, the data sent to the host machine cannot be received inside the container of the Ubuntu operating system (in this step, the host machine is the embedded hardware platform). For example, start an Ubuntu operating system container, play a ROS data packet on the host machine, and publish a ROS topic to propagate sensor data. At this time, check the ROS topic list through the rostopic list command in the Ubuntu operating system container, and you can see that the list is empty, indicating that the container cannot receive the ROS topic on the host machine. By communicating with the ROS master-slave machines of multiple second hosts through the embedded hardware platform, the topic data sent by the host machine and the second host can be successfully received inside the Ubuntu operating system container, thereby realizing message communication inside and outside the Ubuntu operating system container.

[0049] Next, this example will elaborate on the process of establishing a communication link between the embedded hardware platform and multiple ROS master and slave machines of the second host:

[0050] Open a first terminal in the host machine, which is the embedded hardware platform, and start the container. At this time, pay attention to adding the network attribute, that is, the --network host attribute, to the command for starting the embedded hardware platform container described in the previous step, and map the host machine's IP and port to the container. The command reference is as follows: docker run -it –network hostimage_name:tag / bin / bash.

[0051] Reopen a second terminal in the host machine (i.e., embedded hardware platform), start the ROS host node (i.e., roscore) in the second terminal, then play the ROS data packet (i.e., rosbag), and publish the ROS topic.

[0052] Open the third terminal in the Ubuntu operating system container and enter the command to view the ROS topic list in the third terminal to check whether the ROS topic published by the host can be received. The specific command is: rostopic list. At this time, you can see that the third terminal outputs a list of ROS topics, indicating that the host and the container have established a communication link.

[0053] Open the fourth terminal in the second host that has established ROS master-slave communication with the host (i.e., the embedded hardware platform), play the ROS data packet (i.e., rosbag), and publish the ROS topic.

[0054] Enter the command to view the ROS topic list in the third terminal of the container to check whether the ROS topic published by the second host can be received. The specific command is: rostopic list. At this time, you can see that the third terminal outputs the ROS topic list, indicating that the second host and the container on the host have also established a communication link.

[0055] It should be noted that this method can shield the differences in the underlying architecture of the hardware platform, operating system, and sensor drivers, allowing users to focus on software function development and testing.

[0056] Furthermore, an embodiment of the present invention provides a cross-architecture, cross-system, and cross-platform software deployment method, which is applied to a first algorithm and is aimed at a mode of complete functional verification of the first algorithm, and specifically includes the following steps:

[0057] Step S100, cross-compile the first software algorithm directly on the Euler or OpenEuler operating system on the embedded hardware platform. After successful compilation, directly connect the sensor to the embedded hardware platform, run the compiled first algorithm, and implement complete functional verification.

[0058] It should be noted that during the implementation of this method, corresponding code modifications are required for compilation errors generated across architectures, operating systems, and general-purpose computing chips. The amount of code modification is large and the compilation takes a long time. However, this method can fully utilize the computing resources of the general-purpose computing processor on the embedded hardware platform and reduce the delay that may be caused by docker. It is recommended to use it when performing complete functional verification.

[0059] Furthermore, if Figure 3 and Figure 4 As shown, the embodiment of the present invention provides a cross-architecture, cross-system, and cross-platform software deployment method, which is applied to the second algorithm to implement the model conversion reasoning mode, and specifically includes the following sub-steps:

[0060] Step S200, install the CANN (Compute Architecture for Neural Networks) toolkit development environment on a development host with an Ubuntu operating system, an x86 architecture, and a GPU processor to convert the neural network model of the intelligent software algorithm, for example, convert the pytorch model .pth file into an open neural network exchange file .onnx, and then convert it into a .om model supported by the intelligent computing processor of the embedded hardware platform.

[0061] For example, converting a pytorch model .pth file to an open neural network exchange file .onnx model can be done by installing the onnx_runtime package. Converting an onnx file to a .om model supported by an intelligent computing processor of an embedded hardware platform can be done by installing the ATC package.

[0062] Step S201, installing the CANN Nnrt reasoning environment on the embedded hardware platform, copying the converted .om model on the development host to the embedded hardware platform, and realizing intelligent computing and model reasoning based on NPU (Neural Network Processing Unit) hardware.

[0063] For example, the .om model can be used to perform intelligent computing and model reasoning based on NPU hardware, which can be completed using the general pyacl toolkit.

[0064] It should be noted that due to the limited computing power of the hardware platform, deep and large-scale neural network models (greater than 10M) cannot be converted directly on the hardware platform. Therefore, this application uses an x86 architecture desktop with relatively high computing power as the development environment to convert the neural network, and uses the embedded hardware platform as the inference environment to run the converted neural network model.

[0065] The present specification also provides a computer-readable storage medium, which stores a computer program, and the computer program can be used to execute the above-mentioned data synchronization method.

[0066] This manual also provides Figure 5 The schematic structure diagram of the electronic device shown in FIG. Figure 5 As mentioned above, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory and a non-volatile memory, and may also include hardware required for other services. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to implement the above data synchronization method.

[0067] Of course, in addition to software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the executor of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0068] In the 1990s, it was very clear whether the improvement of a technology was hardware improvement (for example, improvement of the circuit structure of diodes, transistors, switches, etc.) or software improvement (improvement of the method flow). However, with the development of technology, many improvements of the method flow today can be regarded as direct improvements of the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be implemented with hardware entity modules. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming themselves, without having to ask chip manufacturers to design and make dedicated integrated circuit chips. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one kind of HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0069] The controller may be implemented in any suitable manner, for example, the controller may take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (e.g., software or firmware) executable by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, and the memory controller may also be implemented as part of the control logic of the memory. It is also known to those skilled in the art that, in addition to implementing the controller in a purely computer-readable program code manner, the controller may be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, such a controller may be considered as a hardware component, and the devices for implementing various functions included therein may also be considered as structures within the hardware component. Or even, the devices for implementing various functions may be considered as both software modules for implementing the method and structures within the hardware component.

[0070] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0071] For the convenience of description, the above device is described by dividing it into various units according to its functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

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

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

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

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

[0076] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0077] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0078] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0079] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0080] It should be understood by those skilled in the art that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0081] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0082] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0083] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.

[0084] The above embodiments are only used to illustrate the design ideas and features of the present invention, and their purpose is to enable those skilled in the art to understand the content of the present invention and implement it accordingly. The protection scope of the present invention is not limited to the above embodiments. Therefore, any equivalent changes or modifications made based on the principles and design ideas disclosed by the present invention are within the protection scope of the present invention.

Claims

1. A cross-architecture, cross-system, and cross-platform software deployment method, characterized in that: Applied to the first algorithm, the method comprises: An ARM architecture virtual machine is deployed on a first host, the operating system of the first host is an Ubuntu operating system, the architecture of the first host is an x86 architecture, a container is installed on the ARM architecture virtual machine, and a container of the Ubuntu operating system is configured; a first algorithm is deployed in the container and compiled; Install a container deployment environment on the embedded hardware platform to be migrated, copy the container of the Ubuntu operating system on the first host to the container deployment environment of the embedded hardware platform, and directly run the first algorithm deployed in the container; The embedded hardware platform establishes communication with the ROS master and slave machines of the plurality of second hosts; the second hosts are coupled with sensors, the second hosts propagate sensor data by publishing ROS topics, and the first algorithm running in the Ubuntu container on the embedded hardware platform receives the sensor data propagated by the ROS topics by subscribing to the ROS topics, thereby receiving and processing the sensor data; The process of establishing communication between the embedded hardware platform and the ROS master and slave machines of the multiple second hosts includes: Open a first terminal in the embedded hardware platform, configure network properties to map the IP and port of the embedded hardware platform to the Ubuntu operating system container, and start the Ubuntu operating system container; Open a second terminal in the embedded hardware platform, start a ROS host node in the second terminal, play a ROS data packet, and publish a ROS topic; open a third terminal in the Ubuntu operating system container, and when the third terminal receives the ROS topic list published by the embedded hardware platform, it indicates that a communication link has been established between the embedded hardware platform and the Ubuntu operating system container; Open the fourth terminal in the second host that communicates with the ROS master and slave on the embedded hardware platform, play the ROS data packet, and publish the ROS topic; enter and view the ROS topic list in the third terminal of the Ubuntu operating system container. When the third terminal receives the ROS topic published by the second host, it means that the second host has established a communication link with the Ubuntu operating system container on the embedded hardware platform.

2. The cross-architecture, cross-system, and cross-platform software deployment method according to claim 1, characterized in that: The first algorithm is selected from a filtering estimation algorithm, an optimization estimation algorithm, an image feature extraction algorithm and a mileage estimation algorithm; the filtering estimation algorithm includes a Kalman filter and an extended Kalman filter; the optimization estimation algorithm includes a Gauss-Newton optimization algorithm and a LM optimization algorithm; the image feature extraction algorithm includes a scale-invariant feature extraction algorithm SIFT and a local feature extraction algorithm ORB; the mileage estimation algorithm includes a fast and robust lidar-inertial odometer FastLIO2 and a monocular visual inertial navigation VINSMono.

3. The cross-architecture, cross-system, and cross-platform software deployment method according to claim 1 or 2, characterized in that: Deploy an ARM architecture virtual machine on the first host, install a container on the ARM architecture virtual machine, and configure a container of an Ubuntu operating system; Deploy the first algorithm in the container and compile it including: Generate an ARM image on an ARM embedded hardware platform with the Ubuntu operating system; The first host of x86 architecture pulls the ARM image by specifying the architecture attribute; Configure and run the cross-platform emulator on the first host using the QEMU tool; Create an Ubuntu operating system container from the pulled ARM image on the first host, start it and enter the container; A first algorithm is deployed in a container.

4. The cross-architecture, cross-system, and cross-platform software deployment method according to claim 1, characterized in that: Installing a container deployment environment on the embedded hardware platform to be migrated, copying the container of the Ubuntu operating system on the first host to the container deployment environment of the embedded hardware platform, and directly running the first algorithm of the container deployment includes: Submitting the Ubuntu operating system container in which the first algorithm is deployed and compiled to the ARM image for storage on the first host; Load the ARM image on the embedded hardware platform, enter the Ubuntu operating system container, start the Ubuntu operating system container and directly run the first algorithm in the Ubuntu operating system container.

5. An electronic device comprising a memory and a processor, characterized in that: The memory is coupled to the processor; wherein the memory is used to store program data, and the processor is used to execute the program data to implement the cross-architecture, cross-system, and cross-platform software deployment method described in any one of claims 1-4 above.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the cross-architecture, cross-system, and cross-platform software deployment method described in any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Android running environment realization method based on non-virtualized system architecture

    CN108762815A

  • Container interface architecture system supporting various airborne embedded operating systems

    CN114995811A

  • Cross-platform software adaptation method based on container technology

    CN115599499A

  • Cross-platform neural network model deployment method

    CN115857966A

  • Heterogeneous software application development system and method

    CN116578280A