Mechanical arm, torque detection method and device thereof, controller and robot
By obtaining the three-phase current when the acceleration of the servo motor of the robotic arm is zero and determining the resistance torque, the problem of high cost and limited measurement range of the torque sensor is solved, and low-cost, high-precision torque detection is achieved.
Patent Information
- Application Number
- CN202410687126.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-09-06
AI Technical Summary
In the existing technology, robotic arm torque detection requires the use of high-cost torque sensors, resulting in increased hardware costs and the inability to obtain the torque of each joint in real time.
By obtaining the three-phase current when the acceleration of the servo motor of the robotic arm is zero, and determining the resistance torque of the servo motor based on the three-phase current, it is used as the torque of the robotic arm to realize the detection function without a torque sensor.
It reduces the cost of robotic arm hardware, can detect the torque of each joint in real time, and improves functionality and accuracy.
Smart Images

Figure CN118596192A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of mechanical arm detection, and in particular to a mechanical arm and a torque detection method, device, controller and robot thereof. Background Art
[0002] In various application scenarios of robotic arms, it is usually necessary to obtain the torque of the robotic arm to achieve high-precision control of the robotic arm. In the current related technologies, a torque sensor is generally set at the end of the robotic arm to detect the torque of the robotic arm. However, the cost of the torque sensor is relatively high, so this related technology will greatly increase the hardware cost of the robotic arm. Summary of the invention
[0003] The present invention aims to solve at least one of the technical problems in the related art to a certain extent. To this end, the first purpose of the present invention is to propose a method for detecting torque of a robotic arm, by obtaining the three-phase current of a servo motor when the acceleration of the servo motor in the robotic arm is zero, and then determining the resistance torque of the servo motor based on the three-phase current, and using it as the torque of the robotic arm, so that the torque detection function of the robotic arm can be realized without a torque sensor, thereby reducing the hardware cost of the robotic arm.
[0004] The second object of the present invention is to provide a controller.
[0005] The third objective of the present invention is to provide a torque detection device for a robotic arm.
[0006] A fourth objective of the present invention is to provide a robotic arm.
[0007] A fifth object of the present invention is to provide a robot.
[0008] To achieve the above-mentioned purpose, the first aspect of the present invention proposes a method for detecting torque of a robotic arm. The robotic arm is driven and controlled by a servo motor. The method includes: obtaining the three-phase current of the servo motor when the acceleration of the servo motor is zero; determining the resistance torque of the servo motor based on the three-phase current as the torque of the robotic arm.
[0009] According to the torque detection method of a robotic arm in an embodiment of the present invention, the three-phase current of the servo motor is obtained when the acceleration of the servo motor in the robotic arm is zero, and then the resistance torque of the servo motor is determined based on the three-phase current, and this is used as the torque of the robotic arm. In this way, the torque detection function of the robotic arm can be realized without a torque sensor, thereby reducing the hardware cost of the robotic arm.
[0010] According to one embodiment of the present invention, the resistance torque of the servo motor is determined based on the three-phase current, including: performing coordinate transformation on the three-phase current to obtain the two-phase current of the servo motor; determining the total current of the servo motor based on the two-phase current; and determining the resistance torque of the servo motor based on the total current, pole pair number and magnetic flux of the servo motor.
[0011] According to one embodiment of the present invention, the total current of the servo motor is determined based on the two-phase current, including: obtaining the square root of the sum of the squares of the two-phase currents to obtain the total current; wherein the two-phase current includes the d-axis current and the q-axis current in the two-phase rotating coordinate system, or the α-axis current and the β-axis current in the two-phase stationary coordinate system.
[0012] According to one embodiment of the present invention, the d-axis current is zero.
[0013] According to one embodiment of the present invention, the resistance torque of the servo motor is determined based on the total current, pole pair number and flux linkage of the servo motor, including: obtaining the product of the total current, pole pair number, flux linkage and a first preset coefficient to obtain the resistance torque.
[0014] According to one embodiment of the present invention, the method further comprises: determining a collision condition of the robot arm based on the resistance torque and the preset resistance torque.
[0015] According to one embodiment of the present invention, the collision condition of the robotic arm is determined based on the resistance torque and the preset resistance torque, including: when the resistance torque is greater than or equal to the product of the preset resistance torque and the second preset coefficient, determining that the robotic arm has collided; wherein the second preset coefficient is greater than 1; when the resistance torque is less than the product of the preset resistance torque and the second preset coefficient, determining that the robotic arm has not collided.
[0016] According to one embodiment of the present invention, the method further includes: acquiring posture information of the robot arm in trajectory planning; and estimating a preset resistance torque based on the posture information.
[0017] To achieve the above objectives, a second embodiment of the present invention proposes a controller, including: a memory, a processor, and a program stored in the memory and executable on the processor. When the processor executes the program, the aforementioned robotic arm torque detection method is implemented.
[0018] According to the controller of the embodiment of the present invention, through the aforementioned method for detecting torque of a robotic arm, it is possible to implement the torque detection function of the robotic arm without a torque sensor, thereby reducing the hardware cost of the controller.
[0019] To achieve the above-mentioned purpose, the third aspect of the present invention proposes a torque detection device for a robotic arm. The robotic arm is driven and controlled by a servo motor. The device includes: an acquisition module, used to obtain the three-phase current of the servo motor when the acceleration of the servo motor is zero; and a determination module, used to determine the resistance torque of the servo motor based on the three-phase current as the torque of the robotic arm.
[0020] According to the torque detection device of the robotic arm according to the embodiment of the present invention, when the acceleration of the servo motor in the robotic arm is zero, the three-phase current of the servo motor is obtained by using an acquisition module, and then the resistance torque of the servo motor is determined based on the three-phase current by a determination module, and this is used as the torque of the robotic arm. In this way, the torque detection function of the robotic arm can be realized without a torque sensor, thereby reducing the hardware cost of the detection device.
[0021] To achieve the above-mentioned objectives, a fourth aspect of the present invention provides a robotic arm, including the aforementioned controller, or the aforementioned robotic arm torque detection device.
[0022] According to the robotic arm of the embodiment of the present invention, through the aforementioned controller or the aforementioned robotic arm torque detection device, the torque detection function of the robotic arm can be realized without a torque sensor, thereby reducing the hardware cost of the robotic arm.
[0023] To achieve the above-mentioned purpose, a fifth aspect of the present invention proposes a robot, including the aforementioned controller, or the aforementioned robotic arm torque detection device, or the aforementioned robotic arm.
[0024] According to the robot of the embodiment of the present invention, through the aforementioned controller, or the aforementioned robotic arm detection device, or the aforementioned robotic arm, the torque detection function of the robotic arm in the robot can be realized without the need for a torque sensor, thereby reducing the hardware cost of the robot.
[0025] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 is a flow chart of a method for detecting torque of a mechanical arm according to an embodiment of the present invention;
[0027] Figure 2 is a schematic diagram of the structure of a controller according to an embodiment of the present invention;
[0028] Figure 3 is a schematic structural diagram of a mechanical arm torque detection device according to an embodiment of the present invention;
[0029] Figure 4a-4bis a schematic diagram of the structure of a robotic arm according to some embodiments of the present invention;
[0030] Figures 5a to 5c Schematic diagram of the structure of a robot according to some embodiments of the present invention. DETAILED DESCRIPTION
[0031] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0032] The following describes a robotic arm torque detection method, a controller, a robotic arm torque detection device, a robotic arm, and a robot proposed in embodiments of the present invention with reference to the accompanying drawings.
[0033] Figure 1 is a flowchart of a method for detecting torque of a mechanical arm according to an embodiment of the present invention, referring to Figure 1 As shown, the method includes: the method includes:
[0034] S11, when the acceleration of the servo motor is zero, obtaining the three-phase current of the servo motor.
[0035] It should be noted that the manipulator is driven and controlled by a servo motor, which can be controlled by a servo system arranged on the manipulator, wherein the servo motor can be a PMSM (Permanent Magnet Synchronous Motor) motor, and the servo system can control the operation of the servo motor through three-loop closed-loop control of the position loop, the speed loop, and the current loop to drive the motor to operate with high precision. The specific principle of the servo system is not expanded here. The acceleration of the servo motor is zero, which means that the servo motor is in a stationary state or a uniform motion state. In addition, the three-phase current of the servo motor can be collected in a variety of ways, such as single-resistance sampling, three-resistance sampling, etc., which are not specifically limited here.
[0036] S22, determining the resistance torque of the servo motor based on the three-phase current as the torque of the robot arm.
[0037] Specifically, since the robot arm is driven by a servo motor, the electromagnetic torque of the servo motor rotor is the torque of the robot arm, and the resistance torque of the servo motor is the resistance torque of the robot arm. In the servo motor of the robot arm, the dynamic equation of the servo motor rotor can be shown as the following formula (1):
[0038]
[0039] Among them, T eis the electromagnetic torque of the motor rotor, T m is the resistance torque of the motor, b is the damping coefficient of the motor, J is the moment of inertia of the motor, W r is the angular velocity of the motor rotor, and t is the time. Since harmonic reducers and planetary reducers are usually installed in the servo system of the servo motor, the damping coefficient b of the servo motor is very small and can be ignored. Therefore, according to the above formula (1), when the angular velocity W r When the acceleration is zero, in the servo motor, the electromagnetic torque of the motor rotor is equal to the resistance torque of the motor.
[0040] At the same time, the servo system usually has excellent position control performance. For example, when the servo motor is controlled by the three-loop control method, the servo system can avoid the change of the motor rotor position caused by the resistance torque, but the motor phase current changes immediately through the current loop control, so the resistance torque change of the servo motor can be detected by the motor phase current. Therefore, when the servo motor acceleration is zero, that is, when the servo motor is in a stationary state or a uniform motion state, the three-phase current of the servo motor can be obtained, and then the resistance torque of the servo motor is determined based on the three-phase current of the servo motor, and then the resistance torque of the servo motor is used as the torque of the robot. In this way, the detection function of the torque of the robot arm can be realized without the need for a torque sensor.
[0041] In the related art, when it is necessary to detect the torque of the robotic arm, a torque sensor is usually set at the end of the robotic arm to detect the torque of the robotic arm in real time. However, there are two problems with this related art. First, the hardware cost of the torque sensor is relatively high, and it will increase the volume of the servo system of the servo motor; second, since the torque sensor is set at a fixed position, such as at the end of the joint of the robotic arm, at this time, the torque sensor can only obtain the torque at the end of the robotic arm, but cannot obtain the torque of each joint of the robotic arm, so the measurement range is limited. In an embodiment of the present invention, the torque of the robotic arm can be obtained by detecting the three-phase current of the servo motor in the robotic arm when the acceleration is zero, so there is no need to set a torque sensor in the servo system of the servo motor, which effectively reduces the hardware cost of the torque detection function and reduces the volume of the servo system. At the same time, the method of the embodiment of the present invention can detect the torque of each joint of the robotic arm, and is more functional.
[0042] In the above embodiment, by obtaining the three-phase current of the servo motor when the acceleration of the servo motor in the robotic arm is zero, and then determining the resistance torque of the servo motor based on the three-phase current, and using this as the torque of the robotic arm, the torque detection function of the robotic arm can be realized without the need for a torque sensor, thereby reducing the hardware cost of the robotic arm.
[0043] In some embodiments, determining the resistance torque of the servo motor based on the three-phase current includes:
[0044] S21, performing coordinate transformation on the three-phase current to obtain the two-phase current of the servo motor.
[0045] Specifically, in order to facilitate the analysis of the torque and magnetic flux generated by the three-phase current, the three-phase current can be transformed into the two-phase current of the servo motor. Among them, the coordinate transformation can be carried out in many ways, either by Clark transformation, the three-phase current is converted into the α-axis current and β-axis current in the two-phase stationary coordinate system, or by Park transformation, the three-phase current is converted into the d-axis current and q-axis current in the two-phase rotating coordinate system. The specific principles of Clark transformation and Park transformation are not expanded here.
[0046] S22, determining the total current of the servo motor based on the two-phase currents.
[0047] Specifically, the total current of the servo motor refers to the current value that can affect the electromagnetic torque of the motor rotor in the torque equation of the motor rotor. It can be obtained in a variety of ways according to the two-phase current of the servo motor. For example, the geometric mean of the two-phase current can be used as the total current of the servo motor, that is, the square root of the sum of the squares of the two-phase currents is obtained to obtain the total current. The total current of the servo motor obtained in this way can better reflect the influence of the two-phase current on the electromagnetic torque of the motor, thereby improving the accuracy of the method.
[0048] It should be noted that when the two-phase current includes the d-axis current and the q-axis current in the two-phase rotating coordinate system, since the d-axis current is parallel to the rotor magnetic field direction of the motor and does not affect the electromagnetic torque of the motor, the d-axis current is zero at this time, and the q-axis current of the motor can be directly used as the total current of the servo motor.
[0049] S23, determining the resistance torque of the servo motor based on the total current, the number of pole pairs and the flux linkage of the servo motor.
[0050] Further, the resistance torque of the servo motor is determined based on the total current, pole pair number and flux linkage of the servo motor, including: obtaining the product of the total current, pole pair number, flux linkage and a first preset coefficient to obtain the resistance torque.
[0051] Specifically, after the total current of the servo motor is determined, the electromagnetic torque of the servo motor can be determined according to the following formula (2):
[0052] T e =C*p*φ f *I 总 (2)
[0053] Among them, T e is the electromagnetic torque of the servo motor, C is the first preset coefficient, p is the number of pole pairs of the servo motor, φ f is the rotor flux of the servo motor, I总 is the total current of the servo motor. The first preset coefficient C refers to the torque coefficient of the servo motor, which can be obtained by reading the servo motor model, pre-simulation, etc. For example, in a conventional permanent magnet synchronous motor, the first preset coefficient C can be 1.5; the number of pole pairs p of the servo motor is a fixed value, which can be obtained by pre-table lookup, etc.; the rotor flux φ of the servo motor f It can be obtained through open-loop estimation, inductive measurement, and acquisition based on the servo motor model, etc., which are not limited here. After the total current of the servo motor is determined, the electromagnetic torque of the servo motor can be directly determined according to the above formula (2). It can be seen from the above formula (1) that when the acceleration is zero, the electromagnetic torque of the servo motor is equal to the resistance torque of the servo motor. In this way, the function of determining the resistance torque of the servo motor is realized.
[0054] In some embodiments, the method further includes: determining a collision condition of the robotic arm based on the resistance torque and a preset resistance torque.
[0055] Specifically, since the resistance torque of the robotic arm has been determined by the three-phase current of the servo motor, the collision condition of the robotic arm can also be determined based on the determined resistance torque and the preset resistance torque for subsequent processing, such as reporting the collision condition to the user, sounding an alarm, etc., thereby improving the functionality and safety of the robotic arm.
[0056] Furthermore, the collision condition of the robotic arm is determined based on the resistance torque and the preset resistance torque, including: when the resistance torque is greater than or equal to the product of the preset resistance torque and a second preset coefficient, it is determined that the robotic arm has collided; wherein the second preset coefficient is greater than 1; when the resistance torque is less than the product of the preset resistance torque and the second preset coefficient, it is determined that the robotic arm has not collided.
[0057] Specifically, the preset resistance torque refers to the resistance torque corresponding to the current posture of the robot arm in the preset control strategy of the robot arm. The preset resistance torque can be estimated based on the posture information by obtaining the posture information of the robot arm in the trajectory planning. Among them, the estimation method of the preset resistance torque can be obtained by a variety of existing methods, such as directly obtaining it according to the operation model of the robot arm, or forming a mapping relationship between the preset resistance torque and the posture after testing the robot arm in advance, and obtaining it according to the posture information in the actual application. The specific application is not limited here. The second preset coefficient is a constant greater than 1, and the second preset coefficient is used to identify the upper limit threshold of the resistance torque of the robot arm under normal operation. For example, the second preset coefficient can be 1.3. When the resistance torque is detected to be greater than or equal to 1.3 times the preset resistance torque, it means that the resistance torque of the robot arm is abnormally increased, so it can be determined that the robot arm has collided; if the resistance torque is detected to be less than 1.3 times the preset resistance torque, it means that the resistance torque of the robot arm is within the safe range, and it can be determined that the robot arm has not collided, thereby realizing the determination of the collision of the robot arm based on the resistance torque and the preset resistance torque.
[0058] To summarize, according to the torque detection method of a robotic arm according to an embodiment of the present invention, the three-phase current of the servo motor is obtained when the acceleration of the servo motor in the robotic arm is zero, and then the resistance torque of the servo motor is determined based on the three-phase current, and this is used as the torque of the robotic arm, and the collision condition of the robotic arm is determined based on the resistance torque and a preset resistance torque, thereby realizing the torque detection function and collision detection function of the robotic arm without the need for a torque sensor, effectively reducing the hardware cost of the robotic arm.
[0059] Corresponding to the above embodiment, the embodiment of the present invention further provides a controller, referring to Figure 2 As shown, the controller 100 includes: a memory 110, a processor 120, and a program stored in the memory 110 and executable on the processor 120. When the processor 120 executes the program, the aforementioned robot arm torque detection method is implemented.
[0060] According to the controller of the embodiment of the present invention, through the aforementioned torque detection method for the robotic arm, it is possible to implement the torque detection function and collision detection function of the robotic arm without the need for a torque sensor, thereby reducing the hardware cost of the controller.
[0061] Corresponding to the above embodiment, the embodiment of the present invention further provides a mechanical arm torque detection device, the mechanical arm is driven and controlled by a servo motor, referring to Figure 3 As shown, the device 200 includes: an acquisition module 210 and a determination module 220.
[0062] The acquisition module 210 is used to acquire the three-phase current of the servo motor when the acceleration of the servo motor is zero; the determination module 220 is used to determine the resistance torque of the servo motor based on the three-phase current as the torque of the robot arm.
[0063] According to one embodiment of the present invention, the determination module 220 is also used to: perform coordinate transformation on the three-phase current to obtain the two-phase current of the servo motor; determine the total current of the servo motor based on the two-phase current; determine the resistance torque of the servo motor based on the total current, pole pair number and magnetic flux of the servo motor.
[0064] According to one embodiment of the present invention, the determination module 220 is also used to: obtain the square root of the sum of the squares of the two-phase currents to obtain the total current; wherein the two-phase currents include the d-axis current and the q-axis current in the two-phase rotating coordinate system, or the α-axis current and the β-axis current in the two-phase stationary coordinate system.
[0065] According to one embodiment of the present invention, the d-axis current is zero.
[0066] According to an embodiment of the present invention, the determination module 220 is further used to obtain the product of the total current, the number of pole pairs, the flux linkage and the first preset coefficient to obtain the resistance torque.
[0067] According to an embodiment of the present invention, the determination module 220 is further used to determine the collision condition of the robot arm based on the resistance torque and the preset resistance torque.
[0068] According to one embodiment of the present invention, the determination module 220 is also used to: determine that the robotic arm has collided when the resistance torque is greater than or equal to the product of the preset resistance torque and the second preset coefficient; wherein the second preset coefficient is greater than 1; and determine that the robotic arm has not collided when the resistance torque is less than the product of the preset resistance torque and the second preset coefficient.
[0069] According to one embodiment of the present invention, the acquisition module 210 is further used to acquire the posture information of the robot arm in trajectory planning; the determination module 220 is further used to estimate the preset resistance torque based on the posture information.
[0070] It should be noted that, for the description of the robotic arm torque detection device of the present application, please refer to the aforementioned related description of the robotic arm torque detection method of the present application, which will not be repeated here.
[0071] According to the torque detection device of the robotic arm of the embodiment of the present invention, when the acceleration of the servo motor in the robotic arm is zero, the three-phase current of the servo motor is obtained by using an acquisition module, and then the resistance torque of the servo motor is determined based on the three-phase current by a determination module, and this is used as the torque of the robotic arm, and the collision condition of the robotic arm is determined based on the resistance torque and a preset resistance torque by the determination module, thereby realizing the detection function of the torque of the robotic arm and the collision detection function without the need for a torque sensor, thereby effectively reducing the hardware cost of the detection device.
[0072] Corresponding to the above embodiment, the embodiment of the present invention further provides a mechanical arm, referring to Figure 4a to Figure 4b As shown, the robot arm 1000 includes the aforementioned controller 100 , or the aforementioned robot arm torque detection device 200 .
[0073] According to the robotic arm of the embodiment of the present invention, through the aforementioned controller or the aforementioned robotic arm torque detection device, it is possible to realize the robotic arm torque detection function and collision detection function without the need for a torque sensor, thereby reducing the hardware cost of the robotic arm.
[0074] Corresponding to the above embodiment, the embodiment of the present invention further provides a robot, referring to Figure 5a to Figure 5c As shown, the robot 2000 includes the aforementioned controller 100 , or the aforementioned robotic arm torque detection device 200 , or the aforementioned robotic arm 1000 .
[0075] According to the robot of the embodiment of the present invention, through the aforementioned controller, or the aforementioned robotic arm detection device, or the aforementioned robotic arm, it is possible to realize the robotic arm torque detection function and collision detection function without the need for a torque sensor, thereby reducing the hardware cost of the robot.
[0076] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0077] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0078] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0079] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0080] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0081] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A method for detecting torque of a mechanical arm, characterized in that: The mechanical arm is driven and controlled by a servo motor, and the method comprises: When the acceleration of the servo motor is zero, obtaining the three-phase current of the servo motor; The resistance torque of the servo motor is determined based on the three-phase current to serve as the torque of the robot arm.
2. The method according to claim 1, characterized in that The step of determining the resistance torque of the servo motor based on the three-phase current comprises: Performing coordinate transformation on the three-phase current to obtain the two-phase current of the servo motor; determining a total current of the servo motor based on the two-phase currents; The resistance torque of the servo motor is determined based on the total current, the number of pole pairs and the flux linkage of the servo motor.
3. The method according to claim 2, characterized in that The determining the total current of the servo motor based on the two-phase currents comprises: The total current is obtained by obtaining the square root of the sum of the squares of the two-phase currents; wherein the two-phase currents include the d-axis current and the q-axis current in a two-phase rotating coordinate system, or the α-axis current and the β-axis current in a two-phase stationary coordinate system.
4. The method according to claim 3, characterized in that The d-axis current is zero.
5. The method according to any one of claims 2 to 4, characterized in that: The step of determining the resistance torque of the servo motor based on the total current, the number of pole pairs and the flux linkage of the servo motor comprises: The resistance torque is obtained by acquiring the product of the total current, the number of pole pairs, the flux linkage and a first preset coefficient.
6. The method according to claim 1, characterized in that The method further comprises: A collision condition of the robot arm is determined based on the resistance torque and a preset resistance torque.
7. The method according to claim 6, characterized in that The determining the collision condition of the robot arm based on the resistance torque and the preset resistance torque includes: When the resistance torque is greater than or equal to the product of the preset resistance torque and a second preset coefficient, it is determined that the robot arm has collided; wherein the second preset coefficient is greater than 1; When the resistance torque is less than the product of the preset resistance torque and the second preset coefficient, it is determined that the robot arm has not collided.
8. The method according to claim 6 or 7, characterized in that: The method further comprises: Obtaining posture information of the robotic arm in trajectory planning; The preset resistance torque is estimated based on the posture information.
9. A controller, characterized in that: include: A memory, a processor, and a program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for detecting torque of a robotic arm according to any one of claims 1 to 8 is implemented.
10. A mechanical arm torque detection device, characterized in that: The mechanical arm is driven and controlled by a servo motor, and the device comprises: An acquisition module, used for acquiring the three-phase current of the servo motor when the acceleration of the servo motor is zero; A determination module is used to determine the resistance torque of the servo motor based on the three-phase current as the torque of the mechanical arm.
11. A robotic arm, characterized in that: Includes the controller according to claim 9, or the mechanical arm torque detection device according to claim 10.
12. A robot, characterized in that: It comprises the controller according to claim 9, or the mechanical arm torque detection device according to claim 10, or the mechanical arm according to claim 11.
