CN113076128A - Method and device for robot configuration, electronic equipment and storage medium - Google Patents

Method and device for robot configuration, electronic equipment and storage medium Download PDF

Info

Publication number
CN113076128A
CN113076128A CN202010006582.XA CN202010006582A CN113076128A CN 113076128 A CN113076128 A CN 113076128A CN 202010006582 A CN202010006582 A CN 202010006582A CN 113076128 A CN113076128 A CN 113076128A
Authority
CN
China
Prior art keywords
resource file
robot
target
module
data request
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.)
Granted
Application number
CN202010006582.XA
Other languages
Chinese (zh)
Other versions
CN113076128B (en
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.)
Beijing Orion Star Technology Co Ltd
Original Assignee
Beijing Orion Star Technology 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 Beijing Orion Star Technology Co Ltd filed Critical Beijing Orion Star Technology Co Ltd
Priority to CN202010006582.XA priority Critical patent/CN113076128B/en
Publication of CN113076128A publication Critical patent/CN113076128A/en
Application granted granted Critical
Publication of CN113076128B publication Critical patent/CN113076128B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Manipulator (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application provides a method and a device for robot configuration, electronic equipment and a storage medium, wherein a server comprises a plurality of resource files, each resource file corresponds to a corresponding functional module respectively, and a data request sent by a robot is received, wherein the data request carries an identifier of a target functional module to be configured in the robot; acquiring a resource file corresponding to a target function module to be configured according to the identification of the target function module in the data request to obtain a target resource file; and packaging the target resource file into a resource file package, and sending the resource file package to the robot. The server maintains the resource files corresponding to the functional modules, a complete configuration file does not need to be maintained for each form of robot, and the same functional module in the robots with different forms only needs to maintain one resource file, so that the space required for storing the configuration file is reduced.

Description

Method and device for robot configuration, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for robot configuration, an electronic device, and a storage medium.
Background
With the development of computer technology, robots are gradually popularized. The robots have different forms, and the scenes of the robots with different forms are different.
In the prior art, a complete configuration file is maintained for each form of robot, and the configuration file includes all resource files of each functional module in the robot. When the robot is configured, a request needs to be sent to the server according to the form type of the robot, and the server selects a corresponding resource file according to the form type of the robot and sends the resource file to the robot. And the robot analyzes the complete configuration file to obtain each resource file and loads the resource files.
The inventor finds in research that maintaining a complete configuration file for each modality of robot in a server requires a large amount of storage space.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method, an apparatus, an electronic device, and a storage medium for robot configuration, so as to reduce the space required for maintaining a configuration file. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a method for robot configuration, which is applied to a robot end, and the method includes:
when the robot resource file is configured, sending a data request to a server, wherein the data request carries an identifier of a target function module to be configured in the robot;
receiving a resource file package corresponding to the data request returned by the server, wherein the resource file package comprises target resource files corresponding to the target function modules respectively;
and configuring corresponding target function modules in the robot by using the target resource files.
In a possible implementation manner, after the receiving a resource file package corresponding to the data request returned by the server, the method further includes:
compiling the target resource file into an APK format file;
the configuring the corresponding target function module in the robot by using the target resource file comprises the following steps:
and configuring a corresponding target function module in the robot by using the APK format file corresponding to the target resource file.
In a possible embodiment, the configuring, by using the target resource file, a corresponding target function module in the robot includes:
updating the target resource file into an execution resource file of the robot, wherein the execution resource file is a resource file loaded when a target function module of the robot runs;
analyzing each execution resource file, and determining a target function module corresponding to each execution resource file;
integrating the execution resource files corresponding to the target function modules to respectively obtain a resource file set of each target function module;
and configuring each target function module by using each resource file set.
In a possible embodiment, the updating the target resource file into the execution resource file of the robot includes:
and aiming at the subfiles with the same functions in the target resource files, updating the subfiles in the target resource file with the highest priority to the execution resource file of the robot according to the priority of each target resource file.
In one possible embodiment, said configuring each of said target function modules with each of said resource file sets comprises:
starting a functional module corresponding to each resource file set so as to register the started functional module;
and sending the corresponding resource file set to the registered functional module so that the functional module analyzes and runs the corresponding resource file set.
In a second aspect, an embodiment of the present application provides a method for robot configuration, which is applied to a server, where the server includes a plurality of resource files, and each resource file corresponds to a corresponding function module, and the method includes:
receiving a data request sent by a robot, wherein the data request carries an identifier of a target function module to be configured in the robot;
acquiring a resource file corresponding to the target function module to be configured according to the identification of the target function module in the data request to obtain a target resource file;
and packaging the target resource file into a resource file package, and sending the resource file package to the robot.
In one possible embodiment, the method further comprises:
acquiring a new resource file corresponding to any functional module identifier;
and replacing the existing resource file corresponding to the functional module identifier by using the new resource file.
In a third aspect, an apparatus for robot configuration is provided in an embodiment of the present application, and is applied to a robot end, the apparatus includes:
the system comprises a data request sending module, a data processing module and a data processing module, wherein the data request sending module is used for sending a data request to a server when the robot resource file is configured, and the data request carries an identifier of a target function module to be configured in the robot;
a resource file receiving module, configured to receive a resource file package corresponding to the data request returned by the server, where the resource file package includes target resource files corresponding to the target function modules, respectively;
and the resource file configuration module is used for configuring the corresponding target function module in the robot by using the target resource file.
In a possible embodiment, the apparatus further comprises:
the file format compiling module is used for compiling the target resource file into an APK (android package) format file;
the resource file configuration module is specifically configured to configure a corresponding target function module in the robot by using an APK format file corresponding to the target resource file.
In one possible embodiment, the resource file configuration module includes:
the execution resource file updating submodule is used for updating the target resource file into an execution resource file of the robot, wherein the execution resource file is a resource file loaded when a target function module of the robot runs;
the execution resource file analysis sub-module is used for analyzing each execution resource file and determining a target function module corresponding to each execution resource file;
the execution resource file integration sub-module is used for integrating the execution resource files corresponding to the target function modules respectively to obtain resource file sets of the target function modules respectively;
and the target function module configuration submodule is used for configuring each target function module by using each resource file set.
In a possible implementation manner, the execution resource file update sub-module is specifically configured to: and aiming at the subfiles with the same functions in the target resource files, updating the subfiles in the target resource file with the highest priority to the execution resource file of the robot according to the priority of each target resource file.
In a possible implementation manner, the target function module configuration sub-module is specifically configured to: starting a functional module corresponding to each resource file set so as to register the started functional module; and sending the corresponding resource file set to the registered functional module so that the functional module analyzes and runs the corresponding resource file set.
In a fourth aspect, an embodiment of the present application provides an apparatus for robot configuration, which is applied to a server, where the server includes a plurality of resource files, and each resource file corresponds to a corresponding function module, and the apparatus includes:
the data request receiving module is used for receiving a data request sent by the robot, wherein the data request carries an identifier of a target function module to be configured in the robot;
the resource file determining module is used for acquiring a resource file corresponding to the target function module to be configured according to the identification of the target function module in the data request to obtain a target resource file;
and the resource file sending module is used for packaging the target resource file into a resource file packet and sending the resource file packet to the robot.
In a possible embodiment, the apparatus further comprises:
the resource file updating module is used for acquiring a new resource file corresponding to any functional module identifier; and replacing the existing resource file corresponding to the functional module identifier by using the new resource file.
In a fifth aspect, an embodiment of the present application provides an electronic device, including a processor and a memory;
the memory is used for storing a computer program;
the processor is used for realizing any one of the methods applied to the robot end and used for robot configuration when executing the program stored in the memory.
In a sixth aspect, an embodiment of the present application provides an electronic device, including a processor and a memory;
the memory is used for storing a computer program;
the processor is used for implementing any one of the methods for robot configuration applied to the server when executing the program stored in the memory.
In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and the computer program, when executed by a processor, implements any one of the above methods for robot configuration applied to a robot end.
In an eighth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements any of the above methods for robot configuration applied to a server.
According to the method, the device, the electronic equipment and the storage medium for robot configuration, a server comprises a plurality of resource files, each resource file corresponds to a corresponding function module, and a data request sent by a robot is received, wherein the data request carries an identifier of a target function module to be configured in the robot; acquiring a resource file corresponding to a target function module to be configured according to the identification of the target function module in the data request to obtain a target resource file; and packaging the target resource file into a resource file package, and sending the resource file package to the robot. The server maintains the resource files corresponding to the functional modules, a complete configuration file does not need to be maintained for each form of robot, and the same functional module in the robots with different forms only needs to maintain one resource file, so that the space required for storing the configuration file is reduced. Of course, not all advantages described above need to be achieved at the same time in the practice of any one product or method of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a method for robot configuration applied to a server according to an embodiment of the present application;
fig. 2 is a first schematic diagram of a method for robot configuration applied to a robot end according to an embodiment of the present application;
fig. 3a is a second schematic diagram of a method for robot configuration applied to a robot end according to an embodiment of the present application;
fig. 3b is a third schematic diagram of a method for robot configuration applied to a robot end according to an embodiment of the present application;
FIG. 4 is a diagram illustrating an overlay resource file according to an embodiment of the present application;
fig. 5 is a fourth schematic diagram of a method for robot configuration applied to a robot end according to an embodiment of the present application;
FIG. 6 is a schematic diagram of distributing resource files to functional modules according to an embodiment of the present application;
FIG. 7 is a schematic view of a robot configuration system according to an embodiment of the present application;
fig. 8a is a schematic diagram of an apparatus for robot configuration applied to a server according to an embodiment of the present application;
fig. 8b is a schematic diagram of an apparatus for robot configuration applied to a robot end according to an embodiment of the present application;
fig. 9 is a schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the prior art, a server maintains a complete configuration file for each form of robot, a large amount of storage space is needed, and the workload of updating the configuration file is large.
In view of this, an embodiment of the present application provides a method for robot configuration, which is applied to a server, where the server includes a plurality of resource files, and each resource file corresponds to a corresponding function module, referring to fig. 1, where the method includes:
and S11, receiving the data request sent by the robot, wherein the data request carries the identification of the target function module to be configured in the robot.
The method for robot configuration in the embodiment of the application is applied to the server, and therefore, the method can be specifically realized by the server. When the robot needs to perform resource configuration, a data request is sent to the server, where the data request carries an identifier of a target function module to be configured in the robot, and the identifier of the target function module to be configured is used to uniquely represent the target function module to be configured, for example, the function module may be a UI (User Interface) module, a visual module, a chassis module, and the like.
The server comprises a plurality of resource files, one resource file only corresponds to one functional module, and one functional module can correspond to one or more resource files. For example, the resource file "forward control file" corresponds to the function module "chassis module", the function module "chassis module" corresponds to the resource file "forward control file", the resource file "left turn control file", the resource file "right turn control file", and the like.
And S12, acquiring the resource file corresponding to the target function module to be configured according to the identification of the target function module in the data request, and acquiring the target resource file.
And maintaining a plurality of resource files in the server, wherein each resource file corresponds to a corresponding functional module. The corresponding relation between the resource file and the function module is set according to actual conditions, for example, the running control module of the sweeping robot corresponds to the resource file related to the running control, and the dust collector module of the sweeping robot corresponds to the resource file related to the suction control. And the server determines a resource file corresponding to the identification of the target function module in the data request as a target resource file.
For example, for robots of two forms, i.e., device a and device B, the UI module resources are the same, but device B has no chassis, device a has a chassis, and the user selects via the web interface to generate a data request, where the parameters in the data request are UI common and config a or B (indicating device a or device B), and the data request is sent to the server.
When the parameters in the data request are common and config is a, the server determines that the resource modules represented by the data request are a common UI module, a Navigation module and a Vision module, and selects the resource files corresponding to the three modules as target resource files.
When the parameters in the data request are common and config is B, the server determines that the resource modules indicated by the data request are a common UI module and a Vision module, and selects the resource files corresponding to the two modules as target resource files.
And S13, packaging the target resource file into a resource file package, and sending the resource file package to the robot.
The server sends a resource file package of the target resource file to the robot, for example, the server sends a streaming address of the target resource file to the robot, so that the robot downloads the target resource file according to the streaming address of the target resource file. The resource file package can be packaged in advance, or can be packaged after receiving a data request. One resource file package may include only one target resource file, or may include a plurality of or all target resource files, the server may encapsulate each target resource file into one resource file package, and send each resource file package through multiple interactions with the robot, or encapsulate a plurality of or all target resource files into one resource file package, and send the resource file package through one interaction, all within the protection scope of the present application.
The inventor finds out in research that in practical situations, robots of different forms developed by the same company often have the same functional modules. For example, the resource files of the photographing unmanned aerial vehicle and the flight control module of the express unmanned aerial vehicle are the same, and the resource files of the UI modules of the secretary robot and the reception robot are the same. In the embodiment of the application, the server maintains the resource files corresponding to the functional modules, a complete configuration file does not need to be maintained for each form of robot, and the same functional module in the robots with different forms only needs to maintain one resource file, so that the space required for storing the configuration file is reduced.
When the configuration file of a certain functional module is updated, the resource file in the server needs to be updated, in a possible implementation, the method further includes:
step one, acquiring a new resource file corresponding to any functional module identifier.
And step two, replacing the existing resource file corresponding to the functional module identifier by using the new resource file.
When a certain functional module needs to be updated, a manager uploads a developed new resource file of the functional module to a server, and the server acquires the new resource file and replaces the resource file to be updated with the new resource file.
In the embodiment of the application, when the configuration file of a certain functional module is updated, a complete configuration file does not need to be issued for each robot containing the functional module in different forms, and only the resource file corresponding to the functional module is updated, so that the workload of updating the configuration file is greatly reduced.
The embodiment of the present application further provides a method for robot configuration, which is applied to a robot end, and with reference to fig. 2, the method includes:
and S21, when the robot resource file is configured, sending a data request to the server, wherein the data request carries the identifier of the target function module to be configured in the robot.
The method for configuring the robot according to the embodiment of the present application is applied to a robot end, and thus may be specifically implemented by a controller (or a processor) of the robot, and of course, may also be implemented by an electronic device connected to the robot, such as a personal computer or a smart phone. And when the robot needs to be subjected to resource file configuration, sending a data request carrying the identifier of the target function module to be configured in the robot to a server. For example, a user inputs configuration parameters, selects a function module to be configured, selects a robot type, and the like using a Web interface of the robot, and the robot generates a data request and transmits the data request to the server according to the input of the user.
And S22, receiving a resource file package corresponding to the data request returned by the server, wherein the resource file package comprises target resource files corresponding to the target function modules respectively.
The server comprises a plurality of resource files, and each resource file corresponds to a corresponding functional module. And the server determines a resource file corresponding to the identifier of the target function module in the data request as a target resource file, and returns the target resource file to the robot, wherein the target resource file is returned in the form of a resource file packet, and one resource file packet can only comprise one target resource file, and can also comprise a plurality of or all target resource files. And the robot receives the resource file packet returned by the server and analyzes the resource file packet to obtain a target resource file.
And S23, configuring the corresponding target function module in the robot by using the target resource file.
And configuring the corresponding target function module by using the target resource file according to the corresponding relation between the target resource file and the target function module. Each target resource file can be distributed to a corresponding target function module in the robot, so that the target function module analyzes and operates the corresponding target resource file. The function module only needs to analyze the corresponding target resource file, and management of the function module is facilitated.
In the embodiment of the application, the server maintains the resource files corresponding to the functional modules, a complete configuration file does not need to be maintained for each form of robot, and the same functional module in the robots with different forms only needs to maintain one resource file, so that the space required for storing the configuration file is reduced.
In a possible implementation manner, referring to fig. 3a, after receiving a resource file package corresponding to a data request returned by a server, the method further includes:
s31, compiling the target resource file into a file in an APK (Android application package) format.
The target resource file is compiled into the file in the APK format, the file in the APK format is not easy to change, the safety is high, and the file in the APK format can be analyzed and verified whether the file is complete or not through the APK, so that the integrity is guaranteed.
The above configuring a corresponding target function module in the robot by using the target resource file includes:
and configuring the corresponding target function module in the robot by using the APK format file corresponding to the target resource file.
In the embodiment of the application, the format of the target resource file is compiled into the APK standard format, so that the safety and the integrity are guaranteed.
In a possible implementation manner, referring to fig. 3b, the configuring the corresponding target function module in the robot by using the target resource file includes:
s231, the target resource file is updated to an execution resource file of the robot, wherein the execution resource file is a resource file loaded when a target function module of the robot runs.
The execution resource file refers to a resource file loaded when the functional module of the robot runs. In the robot, the corresponding execution resource file is updated with the target resource file. For example, if the target resource file is a resource file related to the driving control, the target resource file is used to overwrite the resource file related to the driving control in the execution resource file. In some cases, for example, in the case of initial loading or data loss, there may be no execution resource file in the robot, and in this case, the target resource file may be directly saved as the execution resource file of the target function module corresponding to the target resource file.
S232, analyzing each execution resource file, and determining a target function module corresponding to each execution resource file.
In implementation, each execution resource file is analyzed to obtain a designated field of each execution resource file, where the designated field is used to identify the execution resource file, and specifically may be an ID or a name of the execution resource file. And respectively determining target function modules corresponding to the execution resource files according to the corresponding relation between the execution resource files and the function modules. The corresponding relationship between the execution resource file and the function module is set according to the actual function of the function module, for example, the function module: the "UI module" corresponds to the execution resource file: "user interface", function module: the 'Navigation module' correspondingly executes the resource file: "running control" and the like. In addition, the analysis of each execution resource file may also include verifying the integrity of each execution resource file.
And S233, integrating the execution resource files corresponding to the target function modules to respectively obtain the resource file sets of the target function modules.
For example, the execution resource files corresponding to the same target function module may be integrated into a resource file set, and the resource file set includes an execution resource file 1, an execution resource file 2, an execution resource file 3, and an execution resource file 4, where the execution resource file 1 and the execution resource file 3 correspond to the target function module 1, and the execution resource file 2 and the execution resource file 4 correspond to the target function module 2, the execution resource file 1 and the execution resource file 3 are integrated into a resource file set (corresponding to the target function module 1), and the execution resource file 2 and the execution resource file 4 are integrated into a resource file set (corresponding to the target function module 2).
In some cases, a functional module in the robot may correspond to only one execution resource file, and in such a case, the step of integrating the execution resource files corresponding to the functional module may be omitted.
And S234, configuring each target function module by using each resource file set.
And respectively distributing each resource file set to the corresponding target function module so that each target function module analyzes and operates the corresponding resource file.
In the embodiment of the application, the execution resource files corresponding to the target function modules are integrated into a resource file set, so that the distribution and management of the resource files are facilitated.
In a possible embodiment, the updating the target resource file to the execution resource file of the robot includes: and aiming at the subfiles with the same functions in each target resource file, updating the subfiles in the target resource file with the highest priority to the execution resource file of the robot according to the priority of each target resource file. Wherein, the priority of each target resource file represents the loading sequence of each target resource file.
The priority of the resource file is preset, and can be set by a developer according to the loading requirement of the resource file. And updating the subfiles with the highest priority to the execution resource file of the robot aiming at the subfiles with the same function in each target resource file according to the priority of the target resource file. The loading sequence of the subfiles with different functions in each target resource file is not specifically specified, and the subfiles can be updated sequentially according to the sequence from high priority to low priority, or can be updated according to a random sequence or a sequence defined by the subfiles. The priority of the resource file may be recorded in a preset field of the resource file.
For example, the resource file a includes a function 1 subfile, a function 2 subfile and a function 4 subfile, the resource file B includes a function 1 subfile, a function 2 subfile and a function 3 subfile, and the priority of the resource file a is higher than that of the resource file B, in the process of updating the execution resource file, the function 1 subfile, the function 2 subfile, the function 4 subfile and the function 3 subfile of the resource file B in the resource file a are updated into the execution resource file, and the resource file B includes the function 1 subfile and the function 2 subfile without being updated into the execution resource file. The function module implements a corresponding function when executing the function subfile, for example, the function module: the navigation module realizes a left turn function when executing the left turn subfile, and the function module comprises the following steps: the navigation module realizes a right turn function and the like when executing the right turn sub-file.
The execution resource file may be managed by CoreService. Optionally, the process of executing the update of the resource file may specifically be as shown in fig. 4, where a system interface is called by CoreService to obtain a target resource file. And acquiring the ID of each target resource file, wherein the IDs of different target resource files are different. And judging whether the target resource file is a system resource file, wherein the non-system resource file, such as a log file and the like, does not need to be updated into the execution resource file. In each target resource file belonging to the system resource file, for subfiles with the same name (subfiles with the same name have the same function), according to the priority of the target resource file, the ID of the target resource file with the highest priority is determined as the target ID. And for the subfiles with the same name, performing Overlay (covering) on the execution resource file by using the subfile corresponding to the target ID. For subfiles with different names, the loading sequence is not specifically specified, and the subfiles can be updated sequentially according to the priority from high to low, or can be updated according to a random sequence or a sequence defined by the subfiles.
In a possible implementation manner, referring to fig. 5, the configuring each target function module by using each resource file set includes:
s2341, starting the function module corresponding to each resource file set, so that the started function module is registered.
S2342, sending the corresponding resource file set to the registered function module, so that the function module analyzes and runs the corresponding resource file set.
In the embodiment of the application, a registration mechanism is adopted to uniformly manage each functional module, so that the management of each functional module is facilitated. Optionally, each functional module may be managed by CoreService. For example, as shown in fig. 6, CoreService is started, the execution resource files are analyzed by the CoreService, the execution resource files are integrated, and the integrated files are defined as a resource file set, for example, each execution resource file corresponding to the same functional module may be integrated into one resource file set, and an identifier may be set for each resource file set, where the identifier is used to determine the functional module corresponding to the resource file set. And starting the functional module corresponding to each resource file set. After the functional module is started, the functional module registers itself with the CoreService. Coreserver distributes a corresponding set of resource files to the registered functional modules. The service module parses the received resource file set to open the specified service/configuration.
An embodiment of the present application further provides a robot configuration system, referring to fig. 7, the system includes:
the robot system comprises a server 701 and a robot 702, wherein the robot 702 comprises a functional module, the server 701 comprises a plurality of resource files, and each resource file corresponds to a corresponding functional module;
the robot 702 is configured to send a data request to a server when configuring a robot resource file, where the data request carries an identifier of a target function module to be configured in the robot;
the server 701 is configured to receive a data request sent by a robot, where the data request carries an identifier of a target function module to be configured in the robot; acquiring a resource file corresponding to a target function module to be configured according to the identification of the target function module in the data request to obtain a target resource file; packaging the target resource file into a resource file package, and sending the resource file package to the robot;
the robot 702 is further configured to receive a resource file package corresponding to the data request returned by the server, where the resource file package includes target resource files corresponding to the target function modules, respectively; and configuring a corresponding target function module in the robot by using the target resource file.
In one possible embodiment, the robot 702 is further configured to: and compiling the target resource file into a file in an APK format.
In a possible implementation, the robot 702 is specifically configured to: updating the target resource file into an execution resource file of the robot, wherein the execution resource file is a resource file loaded when a target function module of the robot runs; analyzing each execution resource file, and determining a target function module corresponding to each execution resource file; integrating the execution resource files corresponding to the target function modules to respectively obtain a resource file set of each target function module; and configuring each target function module by using each resource file set.
In a possible implementation, the robot 702 is specifically configured to: and aiming at the contents with the same functions in each target resource file, updating the contents in the target resource file with the highest priority to the execution resource file of the robot according to the priority of each target resource file.
In a possible implementation, the robot 702 is specifically configured to: starting a functional module corresponding to each resource file set so as to register the started functional module; and sending the corresponding resource file set to the registered functional module so that the functional module analyzes and runs the corresponding resource file set.
In a possible implementation, the server 701 is further configured to: acquiring a new resource file corresponding to any functional module identifier; and replacing the existing resource file corresponding to the functional module identifier by using the new resource file.
The embodiment of the present application further provides an apparatus for robot configuration, which is applied to a robot end, and referring to fig. 8a, the apparatus includes:
a data request sending module 801, configured to send a data request to a server when a robot resource file is configured, where the data request carries an identifier of a target function module to be configured in the robot;
a resource file receiving module 802, configured to receive a resource file package corresponding to a data request returned by a server, where the resource file package includes target resource files corresponding to target function modules, respectively;
and the resource file configuration module 803 is used for configuring a corresponding target function module in the robot by using the target resource file.
In a possible embodiment, the above apparatus further comprises:
the file format compiling module is used for compiling the target resource file into an APK (android package) format file;
the resource file configuration module 803 is specifically configured to configure a corresponding target function module in the robot by using an APK format file corresponding to the target resource file.
In a possible implementation manner, the resource file configuration module 803 includes:
an execution resource file updating submodule, configured to update the target resource file into an execution resource file of the robot, where the execution resource file is a resource file loaded when a target function module of the robot runs;
the execution resource file analysis submodule is used for analyzing each execution resource file and determining a target function module corresponding to each execution resource file;
the execution resource file integration sub-module is used for integrating the execution resource files corresponding to the target function modules respectively to obtain resource file sets of the target function modules respectively;
and the target function module configuration submodule is used for configuring each target function module by utilizing each resource file set.
In a possible implementation manner, the execution resource file update sub-module is specifically configured to: and aiming at the subfiles with the same function in each target resource file, updating the subfile in the target resource file with the highest priority into the execution resource file of the robot according to the priority of each target resource file.
In a possible implementation manner, the target function module configuration submodule is specifically configured to: starting a functional module corresponding to each resource file set so as to register the started functional module; and sending the corresponding resource file set to the registered functional module so that the functional module analyzes and runs the corresponding resource file set.
An embodiment of the present application further provides a device for robot configuration, which is applied to a server, where the server includes a plurality of resource files, and each resource file corresponds to a corresponding functional module, referring to fig. 8b, the device includes:
a data request receiving module 811, configured to receive a data request sent by a robot, where the data request carries an identifier of a target function module to be configured in the robot;
a resource file determining module 812, configured to obtain a resource file corresponding to the target function module to be configured according to the identifier of the target function module in the data request, so as to obtain a target resource file;
the resource file transmitting module 813 encapsulates the target resource file into a resource file package, and transmits the resource file package to the robot.
In a possible embodiment, the above apparatus further comprises:
the resource file updating module is used for acquiring a new resource file corresponding to any functional module identifier; and replacing the existing resource file corresponding to the functional module identifier by using the new resource file.
An embodiment of the present application further provides an electronic device, including: a processor and a memory;
the memory is used for storing computer programs;
when the processor is used for executing the computer program stored in the memory, the following steps are realized:
when the robot resource file is configured, sending a data request to a server, wherein the data request carries an identifier of a target function module to be configured in the robot;
receiving a resource file package corresponding to the data request returned by the server, wherein the resource file package comprises target resource files corresponding to the target function modules respectively;
and configuring corresponding target function modules in the robot by using the target resource files.
Optionally, referring to fig. 9, the electronic device according to the embodiment of the present application further includes a communication interface 902 and a communication bus 904, where the processor 901, the communication interface 902, and the memory 903 complete communication with each other through the communication bus 904.
Optionally, when the processor is used to execute the computer program stored in the memory, any of the above methods for robot configuration applied to the robot end may also be implemented. In particular, the electronic device may be a robot.
An embodiment of the present application further provides an electronic device, including: a processor and a memory; the memory is used for storing computer programs; the processor is configured to implement any of the above methods for robot configuration applied to the server when executing the computer program stored in the memory. Specifically, the electronic device may be a server.
The communication bus mentioned in the electronic device may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a RAM (Random Access Memory) or an NVM (Non-Volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also a DSP (Digital Signal Processing), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
The embodiment of the application also provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements any of the above methods for robot configuration applied to a robot end.
The embodiment of the application also provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements any one of the above methods for robot configuration applied to a server.
It should be noted that, in this document, the technical features in the various alternatives can be combined to form the scheme as long as the technical features are not contradictory, and the scheme is within the scope of the disclosure of the present application. Relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the embodiments of the apparatus, the electronic device, and the storage medium, since they are substantially similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (10)

1. A method for robot configuration, applied to a robot end, the method comprising:
when the robot resource file is configured, sending a data request to a server, wherein the data request carries an identifier of a target function module to be configured in the robot;
receiving a resource file package corresponding to the data request returned by the server, wherein the resource file package comprises target resource files corresponding to the target function modules respectively;
and configuring corresponding target function modules in the robot by using the target resource files.
2. The method according to claim 1, wherein after receiving the resource file package corresponding to the data request returned by the server, the method further comprises:
compiling the target resource file into an APK format file;
the configuring the corresponding target function module in the robot by using the target resource file comprises the following steps:
and configuring a corresponding target function module in the robot by using the APK format file corresponding to the target resource file.
3. The method of claim 1, wherein said configuring a corresponding target function module in the robot using the target resource file comprises:
updating the target resource file into an execution resource file of the robot, wherein the execution resource file is a resource file loaded when a target function module of the robot runs;
analyzing each execution resource file, and determining a target function module corresponding to each execution resource file;
integrating the execution resource files corresponding to the target function modules to respectively obtain a resource file set of each target function module;
and configuring each target function module by using each resource file set.
4. The method of claim 3, wherein the updating the target resource file into an execution resource file of the robot comprises:
and aiming at the subfiles with the same functions in the target resource files, updating the subfiles in the target resource file with the highest priority to the execution resource file of the robot according to the priority of each target resource file.
5. The method of claim 3, wherein said configuring each said target function module with each said resource file set comprises:
starting a functional module corresponding to each resource file set so as to register the started functional module;
and sending the corresponding resource file set to the registered functional module so that the functional module analyzes and runs the corresponding resource file set.
6. A method for robot configuration is applied to a server, the server comprises a plurality of resource files, and each resource file corresponds to a corresponding functional module, the method comprises the following steps:
receiving a data request sent by a robot, wherein the data request carries an identifier of a target function module to be configured in the robot;
acquiring a resource file corresponding to the target function module to be configured according to the identification of the target function module in the data request to obtain a target resource file;
and packaging the target resource file into a resource file package, and sending the resource file package to the robot.
7. An apparatus for robot configuration, applied to a robot end, the apparatus comprising:
the system comprises a data request sending module, a data processing module and a data processing module, wherein the data request sending module is used for sending a data request to a server when the robot resource file is configured, and the data request carries an identifier of a target function module to be configured in the robot;
a resource file receiving module, configured to receive a resource file package corresponding to the data request returned by the server, where the resource file package includes target resource files corresponding to the target function modules, respectively;
and the resource file configuration module is used for configuring the corresponding target function module in the robot by using the target resource file.
8. An apparatus for robot configuration, applied to a server, where the server includes a plurality of resource files, and each resource file corresponds to a corresponding function module, the apparatus includes:
the data request receiving module is used for receiving a data request sent by the robot, wherein the data request carries an identifier of a target function module to be configured in the robot;
the resource file determining module is used for acquiring a resource file corresponding to the target function module to be configured according to the identification of the target function module in the data request to obtain a target resource file;
and the resource file sending module is used for packaging the target resource file into a resource file packet and sending the resource file packet to the robot.
9. An electronic device comprising a processor and a memory;
the memory is used for storing a computer program;
the processor, when executing the program stored in the memory, implementing the method for robot configuration of any of claims 1-5 or 6.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method for robot configuration of any one of claims 1-5 or 6.
CN202010006582.XA 2020-01-03 2020-01-03 Method, device, electronic equipment and storage medium for robot configuration Active CN113076128B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010006582.XA CN113076128B (en) 2020-01-03 2020-01-03 Method, device, electronic equipment and storage medium for robot configuration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010006582.XA CN113076128B (en) 2020-01-03 2020-01-03 Method, device, electronic equipment and storage medium for robot configuration

Publications (2)

Publication Number Publication Date
CN113076128A true CN113076128A (en) 2021-07-06
CN113076128B CN113076128B (en) 2023-11-10

Family

ID=76608445

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010006582.XA Active CN113076128B (en) 2020-01-03 2020-01-03 Method, device, electronic equipment and storage medium for robot configuration

Country Status (1)

Country Link
CN (1) CN113076128B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116048617A (en) * 2022-08-16 2023-05-02 荣耀终端有限公司 Information acquisition method, device, chip, electronic equipment and medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103475744A (en) * 2013-09-30 2013-12-25 中国农业银行股份有限公司 Resource downloading method, device and system on basis of Web application
CN103795761A (en) * 2012-11-01 2014-05-14 腾讯科技(深圳)有限公司 Method and system for downloading online game data
CN105511889A (en) * 2016-01-15 2016-04-20 珠海金山网络游戏科技有限公司 General game version incremental updating system and method
CN106293732A (en) * 2016-08-03 2017-01-04 网易(杭州)网络有限公司 Resource loading method and device
CN106569856A (en) * 2016-11-02 2017-04-19 腾讯音乐娱乐(深圳)有限公司 Method and device of loading application view resource file
CN106708537A (en) * 2017-01-22 2017-05-24 百度在线网络技术(北京)有限公司 Application updating method and application updating device
CN107026884A (en) * 2016-02-02 2017-08-08 阿里巴巴集团控股有限公司 Acquisition methods, client, server and the system of resource file
CN107729041A (en) * 2017-07-26 2018-02-23 上海壹账通金融科技有限公司 The hot update method of application program, device, terminal and storage medium
CN110231948A (en) * 2019-06-10 2019-09-13 腾讯科技(成都)有限公司 Application program method, apparatus, system, storage medium and computer equipment
CN110362319A (en) * 2018-03-26 2019-10-22 珠海市魅族科技有限公司 Application management method and device, computer installation and computer readable storage medium
CN110515647A (en) * 2019-08-28 2019-11-29 北京思维造物信息科技股份有限公司 A kind of static resource management method, device, equipment and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103795761A (en) * 2012-11-01 2014-05-14 腾讯科技(深圳)有限公司 Method and system for downloading online game data
CN103475744A (en) * 2013-09-30 2013-12-25 中国农业银行股份有限公司 Resource downloading method, device and system on basis of Web application
CN105511889A (en) * 2016-01-15 2016-04-20 珠海金山网络游戏科技有限公司 General game version incremental updating system and method
CN107026884A (en) * 2016-02-02 2017-08-08 阿里巴巴集团控股有限公司 Acquisition methods, client, server and the system of resource file
CN106293732A (en) * 2016-08-03 2017-01-04 网易(杭州)网络有限公司 Resource loading method and device
CN106569856A (en) * 2016-11-02 2017-04-19 腾讯音乐娱乐(深圳)有限公司 Method and device of loading application view resource file
CN106708537A (en) * 2017-01-22 2017-05-24 百度在线网络技术(北京)有限公司 Application updating method and application updating device
CN107729041A (en) * 2017-07-26 2018-02-23 上海壹账通金融科技有限公司 The hot update method of application program, device, terminal and storage medium
WO2019019643A1 (en) * 2017-07-26 2019-01-31 深圳壹账通智能科技有限公司 Application program hot update method and apparatus, and terminal and storage medium
CN110362319A (en) * 2018-03-26 2019-10-22 珠海市魅族科技有限公司 Application management method and device, computer installation and computer readable storage medium
CN110231948A (en) * 2019-06-10 2019-09-13 腾讯科技(成都)有限公司 Application program method, apparatus, system, storage medium and computer equipment
CN110515647A (en) * 2019-08-28 2019-11-29 北京思维造物信息科技股份有限公司 A kind of static resource management method, device, equipment and storage medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
J.P. SOUSA等: "Task-based adaptation for ubiquitous computing", IEEE TRANSACTIONS ON SYSTEMS, MAN, AND CYBERNETICS, PART C (APPLICATIONS AND REVIEWS), vol. 36, no. 3, pages 328 - 340 *
刘海波等: "面向信号的通用测试平台二次开发技术研究", 航空电子技术, vol. 46, no. 1, pages 41 - 46 *
川峰: "Android Studio中资源文件夹的模块化配置", pages 1 - 2, Retrieved from the Internet <URL:https://blog.csdn.net/lyabc123456/article/details/93905956> *
梦回花果山: "资源更新", pages 1 - 2, Retrieved from the Internet <URL:https://blog.csdn.net/xingaaaxing/article/details/52119488> *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116048617A (en) * 2022-08-16 2023-05-02 荣耀终端有限公司 Information acquisition method, device, chip, electronic equipment and medium
CN116048617B (en) * 2022-08-16 2024-05-24 荣耀终端有限公司 Information acquisition method, device, chip, electronic equipment and medium

Also Published As

Publication number Publication date
CN113076128B (en) 2023-11-10

Similar Documents

Publication Publication Date Title
CN107431651B (en) Life cycle management method and equipment for network service
CN102694861B (en) A kind of terminal application software sorting technique, Apparatus and system based on cloud
CN107193593B (en) Upgrading method of upgradable file, set top box and storage medium
CN111580854A (en) Front-end and back-end separation method based on application program interface gateway and related equipment
US20130152069A1 (en) Method, apparatus and system for initiating terminal operation
CN112799825A (en) Task processing method and network equipment
CN110276194B (en) Information processing method, information processing apparatus, and electronic device
EP4207707A1 (en) Data transmission system, data transmission method, smart vehicle and device
CN114785685B (en) Software differential upgrading method and device, electronic equipment and readable storage medium
CN114489833B (en) Implementation method and device for submitting flash job to yarn cluster in application program
CN114422618B (en) Cloud-protogenesis-based IOT platform protocol adaptation method, device, equipment and medium
CN111858727A (en) Multi-data-source data export system and method based on template configuration
CN113867600A (en) Development method and device for processing streaming data and computer equipment
CN112015489A (en) Management method, device, storage medium and system for vehicle-mounted software
CN113076128B (en) Method, device, electronic equipment and storage medium for robot configuration
CN112748962B (en) Application loading method, device, electronic equipment and computer readable medium
CN114546588A (en) Task deployment method and device, storage medium and electronic device
CN114489690A (en) Distributed system deployment method and device, electronic equipment and storage medium
CN115934305A (en) Cloud platform management method, server and computer-readable storage medium
US11431795B2 (en) Method, apparatus and storage medium for resource configuration
US11252457B2 (en) Multimedia streaming and routing apparatus and operation method of the same
US11841760B2 (en) Operating system for collecting and transferring usage data
CN115277671A (en) OTA (over the air) upgrading method and device for vehicle, vehicle and storage medium
CN114500268A (en) Deployment method, device, server and storage medium of chart resource
CN114500510A (en) Request information response method, device, communication equipment and storage 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
GR01 Patent grant
GR01 Patent grant