Motion control method and device of robot instrument and controller
By dynamically adjusting the movement speed limit of robotic surgical instruments and combining the expected and actual movement angles, the problems of delayed operation of surgical instruments and motor overspeed are solved, achieving a smoother operating experience and extending the life of the motor.
Patent Information
- Application Number
- CN202410944290.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-07-15
AI Technical Summary
In the existing motion control methods of robotic surgical instruments, the speed-limiting strategy may cause a sense of delay in the operation of the surgical instruments, affecting the doctor's operating experience. Moreover, when the rated power of the motor exceeds the standard, the motor is prone to overshooting, affecting its service life.
By obtaining the desired motion angle and actual motion angle of the target device, the desired motion speed of the target device is dynamically determined, and the current motion speed limit is dynamically adjusted according to the preset motor motion speed limit to ensure that the motor motion is within the speed limit, thereby controlling the target device. movement to reduce the sense of delay and prevent speeding.
It effectively reduces the operating delay of the target instrument, avoids the phenomenon of motor overrunning, increases the service life of the motor, and ensures that the surgical instrument quickly follows the movement of the operator.
Smart Images

Figure CN118806444A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of motion control technology, and in particular to a motion control method, device and controller for a robot device. Background Art
[0002] In recent years, along with the development of electronic computers and industrial control technology, laparoscopic surgical robots have been rapidly developed and applied. As a medical and engineering product, it has the characteristics of small trauma area, fast postoperative recovery and suitable for delicate operations in clinical applications, and is chosen by more and more patients.
[0003] The robot is mainly composed of two parts: a doctor's console and a patient surgical platform. The two parts interact with each other through a transmission line. The doctor can control the mechanical arm on the surgical platform, specifically the movement of the surgical instruments connected to the mechanical arm, by operating the operator on the console, so as to perform the operation. For example, the surgical instruments are hung on the slide of the mechanical arm and connected to the motor on the slide. In this way, the motor movement can be controlled according to the movement of the operator, thereby driving the movement of the surgical instruments.
[0004] It should be noted that the motor has a rated power. When the actual power of the motor is greater than the rated power, the motor may become uncontrolled, that is, runaway may occur, which may easily affect the service life of the motor. Currently, the main way to avoid the runaway phenomenon of the target motor is to limit the movement speed of the surgical instrument.
[0005] However, the current motion speed limiting scheme used for surgical instruments, or the motion control scheme based on the speed limiting strategy, may cause the surgical instrument to be unable to quickly follow the operator's movement, that is, there is a sense of delay in the operation of the surgical instrument, which will affect the doctor's operating experience and needs to be solved urgently. Summary of the invention
[0006] The embodiments of the present invention provide a motion control method, device and controller for a robotic device, so as to reduce the delay of the operation of the target device as much as possible while preventing the target motor from running away.
[0007] According to one aspect of the present invention, a motion control method for a robot device is provided. The method can be applied to a controller, the controller corresponds to a mechanical arm in the robot, and a target device connected to the mechanical arm moves under the drive of a target motor in the mechanical arm. The method comprises:
[0008] Obtaining an expected motion angle of the target device in a current cycle and an actual motion angle in a cycle before the current cycle, and determining an expected motion speed of the target device in the current cycle according to the expected motion angle and the actual motion angle;
[0009] For the motor motion speed limit preset for the target motor, determine the current motion speed limit of the target device in the current cycle corresponding to the motor motion speed limit according to the expected motion angle;
[0010] According to the numerical relationship between the expected movement speed and the current movement speed limit, the target movement speed of the target device in the current cycle is determined, and the movement of the target motor is controlled according to the target movement speed, so as to drive the movement of the target device through the movement of the target motor.
[0011] According to another aspect of the present invention, a motion control device for a robot is provided. The device is configured on a controller, the controller corresponds to a mechanical arm in the robot, and a target device connected to the mechanical arm moves under the drive of a target motor in the mechanical arm. The device comprises:
[0012] An expected motion speed determination module is used to obtain an expected motion angle of the target device in the current cycle and an actual motion angle in the previous cycle of the current cycle, and determine an expected motion speed of the target device in the current cycle according to the expected motion angle and the actual motion angle;
[0013] A current motion speed limit determination module, for determining the current motion speed limit of the target device corresponding to the motor motion speed limit in the current cycle according to the expected motion angle, based on the motor motion speed limit preset for the target motor;
[0014] The motion control module is used to determine the target motion speed of the target device in the current cycle according to the numerical relationship between the expected motion speed and the current motion speed limit, and control the motion of the target motor according to the target motion speed to drive the motion of the target device through the motion of the target motor.
[0015] According to another aspect of the present invention, a controller is provided, which corresponds to a mechanical arm in a robot, and a target device connected to the mechanical arm moves under the drive of a target motor in the mechanical arm. The controller may include:
[0016] at least one processor; and
[0017] a memory communicatively connected to at least one processor; wherein,
[0018] The memory stores a computer program that can be executed by at least one processor. The computer program is executed by at least one processor so that the motion control method of the robot device provided by any embodiment of the present invention is implemented when the at least one processor executes the computer program.
[0019] The technical solution of the embodiment of the present invention obtains the expected motion angle of the target device in the current cycle and the actual motion angle in the previous cycle of the current cycle, and determines the expected motion speed of the target device in the current cycle according to the expected motion angle and the actual motion angle. The expected motion speed allows the target device to follow the movement of the operator well and avoids delay in the operation of the target device. Further, for the motor motion speed limit preset for the target motor, the current motion speed limit of the target device corresponding to the motor motion speed limit in the current cycle is determined according to the expected motion angle. Compared with using the same device motion speed limit within the full motion range of the target device, the dynamic determination of the current motion speed limit can not only avoid the target motor from running away, but also allow the target device to follow the movement of the operator as much as possible. According to the numerical relationship between the expected motion speed and the current motion speed limit, the target motion speed of the target device in the current cycle is determined, so that the movement of the target motor can be controlled according to the target motion speed, so as to drive the movement of the target device through the movement of the target motor, thereby realizing the motion control of the target device. The above technical solution dynamically determines the current motion speed limit corresponding to the motor motion speed limit through the real-time expected motion angle, and then controls the motion of the target device according to the current motion speed limit. This not only ensures that the motor movement speed is within the motor movement speed limit, that is, prevents the target motor from running away, but also minimizes the sense of delay in the operation of the target device.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 is a flow chart of a motion control method of a robot apparatus provided in an embodiment of the present invention;
[0023] Figure 2 is a schematic diagram of the connection between a target device and a robot arm in a motion control method of a robot device provided in an embodiment of the present invention;
[0024] Figure 3 is a flow chart of another motion control method of a robot apparatus provided according to an embodiment of the present invention;
[0025] Figure 4ais a schematic diagram of the relationship between the yaw joint angle and the yaw motor angle in another motion control method for a robot device provided according to an embodiment of the present invention;
[0026] Figure 4b is a schematic diagram of the relationship between the yaw joint angle and the reduction ratio in another motion control method for a robot apparatus provided according to an embodiment of the present invention;
[0027] Figure 4c is a schematic diagram of the relationship between the yaw joint angle and the yaw joint speed limit in another motion control method for a robot apparatus provided according to an embodiment of the present invention;
[0028] Figure 5 is a structural diagram of a motion control device for a robot apparatus provided according to an embodiment of the present invention;
[0029] Figure 6 It is a schematic diagram of the structure of a controller for implementing the motion control method of a robot apparatus according to an embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. The situations of "target", "original", etc. are similar and will not be repeated here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0032] Figure 1It is a flow chart of a motion control method of a robotic instrument provided in an embodiment of the present invention. This embodiment can be applicable to the case of dynamically limiting the speed of the motion process of a target instrument connected to a robot, and in particular, it can be applicable to the case of dynamically limiting the speed of the motion process of a surgical instrument connected to a surgical robot. The method can be executed by the motion control device of the robotic instrument provided in an embodiment of the present invention. The device can be implemented by software and / or hardware. The device can be integrated on a controller. The controller corresponds to a robotic arm in the robot, that is, the controller can be used to control the robotic arm. Specifically, the robotic arm is connected to a target instrument. The controller can be used to control a target motor in the robotic arm corresponding to the target instrument, so that the target instrument can be driven to move by controlling the movement of the target motor.
[0033] See also Figure 1 The method of the embodiment of the present invention specifically includes the following steps:
[0034] S110. Obtain the expected movement angle of the target device in the current cycle and the actual movement angle in the previous cycle of the current cycle, and determine the expected movement speed of the target device in the current cycle based on the expected movement angle and the actual movement angle.
[0035] The target instrument can be understood as an instrument connected to the robotic arm to be motion controlled. In combination with the application scenarios that may be involved in the embodiments of the present invention, it can be, for example, a surgical instrument, a rehabilitation instrument, or an inspection instrument, etc. This is related to the actual application scenario and is not specifically limited here. It is understandable that when the target instrument is a surgical instrument, the robot where the robotic arm is located is a surgical robot.
[0036] The full range of motion of the target device can be divided into multiple cycles, and the time interval T between each two adjacent cycles is the same. The current cycle can be understood as the cycle in which the target device is currently located among the multiple cycles; correspondingly, the previous cycle can be understood as the cycle in which the target device was last located among the multiple cycles.
[0037] The expected movement angle can be understood as the angle to which the target device is expected to move in the current cycle. Optionally, the angle can be determined based on the angle to which the operator in the robot actually moves in the current cycle. The actual movement angle can be understood as the angle to which the target device actually moves in the previous cycle.
[0038] The expected movement angle and the actual movement angle are obtained. Further, the expected movement speed is determined based on the two obtained movement angles. The expected movement speed can be understood as the speed at which the target device is expected to move in the current cycle, so that when the target device moves based on the expected movement speed, it can move from the actual movement angle to the expected movement angle in the current cycle. In practical applications, optionally, the time interval between the current cycle and the previous cycle and the movement angle difference between the expected movement angle and the actual movement angle can be obtained, and then the expected movement speed is determined based on the time interval and the movement angle difference.
[0039] S120. For the motor movement speed limit preset for the target motor, determine the current movement speed limit of the target device in the current cycle corresponding to the motor movement speed limit according to the expected movement angle.
[0040] The motor speed limit can be understood as the maximum speed that the target motor can reach during the movement, which is preset to avoid the target motor from running away. In practical applications, optionally, the motor speed limit can be obtained according to the rated movement speed of the target motor (i.e., the speed of the target motor at rated power), for example, the motor speed limit can be obtained by floating up a preset ratio based on the rated movement speed.
[0041] It can be understood that when the target device moves driven by the target motor, the motor movement speed of the target motor will directly affect the device movement speed of the target device. Therefore, for the device movement speed limit of the target device corresponding to the motor movement speed limit, the device movement speed can be controlled within the device movement speed limit, thereby ensuring that the motor movement speed is within the motor movement speed limit, thereby avoiding the target motor from running away.
[0042] On this basis, it has been found through practice that even if the motor motion speed limit is fixed, the speed limit of the device motion under different device motion angles may be different, which is particularly evident in the yaw joint of the target device. Since the expected motion angle is the device motion angle of the target device in the current cycle, the current motion speed limit can be determined according to the expected motion angle. The current motion speed limit is the device motion speed limit applied by the target device in the current cycle. Here, by dynamically determining the current motion speed limit, not only can the target motor be prevented from running away, but also compared to using the same device motion speed limit within the full motion range of the target device, it can ensure that the target device follows the movement of the operator as much as possible, reducing the sense of delay in the operation of the target device.
[0043] S130. Determine the target movement speed of the target device in the current cycle based on the numerical relationship between the expected movement speed and the current movement speed limit, and control the movement of the target motor based on the target movement speed to drive the movement of the target device through the movement of the target motor.
[0044] Among them, a numerical relationship between the expected movement speed and the current movement speed limit is obtained, and the numerical relationship can indicate that the expected movement speed is within the current movement speed limit, and then the target movement speed of the target device in the current cycle can be determined based on the numerical relationship, and the target movement speed can be understood as the speed finally adopted by the target device when it moves in the current cycle. Exemplarily, when the numerical relationship indicates that the expected movement speed is within the current movement speed limit, the expected movement speed can be used as the target movement speed; otherwise, the current movement speed limit can be used as the target movement speed. The above example can minimize the sense of delay in the operation of the target device while avoiding the phenomenon of overrunning of the target motor.
[0045] Further, the target motor is controlled to move according to the target movement speed, so as to drive the movement of the target device through the movement of the target motor, specifically, to drive the target device to move at the target movement speed, thereby realizing the movement control of the target device. Exemplarily, the target movement angle of the target device in the current cycle can be determined according to the actual movement angle, the target movement speed, and the time interval between the current cycle and the previous cycle; further, according to the target movement angle, the target motor is controlled to move in the current cycle, thereby driving the target device to move to the target movement angle in the current cycle, thereby realizing the movement control of the target device.
[0046] The technical solution of the embodiment of the present invention obtains the expected motion angle of the target device in the current cycle and the actual motion angle in the previous cycle of the current cycle, and determines the expected motion speed of the target device in the current cycle according to the expected motion angle and the actual motion angle. The expected motion speed allows the target device to follow the movement of the operator well and avoids delay in the operation of the target device. Further, for the motor motion speed limit preset for the target motor, the current motion speed limit of the target device corresponding to the motor motion speed limit in the current cycle is determined according to the expected motion angle. Compared with using the same device motion speed limit within the full motion range of the target device, the dynamic determination of the current motion speed limit can not only avoid the target motor from running away, but also allow the target device to follow the movement of the operator as much as possible. According to the numerical relationship between the expected motion speed and the current motion speed limit, the target motion speed of the target device in the current cycle is determined, so that the movement of the target motor can be controlled according to the target motion speed, so as to drive the movement of the target device through the movement of the target motor, thereby realizing the motion control of the target device. The above technical solution dynamically determines the current motion speed limit corresponding to the motor motion speed limit through the real-time expected motion angle, and then controls the motion of the target device according to the current motion speed limit. This not only ensures that the motor movement speed is within the motor movement speed limit, that is, prevents the target motor from running away, but also minimizes the sense of delay in the operation of the target device.
[0047] In conjunction with the application scenarios that may be involved in the embodiments of the present invention, for example, see Figure 2 The target device 1 generally has four motor wheels, which respectively correspond to the slewing joint, pitch joint, left yaw joint and right yaw joint on the target device 1. The four motor wheels are matched with the four motors on the slide of the robot arm 2 (i.e., motor 3-motor 6 in the figure) and connected. Therefore, the four motors can be controlled to drive the movement of the four joints, thereby realizing the effective operation of the target device 1 within a certain space.
[0048] In combination with the device structure design of the target device that may be used in the embodiments of the present invention, it can be known that the transmission ratio between the device movement angle of the swivel joint and the motor movement angle of the swivel motor (i.e., the motor corresponding to the swivel joint) is fixed, so that the device movement speed limit corresponding to the motor movement speed limit of the swivel joint is fixed; the same is true for the pitch joint. However, the transmission ratio between the device movement angle of the yaw joint (i.e., the left yaw joint and the right yaw joint) and the motor movement angle of the yaw motor (i.e., the motor corresponding to the yaw joint) is not fixed, so that the device movement speed limit corresponding to the motor movement speed limit of the yaw joint is not fixed, so the device movement speed limit of the yaw joint can be dynamically determined, as follows:
[0049] On the basis of any of the above technical solutions, optionally, the target motor is a yaw motor corresponding to the yaw joint in the target device, the expected motion angle, the actual motion angle, the expected motion speed, the current motion speed limit and the target motion speed all correspond to the yaw joint, and the target motor is controlled to move according to the target motion speed, so as to drive the movement of the target device through the movement of the target motor, including:
[0050] The movement of the yaw motor is controlled according to the target movement speed, so that the movement of the yaw motor drives the movement of the yaw joint, thereby realizing dynamic speed limit control of the yaw joint.
[0051] Figure 3 It is a flow chart of another motion control method of a robotic device provided in an embodiment of the present invention. This embodiment is optimized based on the above-mentioned technical solutions. In this embodiment, optionally, according to the expected motion angle, the current motion speed limit of the target device corresponding to the motor motion speed limit in the current cycle is determined, including: obtaining a first relationship pre-constructed based on the motor motion speed limit, wherein the first relationship represents the relationship between the device motion angle of the target device and the device motion speed limit of the target device, and the expected motion angle is the device motion angle expected by the target device in the current cycle; according to the first relationship and the expected motion angle, the current motion speed limit of the target device corresponding to the motor motion speed limit in the current cycle is determined, wherein the current motion speed limit is the device motion speed limit applied by the target device in the current cycle. Among them, the explanations of the terms that are the same or corresponding to the above-mentioned embodiments are not repeated here.
[0052] See also Figure 3 The method of this embodiment may specifically include the following steps:
[0053] S210. Obtain the expected movement angle of the target device in the current cycle and the actual movement angle in the previous cycle of the current cycle, and determine the expected movement speed of the target device in the current cycle based on the expected movement angle and the actual movement angle.
[0054] S220. Obtain a first relationship pre-constructed based on the motor motion speed limit, wherein the motor motion speed limit is preset for the target motor, the first relationship characterizes the relationship between the instrument motion angle of the target instrument and the instrument motion speed limit of the target instrument, and the expected motion angle is the instrument motion angle expected for the target instrument in the current cycle.
[0055] The first relationship is pre-established based on the motor movement speed limit and is used to characterize the relationship between the machine movement angle and the machine movement speed limit. The relationship can be represented by an equation, a formula, a diagram, or a table, which depends on the actual situation and is not specifically limited here. Obtain the first relationship.
[0056] S230. Determine the current motion speed limit of the target device in the current cycle corresponding to the motor motion speed limit based on the first relationship and the expected motion angle, wherein the current motion speed limit is the device motion speed limit applied by the target device in the current cycle.
[0057] Among them, since the first relationship represents the relationship between the instrument motion angle and the instrument motion speed limit, and the expected motion angle is the instrument motion angle expected for the target instrument in the current cycle, the current motion speed limit can be determined based on the first relationship and the expected motion angle. The current motion speed limit is the instrument motion speed limit of the target instrument in the current cycle corresponding to the motor motion speed limit.
[0058] S240. Determine the target movement speed of the target device in the current cycle based on the numerical relationship between the expected movement speed and the current movement speed limit, and control the movement of the target motor based on the target movement speed to drive the movement of the target device through the movement of the target motor.
[0059] The technical solution of the embodiment of the present invention pre-constructs a first relationship that characterizes the relationship between the movement angle of the device and the movement speed limit of the device, so that the first relationship and the expected movement angle can be used to quickly and accurately determine the current movement speed limit.
[0060] In an optional technical solution, the first relationship is pre-constructed through the following steps:
[0061] Acquire a pre-constructed second relationship, wherein the second relationship represents a relationship between a movement angle of the device and a reduction ratio of the target device;
[0062] A first relationship is constructed based on the motor movement speed limit and the second relationship.
[0063] Among them, the reduction ratio is an example of a transmission ratio. The reduction ratio of the target device can be understood as the ratio of the motor movement angle to the device movement angle. On this basis, it can be further understood as the ratio of the motor movement speed to the device movement speed, that is, it can also be understood as the ratio of the motor movement speed limit to the device movement speed limit.
[0064] The second relationship represents the relationship between the machine movement angle and the reduction ratio. Therefore, combined with the meaning of the reduction ratio, the first relationship can be constructed based on the motor movement speed limit and the second relationship.
[0065] The above technical solution utilizes the second relationship to achieve accurate construction of the first relationship.
[0066] On this basis, optionally, the second relationship is pre-constructed through the following steps:
[0067] Acquire a pre-constructed third relationship, wherein the third relationship represents a relationship between a motion angle of the device and a motor motion angle of the target motor;
[0068] Based on the third relationship, a second relationship is constructed, wherein the reduction ratio is the ratio of the motor movement angle to the device movement angle.
[0069] Among them, since the third relationship represents the relationship between the machine movement angle and the motor movement angle, and the reduction ratio is the ratio of the motor movement angle to the machine movement angle, a second relationship representing the relationship between the machine movement angle and the reduction ratio can be constructed based on the third relationship, thereby achieving accurate construction of the second relationship.
[0070] On this basis, optionally, the third relationship is expressed by a motion angle calculation equation, one side of which is the motor motion angle and the other side is a first angle calculation formula based on the machine motion angle; the first relationship is expressed by a motion speed limit calculation equation, one side of which is the machine motion speed limit and the other side is the product of the motor motion speed limit and the second angle calculation formula, and the second angle calculation formula is the ratio of the machine motion angle to the first angle calculation formula.
[0071] Among them, the first angle calculation formula can be understood as a formula for calculating the motor motion angle based on the machine motion angle, so the motor motion angle can be used as one side and the first angle calculation formula can be used as the other side to obtain the motion angle calculation equation for calculating the motor motion angle. On this basis, further, the second angle calculation formula can be expressed as the ratio of the machine motion angle to the first angle calculation formula, that is, the inverse of the reduction ratio, so the machine motion speed limit can be used as one side and the product of the motor motion speed limit and the second angle calculation formula can be used as the other side to obtain the motion speed limit calculation equation for calculating the machine motion speed limit.
[0072] The above technical solution, by expressing the relationship through an equation, is conducive to the rapid and accurate calculation of the speed limit of the movement of the device.
[0073] In order to better understand the above-mentioned technical solutions as a whole, the following is an exemplary description of them in combination with specific examples. For example, a surgical instrument connected to a laparoscopic surgical robot is used as an example. The motion control process of the yaw joint in the surgical instrument is as follows:
[0074] The physical model of the yaw joint (i.e. the motion angle calculation equation mentioned above) is as follows:
[0075] Motor=A*(asin(2*sin(Ins+B))-C);
[0076] Among them, Motor is the motor movement angle of the yaw motor (hereinafter referred to as the yaw motor angle); Ins is the instrument movement angle of the yaw joint (hereinafter referred to as the yaw joint angle); A, B and C are all inherent parameters of the surgical instrument, which are constant values and are related to the instrument structure of the surgical instrument; A*(asin(2*sin(Ins+B))-C) is the first angle calculation formula.
[0077] According to the above motion angle calculation equation, the relationship between Ins and Motor can be obtained as follows: Figure 4a On this basis, the reduction ratio of the yaw joint is defined as Motor / Ins, and the reduction ratio under different Ins can be obtained as follows: Figure 4b Based on the above yaw joint characteristics, the dynamic speed limit design process is as follows:
[0078] Step 1: Get the performance of the yaw motor. The rated speed of the yaw motor is recorded as ratedMotorSpeed. In actual use, the rated speed can be increased by 10%, that is, ratedMotorSpeed*110% as the motor speed limit of the yaw motor (hereinafter referred to as the yaw motor speed limit), which is used as the maximum value of the motor speed of the yaw motor (hereinafter referred to as the yaw motor speed).
[0079] Step 2: According to the above description, under different Ins, the reduction ratio is different, and the two are nonlinear. In use, the yaw motor controls the movement of the yaw joint, and the movement speed limit of the yaw joint can be calculated by the following movement speed limit calculation equation (hereinafter referred to as the yaw joint speed limit):
[0080]
[0081] Among them, InsLimitSpeed is the yaw joint speed limit, the unit is degree / millisecond; is the second angle calculation formula. On this basis, the corresponding curve is as follows Figure 4c shown.
[0082] Step 3: Based on the motion speed limit calculation equation obtained in step 2, design the following dynamic speed limit process:
[0083] (1) Based on the sampling period T (i.e., the time interval mentioned above), the expected motion angle α of the yaw joint is obtained, where α is the real-time position information of the yaw joint, as input, and is denoted as lrIn=α.
[0084] (2) Record lrIn and the output value lrOut_old of the yaw joint in the previous cycle (i.e., the actual motion angle in the above text), and calculate the difference in the motion angles between the two in the current cycle, and convert it into the expected motion speed lrDelta, where lrDelta = (lrIn-lrOut_old) / T.
[0085] (3) Determine the numerical relationship between lrDelta and InsLimitSpeed, and assign a value to the intermediate variable lrTemp (i.e., the target motion speed mentioned above) based on the numerical relationship. Specifically:
[0086]
[0087] (4) According to lrTemp, the output value lrOut (i.e., the target motion angle in the above text) of the current cycle after speed limitation can be obtained as:
[0088] lrOut=lrOut_old+lrTemp*T.
[0089] Sending lrOut to the driver controls the movement of the yaw motor, thereby ensuring that the yaw motor does not exceed the speed in the full range of motion and maximally ensuring the followability of the yaw joint.
[0090] Figure 5This is a structural block diagram of a motion control device for a robot provided in an embodiment of the present invention. The device is used to execute the motion control method for a robot provided in any of the above embodiments. The device and the motion control method for a robot provided in the above embodiments belong to the same inventive concept. For details not described in detail in the embodiment of the motion control device for a robot, reference can be made to the embodiment of the motion control method for a robot provided in the above embodiments. Figure 5 The device is configured on a controller, which corresponds to a robotic arm in the robot. The target device connected to the robotic arm moves driven by a target motor in the robotic arm. The device includes: an expected movement speed determination module 310, a current movement speed limit determination module 320 and a movement control module 330.
[0091] The expected motion speed determination module 310 is used to obtain the expected motion angle of the target device in the current cycle and the actual motion angle in the previous cycle of the current cycle, and determine the expected motion speed of the target device in the current cycle according to the expected motion angle and the actual motion angle;
[0092] The current motion speed limit determination module 320 is used to determine the current motion speed limit of the target device corresponding to the motor motion speed limit in the current cycle according to the expected motion angle, with respect to the motor motion speed limit preset for the target motor;
[0093] The motion control module 330 is used to determine the target motion speed of the target device in the current cycle according to the numerical relationship between the expected motion speed and the current motion speed limit, and control the motion of the target motor according to the target motion speed to drive the motion of the target device through the motion of the target motor.
[0094] Optionally, the current movement speed limit determination module 320 may include:
[0095] A first relationship acquisition unit is used to acquire a first relationship pre-constructed based on the motor motion speed limit, wherein the first relationship represents the relationship between the device motion angle of the target device and the device motion speed limit of the target device, and the expected motion angle is the device motion angle expected by the target device in the current cycle;
[0096] The current motion speed limit determination unit is used to determine the current motion speed limit of the target device in the current cycle corresponding to the motor motion speed limit according to the first relationship and the expected motion angle, wherein the current motion speed limit is the device motion speed limit applied by the target device in the current cycle.
[0097] On this basis, optionally, the first relationship is pre-built through the following modules:
[0098] A second relationship acquisition module, used to acquire a pre-constructed second relationship, wherein the second relationship represents the relationship between the movement angle of the device and the reduction ratio of the target device;
[0099] The first relationship building module is used to build a first relationship according to the motor movement speed limit and the second relationship.
[0100] On this basis, optionally, the second relationship is pre-built through the following modules:
[0101] A third relationship acquisition module, used to acquire a pre-built third relationship, wherein the third relationship represents a relationship between a movement angle of the device and a motor movement angle of the target motor;
[0102] The second relationship building module is used to build a second relationship based on the third relationship, wherein the reduction ratio is the ratio of the motor movement angle to the device movement angle.
[0103] On this basis, optionally, the third relationship is expressed by a motion angle calculation equation, one side of which is the motor motion angle and the other side is a first angle calculation formula based on the machine motion angle; correspondingly, the first relationship is expressed by a motion speed limit calculation equation, one side of which is the machine motion speed limit and the other side is the product of the motor motion speed limit and the second angle calculation formula, and the second angle calculation formula is the ratio of the machine motion angle to the first angle calculation formula.
[0104] Optionally, the motion control module 330 may include:
[0105] A numerical relationship obtaining unit is used to obtain the numerical relationship between the desired motion speed and the current motion speed limit;
[0106] a first target motion speed determination unit, configured to use the expected motion speed as the target motion speed of the target device in the current cycle when the numerical relationship indicates that the expected motion speed is within the current motion speed limit;
[0107] The target motion speed second determination unit is used for otherwise taking the current motion speed limit as the target motion speed.
[0108] Optionally, the motion control module 330 may include:
[0109] A target motion angle determination unit, used to determine the target motion angle of the target device in the current cycle according to the actual motion angle, the target motion speed and the time interval between the current cycle and the previous cycle;
[0110] The first motion control unit is used to control the target motor to move in a current cycle according to the target motion angle.
[0111] On the basis of any of the above devices, optionally, the target motor is a yaw motor corresponding to the yaw joint in the target device, the expected motion angle, the actual motion angle, the expected motion speed, the current motion speed limit and the target motion speed all correspond to the yaw joint, and the motion control module 330 may include:
[0112] The second motion control unit is used to control the movement of the yaw motor according to the target movement speed, so as to drive the movement of the yaw joint through the movement of the yaw motor.
[0113] The motion control device of a robot device provided by an embodiment of the present invention obtains the expected motion angle of the target device in the current cycle and the actual motion angle in the previous cycle of the current cycle through the expected motion speed determination module, and determines the expected motion speed of the target device in the current cycle according to the expected motion angle and the actual motion angle. The expected motion speed allows the target device to follow the movement of the operator well and avoids the operation delay of the target device; further, through the current motion speed limit determination module, for the motor motion speed limit preset for the target motor, according to the expected motion angle, the current motion speed limit of the target device corresponding to the motor motion speed limit in the current cycle is determined. Compared with using the same device motion speed limit in the full motion range of the target device, the dynamic determination of the current motion speed limit can not only avoid the target motor from running away, but also allow the target device to follow the movement of the operator as much as possible; through the motion control module, according to the numerical relationship between the expected motion speed and the current motion speed limit, the target motion speed of the target device in the current cycle is determined, so that the target motor movement can be controlled according to the target motion speed, so as to drive the movement of the target device through the movement of the target motor, thereby realizing the motion control of the target device. The above-mentioned device dynamically determines the current motion speed limit corresponding to the motor motion speed limit through the real-time expected motion angle, and then controls the motion of the target device according to the current motion speed limit. This not only ensures that the motor movement speed is within the motor movement speed limit, that is, prevents the target motor from running away, but also minimizes the sense of delay in the operation of the target device.
[0114] The motion control device of the robot apparatus provided in the embodiment of the present invention can execute the motion control method of the robot apparatus provided in any embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method.
[0115] It is worth noting that in the embodiment of the motion control device of the above-mentioned robotic instrument, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0116] Figure 6A schematic diagram of the structure of a controller 10 that can be used to implement an embodiment of the present invention is shown. The controller 10 corresponds to a mechanical arm in a robot, and a target device connected to the mechanical arm moves under the drive of a target motor in the mechanical arm. The controller is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The controller can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0117] like Figure 6 As shown, the controller 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the controller 10 can also be stored. The processor 11, ROM 12 and RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0118] A number of components in the controller 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the controller 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0119] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a motion control method for a robotic device.
[0120] In some embodiments, the motion control method of the robotic apparatus may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the controller 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the motion control method of the robotic apparatus described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the motion control method of the robotic apparatus in any other appropriate manner (e.g., by means of firmware).
[0121] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0122] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0123] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0124] To provide interaction with a user, the systems and techniques described herein may be implemented on a controller having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the controller. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0125] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0126] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0127] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0128] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A motion control method for a robot device, characterized in that: Applied to a controller, the controller corresponds to a mechanical arm in a robot, a target device connected to the mechanical arm moves under the drive of a target motor in the mechanical arm, and the method includes: Acquire the expected motion angle of the target device in the current cycle and the actual motion angle in the previous cycle of the current cycle, and determine the expected motion speed of the target device in the current cycle according to the expected motion angle and the actual motion angle; For a motor motion speed limit preset for the target motor, determining a current motion speed limit of the target device in the current cycle corresponding to the motor motion speed limit according to the expected motion angle; According to the numerical relationship between the expected movement speed and the current movement speed limit, the target movement speed of the target device in the current cycle is determined, and the movement of the target motor is controlled according to the target movement speed to drive the movement of the target device through the movement of the target motor.
2. The method according to claim 1, characterized in that The step of determining the current motion speed limit of the target device corresponding to the motor motion speed limit in the current cycle according to the expected motion angle includes: Acquire a first relationship pre-constructed based on the motor motion speed limit, wherein the first relationship represents a relationship between the machine motion angle of the target machine and the machine motion speed limit of the target machine, and the expected motion angle is the machine motion angle expected by the target machine in the current cycle; The current motion speed limit of the target device in the current cycle corresponding to the motor motion speed limit is determined based on the first relationship and the expected motion angle, wherein the current motion speed limit is the device motion speed limit applied to the target device in the current cycle.
3. The method according to claim 2, characterized in that The first relationship is pre-constructed by the following steps: Acquire a pre-constructed second relationship, wherein the second relationship represents a relationship between the movement angle of the device and the reduction ratio of the target device; The first relationship is constructed according to the motor movement speed limit and the second relationship.
4. The method according to claim 3, characterized in that The second relationship is pre-constructed by the following steps: Acquire a pre-constructed third relationship, wherein the third relationship represents a relationship between the movement angle of the device and the motor movement angle of the target motor; The second relationship is constructed based on the third relationship, wherein the reduction ratio is the ratio of the motor movement angle to the device movement angle.
5. The method according to claim 4, characterized in that The third relationship is represented by a motion angle calculation equation, one side of which is the motor motion angle and the other side is a first angle calculation equation based on the device motion angle; The first relationship is represented by a motion speed limit calculation equation, one side of which is the machine motion speed limit and the other side is the product of the motor motion speed limit and a second angle calculation equation, wherein the second angle calculation equation is the ratio of the machine motion angle to the first angle calculation equation.
6. The method according to claim 1, characterized in that The step of determining the target movement speed of the target device in the current cycle according to the numerical relationship between the expected movement speed and the current movement speed limit includes: Obtaining a numerical relationship between the desired movement speed and the current movement speed limit; When the numerical relationship indicates that the expected motion speed is within the current motion speed limit, using the expected motion speed as the target motion speed of the target device in the current cycle; Otherwise, the current movement speed limit is used as the target movement speed.
7. The method according to claim 1, characterized in that The step of controlling the target motor movement according to the target movement speed comprises: Determining a target motion angle of the target device in the current cycle according to the actual motion angle, the target motion speed, and a time interval between the current cycle and the previous cycle; According to the target motion angle, the target motor is controlled to move in the current cycle.
8. The method according to any one of claims 1 to 7, characterized in that The target motor is a yaw motor corresponding to a yaw joint in the target device, the expected motion angle, the actual motion angle, the expected motion speed, the current motion speed limit, and the target motion speed all correspond to the yaw joint, and the target motor is controlled to move according to the target motion speed so as to drive the target device to move through the motion of the target motor, including: The movement of the yaw motor is controlled according to the target movement speed, so that the movement of the yaw motor drives the movement of the yaw joint.
9. A motion control device for a robot, characterized in that: The device is configured on a controller, the controller corresponds to a mechanical arm in the robot, and a target device connected to the mechanical arm moves under the drive of a target motor in the mechanical arm. The device includes: An expected motion speed determination module, used to obtain an expected motion angle of the target device in a current cycle and an actual motion angle in a cycle before the current cycle, and determine an expected motion speed of the target device in the current cycle according to the expected motion angle and the actual motion angle; a current motion speed limit determining module, for determining, for the motor motion speed limit preset for the target motor, a current motion speed limit of the target device corresponding to the motor motion speed limit in the current cycle according to the expected motion angle; The motion control module is used to determine the target motion speed of the target device in the current cycle according to the numerical relationship between the expected motion speed and the current motion speed limit, and control the motion of the target motor according to the target motion speed to drive the motion of the target device through the motion of the target motor.
10. A controller, characterized in that: Corresponding to the mechanical arm in the robot, the target device connected to the mechanical arm moves under the drive of the target motor in the mechanical arm, and the controller includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to perform the motion control method of the robotic instrument according to any one of claims 1 to 8.
Citation Information
Patent Citations
Robot control method, robot control system and robot
CN109732594A
Speed control method for robot, mechanical arm type robot and storage medium
CN111958586A
Robot end effector control method
CN115670686A
Method for controlling cantilever crane, cantilever crane control device and engineering machinery
CN117049442A
Surgical robot control method and device, electronic equipment and storage medium
CN117503370A
Cited By
Compensation method and device for transmission clearance of surgical instrument and slave end controller
CN119326514A
