Vision-based humanoid robot double-arm follow-up control method and system and robot

The Kinect visual sensor collects data in real time, calculates the position of human body joints, and realizes the follow-up control of the humanoid robot's arms. It solves the problems of inconvenience and light error of wearable devices and provides high-precision and smooth visual follow-up control.

CN118848990AActive Publication Date: 2024-10-29WU XI WU JIE TAN SUO KE JI YOU XIAN GONG SI
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411301088.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-18
Publication Date
2024-10-29
Estimated Expiration
2044-09-18

AI Technical Summary

Technical Problem

In the existing humanoid robot follow-up control technology, wearing a skeleton is inconvenient and costly, visual recognition is easily affected by light, causing deviations in joint conversion data, and the inverse solution of three-dimensional spatial coordinates is not unique, making it difficult to achieve accurate control.

Method used

The Kinect visual sensor collects human body image data in real time, identifies the joint point positions, calculates the rotational freedom, included angle and axial rotation angle, and uses linear interpolation to realize the follow-up control of the humanoid robot's arms, avoid wearing equipment, and solve the problem of light errors and multiple problems. Solve the problem.

Benefits of technology

It realizes visual arm follow-up control, with an error resolution of 1 degree, good smoothness, and high real-time performance. It is suitable for visual follow-up of teleoperated robots, replacing traditional wearable devices, and solving the problem of error jitter in the visual recognition process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118848990A_ABST
    Figure CN118848990A_ABST
Patent Text Reader

Abstract

The invention discloses a humanoid robot two-arm follow-up control method and system based on vision and a robot, and the method comprises the steps: obtaining the spatial position information of human body joint points based on collected human body real-time image data; according to the position information of the articulation points, respectively calculating rotational degrees of freedom of shoulder joints of left and right big arms of the human body, included angles of elbow joints of left and right hand arms and axial rotation angles of the left and right big arms; and performing linear interpolation on the obtained parameter values, and sending the parameter values to a robot control module at a set frequency so as to realize follow-up control of the two arms of the humanoid robot. Two-arm follow-up control of the humanoid robot is achieved through vision, and compared with a traditional direct inversion solution, the problem of multiple solutions does not exist; the real-time performance is good and can reach 25fps, and the method has a wide application prospect in visual follow-up control of the teleoperation robot; and the data synchronization frequency is greater than the visual detection frequency, so that the humanoid robot has better smoothness in the visual follow-up process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of robot control, and in particular relates to a vision-based humanoid robot double-arm follow-up control method, system and robot. Background Art

[0002] Humanoid robot follow-up control is an important part of humanoid robot teleoperation technology. It refers to collecting motion data of human joints through various sensors, converting such data into rotation data of each joint of the robot, and thus controlling the movement of the humanoid robot. In the existing technology, the collection of human joint data is mainly achieved by wearing a skeleton. The operator needs to have certain professional training to be proficient in operation. It is inconvenient to wear, has a high threshold for use and is expensive, which is not conducive to use in some non-high-precision occasions. Secondly, in the existing visual recognition of the human skeleton process, it is easily affected by environmental factors such as light, resulting in the position of the joint point jumping during the recognition process, which leads to a large deviation in the conversion of the joint into the robot angle data. In addition, the solution to reverse the rotation of the joint through the three-dimensional space coordinate point is not unique, and it is difficult to decide which solution to use to control the movement of the humanoid robot joint rotation. Summary of the invention

[0003] In order to solve the above technical problems, the present invention provides a vision-based humanoid robot dual-arm follow-up control method, system and robot.

[0004] The technical solution provided by the present invention is specifically as follows: A vision-based humanoid robot dual-arm follow-up control method comprises the following steps: S1, real-time collection of human image data, including depth images and RGB images; S2. Based on the collected image data, spatial position information of human joints is obtained, where the joints include head J1, shoulder center J2, right shoulder J3, right elbow J4, right wrist J5, right hand J6, left shoulder J7, left elbow J8, left wrist J9, left hand J10, spine J11, hip center J12, right hip J13, right knee J14, right ankle J15, right foot J16, left hip J17, left knee J18, left ankle J19 and left foot J20; S3, calculating the rotational freedom of the shoulder joint of the left upper arm of the human body according to the position information of the left shoulder J7 and the left elbow J8; S4, calculating the rotational freedom at the shoulder joint of the right upper arm of the human body according to the position information of the right shoulder J3 and the right elbow J4; S5. Calculate the angle at the left arm elbow joint according to the position information of the left shoulder J7, the left elbow J8 and the left wrist J9; S6. Calculate the angle at the elbow joint of the right arm according to the position information of the right shoulder J3, the right elbow J4 and the right wrist J5; S7. Calculate the axial rotation angle of the left upper arm based on the position information of the left shoulder J7, left elbow J8, and left wrist J9; S8. Calculate the axial rotation angle of the right upper arm based on the position information of the right shoulder J3, right elbow J4, and right wrist J5; S9. Linearly interpolate the rotational degrees of freedom, included angles, and axial rotation angles calculated in S3 - S8, and send them to the corresponding joint control modules of the humanoid robot at a set frequency to achieve the follow - up control of the two arms of the humanoid robot.

[0005] Preferably, in step S1, the image data of the human body is obtained in real - time through a Kinect vision sensor. In step S2, based on the Kinect human skeleton recognition technology, the human skeleton within the image field of view is recognized, and then the position information of each joint point of the skeleton in three - dimensional space is obtained.

[0006] Further, in step S3, assuming that the spatial coordinates of the left shoulder J7 and left elbow J8 are ([[]] x 7, y 7, z 7) and ( x 8, y 8, z 8) respectively, then: S301. Calculate the length of the left upper arm ; S302. Set the initial state of the left upper arm to be vertically downward along the y - axis. Taking the left shoulder joint as the origin, the initial position of the left elbow joint , and the actual position is ; S303. Set the angle range for the shoulder joint to lift as RXstart = 0, RXend = 90. If y8 - y7 ≥ 0, then set RXstart = 90, RXend = 180; and set Rz = 0, Rx = RXstart, minErr = 100; S304. Calculate the predicted position of the left elbow joint , where the rotation matrices MR L1 and MR L2 are respectively: , ; S305. Calculate the error between the predicted position and the actual position of the elbow joint , if E L <minErr, then let minErr = E L , the angle L1 for the left shoulder joint to lift forward and backward is Rx, and the angle L2 for the left shoulder joint to lift left and right is Rz. At this time, if E L <0.01, then jump to S308; if E L ≥minErr, then jump to S306; S306. Let Rx = Rx + 1. If Rx ≥ RXend, jump to S307; otherwise, jump to S304. S307. Let Rz = Rz + 1. If Rz ≥ 90, jump to S308; otherwise, let Rx = RXstart and jump to S304. S308. Obtain the angle L1 of the left shoulder joint's forward and backward lift and the angle L2 of its left and right lift.

[0007] Furthermore, in step S4, assuming the spatial coordinates of the right shoulder J3 and the right elbow J4 are ([[]] x 3, y 3, z ) and ([[]] x 4, y 4, z 4) respectively, then: S401. Calculate the length of the right upper arm ; S402. Set the initial state of the right upper arm to be vertically downward along the y-axis. Taking the right shoulder joint as the origin, the initial position of the right elbow joint is , and the actual position is ; S403. Set the angle range for the shoulder joint lift as RXstart = 0, RXend = 90. If y4 - y3 ≥ 0, then set RXstart = 90, RXend = 180; and set Rz = 0, Rx = RXstart, minErr = 100. S404. Calculate the predicted position of the right elbow joint , where the rotation matrices MR R1 and MR R2 are respectively: , ; S405. Calculate the error between the predicted position and the actual position of the elbow joint . If E R < minErr, then let minErr = E R . The angle R1 of the right shoulder joint's forward and backward lift is Rx, and the angle R2 of its left and right lift is Rz. At this time, if E R < 0.01, jump to S408; if E R ≥ minErr, jump to S406; S406. Let Rx = Rx + 1. If Rx ≥ RXend, jump to S407; otherwise, jump to S404. S407. Let Rz = Rz + 1. If Rz ≥ 90, jump to S408; otherwise, let Rx = RXstart and jump to S404. S408, obtaining the front-to-back lifting angle R1 and the left-to-right lifting angle R2 of the right shoulder joint.

[0008] Further, in step S5, it is assumed that the spatial coordinates of the left shoulder J7, the left elbow J8 and the left wrist J9 are respectively ( x 7, y 7, z 7) ( x 8, y 8, z 8) x 9, y 9, z 9), then the angle at the left arm elbow joint ,in , .

[0009] Further, in step S6, it is assumed that the spatial coordinates of the right shoulder J3, the right elbow J4 and the right wrist J5 are respectively ( x 3, y 3, z 3) x 4, y 4, z 4) x 5, y 5, z 5), then the angle at the elbow joint of the right arm ,in , .

[0010] Further, in step S7, it is assumed that the spatial coordinates of the left shoulder J7, the left elbow J8 and the left wrist J9 are respectively ( x 7, y 7, z 7) ( x 8, y 8, z 8) x 9, y 9, z 9), the calculation steps of the axial rotation angle of the left upper arm are: S701. Calculate the length of the left forearm ; S702, set the initial state of the left forearm vertically downward along the y-axis, with the left shoulder joint as the origin, and the initial position of the left wrist joint , the actual location is ; S703, set the axial rotation angle range RAstart=-45, RAend=45, and set RA=RAstart, minErr=100; S704. Calculate the predicted position of the wrist joint of the left arm: , where the translation matrix , the rotation matrix , the rotation matrix , the rotation matrix , the rotation matrix ; S705. Calculate the error between the predicted position and the actual position of the elbow joint , if E l < minErr, then let minErr = E l , the angle L3 of the axial rotation of the left upper arm = RA. At this time, if E l < 0.01, then jump to S707; if E l ≥ minErr, then jump to S706; S706. Let RA = RA + 1; if RA ≥ RAend, then jump to S707, otherwise jump to S704; S707. Obtain the angle L3 of the axial rotation of the left upper arm.

[0011] Furthermore, in step S8, assume that the spatial coordinates of the right shoulder J3, right elbow J4, and right wrist J5 are respectively ( x 3, y 3, z 3), ( x 4, y 4, z 4), ( x 5, y 5, z 5), then the calculation steps for the axial rotation angle of the right upper arm are as follows: S801. Calculate the length of the right forearm ; S802. Set the initial state of the right forearm to be vertically downward along the y-axis. With the right shoulder joint as the origin, the initial position of the right wrist joint , and the actual position is ; S803. Set the axial rotation angle range RAstart = -45, RAend = 45, and set RA = RAstart, minErr = 100; S804. Calculate the predicted position of the wrist joint of the right arm: , where the translation matrix , the rotation matrix , the rotation matrix , the rotation matrix , the rotation matrix ; S805. Calculate the error between the predicted position and the actual position of the elbow joint , if E l < minErr, then set minErr = E l , the angle L3 of the axial rotation of the left upper arm = RA. At this time, if E l < 0.01, then jump to S807; if E l ≥ minErr, then jump to S806; S806. Set RA = RA + 1; if RA ≥ RAend, then jump to S807, otherwise jump to S804; S807. Obtain the angle R3 of the axial rotation of the right upper arm.

[0012] A humanoid robot double - arm follow - up control system based on the above - mentioned method, comprising: An image acquisition module, used for real - time acquisition of human body image data; A human joint point positioning module, used for obtaining the spatial position information of human joint points from the acquired image data; A left - arm control parameter acquisition module, used for calculating the rotational degree of freedom at the shoulder joint of the left upper arm, the included angle at the elbow joint of the left arm, and the axial rotation angle of the left upper arm according to the obtained spatial position information of human joint points; A right - arm control parameter acquisition module, used for calculating the rotational degree of freedom at the shoulder joint of the right upper arm, the included angle at the elbow joint of the right arm, and the axial rotation angle of the right upper arm according to the obtained spatial position information of human joint points; A control parameter output module, used for linearly interpolating the calculated rotational degree of freedom, included angle, and axial rotation angle, and sending them to the corresponding joint control module of the humanoid robot at a set frequency to achieve the follow - up control of the double arms of the humanoid robot.

[0013] A humanoid robot, comprising a head, hands, forearms, upper arms, shoulders, eyes, mouth, front chest shell, back shell, base, power switch, power cord, headlight, earlight, chest light, soft rubber neck, display screen, microphone, and speaker; the shoulder joint of the upper arm has three degrees of freedom of forward - backward movement, left - right movement, and axial rotation, the wrist joint of the forearm has two degrees of freedom of rotation around the forearm axis and forward - backward movement along the direction perpendicular to the palm, the hand has five individually movable fingers, and the head has two degrees of freedom of nodding up - down and shaking left - right; the humanoid robot is also configured with the above - mentioned double - arm follow - up control system, including an image acquisition module, a human joint point positioning module, a left - arm control parameter acquisition module, a right - arm control parameter acquisition module, and a control parameter output module for outputting control parameters to the joint control module.

[0014] Compared with the prior art, the present invention has at least the following beneficial effects: It can realize the follow-up control of the humanoid robot's arms through vision, which is a good alternative to traditional wearable devices; it uses a rotation angle resolution of 1 degree to cyclically calculate the error, which can effectively solve the problem of small-range error jumps in the skeleton recognition process of vision; it specifies the rotation calculation order of each axis, and compared with the traditional direct inverse solution, there is no problem of multiple solutions; the real-time performance is good, which can reach 25fps, and it has broad application prospects in the visual follow-up control of remote-controlled robots; the smoothness is good, and the data synchronization frequency is greater than the visual detection frequency, which makes the humanoid robot have better smoothness during the visual following process. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention.

[0016] Figure 1 It is a schematic flow chart of a method for visual dual-arm follow-up control of a humanoid robot provided by an embodiment of the present invention; Figure 2 It is a schematic diagram of 20 joint points of the Kinect human skeleton provided by an embodiment of the present invention; Figure 3 is a front view of a humanoid robot provided by an embodiment of the present invention; Figure 4 is a side view of a humanoid robot provided by an embodiment of the present invention; Figure 5 It is a rear view of a humanoid robot provided by one embodiment of the present invention.

[0017] Wherein, each reference numeral represents: 1-hand, 2-forearm, 3-upper arm, 4-shoulder, 5-eye, 6-mouth, 7-HD camera, 8-front chest shell, 9-back shell, 10-base, 11-power switch, 12-power cord, 13-headlight, 14-ear light, 15-chest light, 16-soft rubber neck, 17-display screen, 18-microphone and speaker. DETAILED DESCRIPTION

[0018] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, other embodiments obtained by ordinary technicians in this field without making creative work are all within the scope of protection of the present invention.

[0019] Embodiment 1 This embodiment provides a vision-based humanoid robot dual-arm follow-up control method, such as Figure 1 As shown, it mainly includes the following steps: Step S1: Using the Kinect visual sensor, collect the depth image data and RGB image data of the human body in real time.

[0020] Step S2: Based on the real-time image data obtained in step S1, the human skeleton in the field of view is identified based on Kinect human skeleton recognition technology, and the position information of the 20 joints of the skeleton in three-dimensional space is recorded. The position information is represented by (x, y, z) three-dimensional space coordinates. These 20 joints are represented by J1, J2, J3...J20 respectively, as shown in Figure 2 As shown, specifically: head J1, shoulder center J2, right shoulder J3, right elbow J4, right wrist J5, right hand J6, left shoulder J7, left elbow J8, left wrist J9, left hand J10, spine J11, hip center J12, right hip J13, right knee J14, right ankle J15, right foot J16, left hip J17, left knee J18, left ankle J19, left foot J20. The coordinates of J1 in space are represented by (x1, y1, z1), the coordinates of J2 in space are represented by (x2, y2, z2), and so on, the coordinates of J20 in space are (x20, y20, z20).

[0021] Step S3: Based on the two joint point information of J7 (x7, y7, z7) and J8 (x8, y8, z8) in step S2, calculate the two rotational degrees of freedom at the shoulder joint of the left upper arm of the human body. The calculation process is as follows: (1) Calculate the length of the left upper arm as follows: ; (2) Set the initial state of the left upper arm vertically downward along the y-axis, with the left shoulder joint as the origin and the initial position of the left elbow joint as , the actual location is ; (3) Set RXstart=0, RXend=90; if y8-y7≥0, set RXstart=90, RXend=180, and set Rz=0, Rx=RXstart, minErr=100 (the angle range of the robot's left upper arm shoulder joint is [0, 180], and the angle range of the left upper arm shoulder joint is [0, 90]); (4) Generate two rotation matrices MR L1 and MR L2 , respectively: ,

[0022] Calculate the predicted position of the elbow joint ; (5) Calculate the error between the predicted position and the actual position of the elbow joint , if E L < minErr, then set minErr = E L , L1 = Rx, L2 = Rz, at this time if E L < 0.01, then jump to (8); if E L ≥ minErr, then jump to (6); (5) Set Rx = Rx + 1, if Rx ≥ RXend, jump to (7), otherwise jump to (4); (7) Set Rz = Rz + 1, if Rz ≥ 90, then jump to (8), otherwise set Rx = RXstart, jump to (4); (8) Obtain the angle L1 of the shoulder joint lifting forward and backward and the angle L2 of the shoulder joint lifting left and right

[0023] Step S4: Based on the two joint position information of J3(x3, y3, z3) and J4(x4, y4, z4) in Step S2, calculate the two rotational degrees of freedom at the shoulder joint of the right upper arm of the human body. The calculation process is as follows: (1) Calculate the length of the right upper arm, and its calculation method is: ; (2) Set the initial state of the right upper arm to be vertically downward along the y-axis, with the right shoulder joint as the origin and the initial position of the right elbow joint , and the actual position is ; (3) Set RXstart = 0, RXend = 90; if y4 - y3 ≥ 0, then set RXstart = 90, RXend = 180; set Rz = 0, Rx = RXstart, minErr = 100 (the range of the angle of the right upper arm shoulder joint lifting forward and backward is [0, 180], and the range of the angle of the right upper arm shoulder joint lifting left and right is [0, 90]); (4) Generate two rotation matrices MR R1 and MR R2 , respectively: ,

[0024] Calculate the predicted position of the elbow joint ; (5) Calculate the error between the predicted position and the actual position of the elbow joint , if E R < minErr, then set minErr = ER , R1=Rx, R2=Rz; at this time if E R <0.01, then jump to (8), if E R ≥minErr, jump to (6); (6) Let Rx = Rx + 1; if Rx ≥ RXend, jump to (7), otherwise jump to (4); (7) Let Rz = Rz + 1; if Rz ≥ 90, jump to (8); otherwise, let Rx = RXstart and jump to (4); (8) Obtain the front-to-back lifting angle R1 and the left-to-right lifting angle R2 of the right shoulder joint.

[0025] Step S5: Based on the three joint point information of J7 (x7, y7, z7), J8 (x8, y8, z8) and J9 (x9, y9, z9) in step S2, calculate the angle at the elbow joint of the left arm: Calculate the vector , , the left arm elbow angle .

[0026] Step S6: Based on the three joint point information of J3 (x3, y3, z3), J4 (x4, y4, z4) and J5 (x5, y5, z5) in step S2, calculate the angle at the elbow joint of the right arm: Calculate the vector , , the right arm elbow angle .

[0027] Step S7: Based on the three joint position information of J7 (x7, y7, z7), J8 (x8, y8, z8) and J9 (x9, y9, z9) in step S2, calculate the axial rotation angle of the left upper arm. The calculation process is as follows: (1) Calculate the length of the left forearm as follows: ; (2) Set the initial state of the left forearm vertically downward along the y-axis, with the left shoulder joint as the origin and the initial position of the left wrist joint as , the actual location is ; (3) Set RAstart = -45, RAend = 45; and set RA = RAstart; minErr = 100 (the axial rotation angle range of the robot's left arm is [-45, 45]); (4) Generate a translation matrix MT L1 And four rotation matrices MR L01 , MR L02 , MR L03 , MRL04 , respectively: , ,

[0028] ,

[0029] Calculate the predicted position of the wrist joint of the left arm: ; (5) Calculate the error between the predicted position and the actual position of the elbow joint , if E l < minErr, then let minErr = E l , L3 = RA, at this time if E l < 0.01, then jump to (7); if E l ≥ minErr, then jump to (6); (6) Let RA = RA + 1; if RA ≥ RAend, then jump to (7), otherwise jump to (4); (7) Obtain the angle L3 of the axial rotation of the left upper arm.

[0030] Step S8: Based on the three joint position information of J3(x3, y3, z3), J4(x4, y4, z4) and J5(x5, y5, z5) in step S2, calculate the axial rotation angle of the right upper arm. The calculation process is as follows: (1) Calculate the length of the right forearm, and its calculation method is: ; (2) Set the initial state of the right forearm to be vertically downward along the y-axis, with the right shoulder joint as the origin and the initial position of the right wrist joint , and the actual position is ; (3) Set RAstart = -45, RAend = 45, and set RA = RAstart, minErr = 100 (the angle range of the axial rotation of the robot's right upper arm is [-45, 45]); (4) Generate a translation matrix MT R1 and four rotation matrices MR R01 , MR R02 , MR R03 , MR R04 , respectively: , ,

[0031] ,

[0032] Calculate the predicted position of the wrist joint of the left arm: ; (5) Calculate the error between the predicted position and the actual position of the elbow joint . If E r < minErr, then let minErr = E r , R3 = RA. At this time, if E r < 0.01, then jump to (7); if E r ≥ minErr, then jump to (6); (6) Let RA = RA + 1. If RA ≥ RAend, then jump to (7), otherwise jump to (4); (7) Obtain the angle R3 of the axial rotation of the right upper arm.

[0033] Step S9: Output 8 rotation angles L1, L2, L3, L4, R1, R2, R3, R4 corresponding to the human arm and the humanoid robot arm.

[0034] Step S10: Send the 8 rotation angles L1, L2, L3, L4, R1, R2, R3, R4 to the humanoid robot as synchronous joint data at a frequency of 50 Hz in a linear interpolation manner to implement the function of the visual double-arm follow-up of the humanoid robot.

[0035] This embodiment completely determines the joint information of the human body in the three-dimensional space based on robot vision, and converts this kind of joint information into the joint rotation angle information of the humanoid robot according to the joint model of the humanoid robot, so as to realize the visual follow-up control of the humanoid robot, without additional wearable devices, with simple implementation and high judgment accuracy.

[0036] Embodiment 2 Based on the above double-arm follow-up control method, this embodiment provides a humanoid robot double-arm follow-up control system, which mainly includes the following modules: An image acquisition module, which is used to collect human body image data in real time; A human joint point positioning module, which is used to obtain the spatial position information of human joint points from the collected image data; A left arm control parameter acquisition module, which is used to calculate the rotation degree of freedom at the shoulder joint of the left upper arm, the included angle at the elbow joint of the left arm, and the axial rotation angle of the left upper arm according to the obtained spatial position information of human joint points; The right arm control parameter acquisition module is used to calculate the rotational freedom at the shoulder joint of the right upper arm, the angle at the elbow joint of the right arm and the axial rotation angle of the right upper arm according to the spatial position information of the acquired human body joint points; The control parameter output module is used to linearly interpolate the calculated rotational degrees of freedom, angles, and axial rotation angles, and send them to the corresponding joint control modules of the humanoid robot at a set frequency to achieve follow-up control of the humanoid robot's arms.

[0037] The above-mentioned product can execute the vision-based humanoid robot dual-arm follow-up control method described in Example 1, and has the corresponding functional modules and beneficial effects of the method. For technical details not described in detail in this embodiment, please refer to the detailed contents provided in Example 1 of the present invention.

[0038] Embodiment 3 Based on the above-mentioned dual-arm follow-up control method and its corresponding system, this embodiment provides a humanoid robot, which mainly consists of Figure 3 , Figure 4 and Figure 5 As shown, the parts shown in the figure are five-finger dexterous hand 1, forearm 2, upper arm 3, shoulder 4, eyes 5, mouth 6, high-definition camera 7, front chest shell 8, back shell 9, base 10, power switch 11, power cord 12, headlight 13, ear lamp 14, chest lamp 15, soft rubber neck 16, display screen 17, microphone and speaker 18. Among them, the left arm and the right arm have the same joint layout, the upper arm shoulder joint has three degrees of freedom, the upper arm moves forward and backward and left and right around the shoulder joint, and the upper arm can rotate axially; the elbow joint has one degree of freedom; the wrist joint has two degrees of freedom, which rotates around the axial direction of the forearm and rotates forward and backward along the vertical palm direction; the left and right palms each have five fingers that can move independently; the head has two degrees of freedom, nodding up and down and shaking left and right. The humanoid robot has various modules described in Example 2, and can be controlled by the method described in Example 1 for double-arm follow-up. The specific control steps are not repeated here. For specific contents, please refer to the corresponding descriptions in Example 1 and Example 2.

[0039] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may also be combined, the steps may be implemented in any order, and there are many other changes in different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity. Although the present invention has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A vision-based humanoid robot dual-arm follow-up control method, characterized in that: Includes steps: S1, real-time collection of human image data, including depth images and RGB images; S2. Based on the collected image data, spatial position information of human joints is obtained, where the joints include head J1, shoulder center J2, right shoulder J3, right elbow J4, right wrist J5, right hand J6, left shoulder J7, left elbow J8, left wrist J9, left hand J10, spine J11, hip center J12, right hip J13, right knee J14, right ankle J15, right foot J16, left hip J17, left knee J18, left ankle J19 and left foot J20; S3, calculating the rotational freedom of the shoulder joint of the left upper arm of the human body according to the position information of the left shoulder J7 and the left elbow J8; S4, calculating the rotational freedom at the shoulder joint of the right upper arm of the human body according to the position information of the right shoulder J3 and the right elbow J4; S5. Calculate the angle at the left arm elbow joint according to the position information of the left shoulder J7, the left elbow J8 and the left wrist J9; S6. Calculate the angle at the elbow joint of the right arm according to the position information of the right shoulder J3, the right elbow J4 and the right wrist J5; S7, calculating the axial rotation angle of the left upper arm according to the position information of the left shoulder J7, the left elbow J8 and the left wrist J9; S8, calculating the axial rotation angle of the right upper arm according to the position information of the right shoulder J3, the right elbow J4 and the right wrist J5; S9, linearly interpolate the rotational degrees of freedom, angles, and axial rotation angles calculated by S3-S8, and send them to the corresponding joint control modules of the humanoid robot at a set frequency to achieve follow-up control of the arms of the humanoid robot.

2. The humanoid robot dual-arm follow-up control method according to claim 1, characterized in that: In step S1, the image data of the human body is acquired in real time through the Kinect visual sensor. In step S2, the human skeleton in the image field is identified based on the Kinect human skeleton recognition technology, and then the position information of each joint point of the skeleton in the three-dimensional space is acquired.

3. The method for controlling the dual arms of a humanoid robot according to claim 1, wherein: In step S3, it is assumed that the spatial coordinates of the left shoulder J7 and the left elbow J8 are ( x 7, y 7, z 7) and ( x 8, y 8, z 8), then: S301, calculate the length of the left upper arm ; S302: Set the initial state of the left upper arm vertically downward along the y-axis, with the left shoulder joint as the origin. The initial position of the left elbow joint is , the actual location is ; S303, set the angle range of the shoulder joint lifting RXstart=0, RXend=90, if y8-y7≥0, set RXstart=90, RXend=180; and set Rz=0, Rx=RXstart, minErr=100; S304: Calculate the predicted position of the left elbow joint , where the rotation matrix MR L1 and MR L2 They are: , ; S305, calculating the error between the predicted position and the actual position of the elbow joint , if E L < minErr, then let minErr = E L , the left shoulder joint lift angle L1 = Rx, the left and right lift angle L2 = Rz, at this time if E L <0.01, then jump to S308; if E L ≥minErr, jump to S306; S306, let Rx = Rx + 1, if Rx ≥ RXend, jump to S307, otherwise jump to S304; S307, set Rz = Rz + 1, if Rz ≥ 90, jump to S308, otherwise set Rx = RXstart, jump to S304; S308, obtaining the front-to-back lifting angle L1 and the left-to-right lifting angle L2 of the left shoulder joint.

4. The method for controlling the dual arms of a humanoid robot according to claim 1, wherein: In step S4, it is assumed that the spatial coordinates of the right shoulder J3 and the right elbow J4 are respectively ( x 3, y 3, z 3) and ( x 4, y 4, z 4), then: S401, calculate the length of the right upper arm ; S402: Set the initial state of the right upper arm vertically downward along the y-axis, with the right shoulder joint as the origin. The initial position of the right elbow joint is , the actual location is ; S403, set the angle range of the shoulder joint lifting RXstart=0, RXend=90, if y4-y3≥0, set RXstart=90, RXend=180; and set Rz=0, Rx=RXstart, minErr=100; S404: Calculate the predicted position of the right elbow joint , where the rotation matrix MR R1 and MR R2 They are: , ; S405: Calculate the error between the predicted position and the actual position of the elbow joint , if E R < minErr, then let minErr = E R , the right shoulder joint lift angle R1 = Rx, the left and right lift angle R2 = Rz, at this time if E R <0.01, then jump to S408; if E R ≥minErr, jump to S406; S406, let Rx = Rx + 1, if Rx ≥ RXend, jump to S407, otherwise jump to S404; S407, set Rz = Rz + 1, if Rz ≥ 90, jump to S408, otherwise set Rx = RXstart, jump to S404; S408, obtaining the front-to-back lifting angle R1 and the left-to-right lifting angle R2 of the right shoulder joint.

5. The method for controlling the dual arms of a humanoid robot according to claim 1, wherein: In step S5, it is assumed that the spatial coordinates of the left shoulder J7, the left elbow J8 and the left wrist J9 are respectively ( x 7, y 7, z 7) x 8, y 8, z 8) x 9, y 9, z 9), then the angle at the left arm elbow joint ,in , .

6. The method for controlling the dual arms of a humanoid robot according to claim 1, wherein:In step S6, it is assumed that the spatial coordinates of the right shoulder J3, the right elbow J4 and the right wrist J5 are respectively ( x 3, y 3, z 3) x 4, y 4, z 4) x 5, y 5, z 5), then the angle at the elbow joint of the right arm ,in , .

7. The humanoid robot dual-arm follow-up control method according to claim 1, characterized in that: In step S7, it is assumed that the spatial coordinates of the left shoulder J7, the left elbow J8 and the left wrist J9 are respectively ( x 7, y 7, z 7) x 8, y 8, z 8) x 9, y 9, z 9), the calculation steps of the axial rotation angle of the left upper arm are: S701. Calculate the length of the left forearm ; S702, set the initial state of the left forearm vertically downward along the y-axis, with the left shoulder joint as the origin, and the initial position of the left wrist joint , the actual location is ; S703, set the axial rotation angle range RAstart=-45, RAend=45, and set RA=RAstart, minErr=100; S704, calculating the predicted position of the left arm wrist joint: , Among them, the translation matrix , the rotation matrix , the rotation matrix , the rotation matrix , the rotation matrix ; S705. Calculate the error between the predicted position and the actual position of the elbow joint , if E l < minErr, then let minErr=E l , the axial rotation angle of the left upper arm is L3 = RA. At this time, if E l <0.01, then jump to S707; if E l ≥minErr, jump to S706; S706, let RA = RA + 1; if RA ≥ RAend, jump to S707, otherwise jump to S704; S707, obtaining the axial rotation angle L3 of the left upper arm.

8. The method for controlling the dual arms of a humanoid robot according to claim 1, wherein: In step S8, it is assumed that the spatial coordinates of the right shoulder J3, the right elbow J4 and the right wrist J5 are respectively ( x 3, y 3, z 3) x 4, y 4, z 4) x 5, y 5, z 5), then the calculation steps of the axial rotation angle of the right upper arm are: S801. Calculate the length of the right forearm ; S802, set the initial state of the right forearm vertically downward along the y-axis, with the right shoulder joint as the origin, and the initial position of the right wrist joint , the actual location is ; S803, set the axial rotation angle range RAstart=-45, RAend=45, and set RA=RAstart, minErr=100; S804, calculating the predicted position of the right arm wrist joint: , Among them, the translation matrix , the rotation matrix , the rotation matrix , the rotation matrix , the rotation matrix ; S805. Calculate the error between the predicted position and the actual position of the elbow joint , if E l < minErr, then let minErr=E l , the axial rotation angle of the left upper arm is L3 = RA. At this time, if E l <0.01, then jump to S807; if E l ≥minErr, jump to S806; S806, let RA = RA + 1; if RA ≥ RAend, jump to S807, otherwise jump to S804; S807, obtaining the axial rotation angle R3 of the right upper arm.

9. A humanoid robot dual-arm follow-up control system based on the method according to any one of claims 1 to 8, characterized in that: include: An image acquisition module, used for collecting human body image data in real time; A human joint point positioning module is used to obtain the spatial position information of human joint points from the collected image data; The left arm control parameter acquisition module is used to calculate the rotational freedom of the left upper arm shoulder joint, the angle of the left arm elbow joint and the axial rotation angle of the left upper arm according to the acquired spatial position information of the human body joint points; The right arm control parameter acquisition module is used to calculate the rotational freedom at the shoulder joint of the right upper arm, the angle at the elbow joint of the right arm and the axial rotation angle of the right upper arm according to the spatial position information of the acquired human body joint points; The control parameter output module is used to linearly interpolate the calculated rotational degrees of freedom, angles, and axial rotation angles, and send them to the corresponding joint control modules of the humanoid robot at a set frequency to achieve follow-up control of the humanoid robot's arms.

10. A humanoid robot, characterized in that: It includes a head, hands, forearms, upper arms, shoulders, eyes, mouth, front chest shell, back shell, base, power switch, power cord, headlamp, ear lamp, chest lamp, soft rubber neck, display screen, microphone and speakers; the shoulder joint of the upper arm has three degrees of freedom of forward and backward movement, left and right movement and axial rotation, the wrist joint of the forearm has two degrees of freedom of rotation around the axial direction of the forearm and forward and backward rotation along the direction perpendicular to the palm, the hand has five independently movable fingers, and the head has two degrees of freedom of nodding up and down and shaking left and right; the humanoid robot is also equipped with a double-arm follow-up control system as claimed in claim 9, including an image acquisition module, a human joint point positioning module, a left arm control parameter acquisition module, a right arm control parameter acquisition module and a control parameter output module that outputs control parameters to the joint control module.

Citation Information

Patent Citations

  • Fatigue driving detection method based on machine vision

    CN115331206A

  • Method and system for detecting states of five sense organs of human face based on machine vision

    CN116895090A

  • Method for calculating an arm angle range of a robot arm, computing device and robot

    US20200331143A1

  • Robot control method and apparatus and robot using the same

    US20210197384A1