A function control method, device, robot, and storage medium
The method dynamically controls machine functionality based on real-time state and permission configurations, addressing inflexibility in existing systems and improving user experience through adaptable management.
Patent Information
- Application Number
- CN202111622104.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-28
- Publication Date
- 2025-07-15
- Estimated Expiration
- 2041-12-28
AI Technical Summary
In the prior art, the configuration information in robot hardware is written dead, resulting in insufficient management and inability to flexibly control the permissions according to actual needs.
By obtaining the current status information of the robot and permission configuration information, using the function control model or permission category model, dynamically adjusting the functional permissions of the robot to achieve flexible permission management.
It realizes flexible control of robots, improves management flexibility and accuracy, and improves user experience.
Smart Images

Figure CN114329425B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the technical field of robots, and in particular, to a function control method, apparatus, robot, and storage medium. Background Art
[0002] With the development of artificial intelligence technology, robots have brought convenience to people. However, in the robot market, there are various usage methods for robots, such as trial use, leasing, and selling, and the usage permissions of robots with different usage methods are different.
[0003] Most of the existing technologies write the robot configuration information, such as the version information of the region to which it belongs, into the robot hardware. When it is detected that the local IP of the robot does not belong to the region to which it belongs, the robot is locked, that is, the robot cannot work properly. This method is not flexible enough for robot management. Therefore, there is an urgent need for improvement. Summary of the Invention
[0004] The present invention provides a function control method, apparatus, robot, and storage medium to achieve flexible control of robots.
[0005] In a first aspect, an embodiment of the present invention provides a function control method, which includes:
[0006] Obtain the current status information of the robot;
[0007] Control the functions of the robot according to the current status information and the current permission configuration information of the robot.
[0008] In a second aspect, an embodiment of the present invention further provides a function control apparatus, which includes:
[0009] A status information determination module, configured to obtain the current status information of the robot;
[0010] A function control module, configured to control the functions of the robot according to the current status information and the current permission configuration information of the robot.
[0011] In a third aspect, an embodiment of the present invention further provides a robot, which includes:
[0012] One or more processors;
[0013] A memory, configured to store one or more programs;
[0014] When the one or more programs are executed by the one or more processors, the one or more processors implement the function control method provided in any embodiment of the present invention.
[0015] Fourthly, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, it implements the function control method provided in any embodiment of the present invention.
[0016] The technical solution of the embodiment of the present invention controls the functions of the robot by obtaining the current state information of the robot and then according to the current state information and the current permission configuration information of the robot. The above technical solution solves the problem in the prior art that information such as the area to which the robot belongs is hard-coded and cannot be changed, and realizes the flexible management and control of the robot. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 is a flowchart of a function control method provided in Embodiment 1 of the present invention;
[0018] Figure 2 is a flowchart of a function control method provided in Embodiment 2 of the present invention;
[0019] Figure 3 is a flowchart of a function control method provided in Embodiment 3 of the present invention;
[0020] Figure 4 is a flowchart of a function control method provided in Embodiment 4 of the present invention;
[0021] Figure 5 is a structural schematic diagram of a function control device provided in Embodiment 5 of the present invention;
[0022] Figure 6 is a structural diagram of a robot provided in Embodiment 6 of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0023] The present invention will be further described in detail below with reference to the drawings and embodiments. It can be understood that the specific embodiments described herein are only for explaining the present invention, rather than limiting the present invention. Additionally, it should be noted that for the sake of description, only parts related to the present invention rather than all structures are shown in the drawings.
[0024] Embodiment 1
[0025] Figure 1 is a flowchart of a function control method provided in Embodiment 1 of the present invention. This embodiment is applicable to the situation of how to perform function control, especially applicable to the situation of how to control the functions of a robot. This method can be executed by a function control device, which can be implemented in a software and / or hardware manner and can be integrated into an electronic device with a function control function, such as the controller of a robot; optionally, the robot in the present invention can be a catering robot, a guiding robot, a medical robot, a hotel robot, etc.
[0026] As Figure 1 shown, the method may specifically include:
[0027] S110. Obtain the current status information of the robot.
[0028] In this embodiment, the current status information refers to the current status information of the robot, which may include but is not limited to the current position information of the robot and the current time, etc. Among them, the current position information may be the longitude and latitude of the current location of the robot. Exemplarily, it can be obtained by a position acquisition device configured on the robot. The position acquisition device may be a GPS signal receiver, etc. It can also determine the current position information of the robot through the IP address of the robot. The current time can be obtained through the built-in time module of the robot or from the background server interacting with the robot.
[0029] Specifically, the robot controller can obtain the current status information of the robot in real time. Further, the robot controller can also obtain the current status information of the robot from the background server interacting with the controller.
[0030] S120. Control the functions of the robot according to the current status information and the current permission configuration information of the robot.
[0031] In this embodiment, the permission configuration information refers to the configuration information for restricting the functions of the robot, which may include but is not limited to the location to which the robot belongs, the coding information of the region where the robot is located, the valid time of the robot, the extension flag, and the extension time, etc.; optionally, the permission configuration information of the robot can be determined according to the contract information. Different contract information determines different permission configuration information of the robot. Further, the robot can obtain the contract information regularly to determine the current permission configuration information of the robot. That is to say, the permission configuration information in this application can be modified and updated. Before controlling the functions of the robot, it is determined according to the current permission configuration information and the current status information.
[0032] Among them, the contract information may include field information such as contract type, contract validity period, and customer information. The contract type includes sale type, lease type, or trial type. The contract validity period refers to the usage period of the robot for lease type contracts and trial type contracts, and can also be understood as the valid period of the contract. The customer information may include customer's regional information, customer store information (i.e., the location to which the robot belongs), etc.
[0033] Exemplarily, the current permission configuration information of the robot can be determined according to the fields in the contract information. Specifically, read the contract information, obtain the valid fields in the contract information, and then determine the current permission configuration information of the robot according to the valid fields.
[0034] For example, if the valid fields in the contract information include the sale type, and the geographical area information of the customer or the customer store information, the permission configuration information includes the geographical area code information of the robot or the regional restriction distance. Among them, the geographical area code information can be the code information of the country to which it belongs; the regional restriction distance refers to the maximum distance that the robot can use, that is, the farthest working distance of the robot from its belonging location, which can be set according to the store situation and flexibly changed.
[0035] Another example is that if the valid fields in the contract information include the lease type and the contract validity period, the permission configuration information includes the valid time and the extension flag. Among them, the valid time refers to the time when the robot can be used normally; the extension flag refers to the flag indicating that the leased robot can be used after the expiration date, which can be represented in the form of numbers, letters, or a combination of numbers and letters.
[0036] Another example is that if the valid fields in the contract information include the trial type and the contract validity period, the permission configuration information includes the valid time.
[0037] It can be understood that through different contract information, the current permission configuration information of the robot can be determined. When the contract information is changed, the permission configuration information of the robot also changes accordingly, increasing the flexibility of determining the permission configuration information. When the robot is recycled and reused, it is convenient to set the permission configuration information through the contract information.
[0038] In this embodiment, for different permission configuration information, the usage permissions of the functions of the robot are different.
[0039] Specifically, the current state information of the robot and the current permission configuration information of the robot can be input into the function control model. After being processed by the model, the functions that are prohibited from being used are obtained, so that the robot adjusts the usage permission status of the functions that are prohibited from being used to the prohibited state, so that the robot cannot implement the corresponding functions. Among them, the function control model can be a model pre-learned based on machine learning algorithms. It is also possible to establish a corresponding table of current state information - permission configuration information - disabled functions in advance and obtain the functions that are prohibited from being used by looking up the table.
[0040] The technical solution of the embodiment of the present invention controls the functions of the robot by obtaining the current state information of the robot and then according to the current state information and the current permission configuration information of the robot. The above technical solution solves the problem in the prior art that the information such as the belonging area of the robot is written and cannot be changed, and realizes the flexible management and control of the robot.
[0041] Embodiment 2
[0042] Figure 2It is a flowchart of a function control method provided in the second embodiment of the present invention. On the basis of the above embodiment, "according to the current status information and the current permission configuration information of the robot, the function of the robot is controlled" is further optimized to provide an optional implementation solution.
[0043] As Figure 2 shown, the method may specifically include:
[0044] S210. Obtain the current status information of the robot.
[0045] S220. Determine the permission control category of the robot according to the current status information and the current permission configuration information of the robot.
[0046] In this embodiment, the permission control category may include the first area control category, the second area control category, the first time control category, the second time control category, etc. Different permission control categories correspond to different functions that are prohibited or restricted. Among them, the first area control category is the control category of the function corresponding to when the location of the robot exceeds its affiliated region (such as a country), and can be used to indicate that the robot restricts all functions, that is, prohibits all functions. The second area control category is the control category of the function corresponding to when the location of the robot exceeds the usage range of its affiliated store, and can be used to indicate that the robot restricts the function. For example, all functions are prohibited, or some functions are restricted, such as being unable to create and modify the navigation map, so as to restrict the use of the robot in non-bound stores and avoid affecting the normal use of the robot due to positioning deviation. The first time control category is the control category of the function corresponding to when the trial period of the robot expires, or the control category of the function corresponding to when the lease term of the robot expires, and can be used to indicate that the robot restricts all functions, that is, prohibits all functions. The second time control category is the control category set for a certain extension time after the lease of the robot expires, that is, the control category of the function corresponding to when the lease term of the robot expires and does not exceed the extended period, and can be used to indicate that the robot restricts some functions, that is, prohibits some functions.
[0047] Specifically, the current status information of the robot and the current permission configuration information of the robot can be input into the permission category model, and after being processed by the model, the permission control category of the robot is obtained. Among them, the permission category model can be pre-trained based on a machine learning algorithm.
[0048] S230. Control the function of the robot according to the permission control category.
[0049] As an alternative embodiment of the present invention, the functions of the robot can be controlled according to the permission control categories. Optionally, if the permission control category includes at least one of the first area control category, the second area control category, and the first time control category, the usage permission status of all functions of the robot is configured as a prohibited status. That is to say, if any one of the first area control category, the second area control category, and the second time control category exists in the permission control category, the usage permission status of all functions of the robot is configured as a prohibited status.
[0050] Optionally, if the permission control category only includes the second time control category, the prohibited functions are determined from all the functions of the robot, and the usage permission status of the prohibited functions is configured as a prohibited status. Specifically, if the permission control category only includes the second time control category, the preset functions are determined from all the functions of the robot as the prohibited functions, and then the usage permission status of the prohibited functions is configured as a prohibited status. For example, if the prohibited functions corresponding to the second time control category include the update function and the modification function, then if it is recognized that the permission control category only includes the second time control category, the usage permission status of the update function and the modification function of the robot is configured as a prohibited status, that is, the robot will not be updated, and the user cannot modify the resource package (i.e., software version) of the robot.
[0051] It should be noted that the prohibited functions of the robot corresponding to the permission control category can be flexibly set according to the actual situation, and only a few specific examples are given in the present invention.
[0052] According to different permission configuration information, combined with the current status information of the robot, different permission control categories are obtained to differentially control the functions of the robot, so as to achieve precise control of the robot.
[0053] As another alternative embodiment of the present invention, if the number of permission control categories is at least two, the functions of the robot are controlled according to the permission control category and the priority of the permission control category. When different priorities of permission control categories are included, the robot is controlled with the higher priority, and the lower priority is ignored. When only the same priority of permission control categories is included and it is the lowest priority, the functions of the robot are controlled according to the permission control category respectively.
[0054] For example, the priority of the authority control category is: first area control category and first time control category, first area control category and second time control category, that is, the first area control category and the first time control category have the same priority and are higher, and the second area control category and the second time control category have the same priority and are lower. If the authority control category of the current robot is the first area control category and the second time control category, all functions are prohibited. If the authority control category of the current robot is the second area control category and the second time control category, the robot is prohibited from creating and modifying navigation maps, and the robot is prohibited from updating resource packages (i.e., software versions).
[0055] It is understandable that when the permission control category includes multiple categories, the robot's functions are controlled in combination with the priority of the permission control category, further improving the precise and flexible control of the robot. Optionally, in the process of determining the robot's permission control category, once it is determined that the robot has the highest priority permission control category, the remaining permission control categories are no longer determined to reduce the amount of data processing.
[0056] It should be noted that while controlling the functions of the robot, a prompt message is sent to the user. For example, if the control authority category is the first regional control category, a prompt message indicating that the robot cannot be used in different countries can be displayed in the robot display interface. Furthermore, a prompt message can be sent to the user of the robot by voice, text message, or to the user terminal application. At the same time, the prompt message can be synchronized to the background server, so that maintenance personnel can find the mixed goods situation in time and deal with it.
[0057] Exemplarily, if the control authority category is the second area control category, a prompt message that exceeds the available range can be displayed in the robot display interface. Furthermore, a prompt message can be sent to the user of the robot by voice, text message or to the user terminal application.
[0058] Exemplarily, if the control authority category is the first-time control category, a prompt message indicating the expiration of the trial period can be displayed in the robot display interface. Furthermore, a prompt message can be sent to the robot user by voice, text message, or to the user terminal application. The channel and fee information for converting the robot from the trial state to the lease or sale state can also be displayed, so that the user can use the robot conveniently. When the user performs a specific operation based on the displayed channel, such as choosing to lease and pay, the contract information corresponding to the current robot is updated, and the robot is automatically restarted, so that the robot can promptly remove the corresponding function restrictions according to the changes in the authority configuration information.
[0059] Exemplarily, if the control permission category is the second time control category, a prompt message for renewal and a renewal channel, such as a QR code, can be displayed on the robot display interface. Further, a prompt message and a renewal prompt can be sent to the user to whom the robot belongs by voice, text message, or to the user terminal application. When the background server receives the user's successful renewal information, the corresponding contract validity period is updated and synchronized to the corresponding robot.
[0060] The technical solution of the embodiment of the present invention determines the permission control category of the robot by obtaining the current status information of the robot, and then controls the functions of the robot according to the permission control category based on the current status information and the current permission configuration information of the robot. Through the permission control category, the functions of the robot are controlled, which improves the flexibility and precision of robot management and control, thereby enhancing the user experience.
[0061] Embodiment III
[0062] Figure 3 It is a flowchart of a function control method provided by Embodiment III of the present invention. On the basis of the above embodiments, the determination of the permission control category of the robot according to the current status information and the current permission configuration information of the robot is further optimized, and an optional implementation solution is provided.
[0063] As Figure 3 shown, the method may specifically include:
[0064] S310. Obtain the current status information of the robot.
[0065] S320. Determine the permission control category of the robot according to the current status information and the current permission configuration information of the robot.
[0066] An optional method is to determine the coding information of the region where the robot is currently located according to the current location information in the current status information. If the determined coding information is inconsistent with the coding information in the permission configuration information, it is determined that the permission control category of the robot includes the first region control category.
[0067] Specifically, according to the current location information in the current status information, determine the region where the robot is currently located, and then based on the correspondence between the region and the coding, determine the coding information of the region where the robot is currently located. Further, if the determined coding information is inconsistent with the coding information in the permission configuration information, it is determined that the permission control category of the robot includes the first region control category.
[0068] Another optional method is to determine the distance between the robot and the home location according to the current location information in the current status information and the location information of the home location in the permission configuration information. If the distance exceeds the area limit distance in the permission configuration information, it is determined that the permission control category of the robot includes the second area control category. Here, the home location can be the store to which the robot belongs or the private location (such as a residence) of the affiliated user.
[0069] Specifically, calculation methods such as the Euclidean distance can be used to determine the distance between the center point of the robot and the home location according to the current location information in the current status information and the location information of the home location in the permission configuration information. Furthermore, if the distance exceeds the area limit distance in the permission configuration information, it is determined that the permission control category of the robot includes the second area control category.
[0070] Another optional method is to determine the coding information of the region where the robot is currently located according to the current location information in the current status information. If the determined coding information is inconsistent with the coding information in the permission configuration information, it is determined that the permission control category of the robot includes the first area control category. And according to the current location information in the current status information and the location information of the home location in the permission configuration information, determine the distance between the robot and the home location. If the distance exceeds the area limit distance in the permission configuration information, it is determined that the permission control category of the robot includes the second area control category.
[0071] It can be understood that by using the current location information to determine the current coding information and distance to judge whether the robot meets the permission configuration information, the permission control category of the robot can be determined in real time, so that the functions of the robot can be controlled in real time, further improving the flexibility of robot management and control.
[0072] S330. Control the functions of the robot according to the permission control category.
[0073] The technical solution of the embodiment of the present invention obtains the current status information of the robot, then determines the permission control category of the robot according to the current status information and the current permission configuration information of the robot, and then controls the functions of the robot according to the permission control category. The above technical solution controls the functions of the robot through the permission control category, improving the flexibility of robot management and control, thereby enhancing the user experience.
[0074] Embodiment 4
[0075] Figure 4 It is a flowchart of a function control method provided by Embodiment 4 of the present invention. On the basis of the above embodiments, the step of "determining the permission control category of the robot according to the current status information and the current permission configuration information of the robot" is further optimized to provide an optional implementation solution.
[0076] As Figure 4 shown, the method may specifically include:
[0077] S410. Obtain the current status information of the robot.
[0078] S420. Determine the permission control category of the robot according to the current status information and the current permission configuration information of the robot.
[0079] An optional way is that if the current time in the current status information exceeds the valid time in the permission configuration information, it is determined that the permission control category of the robot includes the first time control category. Specifically, for a leased or trial robot, its valid period during which it can be used normally is set in its permission configuration information, and the valid period starts from the moment when its contract information comes into effect until the valid time ends. If the current time in the current status information exceeds the valid time in the permission configuration information, it is determined that the permission control category of the robot includes the first time control category.
[0080] It can be understood that determining the permission control category of the robot through the current time can improve the accuracy of determining the permission control category and avoid the risk of the robot still being used after expiration.
[0081] Furthermore, for a leased robot, an extension flag can be set in its permission configuration information. Further, as another optional way of the present invention, the extension time can also be determined according to the extension flag and the valid time in the permission configuration information. After that, if the current time in the current status information exceeds the valid time and does not exceed the extension time, it is determined that the permission control category of the robot includes the second time control category.
[0082] Specifically, the extension time is determined according to the extension flag and the valid time in the permission configuration information. For example, different extension flags correspond to different delay periods, and then the extension time is determined according to the delay period and the limited time. If the current time in the current status information exceeds the valid time and does not exceed the extension time, it is determined that the permission control category of the robot includes the second time control category.
[0083] It should be noted that within the extension interval, that is, between the valid time and the extension time, the frequency of obtaining the current status information and the permission configuration information can be increased. For example, it is obtained once a day before the valid time, and within the extension interval, it can be obtained once every 8 hours to distinguish whether the user has completed the lease renewal, that is, the permission configuration information will change.
[0084] It can be understood that increasing the extension time to determine the permission control category can provide a certain buffer time for the user, thereby improving the user experience.
[0085] In another alternative, if the current time in the current status information exceeds the extension time, it is determined that the permission control category of the robot includes a third time control category. The third time control category is used to indicate that the robot restricts all functions, that is, all functions are prohibited.
[0086] S430. Control the functions of the robot according to the permission control category.
[0087] The technical solution of the embodiment of the present invention obtains the current status information of the robot, then determines the permission control category of the robot according to the current status information and the current permission configuration information of the robot, and further controls the functions of the robot according to the permission control category. The above technical solution controls the functions of the robot through the permission control category, improves the flexibility of robot management and control, and thus enhances the user experience.
[0088] Embodiment Five
[0089] Figure 5 FIG. 13 is a schematic structural diagram of a function control device provided in Embodiment Five of the present invention. This embodiment is applicable to the situation of how to perform function control, especially applicable to the situation of how to control the functions of a robot. The device can be implemented in software and / or hardware and can be integrated into an electronic device with a function control function, such as the controller of a robot.
[0090] As Figure 5 shown, the device may specifically include:
[0091] A status information determination module 510, configured to obtain the current status information of the robot;
[0092] A function control module 520, configured to control the functions of the robot according to the current status information and the current permission configuration information of the robot.
[0093] The technical solution of the embodiment of the present invention controls the functions of the robot by obtaining the current status information of the robot and then according to the current status information and the current permission configuration information of the robot. The above technical solution solves the problem in the prior art that information such as the area to which the robot belongs is hard-coded and cannot be changed, and realizes flexible management and control of the robot.
[0094] Further, the function control module 520 includes:
[0095] A permission control category determination unit, configured to determine the permission control category of the robot according to the current status information and the current permission configuration information of the robot;
[0096] A function control unit, configured to control the functions of the robot according to the permission control category.
[0097] Furthermore, the permission control category determination unit is specifically configured to:
[0098] Determine the coding information of the region where the robot is currently located according to the current location information in the current status information;
[0099] If the determined coding information is inconsistent with the coding information in the permission configuration information, determine that the permission control category of the robot includes the first region control category; and / or,
[0100] Determine the distance between the robot and the home location according to the current location information in the current status information and the location information of the home location in the permission configuration information;
[0101] If the distance exceeds the regional limit distance in the permission configuration information, determine that the permission control category of the robot includes the second region control category.
[0102] Furthermore, the permission control category determination unit is also specifically configured to:
[0103] If the current time in the current status information exceeds the valid time in the permission configuration information, determine that the permission control category of the robot includes the first time control category.
[0104] Furthermore, the permission control category determination unit is also specifically configured to:
[0105] Determine the extension time according to the extension flag and the valid time in the permission configuration information;
[0106] If the current time in the current status information exceeds the valid time and does not exceed the extension time, determine that the permission control category of the robot includes the second time control category.
[0107] Furthermore, the function control unit is specifically configured to:
[0108] If the permission control category includes at least one of the first region control category, the second region control category, and the first time control category, configure the usage permission status of all functions of the robot to the prohibited status;
[0109] If the permission control category only includes the second time control category, determine the prohibited functions from all the functions of the robot and configure the usage permission status of the prohibited functions to the prohibited status.
[0110] Furthermore, the function control unit is also specifically configured to:
[0111] If the number of permission control categories is at least two, control the functions of the robot according to the permission control category and the priority of the permission control category.
[0112] Furthermore, the device further includes:
[0113] A permission configuration information determination module, configured to determine the permission configuration information of the robot according to the contract information.
[0114] The above function control device can execute the function control method provided by any embodiment of the present invention, and has the corresponding function modules and beneficial effects of the execution method.
[0115] Embodiment Six
[0116] Figure 6 It is a structural diagram of a robot provided in Embodiment Six of this application. As Figure 6 shown, the robot includes: an input device 610, an output device 620, a processor 630, and a storage device 640.
[0117] Among them, the input device 610 is used to receive contract information, etc.;
[0118] The output device 620 is used to send a prompt message to the management user of the robot;
[0119] One or more processors 630;
[0120] The storage device 640 is used to store one or more programs;
[0121] Figure 6 Taking one processor 630 as an example, the input device 610 in the robot can be connected to the output device 620, the processor 630, and the storage device 640 through a bus or other means, and the processor 630 and the storage device 640 are also connected through a bus or other means, Figure 6 Taking the connection through the bus as an example.
[0122] In this embodiment, the processor 630 in the robot can control the input device 610 to receive data such as contract information and the current status information; it can also control the processor 630 to control the functions of the robot according to the current status information and the current permission configuration information of the robot; it can also control the output device 620 to send a prompt message to the management user of the robot.
[0123] The storage device 640 in the robot, as a computer-readable storage medium, can be used to store one or more programs. The programs can be software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the function control method in the embodiment of the present invention (for example, Figure 5 the status information determination module 510 and the function control module 520 shown). The processor 630 executes various functional applications and data processing of the robot by running the software programs, instructions, and modules stored in the storage device 640, that is, implements the function control method in the above method embodiment.
[0124] The storage device 640 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system and application programs required for at least one function; the data storage area may store data, etc. (such as the current status information, permission configuration information, and prompt information in the above embodiments). In addition, the storage device 640 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some instances, the storage device 640 may further include a memory remotely disposed relative to the processor 630, and these remote memories may be connected to the server through a network. Examples of the above network include but are not limited to the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.
[0125] Embodiment Seven
[0126] Embodiment Seven of the present invention further provides a computer-readable storage medium, on which a computer program (or computer-executable instructions) is stored, and when the program is executed by a processor, it is used to execute the function control method provided by the embodiments of the present invention.
[0127] The computer storage medium of the embodiments of the present invention may adopt any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive list) of the computer-readable storage medium include: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
[0128] The computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which computer-readable program code is carried. Such a propagated data signal may take various forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium, and the computer-readable medium may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device.
[0129] The program code contained on a computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wire, optical fiber cable, RF, etc., or any suitable combination of the above.
[0130] The computer program code for performing the operations of the embodiments of the present invention can be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., by connecting through the Internet using an Internet service provider).
[0131] Note that the above is only the preferred embodiment of the present invention and the technical principles applied. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein. Various obvious changes, re-adjustments, and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the embodiments of the present invention have been described in more detail through the above embodiments, the embodiments of the present invention are not limited to the above embodiments. Without departing from the concept of the present invention, more other equivalent embodiments can be included, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A function control method, characterized in that, Including: Obtaining the current status information of the robot; Determining the permission control category of the robot according to the current status information and the current permission configuration information of the robot; wherein, the permission control category includes at least one of a first area control category, a second area control category, a first time control category, and a second time control category; the first area control category is used to indicate that the robot restricts all functions; the second area control category is used to indicate that the robot restricts some functions; the first time control category is used to indicate that the robot restricts all functions; the second time control category is used to indicate that the robot restricts some functions; The permission configuration information is determined according to the contract information; the permission configuration information includes the location to which the robot belongs, the coding information of the region where the robot is located, and the valid time of the robot; if the robot is a leased robot, the permission configuration information further includes an extension flag and an extension time; The determining the permission control category of the robot according to the current status information and the current permission configuration information of the robot includes: determining the distance between the robot and the location to which it belongs according to the current location information in the current status information and the location information of the location to which it belongs in the permission configuration information; If the distance exceeds the area limit distance in the permission configuration information, it is determined that the permission control category of the robot includes the second area control category, and the restricting of some functions includes: being unable to create and modify the navigation map; Controlling the functions of the robot according to the permission control category.
2. The method according to claim 1, wherein The determining the permission control category of the robot according to the current status information and the current permission configuration information of the robot further includes: Determining the coding information of the region where the robot is currently located according to the current location information in the current status information; If the determined coding information is inconsistent with the coding information in the permission configuration information, it is determined that the permission control category of the robot includes the first area control category.
3. The method according to claim 1, wherein The determining the permission control category of the robot according to the current status information and the current permission configuration information of the robot further includes: If the current time in the current status information exceeds the valid time in the permission configuration information, it is determined that the permission control category of the robot includes the first time control category.
4. The method according to claim 1, characterized in that, The determining the permission control category of the robot according to the current status information and the current permission configuration information of the robot further includes: Determining the extension time according to the extension flag and the valid time in the permission configuration information; If the current time in the current status information exceeds the valid time and does not exceed the extension time, it is determined that the permission control category of the robot includes the second time control category.
5. The method according to claim 1, wherein The controlling the functions of the robot according to the permission control category includes: If the permission control category includes the first area control category or the first time control category, configuring the usage permission status of all functions of the robot to the prohibited status; If the permission control category only includes the second time control category, determine the prohibited functions from all the functions of the robot, and configure the usage permission status of the prohibited functions as the prohibited status.
6. The method according to claim 1, characterized in that, The controlling the functions of the robot according to the permission control category includes: If the number of the permission control categories is at least two, control the functions of the robot according to the permission control category and the priority of the permission control category.
7. A function control device, characterized in that, Including: A status information determination module, configured to obtain the current status information of the robot; A function control module, configured to determine the permission control category of the robot according to the current status information and the current permission configuration information of the robot; wherein, the permission control category includes at least one of a first area control category, a second area control category, a first time control category, and a second time control category; the first area control category is used to indicate that the robot restricts all functions; the second area control category is used to indicate that the robot restricts some functions; the first time control category is used to indicate that the robot restricts all functions; the second time control category is used to indicate that the robot restricts some functions; The permission configuration information is determined according to the contract information; the permission configuration information includes the location to which the robot belongs, the coding information of the area where the robot is located, and the valid time of the robot; if the robot is a leased robot, the permission configuration information further includes an extension flag and an extension time; The determining the permission control category of the robot according to the current status information and the current permission configuration information of the robot includes: determining the distance between the robot and the location to which it belongs according to the current location information in the current status information and the location information of the location to which it belongs in the permission configuration information; If the distance exceeds the area restriction distance in the permission configuration information, determine that the permission control category of the robot includes the second area control category, and the restricting some functions includes: being unable to create and modify the navigation map; Control the functions of the robot according to the permission control category.
8. A robot, characterized in that, Including: One or more processors; A memory, configured to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the function control method according to any one of claims 1-6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the function control method according to any one of claims 1-6.
Citation Information
Patent Citations
Intelligent terminal authority control method and device
CN105323294A
Terminal control method, device and system, terminal, and medium
CN108683808A
Robot control method and device, robot and storage medium
CN112809669A