Method and device for identifying mass and center of mass position of load at end of robot arm

Through joint angle data and force sensor detection results, the relationship model is used to represent the mass and center of mass position of the load at the end of the machine arm, which solves the problems of identification complexity and poor implementability in the existing technology, and achieves an accurate and simplified load identification process.

CN116834022BActive Publication Date: 2024-08-13CHANGGUANGXI INTELLIGENT MFG (WUXI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311064371.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-23
Publication Date
2024-08-13
Estimated Expiration
2043-08-23

AI Technical Summary

Technical Problem

In the existing technology, the identification method of the mass and center of mass position of the load at the end of the robot arm is complex and has poor implementability. It is interfered by factors such as sensor noise, bias, and temperature drift, which affects the steady-state characteristics.

Method used

By obtaining the joint angle data of the robot arm, the target transformation matrix is ​​determined, and combined with the force sensor detection results, a relational model is used to represent the mass and center of mass position of the load, and the data difference matrix under multiple target postures is used to eliminate errors and simplify the identification process.

Benefits of technology

It achieves accurate identification of the load mass and center of mass position at the end of the robot arm, simplifies the operation process, improves implementability, reduces errors, and enhances steady-state characteristics.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure FT_1
    Figure FT_1
  • Figure FT_2
    Figure FT_2
  • Figure FT_3
    Figure FT_3
Patent Text Reader

Abstract

The present application provides a method and device for identifying the mass and center of mass position of a load at the end of a robot arm, the method comprising: obtaining joint angle data of the robot arm; determining a target transformation matrix of the robot arm in multiple different target postures based on the joint angle data of the robot arm; determining an identification result that can characterize the mass and center of mass position of the load based on the target transformation matrix and the detection results of the force sensor when the robot arm is in multiple different target postures through a relationship model that can characterize the correlation between the force and torque at the end of the robot arm and the mass and center of mass position of the load. The identification method is simple to operate and has strong feasibility.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of robotic arms, and in particular to a method and device for identifying the mass and center of mass position of a load at the end of a robotic arm, a robotic arm system, an electronic device, and a storage medium. Background Art

[0002] With the rapid development of robot-related technologies and the significant improvement in performance, robot arms can replace workers in handling many complex and dangerous operations in many fields, playing a vital role in promoting the process of industrial automation and intelligence.

[0003] When using a robotic arm, it is inevitable to interact with the external environment. In order to better perceive force information, it is usually necessary to add a force sensor to the end of the robotic arm. The force sensor can detect the force and torque generated by the load at the end of the robotic arm.

[0004] However, since the sensor will be disturbed by noise, zero bias, gravity and other dynamic force information when measuring directly, and the sensor itself will have temperature drift, in order to improve its steady-state characteristics, the mass and center of mass position characteristics of the end load of the robot arm need to be identified before normal use. Conventional identification methods have the problems of complex identification process and poor feasibility. Summary of the invention

[0005] In view of the above-mentioned problems existing in the prior art, the present application provides a method for identifying the mass and center of mass position of the load at the end of a robot arm, a device for identifying the mass and center of mass position of the load at the end of a robot arm, a robot arm system, an electronic device and a computer-readable storage medium. The technical solution adopted in the embodiments of the present application is as follows.

[0006] The first aspect of the present application provides a method for identifying the mass and center of mass position of a load at the end of a robot arm, comprising:

[0007] Acquire joint angle data of a robot arm; the end of the robot arm is connected to a load through a force sensor, and the force sensor is used to detect the force and torque of the end of the robot arm; the joint angle data includes a joint angle sequence of the robot arm in a plurality of different target postures;

[0008] Based on the joint angle data of the robot arm, determining a target transformation matrix of the robot arm under a plurality of different target postures; the target transformation matrix can represent the transformation relationship between the end coordinate system of the robot arm and the load coordinate system;

[0009] Through a relationship model that can characterize the correlation between the force and torque at the end of the robotic arm and the mass and center of mass position of the load, based on the target transformation matrix and the detection results of the force sensor when the robotic arm is in multiple different target postures, an identification result that can characterize the mass and center of mass position of the load is determined.

[0010] In some embodiments, based on the joint angle data of the robot arm, determining the target transformation matrix of the robot arm under a plurality of different target postures includes:

[0011] Based on the first position information capable of characterizing the positional relationship between the end of the robot arm and the force sensor, the force sensor coordinate system is equivalent to the end coordinate system of the robot arm;

[0012] Through the relationship equations among the world coordinate system, the base coordinate system of the robot arm, the end coordinate system of the robot arm and the load coordinate system, based on the joint angle data and the second position information capable of characterizing the positional relationship between the base of the robot arm and the installation position of the base, the rotation transformation matrix of the robot arm under multiple different target postures is determined.

[0013] In some embodiments, when the world coordinate system is parallel to the load coordinate system, the relationship equation is expressed as:

[0014]

[0015] in, It refers to the rotation transformation matrix from coordinate system k to coordinate system n; -1 represents the world coordinate system; 0 represents the base coordinate system of the robot arm; 6 represents the end coordinate system of the robot arm; 7 represents the load coordinate system.

[0016] In some embodiments, the relationship model includes a first relationship model, and the first relationship model is expressed as:

[0017]

[0018] in, and They represent the force and torque of the end coordinate system of the robot arm respectively;

[0019] to for The elements in Represents the rotation transformation matrix from the end coordinate system of the robot arm to the load coordinate system, ;

[0020] , and for The elements in Represents the position cross-product matrix operator from the end coordinate system of the robot arm to the load coordinate system, ; m represents the mass of the load, and g represents the gravitational constant.

[0021] In some embodiments, the identification result capable of characterizing the mass and center of mass position of the load is determined based on the target transformation matrix and the detection results of the force sensor when the robot arm is in a plurality of different target postures, by using a relationship model capable of characterizing the correlation between the force and torque at the end of the robot arm and the mass and center of mass position of the load, including:

[0022] Based on the difference of the detection results of the force sensor when the robot arm is in two adjacent target postures, obtaining the difference matrix of force and torque in the end coordinate system of the robot arm;

[0023] Based on the target transformation matrix, an observation matrix of the robot arm in the corresponding target posture is obtained; the observation matrix can represent the correlation between the force and torque at the end of the robot arm and the mass and center of mass position of the load;

[0024] Based on the difference of the observation matrices when the robot arm is in two adjacent target postures, a difference matrix of the observation matrices is obtained;

[0025] The mass and center of mass position matrix of the load is determined based on the difference matrix of the forces and moments and the difference matrix of the observation matrix through the second relational model.

[0026] In some embodiments, the second relationship model is expressed as:

[0027]

[0028] Where P represents the mass and center of mass position matrix of the load, , , and for The elements in Represents the position cross-product matrix operator from the end coordinate system of the robot arm to the load coordinate system, ;

[0029] represents the difference matrix of force and torque, , , and They represent the force and torque of the end of the robot arm in the end coordinate system of the robot arm respectively; n represents the nth target posture;

[0030] represents the difference matrix of the observation matrix, , A represents the observation matrix, , to for The elements in Represents the rotation transformation matrix from the end coordinate system of the robot arm to the load coordinate system, ; m represents the mass of the load, and g represents the gravitational constant.

[0031] The second aspect of the present application provides a device for identifying the mass and center of mass position of a load at the end of a robot arm, comprising:

[0032] an acquisition module, used for acquiring joint angle data of a robot arm; the end of the robot arm is connected to a load via a force sensor, and the force sensor is used for detecting the force and torque of the end of the robot arm; the joint angle data includes a sequence of joint angles of the robot arm in a plurality of different target postures;

[0033] A determination module, used to determine a target transformation matrix of the robot arm under a plurality of different target postures based on the joint angle data of the robot arm; the target transformation matrix can represent the transformation relationship between the end coordinate system of the robot arm and the load coordinate system;

[0034] The identification module is used to determine the identification results that can characterize the mass and center of mass position of the load through a relationship model that can characterize the correlation between the force and torque at the end of the robot arm and the mass and center of mass position of the load, based on the target transformation matrix, and the detection results of the force sensor when the robot arm is in multiple different target postures.

[0035] A third aspect of the present application provides a robotic arm system, comprising a robotic arm and the mass and center of mass position identification device of a load at the end of the robotic arm as described above.

[0036] A fourth aspect of the present application provides an electronic device, comprising at least a memory and a processor, wherein the memory stores a program, and the processor implements the method described in any of the above embodiments when executing the program on the memory.

[0037] A fifth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions in the computer-readable storage medium are executed, the method described in any of the above embodiments is implemented.

[0038] The method for identifying the mass and center of mass position of the load at the end of a robot arm of the embodiment of the present application controls the robot arm to move to multiple different target postures, obtains the joint angle sequence and the detection results of the force sensor when the robot arm is in each target posture; based on the joint angle sequence, the target transformation matrix of the robot arm in the corresponding target posture can be determined; through a pre-constructed relationship model, based on the target transformation matrix, and the detection results of the force sensor when the robot arm is in multiple different target postures, the identification results characterizing the mass and center of mass position of the load can be determined, the operation is simple, and has strong feasibility. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 This is a schematic structural diagram of a robotic arm system according to a fourth embodiment of the present application;

[0040] Figure 2 This is a flow chart of a method for identifying the mass and center of mass position of a load at the end of a robot arm according to a first embodiment of the present application;

[0041] Figure 3 This is a flow chart of a method for identifying the mass and center of mass position of a load at the end of a robot arm according to a second embodiment of the present application;

[0042] Figure 4 This is a structural block diagram of a device for identifying the mass and center of mass position of a load at the end of a robot arm according to a third embodiment of the present application;

[0043] Figure 5 This is a structural block diagram of an electronic device according to the fifth embodiment of the present application. DETAILED DESCRIPTION

[0044] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It should also be noted that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.

[0045] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0046] The first embodiment of the present application provides a method for identifying the mass and center of mass position of a load at the end of a robot arm. Figure 1As shown, a force sensor 102 is provided at the end of the robot arm 101, and the end of the robot arm 101 is connected to the load 103 through the force sensor 102. The force sensor 102 is used to detect the force and torque at the end of the robot arm 101. The robot arm 101 may include various types of robot arms. For example, a four-axis robot arm, a five-axis robot arm, or a six-axis robot arm, etc. The force sensor 102 includes but is not limited to multi-dimensional force sensors such as three-dimensional force sensors and six-dimensional force sensors. The load 103 may include various tools connected to the end of the robot arm 103 through the force sensor 102, such as a clamp, a welding tool, a carving tool, a 3D printing tool, etc. The types of the robot arm 101, the force sensor 102, and the load 103 are not limited here.

[0047] Figure 2 This is a flow chart of the method for identifying the mass and center of mass position of the load at the end of the robot arm according to the first embodiment of the present application. Figure 2 As shown, the method for identifying the mass and center of mass position of the load at the end of a robot arm of the first embodiment of the present application may specifically include the following steps.

[0048] S210, obtaining joint angle data of the robot arm.

[0049] The joint angle data includes the joint angle sequence of the robot arm in multiple different target postures. The joint angle sequence includes the joint side rotation angle of each joint module of the robot arm when the robot arm is in the corresponding target posture. Taking the robot arm as a six-axis robot arm as an example, the joint angle sequence can be expressed as J (J1, J2, J3, J4, J5, J6), where J1 to J6 respectively represent the joint side rotation angles of the six joint modules of the six-axis robot arm.

[0050] Optionally, the robot arm can be controlled to move to each target posture, and the rotation angle can be detected by an encoder arranged on the joint output side of the joint module. A joint angle sequence that enables the robot arm to move to the corresponding target posture can also be obtained from the controller of the robot arm.

[0051] Optionally, the identification method can be applied to the controller of the robot arm, and the mass and center of mass position of the end load of the robot arm itself can be identified by the controller of the robot arm. The controller can obtain the rotation angle of the joint output side of each joint module from the encoder, and the controller can also obtain the joint angle sequence that enables the robot arm to move to the corresponding target posture locally.

[0052] Optionally, the identification method can also be applied to an external auxiliary device, through which the mass and center of mass position of the end load of the robot arm can be identified. The auxiliary device can be connected to the controller of the robot arm in communication, and can obtain the joint angle sequence by interacting with the controller. The auxiliary device can include various electronic devices capable of data processing, and the type of the auxiliary device is not limited here.

[0053] Optionally, the detection results of the force sensor when the robot arm is in different target postures can also be obtained. The robot arm can be controlled to move to the corresponding target posture based on the joint angle sequence, and the force and torque can be detected by the force sensor. For example, the six-axis robot arm can be controlled to move to the corresponding target posture based on the joint angle sequence J (J1, J2, J3, J4, J5, J6) to obtain the detection results of the six-dimensional force sensor. The detection results include the force and torque in the detection dimension of the force sensor, which are actually the force and torque in the force sensor coordinate system. Taking the six-dimensional force sensor as an example, the detection results include three component forces and three torques Fx, Fy, Fz, Mx, My and Mz formed in the force sensor coordinate system.

[0054] S220, based on the joint angle data of the robot arm, determining a target transformation matrix of the robot arm under a plurality of different target postures, wherein the target transformation matrix can represent a transformation relationship between an end coordinate system of the robot arm and a load coordinate system.

[0055] Optionally, first position information may be obtained, and the first position information may be used to characterize the positional relationship between the end of the robotic arm and the force sensor. The force sensor coordinate system may be equivalent to the end coordinate system of the robotic arm based on the first position information. For example, the Euler angle used to describe the rotational transformation relationship between the force sensor and the end of the robotic arm may be obtained, and the force sensor coordinate system may be equivalent to the end coordinate system of the robotic arm based on the Euler angle.

[0056] Based on the DH parameters (i.e., Denavit-Hartenberg parameters) of the robot arm, the coordinate systems of each joint of the robot arm can be determined, and the homogeneous transformation matrix of the adjacent joint coordinate systems can be obtained, thereby establishing a forward kinematics model of the robot arm. The target transformation matrix of the robot arm under multiple different target postures can be determined based on the joint angle sequence of the robot arm under different target postures through the forward kinematics model. Optionally, the target change matrix may include a translation transformation matrix and / or a rotation transformation matrix between the end coordinate system of the robot arm and the load coordinate system.

[0057] S230, through a relationship model that can characterize the correlation between the force and torque at the end of the robot arm and the mass and center of mass position of the load, based on the target transformation matrix, and the detection results of the force sensor when the robot arm is in multiple different target postures, determine the identification results that can characterize the mass and center of mass position of the load.

[0058] Optionally, the mass and center of mass position of the load can be converted to the end coordinate system of the robot arm in advance according to the transformation relationship between the static force in the end coordinate system of the robot arm and the load coordinate system, and the mass and center of mass position matrix of the load can be linearly separated to form a relationship model that can characterize the relationship between the force and torque at the end of the robot arm and the mass and center of mass position of the load. The mass and center of mass position matrix of the load can be used as an identification result that can characterize the mass and center of mass position of the load. It is understandable that the identification result can have a variety of data representations, not limited to the mass and center of mass position matrix of the load.

[0059] Optionally, at least one element in the target transformation matrix may be a parameter of the relational model. For example, all or part of the elements in the translation transformation matrix may be parameters of the relational model, and / or all or part of the elements in the rotation transformation matrix may also be parameters in the relational model. The target transformation matrix of the robot arm in multiple different target postures and the detection results of the force sensor may be brought into the relational model to construct a target equation group. Solving the target equation group may obtain an identification result, which can characterize the mass of the load and the center of mass position of the load in the end coordinate system of the robot arm.

[0060] Optionally, when the target equation group is obtained, the target equation group can be solved by the least square method to obtain the optimal identification result. Of course, in practical applications, other optimization algorithms can also be used to solve the target equation group to obtain the identification result.

[0061] The method for identifying the mass and center of mass position of the load at the end of a robot arm of the embodiment of the present application controls the robot arm to move to multiple different target postures, obtains the joint angle sequence and the detection results of the force sensor when the robot arm is in each target posture; based on the joint angle sequence, the target transformation matrix of the robot arm in the corresponding target posture can be determined; through a pre-constructed relationship model, based on the target transformation matrix, and the detection results of the force sensor when the robot arm is in multiple different target postures, the identification results characterizing the mass and center of mass position of the load can be determined, the operation is simple, and has strong feasibility.

[0062] In some embodiments, step S220, determining a target transformation matrix of the robotic arm under a plurality of different target postures based on the joint angle data of the robotic arm, may include the following steps.

[0063] S221: Based on first position information capable of characterizing a positional relationship between an end of the robot arm and the force sensor, the force sensor coordinate system is equivalent to the end coordinate system of the robot arm.

[0064] S222, through the relationship equations among the world coordinate system, the base coordinate system of the robot arm, the end coordinate system of the robot arm and the load coordinate system, based on the joint angle data, and the second position information that can characterize the positional relationship between the base of the robot arm and the installation position of the base, determine the rotation transformation matrix of the robot arm under multiple different target postures.

[0065] Optionally, the world coordinate system {-1}, the base coordinate system of the robot arm {0}, the force sensor coordinate system {6} and the load coordinate system {7} may be pre-constructed, such as Figure 1 As shown. Based on the first position information, the force sensor coordinate system {6} can be equivalent to the end coordinate system of the robot arm, that is, the end coordinate system of the robot arm can also be recorded as {6}.

[0066] The transformation relationship among the world coordinate system {-1}, the base coordinate system {0} of the robot arm, the end coordinate system {6} of the robot arm and the load coordinate system {7} can be determined based on the forward kinematics model of the robot arm, and a relational equation can be constructed based on the transformation relationship.

[0067] When the joint angle data is obtained, the first position information, the second position information and the joint angle data are substituted into the relational equation to determine the rotation transformation matrix of the robot arm at the corresponding target posture. In fact, the purpose of making the force sensor coordinate system equivalent to the end coordinate system of the robot arm is achieved.

[0068] Optionally, the world coordinate system may be parallel to the load coordinate system. On this basis, the world coordinate system {-1}, the base coordinate system of the robot arm {0}, the end coordinate system of the robot arm {6} and the load coordinate system {7} may have the following relationship.

[0069] (1).

[0070] Where E represents the identity matrix, It refers to the rotation transformation matrix from coordinate system k to coordinate system n. -1 represents the world coordinate system, 0 represents the base coordinate system of the robot arm, 6 represents the end coordinate system of the robot arm, and 7 represents the load coordinate system.

[0071] Since E represents the unit matrix, according to formula (1), the transformation relationship between the world coordinate system {-1}, the base coordinate system of the robot arm {0}, the end coordinate system of the robot arm {6} and the load coordinate system {7} can be expressed by the following relationship equation.

[0072] (2).

[0073] The rotation transformation matrix between the world coordinate system {-1} and the base coordinate system {0} of the robot arm can be determined based on the second position information Optionally, the second position information may include Euler angles for describing the rotational transformation relationship between the base of the robot arm and the mounting position of the base. The rotational transformation matrix between the world coordinate system and the base coordinate system of the robot arm may be determined based on the Euler angles. .

[0074] When the joint angle sequence is obtained, the rotation transformation matrix between the base coordinate system {0} of the robot arm and the end coordinate system {6} of the robot arm can be determined based on the forward kinematics model of the robot arm. On this basis, the rotation transformation matrix between the end coordinate system {6} of the robot arm and the load coordinate system {7} can be determined based on formula (2): .

[0075] By making the force sensor coordinate system equivalent to the end coordinate system of the robot arm, and constructing the relationship equation to include the conversion relationship between the world coordinate system and the base coordinate system of the robot arm, the base of the robot arm can be installed at any installation position, and any installation angle can be formed between the installation position of the base. Similarly, any installation angle can be formed between the force sensor and the end of the robot arm. The identification method of the embodiment of the present application can accurately identify the mass and center of mass position of the load.

[0076] In some embodiments, the relationship model includes a first relationship model, and the first relationship model is expressed as:

[0077] (3).

[0078] in, and They represent the force and torque of the end coordinate system of the robot arm respectively; to for The elements in represents the rotation transformation matrix from the robot arm's end coordinate system {6} to the load coordinate system {7}, ; , and for The elements in Represents the position cross product matrix operator from the end coordinate system {6} of the robot arm to the load coordinate system {7}, ; m represents the mass of the load, and g represents the gravitational constant.

[0079] Optionally, the formula (3) can be replaced by Defined as the force and moment matrix, the formula (3) can be is defined as the observation matrix, and the formula (3) can be Defined as the mass and center of mass position matrix of the load.

[0080] Based on the detection results of the force sensor of the robot arm at different target postures, the corresponding force and torque matrix can be determined. Based on the joint angle sequence of the robot arm at different target postures, the rotation transformation matrix from the end coordinate system {6} of the robot arm to the load coordinate system {7} can be determined based on formula (2): , which can be based on the rotation transformation matrix Determine the observation matrix. Based on the multiple force and torque matrices and the observation matrix, a first target equation group can be constructed. The mass and center of mass position matrix of the load can be determined by optimizing and solving the first target equation group. For example, the first target equation group can be solved based on the least square method to obtain the optimal solution of the mass and center of mass position matrix of the load.

[0081] In some embodiments, step S230, through a relationship model that can characterize the correlation between the force and torque at the end of the robot arm and the mass and center of mass position of the load, based on the target transformation matrix, and the detection results of the force sensor when the robot arm is in multiple different target postures, determines the identification results that can characterize the mass and center of mass position of the load, which may include the following steps.

[0082] S231, based on the difference in detection results of the force sensor when the robot arm is in two adjacent target postures, obtain a difference matrix of force and torque in the end coordinate system of the robot arm.

[0083] S232, based on the target transformation matrix, obtaining an observation matrix of the robot arm in the corresponding target posture; the observation matrix can characterize the correlation between the force and torque at the end of the robot arm and the mass and center of mass position of the load.

[0084] S233, obtaining a difference matrix of the observation matrices based on the difference of the observation matrices when the robot arm is in two adjacent target postures.

[0085] S234, determining the mass and center of mass position matrix of the load based on the difference matrix of the force and moment and the difference matrix of the observation matrix through the second relational model.

[0086] Optionally, the corresponding force and torque matrix can be constructed based on the detection results of the force sensor of the robot arm at different target postures , the force and moment matrix can be denoted as F, and the difference matrix of force and moment can be denoted as , then .

[0087] Optionally, based on a rotation transformation matrix Determine the observation matrix , the observation matrix can be recorded as A, and the difference matrix of the observation matrix can be recorded as , then .

[0088] Optionally, the second relational model may be expressed as:

[0089] (4).

[0090] Where P represents the mass and center of mass position matrix of the load, , , and for The elements in Represents the position cross-product matrix operator from the end coordinate system of the robot arm to the load coordinate system, .

[0091] Based on the second relationship model shown in formula (4), as well as the joint angle sequence and force sensor detection results of the robot arm in different target postures, the second target equation group can be constructed. The mass and center of mass position matrix of the load can also be determined by optimizing and solving the second target equation group. By performing difference calculation on the detection results of the force sensor when the robot arm is in two adjacent target postures, the difference matrix of force and torque is obtained, and the difference calculation on the observation matrix when the robot arm is in two adjacent target postures is performed to obtain the difference matrix of the observation matrix, the error caused by factors such as force sensor bias can be eliminated. The second relationship model formed can more accurately characterize the relationship between the force and torque at the end of the robot arm and the mass and center of mass position of the load, and can improve the accuracy of the identification result.

[0092] The second embodiment of the present application provides a method for identifying the mass and center of mass position of a load at the end of a robot arm. Figure 1 As shown, a force sensor 102 is provided at the end of the robot arm 101 , and the end of the robot arm 101 is connected to a load 103 via the force sensor 102 . The force sensor 102 is used to detect the force and torque at the end of the robot arm 101 .

[0093] Figure 3 This is a flow chart of the method for identifying the mass and center of mass position of the robot arm end load according to the second embodiment of the present application, see Figure 3 As shown, the method for identifying the mass and center of mass position of the load at the end of a robot arm in the second embodiment of the present application may specifically include the following steps.

[0094] S310, constructing a relational equation capable of characterizing the conversion relationship among a world coordinate system, a base coordinate system of a robot arm, an end coordinate system of the robot arm, and a load coordinate system, wherein the world coordinate system is parallel to the load coordinate system.

[0095] Optionally, a world coordinate system {-1}, a base coordinate system {0} of the robot arm, a force sensor coordinate system {6} and a load coordinate system {7} may be constructed, and the world coordinate system {-1} may be constructed to be parallel to the load coordinate system {7}, such as Figure 1 As shown. Based on the first position information, the force sensor coordinate system {6} can be equivalent to the end coordinate system of the robot arm, that is, the end coordinate system of the robot arm can also be recorded as {6}. For example, based on the Euler angle between the force sensor and the end of the robot arm, the force sensor coordinate system can be equivalent to the end coordinate system of the robot arm.

[0096] On the basis that the world coordinate system {-1} and the load coordinate system {7} are parallel to each other, the world coordinate system {-1}, the base coordinate system {0} of the robot arm, the end coordinate system {6} of the robot arm and the load coordinate system {7} may have the following relationship.

[0097] (1).

[0098] Where E represents the identity matrix, It refers to the rotation transformation matrix from coordinate system k to coordinate system n. -1 represents the world coordinate system, 0 represents the base coordinate system of the robot arm, 6 represents the end coordinate system of the robot arm, and 7 represents the load coordinate system.

[0099] Since E represents the unit matrix, according to formula (1), the transformation relationship between the world coordinate system {-1}, the base coordinate system of the robot arm {0}, the end coordinate system of the robot arm {6} and the load coordinate system {7} can be expressed by the following relationship equation.

[0100] (2).

[0101] in, The rotation transformation matrix between the world coordinate system {-1} and the base coordinate system {0} of the robot arm can be determined based on the second position information that can characterize the positional relationship between the base of the robot arm and the installation position of the base. .

[0102] S320: construct a second relationship model that can characterize the correlation between the force and torque at the end of the robot arm and the mass and center of mass position of the load.

[0103] Optionally, the transformation relationship between the static force in the end coordinate system of the robot arm and the load coordinate system can be expressed by the following formula.

[0104] (5).

[0105] in, and They represent the force and moment of the robot arm in the end coordinate system {6} respectively; and They represent the force and moment in the load coordinate system {7} respectively; Represents the position cross product matrix operator between the end coordinate system of the robot arm and the load coordinate system, ; represents the rotation transformation matrix from the end coordinate system of the robot arm to the load coordinate system, .

[0106] The load coordinate system of the load itself is parallel to the world coordinate system. The load is only affected by gravity and has no torque in its own load coordinate system. The force and torque of the load in its own load coordinate system can be expressed by the following formula.

[0107] (6).

[0108] Among them, m represents mass, g represents gravitational constant, and T represents transpose.

[0109] Formula (6) and position cross-multiplication matrix operator The expression and rotation transformation matrix Substituting the expression into formula (5) we can obtain the following formula.

[0110] (7).

[0111] By rearranging the right side of the equal sign in formula (7), we can obtain the following relationship.

[0112] (8).

[0113] By linearly separating the parameters related to the mass and center of mass of the load in formula (8), the first relationship model can be obtained.

[0114] (3).

[0115] The formula (3) can be is defined as the force and moment matrix, denoted as F. is defined as the observation matrix, denoted as A. The formula (3) can be It is defined as the mass and center of mass position matrix of the load, denoted as P.

[0116] The rotation edge matrix of the robot arm in two adjacent target postures , and the detection results of the force sensor are respectively substituted into formula (3) and the difference is calculated to obtain the following relationship.

[0117] (9).

[0118] You can record for , for , then we can get the following relationship.

[0119] (10).

[0120] By transforming formula (10), the second relationship model can be obtained.

[0121] (4).

[0122] S330, obtaining joint angle sequences and force sensor detection results of the robot arm in different target postures.

[0123] Optionally, the robot arm may be controlled to move to various target postures to obtain the detection results of the force sensor. For example, the detection results of a six-dimensional force sensor may be obtained.

[0124] Optionally, the rotation angle is detected by an encoder provided on the joint output side of the joint module. A joint angle sequence that enables the robot arm to move to a corresponding target posture can also be obtained from the controller of the robot arm. For example, the joint side rotation angles of the six joint modules of a six-axis robot arm can be obtained.

[0125] S340, determining a difference matrix of an observation matrix based on the relationship equation and the joint angle sequence of the robot arm in two adjacent target postures, wherein the observation matrix can characterize the correlation between the force and torque at the end of the robot arm and the mass and center of mass position of the load.

[0126] Optionally, the rotation edge matrix at two adjacent target postures can be obtained based on the joint angle sequence of the robot arm at two adjacent target postures through the relationship equation: . We can further obtain the observation matrix of two adjacent target postures: and , and then the difference matrix of the observation matrix can be determined .

[0127] S350, determining a difference matrix of force and torque in the end coordinate system of the robotic arm based on detection results of the force sensor when the robotic arm is in two adjacent target postures.

[0128] Optionally, the force and torque matrices can be constructed based on the detection results of the force sensors in two adjacent target postures processed by the robot arm. and , and then the difference matrix of force and torque in the end coordinate system of the robot arm can be determined .

[0129] S360, determining the mass and center of mass position matrix of the load based on the difference matrix of the observation matrix and the difference matrix of force and torque through the second relational model, wherein the mass and center of mass position matrix of the load can characterize the mass and center of mass position of the end load of the robot arm.

[0130] Optionally, the difference matrix of multiple observation matrices can be The difference matrix of the sum of forces and moments Substitute them into formula (4) to construct the second objective equation group. The second objective equation group is optimized and solved based on the optimization solution algorithm to obtain the mass and center of mass position matrix of the load.

[0131] It should be noted that the relational equation in step S310 and the second relational model in step S320 can be pre-built or can be pushed and converted in real time. In the case where the relational equation and the second relational model are pre-built, data processing can be performed based on the relational equation and the second relational model. Steps S340, S350 and S360 can be completed in parts or performed simultaneously.

[0132] The method for identifying the mass and center of mass position of the load at the end of a robotic arm of the embodiment of the present application can be used to identify a robotic arm at any installation position and installation angle. The operation is simple, the results are accurate, and the method has strong feasibility.

[0133] See also Figure 4 As shown, the third embodiment of the present application provides a device for identifying the mass and center of mass position of a load at the end of a robot arm, comprising:

[0134] The acquisition module 401 is used to acquire the joint angle data of the robot arm; the end of the robot arm is connected to the load through a force sensor, and the force sensor is used to detect the force and torque of the end of the robot arm; the joint angle data includes the joint angle sequence of the robot arm in multiple different target postures;

[0135] A determination module 402 is used to determine a target transformation matrix of the robot arm under a plurality of different target postures based on the joint angle data of the robot arm; the target transformation matrix can represent the transformation relationship between the end coordinate system of the robot arm and the load coordinate system;

[0136] The identification module 403 is used to determine the identification results that can characterize the mass and center of mass position of the load through a relationship model that can characterize the correlation between the force and torque at the end of the robot arm and the mass and center of mass position of the load, based on the target transformation matrix, and the detection results of the force sensor when the robot arm is in multiple different target postures.

[0137] See also Figure 1As shown, the fourth embodiment of the present application provides a robot arm system, which may include a robot arm 101 and a mass and center of mass position identification device for a load at the end of the robot arm as described in any of the above embodiments. A force sensor 102 is provided at the end of the robot arm 101, and the end of the robot arm 101 is connected to a load 103 through the force sensor 102. The force sensor 102 is used to detect the force and torque at the end of the robot arm 101. The robot arm 101 may include various types of robot arms, for example, a four-axis robot arm, a five-axis robot arm, or a six-axis robot arm, etc. The force sensor 102 includes but is not limited to multi-dimensional force sensors such as a three-dimensional force sensor and a six-dimensional force sensor. The load 103 may include various tools connected to the end of the robot arm 101 through the force sensor 102, for example, a clamp, a welding tool, a carving tool, a 3D printing tool, etc. The types of the robot arm 101, the force sensor 102, and the load 103 are not limited here.

[0138] See also Figure 5 As shown, the fifth embodiment of the present application further provides an electronic device, comprising at least a memory 501 and a processor 502, wherein the memory 501 stores a program, and the processor 502 implements the method described in any of the above embodiments when executing the program on the memory 501.

[0139] The sixth embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions in the computer-readable storage medium are executed, the method described in any of the above embodiments is implemented.

[0140] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, electronic equipment, computer-readable storage media or computer program products. Therefore, the present application may adopt the form of complete hardware embodiments, complete software embodiments or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media that include computer-usable program code. When implemented by software, these functions may be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium.

[0141] The processor may be a general purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof. The general purpose processor may be a microprocessor or any conventional processor.

[0142] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0143] The above-mentioned readable storage medium can be a disk, an optical disk, a DVD, a USB, a read-only memory (ROM) or a random access memory (RAM), etc. This application does not limit the specific form of the storage medium.

[0144] The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application. The protection scope of the present application is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present application within the essence and protection scope of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present application.

Claims

1. A method for identifying the mass and center of mass position of a load at the end of a robot arm, characterized in that: include: Get the joint angle data of the robot arm; The end of the robot arm is connected to the load through a force sensor, and the force sensor is used to detect the force and torque at the end of the robot arm; The joint angle data includes a joint angle sequence of the robot arm in a plurality of different target postures; Based on the joint angle data of the robot arm, determining a target transformation matrix of the robot arm under a plurality of different target postures; the target transformation matrix can represent the transformation relationship between the end coordinate system of the robot arm and the load coordinate system; Determine an identification result that can characterize the mass and center of mass position of the load by using a relationship model that can characterize the correlation between the force and torque at the end of the robot arm and the mass and center of mass position of the load, based on the target transformation matrix, and the detection results of the force sensor when the robot arm is in a plurality of different target postures; The identification results that can characterize the mass and center of mass position of the load are determined, including: Based on the difference of the detection results of the force sensor when the robot arm is in two adjacent target postures, obtaining the difference matrix of force and torque in the end coordinate system of the robot arm; Based on the target transformation matrix, an observation matrix of the robot arm in the corresponding target posture is obtained; the observation matrix can represent the correlation between the force and torque at the end of the robot arm and the mass and center of mass position of the load; Based on the difference of the observation matrices when the robot arm is in two adjacent target postures, a difference matrix of the observation matrices is obtained; Constructing a second relationship model based on the difference matrix of the force and moment and the difference matrix of the observation matrix; Based on the second relationship model, and the joint angle sequences of the robot arm in different target postures and the detection results of the force sensor, a second target equation group is constructed; Optimizing and solving the second target equation group to determine the mass and center of mass position matrix of the load; Wherein, the second relational model is expressed as: Where P represents the mass and center of mass position matrix of the load, p x 、p y and p z for 6 The elements in P7×, 6 P7× represents the position cross-product matrix operator from the end coordinate system of the robot arm to the load coordinate system. represents the difference matrix of force and torque, 6 F6 and 6 N6 represents the force and torque of the end of the robot arm in the end coordinate system of the robot arm; n represents the nth target posture; represents the difference matrix of the observation matrix, A represents the observation matrix, r 13 To r 33 for The elements in Represents the rotation transformation matrix from the end coordinate system of the robot arm to the load coordinate system, m is the mass of the load and g is the gravitational constant.

2. The method according to claim 1, characterized in that Based on the joint angle data of the robot arm, the target transformation matrix of the robot arm under multiple different target postures is determined, including: Based on the first position information capable of characterizing the positional relationship between the end of the robot arm and the force sensor, the force sensor coordinate system is equivalent to the end coordinate system of the robot arm; Through the relationship equations among the world coordinate system, the base coordinate system of the robot arm, the end coordinate system of the robot arm and the load coordinate system, based on the joint angle data and the second position information capable of characterizing the positional relationship between the base of the robot arm and the installation position of the base, the rotation transformation matrix of the robot arm under multiple different target postures is determined.

3. The method according to claim 2, characterized in that When the world coordinate system is parallel to the load coordinate system, the relational equation is expressed as: in, It refers to the rotation transformation matrix from coordinate system k to coordinate system n; -1 represents the world coordinate system; 0 represents the base coordinate system of the robot arm; 6 represents the end coordinate system of the robot arm; 7 represents the load coordinate system.

4. The method according to claim 1, characterized in that: The relationship model includes a first relationship model, and the first relationship model is expressed as: in, 6 F6 and 6 N6 represents the force and torque of the end coordinate system of the robot arm; r 13 To r 33 for The elements in Represents the rotation transformation matrix from the end coordinate system of the robot arm to the load coordinate system, p x 、p y and p z for 6 The elements in P7×, 6 P7× represents the position cross-product matrix operator from the end coordinate system of the robot arm to the load coordinate system. m is the mass of the load and g is the gravitational constant.

5. A device for identifying the mass and center of mass position of a load at the end of a robot arm, characterized in that: include: An acquisition module is used to obtain the joint angle data of the robot arm; The end of the robot arm is connected to the load through a force sensor, and the force sensor is used to detect the force and torque at the end of the robot arm; The joint angle data includes a joint angle sequence of the robot arm in a plurality of different target postures; A determination module, used for determining a target transformation matrix of the robot arm under a plurality of different target postures based on the joint angle data of the robot arm; The target transformation matrix can represent the transformation relationship between the end coordinate system of the robot arm and the load coordinate system; an identification module, for determining an identification result capable of characterizing the mass and center of mass position of the load by using a relationship model capable of characterizing the correlation between the force and torque at the end of the robot arm and the mass and center of mass position of the load, based on the target transformation matrix, and detection results of the force sensor when the robot arm is in a plurality of different target postures; Wherein, the identification module is specifically used for: Based on the difference of the detection results of the force sensor when the robot arm is in two adjacent target postures, obtaining the difference matrix of force and torque in the end coordinate system of the robot arm; Based on the target transformation matrix, an observation matrix of the robot arm in the corresponding target posture is obtained; the observation matrix can represent the correlation between the force and torque at the end of the robot arm and the mass and center of mass position of the load; Based on the difference of the observation matrices when the robot arm is in two adjacent target postures, a difference matrix of the observation matrices is obtained; Constructing a second relationship model based on the difference matrix of the force and moment and the difference matrix of the observation matrix; Based on the second relationship model, and the joint angle sequences of the robot arm in different target postures and the detection results of the force sensor, a second target equation group is constructed; Optimizing and solving the second target equation group to determine the mass and center of mass position matrix of the load; Wherein, the second relational model is expressed as: Where P represents the mass and center of mass position matrix of the load, p x 、p y and p z for 6 The elements in P7×, 6 P7× represents the position cross-product matrix operator from the end coordinate system of the robot arm to the load coordinate system. represents the difference matrix of force and torque, 6 F6 and 6 N6 represents the force and torque of the end of the robot arm in the end coordinate system of the robot arm; n represents the nth target posture; represents the difference matrix of the observation matrix, A represents the observation matrix, r 13 To r 33 for The elements in Represents the rotation transformation matrix from the end coordinate system of the robot arm to the load coordinate system, m is the mass of the load and g is the gravitational constant.

6. A robotic arm system, characterized in that: It comprises a robot arm and the mass and center of mass position identification device of the load at the end of the robot arm as claimed in claim 5.

7. An electronic device comprising at least a memory and a processor, wherein a program is stored in the memory, wherein: The processor implements the method according to any one of claims 1 to 4 when executing the program on the memory.

8. A computer-readable storage medium storing computer-executable instructions, characterized in that: When the computer-executable instructions in the computer-readable storage medium are executed, the method according to any one of claims 1 to 4 is implemented.