Robot and control method, device and storage medium thereof

By integrating and classifying the basic capabilities of bionic robots and building capability sets, we solve the problems of complex behavior control and high technical threshold of bionic robots, achieve more flexible and efficient task programming and control, and improve the robot control effect and reliability. Playfulness.

CN117245635BActive Publication Date: 2024-10-15BEIJING XIAOMI ROBOT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211600733.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-12
Publication Date
2024-10-15
Estimated Expiration
2042-12-12

AI Technical Summary

Technical Problem

The behavior control of existing bionic robots requires professionals to perform on-site task programming. The technical threshold is high, the action programming operation is complex, and the robot's playability and practicality are insufficient.

Method used

By integrating, classifying and encapsulating the basic capabilities of the robot in advance to build a capability set, users can call all the basic capabilities of the robot through the capability set, achieving flexible combinations of basic capabilities and simplifying task programming operations.

Benefits of technology

It reduces the difficulty and resource occupation of task programming, improves the robot control effect, simplifies task operation and control logic, and improves the flexibility and practicality of robot control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117245635B_ABST
    Figure CN117245635B_ABST
Patent Text Reader

Abstract

The present disclosure relates to the field of robot technology, and specifically to a robot and its control method, device, and storage medium. A robot control method includes determining a target capability module from a pre-established capability set according to module identification information included in a task operation request sent by a user terminal, generating a corresponding target task for controlling the operation of the robot according to the target capability module and the task operation request, and controlling the operation of the robot according to the target task. In the embodiment of the present disclosure, the robot capability set is obtained by integrating, classifying and packaging the robot capabilities, and all the capabilities of the robot can be called through the capability set to achieve flexible combination calls between basic capabilities, simplify task programming operations, and reduce the occupation of robot resources by task operation. The logic of task operation and control is simple, and the robot control effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of robot technology, and in particular to a robot and a control method, device, and storage medium thereof. Background Art

[0002] With the development of robotics technology, more and more research has been conducted on bionic robots. Bionic robots have excellent motion balance capabilities. Bionic robots may include, for example, bipedal robots, quadrupedal robots, and the like.

[0003] In the related technologies, the behavior control of bionic robots requires professionals to perform on-site task programming, which has a high technical threshold and complex action programming operations, making the robot lack in playability and practicality. Summary of the invention

[0004] In order to improve the control effect of a robot, the embodiments of the present disclosure provide a robot control method, device, robot and storage medium.

[0005] In a first aspect, an embodiment of the present disclosure provides a robot control method, which is applied to a robot, and the method comprises:

[0006] Determine a target capability module from a pre-established capability set according to module identification information included in a task operation request sent by a user terminal; the capability set includes a plurality of capability modules, and the capability module includes one or more basic capabilities of the robot;

[0007] Generate a corresponding target task for controlling the operation of the robot according to the target capability module and the task operation request;

[0008] The robot is controlled to run according to the target task.

[0009] In some implementations, the process of pre-establishing the capability set includes:

[0010] Classify the basic capabilities of the robot according to preset categories to obtain the capability module corresponding to each category;

[0011] The capability set is constructed according to the capability modules corresponding to each category.

[0012] In some embodiments, the basic capabilities of the robot are classified according to preset categories to obtain the capability modules corresponding to each category, including:

[0013] For each category, one or more capability submodules are constructed based on at least one basic capability corresponding to the category;

[0014] The capability module corresponding to the category is obtained according to the basic capability and the capability submodule.

[0015] In some implementations, generating a corresponding target task for controlling the operation of the robot according to the target capability module and the task operation request includes:

[0016] Determining a target interface from a plurality of program interfaces of the capability set according to an interface request of the task operation request;

[0017] The target capability module is called through the target interface to generate the target task according to the target capability module and the task operation request.

[0018] In some implementations, determining the target capability module from a pre-established capability set according to the module identification information included in the task operation request sent by the user terminal includes:

[0019] In response to receiving the graphical information sent by the user terminal, parsing the graphical information to obtain the task operation request;

[0020] According to the module identification information included in the task operation request, a target capability module is determined from the capability set.

[0021] In some implementations, generating a corresponding target task for controlling the operation of the robot according to the target capability module and the task operation request includes:

[0022] generating the target task according to the target capability module and the task operation request, and storing the target task in the robot;

[0023] The step of controlling the robot to run according to the target task comprises:

[0024] In response to receiving the running instruction of the target task sent by the user terminal, the robot is controlled to run according to the target task.

[0025] In some implementations, controlling the robot to operate according to the target task includes:

[0026] During the operation of the robot, in response to receiving a control instruction of the target task, the target task is controlled to run according to the control instruction.

[0027] In a second aspect, an embodiment of the present disclosure provides a robot control device, applied to a robot, the device comprising:

[0028] A determination module is configured to determine a target capability module from a pre-established capability set according to module identification information included in a task operation request sent by a user terminal; the capability set includes a plurality of capability modules, and the capability modules are used to control one or more basic capabilities of the robot;

[0029] A generating module, configured to generate a corresponding target task for controlling the operation of the robot according to the target capability module and the task operation request;

[0030] An operation module is configured to control the operation of the robot according to the target task.

[0031] In some embodiments, the apparatus described in the present disclosure further includes a capability set construction module, wherein the capability set construction module is configured to:

[0032] Classify the basic capabilities of the robot according to preset categories to obtain the capability module corresponding to each category;

[0033] The capability set is constructed according to the capability modules corresponding to each category.

[0034] In some implementations, the capability set building module is configured to:

[0035] For each category, one or more capability submodules are constructed based on at least one basic capability corresponding to the category;

[0036] The capability module corresponding to the category is obtained according to the basic capability and the capability submodule.

[0037] In some embodiments, the generating module is configured to:

[0038] Determining a target interface from a plurality of program interfaces of the capability set according to an interface request of the task operation request;

[0039] The target capability module is called through the target interface to generate the target task according to the target capability module and the task operation request.

[0040] In some implementations, the determining module is configured to:

[0041] In response to receiving the graphical information sent by the user terminal, parsing the graphical information to obtain the task operation request;

[0042] According to the module identification information included in the task operation request, a target capability module is determined from the capability set.

[0043] In some embodiments, the generating module is configured to:

[0044] generating the target task according to the target capability module and the task operation request, and storing the target task in the robot;

[0045] In some embodiments, the operation module is configured to:

[0046] In response to receiving the running instruction of the target task sent by the user terminal, the robot is controlled to run according to the target task.

[0047] In some embodiments, the operation module is configured to:

[0048] During the operation of the robot, in response to receiving a control instruction of the target task, the target task is controlled to run according to the control instruction.

[0049] In a third aspect, the present disclosure provides a robot, comprising:

[0050] processor;

[0051] A memory storing computer instructions, wherein the computer instructions are used to enable a processor to execute the method according to any embodiment of the first aspect.

[0052] In a fourth aspect, an embodiment of the present disclosure provides a storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the method described in any embodiment of the first aspect.

[0053] The robot control method of the disclosed embodiment includes determining the target capability module from a pre-established capability set according to the module identification information included in the task operation request sent by the user terminal, generating a corresponding target task for controlling the operation of the robot according to the target capability module and the task operation request, and controlling the operation of the robot according to the target task. In the disclosed embodiment, the robot capability set is obtained by integrating, classifying and packaging the robot capabilities, and all the capabilities of the robot can be called through the capability set, so as to realize flexible combination calling between basic capabilities, simplify task programming operations, reduce the occupation of robot resources by task operation, simplify the logic of task operation and control, and improve the robot control effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0055] Figure 1 It is a scene schematic diagram of the robot control method in some embodiments of the present disclosure.

[0056] Figure 2 is a flowchart of a robot control method according to some embodiments of the present disclosure.

[0057] Figure 3 is a flowchart of a robot control method according to some embodiments of the present disclosure.

[0058] Figure 4 It is a capability set architecture diagram according to some implementation modes of the present disclosure.

[0059] Figure 5 is a flowchart of a robot control method according to some embodiments of the present disclosure.

[0060] Figure 6 is a flowchart of a robot control method according to some embodiments of the present disclosure.

[0061] Figure 7 is a flowchart of a robot control method according to some embodiments of the present disclosure.

[0062] Figure 8 is a flowchart of a robot control method according to some embodiments of the present disclosure.

[0063] Fig. 9 It is a structural block diagram of a robot control device according to some embodiments of the present disclosure.

[0064] Fig.10 It is a structural block diagram of a robot according to some embodiments of the present disclosure. DETAILED DESCRIPTION

[0065] The technical solution of the present disclosure will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described implementation is a part of the implementation of the present disclosure, rather than all the implementations. Based on the implementation in the present disclosure, all other implementations obtained by ordinary technicians in the field without creative work are within the scope of protection of the present disclosure. In addition, the technical features involved in the different implementations of the present disclosure described below can be combined with each other as long as they do not conflict with each other.

[0066] Bionic robots have excellent motion balance ability and rich operability, so research on bionic robots is one of the important directions in the field of robotics.

[0067] For example, a bipedal robot is a robot that imitates the human body. Its lower limbs can swing like humans to achieve operations such as walking, running, squatting, and jumping. At the same time, its upper limbs can imitate human arms to achieve operations such as arm swinging and grasping. Another example is a quadruped robot, which is a robot that imitates four-legged animals. Its limbs can swing like animals to achieve operations such as walking, running, and jumping. Quadruped robots often have good movement balance ability.

[0068] The above-mentioned bipedal robots and quadrupedal robots are both bionic robots, and the behavior control of bionic robots has always been the focus and difficulty of robot research.

[0069] In the current related technologies, the behavior control of bionic robots mainly relies on staff to perform task programming, and then control the robot operation according to the programmed tasks. For example, in the robot road show scene, in order to demonstrate the robot's athletic ability or other capabilities, staff need to perform task programming on site. The task programming method is to combine a series of robot behavior combinations based on the robot's basic capabilities, and then program a task, and then the robot executes the programmed task to achieve corresponding behavior control.

[0070] The capabilities of a robot can be understood as the behavioral functions provided by the robot itself, such as joint movement, lighting, navigation, radar, voice and other functions, which can all be called the capabilities of a robot. Basic capabilities are the smallest unit modules that cannot be further divided for the robot's behavior, also known as the robot's atomic module.

[0071] Each basic capability of the robot is an independent program module built into the robot. When the staff performs task programming, they can call one or more required basic capabilities through the API (Application Programming Interface) provided by each basic capability to realize the robot behavior control.

[0072] In the related technology, each part of the basic capabilities of the robot is developed independently, resulting in different programming languages ​​for each basic capability, and therefore different interface languages ​​are provided. For example, the robot's AI (Artificial Intelligence) capability can be developed based on the Python programming language, while the joint movement capability can be developed based on the C / C++ programming language. Therefore, when the staff calls these basic capabilities, they need to have the development capabilities of different programming languages ​​at the same time. The technical threshold is high, and the various basic capabilities cannot be flexibly combined and called, resulting in limited robot control effects. In addition, since each basic capability is an independent program module, each task occupies an independent process when the task is executed, which occupies a large amount of resources and has complex task operation and operation logic.

[0073] Based on the defects existing in the above-mentioned related technologies, the embodiments of the present disclosure provide a robot and its control method, device, and storage medium, which aim to integrate, classify and encapsulate the basic capabilities of the robot in advance and construct a capability set. When programming a task, all the basic capabilities of the robot can be directly called through the capability set, thereby improving the flexible combination and calling of the robot's capabilities, greatly simplifying the difficulty of task programming, and simplifying the task operation and operation logic, thereby improving the robot control effect.

[0074] Figure 1 A schematic diagram of the application scenario of the robot in some embodiments of the present disclosure is shown below. Figure 1 Provide explanation.

[0075] like Figure 1 As shown, in the scenario of the robot and the control method thereof of the example of the present disclosure, a user terminal 100 and a robot 200 are included, and the user terminal 100 and the robot 200 establish a communicative connection through wireless communication.

[0076] The user terminal 100 refers to the user device end. The user can edit the front-end information on the user terminal 100 and then send the front-end information to the robot 200. The front-end information can be, for example, task execution instructions, task operation requests, graphical information, etc. In the embodiments of the present disclosure, the user terminal 100 can be any device type suitable for implementation, for example, it can be a smart phone, a tablet computer, a laptop computer, etc., and the present disclosure does not limit this.

[0077] The robot 200 refers to the target object of behavior control. The robot behavior described in the embodiments of the present disclosure refers to any state change that occurs on the robot. For example, the robot behavior may include the movement of the robot, and may also include the robot making voice, vibration, etc., which are not limited in the present disclosure. In the embodiments of the present disclosure, the robot 200 may be a robot of any form, such as a bipedal robot, a quadrupedal robot, etc., which are not limited in the present disclosure.

[0078] Based on the above scenario, the following Figure 2 A robot control method according to an embodiment of the present disclosure will be described.

[0079] In some embodiments, the present disclosure provides a robot control method, which can be applied to the aforementioned robot 200. The control method includes:

[0080] S210: Determine a target capability module from a pre-established capability set according to module identification information included in a task operation request sent by a user terminal.

[0081] S220. Generate a corresponding target task for controlling the operation of the robot according to the target capability module and the task operation request.

[0082] S230, controlling the robot to run according to the target task.

[0083] In the disclosed embodiment, each basic capability of the robot may be integrated, classified and packaged in advance to obtain a capability set of the robot. The capability set may include multiple different capability modules according to capability categories, and each capability module includes at least one basic capability.

[0084] In some embodiments, the robot can be pre-divided into multiple preset categories according to its different capabilities, and then all the basic capabilities of the robot can be classified into each preset category. Then, the corresponding capability modules are constructed according to the basic capabilities included in each preset category, and finally, the capability modules corresponding to all categories are integrated to obtain the robot's capability set.

[0085] For example, in one example, the capability set described in the present disclosure includes a "Motion" capability module, which includes all basic capabilities for controlling the motion of each joint of the robot, such as waist joint motion capability, hip joint motion capability, knee joint motion capability, ankle joint motion capability, etc. When programming for robot motion tasks, users can call and arbitrarily combine the basic capabilities in the "Motion" capability module through the API interface provided by the capability set to achieve robot motion control.

[0086] In the implementation manner of the present disclosure, the process of constructing the capability set is described in the implementation manner below of the present disclosure and will not be described in detail here.

[0087] Combination Figure 1 As shown, in the embodiment of the present disclosure, when the user performs task programming, the user can send a task operation request to the robot 200 through the user terminal 100. The task operation request refers to a request instruction for task programming. It can be understood that task programming requires calling one or more basic capabilities of the robot. In the embodiment of the present disclosure, the basic capabilities of the robot are classified and encapsulated in various capability modules of the capability set, so the task operation request can include the module identification information corresponding to the capability module that needs to be called.

[0088] That is, when constructing a capability set, unique module identification information, such as module ID (Identity document, identity identifier), can be set for each capability module in the capability set. Thus, after receiving the task operation request sent by the user terminal 100, the robot 200 can obtain the module identification information carried in the task operation request by parsing the task operation request, and then determine one or more capability modules to be called from the capability set according to the module identification information, that is, the target capability module described in the present disclosure.

[0089] After determining the target capability module, task programming can be performed according to the task operation request and the called target capability module to obtain the corresponding target task for controlling the operation of the robot. For example, in one example, the user programming task is a task for controlling the movement of the robot, so the module identification information included in the task operation request can be the module identification information of the "Motion" capability module. The robot 200 determines the "Motion" capability module as the target capability module based on the module identification information of the "Motion" capability module included in the received task operation request, and then calls each basic capability in the "Motion" capability module according to the specific task parameters of the task operation request to complete the programming of the motion task. The obtained motion task is the target task described in the present disclosure.

[0090] In the embodiments of the present disclosure, after obtaining the target task, the robot can immediately run the target task to achieve robot behavior control; the target task can also be stored in the robot's task list, waiting for the user to call and run it later; the present disclosure does not impose any restrictions on this.

[0091] It can be understood that in the embodiments of the present disclosure, the capability set includes all the basic capabilities of the robot, and since all the basic capabilities are integrated in the same capability set, each capability module can be compiled based on the same programming language. Therefore, when the user is programming a task, all the basic capabilities of the robot can be called only through the API interface provided by the capability set, and the various capabilities are no longer restricted by the programming language and can be called in any combination, which makes programming simple and more flexible. In addition, when the robot task is running, only one process is needed to execute various tasks, which occupies less resources, and the logic of task operation and control is simple, which facilitates the control of task operation, suspension, continuation, termination, etc., and further improves the robot control effect.

[0092] From the above, it can be seen that in the embodiments of the present disclosure, the robot capability set is obtained by integrating, classifying and packaging the robot capabilities, and all the robot capabilities can be called through the capability set to achieve flexible combination calls between basic capabilities, simplify task programming operations, and reduce the occupation of robot resources by task running. The logic of task running and control is simple, thereby improving the robot control effect.

[0093] like Figure 3 As shown, in some embodiments, in the robot control method of the disclosed example, the process of pre-establishing a capability set includes:

[0094] S310: Classify the basic capabilities of the robot according to preset categories to obtain capability modules corresponding to each category.

[0095] S320. Construct a capability set based on the capability modules corresponding to each category.

[0096] In the disclosed embodiment, firstly, all basic capabilities of the robot may be integrated, and then the basic capabilities may be divided into a plurality of preset categories according to different capability types, each category including at least one basic capability, and then the capability module corresponding to each category may be constructed according to the basic capabilities included in each category.

[0097] For example, in one example, the preset categories of robot capabilities may include: audio capability, lighting effect capability, touchpad capability, positioning capability, power management capability, depth detection capability, radar detection capability, inertial data detection capability, odometer capability, ultrasonic communication capability, skin control capability, network capability, motion capability, navigation capability, target following capability, face recognition capability, voiceprint recognition capability, gesture recognition capability, personnel information management capability, and task management capability, totaling 20 categories of capabilities.

[0098] Therefore, all basic capabilities can be classified according to the above 20 preset categories, that is, the basic capabilities are classified according to the above preset categories, wherein each category includes at least one basic capability.

[0099] After integrating and classifying the basic capabilities of the robot, the capability modules corresponding to each category can be constructed based on the basic capabilities included in each category, that is, the capability modules corresponding to the above 20 categories are obtained, which are:

[0100] 1. Audio module

[0101] It may include a series of basic audio-related capabilities such as recording sound effects / audio, playing audio, playing text, and online conversations.

[0102] 2. Lighting effect (Led) module

[0103] It may include a series of basic capabilities related to lighting effects, such as playing, pausing, and changing the lighting effects of the robot's headlights, taillights, and eye lights.

[0104] 3. Touchpad module

[0105] It can include a series of basic capabilities related to the robot touchpad, such as querying the touchpad status and data.

[0106] 4. Positioning (GPS) module

[0107] It may include a series of basic capabilities related to the robot's satellite positioning GPS function, such as querying GPS status and data.

[0108] 5. Battery System (BMS) Module

[0109] It may include a series of basic capabilities related to the robot's BMS (Battery Management System) functions, such as battery charge, voltage, current, temperature, etc.

[0110] 6. Depth detection (ToF) module

[0111] It may include robot depth detection capabilities, such as ToF (Time of flight) data detection.

[0112] 7. Lidar module

[0113] It may include a series of basic capabilities related to the robot's radar functions, such as querying radar status and detection data.

[0114] 8. Inertial navigation (IMU) module

[0115] It can include a series of basic capabilities related to the robot's IMU (Inertial Measurement Unit), such as querying IMU status and detection data.

[0116] 9. Odometer module

[0117] It may include a series of basic capabilities related to the robot's odometer, such as querying the odometer status and data.

[0118] 10. Ultrasonic module

[0119] It may include a series of basic capabilities related to robot ultrasound, such as querying the status and data of ultrasonic sensors.

[0120] 11. Skin module

[0121] It may include basic capabilities related to robot skin, such as controlling skin state, etc.

[0122] 12. Network module

[0123] It may include a series of basic capabilities related to robot network information, such as controlling robot networks, etc.

[0124] 13. Motion module

[0125] It may include a series of basic capabilities related to the movement of robot joints, such as controlling the movement of each joint.

[0126] 14. Navigation module

[0127] It may include a series of basic capabilities related to robot navigation functions, such as controlling the robot to navigate to the target location in an existing map.

[0128] 15. Follow module

[0129] It may include the basic ability of the robot to follow a target, such as following the movement of a target object.

[0130] 16. Face Recognition Module

[0131] It may include a series of basic capabilities related to robot face recognition, such as collecting face images, performing face recognition based on image libraries, confirming target persons, etc.

[0132] 17. Voiceprint Recognition Module

[0133] It may include a series of basic capabilities related to robot voiceprint recognition, such as voiceprint collection, voiceprint recognition based on voiceprint library, confirmation of target personnel, etc.

[0134] 18. Gesture Recognition Module

[0135] It may include a series of basic capabilities related to robot gesture recognition, such as gesture image acquisition, gesture recognition based on gesture library, and confirmation of target personnel.

[0136] 19. Personnel Information Management (Personnel) Module

[0137] It may include a series of basic capabilities related to the acquisition of robot personnel information, such as obtaining the above-mentioned database information.

[0138] 20. Task Management Module

[0139] It may include basic capabilities for robot task control, such as controlling the running, pausing, and terminating of the current task.

[0140] In this example, the capability set of the robot is obtained by encapsulating the capability modules constructed above. The architecture of the capability set of the robot can be shown as follows: Figure 4 shown.

[0141] exist Figure 4 In the capability set architecture shown, the capability set includes not only the 20 capability modules mentioned above, but also the robot (Cyberdog) module and the capability set interface (Abilityset) module. The robot module is mainly responsible for providing the overall capabilities of the robot, covering the above 20 capability modules. The capability set interface module is responsible for providing the API interface of the entire capability set, which also involves the above 20 capability modules, so that one or more basic capabilities of any capability module in the capability set can be called through the API interface.

[0142] From the above, it can be seen that in the embodiments of the present disclosure, the robot capability set is obtained by integrating, classifying and packaging the robot capabilities, and all the robot capabilities can be called through the capability set to achieve flexible combination calls between basic capabilities, simplify task programming operations, and reduce the occupation of robot resources by task running. The logic of task running and control is simple, thereby improving the robot control effect.

[0143] It is worth mentioning that in the traditional solution described above, users need to program based on the robot's most basic capabilities when programming tasks. A complex motion task requires calling on a large number of basic capabilities, resulting in high programming difficulty and complex operation.

[0144] Based on this, in some embodiments of the present disclosure, when encapsulating each capability module, a higher-level capability submodule can be pre-built based on the basic capability to simplify the user task programming operation. Figure 5 The implementation method is described.

[0145] like Figure 5 As shown, in some embodiments, the robot control method of the present disclosure example, the process of constructing the capability module of each category includes:

[0146] S510: For each category, construct one or more capability sub-modules according to at least one basic capability corresponding to the category.

[0147] S520: Obtain a capability module corresponding to the category according to the basic capability and the capability submodules.

[0148] In the embodiments of the present disclosure, based on the foregoing, it can be known that the basic capability of the robot refers to the smallest behavior module that cannot be further divided, and the capability submodule described in the present disclosure is a higher-level capability built based on one or more basic capabilities, which can be understood as a combination of multiple basic capabilities of the robot.

[0149] In the disclosed implementation, for each category, a capability submodule may be constructed based on one or more basic capabilities of the category, and then these capability submodules and the original basic capabilities may be packaged into a capability module.

[0150] For example, in one example, the on and off of the robot's eye lights correspond to a basic capability respectively. If the user expects the robot to perform a task of "the eye lights turn on and off alternately at a fixed time". In the related technical solution, in task programming, it is necessary to set the robot's eye lights to continuously and alternately call these two basic capabilities at a fixed time. In the embodiment of the present disclosure, these two basic capabilities that respectively control the on and off of the robot's eye lights can be constructed into a capability submodule. When programming the task, the user can directly call the capability submodule to implement the programming of the above task, which greatly simplifies the programming difficulty and reduces the technical threshold for robot control.

[0151] The above description only takes one capability module as an example, and any capability module can be constructed through the above process, and the present disclosure will not repeat it. After obtaining each capability module, the final robot capability set can be constructed through the above process.

[0152] From the above, it can be seen that in the embodiment of the present disclosure, each capability module in the capability set includes a capability sub-module constructed based on the basic capability. The capability sub-module is higher-level than the basic capability, thereby further simplifying the user task programming operation and improving the robot control effect.

[0153] In some embodiments, taking into account the different technical levels of computer languages ​​of different user groups, for example, different users master different types of computer languages, if the robot capability set only provides an API interface in one language, it may not be able to meet the usage needs of some users. Therefore, in the embodiments of the present disclosure, multiple API interfaces in different languages ​​can be set for the capability set.

[0154] For example, in an example, the above capability set can provide an API interface based on C / C++ language. At the same time, pybind can be used to abstract an API interface that can be connected to the python language. That is, the capability set can provide API interfaces in three languages: C / C++ / python. No matter which programming language the user uses, it can meet the user's needs. Figure 6 The implementation method is described.

[0155] like Figure 6 As shown, in some embodiments, the robot control method of the present disclosure example, the process of constructing the target task includes:

[0156] S610: Determine a target interface from a plurality of program interfaces in a capability set according to an interface request of a task operation request.

[0157] S620: Call the target capability module through the target interface to generate a target task according to the target capability module and the task operation request.

[0158] In the disclosed embodiment, the pre-built capability set provides multiple program interfaces. For example, in the above example, the capability set provides API program interfaces in three languages: C / C++ / Python. When programming a task, a task operation request may include an interface request, which refers to the target program interface for calling a capability.

[0159] Thus, when the robot 200 receives the task operation request sent by the user terminal 100, it obtains the interface request by parsing the task operation request, and determines the interface of the calling capability, i.e., the target interface, from the three program interfaces according to the interface request. After determining the target interface, the target capability module can be called through the target interface, and then the corresponding target task is generated according to the target capability module and the task parameters of the task operation request.

[0160] From the above, it can be seen that in the embodiments of the present disclosure, the capability set can provide program interfaces in multiple languages, so that it can be applied to different programming languages ​​to realize robot control, thereby improving the practicality and control effect of the robot.

[0161] Combination Figure 1In some embodiments, the robot control method of the present disclosure can be applied to a graphical programming scenario. It is understandable that ordinary users generally do not have professional task programming capabilities. Therefore, in some embodiments of the present disclosure, a graphical information interface can be provided to the user at the user terminal 100, and the user can implement task programming by operating the graphical information. Figure 7 The implementation method is described.

[0162] like Figure 7 As shown, in some embodiments, the robot control method of the example of the present disclosure determines the target capability module from the pre-established capability set, including:

[0163] S710 . In response to receiving graphical information sent by a user terminal, parse the graphical information to obtain a task operation request.

[0164] S720: Determine a target capability module from a capability set according to the module identification information included in the task operation request.

[0165] In the embodiments of the present disclosure, Figure 1 As shown, a graphical interface can be provided for the user on the user terminal 100 side, so that the user only needs to perform graphical operations on the user terminal 100, and the user terminal 100 can generate corresponding graphical information and send the graphical information to the robot 200.

[0166] For example, in one example, the capabilities of the robot may be abstracted into various graphical modules such as rectangles and diamonds, and the user may generate corresponding graphical information by dragging these graphical modules on the user terminal 100 .

[0167] For example, in another example, the image interface output by the user terminal 100 may be a virtual image of a robot, and the user may generate corresponding graphical information by operating parts of the virtual robot on the user terminal 100.

[0168] After generating the corresponding graphical information, the user terminal can send the graphical information to the robot 200. After receiving the graphical information sent by the user terminal 100, the robot 200 can parse the graphical information to obtain the corresponding task operation request, and then parse the task operation request through the aforementioned method process to determine the corresponding target capability module, and construct the target task. Those skilled in the art can refer to the aforementioned, and the present disclosure will not elaborate on it.

[0169] From the above, it can be seen that in the embodiments of the present disclosure, the user programming operation is simplified through the graphical interface of the user terminal, the technical threshold for robot task programming is lowered, the operation of the robot is convenient for ordinary users, and the practicality and popularity of the robot are improved.

[0170] In some embodiments, the target task constructed by the above embodiment can be stored in the robot, and the target task is executed when the execution instruction is received. Figure 8 The implementation method is described.

[0171] like Figure 8 As shown, in some embodiments, the robot control method of the present disclosure example includes:

[0172] S810: Generate a target task according to the target capability module and the task operation request, and store the target task in the robot.

[0173] S820: In response to receiving an execution instruction of a target task sent by a user terminal, controlling the robot to execute according to the target task.

[0174] In the embodiment of the present disclosure, the target task can be obtained based on the target capability module and the task operation request based on the above process, and the present disclosure will not repeat this. After obtaining the target task, it is not immediately executed, but the target task can be stored in the robot, so that the user can call and run the target task at any time in the future.

[0175] It can be understood that in the embodiment of the present disclosure, multiple tasks can be generated in advance and stored in the robot's task list. When a user needs to run a task, a running instruction can be sent through the user terminal 100, and the running instruction can carry the task ID of the target task to be run. Therefore, after receiving the task running instruction, the robot 200 can determine the corresponding target task from the task list according to the task ID carried in the running instruction, and run the target task, thereby realizing the control of the robot operation.

[0176] From the above, it can be seen that in the embodiments of the present disclosure, by saving the constructed tasks locally on the robot, the pre-saved tasks can be run at any time without repeated programming, which is convenient for user operation and improves the robot operation experience.

[0177] Combination Figure 4 Robot capability set architecture, in the disclosed embodiment, a task module is set for the robot, so that the operation control of the task can be realized.

[0178] For example, in some implementations, when the robot is executing a target task, the user may send a control instruction to the robot through the user terminal 100. After receiving the control instruction, the robot 200 may call a task module to implement operations such as pausing, continuing, terminating, or emergency stopping the currently executing task.

[0179] When the control instruction is a pause instruction, the robot can control the current task to pause. When the control instruction is a continue instruction, the robot can control the current task to continue. When the control instruction is a termination instruction, the robot can control the current task to end. When the control instruction is an emergency stop, the robot can control all current behaviors to end and maintain a safe state.

[0180] It can be seen from the above that in the embodiments of the present disclosure, various managements of robot operation tasks are implemented through the task modules of the capability set, thereby ensuring the safe and reliable operation of the robot and improving the control effect of the robot.

[0181] In some embodiments, the present disclosure provides a robot control device, which can be applied to the aforementioned robot 200.

[0182] like Fig. 9 As shown, in some embodiments, the robot control device of the example of the present disclosure includes:

[0183] The determination module 10 is configured to determine a target capability module from a pre-established capability set according to the module identification information included in the task operation request sent by the user terminal; the capability set includes a plurality of capability modules, and the capability modules are used to control one or more basic capabilities of the robot;

[0184] A generating module 20, configured to generate a corresponding target task for controlling the operation of the robot according to the target capability module and the task operation request;

[0185] The operation module 30 is configured to control the operation of the robot according to the target task.

[0186] From the above, it can be seen that in the embodiments of the present disclosure, the robot capability set is obtained by integrating, classifying and packaging the robot capabilities, and all the robot capabilities can be called through the capability set to achieve flexible combination calls between basic capabilities, simplify task programming operations, and reduce the occupation of robot resources by task running. The logic of task running and control is simple, thereby improving the robot control effect.

[0187] In some embodiments, the apparatus described in the present disclosure further includes a capability set construction module, wherein the capability set construction module is configured to:

[0188] Classify the basic capabilities of the robot according to preset categories to obtain the capability module corresponding to each category;

[0189] The capability set is constructed according to the capability modules corresponding to each category.

[0190] From the above, it can be seen that in the embodiments of the present disclosure, the robot capability set is obtained by integrating, classifying and packaging the robot capabilities, and all the robot capabilities can be called through the capability set to achieve flexible combination calls between basic capabilities, simplify task programming operations, and reduce the occupation of robot resources by task running. The logic of task running and control is simple, thereby improving the robot control effect.

[0191] In some implementations, the capability set building module is configured to:

[0192] For each category, one or more capability submodules are constructed based on at least one basic capability corresponding to the category;

[0193] The capability module corresponding to the category is obtained according to the basic capability and the capability submodule.

[0194] From the above, it can be seen that in the embodiment of the present disclosure, each capability module in the capability set includes a capability sub-module constructed based on the basic capability. The capability sub-module is higher-level than the basic capability, thereby further simplifying the user task programming operation and improving the robot control effect.

[0195] In some implementations, the generating module 20 is configured to:

[0196] Determining a target interface from a plurality of program interfaces of the capability set according to an interface request of the task operation request;

[0197] The target capability module is called through the target interface to generate the target task according to the target capability module and the task operation request.

[0198] From the above, it can be seen that in the embodiments of the present disclosure, the capability set can provide program interfaces in multiple languages, so that it can be applied to different programming languages ​​to realize robot control, thereby improving the practicality and control effect of the robot.

[0199] In some implementations, the determination module 10 is configured to:

[0200] In response to receiving the graphical information sent by the user terminal, parsing the graphical information to obtain the task operation request;

[0201] According to the module identification information included in the task operation request, a target capability module is determined from the capability set.

[0202] From the above, it can be seen that in the embodiments of the present disclosure, the user programming operation is simplified through the graphical interface of the user terminal, the technical threshold for robot task programming is lowered, the operation of the robot is convenient for ordinary users, and the practicality and popularity of the robot are improved.

[0203] In some implementations, the generating module 20 is configured to:

[0204] generating the target task according to the target capability module and the task operation request, and storing the target task in the robot;

[0205] In some embodiments, the operation module 30 is configured to:

[0206] In response to receiving the running instruction of the target task sent by the user terminal, the robot is controlled to run according to the target task.

[0207] From the above, it can be seen that in the embodiments of the present disclosure, by saving the constructed tasks locally on the robot, the pre-saved tasks can be run at any time without repeated programming, which is convenient for user operation and improves the robot operation experience.

[0208] In some embodiments, the operation module 30 is configured to:

[0209] During the operation of the robot, in response to receiving a control instruction of the target task, the target task is controlled to run according to the control instruction.

[0210] It can be seen from the above that in the embodiments of the present disclosure, various managements of robot operation tasks are implemented through the task modules of the capability set, thereby ensuring the safe and reliable operation of the robot and improving the control effect of the robot.

[0211] In some embodiments, the present disclosure provides a robot, comprising:

[0212] processor;

[0213] A memory stores computer instructions, wherein the computer instructions are used to enable a processor to execute the method described in any of the above embodiments.

[0214] In some embodiments, the present disclosure provides an example storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the method described in any of the above embodiments.

[0215] Specifically, Fig.10 A schematic diagram of the structure of a robot 600 suitable for implementing the method disclosed in the present invention is shown. Fig.10 The robot shown can realize the corresponding functions of the above-mentioned processor and storage medium.

[0216] like Fig.10As shown, the robot 600 includes a processor 601, which can perform various appropriate actions and processes according to a program stored in a memory 602 or a program loaded from a storage part 608 into the memory 602. In the memory 602, various programs and data required for the operation of the robot 600 are also stored. The processor 601 and the memory 602 are connected to each other through a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0217] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.

[0218] In particular, according to an embodiment of the present disclosure, the above method process can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program tangibly contained on a machine-readable medium, and the computer program includes a program code for executing the above method. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 609, and / or installed from a removable medium 611.

[0219] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and a module, a program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0220] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the embodiments. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. The obvious changes or modifications derived therefrom are still within the scope of protection of the present invention.

Claims

1. A robot control method, characterized in that: Applied to a robot, the method comprises: Determine a target capability module from a pre-established capability set according to module identification information included in a task operation request sent by a user terminal; the capability set includes a plurality of capability modules, and the capability module includes one or more basic capabilities of the robot; The target capability module is called through the capability set interface module included in the capability set, and a corresponding target task for controlling the operation of the robot is generated based on the task operation request; wherein the capability set interface module is an interface for calling all capability modules; The robot is controlled to operate according to the target task.

2. The method according to claim 1, characterized in that The process of pre-establishing the capability set includes: Classify the basic capabilities of the robot according to preset categories to obtain the capability module corresponding to each category; The capability set is constructed according to the capability modules corresponding to each category.

3. The method according to claim 2, characterized in that The basic capabilities of the robot are classified according to preset categories to obtain the capability modules corresponding to each category, including: For each category, one or more capability submodules are constructed based on at least one basic capability corresponding to the category; The capability module corresponding to the category is obtained according to the basic capability and the capability submodule.

4. The method according to claim 1, characterized in that: The step of determining the target capability module from a pre-established capability set according to the module identification information included in the task operation request sent by the user terminal includes: In response to receiving the graphical information sent by the user terminal, parsing the graphical information to obtain the task operation request; According to the module identification information included in the task operation request, a target capability module is determined from the capability set.

5. The method according to claim 1, characterized in that The calling of the target capability module through the capability set interface module included in the capability set, and generating a corresponding target task for controlling the operation of the robot based on the task operation request, includes: generating the target task according to the target capability module and the task operation request, and storing the target task in the robot; The step of controlling the robot to run according to the target task comprises: In response to receiving the running instruction of the target task sent by the user terminal, the robot is controlled to run according to the target task.

6. The method according to claim 1, characterized in that The step of controlling the robot to run according to the target task comprises: During the operation of the robot, in response to receiving a control instruction of the target task, the target task is controlled to run according to the control instruction.

7. A robot control device, characterized in that: Applied to a robot, the device comprises: A determination module is configured to determine a target capability module from a pre-established capability set according to module identification information included in a task operation request sent by a user terminal; the capability set includes a plurality of capability modules, and the capability modules are used to control one or more basic capabilities of the robot; A generation module, configured to call the target capability module through the capability set interface module included in the capability set, and generate a corresponding target task for controlling the operation of the robot based on the task operation request; wherein the capability set interface module is an interface for calling all capability modules; An operation module is configured to control the operation of the robot according to the target task.

8. A robot, characterized in that: include: processor; A memory storing computer instructions, wherein the computer instructions are used to enable a processor to execute the method according to any one of claims 1 to 6.

9. A storage medium, characterized in that: Computer instructions are stored, and the computer instructions are used to make a computer execute the method according to any one of claims 1 to 6.