Robot programming method and device based on body language and instruction alignment and medium

Through a method based on the alignment of body language and instructions, the complex robot programming task is decomposed into subtasks, and the user's body language is recognized through deep learning, which solves the problems of difficulty in user programming and poor generalization performance in the existing technology, and realizes user Friendly personalized task processing and high-accuracy expression of programming instructions.

CN118809618APending Publication Date: 2024-10-22NINGBO DIGITAL TWIN (EASTERN UNIV OF TECH) RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411182921.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-27
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

Existing robot programming methods are difficult to use for users without programming experience. Especially when dealing with personalized tasks, users need to have certain programming knowledge and equipment, and have poor generalization performance, making it difficult to handle diverse user private tasks. .

Method used

Using a robot programming method based on the alignment of body language and instructions, the human-computer interaction task is decomposed into subtasks, the user's body language is collected through real-time video information, the target position, movement trajectory strategy and operation strategy are identified, and converted into programming instructions, using depth The learning and heat map generation network improves the recognition accuracy of target locations, programmed using multi-channel body language information.

Benefits of technology

It reduces the difficulty of programming for non-professional users, enables users to complete complex tasks through standardized body language, improves the accuracy and complexity of expression of programming instructions, and is suitable for ordinary users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118809618A_ABST
    Figure CN118809618A_ABST
Patent Text Reader

Abstract

The invention discloses a robot programming method and device based on body language and instruction alignment and a medium, and relates to the technical field of man-machine interaction, and the method comprises the steps: collecting real-time video information corresponding to a current subtask, and collecting a user body language in the real-time video information; identifying a target position, a motion track strategy and a target operation strategy according to the collected body language; and recognizing the recognized target position, the movement track strategy and the operation execution strategy, and converting the recognized target position, the movement track strategy and the operation execution strategy into corresponding aligned programming instructions according to a recognition sequence. According to the method, a user can decompose a complex man-machine interaction task into a plurality of sub-tasks according to own preferences, the sub-tasks are programmed through a predefined standardized body language so as to complete the complex interaction task, and the method is friendly and easy to use for common users without robot knowledge and programming experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of human-computer interaction technology, and in particular to a robot programming method, device and medium based on alignment of body language and instructions. Background Art

[0002] In today's society, robot technology is developing rapidly, and more and more robots are entering thousands of households. Users can program robots, that is, describe a specific task to the robot in a specific way, so as to drive the robot to help them complete the corresponding task, such as cleaning the desktop, passing tools, etc. Although such a mode of driving robots to serve themselves provides convenience for people's daily activities, it is a huge challenge for people who have no experience in robot programming. Although robot manufacturers currently provide a wealth of control program interfaces for robot control and task description, this code-based programming requires users to have a certain degree of understanding of basic robot knowledge and programming languages, and have the ability to program, debug, simulate, and deploy robot control codes. These requirements limit the application of daily life robots to handle user personalized tasks.

[0003] To overcome these challenges, many researchers have proposed various strategies, such as using human knowledge of the environment to guide the robot's motion planning, or more actively showing the robot their intentions through demonstrations, rather than relying on the robot's active estimation. They use techniques such as imitation learning / reinforcement learning to demonstrate to the service robot how to handle a task in the hope of enabling the robot to learn the ability to handle the task. However, this method requires a large number of demonstrations to teach the robot, and the robot's ability to handle things has poor generalization performance, that is, it cannot handle a variety of user private tasks well.

[0004] In recent years, some non-coding robot programming methods based on human performance (such as gaze, voice, and gesture) have been promoted. However, these methods still have some challenges. Some studies use augmented reality / virtual reality technology to achieve human-robot interaction, that is, to describe the movement of the robot through predefined robot motion units through augmented reality technology, so as to achieve the goal of programming the robot. However, this method requires users to use additional equipment to implement this programming method. At present, with the rise of large language model (LLM) technology, some robot programming methods based on text or language information are gradually emerging. However, in order for the robot to better handle the user's personalized tasks, these methods often require users to write prompt text or fine-tune LLM, which are difficult for non-professional robot users. Summary of the invention

[0005] In order to reduce the difficulty of robot programming for non-professional users and better handle user personalized tasks, the present invention proposes a robot programming method based on body language and instruction alignment, which decomposes the human-computer interaction task into several subtasks, specifically including the following steps:

[0006] S1: Collect the real-time video information corresponding to the current subtask, and collect the user's body language in the real-time video information;

[0007] S2: Identify the target position, motion trajectory strategy, and target operation strategy based on the collected body language;

[0008] S3: Identify the target position, motion trajectory strategy, and operation execution strategy and convert them into corresponding aligned programming instructions according to the recognition order;

[0009] S4: Determine whether the instruction information for programming the next subtask is received. If so, enter the next subtask programming and return to step S1. If not, end the current human-computer interaction task.

[0010] Furthermore, the step S1 further includes the following steps:

[0011] S0: Determine whether the starting instruction information of the human-computer interaction task is received. If so, enter step S1; if not, return to step S0.

[0012] Furthermore, in step S2, the target position is obtained by the following steps:

[0013] Identify head and hand gestures in body language, and estimate the gaze direction and finger direction based on the recognition results;

[0014] Generate a gaze direction probability map and a finger direction probability map based on the estimation results, and obtain a fused probability map;

[0015] Combine the fused probability map with the image frame corresponding to the body language, and generate a heat map through a heat map generation network;

[0016] The location with the largest heat value in the heat map is identified as the target location.

[0017] Furthermore, in the step S2, when it is necessary to program a target rotation operation instruction, the desired rotation angle is programmed in a gesture coordinate system through two consecutive gesture instructions, and the gesture coordinate system is constructed by Euler angles of fingers.

[0018] Furthermore, the desired rotation angle is obtained by the following formula:

[0019]

[0020] Where R(α, β, γ) is the desired rotation angle in the gesture coordinate system based on the Euler angle. is the rotation matrix from the first gesture command coordinate F1 to the second gesture command coordinate F2, R i F is the gesture coordinate system i With the robot coordinate system F r The corresponding rotation matrix.

[0021] Furthermore, in step S2, obtaining the motion trajectory strategy includes the following steps:

[0022] According to the gesture instructions in the body language, the coordinate point set of the camera three-dimensional coordinate system of the fingertips is obtained;

[0023] Several key points in the motion trajectory composed of a set of coordinate points are extracted as the motion trajectory strategy.

[0024] Furthermore, in the step S3, the programming instructions corresponding to the alignment of the motion trajectory strategy are converted in the following manner:

[0025] By mapping the motion trajectory strategy from the camera coordinate system to the robot coordinate system, programming instructions under collision detection are written based on the motion trajectory strategy in the robot coordinate system.

[0026] The present invention also includes a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the robot programming method based on alignment of body language and instructions are implemented.

[0027] Also included is a device for processing data, comprising:

[0028] a memory having a computer program stored thereon;

[0029] A processor is used to execute the computer program in the memory to implement the steps of the robot programming method based on alignment of body language and instructions.

[0030] Compared with the prior art, the present invention has at least the following beneficial effects:

[0031] (1) The robot programming method, device and medium based on alignment of body language and instructions described in the present invention allow users to decompose complex human-computer interaction tasks into several subtasks according to their own preferences, and program these subtasks through predefined standardized body language to complete the complex interaction task;

[0032] (2) The robot programming method based on the body language-programming instruction dataset and considering the alignment of body language-programming instructions is friendly and easy to use for ordinary users who have no robot knowledge and programming experience;

[0033] (3) Using multi-channel body language information to program robots not only improves the accuracy of robot programming instructions, but also allows users to express more complex programming instructions. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 A step-by-step diagram for a robot programming method based on aligning body language with instructions;

[0035] Figure 2 This is a schematic diagram of the gesture coordinate system. DETAILED DESCRIPTION

[0036] The following are specific embodiments of the present invention and the accompanying drawings to further describe the technical solution of the present invention, but the present invention is not limited to these embodiments.

[0037] Existing research on programming robot motion paths through gestures or line of sight to ensure that the robot moves along the path desired by the user often requires the user to wear some wearable devices or deploy multiple cameras in addition to the robot body to obtain 3D path points programmed by gestures or line of sight to form the robot's motion path. On the one hand, long-term wearing of these wearable devices has affected the user's normal life. On the other hand, even with these additional devices, it is still difficult for users to obtain accurate 3D path points. In response to this, Figure 1 As shown, the present invention proposes a robot programming method based on alignment of body language and instructions, which decomposes the human-computer interaction task into several subtasks, specifically including the steps of:

[0038] S0: Determine whether the starting instruction information of the human-computer interaction task is received. If so, enter step S1; if not, return to step S0;

[0039] S1: Collect the real-time video information corresponding to the current subtask, and collect the user's body language in the real-time video information;

[0040] S2: Identify the target position, motion trajectory strategy, and target operation strategy based on the collected body language;

[0041] S3: Identify the target position, motion trajectory strategy, and operation execution strategy and convert them into corresponding aligned programming instructions according to the recognition order;

[0042] S4: Determine whether the instruction information for programming the next subtask is received. If so, enter the next subtask programming and return to step S1. If not, end the current human-computer interaction task.

[0043] Usually, a complex robot programming interaction task may need to include many task objectives. Therefore, according to the human-computer interaction task definition provided by the present invention, we can first decompose the complex interaction task Lc into several subtasks Li.

[0044] Subtask Li∈I={∪L,∪O,∪M}, where we define each subtask as a series of different types of action instructions aligned with programming instructions. These instructions include L, which is used to describe the task target position information, M, which describes the motion trajectory that the robot should take, and O, which is used to tell the robot what action to take to process the target object after reaching the target position.

[0045] We first list six body language actions commonly used in robot programming, including six gestures, namely: O = {Hold, Action, Point, Pick, Place, Rotate}. Among them, in this embodiment, the Hold gesture is defined as telling the robot to pause the programming process and wait for further action commands, the Action gesture is used to tell the robot to continue programming, the Direction gesture (that is, finger pointing) is used to tell the robot to program the position L and movement M, the Pick gesture is used to program the robot to pick up the target in Li, the Place gesture is used to program the robot to place the target in Li, and the Rotation gesture is used to program the robot to change the target posture (roll, pitch, yaw).

[0046] Based on the above gesture definition, the present invention first uses a deep learning network architecture to detect the user's line of sight and finger pointing to infer the target position L that the user wants to select for the robot. The robot detects the user's body language in real time through its own camera. When the user performs position programming, the robot takes a photo of the user through the camera, and then uses the pre-trained Mediapipe model to extract the user's head posture and gesture posture. The first direction estimation module of the network structure estimates the user's line of sight and finger pointing direction through these head postures and gesture postures. In the second fusion module, the network generates a probability map based on two directions and fuses the two probability maps into one probability map. The probability map shows the direction in which the target may appear; in the last module, the network combines the fused probability map with the initial input image, and generates a heat map through the heat map production network. The position with the largest heat value in the heat map is the target position.

[0047] Here, the present invention provides a higher position estimation accuracy compared to the direction estimation under single body language by bidirectional recognition of the line of sight direction and the finger direction and recognition of the target position under staggered directions.

[0048] Then, we use the YoloV5 network architecture to detect the gesture recognition task in the process of programming robot interaction tasks using body language gestures. Once the robot recognizes the user's gestures during programming, the robot knows how to handle the target object.

[0049] Since the rotation operation of the object requires telling the robot the specific rotation angle, we use Figure 2 The method shown helps the programming robot recognize the rotation angle information of the target object. In the process of programming the rotation angle, the user needs to give two Rotate gestures in succession, and the Euler angle is constructed by the angle between the fingers to realize the formation of the gesture coordinate system, such as Figure 2 For F1 and F2 shown in the figure, we define the gesture coordinate system in the manner of sub-figure b. Once the robot detects two Rotate gestures, the robot can calculate the user's desired rotation angle of the target object as follows:

[0050]

[0051] Where R(α, β, γ) is the desired rotation angle in the gesture coordinate system based on the Euler angle. is the rotation matrix from the first gesture command coordinate F1 to the second gesture command coordinate F2, R i F is the gesture coordinate system i With the robot coordinate system F r The corresponding rotation matrix.

[0052] After completing the programming expression of the target position L and the operation O taken on the target, the programming of how to realize the motion trajectory M is explained. In this embodiment, the motion strategy of the fingertip moving from the starting point A to the target point B is obtained by identifying the fingertip in the direction gesture. Although the robot can use the path search algorithm to plan the path by itself, the actual use of M to plan the path is more in line with the actual needs of the user. The reason is that M contains human prior knowledge about the environment and interaction tasks, and prior knowledge is a challenge for the robot's perception and estimation. More importantly, the motion planned by M is user-friendly because the user can design the robot's motion according to personal preferences.

[0053] In the process of programming the motion trajectory through gestures, the 3D coordinates of the user's index finger tip in the camera coordinate system are first extracted from the image captured by the camera. Then, a genetic algorithm (GA) is used to extract multiple key points from the motion trajectory demonstrated by the user. These key points are then recorded as the motion strategy Mc. The motion strategy Mc is mapped from the camera coordinate system to Mr in the robot coordinate system using spatial operations. Mr is the motion strategy written by the user to drive the robot. Finally, check whether there is a collision risk on the path. After these four steps, the robot motion strategy Ms is written.

[0054] Based on the above, the programming of a single subtask in human-computer interaction can be completed. Of course, in actual applications, a complete set of robot actions requires the combination of multiple subtasks. In the process of programming multiple subtasks, the segmentation judgment between consecutive subtask programming can be triggered by any instruction information (such as buttons, special gestures), and the next subtask can be determined after the robot completes the current subtask.

[0055] At the same time, the present invention also includes a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the robot programming method based on alignment of body language and instructions are implemented.

[0056] Also included is a device for processing data, comprising:

[0057] a memory having a computer program stored thereon;

[0058] A processor is used to execute the computer program in the memory to implement the steps of the robot programming method based on alignment of body language and instructions.

[0059] In summary, the robot programming method, device and medium based on body language and instruction alignment described in the present invention allow users to decompose complex human-computer interaction tasks into several subtasks according to their own preferences, and program these subtasks through predefined standardized body language to complete the complex interaction task.

[0060] The robot programming method based on the body language-programming instruction dataset and considering the alignment of body language-programming instruction is friendly and easy to use for ordinary users without robot knowledge and programming experience. Using multi-channel body language information to program the robot not only improves the accuracy of robot programming instruction expression, but also allows users to express more complex programming instructions.

[0061] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0062] In addition, in the present invention, descriptions such as "first", "second", "one", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0063] In the present invention, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0064] In addition, the technical solutions between the various embodiments of the present invention can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

Claims

1. A robot programming method based on alignment of body language and instructions, It is characterized in that Decompose the human-computer interaction task into several subtasks, including the following steps: S1: Collect the real-time video information corresponding to the current subtask, and collect the user's body language in the real-time video information; S2: Identify the target position, motion trajectory strategy, and target operation strategy based on the collected body language; S3: Identify the target position, motion trajectory strategy, and operation execution strategy and convert them into corresponding aligned programming instructions according to the recognition order; S4: Determine whether the instruction information for programming the next subtask is received. If so, enter the next subtask programming and return to step S1. If not, end the current human-computer interaction task.

2. A robot programming method based on alignment of body language and instructions as claimed in claim 1, It is characterized in that The S1 step also includes the following steps: S0: Determine whether the starting instruction information of the human-computer interaction task is received. If so, enter step S1; if not, return to step S0.

3. A robot programming method based on alignment of body language and instructions as claimed in claim 1, It is characterized in that In step S2, the target position is obtained by the following steps: Identify head and hand gestures in body language, and estimate the gaze direction and finger direction based on the recognition results; Generate a gaze direction probability map and a finger direction probability map based on the estimation results, and obtain a fused probability map; Combine the fused probability map with the image frame corresponding to the body language, and generate a heat map through a heat map generation network; The location with the largest heat value in the heat map is identified as the target location.

4. A robot programming method based on alignment of body language and instructions as claimed in claim 1, It is characterized in that In the step S2, when it is necessary to program a target rotation operation instruction, the desired rotation angle is programmed in a gesture coordinate system through two consecutive gesture instructions, and the gesture coordinate system is constructed by Euler angles of fingers.

5. A robot programming method based on alignment of body language and instructions as claimed in claim 4, It is characterized in that The desired rotation angle is obtained by the following formula: Where R(α, β, γ) is the desired rotation angle in the gesture coordinate system based on the Euler angle. F is the coordinate of the first gesture command 1 To the second gesture command coordinate F 2 The rotation matrix, R i F is the gesture coordinate system i With the robot coordinate system F r The corresponding rotation matrix.

6. A robot programming method based on alignment of body language and instructions as claimed in claim 1, It is characterized in that In the step S2, the acquisition of the motion trajectory strategy includes the following steps: According to the gesture instructions in the body language, the coordinate point set of the camera three-dimensional coordinate system of the fingertips is obtained; Several key points in the motion trajectory composed of a set of coordinate points are extracted as the motion trajectory strategy.

7. A robot programming method based on alignment of body language and instructions as claimed in claim 6, It is characterized in that In step S3, the programming instructions corresponding to the alignment of the motion trajectory strategy are converted in the following manner: By mapping the motion trajectory strategy from the camera coordinate system to the robot coordinate system, programming instructions under collision detection are written based on the motion trajectory strategy in the robot coordinate system.

8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the steps of the programming method according to any one of claims 1 to 7 are implemented.

9. A device for processing data, It is characterized in that include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the programming method according to any one of claims 1 to 7.