CN113094152A - Container-based service robot application construction and management system and method - Google Patents

Container-based service robot application construction and management system and method Download PDF

Info

Publication number
CN113094152A
CN113094152A CN202110511111.9A CN202110511111A CN113094152A CN 113094152 A CN113094152 A CN 113094152A CN 202110511111 A CN202110511111 A CN 202110511111A CN 113094152 A CN113094152 A CN 113094152A
Authority
CN
China
Prior art keywords
application
robot
container
mirror image
management
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
Application number
CN202110511111.9A
Other languages
Chinese (zh)
Inventor
徐驰
谭强
孙善宝
于�玲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong New Generation Information Industry Technology Research Institute Co Ltd
Original Assignee
Shandong New Generation Information Industry Technology Research Institute Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shandong New Generation Information Industry Technology Research Institute Co Ltd filed Critical Shandong New Generation Information Industry Technology Research Institute Co Ltd
Priority to CN202110511111.9A priority Critical patent/CN113094152A/en
Publication of CN113094152A publication Critical patent/CN113094152A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45575Starting, stopping, suspending or resuming virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Manipulator (AREA)

Abstract

The invention discloses a service robot application construction and management system and method based on a container, and belongs to the technical field of computers. The container-based service robot application construction and management system comprises a robot interaction terminal and a server side, wherein the robot interaction terminal comprises a touch screen and a terminal host and is provided with application management services; and the server side is provided with an application warehouse and robot management services. The container-based service robot application construction and management system solves the GUI display problem in the container by utilizing the resource isolation and lightweight property of the Docker container, can remotely manage, install and run robot applications in batches, and has good popularization and application values.

Description

Container-based service robot application construction and management system and method
Technical Field
The invention relates to the technical field of computers, and particularly provides a service robot application construction and management system and method based on a container.
Background
With the improvement of living standard of people, the service robot is more widely applied. In different application scenes, the robot needs to install and run corresponding application programs to provide services, and a user not only needs to directly interact with the robot through a graphical interface or voice, but also needs to manage the robot at the cloud. At present, the service robot generally uses an Android system for application deployment, which limits that a robot operating system and robot application must be adapted based on the Android, and has limitations for realizing cloud-edge cooperation and cloud-native application.
The container technology enables the resources of the system to run together in a virtualization mode without mutual influence, the system resources can be reasonably and independently used, the container technology can conveniently support a cloud native architecture, and remote scheduling of applications is achieved. Meanwhile, the container technology is applied to human-computer interaction, and the problem of outputting an application graphical interface in the container needs to be solved.
Disclosure of Invention
The technical task of the invention is to provide a container-based service robot application construction and management system which solves the problem of GUI display in a container by using the resource isolation and lightweight characteristics of a Docker container and can remotely manage, install and run robot applications in batch.
A further technical task of the present invention is to provide a container-based service robot application building and management method.
In order to achieve the purpose, the invention provides the following technical scheme:
a service robot application construction and management system based on a container comprises a robot interaction terminal and a server side, wherein the robot interaction terminal comprises a touch screen and a terminal host and is provided with application management services; and the server side is provided with an application warehouse and robot management services.
Preferably, the terminal host is provided with an ARM architecture operating system and a graphical interface.
Preferably, the end host operating system installs the X11 service and the Docker container service environment.
Preferably, the application repository is implemented based on Docker Registry, and provides application image storage and management services.
A container-based service robot application construction and management method, wherein the application construction method comprises the following steps:
s1, constructing a robot application program;
s2, constructing a Dockerfile script;
s3, constructing an application mirror image;
s4, pushing the application mirror image to an application warehouse;
s5, starting a target application mirror image;
the application management method comprises the following steps:
sa, judging the online state of the robot;
and Sb, managing the designated robot application and supporting batch management of a plurality of robot environments.
Preferably, in step S1, the robot application builds a desktop application across operating systems based on the Electron framework, with a GUI operation interface embedded therein. And packaging the robot application program, generating a target application program and having a specified program execution entrance.
Preferably, the constructing the Dockerfile script in the step S2 includes the following steps:
s21, initializing a Dockerfile file, designating a basic system environment required by the robot application, and writing the Dockerfile into the Dockerfile;
s22, analyzing system environment dependence required by the robot application, wherein the system environment dependence comprises system environment variables, system dependence components and a system environment shared directory; for the dependency of the environment variable, an 'ENV' command is added in the Dockerfile file, and the dependent environment variable is set; for the system dependent components, adding a RUN command in the Dockerfile file, setting the system dependent components needing to be installed, and adding and installing Chinese coding dependent components.
S23, adding a 'COPY' command in the Dockerfile file, and copying the robot target application program to a target application mirror image;
s24, adding a 'CMD' command in the Dockerfile file, designating an execution inlet of the target application program, and automatically starting the target application when the mirror image is started.
Preferably, when the application image is built in step S3, the application image is built using a Dockerfile, the Dockerfile file is packaged into an application container image by a dockerbuild command, the robot interaction application program is packaged into the container image, and the name and version of the robot application image are set.
Preferably, in step S4, the application image is pushed to the application repository, and the Docker Registry receives the image for storage.
In step S5, the starting of the target application image includes the following processes:
1) the application management service initializes a main page, connects an application repository, acquires application mirror image information, and displays an application list on a terminal screen;
2) selecting a target application on a terminal screen;
3) the application management service inquires a target application mirror image in a Docker environment of a terminal host operating system, and if the target application mirror image does not exist in the terminal host operating system, the target application mirror image is pulled to the terminal system in an application warehouse;
4) setting an output parameter of an application program GUI graphical interface in a target application mirror image, specifying a DISPLAY environment variable served by a terminal host X11, specifying directory mapping served by the terminal host and an application container X11, and sharing unix sockets served by X11 by the application container and the terminal host;
5) starting a target application mirror image by using a docker run command, establishing connection between an X11 client in an application container and an X11 server of a terminal host, and outputting a GUI (graphical user interface) graphical interface in the container to an operating system of the terminal host;
6) and after exiting the current application, stopping running the application mirror image container, and returning to the application management service main page.
Preferably, in step Sa, the robot management service is connected to a Docker container environment at the robot end, and determines the online state of the robot according to the Docker container environment connection state.
The method comprises the following specific steps of specifying robot application management and supporting batch management of a plurality of robot environments:
1) the robot management service is connected to the designated robot container environment according to the robot IP address;
2) remotely operating DockerAPI for the specified robot, and checking the installed application and the running application;
3) for the robots selected in batch, sequentially and remotely operating DockerAPI, and pulling and installing new applications from an application warehouse;
4) and for the robots selected in batch, sequentially and remotely operating DockeraPI, and starting the specified mirror image, thereby starting the robot application.
Compared with the prior art, the container-based service robot application construction and management method has the following outstanding beneficial effects: the invention relates to a construction and management method of a service robot application based on a container, wherein the robot service application is packaged by an Electron frame, packaged into an application mirror image by using Dockerfile, and uploaded to an application mirror image warehouse; the robot terminal is provided with a Docker container environment, application images are operated in a container mode, the container GUI is output to the robot terminal through the X11 server side to be displayed, the problem of GUI display in the container can be solved by utilizing the resource isolation and lightweight property of the Docker container, the robot application can be remotely managed, installed and operated in batches, and the method has good popularization and application values.
Drawings
FIG. 1 is an architecture of a container-based service robot application build and management system of the present invention;
fig. 2 is a schematic diagram of application display output of the container-based service robot application construction and management method according to the present invention.
Detailed Description
The container-based service robot application construction and management system and method of the present invention will be described in further detail with reference to the accompanying drawings and examples.
Examples
As shown in fig. 1, the system for constructing and managing a container-based service robot application of the present invention includes a robot interactive terminal and a server, wherein the robot interactive terminal includes a touch screen and a terminal host, and is provided with an application management service; and the server side is provided with an application warehouse and robot management services.
The terminal host is provided with an ARM architecture operating system and a graphical interface. The end-host operating system installs the X11 service and the Docker container service environment. The application warehouse is realized based on Docker Registry, and provides application image storage and management services.
As shown in fig. 2, the application construction and management method of the container-based service robot of the present invention includes the following steps:
and S1, constructing the robot application program.
The robot application program builds a desktop application of a cross-operating system based on an Electron framework, and a GUI operation interface is embedded in the desktop application. And packaging the robot application program, generating a target application program and having a specified program execution entrance.
S2, constructing a Dockerfile script, comprising the following steps:
s21, initializing a Dockerfile file, designating a basic system environment required by the robot application, and writing the Dockerfile into the Dockerfile;
s22, analyzing system environment dependence required by the robot application, wherein the system environment dependence comprises system environment variables, system dependence components and a system environment shared directory; for the dependency of the environment variable, an 'ENV' command is added in the Dockerfile file, and the dependent environment variable is set; for the system dependent components, adding a RUN command in the Dockerfile file, setting the system dependent components needing to be installed, and adding and installing Chinese coding dependent components.
S23, adding a 'COPY' command in the Dockerfile file, and copying the robot target application program to a target application mirror image;
s24, adding a 'CMD' command in the Dockerfile file, designating an execution inlet of the target application program, and automatically starting the target application when the mirror image is started.
And S3, constructing an application image. The method comprises the steps of constructing an application mirror image by using Docker file, packaging the Docker file into an application container mirror image through a Docker library command, packaging a robot interaction application program into the container mirror image, and setting the name and the version of the robot application mirror image.
And S4, pushing the application image to the application repository. And pushing the application mirror image to an application warehouse, and storing the mirror image received by the Docker Registry.
And S5, starting the target application image.
The method comprises the following steps:
1) the application management service initializes a main page, connects an application repository, acquires application mirror image information, and displays an application list on a terminal screen;
2) selecting a target application on a terminal screen;
3) the application management service inquires a target application mirror image in a Docker environment of a terminal host operating system, and if the target application mirror image does not exist in the terminal host operating system, the target application mirror image is pulled to the terminal system in an application warehouse;
4) setting an output parameter of an application program GUI graphical interface in a target application mirror image, specifying a DISPLAY environment variable served by a terminal host X11, specifying directory mapping served by the terminal host and an application container X11, and sharing unix sockets served by X11 by the application container and the terminal host;
5) starting a target application mirror image by using a dockerrun command, establishing connection between an X11 client in an application container and an X11 server of a terminal host, and outputting a GUI (graphical user interface) graphical interface in the container to an operating system of the terminal host;
6) and after exiting the current application, stopping running the application mirror image container, and returning to the application management service main page.
The application management method comprises the following steps:
sa, judging the online state of the robot, connecting the robot management service to a Docker container environment of the robot end, and judging the online state of the robot according to the connection state of the Docker container environment.
Sb, managing the specified robot application, supporting batch management of a plurality of robot environments, and specifically comprising the following processes:
1) the robot management service is connected to the designated robot container environment according to the robot IP address;
2) remotely operating DockerAPI for the specified robot, and checking the installed application and the running application;
3) for the robots selected in batch, sequentially and remotely operating DockerAPI, and pulling and installing new applications from an application warehouse;
4) and for the robots selected in batch, sequentially and remotely operating DockeraPI, and starting the specified mirror image, thereby starting the robot application.
The above-described embodiments are merely preferred embodiments of the present invention, and general changes and substitutions by those skilled in the art within the technical scope of the present invention are included in the protection scope of the present invention.

Claims (10)

1. A service robot application building and management system based on containers is characterized in that: the system comprises a robot interaction terminal and a server side, wherein the robot interaction terminal comprises a touch screen and a terminal host and is provided with application management service; and the server side is provided with an application warehouse and robot management services.
2. The container-based services robot application building and management system of claim 1, characterized by: and the terminal host is provided with an ARM architecture operating system and a graphical interface.
3. The container-based services robot application building and management system of claim 2, characterized by: the end-host operating system installs the X11 service and the Docker container service environment.
4. The container-based services robot application building and management system of claim 3, characterized by: the application warehouse is realized based on Docker Registry, and provides application image storage and management service.
5. A service robot application construction and management method based on a container is characterized in that: the application construction method comprises the following steps:
s1, constructing a robot application program;
s2, constructing a Dockerfile script;
s3, constructing an application mirror image;
s4, pushing the application mirror image to an application warehouse;
s5, starting a target application mirror image;
the application management method comprises the following steps:
sa, judging the online state of the robot;
and Sb, managing the designated robot application and supporting batch management of a plurality of robot environments.
6. The container-based service robot application building and managing method of claim 5, wherein: in step S1, the robot application builds a desktop application across operating systems based on the Electron framework, and embeds a GUI operation interface.
7. The container-based service robot application building and managing method of claim 6, wherein: the construction of the Dockerfile script in the step S2 includes the following steps:
s21, initializing a Dockerfile file, designating a basic system environment required by the robot application, and writing the Dockerfile into the Dockerfile;
s22, analyzing system environment dependence required by the robot application, wherein the system environment dependence comprises system environment variables, system dependence components and a system environment shared directory;
s23, adding a 'COPY' command in the Dockerfile file, and copying the robot target application program to a target application mirror image;
s24, adding a 'CMD' command in the Dockerfile file, designating an execution inlet of the target application program, and automatically starting the target application when the mirror image is started.
8. The container-based service robot application building and managing method of claim 7, wherein: when the application mirror image is built in the step S3, the application mirror image is built by using a Dockerfile, the Dockerfile is packaged into an application container mirror image by a dockerbiuld command, the robot interaction application program is packaged into the container mirror image, and the name and version of the robot application mirror image are set.
9. The container-based service robot application building and managing method of claim 8, wherein: in step S4, the application image is pushed to the application repository, and the docker registry receives the image and stores the image.
10. The container-based service robot application building and managing method of claim 9, wherein: in the step Sa, the robot management service is connected to a Docker container environment at the robot end, and the online state of the robot is determined according to the Docker container environment connection state.
CN202110511111.9A 2021-05-11 2021-05-11 Container-based service robot application construction and management system and method Pending CN113094152A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110511111.9A CN113094152A (en) 2021-05-11 2021-05-11 Container-based service robot application construction and management system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110511111.9A CN113094152A (en) 2021-05-11 2021-05-11 Container-based service robot application construction and management system and method

Publications (1)

Publication Number Publication Date
CN113094152A true CN113094152A (en) 2021-07-09

Family

ID=76665085

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110511111.9A Pending CN113094152A (en) 2021-05-11 2021-05-11 Container-based service robot application construction and management system and method

Country Status (1)

Country Link
CN (1) CN113094152A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024124886A1 (en) * 2022-12-16 2024-06-20 广州翼辉信息技术有限公司 Industrial robot controller design method based on distributed security container architecture

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107888676A (en) * 2017-11-07 2018-04-06 上海电机学院 A kind of high in the clouds self-study environmental device based on micro services
CN108958794A (en) * 2017-05-23 2018-12-07 深圳先进技术研究院 A kind of Docker host, cloud robot system and its construction method based on Docker
KR20190106941A (en) * 2019-08-30 2019-09-18 엘지전자 주식회사 Method for controlling a docker in autonomous driving system and apparatus for the same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108958794A (en) * 2017-05-23 2018-12-07 深圳先进技术研究院 A kind of Docker host, cloud robot system and its construction method based on Docker
CN107888676A (en) * 2017-11-07 2018-04-06 上海电机学院 A kind of high in the clouds self-study environmental device based on micro services
KR20190106941A (en) * 2019-08-30 2019-09-18 엘지전자 주식회사 Method for controlling a docker in autonomous driving system and apparatus for the same

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
温尚敏: "支持云机器人的软件平台研究与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024124886A1 (en) * 2022-12-16 2024-06-20 广州翼辉信息技术有限公司 Industrial robot controller design method based on distributed security container architecture

Similar Documents

Publication Publication Date Title
US20140082511A1 (en) Method and system for emulating desktop software applications in a mobile communication network
CN111367534B (en) Service arrangement method and system based on application environment
US10282185B2 (en) Method and apparatus for firmware virtualization
WO2011044692A1 (en) System and method for managing applications for multiple computing endpoints and multiple endpoint types
CN113779477A (en) Assembly line publishing method and system based on PaaS cloud platform
US20040254978A1 (en) System and method of remotely accessing a computer system to initiate remote mainteneance and management accesses on network computer systems
CN115421740A (en) Deployment method and device of cloud native application
CN111897551B (en) Platform and method for rapidly cloning software environment in cloud environment
JP7048663B2 (en) Code execution methods, devices, rendering devices, storage media, and programs
CN110647470A (en) Test method, manufacturing method, device, medium, and electronic apparatus
CN117112122A (en) Cluster deployment method and device
CN113094152A (en) Container-based service robot application construction and management system and method
CN113360160A (en) Method and device for deploying application, electronic equipment and storage medium
CN112835568A (en) Project construction method and device
JP7010562B2 (en) Wrapping method, registration method, device, rendering device, and program
CN111782231B (en) Service deployment method and device
CN113253887A (en) Application issuing method, computer device and readable storage medium
CN114860401B (en) Heterogeneous cloud desktop scheduling system, heterogeneous cloud desktop scheduling method, heterogeneous cloud desktop scheduling service system, heterogeneous cloud desktop scheduling device and medium
CN114579206B (en) Method, device, equipment and medium for dynamically loading application program
CN116155978A (en) Multi-registry adaptation method, device, electronic equipment and storage medium
CN112558985B (en) Sub-application deployment method and device
CN114860333A (en) Service arranging method and electronic equipment
TWI712293B (en) System and method for providing serverless service
CN114327770A (en) Container cluster management system and method
CN112083939A (en) Batch upgrading method, device, system and medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210709