Robotic arm control method, device, equipment and storage medium
By judging the sudden change in the motion state of the robot arm's end effector and controlling its feed speed, the problem of slippage of the robot arm when it contacts the target object is solved, and operation safety and accuracy are improved.
Patent Information
- Application Number
- CN202410139308.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-31
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-01-31
AI Technical Summary
When using a robotic arm to perform operations such as auxiliary drilling, the end effector is prone to slipping when it comes into contact with the target object, resulting in damage to the target object and high safety risks.
By determining whether the motion state of the end effector changes suddenly when it enters the preset contact area, and controlling its feed speed not to exceed the preset speed threshold, the probability of slipping and the risk of damage is reduced.
It improves the accuracy and safety when the end effector contacts the target object, and reduces the chance of damage to the target object due to slippage.
Smart Images

Figure CN117921665B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of robot motion control, and in particular to a robot arm control method, device, equipment and storage medium. Background Art
[0002] When using a robot such as a robotic arm to drive an end effector to perform auxiliary drilling and other operations on a target object, the motion trajectory of the end effector is planned in advance, the user drags the robotic arm, detects the force applied by the user to the robotic arm, and controls the robotic arm to move along the motion trajectory according to the force.
[0003] In the related art, when the end effector of the robot arm just contacts the target object, the end effector may slip, which may easily cause damage to the target object and is highly dangerous. Summary of the invention
[0004] In order to solve the above technical problems, the present disclosure provides a robot arm control method, device, equipment and storage medium.
[0005] In a first aspect, the present disclosure provides a method for controlling a robotic arm, the method comprising:
[0006] If the robot arm drives the end effector to enter the preset contact area of the target object, it is determined whether the motion state of the end effector changes suddenly; wherein the preset contact area is the area where the end effector is predicted to contact the target object;
[0007] If the motion state of the end effector changes suddenly, the feeding speed of the end effector moving toward the target object is controlled to be no greater than a preset speed threshold.
[0008] In a second aspect, the present disclosure provides a robot arm control device, the device comprising:
[0009] A first judgment module is used to judge whether the motion state of the end effector changes suddenly if the robot arm drives the end effector to enter a preset contact area of the target object; wherein the preset contact area is an area where the end effector is predicted to contact the target object;
[0010] The first control module is used to control the feeding speed of the end effector to move toward the target object to be no greater than a preset speed threshold if the motion state of the end effector changes suddenly.
[0011] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the device comprising:
[0012] one or more processors;
[0013] a storage device for storing one or more programs,
[0014] When one or more programs are executed by one or more processors, the one or more processors implement the method provided in the first aspect.
[0015] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method provided in the first aspect is implemented.
[0016] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:
[0017] The present invention discloses a method, device, equipment and storage medium for controlling a robotic arm. If the robotic arm drives the end effector to enter the preset contact area of the target object, it is determined whether the motion state of the end effector changes suddenly. The preset contact area is the area where the end effector is predicted to contact the target object. If the motion state of the end effector changes suddenly, the feed speed of the end effector moving toward the target object is controlled not to be greater than the preset speed threshold. Therefore, by integrating the position of the end effector and the motion state of the end effector for comprehensive judgment, the accuracy of determining whether the end effector actually contacts the target object is improved, so that the end effector can move at a lower feed speed when it contacts the target object, reducing the probability of the end effector slipping, and reducing the probability of damage to the target object due to slipping, thereby improving safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0020] Figure 1 A schematic flow chart of a method for controlling a robotic arm provided in an embodiment of the present disclosure;
[0021] Figure 2 A schematic flow chart of another robot arm control method provided in an embodiment of the present disclosure;
[0022] Figure 3 A schematic flow chart of another robot arm control method provided in an embodiment of the present disclosure;
[0023] Figure 4 A schematic diagram of a robot arm control method provided by an embodiment of the present disclosure;
[0024] Figure 5 A schematic diagram of the structure of a robotic arm control device provided in an embodiment of the present disclosure;
[0025] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0026] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0027] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0028] In the medical surgery and other fields, there are high requirements for the coordination of robots. When using robots such as robotic arms to drive the end effector to assist in drilling and other operations on the target object, the movement trajectory of the end effector is planned in advance. For example, in orthopedic surgeries such as the anterior cruciate ligament (ACL), when drilling the bone tunnel, the end effector is required to move in a straight line.
[0029] The user drags the robotic arm, measures the force applied by the user to the robotic arm, and controls the robotic arm to move along the motion trajectory according to the force.
[0030] In the related art, visual information is used to determine whether the end effector of the robot arm contacts the target object. However, the accuracy of visual information is low, and it is difficult to accurately determine whether the end effector contacts the target object. If the end effector contacts the target object at an acute angle at a fast speed, the end effector may slip, which may easily cause damage to the target object and is highly dangerous.
[0031] In order to solve at least one of the above technical problems, the robot arm control method provided by the embodiment of the present disclosure is described below. In the embodiment of the present disclosure, the robot arm control method can be executed by an electronic device. The electronic device can be a controller of a surgical robot. The electronic device can include a device with communication function such as a tablet computer, a desktop computer, a laptop computer, etc., and can also include a device simulated by a virtual machine or a simulator.
[0032] Figure 1FIG. 1 is a flow chart of a method for controlling a robotic arm provided by an embodiment of the present disclosure. Figure 1 As shown, the robot arm control method may include the following steps.
[0033] Step 101, if the robot arm drives the end effector to enter the preset contact area of the target object, it is determined whether the motion state of the end effector changes suddenly; wherein the preset contact area is the area where the end effector is predicted to contact the target object.
[0034] Among them, the robotic arm can be understood as a robot for processing a target object. The robotic arm can be a robotic arm provided with a force sensor, and the force sensor can be used to collect the force applied to the robotic arm by the user. This embodiment does not limit the type of the robotic arm. For example, the robotic arm can include a surgical robotic arm, an industrial assembly robotic arm, and a safety explosion-proof robotic arm. The end effector can be a tool connected to the robotic arm for processing a target object, and the end effector can be understood as a tool held by a robot. There are many types of end effectors, and this embodiment does not limit them. For example, if the robotic arm is a surgical robotic arm, the end effector can include a drill. This embodiment does not limit the connection method between the robotic arm and the end effector. For example, the robotic arm and the end effector can be fixedly connected.
[0035] The target object may be a physical object to be processed by the end effector. This embodiment does not limit the target object. For example, the target object may include bones, parts, etc. The motion state may characterize the motion of the end effector. This embodiment does not limit the motion state. For example, the motion state may include one or more of a velocity state, an acceleration state, and a force state.
[0036] The preset contact area may include a preset contact point, wherein the preset contact point may be a position point where the end effector and the target object are predicted to contact. The preset contact area may be a section of the motion trajectory planned for the end effector, the starting point end point of the preset contact area may be a position point that is at a preset distance threshold from the preset contact point and is far away from the target object, the ending point end point of the preset contact area may be a position point that is at a preset end distance from the mutation point and is located inside the target object, the mutation point may be a position point where the motion state of the end effector suddenly changes, and the mutation point may be understood as a position point where the end effector and the target object actually contact each other. In this embodiment, the values of the preset distance threshold and the preset end distance are not limited. For example, if the end effector is a drill bit, the preset end distance may be half the diameter of the drill bit ball head. Due to the detection error, the accuracy of the preset contact point is low. The prediction of the point is converted into the prediction of the area through the preset contact area, thereby improving the accuracy of the prediction.
[0037] In the disclosed embodiment, the user can drag the robot arm in the direction of the target object, and when the robot arm moves, the end effector is driven to move together. The robot arm control device controls the end effector to move along a pre-planned motion trajectory according to the force applied by the user, so that the end effector approaches the target object. The robot arm control device can periodically determine the position of the end effector, and when the position of the end effector changes from being outside the preset contact area to being within the preset contact area, continuously determine whether the motion state of the end effector has a sudden change.
[0038] Figure 2 A flow chart of another robot arm control method provided by an embodiment of the present disclosure is as follows: Figure 2 As shown, the robot arm drives the end effector to enter the preset contact area of the target object, including:
[0039] Step 201: Obtain a target distance between an end effector and a target object.
[0040] There are many types of target distances, which are not limited in this embodiment. For example, the target distance may be the distance between the end effector and the target object along a pre-planned motion trajectory, or the target distance may be the closest straight-line distance between the target effector and the target object.
[0041] In this embodiment, there are many methods for obtaining the target distance, which are not limited in this embodiment. Examples are as follows:
[0042] In an optional embodiment, a manipulator target point is set on the manipulator, and an object target point is set on the target object. During the movement of the manipulator, the relative position between the manipulator target point and the object target point changes. The visual information system can calculate the target distance between the end effector and the target object according to the relative position of the manipulator target point and the object target point, and send the target distance to the manipulator control device. The manipulator control device obtains the target distance.
[0043] In another optional implementation, the magnetic positioning system can determine the target distance between the end effector and the target object by magnetic positioning technology, and send the target distance to the robot arm control device. The robot arm control device obtains the target distance.
[0044] Step 202: If the target distance is less than a preset distance threshold, it is determined that the end effector enters a preset contact area.
[0045] The preset distance threshold may be a preset threshold used to determine whether the end effector enters a preset contact area.
[0046] In this embodiment, the robot arm control device can periodically obtain the target distance between the end effector and the target object, and determine whether the target distance is less than a preset distance threshold. If the target distance changes from not less than the preset distance threshold to less than the preset distance threshold, it is determined that the end effector enters the preset contact area and is about to come into contact with the target object.
[0047] In the above solution, whether the end effector enters the preset contact area is efficiently determined by the distance between the end effector and the target object.
[0048] In some embodiments of the present disclosure, determining whether the motion state of the end effector changes suddenly includes:
[0049] The acceleration of the end effector is determined according to the joint position information of the robot arm; if the acceleration is greater than a preset acceleration threshold, it is determined that the motion state of the end effector has suddenly changed.
[0050] The joint position information may be information characterizing the joint motion state of the robot arm, and specifically, the joint position information may include joint angle information. The preset acceleration threshold may be a threshold used to determine whether the motion state of the end effector changes suddenly according to the acceleration.
[0051] In this embodiment, the robot arm control device can obtain the joint position information of the robot arm, and determine the change of the position of the end effector over time according to the joint position information, and calculate the acceleration of the end effector according to the change of the position of the end effector over time. Further, it is determined whether the acceleration is greater than a preset acceleration threshold. If so, it is determined that the motion state of the end effector has a sudden change, and the end effector is in contact with the target object. Otherwise, it is determined that the motion state of the end effector has not a sudden change, and the end effector is not in contact with the target object.
[0052] It should be noted that if a force sensor is used to determine whether the motion state of the end effector has changed, the noise of the force sensor will affect the determination of whether the motion state has changed suddenly. Compared with the method of determining by a force sensor, the acceleration in this embodiment is determined based on the joint position information, which is obtained based on the encoder, and the noise of the encoder is small, so the acceleration is more accurate, and the result of determining whether the motion state of the end effector has changed suddenly based on the acceleration is also more accurate.
[0053] Step 102 : If the motion state of the end effector changes suddenly, the feed speed of the end effector moving toward the target object is controlled to be no greater than a preset speed threshold.
[0054] The feed speed may be a speed in a feed direction. Before the end effector contacts the target object, the feed direction may be a direction in which the end effector approaches the target object along a pre-planned motion trajectory; after the end effector contacts the target object, the feed direction may be a direction in which the end effector penetrates into the target object along a pre-planned motion trajectory. The preset speed threshold may be the maximum speed of the end effector penetrating into the target object when the motion state of the end effector changes suddenly in the preset contact area and the end effector is in the preset contact area.
[0055] In the embodiment of the present disclosure, if the motion state of the end effector changes suddenly, it means that the end effector is in contact with the target object and the end effector is in the stage of contacting the target object. The robotic arm control device controls the feed speed of the end effector to continue to penetrate into the target object at a speed not greater than a preset speed threshold.
[0056] In some embodiments of the present disclosure, the force applied by the user to the robot arm includes an axial force, wherein the direction of the axial force is parallel to the feeding direction of the end effector. That is, the direction of the axial force can be consistent with or opposite to the feeding direction of the end effector.
[0057] In this embodiment, the robot arm is provided with a force sensor, which can measure forces in three directions: horizontal, longitudinal and vertical. If the end effector is a drill bit, the longitudinal direction can be set to be parallel to the axial direction of the drill bit. The axial force can be a force in a direction parallel to the axial direction of the drill bit.
[0058] In some embodiments of the present disclosure, controlling the feeding speed of the end effector to move toward the target object to be no greater than a preset speed threshold includes:
[0059] If the direction of the axial force is consistent with the feed direction, the feed displacement of the end effector in the adjacent cycle is set to a preset displacement; wherein a preset speed corresponding to the preset displacement is less than a preset speed threshold.
[0060] The adjacent period may be a predetermined period of the position of the end effector. The feed displacement may be a position change of the end effector along the feed direction within the adjacent period. The preset displacement may be a preset displacement, which may be set according to user requirements, etc. The preset speed may be a speed at which the end effector moves with the preset displacement within the adjacent period.
[0061] In this embodiment, if the direction of the axial force is consistent with the feed direction, it means that the user pushes the end effector to continue to penetrate the target object after the end effector has already contacted the target object. In this case, the robot arm control device sets the feed displacement of the end effector in adjacent cycles to a fixed value of the preset displacement, so that the end effector penetrates the target object at a lower speed when it just contacts the target object.
[0062] Optionally, if the direction of the axial force is opposite to the feeding direction, the extraction displacement of the end effector in the adjacent cycle is set to the product of the axial force and the preset force coefficient. The extraction displacement may be the position change of the end effector along the extraction direction in the adjacent cycle. The extraction direction may be the opposite direction of the feeding direction. Thus, when the user draws back the robotic arm, a smaller resistance feeling is set, which saves the user's physical strength and improves the user's feel when handling the target object.
[0063] For example, if the end effector is a drill bit and the target object is a bone, when it is determined that the end effector has entered the preset contact area and the motion state has changed suddenly, it is determined that the end effector is in the bone surface contact stage, and different control strategies are adopted for the pushing and extracting manipulators. Specifically, in this stage, the push manipulator feels heavier to ensure that the end effector does not slip after contacting the target object, so a fixed feed displacement Δ is set. min When the user applies a large thrust (i.e., axial force), the end effector still moves at a fixed preset speed based on the feed displacement. In addition, at this stage, the feel of extracting the robotic arm needs to be light, and the movement speed of the end effector is controlled by the axial force, so that the user can easily extract the robotic arm.
[0064] Specifically, when F y >0, Y(k+1)=Y(k)+Δ min When F y <0, Y(k+1)=Y(k)+k P F y , where F y is the axial force, Y(k+1) is the command position of the end effector at time k+1, and Y(k) is the command position of the end effector at time k. The command position can be understood as the position indicated by the end effector. Δ min is the feed displacement, k P is the preset force coefficient.
[0065] A robot arm control method of an embodiment of the present disclosure, if the robot arm drives the end effector to enter the preset contact area of the target object, then it is determined whether the motion state of the end effector has a sudden change; wherein the preset contact area is the area where the end effector is predicted to be in contact with the target object; if the motion state of the end effector has a sudden change, then the feed speed of the end effector moving toward the target object is controlled not to be greater than the preset speed threshold. Thus, by integrating the position of the end effector and the motion state of the end effector for comprehensive judgment, the accuracy of determining whether the end effector actually contacts the target object is improved, so that the end effector can move at a lower feed speed when it contacts the target object, reducing the probability of the end effector slipping, and reducing the probability of damage to the target object due to slipping, thereby improving safety.
[0066] In addition, the visual information system is used to determine whether the end effector has entered the preset contact area, and the acceleration is used to determine whether the motion state of the end effector has changed suddenly. The visual information system and acceleration are integrated to identify the moment when the end effector contacts the target object, and a larger damping feeling is set, so that the user feels heavier when pushing the robot arm, reducing the possibility of slipping. The reliance on the user's manual control to prevent slipping is reduced.
[0067] It should be noted that if the determination of whether to limit the feed speed of the end effector is based only on the preset contact point directly determined by the visual information system, due to one or more errors in the visual information system, the target object model, and the end effector model, it is difficult for the visual information system to accurately determine whether the end effector is in contact with the target object, and the timing of limiting the feed speed of the end effector is not accurate. If the determination of whether to limit the feed speed of the end effector is based only on acceleration, when the end effector does not contact the target object (that is, it is in free space restriction), if the user suddenly changes from pushing the robotic arm to extracting the robotic arm, the acceleration may be greater than the acceleration threshold. Therefore, the methods of determining whether to limit the feed speed of the end effector based on the above two preset contact points or acceleration alone have low accuracy in controlling the robotic arm.
[0068] Figure 3 A flow chart of another robot arm control method provided by the embodiment of the present disclosure is as follows: Figure 3 As shown, the robot arm control method also includes:
[0069] Step 301, if the end effector does not enter the preset contact area, determine whether the vertical force applied by the user to the robot arm is greater than a preset force threshold; wherein the direction of the vertical force is perpendicular to the direction of the axial force.
[0070] The vertical force may be a component force in a direction perpendicular to the direction of the axial force. For example, a force sensor that measures forces in the lateral, longitudinal, and vertical directions may be used. If the direction of the axial force is parallel to the longitudinal direction, the direction of the vertical force may be parallel to the lateral or vertical direction, or the direction of the vertical force may be the direction of the combined force of the lateral force and the vertical force. The preset force threshold may be a threshold for determining whether to combine the vertical force to determine the motion displacement.
[0071] In this embodiment, the visual information system or the magnetic positioning system can determine the target distance between the end effector and the target object, and send the target distance to the manipulator control device. The manipulator control device obtains the target distance. If the target distance is greater than the preset distance threshold, it is determined that the end effector has not entered the preset contact area. Further, the manipulator control device can obtain a vertical force perpendicular to the axial force direction collected by the force sensor, and calculate whether the vertical force is greater than the preset force threshold. Alternatively, multiple vertical forces perpendicular to the axial force direction collected by the force sensor are obtained, and the resultant force of the multiple vertical forces is calculated to be greater than the preset force threshold.
[0072] Step 302: If the vertical force is greater than a preset force threshold, the axial movement displacement of the end effector in adjacent cycles is determined according to the vertical force and the axial force.
[0073] The motion displacement can be the position change of the end effector along the axial direction between adjacent cycles. If the axial direction is consistent with the feed direction, the motion displacement can be understood as the feed displacement; if the axial direction is opposite to the feed direction, the motion displacement can be understood as the extraction displacement.
[0074] In this embodiment, since the position and posture of the robot arm restrict the direction of the force applied by the user to the robot arm, although the user wants to drag the robot arm to make the end effector move parallel to the feeding direction, even if the user applies a large force to the robot arm, due to the limitation of the angle between the force and the robot arm, the axial component of the force (i.e., the axial force) is small, and the vertical component of the force (i.e., the vertical force) is large. In this case, it is not convenient for the user to drag the robot arm. The robot arm control device can determine whether the vertical force is greater than the preset force threshold. If so, it means that the user is not convenient to drag the robot arm. Based on the axial force and the vertical force, the axial movement displacement of the end effector in adjacent cycles is determined. Specifically, the direction of the movement displacement can be the same as the direction of the axial force, and the magnitude of the movement displacement can be a value determined comprehensively based on the magnitude of the axial force and the magnitude of the vertical force.
[0075] For example, if the end effector is a drill bit and the target object is a bone, let the longitudinal force be F y , the lateral force is F x , the vertical force is F z , vertical force is the lateral force F x and the vertical force F z The force threshold is preset as F t .
[0076] exist In the case of p *F y .
[0077] exist In the case of That is, in In this case, the input of the robot controller is the actual input F y ,exist In the case of y On the basis of
[0078] Among them, F y is the axial force, Y(k+1) is the command position of the end effector at time k+1, Y(k) is the command position of the end effector at time k, and k P is the preset force coefficient. sgn(F y ) is the directional coefficient, if F y The direction of is the same as the feed direction, then sgn(F y )=1, if F y The direction is opposite to the feed direction, then sgn(F y )=-1, λ is a numerical coefficient, the F max is the preset force operator.
[0079] In the above scheme, when the vertical force is not greater than the preset force threshold, a smaller damping feeling is set, and the user can push and pull the robotic arm more easily. When the vertical force is greater than the preset force threshold, the movement displacement of the end effector is comprehensively controlled by combining the vertical force and the axial force, making the pushing and pulling of the robotic arm easier and more convenient. In addition, the vertical force does not affect the judgment of the intention of extraction or pushing and pulling, that is, it does not affect the determination of the direction of the movement displacement, but affects the determination of the size of the movement displacement. As a result, the movement direction of the end effector is consistent with the direction intended by the user, further improving the safety of the robotic arm in handling the target object.
[0080] In some embodiments of the present disclosure, the robot arm control method further includes:
[0081] If the end effector passes through the preset contact area and the direction of the axial force is consistent with the feed direction, the motion displacement of the end effector in the current cycle is determined according to the preset cycle, axial force, preset inertia parameters, motion speed of the previous cycle, and preset damping parameters.
[0082] Among them, the axial force may be the axial force of the current cycle. The preset cycle may be understood as a sampling cycle for obtaining the position of the end effector. The preset inertia parameter may be an inertia control parameter of a preset admittance controller. The preset damping parameter may be a damping control parameter of a preset admittance controller. The movement speed of the previous cycle may be the speed of the end effector movement indicated in the previous cycle of the current cycle, and the previous cycle may be understood as the previous cycle adjacent to the current cycle.
[0083] In this embodiment, when the end effector enters the preset contact area, if the end effector's advancing depth in the target object reaches the preset end distance after the motion state of the end effector changes suddenly, it means that the end effector has reached the end point of the preset contact area. That is, the end effector has passed the preset contact area. Further, it is determined whether the direction of the axial force is consistent with the feeding direction. If they are consistent, it means that the user drags the robot arm to make the end effector go deeper into the target object. Then, the admittance control calculation is performed according to the preset cycle, axial force, preset inertia parameters, motion speed of the previous cycle, and preset damping parameters to determine the motion displacement of the end effector in the current cycle.
[0084] For example, if the end effector is a drill bit and the target object is a bone, the advancement depth d of the end effector is calculated from the time when the end effector contacts the target object. tcp , if the advancement depth d tcp >d, where d is the preset end point distance. It is considered that the end effector has passed the preset contact surface, the surface countersinking of the target object has been completed, and the probability of subsequent slipping in the target object is small. During the bone drilling operation, different control strategies are adopted for pushing and extracting the robotic arms. Specifically, the feel of pushing the robotic arm needs to be light while ensuring the overall stability of the end effector and the target object, and the feel of extracting the robotic arm needs to be controlled to be light so that the doctor can extract the robotic arm more easily.
[0085] Specifically, when F y >0,
[0086] When F y <0, Y(k+1)=Y(k)+k P F y ;
[0087] Among them, F y is the axial force, Y(k+1) is the command position of the end effector at time k+1, Y(k) is the command position of the end effector at time k, and k P is the preset force coefficient, T sis the preset cycle, F(k+1) is the axial force at the k+1 moment (i.e., the current cycle), M is the preset inertia parameter, v(k) is the movement speed at the k moment (i.e., the previous cycle), the movement speed at the k moment can be understood as the command speed for the k moment, the command speed can be the movement speed that the indicated machine needs to achieve, and B is the preset damping parameter.
[0088] In the above scheme, when the end effector has contacted with the target object and entered the target object, the restriction on the feed speed of the target object is released, and the corresponding motion displacement is determined according to the axial force, thereby improving the user's operating feel.
[0089] In some embodiments of the present disclosure, if the end effector passes through a preset contact area and the direction of the axial force is consistent with the feeding direction, the motion displacement of the end effector in the current cycle is determined according to the preset cycle, the axial force, the preset inertia parameter, the motion speed of the previous cycle, and the preset damping parameter, including:
[0090] If the end effector passes through the preset contact area, it is determined whether the power switch signal is an on signal; if it is an on signal and the direction of the axial force is consistent with the feed direction, the movement displacement of the end effector in the current cycle is determined according to the preset cycle, the axial force, the preset inertia parameter, the movement speed of the previous cycle, and the preset damping parameter. If the power switch signal is not an on signal, the robot arm is controlled to stop moving.
[0091] It should be noted that after the end effector enters the target object, the force sensor of the robotic arm measures the combined force of the force applied by the user to the robotic arm and the resistance applied to the robotic arm by the target object, so it is impossible to distinguish whether the force received by the end effector is the user's force or the resistance. In the above scheme, the power switch signal is used as an auxiliary judgment condition. Compared with other methods of using foot pedals to control whether the robotic arm can be pushed, the user can conveniently control the robotic arm in a standing position.
[0092] Figure 4 A schematic diagram of a robot arm control method provided by an embodiment of the present disclosure is shown in FIG. Figure 4 As shown, the robot arm control method provided by the embodiment of the present disclosure divides the processing of the target object by the end effector into three stages: a free space stage, a contact target object stage, and a bone drilling operation stage. The boundary between the free space stage and the contact target object stage is divided according to the starting point endpoint, and the boundary between the contact target object stage and the bone drilling operation stage is divided according to the end point endpoint. The starting point endpoint can be a position point whose distance from the preset contact point in the opposite direction of the feed direction is a preset distance threshold, and the end point endpoint can be a position point whose distance from the mutation point in the feed direction is a preset end point distance, and the mutation point can be a position point where the motion state of the end effector suddenly changes.
[0093] In the free space stage, the positioning of the robot arm is completed, and the end effector has not entered the preset contact area of the target object. The control parameters with a small damping sense are used, so that the user can push and pull the robot arm more easily in this stage. In addition, the magnitude of the axial force in the feeding direction and the magnitude of the vertical force are combined to jointly determine the user's expected speed of pushing the robot arm. When the vertical force is greater than the preset force threshold, the input force of the controller is adjusted to the force determined by the axial force and the vertical force in the feeding direction.
[0094] In the stage of contacting the target object, the moment when the end effector contacts the target object (i.e., the moment when the mutation point is reached) is identified by fusing the distance and key position information, and control parameters with a larger damping sense are used, so that the user feels heavier when pushing the robotic arm, reducing the probability of slipping. In the subsequent bone drilling operation stage, the end effector has passed the preset contact area, and the user can withdraw the robotic arm according to their needs. During the withdrawal process, control parameters with a smaller damping sense are used, so that the withdrawal of the robotic arm feels lighter. And the control parameters can be adjusted according to the depth information of the end effector penetrating into the target object, so that the user can push the robotic arm relatively easily and stably.
[0095] Figure 5 A schematic structural diagram of a robotic arm control device provided in an embodiment of the present disclosure is shown.
[0096] like Figure 5 As shown, the robot arm control device 500 may include:
[0097] The first judgment module 501 is used to judge whether the motion state of the end effector changes suddenly if the robot arm drives the end effector to enter the preset contact area of the target object; wherein the preset contact area is the area where the end effector is predicted to contact the target object;
[0098] The first control module 502 is configured to control the feeding speed of the end effector moving toward the target object to be not greater than a preset speed threshold if the motion state of the end effector changes suddenly.
[0099] Optionally, the robotic arm drives the end effector to enter a preset contact area of the target object, including:
[0100] Acquiring a target distance between the end effector and the target object;
[0101] If the target distance is less than a preset distance threshold, it is determined that the end effector enters the preset contact area.
[0102] Optionally, determining whether the motion state of the end effector changes suddenly includes:
[0103] Determining the acceleration of the end effector according to the joint position information of the robotic arm;
[0104] If the acceleration is greater than a preset acceleration threshold, it is determined that the motion state of the end effector changes suddenly.
[0105] Optionally, the force applied by the user to the robotic arm includes an axial force; wherein the direction of the axial force is parallel to the feeding direction of the end effector.
[0106] Optionally, controlling the feeding speed of the end effector to move toward the target object to be no greater than a preset speed threshold comprises:
[0107] If the direction of the axial force is consistent with the feeding direction, the feeding displacement of the end effector in adjacent cycles is set to a preset displacement; wherein a preset speed corresponding to the preset displacement is less than the preset speed threshold.
[0108] Optionally, the robot arm control device 500 further includes:
[0109] A second judgment module is used to judge whether the vertical force applied by the user to the robot arm is greater than a preset force threshold if the end effector does not enter the preset contact area; wherein the direction of the vertical force is perpendicular to the direction of the axial force;
[0110] The second control module is used to determine the axial movement displacement of the end effector in adjacent cycles according to the vertical force and the axial force if the vertical force is greater than the preset force threshold.
[0111] Optionally, the robot arm control device 500 further includes:
[0112] The third control module is used to determine the motion displacement of the end actuator in the current cycle according to the preset cycle, the axial force, the preset inertia parameter, the motion speed of the previous cycle, and the preset damping parameter if the end actuator passes through the preset contact area and the direction of the axial force is consistent with the feed direction.
[0113] It should be noted that Figure 5 The robot arm control device 500 shown can execute each step in the above-mentioned robot arm control method embodiment, and realize each process and effect in the above-mentioned robot arm control method embodiment, which will not be described in detail here.
[0114] Figure 6 A schematic structural diagram of an electronic device provided by an embodiment of the present disclosure is shown.
[0115] like Figure 6As shown, the electronic device may include a processor 601 and a memory 602 storing computer program instructions.
[0116] Specifically, the processor 601 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0117] The memory 602 may include a large capacity memory for information or instructions. By way of example and not limitation, the memory 602 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory 602 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 602 may be inside or outside the integrated gateway device. In a particular embodiment, the memory 602 is a non-volatile solid-state memory. In a particular embodiment, the memory 602 includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (Electrically Erasable Programmable ROM, EEPROM), an electrically rewritable ROM (EAROM) or a flash memory, or a combination of two or more of these.
[0118] The processor 601 reads and executes the computer program instructions stored in the memory 602 to perform the steps of the robot arm control method provided in the embodiment of the present disclosure.
[0119] In one example, the electronic device may further include a transceiver 603 and a bus 604. Figure 6 As shown, the processor 601, the memory 602 and the transceiver 603 are connected via a bus 604 and communicate with each other.
[0120] The bus 604 includes hardware, software, or both. For example, but not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industrial Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses or a combination of two or more of these. Where appropriate, the bus 604 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.
[0121] The following is an embodiment of a computer-readable storage medium provided in an embodiment of the present disclosure. The computer-readable storage medium and the robot arm control method of the above-mentioned embodiments belong to the same inventive concept. For details not described in detail in the embodiment of the computer-readable storage medium, please refer to the embodiment of the above-mentioned robot arm control method.
[0122] This embodiment provides a storage medium containing computer executable instructions, which are used to execute a robot arm control method when executed by a computer processor.
[0123] Of course, the storage medium containing computer executable instructions provided by the embodiment of the present disclosure, whose computer executable instructions are not limited to the above method operations, can also execute related operations in the robot arm control method provided by any embodiment of the present disclosure.
[0124] Through the above description of the implementation methods, the technical personnel in the relevant field can clearly understand that the present disclosure can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present disclosure can be essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer cloud platform (which can be a personal computer, a server, or a network cloud platform, etc.) to execute the robot arm control method provided by each embodiment of the present disclosure.
[0125] Note that the above are only preferred embodiments of the present disclosure and the technical principles used. Those skilled in the art will understand that the present disclosure is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present disclosure. Therefore, although the present disclosure is described in more detail through the above embodiments, the present disclosure is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present disclosure, and the scope of the present disclosure is determined by the scope of the appended claims.
Claims
1. A robot arm control method, characterized in that: include: If the robotic arm drives the end effector to enter the preset contact area of the target object, it is determined whether the motion state of the end effector changes suddenly; wherein the preset contact area is the area where the end effector is predicted to contact the target object, and the robotic arm is dragged by the user; the robotic arm drives the end effector to enter the preset contact area of the target object, including: the position of the end effector changes from not being in the preset contact area to being in the preset contact area; If the motion state of the end effector changes suddenly, the feeding speed of the end effector moving toward the target object is controlled to be no greater than a preset speed threshold; wherein the sudden change in the motion state indicates that the end effector is in contact with the target object; Wherein, judging whether the motion state of the end effector has suddenly changed includes: determining the acceleration of the end effector according to the joint position information of the robotic arm; if the acceleration is greater than a preset acceleration threshold, determining that the motion state of the end effector has suddenly changed; wherein, the joint position information is obtained based on an encoder.
2. The method according to claim 1, characterized in that The robotic arm drives the end effector to enter a preset contact area of the target object, including: Acquiring a target distance between the end effector and the target object; If the target distance is less than a preset distance threshold, it is determined that the end effector enters the preset contact area.
3. The method according to claim 1, characterized in that: The force applied by the user to the robot arm includes an axial force; wherein the direction of the axial force is parallel to the feeding direction of the end effector.
4. The method according to claim 3, characterized in that The step of controlling the feeding speed of the end effector to move toward the target object to be no greater than a preset speed threshold comprises: If the direction of the axial force is consistent with the feeding direction, the feeding displacement of the end effector in adjacent cycles is set to a preset displacement; wherein a preset speed corresponding to the preset displacement is less than the preset speed threshold.
5. The method according to claim 3, characterized in that: The method further comprises: If the end effector does not enter the preset contact area, determining whether the vertical force applied by the user to the robotic arm is greater than a preset force threshold; wherein the direction of the vertical force is perpendicular to the direction of the axial force; If the vertical force is greater than the preset force threshold, the axial movement displacement of the end effector in adjacent cycles is determined according to the vertical force and the axial force.
6. The method according to claim 3, characterized in that: The method further comprises: If the end effector passes through the preset contact area and the direction of the axial force is consistent with the feed direction, the motion displacement of the end effector in the current cycle is determined according to the preset cycle, the axial force, the preset inertia parameter, the motion speed of the previous cycle, and the preset damping parameter.
7. A robot arm control device, characterized in that: include: The first judgment module is used to judge whether the motion state of the end effector changes suddenly if the robot arm drives the end effector to enter the preset contact area of the target object; wherein the preset contact area is the area where the end effector is predicted to contact the target object, and the robot arm is dragged by the user; the robot arm drives the end effector to enter the preset contact area of the target object, including: the position of the end effector changes from not being in the preset contact area to being in the preset contact area; A first control module is used to control the feeding speed of the end effector to move toward the target object to be not greater than a preset speed threshold if the motion state of the end effector changes suddenly; wherein the sudden change in the motion state indicates that the end effector is in contact with the target object; Wherein, judging whether the motion state of the end effector has suddenly changed includes: determining the acceleration of the end effector according to the joint position information of the robotic arm; if the acceleration is greater than a preset acceleration threshold, determining that the motion state of the end effector has suddenly changed; wherein, the joint position information is obtained based on an encoder.
8. An electronic device, characterized in that: include: processor; A memory for storing executable instructions; The processor is used to read the executable instructions from the memory and execute the executable instructions to implement the method described in any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Robot control method, storage device, computer equipment and robot
CN112497209A
Robot traction teaching method and device, electronic equipment and storage medium
CN114918924A
Motor control device, mechanical system, and control method
CN116113892A
Force guiding control method and system for variable admittance of robot
CN116604565A
Manipulator controller
JP1995186076A
