Tandem robot, inverse kinematics solving method thereof, related medium and equipment
Through the whole-body optimal control strategy and the sequential convex optimization iteration method, the problem of low adaptability of the inverse kinematics solution algorithm to robots of any configuration and failure to consider joint limits in the existing technology is solved, and the problem of robots with any degree of freedom is realized. Efficient and precise inverse kinematics control.
Patent Information
- Application Number
- CN202410705494.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-05-31
AI Technical Summary
The existing inverse kinematics solution algorithm has low adaptability to serial robots of any configuration, and fails to effectively consider physical constraints such as joint limits, which may cause joint angles to exceed the actual mechanical limits.
The whole-body optimal control strategy is used to transform the inverse kinematics problem into a constrained optimization problem. Through differential inverse kinematics calculation and sequential convex optimization iteration, the solution process is optimized to ensure that the joint angles are within the actual mechanical limits, and is suitable for any A tandem robot with degrees of freedom.
It realizes the inverse kinematics solution of any configuration of serial robots, ensures that joint angles are feasible in actual operation, reduces joint limit exceeding situations, improves solution efficiency and accuracy, and enhances the safety and reliability of robot operation.
Smart Images

Figure CN118636129A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of serial robots and differential inverse kinematics, and in particular to serial robots and inverse kinematics solution methods, computer-readable storage media, and computer devices. Background Art
[0002] At present, inverse kinematics solution algorithms include analytical methods and iterative methods. The analytical method has requirements for robot modeling, that is, it must meet the piper criterion. If the three adjacent joint axes of the robot intersect at one point, or the three axes are parallel, the inverse kinematics solution of the robot can obtain a closed solution. This method has low adaptability, and different closed solutions need to be derived for different models that meet the piper criterion. Iterative methods such as the Newton iteration method are suitable for serial robots of any configuration, but they do not consider physical constraints such as joint limits, which may cause the solved joint angles to exceed the actual mechanical limits.
[0003] Based on this, the present application provides a serial robot and its inverse kinematics solution method, a computer-readable storage medium and a computer device to improve the relevant technology. Summary of the invention
[0004] The purpose of the present application is to provide a serial robot and its inverse kinematics solution method, a computer-readable storage medium and a computer device, which are applicable to serial robots of any configuration, and whose optimization solution process takes into account physical constraints, and the joint angle obtained by the solution will not exceed the actual mechanical limit.
[0005] The purpose of this application is achieved by the following technical solutions:
[0006] In a first aspect, the present application provides a method for solving inverse kinematics of a serial robot, the method comprising:
[0007] Calculating the current position and posture of the robot end according to the current joint angle of the serial robot;
[0008] When the posture error between the current posture and the target posture is not less than the target error, differential inverse kinematics calculation is performed to obtain the joint velocity, and based on the target physical constraints, optimization is performed to obtain the optimal joint velocity;
[0009] Integrate the optimal joint velocity to the current joint angle to update the current joint angle until the posture error between the current posture calculated based on the current joint angle and the target posture is less than the target error or exceeds the target number of iterations;
[0010] Based on the current joint angle after the iteration is completed, the serial robot is motion controlled.
[0011] In some embodiments, the current posture of the robot end is calculated according to the current joint angle of the serial robot, including:
[0012] Receiving a kinematic model of the serial robot, wherein the kinematic model is used to define a joint configuration space and a joint velocity;
[0013] According to the current joint angles of the serial robot and the kinematic model, forward kinematics calculation is performed to obtain the current posture.
[0014] In some embodiments, the posture error is represented by an error spinor.
[0015] In some embodiments, the optimization solution based on the target physical constraint condition to obtain the optimal joint speed includes:
[0016] Under the condition of satisfying the target physical constraint condition, the joint velocity is used as the optimization variable of the optimization objective function, and the optimal joint velocity that minimizes the optimization objective function is calculated, wherein the optimization objective function includes the posture task optimization item corresponding to the posture task, and the posture task optimization item is based on and e determined;
[0017] in, V is the six-dimensional space velocity, J(q) is the Jacobian matrix, q is the joint angle, is the joint velocity, and e is the error rotation.
[0018] In some embodiments, the target physical constraints include one or more of joint velocity constraints, joint angle constraints, and joint acceleration constraints.
[0019] In some embodiments, the target physical constraint condition includes a joint speed constraint condition, a joint angle constraint condition, and a joint acceleration constraint condition. When the target physical constraint condition is satisfied, taking the joint speed as an optimization variable of the optimization objective function, calculating the optimal joint speed that minimizes the optimization objective function includes:
[0020] Performing a first-order approximation on the target physical constraint condition, thereby expressing the joint angle and joint acceleration in the optimization objective function into an expression containing joint velocity based on the step size;
[0021] The joint velocity and the current joint angle actually measured are used as input, the joint velocity is used as the optimization variable, and the target quadratic programming solver is used to calculate the optimal joint velocity that minimizes the optimization objective function.
[0022] In some embodiments, integrating the optimal joint velocity into the current joint angle to update the current joint angle includes:
[0023] At optimal joint speed As an increment, the optimal joint velocity Add to the current joint angle to update the current joint angle.
[0024] In some embodiments, for a serial robot with redundant degrees of freedom, the optimization objective function also includes secondary task optimization items corresponding to secondary tasks other than posture tasks, so that the null space projection method is adopted to incorporate secondary tasks other than posture tasks into the optimization objective function to ensure that there is a globally unique optimal solution.
[0025] In a second aspect, the present application provides a serial robot, which includes a control module, and the control module is used to execute any one of the above methods.
[0026] In a third aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program implements any of the above methods when executed by a processor.
[0027] In a fourth aspect, the present application provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements any one of the above methods when executing the computer program.
[0028] The present application provides a serial robot and its inverse kinematics solution method, a computer-readable storage medium and a computer device. The above embodiment converts the inverse kinematics problem into a constrained optimization problem through a whole-body optimal control strategy, has strong versatility, and is applicable to serial robots with any degree of freedom. By incorporating physical constraints such as joint limits into the optimization solution, it is ensured that the calculated joint angles are feasible in actual operation, and the situation of exceeding the joint limits is reduced. In addition, the method, for example, adopts optimization methods such as sequential convex optimization iteration, which can solve the inverse kinematics problem at the microsecond level, improving the solution efficiency and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The present application is further described below in conjunction with the accompanying drawings and specific implementation methods.
[0030] Figure 1 It is a flow chart of an inverse kinematics solution method for a serial robot provided in an embodiment of the present application.
[0031] Figure 2 It is a flow chart of another inverse kinematics solution method for a serial robot provided in an embodiment of the present application.
[0032] Figure 3It is a structural block diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0033] The following will be combined with the drawings in this application to clearly and completely describe the technical solutions in the implementation mode of this application. Obviously, the described implementation mode is only a part of the implementation mode of this application, not all the implementation modes. Based on the implementation mode in this application, all other implementation modes obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0034] In the description of the embodiments of the present application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0035] The present application adopts the method of whole-body optimal control, and provides a method for optimizing and solving inverse kinematics for a multi-joint serial robot using the whole-body degrees of freedom. Through the whole-body optimal control strategy, the inverse kinematics problem is converted into an optimization problem with constraints, which has strong versatility and is suitable for serial robots with any degrees of freedom to solve inverse kinematics when performing work tasks. Since the joint limit constraints are taken into consideration, the solved result must satisfy the joint limit, and is suitable for serial multi-joint robots of any configuration. In other words, by incorporating physical constraints such as joint limits into the optimization solution, it is ensured that the calculated joint angles are feasible in actual operation, and the situation of exceeding the joint limits is reduced. In addition, the present application, for example, adopts optimization methods such as sequential convex optimization iteration methods, which can solve inverse kinematics problems at the microsecond level, thereby improving the solution efficiency and accuracy.
[0036] The implementation methods of the present application will be described in detail below.
[0037] See also Figure 1 , Figure 1 It is a flow chart of an inverse kinematics solution method for a serial robot provided in an embodiment of the present application.
[0038] In order to improve the relevant technology, an embodiment of the present application provides an inverse kinematics solution method for a serial robot, and the method includes steps S101 to S104.
[0039] Step S101: Calculate the current position and posture of the robot end according to the current joint angle of the serial robot.
[0040] Step S102: When the posture error between the current posture and the target posture is not less than the target error, differential inverse kinematics calculation is performed to obtain the joint velocity, and optimization is performed based on the target physical constraints to obtain the optimal joint velocity.
[0041] Step S103: Integrate the optimal joint velocity to the current joint angle to update the current joint angle until the posture error between the current posture calculated based on the current joint angle and the target posture is less than the target error or exceeds the target number of iterations.
[0042] Step S104: Based on the current joint angle after the iteration is completed, the serial robot is motion controlled.
[0043] Among them, the serial robot is a multi-degree-of-freedom robot, which is composed of multiple joints and connecting rods in series, and can be applied to industrial automation, medical care, services and other fields. For example, a serial robot can be a robot, a robotic arm or an industrial automation equipment with multiple joints and joints connected in series. The robot can be, for example, a bipedal robot, a quadruped robot, a wheeled robot, etc. As an example, each joint corresponds to one degree of freedom. Forward kinematics refers to calculating the position and posture of the robot end (effector) according to the joint angles of each joint of the robot. Inverse kinematics refers to calculating the joint angles of each joint according to the desired position and posture of the robot end (effector). The inverse kinematics solution method is a method of calculating the angles of each joint by giving the target position and posture of the robot end. The current position and posture are the position and posture of the robot end (effector) obtained by forward kinematics calculation of the current joint angle (which is a calculated value, not necessarily an actual measurement result). The joint angle refers to the specific angle or displacement of each joint of the robot at a certain moment. The target position and posture refer to the position and posture that the robot end (effector) is expected to reach. The posture error is used to describe the difference between the current posture and the target posture, for example, it is expressed by position error and posture error, and is used to measure the degree of deviation between the current (calculated) state of the robot and the target state. Physical constraints refer to the robot's joint limits (corresponding to joint positions, or joint angles), joint velocities, joint accelerations and other constraints to ensure that the solution is feasible under actual physical conditions. In this paper, the joint velocity can be calculated based on the current posture and the target posture by differential inverse kinematics, and the optimal joint velocity is obtained by optimization. The optimal joint velocity is then integrated into the current joint angle to achieve the update of the current joint angle, thereby achieving the update of the current posture, and iterative calculation is performed based on the difference between the current posture and the target posture. The optimal joint velocity refers to the optimal solution obtained by the optimization method under physical constraints, such as the joint velocity that minimizes the optimization objective function. The target number of iterations can be, for example, 3, 10, 50, 100, 1000, etc.
[0044] The above embodiment provides an inverse kinematics solution method for a serial robot, the core of which is to achieve precise control of the robot's terminal posture through optimization solution technology. First, according to the current joint angle, the current posture of the robot's terminal is calculated using a forward kinematics model. Forward kinematics describes the mapping relationship from the joint space to the workspace (i.e., the terminal posture), which is the basis for inverse kinematics solution. Next, the posture error between the current posture and the target posture is calculated. When the posture error is not less than the specified threshold (i.e., the target error), it means that the current robot terminal posture has not yet reached the target and needs to be adjusted. Then, the posture error is converted into an optimization problem through the differential inverse kinematics method. Taking into account the physical constraints such as joint limit, speed, acceleration, etc., an optimization method such as a sequential convex optimization iteration method is used to solve the optimal joint speed. By solving the optimal joint speed to gradually approach the target posture, it has high solution efficiency and accuracy. Afterwards, the optimal joint speed obtained is integrated to the current joint angle to update the current joint angle. The role of this step is to gradually adjust the angles of each joint of the robot according to the results of the optimization solution so that it approaches the target posture. The integral operation ensures the continuity and smoothness of the joint angles and reduces drastic angle changes. Repeat the above steps, recalculate the current posture (after the current joint angle is updated, the current posture calculated based on the current joint angle will also change) and evaluate the posture error until the posture error is less than the target error or the maximum number of iterations is reached. Through multiple iterations, the robot's terminal posture gradually approaches the target posture, and ultimately achieves precise control. Afterwards, based on the current joint angle after the iteration, the serial robot is motion controlled to ensure that the robot completes the task according to the predetermined trajectory and posture.
[0045] The above embodiment is applicable to serial robots with any degree of freedom, without making specific assumptions or simplifications on the robot model. Compared with the relevant analytical methods, the above inverse kinematics solution method is applicable to robots of various configurations and has a wider range of applications. In the optimization solution process, the physical constraints such as the limit, speed, acceleration of the robot joints are fully considered to ensure that the calculated joint angle is feasible in actual operation, reduce the problem of joint overrun, and improve the safety and reliability of robot operation. Taking into account the physical constraints such as joint angle, joint speed, and joint acceleration, the solved joint angle must not exceed the joint limit, and it will not be like the related closed solution, which may solve the solution exceeding the joint limit. The optimization solution is performed by using methods such as sequential convex optimization iterative method, which can efficiently solve the inverse kinematics problem within microseconds. The target posture is gradually approached by iterative solution, ensuring the accuracy of the solution result. In addition, the integral operation ensures the smooth transition of the joint angle, reduces the drastic angle change, and improves the stability of the robot movement. The optimal joint velocity is integrated into the current joint angle to update the current joint angle, so that each step of adjustment can effectively reduce the posture error and gradually approach the target posture. This process ensures the consistency and effectiveness of the joint angle adjustment and improves the convergence speed and stability of the solution. In addition, in the application of redundant degree of freedom manipulators, the null space projection method can be used to simultaneously process secondary tasks (such as reference joint configuration) based on the main task (the posture task at the end of the robot). This feature enhances the flexibility and adaptability of the robot in complex tasks. In other words, it is easy to expand and introduce other constraints and other task goals beyond the constraints, and can make full use of all degrees of freedom of the robot. In addition to meeting the end posture task constraints, reference joint configurations, operability metrics, etc. can also be considered.
[0046] In some embodiments, the current posture of the robot end is calculated based on the current joint angle of the serial robot (i.e., step S101), which may include: receiving a kinematic model of the serial robot, wherein the kinematic model is used to define the joint configuration space and joint speed; performing forward kinematic calculations based on the current joint angle of the serial robot and the kinematic model to obtain the current posture.
[0047] In the above embodiment, first, a kinematic model of a serial robot is received, which defines the joint configuration space and joint velocity. Based on the current joint angle, the current position and posture of the robot end are obtained by forward kinematics calculation. Forward kinematics calculation provides a mapping relationship from joint angle to robot end position and posture, which is the basis for inverse kinematics solution. The above embodiment improves the efficiency of inverse kinematics solution and meets the needs of real-time control of the robot by combining forward kinematics calculation and numerical iterative calculation based on differential inverse kinematics.
[0048] As an example, a serial robot is established as a kinematic model of joints and links. In the kinematic model, the joint configuration space is as follows:
[0049]
[0050] Among them, q1, q2, …, q n are the joint angles corresponding to the joints numbered 1, 2, ..., n. The joint speeds are expressed as Forward kinematics is to obtain the robot's end position p(q) based on the joint configuration space, and inverse kinematics is to obtain the corresponding joint configuration space when the desired end position is known.
[0051] Next, define the task. The task may include posture tasks and tasks other than posture tasks. The posture task will be explained first. The posture task may include position tasks and attitude tasks. The posture error may be determined based on the position error and attitude error.
[0052] The target equation corresponding to the position error corresponding to the position task can be defined as follows:
[0053] e(q)=p * ―p(q)
[0054] Among them, p * is the target position of the robot end, p(q) is the current position of the robot end based on positive kinematics, and when e(q) is zero, the end Cartesian position task is considered to be completed, as shown below:
[0055] p(q)=p *
[0056] q=p ―1 (p * )
[0057] Among them, p ―1 is the inverse kinematics of position.
[0058] The objective equation corresponding to the posture error corresponding to the posture task can be defined as follows:
[0059]
[0060] e(q)=log(R * R(q) ―1 )
[0061] Among them, R * is the target posture of the robot end, R(q) is the current posture of the robot end based on forward kinematics, and when e(q) is zero, the Cartesian posture task of the end is completed. The inverse kinematics of posture is similar to the inverse kinematics of position, so it will not be repeated here.
[0062] Combining the position task and the posture task, for the Cartesian space posture multi-task, the target equation corresponding to the posture task can be expressed by the following equation system:
[0063]
[0064] As an example, the Jacobian matrix can be used to relate joint velocities to space velocities as follows:
[0065]
[0066] Among them, V is, for example, the six-dimensional space velocity, which can be considered as the deviation velocity corresponding to the target posture of the robot end, and J(q) is the Jacobian matrix. For a redundant degree of freedom robot, such as a 7-degree-of-freedom manipulator,
[0067] When the number of joint degrees of freedom is greater than the expected joint velocity dimension, the Moore-Penrose pseudo-inverse (i.e., Moore-Penrose generalized inverse) calculation can be performed to obtain the joint velocity. The corresponding angle change is:
[0068] e(q)=J(q) + δq
[0069] The superscript + in the upper right corner is the pseudo-inverse symbol, J(q) + is the pseudo-inverse of the Jacobian matrix J(q).
[0070] In some embodiments, the posture error can be represented by an error spinor.
[0071] The above embodiment converts the posture error between the target posture and the current posture into an error twist, that is, the difference between the target posture and the current posture is expressed in the form of a twist. Specifically, the difference between the target posture and the current posture (including the difference in position and attitude) can be converted into a six-dimensional vector, which is described as the instantaneous motion required for the robot end to move from the current posture to the target posture. Among them, the posture includes position and attitude, the position can be represented by a three-dimensional vector, and the attitude can be represented by a rotation matrix, a quaternion or an Euler angle. The twist is, for example, a six-dimensional vector, in which the first three components represent angular velocity and the last three components represent linear velocity.
[0072] Related numerical iteration methods based on differential inverse kinematics, such as the Newton iteration method, are numerical solutions to inverse kinematics. However, when the Jacobian J(q) is in the singular interval, the joint velocity obtained will be very large, and it is difficult to satisfy the physical constraints of real robots such as joint velocity, joint acceleration, and torque constraints. By using a solution method based on whole-body optimal control, the above constraints can be added to the constraint conditions.
[0073] In some embodiments, in step S102, the optimization solution based on the target physical constraint condition to obtain the optimal joint speed may include: taking the joint speed as the optimization variable of the optimization objective function under the condition of satisfying the target physical constraint condition, calculating the optimal joint speed that minimizes the optimization objective function, wherein the optimization objective function includes the posture task optimization item corresponding to the posture task, and the posture task optimization item is based on and e are determined; among them, V is the six-dimensional space velocity, J(q) is the Jacobian matrix, q is the joint angle, is the joint velocity, and e is the error rotation.
[0074] In some embodiments, the target physical constraint may include one or more of a joint velocity constraint, a joint angle constraint, and a joint acceleration constraint.
[0075] In some embodiments, the target physical constraint condition may include a joint speed constraint condition, a joint angle constraint condition, and a joint acceleration constraint condition. When the target physical constraint condition is satisfied, taking the joint speed as the optimization variable of the optimization objective function, calculating the optimal joint speed that minimizes the optimization objective function may include:
[0076] Performing a first-order approximation on the target physical constraint condition, thereby expressing the joint angle and joint acceleration in the optimization objective function into an expression containing joint velocity based on the step size;
[0077] The joint velocity and the current joint angle actually measured are used as input, the joint velocity is used as the optimization variable, and the target quadratic programming solver is used to calculate the optimal joint velocity that minimizes the optimization objective function.
[0078] In some embodiments, the expression of the pose task optimization term in the optimization objective function is as follows:
[0079]
[0080] For The differential kinematics of , the pseudo-inverse is the optimal solution of the above least squares optimization problem.
[0081] in To optimize the variables, To find the optimal solution that minimizes the optimization objective function, there is a pseudo-inverse closed solution:
[0082]
[0083] If the six-dimensional pose of differential kinematics is considered as six separate tasks, the optimization objective function can be written in weighted least squares form as follows:
[0084]
[0085] Among them, the subscript i is the sequence number of the six separate tasks corresponding to the above six-dimensional pose, ω i is the weight of the i-th task. At this point, adding joint velocity constraints can be directly added to the optimization objective function as follows:
[0086]
[0087] That is, the objective equation corresponding to the joint velocity constraint condition is expressed by a set of inequality equations. The above formula is a weighted whole-body optimization. Compared with the pseudo-inverse solution method of unconstrained optimization, the optimization solution based on the above formula can solve the differential inverse kinematics problem under velocity constraints. Moreover, the above optimization problem is a convex quadratic optimization problem with linear constraints, and the specified solver can be used to solve the above problem. Among them, the solver is, for example, a quadratic programming solver, i.e., a QP solver.
[0088] In addition to the joint velocity constraints, joint angle constraints and joint acceleration constraints can also be added to the optimization objective function, namely:
[0089]
[0090] Where h is the step length, is the joint acceleration, is the actual joint velocity. That is, the objective equations corresponding to the joint angle constraints and joint acceleration constraints can also be expressed by a set of inequality equations. The above equation can be written in QP optimization form as follows:
[0091]
[0092] subject to constraints.
[0093] Where W is the weight matrix, J is the Jacobian matrix, {J(q) T WJ(q)} is the Hessian matrix, {―J T We} is the gradient vector.
[0094] The above embodiment performs a first-order approximation on each physical constraint condition and associates the optimization variable (i.e., joint velocity) with the joint angle and joint acceleration based on the step size h. The result of the calculation is used as input, using the joint velocity As the optimization variable, the QP solver is used for optimization. Among them, the Euler approximation of the position (i.e., the joint angle) and the first-order derivative of the acceleration can be expressed in the form of joint velocity.
[0095] For a redundant degree of freedom manipulator, such as a 7-degree-of-freedom manipulator, there are infinite solutions to solving the inverse kinematics. Other tasks except the target posture can be described in the objective function so that there is a globally unique optimal solution.
[0096] In some embodiments, for a serial robot with redundant degrees of freedom, the optimization objective function also includes secondary task optimization items corresponding to secondary tasks other than posture tasks, so that the null space projection method is adopted to incorporate secondary tasks other than posture tasks into the optimization objective function to ensure that there is a globally unique optimal solution.
[0097] In the above embodiment, the optimization objective function includes optimization items corresponding to other tasks in addition to the posture task optimization item. If the posture task is regarded as the main task (or the main task), other tasks can be regarded as secondary tasks.
[0098] The null space projection of the Jacobian matrix takes advantage of the null space characteristics so that the motion in the null space does not interfere with the main task. For differential kinematics, the main task is the target pose, and the null space can specify other tasks such as reference joint angles and maneuverability. Taking the reference joint angle as an example, the joint velocity at this time is It can be written as:
[0099]
[0100] Among them, K p is the proportional control parameter, q0 is the reference joint angle. The above proportional controller can make each joint of the robot reach the specified reference configuration.
[0101] Let N(q) be the null space of the Jacobian matrix. One of the solutions is n=(I―J + J), at this time, the movement in the null space does not affect the main task of the target posture, Set as the second task priority. Then the complete optimization objective function including the main task and the secondary task can be written as follows:
[0102]
[0103] subject to constraints.
[0104] Wherein, ∈ is the scalar weight coefficient of the second priority, and its value is, for example, 0.01, which can be selected as needed.
[0105] Write the above formula in QP optimization form, that is:
[0106]
[0107] subject to constraints.
[0108] Where H = J(q) T WJ(q)+∈N T N is the Hessian matrix, g = -J T We―∈*N T NK p (q0―q) is the gradient vector.
[0109] In some embodiments, integrating the optimal joint velocity into the current joint angle to update the current joint angle (ie, step S103) may include: integrating the optimal joint velocity into the current joint angle to update the current joint angle As an increment, the optimal joint velocity Add to the current joint angle to update the current joint angle.
[0110] See also Figure 2 , Figure 2 It is a flow chart of another inverse kinematics solution method for a serial robot provided in an embodiment of the present application.
[0111] The embodiment of the present application abstractly describes the robot inverse kinematics solution algorithm based on whole-body optimal control as a QP optimization problem at the velocity level. At this time, the inverse kinematics solution is approximated locally by differentials. For the global IK problem (i.e., inverse kinematics) at the position (i.e., joint angle) level, the SQP (sequential quadratic programming) concept can be used. The basic algorithm flow is as follows: Figure 2As shown. Given the desired posture (i.e., target posture) X_des, the current posture X_cur can be calculated based on the current joint angle q_cur. If the posture error X_err between the desired posture and the current posture is less than the specified threshold (i.e., target error) tol, such as 10e-6, the current joint angle q_cur is identified as the solution to the inverse kinematics problem. If the posture error X_err is greater than or equal to tol, the optimal joint velocity dq is obtained by optimization and then integrated to update the current joint angle q_cur. The number of iterations iter is increased by one. When the convergence threshold condition is met within the maximum number of iterations iter_max, the solution is successful, otherwise the solution fails. In the case of a solution failure, the optimal solution can be returned, such as the optimal joint velocity dq obtained in the most recent iteration.
[0112] The above embodiment provides a method for solving the inverse kinematics of a serial robot with arbitrary degrees of freedom considering joint limits. According to the target posture task of the robot end, the inverse kinematics solution of the robot is determined under the constraint of satisfying the joint limit, and for a redundant robot arm with seven degrees of freedom, under the premise of satisfying the high-priority target posture task of the robot end, it can perform low-priority tasks such as reference configuration in the null space. Since the above method is a numerical optimization method, it can be applied to serial robots with arbitrary configurations and arbitrary degrees of freedom, and its inverse kinematics problem can be solved for any serial configuration robot. The above method is a sequential convex optimization iterative method, which can solve the inverse kinematics problem at the microsecond level. The joint limit is regarded as a constraint, and the solved joint angle must not exceed the joint limit, and it will not solve the solution that exceeds the joint limit like the related closed solution. In addition, the above method makes full use of all the degrees of freedom of the robot. In addition to satisfying the posture task constraints of the end, it can also consider the reference joint configuration, operability measurement, etc. It is highly practical and can meet the diverse needs of users.
[0113] An embodiment of the present application also provides a serial robot, which includes a control module, and the control module is used to execute any one of the above methods.
[0114] In some embodiments, the serial robot may further include one or more sensors. The one or more sensors may include, for example, one or more of an angle encoder, a torque sensor, a current sensor, and a six-dimensional force sensor.
[0115] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any of the above methods is implemented.
[0116] An embodiment of the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, any of the above methods is implemented.
[0117] The computer program product may be a portable compact disk read-only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the computer program product of the present application is not limited thereto, and the computer program product may be any combination of one or more computer readable media.
[0118] An embodiment of the present application further provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements any of the above methods when executing the computer program.
[0119] See also Figure 3 , Figure 3 It is a structural block diagram of a computer device provided in an embodiment of the present application.
[0120] The embodiments of the present application do not limit the computer device, which may be, for example, a local computer device, a cloud computer device, a distributed computer device, etc.
[0121] The computer device may include: a memory 110, a processor 120, and a communication interface 130. The memory 110, the processor 120, and the communication interface 130 are connected via an internal connection path.
[0122] The memory 110 is used to store computer programs. In some implementations, the computer programs may include codes for implementing the methods of the embodiments of the present application.
[0123] The processor 120 is used to execute the computer program stored in the memory 110 to control the communication interface 130 to receive input data and information and output data such as operation results. In some implementations, when the solution of the embodiment of the present application is implemented by software or firmware, the computer program for implementing the solution of the embodiment of the present application can be stored in the processor 120 and executed by the processor 120.
[0124] The memory 110 may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electrically erasable programmable read-only memory (EEPROM) or a flash memory. The volatile memory may be a random access memory (RAM). It should be noted that the memory 110 described herein is intended to include, but is not limited to, any memory of these and other suitable types. As an example, the memory 110 includes a random access memory (RAM), a cache memory and a read-only memory (ROM). Among them, the memory 110 stores a computer program, and the computer program can be executed by the processor 120 so that the processor 120 implements the steps of any of the above methods.
[0125] The processor 120 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor 120 may be any conventional processor, etc.
[0126] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 120 or an instruction in the form of software. The method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in the processor 120 for execution. The software module can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 110, and the processor 120 reads the information in the memory 110 and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.
[0127] In some implementations, in addition to the hardware units described above, the computer device may also include software modules, where the software modules may be, for example, an operating system, a basic input output system (BIOS), application software, etc.
[0128] The operating system is used to manage the hardware and / or software resources of computer devices and is the core and cornerstone of computer devices. The operating system needs to handle basic tasks such as managing and configuring memory, determining the priority of system resource supply and demand, controlling input and output devices, operating networks, and managing file systems. In order to facilitate user operations, most operating systems will provide an operating interface for users to interact with the system.
[0129] BIOS is used to run hardware initialization during the power-on boot phase and provide runtime services for the operating system and application programs. In some implementations, BIOS can also monitor and display processor temperature and execute functions such as adjusting temperature protection strategies.
[0130] Application software is also called application program, which can be understood as software written for a specific application purpose of the user. It is one of the main categories of computer software. For example, application software can be a program used to achieve power control, temperature management, etc.
[0131] It should be understood that the specific examples in this specification are only intended to help those skilled in the art to better understand the implementation methods of the present application, rather than to limit the scope of protection of the present application.
[0132] It is understood that in the various implementations of this specification, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of this application.
[0133] It can be understood that the various implementation modes described in this specification can be implemented individually or in combination, and this application is not limited to this.
[0134] Unless otherwise specified, all technical and scientific terms used in this specification have the same meaning as those generally understood by those skilled in the art of the technical field of this specification. The terms used in this specification are only for the purpose of describing specific embodiments and are not intended to limit the scope of this specification. The term "and / or" used in this specification includes any and all combinations of one or more related listed items. The singular forms of "a", "above", and "the" used in this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0135] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this specification.
[0136] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of each embodiment described above can refer to the corresponding process in other embodiments and will not be repeated here.
[0137] In the several embodiments provided in this specification, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0138] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the technical solution of the present application.
[0139] In addition, each functional unit in each embodiment of the present specification may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0140] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this specification, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of this specification. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.
[0141] The above are only specific implementations of this specification, but the protection scope of this application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in this specification, which should be included in the protection scope of this specification. Therefore, the protection scope of this application should be based on the protection scope of the claims.
Claims
1. A method for solving inverse kinematics of a serial robot. It is characterized in that The method comprises: Calculating the current position and posture of the robot end according to the current joint angle of the serial robot; When the posture error between the current posture and the target posture is not less than the target error, differential inverse kinematics calculation is performed to obtain the joint velocity, and based on the target physical constraints, optimization is performed to obtain the optimal joint velocity; Integrate the optimal joint velocity to the current joint angle to update the current joint angle until the posture error between the current posture calculated based on the current joint angle and the target posture is less than the target error or exceeds the target number of iterations; Based on the current joint angle after the iteration is completed, the serial robot is motion controlled.
2. The inverse kinematics solution method of the serial robot according to claim 1, It is characterized in that The step of calculating the current position and posture of the robot end according to the current joint angle of the serial robot comprises: Receiving a kinematic model of the serial robot, wherein the kinematic model is used to define a joint configuration space and a joint velocity; According to the current joint angles of the serial robot and the kinematic model, forward kinematics calculation is performed to obtain the current posture.
3. The inverse kinematics solution method of the serial robot according to claim 1, It is characterized in that The posture error is expressed by an error screw.
4. The inverse kinematics solution method of a serial robot according to any one of claims 1 to 3, It is characterized in that The optimization solution is performed based on the target physical constraint conditions to obtain the optimal joint speed, including: Under the condition of satisfying the target physical constraint condition, the joint velocity is used as the optimization variable of the optimization objective function, and the optimal joint velocity that minimizes the optimization objective function is calculated, wherein the optimization objective function includes the posture task optimization item corresponding to the posture task, and the posture task optimization item is based on and e determined; in, V is the six-dimensional space velocity, J(q) is the Jacobian matrix, q is the joint angle, is the joint velocity, and e is the posture error.
5. The inverse kinematics solution method of the serial robot according to claim 4, It is characterized in that The target physical constraint condition includes one or more of a joint velocity constraint condition, a joint angle constraint condition and a joint acceleration constraint condition.
6. The inverse kinematics solution method of the serial robot according to claim 4, It is characterized in that The target physical constraint conditions include joint velocity constraint conditions, joint angle constraint conditions and joint acceleration constraint conditions. When the target physical constraint conditions are met, the joint velocity is used as an optimization variable of the optimization objective function to calculate the optimal joint velocity that minimizes the optimization objective function, including: Performing a first-order approximation on the target physical constraint condition, thereby expressing the joint angle and joint acceleration in the optimization objective function into an expression containing joint velocity based on the step size; The joint velocity and the current joint angle actually measured are used as input, the joint velocity is used as the optimization variable, and the target quadratic programming solver is used to calculate the optimal joint velocity that minimizes the optimization objective function.
7. The inverse kinematics solution method of the serial robot according to claim 4, It is characterized in that For a serial robot with redundant degrees of freedom, the optimization objective function also includes secondary task optimization items corresponding to secondary tasks other than the posture task, so that the null space projection method is adopted to incorporate the secondary tasks other than the posture task into the optimization objective function to ensure the existence of a globally unique optimal solution.
8. A serial robot, It is characterized in that The serial robot comprises a control module, and the control module is used to execute the method according to any one of claims 1 to 7.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
10. A computer device, It is characterized in that The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements any one of methods 1 to 7 when executing the computer program.
Citation Information
Patent Citations
Repetitive movement planning method for redundancy mechanical arm
CN106945041A
Movement control method of six-degree-of-freedom wrist offset type serial mechanical arm
CN108673509A
Manipulator servo control method, system and device based on screw theory
CN109483529A
Self motion method used for redundant manipulator
CN110076770A
Redundant robot trajectory planning method
CN110948482A
Cited By
Execution optimization method and device for agent expression simulation, equipment and medium
CN119830944A
Execution Optimization Method, Device, Equipment and Medium for Agent Expression Imitation
CN119830944B
Joint angle inverse solution method, device and equipment of redundant mechanical arm and medium
CN119974023A
Mechanical arm processing method, storage medium, electronic equipment and program product
CN120461421A
Mechanical arm control method and device, robot and storage medium
CN120552063A
