A method, device and robot for controlling a robotic arm based on a virtual wall

By incorporating each joint of the robotic arm into Cartesian space constraints and calculating the virtual control force, the safety problem of the robotic arm joints beyond the virtual wall boundary is solved, application adaptability is improved, computing resource consumption is reduced, and safer and more efficient machinery is achieved. Arm control.

CN118163097BActive Publication Date: 2024-09-27REALMAN INTELLIGENT TECH (BEIJING) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410289900.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-14
Publication Date
2024-09-27
Estimated Expiration
2044-03-14

AI Technical Summary

Technical Problem

In the existing technology, the virtual wall can only constrain the Cartesian space of the end flange of the robotic arm, and cannot effectively constrain other joints of the robotic arm, causing the joints to exceed the boundaries of the virtual wall, threatening personal safety, and consuming too much computing resources, limiting the popularized the application of robotic arms.

Method used

By incorporating each joint of the robotic arm into Cartesian space constraints, it is determined whether it is within the range of the virtual wall, and the virtual control force is calculated based on the virtual wall type and geometric parameters. Only necessary joints participate in the calculation process, reducing computational consumption.

Benefits of technology

It solves the safety problem caused by the robot arm joints exceeding the boundary of the virtual wall, improves the adaptability of the robot arm application scenarios, and effectively reduces the consumption of computing resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118163097B
    Figure CN118163097B
Patent Text Reader

Abstract

The present invention discloses a method, device and robot for controlling a robot arm based on a virtual wall. The method comprises the following steps: based on the type of the virtual wall, judging whether the end of the robot arm and each joint are within the range of the virtual wall; if the end of the robot arm and each joint are within the range of the virtual wall, obtaining the real control force of the end of the robot arm based on the type of the robot arm controller, and controlling the operation of the robot arm according to the real control force; if the end of the robot arm and any of the joints are outside the range of the virtual wall, obtaining the real control force of the end of the robot arm or the corresponding joint based on the type of the robot arm controller, and obtaining the virtual control force of the end of the robot arm or the corresponding joint, and controlling the operation of the robot arm according to the real control force and the virtual control force. By incorporating each joint of the robot arm into the Cartesian space constraint, the problem of endangering personal safety caused by the robot arm joint exceeding the boundary of the virtual wall is solved; and the adaptability to the application scenarios of the robot arm is improved through a variety of virtual wall types.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of robot control, and in particular to a robot arm control method, device and robot based on a virtual wall. Background Art

[0002] With the continuous development of engineering technology, the application of robotic arm collaboration is becoming more and more extensive, and there is more and more attention paid to safety protection issues in the application process. In order to improve human safety during collaborative work, it is necessary to add a virtual wall function to ensure that the robotic arm works in a specific workspace without passing through the virtual wall to threaten personal safety.

[0003] In the prior art, the virtual wall generally only constrains the end flange or tool of the robot arm in Cartesian space. By restricting the three directions of the Cartesian coordinate system, the working space of the end flange or tool of the robot arm is constrained within a certain range. However, when the end flange or tool of the robot arm is in motion, other joints of the robot arm may also contact the virtual wall, or even exceed the boundary of the virtual wall, thus threatening personal safety. Therefore, it is also necessary to constrain other joints of the robot arm.

[0004] In the prior art, virtual walls are often used in the medical industry to guide the scalpel at the end of a surgical robot to perform surgery. The virtual wall is usually set to a cone shape according to the characteristics of the surgery. However, with the widespread use of robotic arms, the cone-shaped virtual wall can no longer meet all application requirements. Therefore, more other virtual walls with geometric shapes that can be selected by operators are needed.

[0005] In the prior art, all joints, connecting rods, end flanges or tools of a robotic arm are usually enveloped with complex geometric shapes, so a large amount of computing resources are consumed during the interaction process, which increases the difficulty of using the robotic arm and seriously limits the application and popularization of the robotic arm. Summary of the invention

[0006] The purpose of the embodiments of the present invention is to provide a method, device and robot for controlling a robotic arm based on a virtual wall. By incorporating each joint of the robotic arm into Cartesian space constraints, the problem of endangering personal safety caused by the joints of the robotic arm exceeding the boundaries of the virtual wall is solved; the adaptability to the application scenarios of the robotic arm is improved through a variety of virtual wall types; based on the corresponding geometric parameters of the virtual wall type, the corresponding joints of the robotic arm participating in the virtual wall control are judged, and there is no need for all joints of the robotic arm to participate in the calculation process, which effectively reduces the calculation resource consumption of the robotic arm.

[0007] In order to solve the above technical problems, a first aspect of an embodiment of the present invention provides a robot arm control method based on a virtual wall, comprising the following steps:

[0008] Based on the type of virtual wall, determine whether the end of the robot arm and each joint are within the range of the virtual wall;

[0009] If the end of the robotic arm and all joints are within the range of the virtual wall, the real control force of the end of the robotic arm is obtained based on the type of the robotic arm controller, and the operation of the robotic arm is controlled according to the real control force;

[0010] If any of the end of the robotic arm and any of its joints are outside the range of the virtual wall, the real control force of the end of the robotic arm or the corresponding joint is obtained based on the type of the robotic arm controller, and the virtual control force of the end of the robotic arm or the corresponding joint is obtained, and the operation of the robotic arm is controlled according to the real control force and the virtual control force.

[0011] Furthermore, the determining whether the end of the robot arm and each joint are located within the range of the virtual wall includes:

[0012] Obtaining Cartesian spatial position data of the end of the robotic arm and each joint;

[0013] Based on the Cartesian spatial position data, determining in sequence from the end of the robotic arm to the base of the robotic arm whether the end of the robotic arm or the joint is within the range of the virtual wall;

[0014] If not, obtaining the virtual control force based on the Cartesian spatial position data of the end or joint of the robotic arm;

[0015] If so, it is determined in sequence from the end of the robotic arm to the base of the robotic arm whether the next joint is located within the range of the virtual wall.

[0016] Further, the determining in sequence from the end of the robotic arm to the base of the robotic arm whether the end of the robotic arm or the joint is located within the range of the virtual wall includes:

[0017] Obtaining the center point coordinates of the virtual wall;

[0018] Obtaining the joint angles of each joint of the robotic arm through inverse kinematics;

[0019] Based on the joint angles, the Cartesian space coordinate values ​​of the envelope corresponding to the end of the robotic arm and each joint are calculated by forward kinematics;

[0020] In combination with the center point coordinates of the virtual wall, it is determined based on the Cartesian space coordinate values ​​whether the corresponding envelope of the end of the robotic arm or the joint is within the range of the virtual wall.

[0021] Furthermore, the obtaining of the virtual control force of the end of the robotic arm or the corresponding joint includes:

[0022] Obtaining the linear velocity of the end of the robotic arm or the corresponding joint in Cartesian space;

[0023] Obtaining the distance between the end of the robotic arm or the corresponding joint and the virtual wall;

[0024] Calculating a virtual force of the end of the robotic arm or a corresponding joint based on the linear velocity and the distance value;

[0025] The virtual control force of the end of the robot arm or the corresponding joint is calculated based on the virtual force.

[0026] Furthermore, the types of the virtual wall include: a cuboid, a sphere, a cylinder or a cone;

[0027] The coordinates of the center point of the virtual wall are the coordinates of the robot base coordinate system or the coordinates of the Cartesian coordinate system of the robot end.

[0028] Furthermore, before judging whether the end of the robot arm and each joint are located within the range of the virtual wall based on the type of the virtual wall, the method further includes:

[0029] Obtaining the type and geometric parameters of the virtual wall;

[0030] Envelopes of different sizes are used to envelop the end of the robot arm and each joint, and the size of the envelope is positively correlated with the size of the joint or the size of the tool at the end of the robot arm.

[0031] Furthermore, when the virtual wall is a sphere, the virtual force The calculation formula is:

[0032]

[0033]

[0034]

[0035]

[0036]

[0037] Among them, Agent i is an envelope that envelops the end of the robotic arm and each joint, is the Cartesian space linear velocity of the end or joint of the robot arm, is the distance between the end or joint of the robot arm and the virtual wall, K virtual is the virtual stiffness coefficient, B virtual is the virtual damping coefficient;

[0038] When the virtual wall is a cuboid, the virtual force The calculation formula is:

[0039]

[0040]

[0041]

[0042]

[0043] Among them, Agent i is the envelope that envelops the end of the i-th robotic arm and each joint, is the Cartesian space linear velocity of the end or joint of the robot arm, is the distance between the end or joint of the robot arm and the virtual wall, K virtual is the virtual stiffness coefficient, B virtual is the virtual damping coefficient.

[0044] Furthermore, when the joint torque of the robot arm is detected based on the joint current of the robot arm, the virtual control force F virtual The calculation formula is:

[0045]

[0046] J(θ)=[J1, J2, J3, J4, J5, J6];

[0047] in, is the virtual joint torque of the robot joint 1 to joint 6, J(θ) is the Agent i The corresponding Jacobian matrix, θ is the joint angle of the robot arm, and are the values ​​of the virtual force in the Cartesian space coordinate system, Agent i is an envelope that envelops the end of the i-th robotic arm and each joint;

[0048] When the multi-dimensional force sensor at the end of the robot arm detects the joint torque of the robot arm, the virtual control force F virtual The calculation formula is:

[0049]

[0050] Among them, Agent i is the envelope that envelops the end of the i-th robotic arm and each joint, and are respectively the values ​​of the virtual force in the Cartesian space coordinate system.

[0051] Furthermore, the obtaining of the real control force of the end of the robotic arm or the corresponding joint based on the type of the robotic arm controller includes:

[0052] When the joint torque of the robot arm is detected based on the joint current of the robot arm, the calculation formula of the real control force is:

[0053] F real =τ(t)=k m i(t);

[0054] Where τ(t) is the joint output torque, i(t) is the joint feedback current, k m is the torque constant of the robot arm;

[0055] When the mechanical arm joint torque is detected based on the multi-dimensional force sensor at the end of the mechanical arm, the calculation formula of the real control force is:

[0056]

[0057] in, represents the position of the six-dimensional force sensor coordinate system relative to the Cartesian coordinate system, F S It represents the environmental contact force of the six-dimensional force sensor after gravity compensation in the six-dimensional force sensor coordinate system.

[0058] Further, controlling the operation of the robotic arm according to the real manipulation force includes:

[0059] Calculating the control amount of the robotic arm based on the real control force;

[0060] Controlling the operation of the robotic arm according to the control amount of the robotic arm;

[0061] When the joint torque of the robotic arm is detected based on the joint current of the robotic arm, the calculation formula of the control amount of the robotic arm is:

[0062]

[0063] in, is the inertia term, M(θ) is the inertia matrix of the manipulator, is the centrifugal force and the Coriolis force term, is the centrifugal force and Coriolis force matrix, g(θ) is the gravity term, is the friction force of the robot joint, τ ext The external torque that the robot bears, F real For real control power;

[0064] When the mechanical arm joint torque is detected based on the multi-dimensional force sensor at the end of the mechanical arm, the calculation formula of the control amount of the mechanical arm is:

[0065]

[0066] x e =x-x0;

[0067] x u =x0+x e (t+1);

[0068] Among them, M d is the diagonal matrix of stiffness coefficients, B d is the diagonal matrix of damping coefficient, Kd is the diagonal matrix of inertia coefficient, x e is the difference between the actual position x of the end of the robot and the expected position x0 of the end of the robot, x e (t+1) is the corrected posture deviation of the end of the manipulator expected in the next control cycle, x u is the final position control value of the end of the robot arm.

[0069] Further, controlling the operation of the robotic arm according to the real control force and the virtual control force includes:

[0070] Calculating a control amount of the robotic arm based on the real control force and the virtual control force;

[0071] Controlling the operation of the robotic arm according to the control amount of the robotic arm;

[0072] When the joint torque of the robotic arm is detected based on the joint current of the robotic arm, the calculation formula of the control amount of the robotic arm is:

[0073]

[0074] in, is the inertia term, M(θ) is the inertia matrix of the manipulator, is the centrifugal force and the Coriolis force term, is the centrifugal force and Coriolis force matrix, g(θ) is the gravity term, is the friction force of the robot joint, τ ext The external torque that the robot bears, F real F is the real control force. virtual For virtual control power;

[0075] When the mechanical arm joint torque is detected based on the multi-dimensional force sensor at the end of the mechanical arm, the calculation formula of the control amount of the mechanical arm is:

[0076]

[0077] x e =x-x0;

[0078] x u =x0+x e (t+1);

[0079] Among them, M d is the diagonal matrix of stiffness coefficients, is the difference between the actual acceleration of the end of the robot and the expected acceleration of the end of the robot, B d is the diagonal matrix of damping coefficients, K is the difference between the actual speed of the end of the robot and the expected speed of the end of the robot, d is the diagonal matrix of inertia coefficients, x e is the difference between the actual position x of the end of the robot and the expected position x0 of the end of the robot, x e (t+1) is the corrected posture deviation of the end of the manipulator expected in the next control cycle, x u is the final position control value of the end of the robot arm.

[0080] Accordingly, a second aspect of an embodiment of the present invention provides a robot arm control device based on a virtual wall, comprising:

[0081] A position determination module, which is used to determine whether the end of the robot arm and each joint are within the range of the virtual wall based on the type of the virtual wall;

[0082] A first control module, which is used to obtain the real control force of the end of the robotic arm based on the type of the robotic arm controller if the end of the robotic arm and each joint are within the range of the virtual wall, and control the operation of the robotic arm according to the real control force;

[0083] The second control module is used to obtain the real control force of the end of the robotic arm or the corresponding joint based on the type of robotic arm controller, and obtain the virtual control force of the end of the robotic arm or the corresponding joint if any of the end of the robotic arm and any of the joints are outside the range of the virtual wall, and control the operation of the robotic arm according to the real control force and the virtual control force.

[0084] Correspondingly, a third aspect of an embodiment of the present invention provides a robot, which controls its robotic arm based on any of the above-mentioned virtual wall-based robotic arm control methods.

[0085] Correspondingly, a fourth aspect of an embodiment of the present invention provides an electronic device, comprising: at least one processor; and a memory connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor executes any of the virtual wall-based robotic arm control methods described above.

[0086] Correspondingly, a fifth aspect of an embodiment of the present invention provides a computer-readable storage medium having computer instructions stored thereon, which, when executed by a processor, implement any of the above-mentioned virtual wall-based robotic arm control methods.

[0087] The above technical solution of the embodiment of the present invention has the following beneficial technical effects:

[0088] By incorporating each joint of the robotic arm into Cartesian space constraints, the problem of endangering personal safety caused by the robotic arm joints exceeding the virtual wall boundaries is solved; the adaptability to the application scenarios of the robotic arm is also improved through a variety of virtual wall types; the corresponding joints of the robotic arm participating in the virtual wall control are judged based on the corresponding geometric parameters of the virtual wall type, without the need for all joints of the robotic arm to participate in the calculation process, effectively reducing the computing resource consumption of the robotic arm. BRIEF DESCRIPTION OF THE DRAWINGS

[0089] Figure 1 is a flow chart of a robotic arm control method based on a virtual wall provided by an embodiment of the present invention;

[0090] Figure 2 The embodiment of the present invention provides a schematic diagram of the contact between the spherical virtual wall and the envelope. Figure 1 ;

[0091] Figure 3 The embodiment of the present invention provides a schematic diagram of the contact between the spherical virtual wall and the envelope. Figure 2 ;

[0092] Figure 4 The embodiment of the present invention provides a schematic diagram of the contact between the cuboid virtual wall and the envelope. Figure 1 ;

[0093] Figure 5 The embodiment of the present invention provides a schematic diagram of the contact between the cuboid virtual wall and the envelope. Figure 2 ;

[0094] Figure 6 It is a schematic diagram of the envelope judgment process and control mode selection provided by an embodiment of the present invention;

[0095] Figure 7 It is a block diagram of a module of a robotic arm control device based on a virtual wall provided in an embodiment of the present invention.

[0096] Reference numerals:

[0097] 1. Position determination module, 2. First control module, 3. Second control module. DETAILED DESCRIPTION

[0098] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. In addition, in the following description, the description of well-known structures and technologies is omitted to avoid unnecessary confusion of the concept of the present invention.

[0099] Please refer to Figure 1 In order to solve the above technical problems, a first aspect of an embodiment of the present invention provides a robot arm control method based on a virtual wall, comprising the following steps:

[0100] Step S200, based on the virtual wall type, determine whether the end of the robot arm and each joint are within the range of the virtual wall.

[0101] Step S400: If the end of the robotic arm and all joints are within the range of the virtual wall, the real control force of the end of the robotic arm is obtained based on the type of the robotic arm controller, and the operation of the robotic arm is controlled according to the real control force.

[0102] Step S600: If the end of the robotic arm and any of its joints are outside the range of the virtual wall, the real control force of the end of the robotic arm or the corresponding joint is obtained based on the type of the robotic arm controller, and the virtual control force of the end of the robotic arm or the corresponding joint is obtained, and the operation of the robotic arm is controlled according to the real control force and the virtual control force.

[0103] Optionally, the types of the virtual wall include: a cuboid, a sphere, a cylinder or a cone; the coordinates of the center point of the virtual wall are the coordinates of the robot base coordinate system or the coordinates of the Cartesian coordinate system of the robot end.

[0104] Select the appropriate virtual wall type according to the application scenario of the robot arm, and set the corresponding geometric parameters based on the virtual wall type (including geometric virtual wall types such as rectangle, sphere, cylinder and cone) to determine the range of the virtual wall. The virtual wall range is used to limit the range of movement of the robot arm body and the end tool in Cartesian space.

[0105] Furthermore, before determining whether the end of the robot arm and each joint are located within the range of the virtual wall based on the virtual wall type in step S200, the method further includes:

[0106] Step S100, obtaining the type and geometric parameters of the virtual wall.

[0107] Step S110, using envelopes of different sizes to envelop the end of the robot arm and each joint, the size of the envelope is positively correlated with the size of the joint or the size of the tool at the end of the robot arm.

[0108] For example, the geometric parameters of the cuboid virtual wall are the side length L of the cuboid. wall =[l x , l y , l z ] and the coordinates of the center point of the cuboid P wall =[c x , c y , c z ], the geometric parameters of the spherical virtual wall are the sphere radius R wall and the coordinates of the center point of the sphere P wall =[C x , c y , c z ]. The center point coordinates of various types of virtual walls are set with reference to the robot base coordinate system, and also support setting with the Cartesian space position of the current end tool.

[0109] Specifically, the step S200 of determining whether the end of the robot arm and each joint are within the range of the virtual wall includes:

[0110] Step S210, obtaining Cartesian spatial position data of the end of the robot arm and each joint.

[0111] Step S220 , based on the Cartesian spatial position data, determine in sequence from the end of the robot arm to the base of the robot arm whether the end of the robot arm or the joint is within the range of the virtual wall.

[0112] Step S230: If not, obtain the virtual control force based on the Cartesian spatial position data of the end or joint of the robot arm.

[0113] Step S240: If yes, determine whether the next joint is within the range of the virtual wall in sequence from the end of the robot arm to the base of the robot arm.

[0114] Specifically, each joint and end tool of the robot arm are enclosed by an envelope of different sizes. In addition to a sphere, the shape of the envelope that encloses the end of the robot arm and each joint can also be a cylinder or other shapes; therefore, the shape attribute is ignored and all optional shapes are collectively referred to as an envelope. The envelope also means that the envelope of these shapes replaces the end of the robot arm or the joint to contact the virtual wall.

[0115] The size of each envelope is determined by the size of the joint or the end tool. When the robot arm has six degrees of freedom, the envelopes of each joint of the robot arm are named as Agent 1 to Agent 6 (Agent 1 to Agent 6, Agent i represents the envelope i), the envelope of the envelope end tool is named as envelope 7 (Agent7), and the radius of each envelope is The Cartesian space coordinates of each envelope are named According to the virtual wall geometric parameter information of the virtual wall parameter setting module, it is automatically determined which envelopes need to participate in the robot envelope judgment module.

[0116] Agent i The method for determining whether a user is inside a virtual wall is as follows:

[0117] (1) For the spherical virtual wall:

[0118] Please refer to Figure 2 and Figure 3 , Agent i The distance to the center point of the virtual wall of the sphere is:

[0119]

[0120] Agent i The distance to the surface of the virtual wall of the sphere is:

[0121] d min =R wall -d R

[0122] when When i Inside the virtual wall of the sphere, otherwise outside the virtual wall.

[0123] (2) For a cuboid virtual wall:

[0124] Please refer to Figure 4 and Figure 5 , the six faces of the cuboid are named X+ plane, X- plane, Y+ plane, Y- plane, Z+ plane and Z- plane according to the XYZ coordinate axis direction of the Cartesian coordinate system, and the normal vector corresponding to the plane is named n X+ 、n X- 、n Y+ 、n Y- 、n Z+ and n Z- According to the length L of the virtual wall of the cuboid wall and the center point coordinates P of the cuboid virtual wall wallThe Cartesian space coordinates of the eight vertices (ABCDEFGH) of the cuboid virtual wall are calculated. The six faces of the cuboid are determined by these eight vertices. The distance calculation method from point to face can be used to calculate the Agent i The distances d to the six faces of the cuboid X+ ,d X- ,d Y+ ,d Y- ,d Z+ and d z- .

[0125] Judge Agent i The contact relationship between the three coordinate axes XYZ of the Cartesian coordinate system and the cuboid virtual wall is as follows:

[0126] d X′ =d X+ +d X- -l x

[0127] d Y′ =d Y+ +d Y- -l y

[0128] d Z′ =d Z+ +d Z- -l z

[0129] When X′ >0 or d Y′ >0 or d Z′ >0, Agent i Outside the virtual wall of the sphere, otherwise inside the virtual wall.

[0130] Furthermore, the step S240 of determining whether the end of the robot arm or the joint is within the range of the virtual wall in the order from the end of the robot arm to the base of the robot arm includes:

[0131] Step S241, obtaining the center point coordinates of the virtual wall.

[0132] Step S242, obtaining the joint angles of each joint of the robotic arm through inverse kinematics.

[0133] Step S243, based on the joint angles, the Cartesian space coordinate values ​​of the envelope corresponding to the end of the robot arm and each joint are calculated through forward kinematics.

[0134] Step S244, combining the center point coordinates of the virtual wall, based on the Cartesian space coordinate values, determines whether the corresponding envelope of the robot arm end or joint is within the range of the virtual wall.

[0135] Please refer to Figure 6 , collect the Cartesian spatial pose of the end flange of the robot arm in the current control cycle A method for representing the position and posture of an end flange relative to a Cartesian coordinate system is provided, and the joint angles θ=[θ1, θ2, θ3, θ4, θ5, θ6] of the robot arm are obtained by an inverse kinematics calculation method. The inverse kinematics calculation method includes an analytical solution method and a numerical solution method.

[0136] In the envelopes that the robot envelope setting module automatically determines need to participate in the robot envelope determination module, the Cartesian space coordinates of each of these envelopes are obtained by the forward kinematics calculation method. The specific calculation method is as follows:

[0137]

[0138]

[0139] in, represents the calculation method of calculating the i-th joint pose through the i-1th joint of the robot arm, R represents the joint pose matrix, P represents the joint position matrix, i is the joint number, α i 、a i ,d i is the MDH parameter of the robot arm.

[0140] Envelope Agent i The Cartesian space position of The Cartesian space coordinates are For example, the Cartesian space pose of Agent 6 is The calculation method is Other Agents i The Cartesian space coordinate calculation method is analogous.

[0141] According to the type of virtual wall, starting from the robot end tool envelope Agent7, the Cartesian space position is used to determine whether these envelopes are inside the virtual wall. If Agent7 is outside the virtual wall, Agent7 is transferred to the robot envelope control module and the robot envelope judgment module is terminated; if Agent7 is inside the virtual wall, the previous envelope Agent is determined. i Whether it is inside the virtual wall, if it is outside, the Agent i The robot envelope control module is passed in, and the robot envelope judgment module is terminated until these envelopes are inside the virtual wall or the robot envelope judgment module is terminated. When these envelopes are inside the virtual wall, the robot controller module enters the single control mode, and when there are envelopes outside the virtual wall, the robot controller module enters the combined control mode.

[0142] Specifically, obtaining the virtual control force of the end of the robot arm or the corresponding joint in step S600 includes:

[0143] Step S610, obtaining the linear velocity of the end of the robot arm or the corresponding joint in the Cartesian space.

[0144] Step S620, obtaining the distance value between the end of the robot arm or the corresponding joint and the virtual wall.

[0145] Step S630, calculating the virtual force of the end of the robot arm or the corresponding joint based on the linear velocity and the distance value.

[0146] Step S640, calculating the virtual control force of the end of the robot arm or the corresponding joint based on the virtual force.

[0147] Optionally, when the virtual wall is a sphere, the virtual force in step S630 The calculation formula is:

[0148]

[0149]

[0150]

[0151]

[0152]

[0153] Among them, Agent i It is an envelope that envelops the end of the robot arm and each joint. is the Cartesian space linear velocity of the end or joint of the robot, is the distance between the end of the robot arm or joint and the virtual wall, K virtual is the virtual stiffness coefficient, B virtual is the virtual damping coefficient.

[0154] Optionally, when the virtual wall is a cuboid, the virtual force in step S630 The calculation formula is:

[0155]

[0156]

[0157]

[0158]

[0159] Among them, Agent iis the envelope that envelops the end of the i-th robot arm and each joint, is the Cartesian space linear velocity of the end or joint of the robot, is the distance between the end of the robot arm or joint and the virtual wall, K virtual is the virtual stiffness coefficient, B virtual is the virtual damping coefficient.

[0160] Optionally, when the joint torque of the robot arm is detected based on the joint current of the robot arm, the virtual control force F in step S640 virtual The calculation formula is:

[0161]

[0162] J(θ)=[J1, J2, J3, J4, J5, J6];

[0163] in, is the virtual joint torque of the robot joint 1 to joint 6, J(θ) is the Agent i The corresponding Jacobian matrix, θ is the joint angle of the robot arm, and are the values ​​of the virtual force in the Cartesian space coordinate system, Agent i is the envelope that envelops the end of the i-th robot arm and each joint.

[0164] Optionally, when the multi-dimensional force sensor at the end of the robot arm detects the joint torque of the robot arm, the virtual control force F in step S640 virtual The calculation formula is:

[0165]

[0166] Among them, Agent i is the envelope that envelops the end of the i-th robot arm and each joint, and are the values ​​of the virtual force in the Cartesian space coordinate system respectively.

[0167] Optionally, the steps S400 and S600 of obtaining the actual control force of the end of the robotic arm or the corresponding joint based on the type of the robotic arm controller include at least two cases:

[0168] First, when the joint torque of the robot arm is detected based on the joint current of the robot arm, the calculation formula of the real control force is:

[0169] F real =τ(t)=k m i(t);

[0170] Where τ(t) is the joint output torque, i(t) is the joint feedback current, k m is the torque constant of the robot arm.

[0171] Second, when the multi-dimensional force sensor at the end of the robotic arm detects the joint torque of the robotic arm, the calculation formula for the actual control force is:

[0172]

[0173] in, represents the position of the six-dimensional force sensor coordinate system relative to the Cartesian coordinate system, F S It represents the environmental contact force of the six-dimensional force sensor after gravity compensation in the six-dimensional force sensor coordinate system.

[0174] Optionally, controlling the operation of the robot arm according to the real control force in step S400 includes:

[0175] Step S411, calculating the control amount of the robot arm based on the actual control force.

[0176] When the joint torque of the robot arm is detected based on the joint current of the robot arm, the calculation formula of the control amount of the robot arm is:

[0177]

[0178] in, is the inertia term, M(θ) is the inertia matrix of the manipulator, is the centrifugal force and the Coriolis force term, is the centrifugal force and Coriolis force matrix, g(θ) is the gravity term, is the friction force of the robot joint, τ ext The external torque that the robot bears, F real For real control power;

[0179] When the multi-dimensional force sensor at the end of the robotic arm detects the joint torque of the robotic arm, the calculation formula of the control amount of the robotic arm is:

[0180]

[0181] x e =x-x0;

[0182] x u =x0+x e (t+1);

[0183] Among them, M d is the diagonal matrix of stiffness coefficients, B d is the diagonal matrix of damping coefficient, Kd is the diagonal matrix of inertia coefficient, x eis the difference between the actual position x of the end of the robot and the expected position x0 of the end of the robot, x e (t+1) is the corrected posture deviation of the end of the manipulator expected in the next control cycle, x u is the final position control value of the end of the robot arm.

[0184] Step S412, controlling the operation of the robotic arm according to the control amount of the robotic arm.

[0185] Furthermore, controlling the operation of the robot arm according to the real control force and the virtual control force in step S600 includes:

[0186] Step S651, calculating the control amount of the robot arm based on the real control force and the virtual control force.

[0187] When the joint torque of the robot arm is detected based on the joint current of the robot arm, the calculation formula of the control amount of the robot arm is:

[0188]

[0189] in, is the inertia term, M(θ) is the inertia matrix of the manipulator, is the centrifugal force and the Coriolis force term, is the centrifugal force and Coriolis force matrix, g(θ) is the gravity term, is the friction force of the robot joint, τ ext The external torque that the robot bears, F real F is the real control force. virtual For virtual control.

[0190] When the multi-dimensional force sensor at the end of the robotic arm detects the joint torque of the robotic arm, the calculation formula of the control amount of the robotic arm is:

[0191]

[0192] x e =x-x0;

[0193] x u =x0+x e (t+1);

[0194] Among them, M d is the diagonal matrix of stiffness coefficients, is the difference between the actual acceleration of the end of the robot and the expected acceleration of the end of the robot, B d is the diagonal matrix of damping coefficients, K is the difference between the actual speed of the end of the robot and the expected speed of the end of the robot, d is the diagonal matrix of inertia coefficients, x eis the difference between the actual position x of the end of the robot and the expected position x0 of the end of the robot, x e (t+1) is the corrected posture deviation of the end of the manipulator expected in the next control cycle, x u is the final position control value of the end of the robot arm.

[0195] Step S652, controlling the operation of the robotic arm according to the control amount of the robotic arm.

[0196] The method of detecting the joint torque by means of the joint current in the present invention can also be replaced by using a joint torque sensor to detect the value of the joint torque.

[0197] In the above technical solution, when the end of the robotic arm and all joints are within the range of the virtual wall, the robotic arm is controlled only based on the real control force, that is, a single control module; when the end of the robotic arm or any joint is outside the range of the virtual wall, the robotic arm is controlled by combining the real control force and the virtual control force, that is, a combined control module.

[0198] Accordingly, please refer to Figure 7 A second aspect of an embodiment of the present invention provides a robot arm control device based on a virtual wall, comprising:

[0199] Position determination module 1, which is used to determine whether the end of the robot arm and each joint are within the range of the virtual wall based on the type of the virtual wall;

[0200] The first control module 2 is used to obtain the real control force of the end of the robotic arm based on the type of the robotic arm controller if the end of the robotic arm and each joint are within the range of the virtual wall, and control the operation of the robotic arm according to the real control force;

[0201] The second control module 3 is used to obtain the real control force of the end of the robotic arm or the corresponding joint based on the type of robotic arm controller, and obtain the virtual control force of the end of the robotic arm or the corresponding joint if any of the end of the robotic arm and any of the joints are outside the range of the virtual wall, and control the operation of the robotic arm according to the real control force and the virtual control force.

[0202] Each module in the above-mentioned virtual wall-based robotic arm control device can also be subdivided into corresponding units, and each unit can be used to execute the corresponding detailed steps in the virtual wall-based robotic arm control method, which will not be repeated here.

[0203] Correspondingly, a third aspect of an embodiment of the present invention provides a robot, which controls its robotic arm based on any of the above-mentioned virtual wall-based robotic arm control methods.

[0204] Accordingly, a fourth aspect of an embodiment of the present invention provides an electronic device, comprising: at least one processor; and a memory connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor executes any of the above-mentioned virtual wall-based robotic arm control methods.

[0205] Correspondingly, a fifth aspect of an embodiment of the present invention provides a computer-readable storage medium having computer instructions stored thereon, which, when executed by a processor, implement any of the above-mentioned virtual wall-based robotic arm control methods.

[0206] The embodiment of the present invention aims to protect a robot control method, device and robot based on a virtual wall. The control method includes the following steps: based on the type of virtual wall, determine whether the end of the robot and each joint are within the range of the virtual wall; if the end of the robot and each joint are within the range of the virtual wall, then obtain the real control force of the end of the robot based on the type of robot controller, and control the operation of the robot according to the real control force; if the end of the robot and each joint are outside the range of the virtual wall, then obtain the real control force of the end of the robot or the corresponding joint based on the type of robot controller, and obtain the virtual control force of the end of the robot or the corresponding joint, and control the operation of the robot according to the real control force and the virtual control force. The above technical solution has the following effects:

[0207] By incorporating each joint of the robotic arm into Cartesian space constraints, the problem of endangering personal safety caused by the robotic arm joints exceeding the virtual wall boundaries is solved; the adaptability to the application scenarios of the robotic arm is also improved through a variety of virtual wall types; the corresponding joints of the robotic arm participating in the virtual wall control are judged based on the corresponding geometric parameters of the virtual wall type, without the need for all joints of the robotic arm to participate in the calculation process, effectively reducing the computing resource consumption of the robotic arm.

[0208] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0209] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0210] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0211] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0212] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A robotic arm control method based on virtual wall, It is characterized in that The steps include: Based on the type of virtual wall, determine whether the end of the robot arm and each joint are within the range of the virtual wall; If the end of the robotic arm and all joints are within the range of the virtual wall, the real control force of the end of the robotic arm is obtained based on the type of the robotic arm controller, and the operation of the robotic arm is controlled according to the real control force; If any of the end of the robotic arm and any of its joints are outside the range of the virtual wall, the real control force of the end of the robotic arm or the corresponding joint is obtained based on the type of the robotic arm controller, and the virtual control force of the end of the robotic arm or the corresponding joint is obtained, and the operation of the robotic arm is controlled according to the real control force and the virtual control force.

2. The robot arm control method based on virtual wall according to claim 1, It is characterized in that The determining whether the end of the robot arm and each joint are located within the range of the virtual wall includes: Obtaining Cartesian spatial position data of the end of the robotic arm and each joint; Based on the Cartesian spatial position data, determining in sequence from the end of the robotic arm to the base of the robotic arm whether the end of the robotic arm or the joint is within the range of the virtual wall; If not, obtaining the virtual control force based on the Cartesian spatial position data of the end or joint of the robotic arm; If so, it is determined in sequence from the end of the robotic arm to the base of the robotic arm whether the next joint is located within the range of the virtual wall.

3. The method for controlling a robotic arm based on a virtual wall according to claim 2, It is characterized in that The determining whether the end or joint of the robotic arm is located within the range of the virtual wall in sequence from the end of the robotic arm to the base of the robotic arm includes: Obtaining the center point coordinates of the virtual wall; Obtaining the joint angles of each joint of the robotic arm through inverse kinematics; Based on the joint angles, the Cartesian space coordinate values ​​of the envelope corresponding to the end of the robotic arm and each joint are calculated by forward kinematics; In combination with the center point coordinates of the virtual wall, it is determined based on the Cartesian space coordinate values ​​whether the corresponding envelope of the end of the robotic arm or the joint is within the range of the virtual wall.

4. The method for controlling a robotic arm based on a virtual wall according to claim 1, It is characterized in that The obtaining of the virtual control force of the end of the robotic arm or the corresponding joint includes: Obtaining the linear velocity of the end of the robotic arm or the corresponding joint in Cartesian space; Obtaining the distance between the end of the robotic arm or the corresponding joint and the virtual wall; Calculating a virtual force of the end of the robotic arm or a corresponding joint based on the linear velocity and the distance value; The virtual control force of the end of the robot arm or the corresponding joint is calculated based on the virtual force.

5. The method for controlling a robotic arm based on a virtual wall according to claim 4, It is characterized in that The types of the virtual wall include: a cuboid, a sphere, a cylinder or a cone; The coordinates of the center point of the virtual wall are the coordinates of the robot base coordinate system or the coordinates of the Cartesian coordinate system of the robot end.

6. The method for controlling a robotic arm based on a virtual wall according to claim 5, It is characterized in that Before judging whether the end of the robot arm and each joint are located within the range of the virtual wall based on the type of the virtual wall, the method further includes: Obtaining the type and geometric parameters of the virtual wall; Envelopes of different sizes are used to envelop the end of the robot arm and each joint, and the size of the envelope is positively correlated with the size of the joint or the size of the tool at the end of the robot arm.

7. The method for controlling a robotic arm based on a virtual wall according to claim 6, It is characterized in that When the virtual wall is a sphere, the virtual force F Agenti The calculation formula is: Among them, Agent i is the envelope that envelops the end of the i-th robotic arm and each joint, is the Cartesian space linear velocity of the end or joint of the robot arm, is the distance between the end or joint of the robot arm and the virtual wall, K virtual is the virtual stiffness coefficient, B virtual is the virtual damping coefficient; When the virtual wall is a cuboid, the virtual force The calculation formula is: Among them, Agent i is the envelope that envelops the end of the i-th robotic arm and each joint, is the Cartesian space linear velocity of the end or joint of the robot arm, is the distance between the end or joint of the robot arm and the virtual wall, K virtual is the virtual stiffness coefficient, B virtual is the virtual damping coefficient.

8. The method for controlling a robotic arm based on a virtual wall according to claim 6, It is characterized in that When the joint torque of the robot arm is detected based on the joint current of the robot arm, the virtual control force F virtual The calculation formula is: J(θ)=[J 1 ,J 2 ,J 3 ,J 4 ,J 5 ,J 6 ]; in, is the virtual joint torque of the robot joint 1 to joint 6, J(θ) is the Agent i The corresponding Jacobian matrix, θ is the joint angle of the robot arm, and are the values ​​of the virtual force in the Cartesian space coordinate system, Agent i is an envelope that envelops the end of the i-th robotic arm and each joint; When the multi-dimensional force sensor at the end of the robot arm detects the joint torque of the robot arm, the virtual control force F virtual The calculation formula is: Among them, Agent i is the envelope that envelops the end of the i-th robotic arm and each joint, and are respectively the values ​​of the virtual force in the Cartesian space coordinate system.

9. The method for controlling a robotic arm based on a virtual wall according to any one of claims 1 to 8, It is characterized in that The obtaining of the real control force of the end of the robotic arm or the corresponding joint based on the type of the robotic arm controller includes: When the joint torque of the robot arm is detected based on the joint current of the robot arm, the calculation formula of the real control force is: F real =τ(t)=k m i(t); Where, τ(t) is the joint output torque, i(t) is the joint feedback current, k m is the torque constant of the robot arm; When the mechanical arm joint torque is detected based on the multi-dimensional force sensor at the end of the mechanical arm, the calculation formula of the real control force is: in, represents the position of the six-dimensional force sensor coordinate system relative to the Cartesian coordinate system, F S It represents the environmental contact force of the six-dimensional force sensor after gravity compensation in the six-dimensional force sensor coordinate system.

10. The method for controlling a robotic arm based on a virtual wall according to claim 9, It is characterized in that The controlling the operation of the robotic arm according to the real manipulation force comprises: Calculating the control amount of the robotic arm based on the real control force; Controlling the operation of the robotic arm according to the control amount of the robotic arm; When the joint torque of the robotic arm is detected based on the joint current of the robotic arm, the calculation formula of the control amount of the robotic arm is: in, is the inertia term, M(θ) is the inertia matrix of the manipulator, is the centrifugal force and the Coriolis force term, is the centrifugal force and Coriolis force matrix, g(θ) is the gravity term, is the friction force of the robot joint, τ ext The external torque that the robot bears, F real For real control power; When the mechanical arm joint torque is detected based on the multi-dimensional force sensor at the end of the mechanical arm, the calculation formula of the control amount of the mechanical arm is: x e =x-x 0 ; x u =x 0 +x e (t+1); Among them, M d is the diagonal matrix of stiffness coefficients, B d is the diagonal matrix of damping coefficients, K d is the diagonal matrix of inertia coefficients, x e is the actual position x of the end of the robot arm and the expected position x of the end of the robot arm 0 The difference, x e (t+1) is the corrected posture deviation of the end of the manipulator expected in the next control cycle, x u is the final position control value of the end of the robot arm.

11. The method for controlling a robotic arm based on a virtual wall according to claim 9, It is characterized in that The controlling the operation of the robotic arm according to the real control force and the virtual control force comprises: Calculating a control amount of the robotic arm based on the real control force and the virtual control force; Controlling the operation of the robotic arm according to the control amount of the robotic arm; When the joint torque of the robotic arm is detected based on the joint current of the robotic arm, the calculation formula of the control amount of the robotic arm is: in, is the inertia term, M(θ) is the inertia matrix of the manipulator, is the centrifugal force and the Coriolis force term, is the centrifugal force and Coriolis force matrix, g(θ) is the gravity term, is the friction force of the robot joint, τ ext The external torque that the robot bears, F real F is the real control force. virtual For virtual control power; When the mechanical arm joint torque is detected based on the multi-dimensional force sensor at the end of the mechanical arm, the calculation formula of the control amount of the mechanical arm is: x e =x-x 0 ; x u =x 0 +x e (t+1); Among them, M d is the diagonal matrix of stiffness coefficients, is the difference between the actual acceleration of the end of the robot and the expected acceleration of the end of the robot, B d is the diagonal matrix of damping coefficients, K is the difference between the actual speed of the end of the robot and the expected speed of the end of the robot, d is the diagonal matrix of inertia coefficients, x e is the actual position x of the end of the robot arm and the expected position x of the end of the robot arm 0 The difference, x e (t+1) is the corrected posture deviation of the end of the manipulator expected in the next control cycle, x u is the final position control value of the end of the robot arm.

12. A robotic arm control device based on a virtual wall, It is characterized in that include: A position determination module, which is used to determine whether the end of the robot arm and each joint are within the range of the virtual wall based on the type of the virtual wall; A first control module, which is used to obtain the real control force of the end of the robotic arm based on the type of the robotic arm controller if the end of the robotic arm and each joint are within the range of the virtual wall, and control the operation of the robotic arm according to the real control force; The second control module is used to obtain the real control force of the end of the robotic arm or the corresponding joint based on the type of robotic arm controller, and obtain the virtual control force of the end of the robotic arm or the corresponding joint if any of the end of the robotic arm and any of the joints are outside the range of the virtual wall, and control the operation of the robotic arm according to the real control force and the virtual control force.

13. A robot, It is characterized in that The robotic arm is controlled based on the virtual wall-based robotic arm control method as described in any one of claims 1-11.

14. An electronic device, It is characterized in that include: at least one processor; And a memory connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor executes the virtual wall-based robotic arm control method as described in any one of claims 1-11.

Citation Information

Patent Citations

  • Medical system, control device for medical support arm, and control method for medical support arm

    CN110678142A

  • Method for constructing variable stiffness virtual wall of man-machine collaborative robot

    CN117359646A

  • Virtual safety wall constraint method and device for joint replacement surgical robot

    CN117671215A

  • Method For Operating A Medical Robot, Medical Robot, And Medical Work Place

    US20110190790A1