Control method and device of mechanical arm and mechanical arm

By installing sensors on the robotic arm joints and monitoring the status in real time, the joint parameters are automatically adjusted, which solves the problem of unbalanced force on the robotic arm and inconvenient operation during the operation, realizes automated locking and unlocking, and improves surgical efficiency and safety.

CN117958979BActive Publication Date: 2024-10-22YUANHUA ORTHOPAEDIC ROBOTICS (SHENZHEN) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410161450.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-04
Publication Date
2024-10-22
Estimated Expiration
2044-02-04

AI Technical Summary

Technical Problem

During the operation, the deviation of the sensor feedback value and the end load gravity parameter of the existing robotic arm causes the end force to be unbalanced and prone to unexpected movements. The existing solution is inconvenient to manually trigger the lock/unlock key operation, which reduces the control efficiency.

Method used

Position sensors and torque sensors are installed on each joint of the robotic arm to monitor and compare status changes in real time, automatically adjust joint parameters to achieve locking or unlocking operations, simplify operating steps and improve the efficiency of human-machine collaboration.

Benefits of technology

By automatically monitoring and adjusting joint parameters, automatic locking and unlocking of the robotic arm is realized, simplifying the operation process, improving control efficiency and safety during the operation, and avoiding unexpected movements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117958979B_ABST
    Figure CN117958979B_ABST
Patent Text Reader

Abstract

The embodiment of the present application is applicable to the field of robotic arm technology, and provides a control method, device and robotic arm for a robotic arm, the method comprising: based on the position sensor and the torque sensor, monitoring the first state of the robotic arm at the first moment; obtaining the second state of the robotic arm at the second moment, the second moment being the previous moment of the first moment; if the first state is different from the second state, adjusting the joint parameters of the robotic arm. By adopting the above method, the motion and force state of the robotic arm can be automatically monitored, and when the state of the robotic arm is detected to change, the relevant joint parameters can be adjusted in time to realize automatic control of the robotic arm.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application belong to the technical field of robotic arms, and in particular, relate to a control method and device for a robotic arm, and a robotic arm. Background Art

[0002] In the field of medical technology, the use of robot-assisted surgery can improve the accuracy and safety of surgery, achieve surgical visualization, and create conditions for the smooth implementation of non-traditional types of surgery such as minimally invasive surgery.

[0003] In order to ensure safe interaction between doctors and robots and protect patient safety, impedance control mode is usually used to control the robot during robot-assisted surgery. Different tissue types, structures or elastic properties may require different forces and pressures to operate during surgery. Through impedance control, the robot can have better flexibility and adaptability during surgery, and can adjust the force and pressure according to the response of the tissue to meet different surgical needs.

[0004] Impedance control based on classical control theory has limited control effects when completing complex contact tasks. Specifically, the robot mainly relies on dynamic calculations to ensure the stability of operation, which depends on accurate sensor feedback values ​​and accurate load gravity parameters at the end of the robotic arm. If there is a deviation between the two data, it will cause unbalanced force at the end of the robotic arm. When the stiffness coefficients of each joint of the robotic arm are set to 0 and there is no external force, the robotic arm is prone to unexpected movement. By increasing the stiffness coefficients of each joint, the robot's robotic arm can be stabilized near the set position. In the prior art, the mainstream solution is to set a lock and unlock function key on the robot, and switch different stiffness coefficients by manual triggering to achieve the purpose of locking or unlocking. Although this method can solve the problem, it is inconvenient to operate, reduces the control efficiency during the operation, and is likely to have an adverse effect on the surgical process. Summary of the invention

[0005] In view of this, an embodiment of the present application provides a control method, device and robotic arm for a robotic arm, which are used to automatically monitor the movement and force state of the robotic arm, and when the state of the robotic arm is detected to change, timely adjust the relevant joint parameters to achieve automatic control of the robotic arm.

[0006] A first aspect of an embodiment of the present application provides a control method for a robotic arm, wherein the robotic arm includes a plurality of joints, each of which is equipped with a position sensor and a torque sensor, and the method includes:

[0007] Based on the position sensor and the torque sensor, monitoring a first state of the robotic arm at a first moment;

[0008] Acquire a second state of the robotic arm at a second moment, where the second moment is a moment before the first moment;

[0009] If the first state is different from the second state, the joint parameters of the robot arm are adjusted.

[0010] Optionally, monitoring a first state of the robotic arm at a first moment based on the position sensor and the torque sensor includes:

[0011] Using the position sensor to obtain the joint position information of the robotic arm at the first moment;

[0012] The torque sensor is used to obtain the torque value of the mechanical arm at the first moment, and the torque value is used to obtain the force information and torque information of the end of the mechanical arm after conversion;

[0013] Based on the joint position information, the force information and the torque information of the end of the robotic arm, a first state of the robotic arm at the first moment is determined.

[0014] Optionally, the adopting the position sensor to acquire the joint position information of the robotic arm at the first moment includes:

[0015] The position sensor installed on each of the joints is used to respectively obtain the joint position information of each of the joints of the robotic arm at the first moment.

[0016] Optionally, the using the torque sensor to obtain the torque value of the mechanical arm at the first moment, the torque value being used to obtain force information and torque information of the end of the mechanical arm after conversion, includes:

[0017] Using a torque sensor installed on each of the joints to respectively acquire the torque value of each of the joints of the robotic arm at the first moment;

[0018] The force information and torque information of the end of the robotic arm are calculated according to the acquired torque value.

[0019] Optionally, determining the first state of the robotic arm at the first moment based on the joint position information and the force information and torque information of the end of the robotic arm includes:

[0020] If the change value of the joint position information of any joint of the robotic arm, the force information or the torque information of the end of the robotic arm is greater than a preset threshold, it is determined that the first state of the robotic arm at the first moment is a moving state;

[0021] If the change values ​​of the joint position information, the force information and the torque information of any joint of the robotic arm are all less than or equal to a preset threshold, it is determined that the first state of the robotic arm at the first moment is a static state.

[0022] Optionally, the adjusting the joint parameters of the robotic arm includes:

[0023] When the robot arm switches from a moving state to a stationary state, the joint parameters of the robot arm are increased;

[0024] When the robotic arm switches from a stationary state to a moving state, the joint parameters of the robotic arm are reduced.

[0025] Optionally, the joint parameters include at least one of a stiffness coefficient or an elastic coefficient on each of the joints.

[0026] A second aspect of an embodiment of the present application provides a control device for a mechanical arm, the mechanical arm comprising a plurality of joints, each of the joints being equipped with a position sensor and a torque sensor, the device comprising:

[0027] A monitoring module, configured to monitor a first state of the robotic arm at a first moment based on the position sensor and the torque sensor;

[0028] An acquisition module, used for acquiring a second state of the robotic arm at a second moment, where the second moment is a moment before the first moment;

[0029] A control module is used to adjust the joint parameters of the robot arm if the first state is different from the second state.

[0030] A third aspect of an embodiment of the present application provides a robotic arm, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the robotic arm control method as described in any one of the first aspects above is implemented.

[0031] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the control method of the robotic arm as described in any one of the first aspects above is implemented.

[0032] A fifth aspect of the embodiments of the present application provides a computer program product. When the computer program product is run on a computer, the computer executes the method for controlling the robotic arm as described in any one of the first aspects above.

[0033] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0034] In the embodiment of the present application, by installing position sensors and torque sensors on each joint of the robotic arm, the data sampled by the position sensors and torque sensors can be used to determine the state of the robotic arm at each moment, such as the first state at the first moment. After obtaining the second state of the robotic arm at the previous moment of the first moment, that is, the second moment, the control device can compare the first state with the second state. If the first state is different from the second state, it can indicate that the state of the robotic arm has changed during this process. The control device can adjust the joint parameters of the robotic arm in a targeted manner according to the different state changes, realize automatic monitoring of the motion state and force state of the robotic arm, and automatically adjust the joint parameters according to the monitored state, thereby realizing automatic control of the locking and unlocking operations of the robotic arm, simplifying the operation steps for the user to lock or unlock the robotic arm, and improving the efficiency of human-machine collaboration. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or prior art descriptions. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0036] Figure 1 is a schematic diagram of a control method of a robotic arm provided in an embodiment of the present application;

[0037] Figure 2 is a schematic diagram of an implementation of S101 in a method for controlling a robotic arm provided in an embodiment of the present application;

[0038] Figure 3 is a schematic diagram of an implementation of S103 in a method for controlling a robotic arm provided in an embodiment of the present application;

[0039] Figure 4 is a schematic diagram of a control process of a robotic arm provided in an embodiment of the present application;

[0040] Figure 5 is a schematic diagram of a control device for a robotic arm provided in an embodiment of the present application;

[0041] Figure 6 It is a schematic diagram of a robotic arm control device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] In the following description, specific details such as specific system structures, technologies, etc. are proposed for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from hindering the description of the present application.

[0043] As mentioned above, during the operation, using a robot with a robotic arm to assist doctors in performing the operation can improve the accuracy and safety of the operation. At present, the control of such robots mainly adopts the impedance control mode. Through impedance control, the robot can adjust the force and pressure according to the reaction of the tissue to adapt to different surgical needs. Accurate impedance control depends on the accurate sensor feedback value and accurate end load gravity parameter on the robotic arm. When the stiffness coefficient of each joint of the robotic arm is set to 0 and there is no external force, the robotic arm is prone to unexpected movement. In the prior art, a lock / unlock key can be set to switch different stiffness coefficients in a human-triggered manner to achieve the purpose of locking or unlocking. Specifically, a button that can realize the locking and unlocking function can be set on the robot. When the doctor does not use the robot or robotic arm during the operation, the doctor can lock the robotic arm by pressing the button. In this way, the robot and the robotic arm can be fixed in the current position, and the robotic arm and each joint will not have unexpected movement or movement due to being locked. When the doctor needs to use the robot or robotic arm to assist in the operation, the doctor can unlock the robotic arm by pressing the button. In this way, the robotic arm and each joint can make corresponding movements or movements based on the doctor's operation, which is convenient for the doctor to perform the operation.

[0044] There are at least two obvious disadvantages of locking or unlocking the robot arm by pressing a button. The first is the inconvenience of operation. When the force on the end of the robot arm is unbalanced, the doctor or other personnel during the operation must hold the end of the robot arm with their hands before they can press the button to lock the robot arm. Whether it is a single person or multiple people working together, it is necessary to press the button while taking into account the movement of the end of the robot arm. Especially when the doctor is operating alone, one hand is needed to hold the end of the robot arm, and the other hand is used to press the lock button on the robot, which is not very user-friendly. The second is that such a setting reduces work efficiency. When doctors and other users lock or unlock the robot arm, not only does it add an extra operation step for them, but it also requires the user to know whether the current robot arm is in an unlocked state or a locked state, and then they can operate the button to lock or unlock the robot arm according to the current state. For example, if the doctor needs to lock the robot arm, he first needs to confirm the current state. If the current state of the robot arm is unlocked, the doctor can press the lock button to lock the robot arm. If the current state of the robotic arm is locked, once the doctor mistakenly believes the current state to be unlocked, after the doctor presses the function key, the locked robotic arm may be switched to unlocked state, which will have an adverse effect on the surgical process.

[0045] In response to the above problems, an embodiment of the present application provides a control method for a robotic arm, which can automatically monitor the state of a robotic arm based on impedance control, and automatically lock or unlock the robotic arm according to the monitoring results, thereby simplifying the user's operating steps and improving the efficiency of human-machine collaboration.

[0046] The technical solution of the present application is described below through specific embodiments.

[0047] Reference Figure 1 , shows a schematic diagram of a control method of a robotic arm provided in an embodiment of the present application, which may specifically include the following steps:

[0048] S101. Monitoring a first state of the robotic arm at a first moment based on the position sensor and the torque sensor.

[0049] It should be noted that the present method can be applied to a robotic arm control device, that is, the executor of the present method can be a robotic arm control device. The robotic arm control device can realize automatic monitoring of the robotic arm status by executing the various steps of the method provided in the embodiment of the present application, and automatically lock or unlock the robotic arm according to the monitoring results, thereby simplifying the user's operating steps and improving the efficiency of human-machine collaboration.

[0050] In a possible implementation of the embodiment of the present application, the above-mentioned mechanical arm control device can be the mechanical arm itself or a robot with a mechanical arm. That is, the mechanical arm and the control device for controlling the mechanical arm can be integrated into one, or the mechanical arm can be a component of the robot, and the robot can control the movement of the mechanical arm through a control module or unit, or the control device and the robot with the mechanical arm are separated, and the separated control device can control the robot and the mechanical arm through instructions. The embodiment of the present application is not limited to this.

[0051] As an example of an embodiment of the present application, the robot may include a robot body and a robot control cabinet. Among them, the robot body may be a mechanical arm with a serial structure, and the mechanical arm may include multiple joints, and each joint is connected in series to form the robot body. Each joint may include devices such as a servo motor, a reducer, a torque sensor, and a position sensor. The end of the robot, that is, the end of the mechanical arm, may include a flange for connecting the tool load. The robot control cabinet is responsible for running the robot control system and the drive system. Among them, the control system can realize the operation of the robot application, such as realizing the kinematic and dynamic calculation process of the robot and the mechanical arm during the movement. The drive system is used to realize the drive and control of the servo motor on each joint of the mechanical arm, and is responsible for realizing the motion control of the corresponding joint.

[0052] In a possible implementation of the embodiment of the present application, the robotic arm may be a seven-degree-of-freedom robotic arm, that is, the robotic arm has seven joints, and these seven joints form a robotic arm as a part of the robot body in a serial structure.

[0053] In an embodiment of the present application, the servo motors installed on each joint of the robotic arm can move according to the control signal transmitted by the driver. The servo motor can be stationary or rotating, and the rotation of the servo motor can include forward rotation and reverse rotation. The reducer can be used to reduce the rotation speed of the servo motor. Usually, the speed of the servo motor can reach thousands of revolutions per minute. In practical applications, the control of each joint of the robotic arm does not require such a large speed, so the speed of the servo motor can be reduced by the reducer. On the other hand, the reducer can also increase the torque, improve the stability of the robot and the robotic arm, and the ability to carry loads. The torque sensor on each joint can be used to collect the torque size at each joint position, that is, the torque value. The torque value can be converted by a dynamics-related algorithm to obtain the force information and torque information of the end of the robotic arm. The position sensor, also known as an encoder, can be used to determine the current position of each joint, which can refer to the current joint angle of each joint.

[0054] The robotic arm in the embodiment of the present application can be an impedance-controlled robotic arm. Impedance control is a dynamic control method related to force and position, which is generally used in applications where the robotic arm interacts with its environment and the force-position relationship is of interest. Examples of such applications include human-robot interaction, where the force generated by the human is related to the speed at which the robot should move or stop.

[0055] During the operation of the robot arm, the position sensor and torque sensor installed on the robot arm can monitor the robot arm in real time or cyclically at a certain frequency. According to the monitoring results of the position sensor and torque sensor, the control device can determine the current state of the robot arm. That is, whether the robot arm is currently in a moving state or a stationary state.

[0056] In an embodiment of the present application, the first moment may refer to the moment when the position sensor and the torque sensor are currently sampling, and the data obtained by sampling the position sensor and the torque sensor can be used to determine the state of the robotic arm at the first moment, that is, the first state of the robotic arm.

[0057] In a possible implementation of the embodiment of the present application, as Figure 2 As shown, in S101, based on the position sensor and the torque sensor, monitoring the first state of the robot arm at the first moment may specifically include the following steps S1011-S1013:

[0058] S1011. Use the position sensor to obtain the joint position information of the robotic arm at the first moment.

[0059] In an embodiment of the present application, the position sensor can be used to sample and obtain the position information of the robotic arm at the first moment, that is, the joint position information of the robotic arm at the first moment.

[0060] In the embodiment of the present application, since a position sensor is installed on each joint of the robotic arm, the position sensor installed on each joint can be used to obtain the joint position information of each joint of the robotic arm at the first moment. For example, taking a seven-degree-of-freedom robotic arm as an example, by using a position sensor, the position information of the seven joints of the robotic arm at the first moment can be obtained.

[0061] In a possible implementation of an embodiment of the present application, the joint angle of each joint can be used to describe the position of the robotic arm. Exemplarily, for a seven-degree-of-freedom robotic arm, the joint space position [j0, j1, j2, j3, j4, j5, j6] can be used to describe the position of the robotic arm. Among them, the joint angle can be determined based on the position of each joint relative to the zero point. The zero point position is when each joint angle is 0 degrees, that is, the position of the robotic arm when the joint space position is [0, 0, 0, 0, 0, 0], which can be pre-set during modeling.

[0062] S1012. Use the torque sensor to obtain the torque value of the robotic arm at the first moment, and the torque value is used to obtain force information and torque information of the end of the robotic arm after conversion.

[0063] In an embodiment of the present application, a torque sensor installed on each joint can be used to obtain the torque value of each joint of the robotic arm at the first moment. After the torque value is converted by a dynamics-related algorithm, the force information and torque information of the end of the robotic arm can be obtained.

[0064] S1013. Determine a first state of the robotic arm at the first moment based on the joint position information and the force information and torque information of the end of the robotic arm.

[0065] In an embodiment of the present application, the control device can determine the current first state of the robotic arm based on the joint position information obtained by the position sensor, and the force information and torque information at the end of the robotic arm.

[0066] In a possible implementation of the embodiment of the present application, a change threshold may be set for the joint position information, force information and torque information. The first state of the robot arm is determined based on the comparison between the change values ​​of the joint position information, force information and torque information and the threshold.

[0067] Specifically, if the change value of the joint position information, force information or torque information of any joint of the robotic arm is greater than a preset threshold, it can be determined that the first state of the robotic arm at the first moment is a moving state; if the change values ​​of the joint position information, force information and torque information of any joint of the robotic arm are all less than or equal to the preset threshold, it can be determined that the first state of the robotic arm at the first moment is a static state.

[0068] Exemplarily, the control device may first determine whether the change value of the joint angle of each joint is greater than a preset threshold value. If the change value of the joint angle of any joint is greater than the preset threshold value, the control device may determine that the current state of the robot arm is a moving state, that is, the robot arm has moved at this moment. If the change values ​​of the joint angles of each joint are less than or equal to the preset threshold value, the control device may continue to determine the force conditions of each joint, and confirm whether the change value of the force received by each joint is greater than the preset threshold value. If the change value of the external force received by any joint is greater than the preset threshold value, the control device may determine that the current state of the robot arm is a moving state. If the change value of the external force received by each joint is less than or equal to the preset threshold value, the control device may continue to determine whether the change value of the torque on each joint is greater than the preset threshold value. If the change value of the torque on any joint is greater than the preset threshold value, the control device may determine that the current state of the robot arm is a moving state. If the change value of the torque on each joint is less than or equal to the preset threshold value, the control device may determine that the current state of the robot arm is a stationary state. The preset thresholds used for determining the joint angles, force magnitudes, and change values ​​of the torque above may be set according to actual conditions, and the embodiments of the present application do not limit this. On the other hand, when the control device compares the change values ​​of the joint angle, force magnitude, and torque with the corresponding thresholds, the order can be different. For example, the magnitude relationship between the change value of the force magnitude and the corresponding threshold can be determined first, and then the magnitude relationship between the change value of the joint angle and the change value of the torque and the corresponding threshold can be determined; or, the magnitude relationship between the change value of the torque and the corresponding threshold can be determined first, and then the magnitude relationship between the change value of the joint angle and the change value of the external force and the corresponding threshold can be determined. The embodiments of the present application are not limited to this.

[0069] In a possible implementation of an embodiment of the present application, before comparing the change values ​​of the above-mentioned joint angles, external forces and torques with the corresponding thresholds, the control device can also determine whether the current position of the end tool is located within the set operating space through positive kinematics solution based on the position information sampled by the position sensor. The above-mentioned operating space can be the activity range of the end tool in the Cartesian coordinate system planned before the start of the operation according to actual needs. If the position of the end tool at the first moment is located within the above-mentioned operating space, the control device may not need to perform the above-mentioned comparison step, and may directly determine that the operating state of the robotic arm is a moving state. When the position of the end tool at the first moment is not within the corresponding operating space, the control device may perform the above-mentioned comparison step to determine the current state of the robotic arm.

[0070] In an embodiment of the present application, after determining the first state of the robotic arm at the first moment, the control device may store the first state for comparison with the state of the robotic arm at the next moment.

[0071] S102: Obtain a second state of the robotic arm at a second moment, where the second moment is a moment before the first moment.

[0072] In an embodiment of the present application, the second moment may be the previous moment of the first moment, that is, the previous sampling moment of the position sensor and the torque sensor. After determining the second state of the robotic arm at the second moment, the control device may store the second state. At the next moment, for example, after sampling the position information and the force and torque information at the first moment, after determining the first state of the robotic arm at the first moment, the control device may obtain the second state at the previous moment, that is, the second moment, and compare the first state with the second state.

[0073] S103: If the first state is different from the second state, adjusting the joint parameters of the robotic arm.

[0074] In the embodiment of the present application, when the first state is different from the second state, it can be considered that the state of the robot arm has changed, that is, it has changed from the second state at the second moment to the first state at the first moment. When the first state is the same as the second state, it can be considered that the state of the robot arm has not changed, that is, the state of the robot arm at the second moment is the same as that at the first moment.

[0075] When the first state is different from the second state, that is, when the state of the robotic arm changes from the second state to the first state, the control device may adjust the joint parameters of each joint according to the specific circumstances of the change in the state of the robotic arm.

[0076] In a possible implementation of the embodiment of the present application, as Figure 3 As shown, in S103, the joint parameters of the robot arm are adjusted, which may specifically include the following steps S1031-S1032:

[0077] S1031. When the robotic arm switches from a moving state to a stationary state, the joint parameters of the robotic arm are increased.

[0078] S1032: When the robotic arm switches from a stationary state to a moving state, the joint parameters of the robotic arm are reduced.

[0079] In the embodiment of the present application, the state change of the robot arm may include two situations. One is that the robot arm was originally in a moving state, and after the change, the robot arm is in a stationary state; the other is that the robot arm was originally in a stationary state, and after the change, the robot arm is in a moving state. For the two different change situations, the control device adjusts the joint parameters in different ways.

[0080] Specifically, when the robotic arm switches from a moving state to a stationary state, the control device may increase the joint parameters of the robotic arm. By increasing the joint parameters, it is equivalent to increasing the movement resistance of the robotic arm. In this way, the robotic arm can remain in the current position without moving. The process of increasing the joint parameters of the robotic arm can be called locking the robotic arm. When the robotic arm switches from a stationary state to a moving state, the control device may reduce the joint parameters of the robotic arm. Reducing the joint parameters can make it easier for the user to drag the robotic arm. This process can be called unlocking the robotic arm.

[0081] In a possible implementation of an embodiment of the present application, the joint parameters of the robotic arm may include at least one of a stiffness coefficient or an elastic coefficient on each joint. Therefore, when the robotic arm switches from a mobile state to a stationary state, the control device increases the joint parameters of the robotic arm by increasing the stiffness coefficient of each joint, or by increasing the elastic coefficient of each joint, or by simultaneously increasing the stiffness coefficient and the elastic coefficient of each joint. When the robotic arm switches from a stationary state to a mobile state, the control device reduces the joint parameters of the robotic arm by reducing the stiffness coefficient of each joint, or by reducing the elastic coefficient of each joint, or by simultaneously reducing the stiffness coefficient and the elastic coefficient of each joint.

[0082] In an embodiment of the present application, by installing position sensors and torque sensors on each joint of the robotic arm, the data sampled by the position sensors and torque sensors can be used to determine the state of the robotic arm at each moment, such as the first state at the first moment. After obtaining the second state of the robotic arm at the previous moment of the first moment, that is, the second moment, the control device can compare the first state with the second state. If the first state is different from the second state, it can be said that the state of the robotic arm has changed during this process. The control device can adjust the joint parameters of the robotic arm in a targeted manner according to the different state changes, realize automatic monitoring of the motion state and force state of the robotic arm, and automatically adjust the joint parameters according to the monitored state, thereby realizing automatic control of the locking and unlocking operations of the robotic arm, simplifying the user's operating steps for locking or unlocking the robotic arm, and improving the efficiency of human-machine collaboration.

[0083] To facilitate understanding, the control method of the robotic arm provided in the embodiment of the present application is introduced below with reference to specific examples.

[0084] 1. Taking the joint space as an example, q can represent the actual joint angle value of each joint obtained by the position sensor installed on each joint, q s Indicates the target angle of each joint set in advance. Therefore, the joint angle control error can be

[0085] 2. Establish the dynamic equation of the robot:

[0086]

[0087] In the above formula (1), q, They represent the joint angle, joint velocity, and joint acceleration of the robot arm, respectively. The joint angle can be directly sampled by the position sensors on each joint, the differential of the joint angle is the joint velocity, and the differential of the joint velocity is the joint acceleration.

[0088] The above M(q) represents the inertia matrix of the robot arm, represents Coriolis force; g(q) represents gravity; represents the joint friction force; τ represents the joint given torque; τ ext It represents the torque generated by the joint due to external force.

[0089] Among them, the inertia matrix of the robotic arm can be constructed based on the mass, moment of inertia and position information of each link. For a seven-degree-of-freedom robotic arm, the inertia matrix can be represented by a 7×7 matrix.

[0090] The Coriolis force is the inertial force generated by the robot arm's link in a non-inertial coordinate system due to the robot arm's velocity and angular velocity. The Coriolis force is the sum of the derivative of the generalized velocity and the potential energy gradient and kinetic energy gradient. For a seven-degree-of-freedom robot arm, the Coriolis force can also be represented by a 7×7 matrix.

[0091] The gravity represented by g(q) is the gravity value acting on each joint of the robotic arm. The gravity value of each joint of the seven-degree-of-freedom robotic arm can be represented by a 7×1 matrix.

[0092] The friction force in the embodiment of the present application adopts the Coulomb friction model. When the joint speed is less than or equal to the static friction speed, the magnitude of the friction force is equal to the static friction coefficient multiplied by the normal pressure or tension on the joint. When the joint speed is greater than the static friction speed, the magnitude of the friction force is equal to the dynamic friction coefficient multiplied by the speed of the joint, and the direction of the friction force is opposite to the direction of the joint speed. The friction force of the seven-degree-of-freedom manipulator can be represented by a 7×1 matrix.

[0093] Each parameter in the above dynamic model can be solved in real time based on the joint position information and speed information.

[0094] 3. According to the dynamic characteristics of the spring-mass-damper second-order system, the impedance model is established as follows:

[0095]

[0096] In the above formula (2), M d , D d, K d They are all diagonal matrices and can be used to represent the inertia matrix, damping matrix and stiffness matrix of the joint respectively.

[0097] The damping matrix and the stiffness matrix may be preset. For a seven-degree-of-freedom manipulator, a 7×7 diagonal matrix may be formed according to the given damping value and stiffness value of each joint.

[0098] The inertia matrix in the above formula (2) is different from the inertia matrix in the dynamic equation, that is, the inertia matrix in the formula (1). The inertia matrix in the above formula (2) is only used to describe the motion inertia of each joint on the robot arm, not the description of the robot arm as a whole.

[0099] 4. Use τ c Represents the value measured by the torque sensor. By adding the force calculated by the impedance model to it and then subtracting the set torque value, the final control torque input value can be obtained, and the control tracking of the end of the robot arm can be achieved by controlling the joint torque. That is:

[0100]

[0101] Among them, the value measured by the torque sensor refers to the size of the actual torque on each joint, which is the result of combining the given torque and the actual influence of the external force on the joint.

[0102] 5. In actual application, the acceleration of each joint is difficult to obtain. In order to introduce torque feedback, the acceleration can be expressed as:

[0103]

[0104] So the final control torque can be expressed as:

[0105]

[0106]

[0107] 6. In the actual engineering application of the robotic arm, the joint torque obtained by the torque sensor may be biased, or the given end load parameter may be incorrect, which may lead to deviations in the results obtained by solving the dynamic model. To address this problem, the embodiment of the present application adds a function of monitoring the motion state during the control process of the robotic arm.

[0108] 7. Such as Figure 4 The figure is a schematic diagram of a control process of a robotic arm provided in an embodiment of the present application. Figure 4An example of a step of monitoring the motion state added during the control of the robotic arm is shown. Specifically, during the operation of the robotic arm, the position sensor and the torque sensor can be used to perform sampling at fixed intervals to obtain the joint position and torque value of the robotic arm at the sampling moment. After the above torque value is converted, the external force and torque information on the end of the robotic arm can be obtained, that is, the force information and torque information on the end of the robotic arm introduced in the aforementioned embodiment. By comparing the information obtained at the current sampling moment with the relevant information at the previous moment, the current state of the robotic arm can be determined.

[0109] Specifically, Figure 4 As shown, it is possible to determine whether the current position of the end tool is within the set operating space based on the position information sampled by the position sensor. If the position of the end tool at the current sampling moment is within the above-mentioned operating space, the control device may not need to perform the above-mentioned comparison step, and may directly determine that the state of the robotic arm is a moving state, and return information that no state judgment is performed. When the position of any joint at the current sampling moment is not within the corresponding operating space, the control device may compare the joint position at the current sampling moment, the external force and torque information received, and the relevant information at the previous moment. That is, it is respectively determined whether the force change value of each joint at the current sampling moment is greater than the preset threshold, whether the torque change value of each joint is greater than the preset threshold, and whether the position change value of each joint is greater than the preset threshold. If any of the above situations is yes, it can be determined that the robotic arm is in a moving state, otherwise it is determined that the robotic arm is in a stationary state.

[0110] 8. After obtaining the state of the robot at the current sampling moment, compare it with the state at the previous moment. If the two states are the same, no operation is required. If the two states are different, it means that the robot has a state switch, and the relevant joint parameters can be switched.

[0111] In a possible implementation of the embodiment of the present application, when it is determined that the state of the robot arm at the current sampling moment is different from that at the previous moment, that is, when it is determined that the robot arm has switched state, such as Figure 4 As shown, the counter can be accumulated. That is, when it is determined that the state of the robot arm at the current sampling moment is different from the state at the previous moment, the control device can add 1 to the counter. When the accumulated value of the counter is greater than the set number of times, the control device can return the state switching information. At this time, the control device can execute the switching of the relevant joint parameters.

[0112] 9. The joint parameters switched in the embodiment of the present application mainly refer to the stiffness coefficient and the elastic coefficient. In the impedance mode, the above two factors affect the magnitude of the resistance and the tendency of returning to the fixed position respectively.

[0113] 10. When it is detected that the state of the robot arm switches from the moving state to the static state, the stiffness coefficient and elasticity coefficient of each joint can be increased, which is equivalent to increasing the resistance to movement, so that the robot arm can remain in the current position without moving. This process can also be called locking the robot arm. When it is detected that the state of the robot arm switches from the static state to the moving state, the stiffness coefficient and elasticity coefficient can be reduced to make it easier for the user to drag the robot arm. This process can also be called unlocking the robot arm.

[0114] The embodiment of the present application establishes a dynamic model based on the identification of dynamic parameters, adds an impedance control model according to the dynamic model, and completes the control tracking of the end of the robotic arm by controlling the torque of each joint of the robotic arm, thereby realizing automatic locking and unlocking of the robotic arm based on impedance control. The control method provided in the embodiment of the present application is applied to determine the state of the robotic arm and change the corresponding joint parameters to realize the control of automatic locking and unlocking of the robotic arm. The whole process does not require human intervention, eliminates the operation steps of manually triggering the locking or unlocking of the robotic arm, and improves the efficiency of human-machine collaboration.

[0115] Reference Figure 5 , shows a schematic diagram of a control device for a robotic arm provided in an embodiment of the present application, which may specifically include a monitoring module 501, an acquisition module 502 and a control module 503, wherein:

[0116] A monitoring module 501, configured to monitor a first state of the robotic arm at a first moment based on the position sensor and the torque sensor;

[0117] An acquisition module 502 is used to acquire a second state of the robot arm at a second moment, where the second moment is a moment before the first moment;

[0118] The control module 503 is configured to adjust the joint parameters of the robot arm if the first state is different from the second state.

[0119] In the embodiment of the present application, the monitoring module 501 can be specifically used for:

[0120] Using the position sensor to obtain the joint position information of the robotic arm at the first moment;

[0121] The torque sensor is used to obtain the torque value of the mechanical arm at the first moment, and the torque value is used to obtain the force information and torque information of the end of the mechanical arm after conversion;

[0122] Based on the joint position information, the force information and the torque information of the end of the robotic arm, a first state of the robotic arm at the first moment is determined.

[0123] In a possible implementation of the embodiment of the present application, the monitoring module 501 may also be used to:

[0124] The position sensor installed on each of the joints is used to respectively obtain the joint position information of each of the joints of the robotic arm at the first moment.

[0125] In another possible implementation of the embodiment of the present application, the monitoring module 501 may also be used to:

[0126] Using a torque sensor installed on each of the joints to respectively acquire the torque value of each of the joints of the robotic arm at the first moment;

[0127] The force information and torque information of the end of the robotic arm are calculated according to the acquired torque value.

[0128] In another possible implementation of the embodiment of the present application, the monitoring module 501 may also be used to:

[0129] If the change value of the joint position information of any joint of the robotic arm, the force information or the torque information of the end of the robotic arm is greater than a preset threshold, it is determined that the first state of the robotic arm at the first moment is a moving state;

[0130] If the change values ​​of the joint position information, the force information and the torque information of any joint of the robotic arm are all less than or equal to a preset threshold, it is determined that the first state of the robotic arm at the first moment is a static state.

[0131] In the embodiment of the present application, the control module 503 may be specifically used for:

[0132] When the robot arm switches from a moving state to a stationary state, the joint parameters of the robot arm are increased;

[0133] When the robotic arm switches from a stationary state to a moving state, the joint parameters of the robotic arm are reduced.

[0134] In a possible implementation manner of the embodiment of the present application, the joint parameters include at least one of a stiffness coefficient or an elastic coefficient on each of the joints.

[0135] An embodiment of the present application provides a control device for a robotic arm, and by using the device, each step in the aforementioned method embodiments can be implemented.

[0136] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment part.

[0137] Reference Figure 6, shows a schematic diagram of a robot arm control device provided in an embodiment of the present application. Figure 6 As shown, the robot arm control device 600 in the embodiment of the present application includes: a processor 610, a memory 620, and a computer program 621 stored in the memory 620 and executable on the processor 610. When the processor 610 executes the computer program 621, the steps in each embodiment of the above-mentioned robot arm control method are implemented, such as Figure 1 Alternatively, when the processor 610 executes the computer program 621, the functions of each module / unit in the above-mentioned device embodiments are realized, for example Figure 5 Functions of modules 501 to 503 are shown.

[0138] Exemplarily, the computer program 621 may be divided into one or more modules / units, which are stored in the memory 620 and executed by the processor 610 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which may be used to describe the execution process of the computer program 621 in the robot arm control device 600. For example, the computer program 621 may be divided into a monitoring module, an acquisition module, and a control module, and the specific functions of each module are as follows:

[0139] A monitoring module, configured to monitor a first state of the robotic arm at a first moment based on the position sensor and the torque sensor;

[0140] An acquisition module, used for acquiring a second state of the robotic arm at a second moment, where the second moment is a moment before the first moment;

[0141] A control module is used to adjust the joint parameters of the robot arm if the first state is different from the second state.

[0142] The robot arm control device 600 may be a robot, a robot arm, or a robot arm control device that implements the steps in the above-mentioned method embodiments. The robot arm control device 600 may include, but is not limited to, a processor 610 and a memory 620. Those skilled in the art will appreciate that Figure 6 It is only an example of the robot arm control device 600 and does not constitute a limitation of the robot arm control device 600. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the robot arm control device 600 may also include input and output devices, network access devices, buses, etc.

[0143] The processor 610 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0144] The memory 620 may be an internal storage unit of the robot control device 600, such as a hard disk or memory of the robot control device 600. The memory 620 may also be an external storage device of the robot control device 600, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the robot control device 600. Further, the memory 620 may also include both an internal storage unit and an external storage device of the robot control device 600. The memory 620 is used to store the computer program 621 and other programs and data required by the robot control device 600. The memory 620 may also be used to temporarily store data that has been output or is to be output.

[0145] An embodiment of the present application also discloses a robotic arm, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the control method of the robotic arm as described in the aforementioned embodiments is implemented.

[0146] An embodiment of the present application further discloses a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the control method of the robotic arm as described in the aforementioned embodiments is implemented.

[0147] An embodiment of the present application further discloses a computer program product. When the computer program product is run on a computer, the computer executes the control method of the robotic arm described in the aforementioned embodiments.

[0148] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application is described in detail with reference to the above-mentioned embodiments, a person skilled in the art should understand that the technical solutions described in the above-mentioned embodiments can still be modified, or some of the technical features can be replaced by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.

Claims

1. A method for controlling a robotic arm, characterized in that: The robotic arm is a seven-degree-of-freedom robotic arm including a plurality of joints, each of which is equipped with a position sensor and a torque sensor, the position sensor and the torque sensor are used to monitor the robotic arm to obtain joint position information of each joint and force information and torque information of the end of the robotic arm, and the method comprises: Based on the position sensor and the torque sensor, monitoring a first state of the robotic arm at a first moment; Acquire a second state of the robotic arm at a second moment, the second moment being a moment before the first moment, the first state and the second state including a moving state or a stationary state, the moving state and the stationary state being obtained by comparing a change value of the joint position information of each joint, a change value of the force information of the end of the robotic arm, and a change value of the torque information with a corresponding threshold value when the end tool is not in a set operating space, wherein the robotic arm is in a moving state when any change value of the joint position information of the joint, the change value of the force information of the end of the robotic arm, or the change value of the torque information is greater than a corresponding threshold value; the operating space is an activity range of the end tool in a Cartesian coordinate system obtained according to preoperative planning, and when the end tool is in the operating space, the robotic arm is in a moving state; When the robotic arm switches from a moving state to a stationary state, the joint parameters of the robotic arm are increased, and when the robotic arm switches from a stationary state to a moving state, the joint parameters of the robotic arm are decreased.

2. The method according to claim 1, characterized in that: The step of monitoring a first state of the robotic arm at a first moment based on the position sensor and the torque sensor includes: Using the position sensor to obtain the joint position information of the robotic arm at the first moment; The torque sensor is used to obtain the torque value of the mechanical arm at the first moment, and the torque value is used to obtain the force information and torque information of the end of the mechanical arm after conversion; Based on the joint position information, the force information and the torque information of the end of the robotic arm, a first state of the robotic arm at the first moment is determined.

3. The method according to claim 2, characterized in that The adopting the position sensor to obtain the joint position information of the robotic arm at the first moment includes: The position sensor installed on each of the joints is used to respectively obtain the joint position information of each of the joints of the robotic arm at the first moment.

4. The method according to claim 2, characterized in that: The method of using the torque sensor to obtain the torque value of the mechanical arm at the first moment, wherein the torque value is used to obtain force information and torque information of the end of the mechanical arm after conversion, includes: Using a torque sensor installed on each of the joints to respectively acquire the torque value of each of the joints of the robotic arm at the first moment; The force information and torque information of the end of the robotic arm are calculated according to the acquired torque value.

5. The method according to claim 2, characterized in that: The determining, based on the joint position information, the force information and the torque information of the end of the robotic arm, a first state of the robotic arm at the first moment comprises: If the change value of the joint position information, the force information or the torque information of any joint of the robotic arm is greater than a preset threshold, it is determined that the first state of the robotic arm at the first moment is a moving state; If the change values ​​of the joint position information of any joint of the robotic arm, the force information at the end of the robotic arm, and the torque information are all less than or equal to a preset threshold, it is determined that the first state of the robotic arm at the first moment is a static state.

6. The method according to claim 1, characterized in that The joint parameters include at least one of a stiffness coefficient or an elastic coefficient on each of the joints.

7. A control device for a robotic arm, characterized in that: The robotic arm is a seven-degree-of-freedom robotic arm including a plurality of joints, each of which is equipped with a position sensor and a torque sensor, the position sensor and the torque sensor are used to monitor the robotic arm to obtain the joint position information of each joint and the force information and torque information of the end of the robotic arm, and the device comprises: A monitoring module, configured to monitor a first state of the robotic arm at a first moment based on the position sensor and the torque sensor; an acquisition module, for acquiring a second state of the robotic arm at a second moment, the second moment being a moment before the first moment, the first state and the second state comprising a moving state or a stationary state, the moving state and the stationary state being obtained by comparing a change value of the joint position information of each joint, a change value of the force information of the end of the robotic arm, and a change value of the torque information with a corresponding threshold value when the end tool is not in a set operation space, wherein the robotic arm is in a moving state when any change value of the joint position information of the joint, a change value of the force information of the end of the robotic arm, or a change value of the torque information is greater than a corresponding threshold value; the operation space is an activity range of the end tool in a Cartesian coordinate system obtained according to preoperative planning, and the robotic arm is in a moving state when the end tool is in the operation space; The control module is used to increase the joint parameters of the robotic arm when the robotic arm switches from a moving state to a stationary state, and to reduce the joint parameters of the robotic arm when the robotic arm switches from a stationary state to a moving state.

8. A robotic arm comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the control method of the robotic arm as described in any one of claims 1-6 is implemented.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the control method of the robotic arm as described in any one of claims 1 to 6 is implemented.