Humanoid robot finger joint bending angle adjustment method and device

By acquiring multi-source perception data during the robot's landing phase, performing forward kinematics calculations and filtering, analyzing gripping risks, and adjusting finger joint angles, the instability problem of humanoid robots gripping cups during walking was solved, improving the robustness and recovery accuracy of holding objects.

CN123169064APending Publication Date: 2026-11-27SHENZHEN EVERWIN PRECISION ROBOTICS CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611340836.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-31
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

During walking, humanoid robots are prone to tangential slippage and tilting of cups due to the impact of their feet. Existing control solutions cannot effectively suppress slippage and may even exacerbate instability.

Method used

By acquiring the torso twist angle, foot landing time, and finger joint angles during the landing phase of the humanoid robot, and combining palm and finger pressure, positive kinematics calculations and filtering are performed to construct a cup torque sequence. The gripping risk is analyzed, and stable recovery samples are selected from the experimental sample library. The finger joint angles are adjusted to suppress slippage and tilting.

Benefits of technology

It achieves spatiotemporal synchronous coupling of gait disturbance and grip control, significantly improving the robustness and recovery accuracy of humanoid robots when dynamically holding objects, and effectively suppressing grip instability caused by walking impact.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123169064A_ABST
    Figure CN123169064A_ABST
Patent Text Reader

Abstract

The application provides a humanoid robot finger joint bending angle adjustment method and device, which comprises the following steps: acquiring the torso torsion angle of the humanoid robot in the landing stage, the foot landing time, the five finger joint angles and the metacarpophalangeal pressure; taking the foot landing time as the starting anchor point of the gait cycle, taking the torso torsion angle as the input, performing forward kinematics calculation along the shoulder-wrist kinematic chain, and solving the three-dimensional rotation posture of the palm; taking the three-dimensional rotation posture of the palm as the reference, solving the finger pulp three-dimensional position along the kinematic chain of each finger by using the five finger joint angles, determining the actual contact area of the region with the metacarpophalangeal pressure exceeding the preset contact threshold, extracting the geometric center of each actual contact area as the contact point of each finger, and obtaining the five finger contact point distribution; and based on the filtered torque sequence, carrying out the holding risk category analysis, wherein the holding risk category at least comprises holding stability, tangential slip risk, cup body inclination risk and slip-inclination composite risk.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of information technology, and in particular to a method and apparatus for adjusting the bending angle of finger joints of a humanoid robot. Background Technology

[0002] When humanoid robots perform tasks involving carrying objects and walking in daily service scenarios, hand grip stability is a key indicator of their anthropomorphic capabilities. This is especially true when the robot is holding easily spilled containers like cups; even the slightest tilt or slippage of the cup can lead to task failure. Existing grip control schemes generally equate finger bending angle directly to the strength of grip, and increase finger bending, especially the ring finger's bending angle, as the primary means of addressing grip instability. This approach implicitly assumes that the geometric relationship between the finger contact point and the cup remains constant during walking, thus simplifying the slippage prevention problem into a monotonic adjustment of grip strength. However, the torso of a humanoid robot is not a static rigid body during walking; its gait kinematics continuously alters the relative spatial pose of the hand and the cup. When the robot uses a forward-leaning gait, the torso alternates between left and right steps, producing periodic twists. These twists are transmitted through the shoulder joint to the arm, causing a slight rotation of the palm. This palm rotation directly changes the distribution of the contact area between the cup and the palm, causing a periodic shift in the contact area along the robot's direction of travel. This offset directly causes the point of force application of the ring finger, originally near the cup's axis, to undergo spatial displacement relative to the cup's axis. The point of force application is defined as the position of normal contact between the fingertip and the outer wall of the cup. After the point of force application deviates from the cup's axis, the normal clamping force applied by the ring finger generates a non-zero lever arm relative to the cup's central axis. This lever arm is defined as the vertical distance from the point of force application to the cup's axis, and this distance dynamically changes with each step. If the control system still detects a tendency for the cup to slide according to conventional logic and continues to increase the bending angle of the ring finger, the amplitude of the normal force applied by the ring finger increases. However, because the point of force application has deviated from the axis and the lever arm is dynamically changing, the direction of the tangential frictional force component generated by this normal force on the cup's surface and the spatial vector of the point of application relative to the palm form a coupling torque. The frictional force originally used to suppress the cup's tangential sliding along the palm is transformed into a rotational torque around the palm under this deviation condition. This torque acts on the cup synchronously with the ground impact force at the moment of each step. In practice, the cup unexpectedly rotates and slips the moment the foot lands, increasing the angle of the cup's tilt. At this point, the increased bending action applied by the control system not only fails to suppress the slippage but also provides additional driving torque for the cup's rotation, further exacerbating the slippage trend. Summary of the Invention

[0003] This invention provides a method for adjusting the bending angle of finger joints in a humanoid robot, mainly including: Acquire the torso twist angle, foot landing time, finger joint angles, and palmar finger pressure during the landing phase of the humanoid robot; Using the moment of foot landing as the starting anchor point of the gait cycle and the torso twist angle as the input, positive kinematic calculations are performed along the shoulder and wrist kinematic chain to solve the three-dimensional rotational posture of the hand. Based on the three-dimensional rotation posture of the palm, the angle of the five finger joints is calculated along the kinematic chain of each finger to obtain the three-dimensional position of the fingertip. The area where the palm and finger pressure exceeds the preset contact threshold is determined as the actual contact area, and the geometric center of each actual contact area is extracted as the contact point of each finger to obtain the distribution of the five finger contact points. The five finger contact points are projected onto a cylindrical coordinate system established with the geometric center axis of the grasped object as the reference. The vertical distance from each finger contact point to the cup axis is obtained as the action arm. The cup torque is calculated by combining the action arm and the palm and finger pressure. The cup torque is sorted according to the timestamp of the gait cycle to construct the original sequence of cup torque. The original sequence of cup torque is filtered with the foot landing time as the time anchor point to filter out the high frequency components corresponding to the foot impact. The filtered torque sequence is then output. The grip risk category analysis is carried out based on the filtered torque sequence. The grip risk category includes at least grip stability, tangential slip risk, cup tilt risk, and slip-tilt combined risk. Based on the grip risk category, stable recovery samples of the corresponding category are selected from the pre-built test sample library. The stable angles of each joint of the five fingers in the stable recovery samples are read as the joint target angles. The angle difference between the joint target angle and the current joint angle of the robot's five fingers is used as the joint adjustment amount. Based on the joint adjustment amount, the corresponding finger joint is driven to perform bending angle adjustment.

[0004] Furthermore, the torso twist angle, foot landing time, finger joint angles, and palmar finger pressure of the humanoid robot during the landing phase are obtained, including: The torsional angle of the torso around the vertical axis is read by the mid-torso inertial measurement unit; the pressure rise signal generated by the heel contacting the ground is detected by the foot pressure sensor array, and the foot landing time is extracted; the bending angle of each joint of the thumb, index finger, middle finger, ring finger and little finger is read synchronously by the encoder of each joint of the hand to form the joint angle of the five fingers; the palm and finger pressure is collected by the flexible pressure sensor units distributed in the palm and the fingertips; the torsional angle, the foot landing time, the joint angle of the five fingers and the palm and finger pressure are combined to form the original perception data group of the foot landing stage.

[0005] Furthermore, using the torso twist angle as input, forward kinematic calculations are performed along the shoulder-wrist kinematic chain to solve for the three-dimensional rotational posture of the hand, including: Using the trunk center coordinate system as a reference, homogeneous coordinate transformation matrices are sequentially established from the shoulder joint, elbow joint, and wrist joint to the palm coordinate system to form a shoulder-wrist kinematic chain. The trunk torsion angle is used as the root posture input of the shoulder-wrist kinematic chain. Following the order of the shoulder joint, elbow joint, and wrist joint, the rotation matrices of each joint are multiplied step by step along the shoulder-wrist kinematic chain to obtain the posture transformation result of the palm coordinate system relative to the trunk coordinate system. The three-dimensional rotation posture of the palm is then calculated.

[0006] Furthermore, the area where the palm and finger pressure exceeds a preset contact threshold is defined as the actual contact area, and the geometric center of each actual contact area is extracted as the contact point of each finger, including: The normal pressure of each flexible pressure sensing unit on the fingertip is compared with a preset contact threshold. The coverage surface area corresponding to the sensing unit with normal pressure greater than the contact threshold is marked as an effective contact sub-region. The effective contact sub-regions that are adjacent to each other on the upper boundary of the same fingertip are merged to form the actual contact area of ​​the corresponding finger. The geometric center of the actual contact area is determined and used as the contact point of each finger.

[0007] Furthermore, using the foot landing moment as the anchor point, high-frequency components of the impact force are removed by filtering, and the filtered torque sequence is output, including: Using the moment the foot lands as the time anchor point of the original cup torque sequence, the original cup torque sequence is input into a Kalman filter. The high-frequency jump generated by the impact of the foot landing is treated as process noise and suppressed. The filtered torque sequence after removing the high-frequency component of the foot impact is output.

[0008] Furthermore, based on the grip risk category, stable recovery samples of the same category are selected from the test sample library, and the stable angles of each joint of the five fingers are read as target angles. The difference between the target angle and the current angle is used as the adjustment amount to drive the corresponding joint to complete the bending angle adjustment, including: Samples with labels matching the current grip risk category are selected from a pre-built cup-gripping test sample library as a subset of candidate samples. For each candidate sample, the absolute value of the difference between the sample's sliding distance and the current cup sliding distance, as well as the absolute value of the difference between the sample's cup rim tilt angle relative to the palm and the current cup rim tilt angle relative to the palm, are calculated. The two absolute values ​​are added together to construct the sample matching difference. The candidate sample with the smallest sample matching difference is selected as the stable recovery sample for the current working condition. The stable angles corresponding to each joint of the five fingers in the stable recovery sample are read and assigned as the target angles of each joint. The target angles are constrained by the preset mechanical limit range of the finger joints. The difference between the constrained target angles of each joint and the current bending angles collected in real time by the robot's five finger joints is calculated to obtain the angle adjustment amount of each finger joint. The corresponding joint adjustment command is generated according to the angle adjustment amount and sent to each joint drive unit according to the preset fixed finger sequence. The finger joints are driven to perform angle compensation adjustment along the bending direction to achieve rapid and stable recovery of the grip state.

[0009] This invention provides a device for adjusting the bending angle of finger joints in a humanoid robot, mainly comprising: The data acquisition module is used to obtain the torso twist angle, foot landing time, finger joint angle, and palm and finger pressure during the landing phase of the humanoid robot. The hand posture calculation module is used to take the moment of foot landing as the starting anchor point of the gait cycle, take the torso twist angle as input, and perform positive kinematic calculations along the shoulder and wrist kinematic chain to calculate the three-dimensional rotational posture of the hand. The five-finger contact point determination module is used to calculate the three-dimensional position of the fingertip by solving the joint angle of the five fingers along the kinematic chain of each finger, based on the three-dimensional rotation posture of the palm. The area where the palm and finger pressure exceeds the preset contact threshold is determined as the actual contact area, and the geometric center of each actual contact area is extracted as the contact point of each finger to obtain the five-finger contact point distribution. The cup torque calculation and filtering module projects the five-finger contact point distribution onto a cylindrical coordinate system established with the geometric center axis of the grasped object as the reference. It obtains the vertical distance from each finger contact point to the cup axis as the action arm, and calculates the cup torque by combining the action arm and palm and finger pressure. The cup torque is sorted according to the timestamp of the gait cycle to construct the original sequence of cup torque. The original sequence of cup torque is filtered with the foot landing time as the time anchor point to filter out the high-frequency components corresponding to the foot impact, and outputs the filtered torque sequence. The grip risk analysis module is used to perform grip risk category analysis based on the filtered torque sequence. The grip risk categories include at least grip stability, tangential slip risk, cup tilt risk, and slip-tilt composite risk. The finger joint adjustment module is used to select stable recovery samples of the corresponding category from a pre-built test sample library according to the grip risk category, read the stable angle of each joint of the five fingers in the stable recovery sample as the joint target angle, and use the angle difference between the joint target angle and the current joint angle of the robot's five fingers as the joint adjustment amount. Based on the joint adjustment amount, the corresponding finger joint is driven to perform bending angle adjustment.

[0010] The technical solutions provided by the embodiments of the present invention may include the following beneficial effects: This invention discloses a method and device for adjusting the bending angle of finger joints in a humanoid robot. Addressing the problem of unstable object holding by robots during walking due to combined risks such as tangential slippage and cup tilting caused by foot impact, the method uses the moment of foot landing as the starting anchor point of the gait cycle, collects the torso twist angle, and calculates the three-dimensional rotation posture of the hand along the forward direction of the shoulder and wrist kinematics chain. Then, based on the hand posture, the fingertip position is calculated along the kinematics chain of each finger. Combining the palm and finger pressure exceeding the contact threshold, the geometric center of the contact area is extracted to form the five-finger contact point distribution, which is then projected onto the cup's circular surface. The action arm is obtained in cylindrical coordinate system and the normal force is paired to synthesize the cup torque. After filtering out the high-frequency component of the foot impact, the torque reversal moment is extracted by combining the circumferential sliding distance and the cup opening tilt angle to construct the foot synchronous grip feature vector to determine the grip risk category. Based on this, similar stable recovery samples are selected from the test sample library and the stable angle of each joint is read as the target. The difference drives the corresponding joint to complete the bending adjustment, thereby realizing the spatiotemporal synchronous coupling of gait disturbance and grip control, effectively suppressing grip instability caused by walking impact, and significantly improving the robustness and recovery accuracy of the humanoid robot's dynamic holding. Attached Figure Description

[0011] Figure 1 This is a flowchart of the method for adjusting the bending angle of the finger joints of a humanoid robot according to the present invention.

[0012] Figure 2 This is a schematic diagram of the structure of the humanoid robot finger joint bending angle adjustment device of the present invention. Detailed Implementation

[0013] The technical solution of the present invention will be clearly and completely described below with reference to the embodiments. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0014] like Figure 1 The method for adjusting the bending angle of the finger joints of the humanoid robot in this embodiment may specifically include: Step S101: Obtain the torso twist angle, foot landing time, finger joint angle, and palm and finger pressure during the landing phase of the humanoid robot.

[0015] For the multi-source perception acquisition during the landing phase of the humanoid robot, the torso's torso's torso's twisting angle around the vertical axis is read through the mid-section inertial measurement unit. The pressure rise signal at the moment the heel contacts the ground is monitored through the foot pressure sensor array and the landing moment is extracted. The bending angles of the thumb, index finger, middle finger, ring finger, and little finger are read synchronously through the encoders of each joint of the hand to form a set of five finger joint angles. The palm and finger pressure is obtained through flexible pressure sensor units distributed in the palm and fingertips to form the original perception data set for the landing phase.

[0016] This embodiment describes the hand posture calculation requirements during the foot-landing phase of a humanoid robot carrying a water cup. The scenario involves a bipedal humanoid robot delivering a water cup on a flat indoor floor using either a forward or backward gait. The cup is a standard cylindrical container, and the surface where the cup wall contacts the fingers is made of ordinary matte ceramic or plastic. In one embodiment, the multi-source sensing acquisition during the foot-landing phase is accomplished using a sensor network already deployed on the robot body.

[0017] Specifically, the inertial measurement unit is fixedly installed at the spine position in the middle of the robot's torso, with its sensitive axis aligned with the robot's vertical direction. It is used to measure the relative rotation angle of the torso around the vertical axis, i.e., the torso torsion angle. The foot pressure sensor array is laid out in a matrix on the left and right feet, focusing on covering the heel and forefoot areas. The body weight W0, which serves as the jump criterion, is obtained by the robot entering a self-calibration state after each power-on, where it is unloaded, stands with both feet together, and remains still for 2 seconds. The readings of all sensor units on the left and right feet are summed and averaged over a sampling cycle of 200Hz. After calibration, W0 is latched for the current task cycle, and any additional load introduced by grasping external objects such as water cups is not included in W0. When the pressure reading of the heel area sensor unit jumps from less than 5%*W0 to more than 30%*W0 between two adjacent sampling cycles, the sampling timestamp at which the jump occurs is determined to be the foot's landing time, where W0 is the aforementioned benchmark body weight. The joint encoders are embedded in the metacarpophalangeal joints, proximal interphalangeal joints, and distal interphalangeal joints of the thumb, index finger, middle finger, ring finger, and little finger, respectively, and synchronously output the current bending angle of each joint. The five fingers together form the five-finger joint angle set by fifteen angle signals. The flexible pressure sensing unit is attached to the palm and the contact surface of the fingertips in the form of a thin film, and outputs the normal pressure at each contact position to form the palm and finger pressure.

[0018] Step S102: The moment the foot lands is taken as the starting anchor point of the gait cycle, and the torso twist angle is taken as the input. The forward kinematics calculation is performed along the shoulder and wrist kinematic chain to solve the three-dimensional rotation posture of the palm.

[0019] Using the foot landing moment as the starting anchor point of the gait cycle, the trunk twisting angle sequence, finger joint angle sequence, and palmar finger pressure sequence are aligned to the starting anchor point according to the same sampling timestamp. A complete cycle data segment from the starting anchor point to the next landing of the same side foot is extracted to form the gait synchronization data of the landing phase. For the trunk twisting angle in the gait synchronization data of the landing phase, homogeneous coordinate transformation matrices from the shoulder joint, elbow joint, wrist joint to the palm coordinate system are established sequentially based on the trunk center coordinate system, forming a shoulder-wrist kinematic chain. The trunk twisting angle is used as the posture input at the root of the shoulder-wrist kinematic chain. The chain is multiplied by the rotation matrix of each joint in the order of shoulder, elbow, and wrist to obtain the posture transformation result of the palm coordinate system relative to the trunk coordinate system, and the three-dimensional rotation posture of the palm is calculated.

[0020] Specifically, the multi-source sensing signals are not naturally aligned in terms of sampling time. The inertial measurement unit usually outputs at a higher frequency, while the sampling time of the joint encoder and pressure sensing unit is relatively low.

[0021] In one possible implementation, the foot landing moment is used as the starting anchor point of the gait cycle. All signals are resampled according to the nearest neighbor timestamp, and a continuous data segment from the current anchor point to the next landing of the same side foot is extracted as a complete foot landing phase gait synchronization data segment to avoid cross-cycle data confusion.

[0022] For example, a torso coordinate system is established with the center of the torso as the origin, and its vertical axis coincides with the sensitive axis of the inertial measurement unit. Four links are connected along the arm from proximal to distal, passing through the torso to the shoulder joint, the shoulder joint to the elbow joint, the elbow joint to the wrist joint, and the wrist joint to the palm. A local coordinate system is established at both ends of each link. The relative pose relationship between adjacent coordinate systems is described by a homogeneous coordinate transformation matrix. This homogeneous coordinate transformation matrix is ​​composed of a rotation submatrix and a translation vector. The rotation submatrix reflects the attitude deflection between adjacent coordinate systems, and the translation vector reflects the positional offset caused by the link length.

[0023] In one embodiment, in addition to the trunk twist angle, foot landing time, finger joint angles, and palmar finger pressure, magnetic encoders are also arranged on the three orthogonal rotation axes of the shoulder joint, the flexion-extension axis of the elbow joint, and the three axes of flexion-extension, medial-lateral deviation, and pronation-supination of the wrist joint, for a total of seven channels. These encoders are synchronously read at a frequency of 200Hz along with the finger joint encoders. The sampling time is aligned using a shared clock, with the deviation controlled within 1ms. This yields a set of shoulder joint angles containing three components, an elbow joint angle containing one component, and a wrist joint angle containing three components. These components, along with the trunk twist angle θ, are fed into the positive kinematics module. The transformation matrix from the trunk to the shoulder joint is denoted as T0, the transformation matrix from the shoulder joint to the elbow joint as T1, the transformation matrix from the elbow joint to the wrist joint as T2, and the transformation matrix from the wrist joint to the palm as T3. The overall pose transformation matrix T of the palm relative to the trunk is written as T = T0 * T1 * T2 * T3, where * denotes matrix multiplication. The torso twist angle θ is filled into the sine and cosine positions of the rotation submatrix around the vertical axis in T0; T1 is filled into the corresponding rotation submatrix by the three components of the shoulder joint in the order of the rotation axis of the shoulder mechanical structure; T2 is filled into the rotation submatrix around the flexion-extension axis by the elbow joint flexion-extension angle; T3 is filled into the corresponding rotation submatrix by the three components of the wrist joint in the order of the wrist rotation axis. In the example, if the collected shoulder joint angles are 30, 45, and 10, the elbow joint angle is 60, and the wrist joint angles are 5, 10, and 20, then after substituting the above values ​​into the corresponding rotation submatrix, the forward kinematics solution is completed by multiplying the values ​​sequentially along the chain in the order of torso, shoulder, elbow, and wrist, thus obtaining T. The top 3 rows and 3 columns of T are extracted as the rotation submatrix R of the palm relative to the torso, and then R is solved by inverse kinematics according to the classic roll-pitch-yaw Euler angle decomposition rule to obtain the three-dimensional rotational posture of the palm.

[0024] Preferably, the three-dimensional rotational posture of the hand is output in the form of three Euler angles: roll, pitch, and yaw. The yaw component directly reflects the amount of rotation around the vertical direction caused by the torso twisting through the shoulder and wrist kinematic chain to the hand, while the roll and pitch components reflect the tendency of the hand to tilt and flip forward and backward at the moment of landing.

[0025] Step S103: Based on the three-dimensional rotation posture of the palm, the angle of the five finger joints is calculated along the kinematic chain of each finger to obtain the three-dimensional position of the fingertip. The area where the palm and finger pressure exceeds the preset contact threshold is determined as the actual contact area, and the geometric center of each actual contact area is extracted as the contact point of each finger to obtain the distribution of the five finger contact points.

[0026] Using the three-dimensional rotation posture of the palm as the finger segment reference, kinematic chains are established for the thumb, index finger, middle finger, ring finger, and little finger, respectively, with the palm coordinate system as the root and extending along the metacarpophalangeal joints, proximal interphalangeal joints, distal interphalangeal joints, and fingertips. The joint bending angles of the corresponding fingers in the set of joint angles of the five fingers are sequentially filled into the joint rotation matrix of each finger kinematic chain, and multiplied to the right stepwise to obtain the three-dimensional position of the fingertips in the palm coordinate system. For the readings of the flexible pressure sensing units distributed on the fingertips of the five fingers in the palm-finger pressure, the normal pressure of each sensing unit is compared with a preset contact threshold. If the normal pressure of a certain sensing unit is greater than the preset contact threshold, the surface area covered by the sensing unit is marked as an effective contact sub-region. Adjacent effective contact sub-regions on the same fingertips are merged into the actual contact area of ​​the finger according to the boundary connection principle. The positions of each effective contact sub-region within the actual contact area are averaged by area weighting to obtain the geometric center of the actual contact area, and the geometric center is taken as the contact point corresponding to the finger. Using the three-dimensional position of the fingertips in the palm coordinate system as the positioning reference, the contact points of the thumb, index finger, middle finger, ring finger, and little finger are sequentially attached to the palm coordinate system position of the corresponding fingertips. They are then gathered into a set of five contact points according to the above finger order. The starting anchor point of the current gait cycle is used as the time label to obtain the distribution of the five finger contact points in the current gait cycle.

[0027] Taking a bipedal humanoid robot delivering a water cup on a flat indoor floor as an example, with the cup being a standard straight-walled cylindrical container. In one embodiment, the kinematic chains of each finger are established with the palm coordinate system as the common root.

[0028] Specifically, for the index, middle, ring, and little fingers, four links are established sequentially according to their anatomical connections: from the palm to the metacarpophalangeal joint, from the metacarpophalangeal joint to the proximal interphalangeal joint, from the proximal interphalangeal joint to the distal interphalangeal joint, and from the distal interphalangeal joint to the fingertip. Each link has a local coordinate system at both ends, and the relative pose between adjacent coordinate systems is described by a homogeneous coordinate transformation matrix. For the thumb, considering its anatomical structure has only a metacarpophalangeal joint and one interphalangeal joint, three links are established: from the palm to the metacarpophalangeal joint, from the metacarpophalangeal joint to the interphalangeal joint, and from the interphalangeal joint to the fingertip. The configuration rules for the remaining coordinate systems are consistent with those for the four fingers.

[0029] Specifically, in the set of five finger joint angles obtained in the previous step, the index, middle, ring, and little fingers each contain three angle paths: metacarpophalangeal joint, proximal interphalangeal joint, and distal interphalangeal joint. The thumb contains two angle paths: metacarpophalangeal joint and interphalangeal joint. The five fingers together have a total of 14 angle signals, each corresponding to the rotational components of the joints on their respective kinematic chains. The joint angles corresponding to each finger are sequentially filled into the rotation matrix of the corresponding joint in its kinematic chain. The rotation matrix of each joint is then multiplied to the right along the kinematic chain of each finger from the palm root to the distal end to obtain the three-dimensional position of the fingertip in the palm coordinate system. The three-dimensional rotational posture of the palm is output in real time by a nine-axis inertial measurement unit attached to the proximal side of the wrist joint on the back of the hand. After attitude calculation, the quaternion q=[w,x,y,z] is obtained and normalized to be converted into a 3×3 rotation matrix R, where w is the scalar component and x, y, and z are vector components. R is used as the attitude reference of the palm coordinate system relative to the torso coordinate system and is directly multiplied by the three-dimensional position vector of each fingertip to ensure that the three-dimensional position of each fingertip is consistent with the palm orientation in the actual physical space. At the same time, it is uniformly connected with the pre-calibrated positioning posture of the cup cylindrical coordinate system in the torso coordinate system. The flexible pressure sensing unit is attached to the surface of the fingertips in the form of a thin film. The surface of each fingertip is divided into 3 rows along the finger length and 3 columns along the finger width, for a total of 9 sensing sub-cells. The sub-cells in the row near the fingertip have a smaller area, about 3 square millimeters, while those in the row near the base of the finger have a larger area, about 6 square millimeters. The middle column is slightly narrower than the two side columns in the finger width direction. The areas of each sub-cell are not equal, and each sub-cell corresponds to an independent normal pressure reading. This non-uniform array arrangement can distinguish the contact position between the fingertip and the cup wall on a millimeter-scale spatial scale, and also provides an effective weight difference for determining the geometric center of the contact area by area weighting later.

[0030] In one embodiment, a preset contact threshold is set to 5% of the full-scale reading of the flexible pressure sensing unit. That is, when the normal pressure of a sub-element exceeds this threshold, it is determined that there is effective contact between the sub-element and the cup wall, and the sub-element is marked as an effective contact sub-region; otherwise, it is considered suspended or lightly touching and is not included in the contact area. The normal pressure of all nine sub-elements on the same fingertip is compared one by one, and sub-elements exceeding the threshold are filtered out. Furthermore, multiple marked effective contact sub-regions on the same fingertip may be spatially adjacent or isolated. Effective contact sub-regions that are adjacent in location and share a boundary are merged into the actual contact area of ​​the finger according to the boundary connection principle. If multiple groups of non-connected contact sub-regions appear on the same fingertip, each group of contact sub-regions is included in the actual contact area of ​​the finger for subsequent geometric center calculation, maintaining consistency with the aforementioned merging principle.

[0031] Preferably, the geometric center of the actual contact area is obtained by area-weighted centering. Let the actual contact area contain n effective contact sub-regions, where n is the total number of sub-surface elements retained on the fingertip after threshold filtering. Let pi be the center position vector of the i-th effective contact sub-region in the palm coordinate system, and si be the area it occupies on the fingertip surface. Then, the geometric center c = (s1p1 + s2p2 + s3p3 + ... + snpn) / (s1 + s2 + s3 + ... + sn), which is a weighted average of the center position vectors of each sub-region, weighted by the sub-region area. The resulting geometric center c is a three-dimensional coordinate vector in the palm coordinate system. This geometric center c is taken as the contact point corresponding to the finger. The above effective contact sub-region filtering, boundary merging, and area-weighted centering are performed on the index finger, middle finger, ring finger, little finger, and thumb respectively, resulting in five contact points, each expressed as a three-dimensional coordinate vector in the palm coordinate system.

[0032] Understandably, the five contact points mentioned above are assigned to the palm coordinate system positions of the fingertips of the thumb, index finger, middle finger, ring finger, and little finger in a fixed finger order, forming a set of five-element contact points. The starting anchor point of the current gait cycle is then used as a time tag bound to this set, resulting in the five-finger contact point distribution for the current gait cycle. This five-finger contact point distribution reflects the spatial pattern of the cup's outer wall being actually grasped by the five fingers under the hand posture conditions during the current foot placement phase, serving as the contact geometry input for cup torque synthesis and grip risk assessment.

[0033] Step S104: Project the five-finger contact point distribution onto a cylindrical coordinate system established with the geometric center axis of the grasped object as the reference. Obtain the vertical distance from each finger contact point to the cup axis as the action arm. Combine the action arm with the palm and finger pressure to calculate the cup torque. Sort the cup torque according to the timestamp of the gait cycle to construct the original cup torque sequence. Filter the original cup torque sequence with the foot landing time as the time anchor point to filter out the high-frequency components corresponding to the foot impact and output the filtered torque sequence.

[0034] Based on the distribution of the five-finger contact points in the current gait cycle, a cylindrical coordinate system of the cup body is established with the geometric center axis of the cup body as the vertical reference axis and the center of the bottom surface of the cup body as the origin. According to the pre-calibrated relative pose relationship between the outer wall of the cup body and the palm contact surface, the three-dimensional coordinates of each contact point are transformed from the palm coordinate system to the cylindrical coordinate system of the cup body to obtain the radial component, circumferential component and axial component of each contact point in the cylindrical coordinate system of the cup body. The radial component is extracted as the vertical distance from the contact point to the axis of the cup body to form the set of each finger action arm. For the normal pressure reading of the flexible pressure sensing unit of each fingertip in the palm and finger pressure test, the normal force applied by each finger to the cup wall is obtained according to the preset pressure-force linear mapping. The action arm of each finger in the set of action arms is paired with the normal force of that finger according to the same finger index to form five sets of finger force arm pairs. The action arm and normal force in each set of force arm pairs are multiplied to obtain the component torque of that finger around the cup axis. The five finger component torques are synthesized by algebraically summing them in the direction around the cup axis to obtain the instantaneous value of the cup torque at the current sampling time. According to the instantaneous value of the cup torque at the current sampling time, the cup torque is arranged along the gait period according to the timestamp to form the original sequence of cup torque. The foot landing time is used as the time anchor point of the sequence. The original sequence of cup torque is used as the observation input to the Kalman filter to include the high-frequency jump caused by the impact of the ground at the moment of landing and suppress the process noise. After the Kalman filter is updated time by time, the filtered torque sequence after removing the high-frequency component of the landing impact is output.

[0035] In another implementation, the instantaneous value of the cup torque at the current sampling moment is arranged according to the gait cycle and timestamps to form the original sequence of cup torque. The moment the foot lands is used as the time anchor point of this sequence. The original sequence of cup torque is used as the observation input to the Kalman filter. The high-frequency jump caused by the ground impact at the moment of landing is uniformly included in the observation noise channel for suppression. The process noise only bears the model uncertainty such as the gradual change of grip posture and the creep of fingertip flexible deformation. Its covariance matrix Q is taken as a small order of magnitude according to the gradual change rate of grip torque, for example, 0.01 to 0.05. The observation noise covariance matrix R is preset to 50 to 200 times the level of the high-frequency jump caused by the impact at the moment of landing. This allows the filter to automatically reduce the weight of the current observation before and after the landing time anchor point. The state estimate and covariance are updated recursively by the Kalman filter time by time, and the filtered torque sequence after removing the high-frequency component of the landing impact is output. The cylindrical coordinate system of the cup is established with the geometric central axis of the cup as the vertical reference axis, the center of the bottom surface of the cup as the origin, the radial direction pointing towards the outer normal of the cup wall, the circumferential direction along the direction of rotation around the cup wall, and the axial direction along the central axis of the cup from bottom to mouth. At the moment the hand holds the cup, the relative pose between the palm coordinate system and the cylindrical coordinate system of the cup is determined by the initial contact geometry when the hand holds the cup. For example, based on the known prior parameters of the outer diameter and height of the cup before holding the cup, combined with the three-dimensional coordinates of the five contact positions detected by the five-finger pad flexible pressure sensing unit at the moment of the first contact with the cup in the palm coordinate system, the least squares cylindrical fitting is used to obtain the cylindrical surface that best fits the five contact positions. The central axis of this cylindrical surface is taken as the axis of the cup, and the center of the bottom surface of this cylindrical surface is taken as the origin of the cylindrical coordinate system of the cup, thus obtaining the pre-calibrated pose relationship between the palm coordinate system and the cylindrical coordinate system of the cup.

[0036] Specifically, the three-dimensional coordinates of each contact point in the five-finger contact point distribution of the current gait cycle are transformed point by point to the cylindrical coordinate system of the cup body according to the pre-calibrated pose relationship, obtaining the radial, circumferential, and axial components of the contact point in the cylindrical coordinate system of the cup body. The radial component reflects the vertical distance from the contact point to the axis of the cup body, i.e., the action arm, in millimeters; the circumferential component represents the azimuth of the contact point around the cup wall in the form of an azimuth angle, in radians, with a value range of 0 to 2π; the axial component reflects the position of the contact point along the height of the cup, in millimeters. To ensure that the slip amount within subsequent windows is consistent with the radial and axial vector dimensions, the circumferential component is unfolded into arc length coordinates on the surface of the cup wall. The current radial component of the finger contact point is taken as the equivalent radius R, and the azimuth angle θ is converted into the arc length s along the circumference of the cup wall using s = R * θ, in millimeters. R is taken based on the radial reading at the instant of contact, with a typical range of 30 to 45 millimeters. The radial components of each of the five fingers are collected into a set of each finger's working arm according to the fixed finger order of thumb, index finger, middle finger, ring finger, and little finger. At the same time, the circumferential arc length s and axial components of each of the five fingers are collected into a set of circumferential arc length and a set of axial position according to the same finger order. These are then used to obtain the circumferential displacement, axial displacement, and composite slip distance in millimeters by subtracting them within the window according to the sampling time sequence.

[0037] It should be noted that the flexible pressure sensing unit outputs the normal pressure on the contact surface, not the non-normal force.

[0038] For example, a preset pressure-to-force linear mapping is used to convert the normal pressure measured by the flexible pressure sensing unit of each fingertip into the normal force exerted by that finger on the cup wall. The mapping relationship is written as f=k*p, where p is the normal pressure reading at the fingertip, k is the pressure-to-force conversion coefficient obtained from the factory calibration of the flexible pressure sensing unit, which includes the effective sensing area of ​​the sensing unit, and f is the normal force exerted by that finger on the cup wall. The conversion of the normal force of the five fingers is completed in the order of thumb, index finger, middle finger, ring finger, and little finger. Further, the lever arm pairs are paired according to the same finger index, that is, the lever arm of the thumb is paired with the normal force of the thumb as a group, the lever arm of the index finger is paired with the normal force of the index finger as a group, and so on to form five groups of lever arm pairs for each finger. The lever arm and normal force in each group are multiplied to obtain the component torque of that finger on the cup body about the cup body axis. The sign of the component torque is determined by the offset direction of the circumferential azimuth angle of the contact point relative to the axis of the cup in the cylindrical coordinate system of the cup. The component torque located in the front half of the robot's travel direction is positive, and the component torque located in the rear half of the travel direction is negative. The component torques of the five fingers are algebraically summed to obtain the instantaneous value of the cup torque around its own axis at the current sampling moment.

[0039] In one embodiment, the instantaneous values ​​of the cup body torque are arranged according to timestamps along the gait cycle to form the original sequence of cup body torque, and the sampling period is synchronized with the hand joint encoder of the previous stage. The moment the foot lands is used as the time anchor point of this sequence, and a complete period of data from the anchor point to the next landing of the same side foot is extracted as the interval to be filtered.

[0040] Specifically, the impact force generated by the heel striking the ground at the moment of foot contact is transmitted to the cup via the foot, leg, torso, arm, and palm, causing high-frequency jumps on the order of milliseconds in the original torque sequence of the cup. These jump frequencies are much higher than the rotational response frequency of the cup under normal gait rhythm. If the gripping state is directly determined based on the original sequence, the impact spikes will be mistaken for the actual torque changes of the cup. Therefore, a Kalman filter is used to perform time-series denoising on the original torque sequence of the cup.

[0041] Preferably, the state variables of the Kalman filter are the current value of the cup torque and the first-order difference component between its two adjacent time steps, forming a two-dimensional state vector; the observations are the readings of the original cup torque sequence at each moment. The sampling period is 5ms, the difference step size is set according to one adjacent time step, i.e., one sampling period, and the state transition matrix is ​​a two-dimensional upper triangular form, with the first row containing 1s and 1s, and the second row containing 0s and 1s, meaning that the torque of the next time step is equal to the current torque plus the current first-order difference component, and the first-order difference component of the next time step remains unchanged under the assumption of no disturbance; the observation matrix is ​​1 row and 2 columns, with the first column containing 1s and the second column containing 0s, and is mapped only from the torque components in the state to the observations. The observation noise covariance is preset according to the high-frequency jump variable level caused by the impact at the moment of landing, specifically taking the value as 3 times the sliding variance of the original cup torque sequence in the non-landing moment segment, and the sliding window length is 100ms, so that observations that deviate significantly from the predicted value are given lower weights at the moment of landing. The process noise covariance is preset according to the slow-varying level of the cup's own rotational dynamics under normal gait rhythm, taking a two-dimensional diagonal matrix. The variance corresponding to the torque component is taken as 1 / 100 to 1 / 20 of the observed noise variance, and the variance corresponding to the first-order difference component is taken as the square of the empirical range of 0.02Nm to 0.05Nm between the absolute values ​​of the differences between two adjacent beats under normal gait. Off-diagonal terms are set to 0, so that the prediction mainly relies on dynamic recursion, but still retains limited correction capability when the foot impact arrives. The filtering process follows the standard Kalman recursion form, completing the prediction update and observation update stages time-by-time. The recursion starting point is aligned to the foot landing moment. The torque component of the initial state is taken as the observed value at that moment, and the first-order difference component is set to 0. The initial error covariance is taken as a diagonal matrix, and both diagonal elements are taken as 10 times the observed noise variance, ensuring that the time base of the filtered output is consistent with the gait period.

[0042] Understandably, after time-by-time processing by the Kalman filter described above, the high-frequency jumps in the landing impact in the original cup torque sequence are suppressed, resulting in a filtered torque sequence that reflects the true force rhythm of the cup. This filtered torque sequence is stored in an incrementing timestamp manner, with each time point corresponding to a filtered cup torque value, serving as the torque input benchmark for subsequent landing synchronization grip feature vector extraction and grip risk judgment. The cylindrical coordinate projection, lever arm pair synthesis, and Kalman filtering process described in this embodiment are applicable to various landing conditions when the robot walks with different amplitudes and frequencies. Regardless of whether the container held is a cylindrical ceramic water cup, a cylindrical plastic water cup, or a cylindrical stainless steel thermos, as long as its radial, circumferential, and axial directions can be established according to the above rules, the filtered torque sequence of this embodiment can serve as a temporal representation of the cup's rotational trend around its own axis.

[0043] Step S105: Perform a grip risk category analysis based on the filtered torque sequence. The grip risk categories include at least grip stability, tangential slip risk, cup tilt risk, and slip-tilt composite risk.

[0044] The window is defined by taking the moment when the foot touches the ground as the starting point and the moment when the angular velocity of the torso around the vertical axis first drops from non-zero to near zero in the reading of the mid-section inertial measurement unit as the ending point. Within the window from when the foot touches the ground to when the torso rotates, the circumferential components of the five finger contact points in the cylindrical coordinate system of the cup are continuously read according to the sampling sequence. The difference between the circumferential components of each finger contact point and the starting point of the window is taken as the circumferential displacement of that finger. The maximum absolute value of the five finger circumferential displacements is taken as the sliding distance of the current foot landing stage. The angle between the normal vector of the cup rim plane and the vertical axis of the palm coordinate system is read by the miniature inertial measurement unit fixed to the edge of the cup rim to obtain the cup rim tilt angle relative to the palm. Based on the values ​​of the filtered torque sequence within the window from foot contact to the end of torso rotation, the sign corresponding to the longest consecutive period of the same sign is taken as the torque direction within that window. The signs of the values ​​in consecutive beats are compared along the sequence, and the sampling moment when the sign first flips is taken as the reversal moment. The sliding distance, the cup rim tilt angle relative to the palm, the torque direction, and the reversal moment are concatenated in a fixed order to form a multi-dimensional numerical value, resulting in a foot-grasping synchronous feature vector. A support vector machine pre-trained on a cup-grabbing test sample library is used as the grip risk discriminator. Each sample in the cup-grabbing test sample library uses the foot-grasping synchronous feature vector collected in the same fixed order as the sample input, and is labeled with one of four manually labeled categories: stability, tangential sliding, cup tilt, and composite risk. The foot-grasping synchronous feature vector of the current foot-grabbing stage is input into the multi-class classifier of the support vector machine to obtain the grip risk category of the current foot-grabbing stage.

[0045] In one implementation, the definition of the window from foot contact with the ground to the end of torso rotation is accomplished collaboratively by the aforementioned existing foot pressure sensing array and the mid-torso inertial measurement unit.

[0046] Specifically, the moment of foot landing is taken as the starting point of the window, i.e., the sampling moment at which the heel pressure rises; the ending point of the window is read from the sequence of angular velocities of the torso around the vertical axis output by the mid-torso inertial measurement unit. When this angular velocity drops from the non-zero peak at heel landing to an absolute value not exceeding 2% of the full-scale reading for more than two consecutive beats, the sampling moment that first meets this condition is taken as the ending point of the window. The typical span of this time window is between 70 milliseconds and 180 milliseconds, covering the complete mechanical response process of the foot impact being transmitted to the torso and driving the palm rotation via the shoulder and wrist kinematic chain.

[0047] Specifically, within the window from foot contact to the end of torso rotation, the circumferential components of the five-finger contact points in the current gait cycle, distributed in the cylindrical coordinate system of the cup, are continuously read according to the sampling time sequence, resulting in a sequence of the circumferential component of each finger contact point changing over time. The value at each moment in this sequence is subtracted from the corresponding value at the start of the window to obtain the circumferential displacement time sequence of that finger. Positive circumferential displacement values ​​reflect sliding of the contact point along the cup wall around the axis in a certain direction, while negative values ​​reflect sliding in the opposite direction. The maximum absolute value of the five-finger circumferential displacement within the window is taken as the sliding distance of the current foot landing phase. The reading of the cup rim tilt angle relative to the palm is completed by a miniature inertial measurement unit fixed to the outer edge of the cup rim. This unit is attached to the cup rim in the form of a low-mass thin sheet, with its accelerometer sensitive axis perpendicular to the plane of the cup rim.

[0048] For example, during the initial calibration phase, the cup is placed on a horizontal table with the rim horizontal, and the subject's palm is flat against the table with the palm facing upward. At this time, the direction of gravity measured by the accelerometer of the cup's micro inertial measurement unit is the reference direction of the normal vector of the cup's rim plane. This direction is recorded as a fixed reference in the cup's rim coordinate system. Simultaneously, the palm micro inertial measurement unit worn on the back of the hand also collects a set of static attitude quaternions. These are solved together with the quaternions of the cup unit to obtain the fixed calibration quaternion q0 of the cup's rim system relative to the palm system. This quaternion is used for a long time after the initial calibration to describe the initial relative relationship between the cup and the hand in a standard grip posture. During the walking motion while holding the cup, two miniature inertial measurement units (MMUs) on the cup body and palm respectively output their attitude quaternions q1 and q2 in inertial space in real time. Based on these, the normal vector of the cup rim plane is first rotated from the cup rim system to the inertial system via q1, and then mapped to the palm coordinate system via the conjugate rotation of q2. Combined with q0 to compensate for the installation differences between the two units, the real-time pointing of the cup rim normal vector in the palm coordinate system is obtained. The angle between this angle and the vertical axis of the palm coordinate system is then calculated to obtain the cup rim tilt angle relative to the palm. A tilt angle close to 0 indicates that the cup rim plane is orthogonal to the vertical reference of the palm, while a significantly increased tilt angle indicates that the cup rim has deflected relative to the palm.

[0049] It should be noted that the extraction of torque direction and reversal time directly determines the accuracy of subsequent risk assessment. The filtered torque sequence is derived from a six-dimensional force / torque sensor mounted at the base of the cup handle. The measured object is the resultant torque borne by the cup's center of mass relative to the grip axis. The coordinate system is based on the grip axis as the z-axis, the palm back normal as the x-axis, and the thumb pointing as the y-axis. The component around the z-axis is taken as the analysis object, with a sampling rate of 1000Hz. It is processed by a fourth-order zero-phase Butterworth low-pass filter, with a cutoff frequency of 20Hz to suppress physiological hand tremors and high-frequency noise from the sensor. The values ​​of the filtered torque sequence within the window from foot contact to the end of torso rotation are read frame by frame, and divided into several consecutive time periods with the same sign according to the rule of consecutive same signs. The start and end sampling times and the corresponding positive or negative sign are recorded for each time period. A positive sign indicates that the cup is subjected to a clockwise rotation tendency, and a negative sign indicates that it is subjected to a counterclockwise rotation tendency. Compare the durations of all consecutive periods with the same sign, and take the sign corresponding to the longest duration period as the torque direction within the window. Record the sign transition position between the end sampling time of the longest period and its immediate next sampling time as the reversal time, so that the direction and the reversal time jointly characterize the same sign change event. If the longest period itself extends to the end of the window, or if the same sign remains unchanged throughout the entire window without any flip, it is determined as a no-reversal event. In this case, the reversal time is taken as the window duration plus 1 sampling interval as the sentinel value, and the one-dimensional flip occurrence flag is set to 0. In other cases, the flag is set to 1. Thus, the feature vector is jointly represented by the flag and the time, enabling the classifier to distinguish between two physical cases: a flip that occurs near the end of the window and no flip that occurs throughout the entire window.

[0050] In one embodiment, the sliding distance, the cup rim tilt angle relative to the palm, the torque direction, and the reversal time are sequentially concatenated into a set of four-dimensional values ​​in a fixed order of sliding distance, tilt angle, direction, and reversal time to obtain a foot-grasping synchronous feature vector. The torque direction is represented by a positive 1 and a negative 1; the reversal time is represented by its time offset relative to the start of the window, with units consistent with the sampling period. This four-dimensional vector characterizes the mechanical and geometric performance of the gripping state during the current foot-grasping phase, serving as a unified input for gripping risk assessment.

[0051] It should be noted that the establishment of the cup-grabbing test sample library was completed in the offline stage.

[0052] For example, the robot repeatedly performs the task of holding a water cup while walking on the same flat indoor floor. Each landing process collects a set of landing-synchronous grip feature vectors according to the above procedure. Simultaneously, the test personnel use high-speed camera playback to determine whether the landing process belongs to a stable, tangential slip, cup tilt, or combined risk category, and use this category as the label for this sample. The stable category corresponds to a landing process where the cup's posture does not change significantly; the tangential slip category corresponds to a landing process where the contact point has significant circumferential displacement but the cup rim remains horizontal; the cup tilt category corresponds to a landing process where the cup rim's tilt angle relative to the palm deviates significantly from horizontal but the contact point has no significant circumferential displacement; the combined risk category corresponds to a landing process where both characteristics occur simultaneously. After repeatedly collecting more than a preset sample size threshold of 3000 sets, the cup-holding test sample library is formed.

[0053] Preferably, a support vector machine (SVM) is used as the grip risk discriminator. For the four grip risk categories, a one-to-one multi-class classification approach is adopted. Two binary classification sub-models are trained for each of the four categories of samples, resulting in a total of six binary classification sub-models. Each sub-model uses a Gaussian kernel function to handle the non-linear separability of the feature vectors. Using the four-dimensional foot-grabbing synchronous grip feature vectors of the samples in the cup-grabbing test sample library as training input and the four-class labels as training output, the discriminant parameters are obtained and solidified through the standard SVM training process.

[0054] Understandably, during the online operation phase, the foot-holding synchronous feature vector extracted from the current foot-holding phase is input into the solidified support vector machine multi-class classifier. Six binary classification sub-models vote, and the category with the most votes is designated as the grip risk category for the current foot-holding phase, specifically belonging to one of the following: stable, tangential slip, cup tilt, or a combination of risks. To facilitate direct use in subsequent stages, the four risk categories are assigned fixed integer numbers: stable is 0, tangential slip is 1, cup tilt is 2, and combination risk is 3. This numbering rule is written into the sample label file during the training phase and aligned with the classifier output. In the online phase, the classifier directly outputs an integer value 'c' between 0 and 3 as the unique identifier for the grip risk category of the current foot-holding phase. In the subsequent stable recovery sample screening stage, the candidate sample label field is compared with 'c' for integer equality; only samples with identical values ​​are included in the candidate subset. The joint angle adjustment stage executes actions based on the adjustment strategy entry corresponding to the 'c' index, avoiding ambiguity in label matching due to inconsistencies between category names and numbers.

[0055] Step S106: Based on the grip risk category, select stable recovery samples corresponding to the pre-built test sample library, read the stable angles of each joint of the five fingers in the stable recovery sample as the joint target angle, and use the angle difference between the joint target angle and the current joint angle of the robot's five fingers as the joint adjustment amount. Drive the corresponding finger joint to perform bending angle adjustment according to the joint adjustment amount.

[0056] For each grip risk category in the current landing phase, samples with labels matching the grip risk category are selected from the cup-gripping test sample library as a candidate sample subset. For each sample in the candidate sample subset, the absolute value of the difference between its sliding distance and the sliding distance in the current landing phase, and the absolute value of the difference between its cup rim tilt angle relative to the palm and the cup rim tilt angle relative to the palm in the current landing phase are taken to determine the matching difference between the sample and the current landing phase. The sample with the smallest matching difference in the candidate sample subset is selected as the stable recovery sample. The stable angle values ​​recorded by the joints of the thumb, index finger, middle finger, ring finger, and little finger are read from the stable recovery sample, and each stable angle value is assigned as the target angle of the corresponding joint. For each target angle, upper and lower clamping constraints are applied according to the pre-set upper and lower mechanical limits of the joint. If the target angle exceeds the upper and lower mechanical limits, it is replaced with the corresponding limit value. The difference between the constrained target angle and the current bending angle of the joint in the current landing phase is used to obtain the angle adjustment amount of the joint. According to the angle adjustment amount, the fixed finger order of thumb, index finger, middle finger, ring finger and little finger is issued to the corresponding joint drive unit. Each joint drive unit drives the corresponding joint to perform the action along the bending direction according to the angle adjustment amount, so as to obtain the joint angle state of each joint of the five fingers after the bending angle adjustment is completed in the current landing stage.

[0057] In one implementation, the selection of stable recovery samples is based on the aforementioned cup-gripping test sample library. During the offline construction phase, this sample library records the synchronous gripping feature vector and gripping risk category label for each foot placement, and simultaneously registers the joint angle values ​​of the thumb, index finger, middle finger, ring finger, and little finger at the moment of placement. Based on high-speed camera playback, it also labels the stability result based on whether the cup rim remained horizontal after the placement process. Stable recovery samples refer to the subset of samples whose stability determination result indicates successful horizontal maintenance.

[0058] Specifically, for the grip risk category of the current landing stage, samples with labels consistent with the grip risk category and whose stability determination result is successful horizontal maintenance are selected from the cup-gripping test sample library to form a candidate sample subset. Each sample in the candidate sample subset corresponds to a historical scenario of the same type as the current landing risk that has been successfully maintained horizontally. Further, the difference between the maximum and minimum sliding distance, denoted as ds, and the difference between the maximum and minimum angle between the cup rim and the palm, denoted as da, are first calculated within the candidate sample subset as dimensional normalization scaling factors for the two geometric dimensions. If ds or da is too small, a preset lower limit of 0.5 mm and 0.5 degrees is used instead to avoid division by zero amplifying noise. For each sample in the candidate sample subset, calculate the absolute value of the difference between its sliding distance and the sliding distance at the current landing stage, divide by ds to obtain the normalized sliding difference x1; calculate the absolute value of the difference between its cup rim tilt angle relative to the palm and the cup rim tilt angle relative to the palm at the current landing stage, divide by da to obtain the normalized tilt angle difference x2. Then, assign weights w1 (0.6) and w2 (0.4) according to the business side's attention to sliding risk and tilt risk, and synthesize the matching difference d = w1*x1 + w2*x2. The obtained d is a dimensionless quantity that does not change with the choice of length or angle unit, and can consistently reflect the closeness between historical samples and the current landing conditions in the two geometric dimensions of sliding and tilt. The smaller the d, the closer they are. Select the sample with the smallest d in the candidate sample subset as the stable recovery sample; if the smallest d is still greater than the preset matching threshold of 0.3, it is determined that there is no sufficiently similar historical scenario, and the default recovery strategy is switched to avoid mismatch.

[0059] It should be noted that the angle values ​​of each joint of the five fingers recorded in the stable recovery sample are the direct source of the target angle in this step.

[0060] For example, stable angle values ​​recorded for each joint of the thumb, index finger, middle finger, ring finger, and little finger are read from the stable recovery sample. Each stable angle value is assigned as the target angle of the corresponding joint, corresponding to the finger to which it belongs. For instance, if a stable angle value is read from the stable recovery sample for the proximal interphalangeal joint of the ring finger, that angle value is assigned as the target angle of the proximal interphalangeal joint of the ring finger.

[0061] Specifically, the introduction of joint limit constraints prevents the target angle from exceeding the mechanically reachable range, which could lead to joint jamming or structural damage. Each joint of the humanoid dexterous hand has pre-set upper and lower mechanical limit limits. For example, if the upper limit of a joint's mechanical limit is 90 degrees and the lower limit is 0 degrees, then the target angle of that joint must be between these upper and lower limits. For each target angle, if the target angle is greater than the upper limit of the joint's mechanical limit, then the target angle is replaced by the upper limit value; if the target angle is less than the lower limit of the joint's mechanical limit, then the target angle is replaced by the lower limit value; if the target angle is between the upper and lower mechanical limit limits, then the target angle remains unchanged. The constrained target angle is obtained after upper and lower clamping constraints. The difference between the constrained target angle and the current bending angle of the joint during the current footing phase is used to obtain the angle adjustment amount of the joint. The angle adjustment amount is denoted as d = qt - qc, where qt is the target constraint angle, qc is the current bending angle, and d is the angle adjustment amount. A positive value of d indicates that the joint needs to rotate in the direction of increasing bending, while a negative value indicates that the joint needs to rotate in the direction of relaxing bending. The absolute value represents the rotation amplitude. The angle adjustment amount is calculated for each of the fifteen joints of the five fingers, resulting in fifteen angle adjustment values ​​corresponding to each joint.

[0062] In one embodiment, the fifteen angle adjustment amounts are issued to the corresponding joint drive units according to the fixed finger order of thumb, index finger, middle finger, ring finger, and little finger, and the arrangement of each finger joint from proximal to distal. The drive unit uses a micro servo motor or tendon drive mechanism. After receiving the angle adjustment amount command, it drives the joint to rotate according to a preset speed curve until the deviation between the real-time joint angle fed back by the joint angle sensor and the constrained target angle falls within a preset convergence threshold of 0.5 degrees, at which point the joint angle adjustment action is determined to have been executed successfully.

[0063] Preferably, the driving movements of all fifteen joints of the five fingers are issued synchronously in the same control cycle to avoid momentary imbalance in the grip geometry caused by some fingers adjusting first while the others adjust later. After all fifteen joints have completed their adjustment movements, the joint angle state of each joint of the five fingers after completing the bending angle adjustment at the current footing stage is obtained. This state is directly reflected in the redistribution of the bending degree of the ring finger, middle finger, and index finger along the target direction.

[0064] It is understood that the stable recovery sample screening and joint angle adjustment process described in this embodiment is applicable to various landing conditions when the robot walks with different amplitudes and frequencies. Regardless of whether the container held is a cylindrical ceramic water cup, a cylindrical plastic water cup, or a cylindrical stainless steel thermos cup, the dynamic adjustment of the bending angle of the five finger joints during a landing phase can be completed by following the above process.

[0065] like Figure 2 This invention provides a device for adjusting the bending angle of finger joints in a humanoid robot, mainly comprising: The data acquisition module is used to obtain the torso twist angle, foot landing time, finger joint angle, and palm and finger pressure during the landing phase of the humanoid robot. The hand posture calculation module is used to take the moment of foot landing as the starting anchor point of the gait cycle, take the torso twist angle as input, and perform positive kinematic calculations along the shoulder and wrist kinematic chain to calculate the three-dimensional rotational posture of the hand. The five-finger contact point determination module is used to calculate the three-dimensional position of the fingertip by solving the joint angle of the five fingers along the kinematic chain of each finger, based on the three-dimensional rotation posture of the palm. The area where the palm and finger pressure exceeds the preset contact threshold is determined as the actual contact area, and the geometric center of each actual contact area is extracted as the contact point of each finger to obtain the five-finger contact point distribution. The cup torque calculation and filtering module projects the five-finger contact point distribution onto a cylindrical coordinate system established with the geometric center axis of the grasped object as the reference. It obtains the vertical distance from each finger contact point to the cup axis as the action arm, and calculates the cup torque by combining the action arm and palm and finger pressure. The cup torque is sorted according to the timestamp of the gait cycle to construct the original sequence of cup torque. The original sequence of cup torque is filtered with the foot landing time as the time anchor point to filter out the high-frequency components corresponding to the foot impact, and outputs the filtered torque sequence. The grip risk analysis module is used to perform grip risk category analysis based on the filtered torque sequence. The grip risk categories include at least grip stability, tangential slip risk, cup tilt risk, and slip-tilt composite risk. The finger joint adjustment module is used to select stable recovery samples of the corresponding category from a pre-built test sample library according to the grip risk category, read the stable angle of each joint of the five fingers in the stable recovery sample as the joint target angle, and use the angle difference between the joint target angle and the current joint angle of the robot's five fingers as the joint adjustment amount. Based on the joint adjustment amount, the corresponding finger joint is driven to perform bending angle adjustment.

[0066] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for adjusting the bending angle of finger joints in a humanoid robot, characterized in that, The method includes: Acquire the torso twist angle, foot landing time, finger joint angles, and palmar finger pressure during the landing phase of the humanoid robot; Using the moment of foot landing as the starting anchor point of the gait cycle and the torso twist angle as the input, positive kinematic calculations are performed along the shoulder and wrist kinematic chain to solve the three-dimensional rotational posture of the hand. Based on the three-dimensional rotation posture of the palm, the angle of the five finger joints is calculated along the kinematic chain of each finger to obtain the three-dimensional position of the fingertip. The area where the palm and finger pressure exceeds the preset contact threshold is determined as the actual contact area, and the geometric center of each actual contact area is extracted as the contact point of each finger to obtain the distribution of the five finger contact points. The five finger contact points are projected onto a cylindrical coordinate system established with the geometric center axis of the grasped object as the reference. The vertical distance from each finger contact point to the cup axis is obtained as the action arm. The cup torque is calculated by combining the action arm and the palm and finger pressure. The cup torque is sorted according to the timestamp of the gait cycle to construct the original sequence of cup torque. The original sequence of cup torque is filtered with the foot landing time as the time anchor point to filter out the high frequency components corresponding to the foot impact. The filtered torque sequence is then output. The grip risk category analysis is carried out based on the filtered torque sequence. The grip risk category includes at least grip stability, tangential slip risk, cup tilt risk, and slip-tilt combined risk. Based on the grip risk category, stable recovery samples of the corresponding category are selected from the pre-built test sample library. The stable angles of each joint of the five fingers in the stable recovery samples are read as the joint target angles. The angle difference between the joint target angle and the current joint angle of the robot's five fingers is used as the joint adjustment amount. Based on the joint adjustment amount, the corresponding finger joint is driven to perform bending angle adjustment.

2. The method for adjusting the bending angle of the finger joints of a humanoid robot according to claim 1, characterized in that, The acquisition of the torso twist angle, foot landing time, finger joint angles, and palmar finger pressure during the landing phase of the humanoid robot includes: The torsional angle of the torso around the vertical axis is read by the mid-torso inertial measurement unit; the pressure rise signal generated by the heel contacting the ground is detected by the foot pressure sensor array, and the foot landing time is extracted; the bending angle of each joint of the thumb, index finger, middle finger, ring finger and little finger is read synchronously by the encoder of each joint of the hand to form the joint angle of the five fingers; the palm and finger pressure is collected by the flexible pressure sensor units distributed in the palm and the fingertips; the torsional angle, the foot landing time, the joint angle of the five fingers and the palm and finger pressure are combined to form the original perception data group of the foot landing stage.

3. The method for adjusting the bending angle of the finger joints of a humanoid robot according to claim 1, characterized in that, Using the torso twist angle as input, forward kinematic calculations are performed along the shoulder-wrist kinematic chain to solve for the three-dimensional rotational posture of the hand, including: Using the trunk center coordinate system as a reference, homogeneous coordinate transformation matrices are sequentially established from the shoulder joint, elbow joint, and wrist joint to the palm coordinate system to form a shoulder-wrist kinematic chain. The trunk torsion angle is used as the root posture input of the shoulder-wrist kinematic chain. Following the order of the shoulder joint, elbow joint, and wrist joint, the rotation matrices of each joint are multiplied step by step along the shoulder-wrist kinematic chain to obtain the posture transformation result of the palm coordinate system relative to the trunk coordinate system. The three-dimensional rotation posture of the palm is then calculated.

4. The method for adjusting the bending angle of the finger joints of a humanoid robot according to claim 1, characterized in that, The process of defining the area where palm and finger pressure exceeds a preset contact threshold as the actual contact area, and extracting the geometric center of each actual contact area as the contact point of each finger, includes: The normal pressure of each flexible pressure sensing unit on the fingertip is compared with a preset contact threshold. The coverage surface area corresponding to the sensing unit with normal pressure greater than the contact threshold is marked as an effective contact sub-region. The effective contact sub-regions that are adjacent to each other on the upper boundary of the same fingertip are merged to form the actual contact area of ​​the corresponding finger. The geometric center of the actual contact area is determined and used as the contact point of each finger.

5. The method for adjusting the bending angle of the finger joints of a humanoid robot according to claim 1, characterized in that, The process of filtering and removing high-frequency components of the impact force by using the foot landing moment as the anchor point, and outputting a filtered torque sequence, includes: Using the moment the foot lands as the time anchor point of the original cup torque sequence, the original cup torque sequence is input into a Kalman filter. The high-frequency jump generated by the impact of the foot landing is treated as process noise and suppressed. The filtered torque sequence after removing the high-frequency component of the foot impact is output.

6. The method for adjusting the bending angle of the finger joints of a humanoid robot according to claim 1, characterized in that, The process involves selecting stable recovery samples of the same category from the test sample library based on the grip risk category, reading the stable angles of each joint of the five fingers as target angles, and using the difference between the target angle and the current angle as an adjustment amount to drive the corresponding joints to complete the bending angle adjustment, including: Samples with labels matching the current grip risk category are selected from a pre-built cup-gripping test sample library as a subset of candidate samples. For each candidate sample, the absolute value of the difference between the sample's sliding distance and the current cup sliding distance, as well as the absolute value of the difference between the sample's cup rim tilt angle relative to the palm and the current cup rim tilt angle relative to the palm, are calculated. The two absolute values ​​are added together to construct the sample matching difference. The candidate sample with the smallest sample matching difference is selected as the stable recovery sample for the current working condition. The stable angles corresponding to each joint of the five fingers in the stable recovery sample are read and assigned as the target angles of each joint. The target angles are constrained by the preset mechanical limit range of the finger joints. The difference between the constrained target angles of each joint and the current bending angles collected in real time by the robot's five finger joints is calculated to obtain the angle adjustment amount of each finger joint. The corresponding joint adjustment command is generated according to the angle adjustment amount and sent to each joint drive unit according to the preset fixed finger sequence. The finger joints are driven to perform angle compensation adjustment along the bending direction to achieve rapid and stable recovery of the grip state.

7. A device for adjusting the bending angle of finger joints of a humanoid robot, characterized in that, The device includes: The data acquisition module is used to acquire the torso twist angle, foot landing time, finger joint angles, and palm and finger pressure during the landing phase of the humanoid robot. The hand posture calculation module is used to take the moment of foot landing as the starting anchor point of the gait cycle, take the torso twist angle as input, and perform positive kinematic calculations along the shoulder and wrist kinematic chain to calculate the three-dimensional rotational posture of the hand. The five-finger contact point determination module is used to calculate the three-dimensional position of the fingertip by solving the joint angle of the five fingers along the kinematic chain of each finger, based on the three-dimensional rotation posture of the palm. The area where the palm and finger pressure exceeds the preset contact threshold is determined as the actual contact area, and the geometric center of each actual contact area is extracted as the contact point of each finger to obtain the five-finger contact point distribution. The cup torque calculation and filtering module projects the five-finger contact point distribution onto a cylindrical coordinate system established with the geometric center axis of the grasped object as the reference. It obtains the vertical distance from each finger contact point to the cup axis as the action arm, and calculates the cup torque by combining the action arm and palm and finger pressure. The cup torque is sorted according to the timestamp of the gait cycle to construct the original sequence of cup torque. The original sequence of cup torque is filtered with the foot landing time as the time anchor point to filter out the high-frequency components corresponding to the foot impact, and outputs the filtered torque sequence. The grip risk analysis module is used to perform grip risk category analysis based on the filtered torque sequence. The grip risk categories include at least grip stability, tangential slip risk, cup tilt risk, and slip-tilt composite risk. The finger joint adjustment module is used to select stable recovery samples of the corresponding category from a pre-built test sample library according to the grip risk category, read the stable angle of each joint of the five fingers in the stable recovery sample as the joint target angle, and use the angle difference between the joint target angle and the current joint angle of the robot's five fingers as the joint adjustment amount. Based on the joint adjustment amount, the corresponding finger joint is driven to perform bending angle adjustment.

8. The humanoid robot finger joint bending angle adjustment device according to claim 7, characterized in that, The acquisition of the torso twist angle, foot landing time, finger joint angles, and palmar finger pressure during the landing phase of the humanoid robot includes: The torsional angle of the torso around the vertical axis is read by the mid-torso inertial measurement unit; the pressure rise signal generated by the heel contacting the ground is detected by the foot pressure sensor array, and the foot landing time is extracted; the bending angle of each joint of the thumb, index finger, middle finger, ring finger and little finger is read synchronously by the encoder of each joint of the hand to form the joint angle of the five fingers; the palm and finger pressure is collected by the flexible pressure sensor units distributed in the palm and the fingertips; the torsional angle, the foot landing time, the joint angle of the five fingers and the palm and finger pressure are combined to form the original perception data group of the foot landing stage.

9. The humanoid robot finger joint bending angle adjustment device according to claim 7, characterized in that, Using the torso twist angle as input, forward kinematic calculations are performed along the shoulder-wrist kinematic chain to solve for the three-dimensional rotational posture of the hand, including: Using the trunk center coordinate system as a reference, homogeneous coordinate transformation matrices are sequentially established from the shoulder joint, elbow joint, and wrist joint to the palm coordinate system to form a shoulder-wrist kinematic chain. The trunk torsion angle is used as the root posture input of the shoulder-wrist kinematic chain. Following the order of the shoulder joint, elbow joint, and wrist joint, the rotation matrices of each joint are multiplied step by step along the shoulder-wrist kinematic chain to obtain the posture transformation result of the palm coordinate system relative to the trunk coordinate system. The three-dimensional rotation posture of the palm is then calculated.

10. The humanoid robot finger joint bending angle adjustment device according to claim 7, characterized in that, The process of defining the area where palm and finger pressure exceeds a preset contact threshold as the actual contact area, and extracting the geometric center of each actual contact area as the contact point of each finger, includes: The normal pressure of each flexible pressure sensing unit on the fingertip is compared with a preset contact threshold. The coverage surface area corresponding to the sensing unit with normal pressure greater than the contact threshold is marked as an effective contact sub-region. The effective contact sub-regions that are adjacent to each other on the upper boundary of the same fingertip are merged to form the actual contact area of ​​the corresponding finger. The geometric center of the actual contact area is determined and used as the contact point of each finger.