A method, device and medium for distributed management of parameters in IROS
By registering multiple independent parameter server nodes in the IROS system, the instability and performance bottleneck of the parameter server in the ROS system are resolved, and distributed management and efficient storage of parameters are achieved.
Patent Information
- Application Number
- CN202310443035.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-19
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-04-19
AI Technical Summary
In existing ROS systems, parameters can only exist in ROS-Master. When the number of parameters is large or the access volume is high, it leads to instability and performance bottlenecks in the parameter server.
By registering several independent parameter server nodes (rParameter nodes) in the IROS system and registering and configuring them in the rMaster management node, distributed parameter management is achieved, and multiple rParameter nodes are used to store and access parameters.
It increases the number of manageable parameters, improves the data processing performance of the parameter server, eliminates instability in the ROS system, and enables distributed deployment of the parameter server.
Smart Images

Figure CN116471180B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of distributed management, and more particularly to a distributed management method, device, and medium for parameters in IROS. Background Technology
[0002] The open-source robot operating system ROS provides a parameter function, primarily used to enable data sharing between different nodes. Parameters are like global variables for the entire network system and can be modified freely. ROS parameters are stored in a parameter server, which is located within the ROS-Master and is not an independent node. Specifically, parameters in ROS are used to enable data sharing between different nodes and act as global variables for the entire network system, allowing for free modification. The parameter server is a container for storing parameters; it's essentially a shared container independent of all nodes. Data can be stored in this container and accessed by different nodes, and different nodes can also store data in it. The parameter server is located within the ROS-Master.
[0003] In the existing ROS, since parameters can only exist in ROS-Master, when the number of parameters is large or the number of parameter accesses is high, ROS-Master, which acts as the parameter server, will become a bottleneck. In addition, ROS-Master is not stable enough, which leads to the instability of parameters. Summary of the Invention
[0004] This application provides a distributed management method, device, and medium for parameters in IROS to solve the following technical problem: In existing ROS systems, parameters can only exist in the ROS-Master of the parameter server, and it is difficult to handle a large number of parameters, resulting in the instability of the parameter server.
[0005] The embodiments of this application adopt the following technical solutions:
[0006] On one hand, embodiments of this application provide a distributed management method for parameters in IROS, comprising: registering several independent parameter server nodes through the rMaster node in the IROS system to obtain several rParameter nodes; storing several requirement parameters in the several rParameter nodes based on the parameter fields of the rParameter nodes; wherein the requirement parameters are modifiable global variables in the IROS system; and accessing and calling the several requirement parameters stored in the rParameter nodes through the application nodes in the IROS system based on the rMaster node, so as to realize the distributed management of the several requirement parameters in the parameter servers.
[0007] This application embodiment utilizes multiple independent and parallel parameter server nodes in IROS to achieve distributed deployment of the parameter server nodes and registers parameter domain names in the rMaster management node, which can make full use of system resources. On the one hand, it greatly increases the number of manageable parameters and the data processing performance of the parameter server, eliminates the instability of the parameter server in the ROS system, and enables the parameter server to achieve distributed deployment itself, which reduces the limitations of parameter storage.
[0008] In one feasible implementation, several independent parameter server nodes are registered through the rMaster node in the IROS system to obtain several rParameter nodes. Specifically, this includes: obtaining parameter registration information through the IROS system based on the parameter function information of the required parameters; wherein the parameter registration information includes at least: the name of the parameter server node, the listening IP address of the parameter server node, the listening port of the parameter server node, the ID of the parameter server node, and the parameter domain; based on the rMaster node, the several independent parameter server nodes are registered and configured using the parameter registration information to obtain the several rParameter nodes; wherein the rMaster node is the management node in the IROS system; and the several rParameter nodes constitute a distributed parameter server in the IROS system.
[0009] In one feasible implementation, before storing several required parameters in the parameter fields of the rParameter nodes, the method further includes: configuring several parameter fields for each rParameter node according to the parameter name and number of the required parameters, to obtain several configured parameter fields and corresponding parameter field names; wherein the parameter names within the same parameter field are different names; and determining a unique parameter name for the required parameters in the IROS system based on the parameter name and the parameter field name.
[0010] In one feasible implementation, based on the parameter fields of the rParameter nodes, several requirement parameters are stored in the several rParameter nodes, specifically including: based on the several rParameter nodes, identifying a unique parameter name and a corresponding parameter field corresponding to the parameter name of the requirement parameter; determining the storage path of the requirement parameter according to the unique parameter name and the parameter field; and storing the several requirement parameters in the parameter fields corresponding to the several rParameter nodes according to the storage path.
[0011] In one feasible implementation, domain name determination is performed on several parameter names in the parameter field of each rParameter node; if the same parameter field name exists in the same rParameter node, the parameter field corresponding to the same parameter field name is determined as the same parameter field, and the same parameter field stores the same requirement parameter.
[0012] In one feasible implementation, the application node in the IROS system accesses and invokes several required parameters stored in the rParameter node based on the rMaster node. Specifically, this includes: determining the location information of the rParameter node corresponding to the parameter field in the rMaster node based on the specific parameter in the application node; obtaining the unique parameter name and storage path corresponding to the specific parameter based on the rParameter node location information and the parameter name of the specific parameter; and accessing several required parameters stored in the parameter field in the rParameter node according to the storage path, so as to realize the distributed invocation of the several required parameters by the application node.
[0013] In one feasible implementation, the rParameter node is used for distributed deployment in the IROS system of one or more robots to achieve distributed management of the required parameters in the parameter server.
[0014] In one feasible implementation, the rParameter node is also used for cloud-edge collaborative distributed deployment in the robot's IROS system.
[0015] Secondly, embodiments of this application also provide a distributed management device for parameters in an IROS, the device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to execute a distributed management method for parameters in an IROS as described in any of the above embodiments.
[0016] Thirdly, embodiments of this application also provide a non-volatile computer storage medium, characterized in that the storage medium is a non-volatile computer-readable storage medium, the non-volatile computer-readable storage medium stores at least one program, each program including instructions, and when the instructions are executed by a terminal, the terminal executes a distributed parameter management method in IROS as described in any of the above embodiments.
[0017] This application provides a distributed management method, device, and medium for parameters in IROS. By utilizing multiple independent and parallel parameter server nodes in IROS, the parameter server nodes are deployed in a distributed manner, and parameter domain names are registered in the rMaster management node. This fully utilizes system resources, greatly increases the number of manageable parameters, improves the data processing performance of the parameter server, eliminates the instability of the parameter server in the ROS system, enables the parameter server to achieve distributed deployment itself, and reduces the limitations of parameter storage. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. In the drawings:
[0019] Figure 1 A flowchart illustrating a distributed parameter management method in IROS provided in this application embodiment;
[0020] Figure 2 This is a schematic diagram of the structure of a distributed management device for parameters in IROS, provided as an embodiment of this application. Detailed Implementation
[0021] To enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this specification, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this application.
[0022] This application provides a distributed management method for parameters in IROS, such as... Figure 1 As shown, the distributed parameter management method in IROS specifically includes steps S101-S103:
[0023] S101. Register several independent parameter server nodes through the rMaster node in the IROS system to obtain several rParameter nodes.
[0024] Specifically, based on the parameter function information of the required parameters, parameter registration information is obtained through the IROS system. This parameter registration information includes at least: the name of the parameter server node, the listening IP address of the parameter server node, the listening port of the parameter server node, the parameter server node ID, and the parameter domain.
[0025] Furthermore, based on the rMaster node, several independent parameter server nodes are registered and configured using parameter registration information to obtain several rParameter nodes. The rMaster node is the management node in the IROS system. These rParameter nodes constitute the distributed parameter servers within the IROS system.
[0026] In one embodiment, the rMaster node is the management node in IROS. All parameter server nodes and application nodes are registered in the rMaster node. For parameter functions, the registration information includes the name of the parameter server node, the listening IP of the parameter server node, the listening port of the parameter server node, the parameter server node ID, the parameter domain, etc.
[0027] S102. Based on the parameter field of the rParameter node, several requirement parameters are stored in several rParameter nodes. Among them, the requirement parameters are modifiable global variables in the IROS system.
[0028] Specifically, based on the parameter name and number of the required parameters, several parameter fields are configured for each rParameter node, resulting in several configured parameter fields and their corresponding names. Parameter names within the same parameter field are distinct. Based on the parameter name and parameter field name, a unique parameter name for the required parameter is determined within the IROS system.
[0029] Furthermore, based on several rParameter nodes, unique parameter names and corresponding parameter fields corresponding to the parameter names of the requirement parameters are identified. The storage path for the requirement parameters is determined based on the unique parameter names and parameter fields. According to the storage path, the requirement parameters are stored in the parameter fields corresponding to the several rParameter nodes.
[0030] First, the domain names of several parameter fields in each rParameter node are determined. If the same parameter field name exists in the same rParameter node, the parameter fields corresponding to the same parameter field name are identified as the same parameter fields, and the same parameter fields store the same required parameters.
[0031] In one embodiment, each parameter server rParameter node can be configured with one or more parameter domains. The names of the parameter domains are similar to those in an operating system directory, such as / a / b / c / , / a / c / , / b / a / , etc. Parameter names within the same domain cannot be the same, but parameter names in different domains can be the same. The combination of the domain name and the parameter name constitutes a unique name within IROS, i.e., a unique parameter name. Within the IROS system, the domain names in each parameter server rParameter node are different. If the same parameter domain name exists within the same rParameter node, it is assumed that they store the same parameter content, i.e., the same required parameters are stored in the same parameter domain.
[0032] S103. Through the application nodes in the IROS system, based on the rMaster node, access and call several requirement parameters stored in the rParameter node to realize the distributed management of several requirement parameters in the parameter server.
[0033] Specifically, based on the specific parameters in the application node, the location information of the rParameter node, which corresponds to the parameter field in the rMaster node, is determined. Based on the rParameter node location information and the parameter name of the specific parameter, the unique parameter name and storage path corresponding to that specific parameter are obtained. According to the storage path, several required parameters stored in the parameter field of the rParameter node are accessed to enable distributed calls from the application node to these required parameters.
[0034] As a feasible implementation method, the rParameter node is used for distributed deployment in the IROS system of one or more robots to achieve distributed management of several required parameters in the parameter server.
[0035] As a feasible implementation method, the rParameter node is also used for cloud-edge collaborative distributed deployment in the robot's IROS system, which is also beneficial for the distributed management of several required parameters in the parameter server.
[0036] In one embodiment, when an application node accesses a parameter, it must be a complete parameter with a domain name, such as / a / c / para1, where / a / c / is the domain name and para1 is the specific parameter name. The application node obtains the parameter server rParameter node corresponding to the domain of the parameter from the rMaster node, and then accesses the corresponding parameter server rParameter node. Access to the parameter server includes call operations such as adding, modifying, querying, and deleting parameters.
[0037] It should be noted that there can be multiple rParameter nodes, which are independent nodes in the IROS system and registered in the rMaster node. Logically, all rParameter nodes constitute a giant parameter server. The parameters required by the application node can be stored in one or several parameter servers, thereby realizing distributed parameter management. The specific parameter server in which the parameter is stored is transparent to the application node, and the application node does not need to care about which parameter server the parameter is stored in.
[0038] In addition, embodiments of this application also provide a distributed management device for parameters in IROS, such as... Figure 2 As shown, the distributed management device 200 for parameters in IROS specifically includes:
[0039] At least one processor 201. And a memory 202 communicatively connected to the at least one processor 201. The memory 202 stores instructions executable by the at least one processor 201, enabling the at least one processor 201 to execute:
[0040] By registering several independent parameter server nodes through the rMaster node in the IROS system, several rParameter nodes are obtained;
[0041] Based on the parameter field of the rParameter node, several requirement parameters are stored in several rParameter nodes; among them, the requirement parameters are modifiable global variables in the IROS system.
[0042] Through the application nodes in the IROS system, based on the rMaster node, several requirement parameters stored in the rParameter node are accessed and invoked to achieve distributed management of several requirement parameters in the parameter server.
[0043] This application provides a distributed management method, device, and medium for parameters in IROS. By utilizing multiple independent and parallel parameter server nodes in IROS, the parameter server nodes are deployed in a distributed manner, and parameter domain names are registered in the rMaster management node. This fully utilizes system resources, greatly increases the number of manageable parameters, improves the data processing performance of the parameter server, eliminates the instability of the parameter server in the ROS system, enables the parameter server to achieve distributed deployment itself, and reduces the limitations of parameter storage.
[0044] The various embodiments in this application are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the embodiments for devices and non-volatile computer storage media are basically similar to the method embodiments, so the descriptions are relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0045] The devices and media provided in this application are one-to-one with the methods. Therefore, the devices and media also have similar beneficial technical effects as their corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.
[0046] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0047] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0048] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0049] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0050] The foregoing has described specific embodiments of this application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired results. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0051] The above description is merely an embodiment of this application and is not intended to limit this application. For those skilled in the art, various modifications and variations can be made to the embodiments of this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principle of the embodiments of this application should be included within the scope of the claims of this application.
Claims
1. A distributed management method for parameters in IROS, characterized in that, The method includes: By registering several independent parameter server nodes through the rMaster node in the IROS system, several rParameter nodes are obtained; Based on the parameter names and number of required parameters, several parameter fields are configured for each rParameter node, resulting in several configured parameter fields and their corresponding names; wherein, the parameter names within the same parameter field are different names. Based on the parameter name and the parameter field name, a unique parameter name for the required parameter is determined in the IROS system; Based on the parameter field of the rParameter node, several requirement parameters are stored in the several rParameter nodes; wherein, the requirement parameters are modifiable global variables in the IROS system; Through the application nodes in the IROS system, based on the rMaster node, several requirement parameters stored in the rParameter node are accessed and invoked to realize the distributed management of the several requirement parameters in the parameter server.
2. The distributed parameter management method in IROS according to claim 1, characterized in that, By registering several independent parameter server nodes through the rMaster node in the IROS system, several rParameter nodes are obtained, specifically including: Based on the parameter function information of the required parameters, parameter registration information is obtained through the IROS system; wherein, the parameter registration information includes at least: the name of the parameter server node, the listening IP of the parameter server node, the listening port of the parameter server node, the ID of the parameter server node, and the parameter domain; Based on the rMaster node, several independent parameter server nodes are registered and configured using the parameter registration information to obtain several rParameter nodes; wherein, the rMaster node is the management node in the IROS system; the several rParameter nodes constitute a distributed parameter server in the IROS system.
3. The distributed parameter management method in IROS according to claim 1, characterized in that, Based on the parameter fields of the rParameter node, several requirement parameters are stored in the several rParameter nodes, specifically including: Based on the aforementioned rParameter nodes, a unique parameter name and corresponding parameter field corresponding to the parameter name of the required parameter are identified. Based on the unique parameter name and the parameter field, determine the storage path of the required parameter; According to the storage path, the required parameters are stored in the parameter fields corresponding to the rParameter nodes.
4. The distributed management method for parameters in IROS according to claim 1, characterized in that, Perform domain name determination on several parameter names in the parameter field of each rParameter node; If there are parameter field names in the same rParameter node, the parameter fields corresponding to the same parameter field names are determined as the same parameter fields, and the same parameter fields store the same requirement parameters.
5. The distributed management method for parameters in IROS according to claim 1, characterized in that, Through the application node in the IROS system, based on the rMaster node, several required parameters stored in the rParameter node are accessed and invoked, specifically including: Based on the specific parameters in the application node, determine the location information of the rParameter node where the corresponding parameter field in the rMaster node is located; Based on the rParameter node location information and the parameter name of the specific parameter, obtain the unique parameter name and storage path corresponding to the specific parameter; Based on the storage path, access several required parameters stored in the parameter field of the rParameter node to realize the distributed calling of the application node on the several required parameters.
6. The distributed parameter management method in IROS according to claim 1, characterized in that, The rParameter node is used for distributed deployment in the IROS system of one or more robots to achieve distributed management of the required parameters in the parameter server.
7. The distributed management method for parameters in IROS according to claim 1, characterized in that, The rParameter node is also used for cloud-edge collaborative distributed deployment in the robot's IROS system.
8. A distributed management device for parameters in IROS, characterized in that, The device includes: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor to enable the at least one processor to perform a distributed management method for parameters in an IROS according to any one of claims 1-7.
9. A non-volatile computer storage medium, characterized in that, The storage medium is a non-volatile computer-readable storage medium that stores at least one program, each program including instructions that, when executed by a terminal, cause the terminal to perform a distributed management method for parameters in an IROS according to any one of claims 1-7.
Citation Information
Patent Citations
Distributed cloud native database management method and system
CN114116909A
Storage resource processing method, system and equipment of container cluster management system
CN114281263A
