Track planning method and system for seven-degree-of-freedom redundant mechanical arm
Through forward kinematics and inverse kinematics models combined with the RRT* algorithm and cubic spline interpolation method, the problem of smooth trajectory planning of a seven-degree-of-freedom redundant manipulator in a narrow space is solved, and smooth, stable and efficient movement of the manipulator is achieved. , improving the accuracy and efficiency of trajectory planning.
Patent Information
- Application Number
- CN202410820949.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-08-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing technology is difficult to achieve smooth trajectory planning of a seven-degree-of-freedom redundant manipulator in a narrow space, resulting in unstable manipulator movement and reduced performance.
Using the forward kinematics and inverse kinematics models combined with the RRT* algorithm and cubic spline interpolation method, the transformation matrix from the base to the end posture is established through DH parameters, the joint rotation angle is solved, continuous trajectory planning and smoothing are performed, and smoothing is generated And optimized robot arm motion trajectory.
It reduces the oscillation phenomenon of the robotic arm, improves the stability and efficiency of movement, reduces energy consumption, is suitable for trajectory planning in complex environments, and improves the positioning accuracy and obstacle avoidance capabilities of the robotic arm.
Smart Images

Figure CN118559716A
Abstract
Description
Technical Field
[0001] The invention belongs to the field of motion control, and in particular relates to a trajectory planning method and system for a seven-degree-of-freedom redundant manipulator. Background Art
[0002] With the development of industrial automation and space technology, higher requirements are placed on the operational flexibility and functionality of robotic arms. Redundant robotic arms can provide more options and flexibility when performing complex tasks due to their redundant degrees of freedom. In space station teleoperation, underwater operations or other high-risk environments, redundant robotic arms can reduce dependence on manual operation, reduce operational risks, and improve system safety and reliability.
[0003] When planning the trajectory of a redundant manipulator, it is necessary to consider avoiding obstacles and singular positions of the manipulator to ensure the movement safety of the manipulator and avoid kinematic uncertainty. The trajectory planning of a redundant manipulator is not only to reach the target position, but also to consider multiple optimization goals such as energy consumption, movement time, and smoothness to improve the movement efficiency and performance of the manipulator. The inverse kinematics problem of a redundant manipulator usually has multiple solutions, which provides more possibilities for trajectory planning, but also increases the complexity of planning. Researchers need to deeply analyze the kinematic and dynamic characteristics of the manipulator to design an effective trajectory planning algorithm. In practical applications of redundant manipulators, such as docking of spacecraft, maintenance of large equipment, and precision assembly, the development of trajectory planning technology is of great significance to improving the accuracy and efficiency of operations. With the continuous advancement of technology, trajectory planning of redundant manipulators will continue to develop in the direction of intelligence, automation, and efficiency.
[0004] The existing technologies for redundant robot arm trajectory planning mainly include the following methods:
[0005] (1) Inverse kinematics method: The trajectory interpolation points of the robot arm are obtained through the inverse kinematics principle, and then the trajectory is interpolated using a polynomial to achieve trajectory planning of the robot arm.
[0006] (2) Improved particle swarm optimization method. The improved particle swarm algorithm is used to optimize the motion trajectory of the robot arm to achieve time-optimal trajectory planning. The improved PSO algorithm improves the global and local search capabilities of the algorithm through strategies such as chaotic sequence initialization, adaptive adjustment of inertia weights, and dynamic adjustment of learning factors.
[0007] (3) Multi-objective optimization method. In view of the non-unique configuration in the redundant robot arm trajectory planning process, a multi-objective optimization model is established to reduce indicators such as the robot arm motion amplitude, energy consumption and joint motion impact. In 2020, Song Cheng and Yuan Jie mentioned in a redundant robot arm multi-objective trajectory optimization method: Through the improved dual-mode hybrid differential evolution algorithm (DHDE), the robot arm motion trajectory is optimized and the numerical solution of the inverse kinematics solution is obtained.
[0008] (4) Configuration plane method. Wang Anqi, Wei Yanhui, Han Han and others mentioned in their study on redundant robot arm trajectory planning method based on configuration plane in 2018 and Yu Qiulei in their study on trajectory planning and tracking technology of seven-degree-of-freedom redundant robot arm in May 2024: Starting from the configuration plane, the spatial trajectory of the redundant robot is planned using spatial geometry methods. By comparing spatial vector guidance and obstacle avoidance paths, the spatially optimized path can be quickly found to realize the multi-objective trajectory planning method. This method does not depend on the specific working configuration of the robot arm and is suitable for redundant robot arms with more degrees of freedom.
[0009] (5) Method based on 3D point cloud scene reconstruction. Aiming at the trajectory planning problem of the collaborative operation of dual-arm robots in confined spaces, a complex constraint environment model based on 3D point cloud scene reconstruction is proposed. The safe operation and dexterous operation tasks are abstracted into mathematical constraints, and a dual-arm coordination optimization model is constructed to achieve autonomous collision avoidance and optimal dexterous operation of the dual-arm robot in complex confined spaces.
[0010] (6) Other evolutionary algorithms, such as genetic algorithms and differential evolution algorithms, are used to optimize the trajectory of the robot arm to reduce energy consumption, increase movement speed, and avoid joint limits.
[0011] (7) A* algorithm and other heuristic search algorithms. In some studies, the A* algorithm and other heuristic search algorithms are used for path planning of robotic arms to find the optimal path from the starting point to the end point.
[0012] These technologies have played an important role in improving the efficiency, accuracy and robustness of redundant robot arm trajectory planning. Each method has its specific application scenarios and advantages and disadvantages. Researchers usually choose the most appropriate trajectory planning technology according to the specific needs of the actual problem.
[0013] When redundant manipulators perform trajectory planning, the inverse kinematics problem is the first thing that needs to be solved. Since redundant manipulators have multiple degrees of freedom, the inverse kinematics problem usually has multiple solutions, which increases the complexity of selecting the appropriate joint configuration. In addition, redundant manipulators need to avoid singular configurations while avoiding obstacles, which will seriously affect the performance and safety of the manipulator. Finally, the smoothness of the path is also an issue that cannot be ignored when redundant manipulators perform trajectory planning. If the planned path is not smooth enough, it will cause the manipulator to jitter or jerk during operation, affecting its performance and life. Summary of the invention
[0014] The purpose of the present invention is to solve the problem that the redundant robotic arm in the prior art cannot perform smooth trajectory planning in a narrow space, and propose a trajectory planning method and system for a seven-degree-of-freedom redundant robotic arm.
[0015] In order to achieve the above object, the present invention adopts the following technical scheme:
[0016] A trajectory planning method for a seven-degree-of-freedom redundant robotic arm comprises the following steps:
[0017] Determine the DH parameters according to the local coordinate system of the seven-degree-of-freedom redundant manipulator, establish the forward kinematics model from the base to the end position through the DH parameters, solve the forward kinematics model from the base to the end position, and obtain the end position of the seven-degree-of-freedom redundant manipulator;
[0018] An inverse kinematics model is established through the end position of the seven-degree-of-freedom redundant manipulator, and the joint rotation angles of the seven-degree-of-freedom redundant manipulator are obtained by solving the inverse kinematics model;
[0019] The forward kinematics model, inverse kinematics model and RRT* algorithm are combined to carry out continuous trajectory planning for the seven-degree-of-freedom redundant manipulator. The cubic spline interpolation method is used to smooth the continuous trajectory of the seven-degree-of-freedom manipulator planned by the RRT* algorithm.
[0020] Furthermore, the transformation matrix between adjacent coordinate systems of the forward kinematic model from the base to the end pose is established through DH parameters as follows:
[0021]
[0022] Furthermore, the transformation matrix between adjacent coordinate systems is substituted into each joint multiplication to obtain the transformation matrix from the base to the end pose represented by the direction and position vectors, as shown in the following formula:
[0023]
[0024] Among them, n, o, a represent the unit vectors of the terminal coordinate system X, Y, Z relative to the base coordinate system, respectively, and p represents the position vector of the terminal coordinate system relative to the base coordinate system.
[0025] Furthermore, the joint rotation angles of the seven-DOF redundant manipulator are obtained by using the DH parameters and the transformation matrix from the base to the end position represented by the direction and position vectors, including θ1, θ2, θ3, θ4, θ5, θ6, and θ7, as shown below:
[0026]
[0027] θ2=0
[0028]
[0029] in,
[0030] Furthermore, the cubic spline interpolation method is used to smooth the continuous trajectory of the seven-degree-of-freedom robotic arm planned by the RRT* algorithm. Specifically, the acceleration formula of the trajectory curve based on the cubic spline function at each node is used, combined with the acceleration at both ends of a given interval and the trajectory curve equation based on the cubic spline function, to calculate the position, velocity and acceleration of the trajectory curve at any time in the interval, and obtain a smooth continuous trajectory of the end of the seven-degree-of-freedom redundant robotic arm, including the position, velocity and acceleration of each joint of the seven-degree-of-freedom redundant robotic arm during the movement.
[0031] Furthermore, the trajectory curve equation is shown as follows:
[0032] q i (t) = a0 + a1 (tt i )+a2(tt i ) 2 +a3(tt i ) 3
[0033] After segmenting the trajectory curve, the second-order derivatives of the first and last endpoints are used to represent the segment spline curve in the interpolation period. The trajectory curve based on the cubic spline function is represented as follows:
[0034]
[0035] The speed of the cubic spline function at both ends of the interpolation period is obtained by taking the first-order derivative of the trajectory curve based on the cubic spline function, as shown in the following formula:
[0036]
[0037] The acceleration of the cubic spline function at both ends of the interpolation period is obtained by taking the second-order derivative of the trajectory curve based on the cubic spline function, as shown in the following formula:
[0038]
[0039] Among them, [t i ,t i+1 ] is the interpolation period of the cubic spline interpolation method.
[0040] Furthermore, the acceleration formula of the trajectory curve at each node based on the cubic spline function is as follows:
[0041] Aω=b
[0042] ω=[ω1,ω2,…,ω n-2 ,ω n-1 ] T
[0043] Where A is a (n+1)×(n+1) tridiagonal matrix, ω is the node acceleration, and b is a vector whose elements are all known.
[0044] A trajectory planning system for a seven-degree-of-freedom redundant manipulator comprises a forward kinematics module, which is used to determine DH parameters according to a local coordinate system of the seven-degree-of-freedom redundant manipulator, establish a forward kinematics model from a base to an end position through the DH parameters, solve the forward kinematics model from the base to an end position, and obtain an end position of the seven-degree-of-freedom redundant manipulator;
[0045] The inverse kinematics module is used to establish an inverse kinematics model through the end position of the seven-degree-of-freedom redundant manipulator and solve the inverse kinematics model to obtain the joint rotation angle of the seven-degree-of-freedom redundant manipulator;
[0046] The trajectory planning module is used to combine the forward kinematics model, the inverse kinematics model and the RRT* algorithm to perform continuous trajectory planning for the seven-degree-of-freedom redundant manipulator, and uses the cubic spline interpolation method to smooth the continuous trajectory of the seven-degree-of-freedom manipulator planned by the RRT* algorithm.
[0047] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned trajectory planning method for a seven-degree-of-freedom redundant robotic arm when executing the computer program.
[0048] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the trajectory planning method of a seven-degree-of-freedom redundant robotic arm described above is implemented.
[0049] Compared with the prior art, the present invention has the following beneficial technical effects:
[0050] The present invention provides a trajectory planning method for a seven-degree-of-freedom redundant manipulator, which solves the seven-degree-of-freedom manipulator through forward kinematics and inverse kinematics; the continuous trajectory planning takes the smooth trajectory into consideration, thereby reducing the oscillation phenomenon of the manipulator.
[0051] Furthermore, in the robot trajectory planning, the combination of RRT* algorithm and cubic spline interpolation can finally obtain a smooth and optimized robot motion trajectory. The RRT* algorithm is an efficient algorithm for solving path planning problems. It can quickly find a feasible path from the starting point to the end point, and as the iteration proceeds, the path will become more and more optimized and tend to the optimal solution. However, the path generated by the RRT* algorithm may not be smooth enough in some cases, especially when the path needs to pass through a narrow space with complex geometry. Cubic spline interpolation is a commonly used mathematical tool for generating smooth curves. It can ensure that the curve is not only positionally continuous between given control points, but also the velocity of the first-order derivative and the acceleration of the second-order derivative are continuous. In the robot trajectory planning, this means that a trajectory can be generated that not only connects all the predetermined path points, but also has continuous velocity and acceleration, making the movement of the robot smoother and more natural.
[0052] Furthermore, the RRT* algorithm is combined with cubic spline interpolation to solve the following practical problems:
[0053] (1) The path generated by the RRT* algorithm is optimized through cubic spline interpolation to reduce the vibration and impact that may occur during the movement of the robot arm and improve the smoothness of the movement.
[0054] (2) The RRT* algorithm can find a near-optimal path, and combined with cubic spline interpolation, the path can be further optimized, thereby reducing the energy consumption of the robot during movement and improving movement efficiency.
[0055] (3) Compared with the direct use of high-order polynomials or other complex interpolation methods, cubic spline interpolation has a relatively small amount of calculation while ensuring sufficient smoothness, making it suitable for real-time system applications.
[0056] (4) In environments with obstacles and narrow spaces, RRT* can find feasible paths. Combined with cubic spline interpolation, it can generate a trajectory that is more suitable for the kinematic characteristics of the robot arm, thereby improving obstacle avoidance and adaptability.
[0057] (5) A smooth trajectory helps improve the positioning accuracy of the robot end effector, which is particularly important for application scenarios that require high-precision operations.
[0058] Furthermore, the RRT* algorithm combined with the application of cubic spline interpolation in robot trajectory planning can generate a smooth and optimized trajectory, solve the motion planning problem of the robot in a complex environment, and improve the smoothness, efficiency and accuracy of the motion.
[0059] Furthermore, forward kinematics and inverse kinematics are two important concepts in robotics, which are closely related to trajectory planning and together form the basis of robot motion control. The relationship between forward kinematics and trajectory planning is reflected in path generation and collision detection: in trajectory planning, forward kinematics is used to calculate the motion path of the end effector in the operating space under a given joint space path; through forward kinematics, the position of the end effector in space can be predicted to help with collision detection and avoidance. The relationship between inverse kinematics and trajectory planning is reflected in goal achievement and path optimization: inverse kinematics is used to determine how to adjust the robot's joints so that the end effector reaches the predetermined target position and posture; in trajectory planning, inverse kinematics can help optimize the path in the joint space so that the end effector can reach the goal in a more efficient or comfortable way.
[0060] Furthermore, trajectory planning usually requires forward kinematics to predict the path of the end effector, and inverse kinematics to calculate the joint configuration required to reach a specific path point. In a dynamic environment, trajectory planning may need to be adjusted in real time, and inverse kinematics can help quickly recalculate joint configurations to adapt to environmental changes. Smoothness requirements in trajectory planning can be evaluated using forward kinematics, and inverse kinematics can be used to optimize joint motion, reduce vibration, and improve motion efficiency.
[0061] Further, forward kinematics and inverse kinematics are two key components of trajectory planning. Forward kinematics helps determine the path of the end effector, while inverse kinematics is used to calculate the joint motions required to achieve that path. Together, they ensure that the robot can complete its tasks efficiently and safely. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] The drawings in the specification are used to provide further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0063] Figure 1 A schematic flow chart of a trajectory planning method for a seven-degree-of-freedom redundant manipulator according to the present invention;
[0064] Figure 2 It is a structural schematic diagram of a trajectory planning system of a seven-degree-of-freedom redundant manipulator according to the present invention;
[0065] Figure 3 A schematic diagram of the electronic device structure of a trajectory planning method for a seven-degree-of-freedom redundant manipulator according to the present invention;
[0066] Figure 4 Schematic diagram of the local coordinate system of the 7DOF robot arm connecting rod in an embodiment of the present invention;
[0067] Figure 5 This is a schematic diagram of the linear motion trajectory planning result according to an embodiment of the present invention;
[0068] Figure 6 A schematic diagram of an angle curve corresponding to a linear motion trajectory planning result according to an embodiment of the present invention;
[0069] Figure 7 This is a schematic diagram of arc motion trajectory planning results according to an embodiment of the present invention;
[0070] Figure 8 A schematic diagram of a joint angle curve corresponding to the arc motion trajectory planning result according to an embodiment of the present invention;
[0071] Fig. 9 A schematic diagram of trajectory simulation planned by using RRT* and cubic spline smoothing method according to an embodiment of the present invention;
[0072] Fig.10 This is a schematic diagram of continuous trajectory planning after RRT* and cubic spline smoothing in an embodiment of the present invention;
[0073] Fig.11 This is the second schematic diagram of continuous trajectory planning after RRT* and cubic spline smoothing in an embodiment of the present invention;
[0074] Fig.12 The third schematic diagram of continuous trajectory planning after RRT* and cubic spline smoothing is used in an embodiment of the present invention;
[0075] Fig.13 This is a schematic diagram of joint angle changes in continuous trajectory planning after RRT* and cubic spline smoothing in an embodiment of the present invention;
[0076] Fig.14 Schematic diagram comparing the trajectory planning effects before and after cubic spline smoothing according to an embodiment of the present invention;
[0077] Fig.15 Schematic diagram of the trajectory of the end of the robotic arm according to an embodiment of the present invention. DETAILED DESCRIPTION
[0078] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.
[0079] The following detailed description is an exemplary description, which is intended to provide further detailed description of the present invention. Unless otherwise specified, all technical terms used in the present invention have the same meaning as those generally understood by those skilled in the art to which the present application belongs. The terms used in the present invention are only for describing specific embodiments, and are not intended to limit exemplary embodiments according to the present invention.
[0080] Embodiment 1
[0081] See also Figure 1 , a trajectory planning method for a seven-degree-of-freedom redundant manipulator, comprising the following steps:
[0082] Determine the DH parameters according to the local coordinate system of the seven-degree-of-freedom redundant manipulator, establish the forward kinematics model from the base to the end position through the DH parameters, solve the forward kinematics model from the base to the end position, and obtain the end position of the seven-degree-of-freedom redundant manipulator;
[0083] An inverse kinematics model is established through the end position of the seven-degree-of-freedom redundant manipulator, and the joint rotation angles of the seven-degree-of-freedom redundant manipulator are obtained by solving the inverse kinematics model;
[0084] The forward kinematics model, inverse kinematics model and RRT* algorithm are combined to carry out continuous trajectory planning for the seven-degree-of-freedom redundant manipulator. The cubic spline interpolation method is used to smooth the continuous trajectory of the seven-degree-of-freedom manipulator planned by the RRT* algorithm.
[0085] Preferably, the transformation matrix between adjacent coordinate systems of the forward kinematic model from the base to the end pose is established by DH parameters as follows:
[0086]
[0087] Preferably, the transformation matrix between adjacent coordinate systems is substituted into each joint multiplication to obtain the transformation matrix from the base to the end pose represented by the direction and position vectors, as shown in the following formula:
[0088]
[0089] Among them, n, o, a represent the unit vectors of the terminal coordinate system X, Y, Z relative to the base coordinate system, respectively, and p represents the position vector of the terminal coordinate system relative to the base coordinate system.
[0090] Preferably, the joint rotation angles of the seven-DOF redundant manipulator are obtained by using the DH parameters and the transformation matrix from the base to the end position represented by the direction and position vectors, including θ1, θ2, θ3, θ4, θ5, θ6, and θ7, as shown below:
[0091]
[0092] θ2=0
[0093]
[0094] in,
[0095] Preferably, the cubic spline interpolation method is used to smooth the continuous trajectory of the seven-degree-of-freedom robotic arm planned by the RRT* algorithm, specifically: using the acceleration formula of the trajectory curve based on the cubic spline function at each node, combined with the acceleration at both ends of a given interval and the trajectory curve equation based on the cubic spline function, the position, velocity and acceleration of the trajectory curve at any time in the interval are calculated to obtain a smooth continuous trajectory of the end of the seven-degree-of-freedom redundant robotic arm, including the position, velocity and acceleration of each joint of the seven-degree-of-freedom redundant robotic arm during movement.
[0096] Preferably, the trajectory curve equation is as follows:
[0097] q i (t) = a0 + a1 (tt i )+a2(tt i ) 2 +a3(tt i ) 3
[0098] After segmenting the trajectory curve, the second-order derivatives of the first and last endpoints are used to represent the segment spline curve in the interpolation period. The trajectory curve based on the cubic spline function is represented as follows:
[0099]
[0100] The speed of the cubic spline function at both ends of the interpolation period is obtained by taking the first-order derivative of the trajectory curve based on the cubic spline function, as shown in the following formula:
[0101]
[0102] The acceleration of the cubic spline function at both ends of the interpolation period is obtained by taking the second-order derivative of the trajectory curve based on the cubic spline function, as shown in the following formula:
[0103]
[0104] Among them, [t i ,t i+1 ] is the interpolation period of the cubic spline interpolation method.
[0105] Preferably, the acceleration formula of the trajectory curve based on the cubic spline function at each node is as follows:
[0106] Aω=b
[0107] ω=[ω1,ω2,…,ω n-2 ,ω n-1 ] T
[0108] Where A is a (n+1)×(n+1) tridiagonal matrix, ω is the node acceleration, and b is a vector whose elements are all known.
[0109] See also Figure 2 , a trajectory planning system for a seven-degree-of-freedom redundant manipulator, comprising a forward kinematics module, for determining DH parameters according to a local coordinate system of the seven-degree-of-freedom redundant manipulator, establishing a forward kinematics model of a base-to-end pose by using the DH parameters, solving the forward kinematics model of the base-to-end pose, and obtaining the end pose of the seven-degree-of-freedom redundant manipulator;
[0110] The inverse kinematics module is used to establish an inverse kinematics model through the end position of the seven-degree-of-freedom redundant manipulator and solve the inverse kinematics model to obtain the joint rotation angle of the seven-degree-of-freedom redundant manipulator;
[0111] The trajectory planning module is used to combine the forward kinematics model, the inverse kinematics model and the RRT* algorithm to perform continuous trajectory planning for the seven-degree-of-freedom redundant manipulator, and uses the cubic spline interpolation method to smooth the continuous trajectory of the seven-degree-of-freedom manipulator planned by the RRT* algorithm.
[0112] See also Figure 3 , an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the trajectory planning method for a seven-degree-of-freedom redundant robotic arm described above is implemented.
[0113] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the trajectory planning method of a seven-degree-of-freedom redundant robotic arm described above is implemented.
[0114] Embodiment 2
[0115] This embodiment provides a trajectory planning method for a seven-degree-of-freedom redundant manipulator, the steps of which include S1, solving the forward kinematics of the redundant manipulator; S2, solving the inverse kinematics of the redundant manipulator; S3, continuous trajectory planning based on RRT* and cubic spline smoothing, as follows:
[0116] Part 1: Solution of forward kinematics and inverse kinematics of redundant manipulators:
[0117] Forward kinematics is to calculate the motion parameters of the end of the robot arm through information such as joint displacement, velocity and acceleration. The local coordinate system of the 7DOF robot arm link is as follows: Figure 4 , the standard DH parameter table determined according to the coordinate system is shown in Table 1.
[0118] Table 1 Parameters of DH seven-DOF manipulator
[0119] joint <![CDATA[θ i ]]> <![CDATA[α i ]]> <![CDATA[d i ]]> <![CDATA[a i ]]> 1 <![CDATA[θ1]]> 1.5708 71.1 0 2 <![CDATA[θ2]]> 0 0 125 3 <![CDATA[θ3]]> 0 0 -135.7 4 <![CDATA[θ4]]> 1.5708 0 0 5 <![CDATA[θ5]]> 1.5708 140 0 6 <![CDATA[θ6]]> 1.5708 0 0 7 <![CDATA[θ7]]> 0 25.6 0
[0120] After determining the DH parameters, the transformation matrix between adjacent coordinate systems is
[0121]
[0122] By substituting the above formula into each joint multiplication, we can get the transformation matrix from the base to the end pose:
[0123]
[0124] The kinematic equation from the base to the tip is expressed in terms of direction and position vectors:
[0125]
[0126] It can be further simplified to:
[0127]
[0128] The premise for achieving precise control is to establish an accurate inverse kinematics model. The inverse kinematics of the manipulator solves the rotation angle of each joint according to the end position. After solving the forward kinematics of the redundant manipulator, the inverse kinematics model can be obtained, that is, the end position of the manipulator is known, and the joint rotation angles θ1 to θ7 are calculated by algebraic method. The end position matrix T is known as the DH parameter matrix shown in formula (3) and Table 1.
[0129] Assumptions From the end of the robot arm to the position of the first joint, a right triangle is formed.
[0130]
[0131] Fix the angle of the second joint, i.e.
[0132] θ2=0 (6)
[0133] make B=z c -d1, but
[0134]
[0135] It can be expanded according to formula (1), and the rotation matrix of the above formula is
[0136] Similarly, but
[0137]
[0138] Finally, we can calculate
[0139]
[0140] Part II: Continuous Trajectory Planning Based on RRT* and Cubic Spline Smoothing
[0141] The continuous trajectory planning of this embodiment is based on the RRT* algorithm. By reconnecting the points with the minimum cost, selecting the parent node and rewiring, the path cost can be reduced, the efficiency can be improved, and the optimality of the path can be ensured. However, the trajectory obtained by the RRT* algorithm is not smooth and cannot be directly used for the trajectory planning of the robot arm. Commonly used smoothing methods include optimization method and spline function smoothing method. The optimization method is more time-consuming, so spline function smoothing is mostly used. Compared with high-order polynomial interpolation, cubic spline interpolation is simple and easy to operate, and can overcome the transition oscillation and impact between reference point pairs. The generated trajectory is also continuous in speed and acceleration. The high-order polynomial interpolation method is not easy to converge and is unstable, so the cubic spline interpolation method is used to smooth the trajectory planned by RRT*.
[0142] Assume that the function S(t i )=q i In [t i ,t i+1 ] interval is not a polynomial higher than cubic, there are interpolation nodes at time [0,n], the cubic spline function is based on second-order continuous differentiability, and the expression of S(t) is
[0143] S(t)={q i (t),t∈[t i ,t i+1 ],i=0,1,…,n-1} (13)
[0144] q i (t) = a0 + a1 (tt i )+a2(tt i ) 2 +a3(tt i ) 3 (14)
[0145] The second derivative of the curve is
[0146]
[0147] After the curve is segmented, the second-order derivative of the first and last endpoints is used to represent the interpolation period [t i ,t i+1 ] segment spline curve, then:
[0148]
[0149] Take the first-order derivative of the above formula to get the speed:
[0150]
[0151] Take the second derivative to get the acceleration:
[0152]
[0153] The cubic spline interpolation function satisfies the and The only thing that is certain is that the velocity and acceleration of the cubic spline function at the endpoints of the segmented interval are continuous, then:
[0154]
[0155] Combining the above formulas, we can get:
[0156]
[0157] The constraints are:
[0158]
[0159] The middle position of the interval can be calculated based on the speed and angular velocity at both ends of the interval:
[0160]
[0161]
[0162] Combining (21) to (23) we get the linear equation:
[0163] Aω=b (24)
[0164] In the formula: A is a tridiagonal matrix of (n+1)×(n+1); vector b is a known element.
[0165] Then the acceleration of the curve S(t) at each node can be solved:
[0166] ω=[ω1,ω2,…,ω n-2 ,ω n-1 ] T (25)
[0167] Combined with the given accelerations a0 and a at both ends of the interval nAnd formula (14), we can calculate the curve equation S(t), and thus calculate the position, velocity and acceleration of the curve at any time in the interval.
[0168] Part III: Linear and Circular Motion Trajectory Planning
[0169] Linear motion trajectory planning Figure 5 The corresponding angle curve is shown as Figure 6 As shown in the figure, the three-dimensional coordinates of the starting point of the linear motion trajectory planning are (230,125.1057,295.1057), the three-dimensional coordinates of the midpoint are (230,-70,100), and then it moves back and forth repeatedly to the starting point and extends to the point (230,130,300).
[0170] The trajectory planning result of circular motion is as follows: Figure 7 As shown in the figure, the trajectory planning joint angle curve of circular motion is as follows Figure 8 As shown, the starting point of the arc motion is (260.9017,30,295.1057), the end point is (230,30,300), and the intermediate points are (330,30,200), (230,30,100) and (130,30,200).
[0171] exist Figure 5 and Figure 7 In the trajectory planning, the black line is the end position obtained by the average trajectory method, and the red point is the position solved by inverse kinematics. It can be found that the points obtained by the two coincide, which also proves the correctness of the average trajectory. Given the starting point and the end point, the trajectory connecting these two points is averaged, and the step size is set to divide it into 20 segments. In Table 2, the expected path point of the straight line planned by the RRT* algorithm is set to LP1, and the point at the end of the manipulator solved by inverse kinematics is set to FP1.
[0172] Table 2 Planning points and inverse kinematics solution points for linear programming
[0173]
[0174]
[0175] In Table 3, the expected path point of the arc planned by the RRT* algorithm is set as SP2, and the point at the end of the manipulator solved by inverse kinematics is set as FP2. The only solution obtained by forward kinematics is used to verify whether the inverse kinematics solution is accurate. It can be seen from the two tables that the planned points and the points solved by inverse kinematics are exactly the same, and there is no error. In the experiment, the time for linear motion trajectory planning is 41.73s, and the time for arc motion trajectory planning is 42.05s.
[0176] Table 3 Planning points and inverse kinematics solution points for arc planning
[0177]
[0178]
[0179] Part IV: Simulation Verification
[0180] The continuous trajectory planning of the robot arm is to obtain a continuous and smooth trajectory without obvious abrupt turning points, prevent mechanical damage caused by impact and vibration, improve the stability of the robot arm, and extend the use time of the equipment. Based on the MATLAB R2021a simulation software, this embodiment uses the smoothed RRT* algorithm for obstacle avoidance trajectory planning of the seven-degree-of-freedom robot arm, and sets 5 spherical obstacles (No. 2-6), including a total of 6 points including the target point (No. 1). The three-dimensional coordinate position and radius settings of the target point and obstacle are shown in Table 4.
[0181] Table 4 Target point and obstacle position and size parameters
[0182] Center radius 1(target point) (188,218,-30) 15 2(Obstacle 1) (300,20,150) 10 3 (Obstacle 2) (269,57,80) 15 4 (Obstacle 3) (200,157,120) 12 5 (Obstacle 4) (150,100,50) 13 6 (Obstacle 5) (250,120,150) 16
[0183] The trajectory planned using RRT* and cubic spline smoothing is shown in Fig. 9 As shown by the green line in the figure, it can be seen that the planned trajectory does not collide with obstacles.
[0184] The redundant manipulator uses RRT* and cubic spline smoothing to plan the continuous trajectory. Fig.10 , Fig.11 , Fig.12 , joint angle changes as Fig.13 As shown, Fig.10 Rotate a certain angle, Fig.11 and Fig.12 It can be clearly seen that the end of the robotic arm does not collide with obstacle 5 and obstacle 2.
[0185] Fig.14 The figure shows the comparison of trajectory planning effects before and after cubic spline smoothing. It can be seen from the figure that after smoothing, the number of points on the trajectory increases, the density becomes larger, and the changes in the positions with obvious turning points without smoothing are also smoother.
[0186] The trajectory of the end of the robot arm includes the position, velocity and acceleration of each joint during movement as a function of time, such as Fig.15 As shown in the figure, it can be seen that the trajectory of the end of the robot arm is continuous and stable.
[0187] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0188] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks 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 produce 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.
[0189] 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 comprising 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.
[0190] 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.
[0191] 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 trajectory planning method for a seven-degree-of-freedom redundant robotic arm, characterized in that: The following steps are involved: Determine the DH parameters according to the local coordinate system of the seven-degree-of-freedom redundant manipulator, establish the forward kinematics model from the base to the end position through the DH parameters, solve the forward kinematics model from the base to the end position, and obtain the end position of the seven-degree-of-freedom redundant manipulator; An inverse kinematics model is established through the end position of the seven-degree-of-freedom redundant manipulator, and the joint rotation angles of the seven-degree-of-freedom redundant manipulator are obtained by solving the inverse kinematics model; The forward kinematics model, inverse kinematics model and RRT* algorithm are combined to carry out continuous trajectory planning for the seven-degree-of-freedom redundant manipulator. The cubic spline interpolation method is used to smooth the continuous trajectory of the seven-degree-of-freedom manipulator planned by the RRT* algorithm.
2. The trajectory planning method of a seven-degree-of-freedom redundant robotic arm according to claim 1, characterized in that: The transformation matrix between adjacent coordinate systems of the forward kinematic model from the base to the end pose is established through DH parameters as follows: 。 3. The trajectory planning method of a seven-degree-of-freedom redundant robotic arm according to claim 2, characterized in that: Substitute the transformation matrix between adjacent coordinate systems into each joint multiplication to obtain the transformation matrix from the base to the end pose represented by the direction and position vectors, as shown in the following formula: Among them, n, o, a represent the unit vectors of the terminal coordinate system X, Y, Z relative to the base coordinate system, respectively, and p represents the position vector of the terminal coordinate system relative to the base coordinate system.
4. The trajectory planning method of a seven-degree-of-freedom redundant robotic arm according to claim 3, characterized in that: Using the DH parameters and the transformation matrix from the base to the end position represented by the direction and position vectors, the joint rotation angles of the seven-degree-of-freedom redundant manipulator include θ1, θ2, θ3, θ4, θ5, θ6, and θ7, as shown below: θ2=0 in, 5. The trajectory planning method of a seven-degree-of-freedom redundant robotic arm according to claim 1, characterized in that: The cubic spline interpolation method is used to smooth the continuous trajectory of the seven-degree-of-freedom robotic arm planned by the RRT* algorithm. Specifically, the acceleration formula of the trajectory curve based on the cubic spline function at each node is used, combined with the acceleration at both ends of a given interval and the trajectory curve equation based on the cubic spline function, to calculate the position, velocity and acceleration of the trajectory curve at any time in the interval, and obtain a smooth continuous trajectory of the end of the seven-degree-of-freedom redundant robotic arm, including the position, velocity and acceleration of each joint of the seven-degree-of-freedom redundant robotic arm during movement.
6. The trajectory planning method of a seven-degree-of-freedom redundant manipulator according to claim 5, characterized in that: The trajectory curve equation is shown as follows: q i (t)=a0+a1(t-t i )+a2(t-t i ) 2 +a3(t-t i ) 3 After segmenting the trajectory curve, the second-order derivatives of the first and last endpoints are used to represent the segment spline curve in the interpolation period. The trajectory curve based on the cubic spline function is represented as follows: The speed of the cubic spline function at both ends of the interpolation period is obtained by taking the first-order derivative of the trajectory curve based on the cubic spline function, as shown in the following formula: The acceleration of the cubic spline function at both ends of the interpolation period is obtained by taking the second-order derivative of the trajectory curve based on the cubic spline function, as shown in the following formula: Among them, [t i ,t i+1 ] is the interpolation period of the cubic spline interpolation method.
7. The trajectory planning method of a seven-degree-of-freedom redundant manipulator according to claim 5, characterized in that: The acceleration formula of the trajectory curve at each node based on the cubic spline function is as follows: Aω=b ω=[ω1,ω2,…,ω n-2 ,oh n-1 ] T Where A is a (n+1)×(n+1) tridiagonal matrix, ω is the node acceleration, and b is a vector whose elements are all known.
8. A trajectory planning system for a seven-degree-of-freedom redundant robotic arm, characterized in that: It includes a forward kinematics module, which is used to determine DH parameters according to the local coordinate system of the seven-degree-of-freedom redundant manipulator, establish a forward kinematics model from the base to the end posture through the DH parameters, solve the forward kinematics model from the base to the end posture, and obtain the end posture of the seven-degree-of-freedom redundant manipulator; The inverse kinematics module is used to establish an inverse kinematics model through the end position of the seven-degree-of-freedom redundant manipulator and solve the inverse kinematics model to obtain the joint rotation angle of the seven-degree-of-freedom redundant manipulator; The trajectory planning module is used to combine the forward kinematics model, the inverse kinematics model and the RRT* algorithm to perform continuous trajectory planning for the seven-degree-of-freedom redundant manipulator, and uses the cubic spline interpolation method to smooth the continuous trajectory of the seven-degree-of-freedom manipulator planned by the RRT* algorithm.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the trajectory planning method for a seven-degree-of-freedom redundant robotic arm as described in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the trajectory planning method for a seven-degree-of-freedom redundant robotic arm as claimed in any one of claims 1 to 7.
Citation Information
Patent Citations
A method for planning the motion trajectory within the operating space of a heavy-duty industrial robot
CN102298391A
Six-freedom-degree robot track planning method giving consideration to tail end motion error
CN106647282A
Seven-freedom-degree mechanical arm control method and system based on analytical solution
CN109397292A
Mechanical arm motion planning method
CN112549016A
Obstacle avoidance trajectory planning method for redundant mechanical arm based on improved rapidly-exploring random tree
CN113352319A
Cited By
Multi-degree-of-freedom mechanical arm obstacle avoidance path planning method and system
CN119141541A
Obstacle avoidance path planning method and system for multi-degree-of-freedom robotic arm
CN119141541B
Method and device for acquiring singular pose of Cartesian trajectory tracking of industrial mechanical arm
CN119952678A
Construction method of module tool library for assembling pipelines in narrow space and design method of tightening tool
CN121009641A
A method for constructing a module tool library for narrow space pipeline assembly and a design method for a tightening tool
CN121009641B
