A method and device for planning the terminal trajectory of a robot

Through the multi-stage planning method of Cartesian space and joint space, the position, motion and axis motion requirements of the robot's end trajectory are decoupled, which solves the problem of poor trajectory planning in the existing technology and improves the smoothness and motion of the trajectory. performance.

CN115157270BActive Publication Date: 2024-09-27KYLAND TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211035164.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-26
Publication Date
2024-09-27
Estimated Expiration
2042-08-26

AI Technical Summary

Technical Problem

The existing technology fails to effectively decouple the Cartesian space position and motion and the motion requirements of each axis in the joint space in the robot end trajectory planning, resulting in problems such as position deviation and axis vibration in the planned trajectory.

Method used

By obtaining the discrete path nodes at the end of the robot, smooth fitting of the Cartesian space and speed planning under kinematic constraints are performed to obtain the planned trajectory of the Cartesian space, and the inverse kinematic solution is used to obtain the nodes of the joint space, and finally in Trajectory planning is carried out under the kinematic constraints of the joint space to ensure that the velocity, acceleration and jerk of the trajectory are continuous.

Benefits of technology

It achieves the smoothness and accuracy requirements of the robot's end trajectory, meets the kinematic constraints of Cartesian space and the kinematic requirements of joint space, improves the motion performance of the robot's end trajectory, and reduces shaft vibration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115157270B
    Figure CN115157270B
Patent Text Reader

Abstract

The embodiment of the present invention provides a method and device for planning the trajectory of a robot terminal, and its technical solution includes: performing smooth fitting on a number of discrete path nodes of the robot terminal to obtain the planned path of the robot terminal in Cartesian space; obtaining the planned trajectory of the robot terminal in Cartesian space according to the planned path under the kinematic constraints of the Cartesian space of the robot terminal using speed planning; obtaining the joint nodes of the robot terminal in the robot joint space according to the planned trajectory of the robot terminal in Cartesian space; obtaining the planned trajectory of the robot terminal in its joint space according to the joint nodes under the kinematic constraints of each axis of the robot. The technical solution of the present invention decouples the requirements for Cartesian space position accuracy, the kinematic constraints of Cartesian space motion, and the kinematic constraints of each axis of the robot, and makes the planned trajectory meet the above requirements, thereby improving the motion performance of the robot.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field related to motion control, and in particular to a method and device for planning a robot terminal trajectory. Background Art

[0002] The trajectory planning of the robot end (also called the execution end) needs to consider the requirements of Cartesian space position, Cartesian space motion and the requirements of each axis motion in the robot joint space. Among them, the requirements of Cartesian space position include the smoothness and accuracy requirements of the position, the requirements of Cartesian space motion include the speed constraints and speed continuity requirements of the robot in Cartesian space, and the requirements of axis motion include the kinematic constraints of the axis, speed continuity, acceleration continuity, and even the requirements of acceleration continuity.

[0003] The existing technology does not decouple the above three requirements during the planning process. In the planning process, at least two of the above three requirements are often considered simultaneously, resulting in the three requirements affecting each other and the planning effect. Even the planned trajectory has problems such as position deviation and axis vibration during the movement. Summary of the invention

[0004] In view of this, an embodiment of the present invention provides a method and device for planning the trajectory of a robot terminal, and its technical solution includes: obtaining a plurality of discrete path nodes of the robot terminal, wherein the coordinates of the path nodes are the positions and postures in the Cartesian space; performing smooth fitting on the path nodes to obtain the planned path of the robot terminal in the Cartesian space; obtaining the planned trajectory of the robot terminal in the Cartesian space by speed planning according to the planned path under the kinematic constraints of the Cartesian space of the robot terminal, wherein the speed of the planned trajectory in the Cartesian space is continuous; obtaining the joint nodes of the robot terminal in the robot joint space according to the planned trajectory of the robot terminal in the Cartesian space, wherein the joint nodes are the key points of the motion trajectory of the robot terminal in its joint space, and the coordinates thereof are the coordinates of the robot joint space; obtaining the planned trajectory of the robot terminal in its joint space according to the joint nodes under the kinematic constraints of each axis of the robot, wherein the speed, acceleration and jerk of the planned trajectory are continuous.

[0005] The technical solution of the present invention decouples the requirements of the Cartesian space position, the Cartesian space motion and the motion requirements of each axis in the robot's joint space during the trajectory planning process of the robot's terminal, so that the final planned trajectory meets the smoothness and accuracy requirements of the Cartesian space position, the constraints and speed continuity requirements of the Cartesian space motion speed and the constraints and continuity requirements of the speed, acceleration and jerk of each axis in the robot's joint space.

[0006] In a first aspect, an embodiment of the present invention provides a method for planning a trajectory of a robot terminal, comprising: obtaining a plurality of discrete path nodes of the robot terminal, wherein the coordinates of the path nodes are the poses in Cartesian space, the Cartesian space includes Cartesian position space and Cartesian attitude space, and the poses include position and attitude; performing smooth fitting on the path nodes to obtain a planned path of the robot terminal in Cartesian space; under the kinematic constraints of the Cartesian space of the robot terminal, obtaining a planned trajectory of the robot terminal in Cartesian space by speed planning according to the planned path, wherein the speed of the planned trajectory in Cartesian space is continuous; obtaining a joint node of the robot terminal in the robot joint space according to the planned trajectory of the robot terminal in Cartesian space, wherein the joint node is a key point of the motion trajectory of the robot terminal in its joint space, and its coordinates are the coordinates of the robot joint space; under the kinematic constraints of each axis of the robot, obtaining a planned trajectory of the robot terminal in the joint space according to the joint nodes, wherein the speed, acceleration and jerk of the planned trajectory are continuous.

[0007] From the above, through Cartesian space path planning, Cartesian space trajectory planning and joint space trajectory planning, the requirements for Cartesian space position accuracy, the kinematic constraints of Cartesian space motion and the kinematic constraints of each axis of the robot are decoupled in the trajectory planning process of the robot terminal. In Cartesian path planning, the position accuracy of the final planned trajectory is improved, in Cartesian space trajectory planning, the final planned trajectory satisfies the kinematic constraints of Cartesian space, and in joint space trajectory planning, the motion of each axis satisfies the kinematic constraints, thereby improving the trajectory motion performance of the robot terminal.

[0008] In a possible implementation of the first aspect, the posture in the posture is expressed by continuous Euler angles, the continuous Euler angles of a path node are equal to the sum of the continuous Euler angles of the previous path node and the Euler angle rotation angle of the node, and the Euler angle rotation angle of a path node is equal to the positive rotation angle of the Euler angle from the previous path node to the path node.

[0009] From the above, the continuous Euler angle method is used to represent the posture. When planning the trajectory in Cartesian space, the problem that the trajectory cannot be interpolated due to the existence of singular points in the traditional Euler angle is solved, and the continuity of the posture is achieved.

[0010] In a possible implementation manner of the first aspect, the process of performing smooth fitting on the path nodes includes one of the following: performing smooth fitting on the path nodes using line segments and circular arcs; performing smooth fitting on the path nodes using polynomials or B-splines. In a regular path, the path nodes are smoothly fitted using line segments and circular arcs; in an irregular path, the path nodes are smoothly fitted using polynomials or B-splines.

[0011] From the above, by smoothly fitting the path nodes with line segments and circular arcs or by smoothly fitting the path nodes with polynomials or B-splines, position smoothing on the planned path is achieved and the accuracy requirements of the motion path are met.

[0012] In a possible implementation of the first aspect, under the kinematic constraints of the Cartesian space of the robot terminal, the planned trajectory of the robot terminal in the Cartesian space is obtained according to the planned path by using speed planning, including: according to the position and posture of each path point of the planned path, obtaining the position distance length and the angle distance length of each path point, and the coordinates of the path space are composed of the position distance length and the angle distance length, the position distance length of a path point is the length of the planned path from the first path point to the path point in the Cartesian position space, and the angle distance length of a path point is the length of the planned path from the first path point to the path point in the Cartesian posture space; converting the kinematic constraints of the Cartesian space of the robot terminal into the kinematic constraints of the path space; under the kinematic constraints of the path space, obtaining the planned trajectory of the robot terminal in the path space by using speed planning according to the coordinates of the path space, and the speed of the robot terminal in the path space is continuous; obtaining the planned trajectory of the robot terminal in the Cartesian space according to the planned trajectory of the path space.

[0013] From the above, by converting the position and posture of each path point in the planned path into the coordinates of the two-dimensional path space for path trajectory planning, and then converting it into the trajectory of Cartesian space, not only the planned trajectory of Cartesian space meets the kinematic constraints of the Cartesian space at the end of the robot, and realizes the speed continuity of the planned trajectory of Cartesian space, but also solves the singularity problem in the interpolation process of Euler angles and reduces the complexity of trajectory synchronization.

[0014] In a possible implementation of the first aspect, under the kinematic constraints of the Cartesian space of the robot terminal, the planned trajectory of the robot terminal in the Cartesian space is obtained according to the planned path by using speed planning, including: according to the posture of each path point of the planned path, the distance length of each path point on each coordinate axis of the Cartesian position space is obtained, and the coordinates of the path space of the planned path are formed, the distance length of a path point on a coordinate axis of the Cartesian space is the length of the projection of the distance of the planned path from the first path point to the path point on the coordinate axis; the kinematic constraints of the Cartesian space of the robot terminal are converted into kinematic constraints of the path space; under the kinematic constraints of the path space, the planned trajectory of the robot terminal in the path space is obtained according to the coordinates of the path space by using speed planning, and the speed of the robot terminal in the path space is continuous; the planned trajectory of the robot terminal in the Cartesian space is obtained according to the planned trajectory of the path space.

[0015] From the above, by converting the position and posture of each path point in the planned path into the coordinates of the multi-dimensional path space for path trajectory planning, and then converting it into the trajectory of Cartesian space, not only the planned trajectory of Cartesian space satisfies the kinematic constraints of the Cartesian space at the end of the robot, and realizes the speed continuity of the planned trajectory of Cartesian space, but also solves the singularity problem in the interpolation process of Euler angles.

[0016] In a possible implementation of the first aspect, obtaining the joint nodes of the robot terminal in the robot joint space according to the planned trajectory of the robot terminal in the Cartesian space includes: obtaining the trajectory nodes of the robot terminal in the Cartesian space according to the planned trajectory of the robot terminal in the Cartesian space, the trajectory nodes being the key points of the motion trajectory of the robot terminal in the Cartesian space; taking the trajectory nodes as the joint nodes, and converting the posture of the trajectory nodes into the coordinates of the joint nodes in the robot joint space by using the inverse kinematic solution.

[0017] From the above, the key points of the joint space are obtained according to the inverse kinematic solution, which provides a basis for trajectory planning in the joint space.

[0018] In a possible implementation manner of the first aspect, under the kinematic constraints of each axis of the robot, obtaining a planned trajectory of the robot terminal in its joint space according to the joint nodes includes: under the kinematic constraints of each axis of the robot, using velocity planning according to the coordinates of the joint nodes in the joint space of the robot to obtain a primary planned trajectory of each axis of the robot in its joint space, and obtaining the motion duration of each axis of the robot between adjacent joint nodes accordingly; for any pair of adjacent joint nodes, taking the longest time of the motion duration of each axis of the robot between the pair of adjacent joint nodes as the synchronization duration between the pair of adjacent joint nodes; according to the synchronization duration between each pair of adjacent joint nodes and the coordinates of the joint nodes in the joint space of the robot, using velocity planning under the kinematic constraints of each axis of the robot to obtain a secondary planned trajectory of each axis of the robot in its joint space, and using the secondary planned trajectory as the planned trajectory of the robot terminal in its joint space, wherein the velocity, acceleration and jerk of each axis of the robot are continuous.

[0019] From the above, under the kinematic constraints of each axis of the robot, the trajectory synchronization of each axis in the joint space is achieved through trajectory planning in the secondary joint space, so that the motion performance of the robot based on the planned trajectory is improved, and the final trajectory meets the constraints and continuity requirements of speed, acceleration and jerk on each axis of the robot, thereby reducing the vibration of each axis of the robot.

[0020] In a second aspect, an embodiment of the present invention provides a device for planning the trajectory of a robot terminal, comprising: a node acquisition module, used to acquire a number of discrete path nodes of the robot terminal, the coordinates of the path nodes are the positions and postures in the Cartesian space, the Cartesian space includes the Cartesian position space and the Cartesian attitude space, and the position and posture include the position and attitude; a path smoothing module, used to perform smooth fitting on the path nodes to obtain the planned path of the robot terminal in the Cartesian space; a Cartesian trajectory planning module, used to obtain the planned trajectory of the robot terminal in the Cartesian space according to the planned path using speed planning under the kinematic constraints of the Cartesian space of the robot terminal; a kinematic inverse solution module, used to obtain the joint nodes of the robot terminal in the robot joint space according to the planned trajectory of the robot terminal in the Cartesian space, the joint nodes are the key points of the motion trajectory of the robot terminal in its joint space, and their coordinates are the coordinates of the robot joint space; a joint trajectory planning module, used to obtain the planned trajectory of the robot terminal in its joint space according to the joint nodes under the kinematic constraints of each axis of the robot.

[0021] From the above, through Cartesian space path planning, Cartesian space trajectory planning and joint space trajectory planning, the requirements for Cartesian space position accuracy, the kinematic constraints of Cartesian space motion and the kinematic constraints of each axis of the robot are decoupled in the trajectory planning process of the robot terminal. In Cartesian path planning, the position accuracy of the final planned trajectory is improved, in Cartesian space trajectory planning, the final planned trajectory satisfies the kinematic constraints of Cartesian space, and in joint space trajectory planning, the motion of each axis satisfies the kinematic constraints, thereby improving the trajectory motion performance of the robot terminal.

[0022] In a possible implementation of the second aspect, the posture in the posture is expressed by continuous Euler angles, the continuous Euler angles of a path node are equal to the sum of the continuous Euler angles of the previous path node and the Euler angle rotation angle of the node, and the Euler angle rotation angle of a path node is equal to the positive rotation angle of the Euler angle from the previous path node to the path node.

[0023] From the above, the continuous Euler angle method is used to represent the posture. When planning the trajectory in Cartesian space, the problem that the trajectory cannot be interpolated due to the existence of singular points in the traditional Euler angle is solved, and the continuity of the posture is achieved.

[0024] In a possible implementation of the second aspect, the process of the path planning module performing smooth fitting on the path nodes includes one of the following: smooth fitting on the path nodes using line segments and circular arcs; smooth fitting on the path nodes using polynomials or B-splines. In a regular path, the path nodes are smooth fitted using line segments and circular arcs; in an irregular path, the path nodes are smooth fitted using polynomials or B-splines.

[0025] From the above, by smoothly fitting the path nodes with line segments and circular arcs or by smoothly fitting the path nodes with polynomials or B-splines, position smoothing on the planned path is achieved and the accuracy requirements of the motion path are met.

[0026] In a possible implementation of the second aspect, the Cartesian trajectory planning module is specifically used to include: according to the position and posture of each path point of the planned path, obtaining the position distance length and the angle distance length of each path point, and the coordinates of the path space are composed of the position distance length and the angle distance length, the position distance length of a path point is the length of the planned path from the first path point to the path point in the Cartesian position space, and the angle distance length of a path point is the length of the planned path from the first path point to the path point in the Cartesian posture space; converting the kinematic constraints of the Cartesian space of the robot terminal into the kinematic constraints of the path space; under the kinematic constraints of the path space, using speed planning to obtain the planned trajectory of the robot terminal in the path space according to the coordinates of the path space, and the speed of the robot terminal in the path space is continuous; obtaining the planned trajectory of the robot terminal in the Cartesian space according to the planned trajectory of the path space.

[0027] From the above, by converting the position and posture of each path point in the planned path into the coordinates of the two-dimensional path space for path trajectory planning, and then converting it into the trajectory of Cartesian space, not only the planned trajectory of Cartesian space meets the kinematic constraints of the Cartesian space at the end of the robot, and realizes the speed continuity of the planned trajectory of Cartesian space, but also solves the singularity problem in the interpolation process of Euler angles and reduces the complexity of trajectory synchronization.

[0028] In a possible implementation of the second aspect, the Cartesian trajectory planning module is specifically used to include: according to the posture of each path point of the planned path, obtaining the distance length of each path point on each coordinate axis of the Cartesian position space, and forming the coordinates of the path space of the planned path, the distance length of a path point on a coordinate axis in the Cartesian space is the length of the distance of the planned path from the first path point to the path point projected on the coordinate axis; converting the kinematic constraints of the Cartesian space of the robot terminal into the kinematic constraints of the path space; under the kinematic constraints of the path space, using speed planning to obtain the planned trajectory of the robot terminal in the path space according to the coordinates of the path space, and the speed of the robot terminal in the path space is continuous; according to the planned trajectory of the path space, obtaining the planned trajectory of the robot terminal in the Cartesian space.

[0029] From the above, the path trajectory is planned by converting the position and posture of each path point in the planned path into the coordinates of the multi-dimensional path space, and then converting it into the trajectory of the Cartesian space. This not only makes the planned trajectory of the Cartesian space meet the kinematic constraints of the Cartesian space at the end of the robot, and realizes the speed continuity of the planned trajectory of the Cartesian space, but also solves the singularity problem in the interpolation process of the Euler angle.

[0030] In a possible implementation of the second aspect, the motion inverse solution module is specifically used to include: obtaining a trajectory node of the robot terminal in the Cartesian space according to the planned trajectory of the robot terminal in the Cartesian space, wherein the trajectory node is a key point of the motion trajectory of the robot terminal in the Cartesian space; using the trajectory node as the joint node, and using the inverse kinematic solution to convert the posture of the trajectory node into the coordinates of the joint node in the robot joint space.

[0031] From the above, the key points of the joint space are obtained according to the inverse kinematic solution, which provides a basis for trajectory planning in the joint space.

[0032] In a possible implementation of the second aspect, the joint trajectory planning module is specifically used to include: under the kinematic constraints of each axis of the robot, using speed planning according to the coordinates of the joint nodes in the joint space of the robot to obtain the primary planning trajectory of each axis of the robot in its joint space, and thereby obtain the movement duration of each axis of the robot between adjacent joint nodes; for any pair of adjacent joint nodes, taking the longest time of the movement duration of each axis of the robot between the pair of adjacent joint nodes as the synchronization duration between the pair of adjacent joint nodes; according to the synchronization duration between each pair of adjacent joint nodes and the coordinates of the joint nodes in the joint space of the robot, using speed planning under the kinematic constraints of each axis of the robot to obtain the secondary planning trajectory of each axis of the robot in its joint space, and use it as the planning trajectory of the robot terminal in its joint space, in which the speed, acceleration and jerk of each axis of the robot are continuous.

[0033] From the above, under the kinematic constraints of each axis of the robot, the trajectory synchronization of each axis in the joint space is achieved through trajectory planning in the secondary joint space, so that the motion performance of the robot based on the planned trajectory is improved, and the final trajectory meets the constraints and continuity requirements of speed, acceleration and jerk on each axis of the robot, thereby reducing the vibration of each axis of the robot.

[0034] In a third aspect, an embodiment of the present invention provides a computing device, including:

[0035] bus;

[0036] A communication interface connected to the bus;

[0037] at least one processor connected to the bus; and

[0038] At least one memory is connected to the bus and stores program instructions, and when the program instructions are executed by the at least one processor, the at least one processor executes any implementation of the first aspect of the present invention.

[0039] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having program instructions stored thereon, wherein when the program instructions are executed by a computer, the computer executes any implementation method described in the first aspect of the application. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is a flow chart of a first embodiment of a method for planning a robot terminal trajectory of the present invention;

[0041] Figure 2 It is a flow chart of a second embodiment of a method for planning a robot terminal trajectory of the present invention;

[0042] Figure 3 It is a structural schematic diagram of a first embodiment of a robot terminal trajectory planning device of the present invention;

[0043] Figure 4 It is a structural schematic diagram of a second embodiment of a robot terminal trajectory planning device of the present invention;

[0044] Figure 5 A schematic diagram of the structure of a computing device according to various embodiments of the present invention. DETAILED DESCRIPTION

[0045] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0046] In the following description, the terms "first\second\third, etc." or module A, module B, module C, etc. are only used to distinguish similar objects, or to distinguish different embodiments, and do not represent a specific ordering of the objects. It can be understood that the specific order or sequence can be interchanged where permitted, so that the embodiments of the present invention described here can be implemented in an order other than that illustrated or described here.

[0047] In the following description, the numbers representing the steps, such as S110, S120, etc., do not necessarily mean that the steps must be executed in this manner. If permitted, the order of the previous and next steps can be interchanged, or they can be executed simultaneously.

[0048] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein are only for the purpose of describing the embodiments of the present invention and are not intended to limit the present invention.

[0049] Some terms used in the embodiments of the present invention are described below.

[0050] Cartesian space, Cartesian space coordinates: Cartesian space includes Cartesian position space and Cartesian attitude space. The coordinates of Cartesian space are posture, including position coordinates and attitude coordinates; Cartesian position space is a rectangular coordinate space, the position coordinates are three-dimensional rectangular coordinates, and Cartesian attitude space is the rotation space of the object. The attitude coordinates represent the rotation angle of the object's current position relative to the object at the origin.

[0051] Robot joint space: The space formed by the various axes of the robot, including the translation axis and the rotation axis, whose coordinates are the positions of the various axes of the robot.

[0052] Velocity planner: A device for planning the trajectory and velocity of a moving object. It plans the velocity and trajectory of an object through trajectory interpolation. When planning velocity, it keeps the velocity and acceleration of each point continuous and obeys kinematic constraints. The velocity planner can plan trajectories in Cartesian space as well as in other spaces. When planning, the velocity is described as an expression of time, such as a polynomial based on time.

[0053] Path and path nodes, trajectory and trajectory nodes and joint nodes: The path is composed of positional relationships, excluding the relationship between each point on the path and time. The path node is the key point on the path, which determines the trend of the path. The trajectory does not include the positional relationship, but also includes the relationship between each point on the trajectory and time. The trajectory node is the key point on the trajectory in Cartesian space, which determines the trend of the trajectory in Cartesian space. The joint node is the key point on the trajectory in joint space, which determines the trend of the trajectory in joint space.

[0054] An embodiment of the present invention provides a method and device for planning the trajectory of a robot terminal, and its technical solution includes: obtaining a plurality of discrete path nodes of the robot terminal, wherein the coordinates of the path nodes are the positions and postures in the Cartesian space; performing smooth fitting on the path nodes to obtain the planned path of the robot terminal in the Cartesian space; obtaining the planned trajectory of the robot terminal in the Cartesian space by speed planning according to the planned path under the kinematic constraints of the Cartesian space of the robot terminal, wherein the speed of the planned trajectory in the Cartesian space is continuous; obtaining the joint nodes of the robot terminal in the robot joint space according to the planned trajectory of the robot terminal in the Cartesian space, wherein the joint nodes are the key points of the motion trajectory of the robot terminal in its joint space, and the coordinates of the joint nodes are the coordinates of the robot joint space; obtaining the planned trajectory of the robot terminal in its joint space according to the joint nodes under the kinematic constraints of each axis of the robot, wherein the speed, acceleration and jerk of the planned trajectory are continuous.

[0055] The technical solution of the present invention decouples the requirements for Cartesian space position, Cartesian space motion and the requirements for motion of each axis in the joint space of the robot during trajectory planning of the robot terminal through Cartesian space path planning, Cartesian space trajectory planning and joint space trajectory planning. The position accuracy and smoothness of the final planned trajectory are improved in Cartesian path planning, the final planned trajectory satisfies the motion speed constraints and continuity requirements of the Cartesian space in Cartesian space trajectory planning, and the motion of each axis satisfies the constraints and continuity requirements of speed, acceleration and jerk in joint space trajectory planning, thereby improving the trajectory motion performance of the robot terminal.

[0056] The following describes a method embodiment, a device embodiment and other related embodiments of planning a robot terminal trajectory of the present invention in conjunction with the accompanying drawings.

[0057] Below we first combine the attached Figure 1 to Figure 2 An embodiment of a method for planning a robot terminal trajectory is introduced.

[0058] A method for planning the trajectory of a robot terminal is implemented in an embodiment. Path nodes are smoothly fitted to obtain a planned path of the robot terminal in Cartesian space; under the kinematic constraints of the Cartesian space of the robot terminal, the planned trajectory of the robot terminal in Cartesian space is obtained according to the planned path using speed planning; according to the planned trajectory of the robot terminal in Cartesian space, the joint nodes of the robot terminal in the robot joint space are obtained; under the kinematic constraints of each axis of the robot, the planned trajectory of the robot terminal in its joint space is obtained according to the joint nodes.

[0059] The technical solution of this embodiment decouples the requirements for Cartesian space position accuracy, the kinematic constraints of Cartesian space motion, and the kinematic constraints of each axis of the robot during the trajectory planning process of the robot terminal through Cartesian space path planning, Cartesian space trajectory planning, and joint space trajectory planning. In Cartesian path planning, the position accuracy of the final planned trajectory is improved, in Cartesian space trajectory planning, the final planned trajectory satisfies the kinematic constraints of Cartesian space, and in joint space trajectory planning, the motion of each axis satisfies the kinematic constraints, thereby improving the trajectory motion performance of the robot terminal.

[0060] Figure 1 The flowchart of a first embodiment of a method for planning a robot terminal trajectory is shown, including steps S110 to S150.

[0061] S110: Acquire a plurality of discrete path nodes at the end of the robot, wherein the coordinates of the path nodes are positions and postures in Cartesian space.

[0062] Among them, the path node is the key point in the movement process of the end of the multi-axis device, which is generally the result of CAD / CAM output.

[0063] Wherein, Cartesian space includes Cartesian position space and Cartesian attitude space, and posture includes position and attitude. In some embodiments, attitude coordinates are expressed by Euler angles. In other embodiments, attitude coordinates are expressed by continuous Euler angles.

[0064] Among them, the continuous Euler angles have the same number of dimensions as the Euler angles. In each dimension, the continuous Euler angle of a path node is equal to the sum of the continuous Euler angle of the previous path node and the Euler angle rotation angle of the node. The Euler angle rotation angle of a path node is equal to the positive rotation angle of the Euler angle from the previous path node to the path node.

[0065] S120: Perform smooth fitting on each path node to obtain a planned path in the Cartesian space of the robot terminal, where the planned path meets the smoothness and accuracy requirements of the position in the Cartesian space.

[0066] The process of smooth fitting the path nodes includes one of the following: a passing point method and a non-passing point method.

[0067] The planned path after smooth fitting by the non-passing point method does not necessarily pass through all path nodes, but the mean square error of the position deviation from each path node is less than the set threshold, so as to meet the position accuracy requirements of the robot's motion trajectory in Cartesian space and be suitable for the planning of regular paths. For example, a preferred implementation of the non-passing point method is to smoothly fit the path nodes with line segments and arcs.

[0068] The planned path after smooth fitting by the passing point method passes through each path node, which meets the position accuracy requirements of the robot's motion trajectory in Cartesian space and is suitable for planning irregular paths. For example, a preferred implementation of the passing point method is to use polynomials or B-splines to smoothly fit discrete path nodes.

[0069] From the above, the position and posture of each path point obtained by path planning is the rasterization of the motion position of the robot terminal, which can be considered as a global planning of the motion position of the robot terminal, realizing the requirements of position smoothness and accuracy of the robot's motion trajectory in Cartesian space.

[0070] S130: Under the kinematic constraints of the Cartesian space of the robot terminal, the planned trajectory of the robot terminal in the Cartesian space is obtained by velocity planning according to the planned path.

[0071] Among them, the posture of each point on the planned trajectory of Cartesian space is the same as the posture of the corresponding path point on the planned path of Cartesian space in step S120, but this step obtains the relationship between the posture and time of each path point through speed planning, that is, each path point has a time attribute added. In order to distinguish, the planned path of Cartesian space with added time attributes is called the planned trajectory of Cartesian space.

[0072] Among them, the kinematic constraints of the Cartesian space of the robot terminal are generally set according to the operation requirements of the robot terminal to meet the control purpose of the robot terminal.

[0073] In some embodiments, the Cartesian attitude space is represented by continuous Euler angles to solve the position discontinuity problem caused by the singular points of the Euler angles. A possible implementation of this step includes:

[0074] 1) The position and posture of each path point in the planned path are converted into the coordinates of the path space. The path space includes the path length dimensions on each coordinate axis of the Cartesian position space and the path length dimensions on each coordinate axis of the Cartesian attitude space. The path length of a path point on a coordinate axis in the Cartesian space is the length of the projected path from the first path point to the path point on the coordinate axis.

[0075] For example, the Cartesian position space includes three axes: X, Y, and Z, and the Cartesian attitude space includes θ, ψ, and The distance space includes the position distance length dimensions on the three coordinate axes X, Y and Z of the Cartesian position space and the θ, ψ and The attitude distance length dimension on the three coordinate axes.

[0076] 2) Convert the kinematic constraints of the Cartesian space at the end of the robot into the kinematic constraints of the path space.

[0077] Among them, the Jacobian matrix can be used to convert the kinematic constraints of the Cartesian space at the end of the robot into the kinematic constraints of the path space.

[0078] 3) Under the kinematic constraints of the path space, the planned trajectory of the robot terminal in the path space is obtained by velocity planning according to the coordinates of the path space, and the velocity and coordinates of the robot terminal in the path space are continuous.

[0079] The interpolation method of the velocity planner is used to complete the planned trajectory of the robot terminal in the path space, and the trajectories of each dimension of the path space are kept synchronized during the process.

[0080] 4) Obtain the planned trajectory of the robot terminal in Cartesian space based on the planned trajectory of the route space.

[0081] Among them, according to the motion trend of the route trajectory and the coordinates of each route trajectory point in the route space, a search method is used to convert the coordinates of each route trajectory point in the route space into the position of each route trajectory point in the Cartesian space, forming the planned trajectory of the robot terminal in the Cartesian space.

[0082] Among them, the speed of the robot terminal in the path space is continuous, the speed of the robot terminal in the Cartesian space is also continuous, the coordinates of the robot terminal in the path space are continuous, and the position of the robot terminal in the Cartesian space is also continuous.

[0083] In some other embodiments, the attitude space is also represented by continuous Euler angles, but planning is performed directly through the posture. This step adopts the following possible implementation methods, including:

[0084] Based on the kinematic constraints in the Cartesian space of the robot terminal, the position coordinates and attitude coordinates of each path point of the robot terminal are used to interpolate the path points of the robot terminal to obtain the planned trajectory of the robot terminal in the Cartesian space, and the posture continuity and speed continuity of each trajectory point of the planned trajectory are maintained.

[0085] In some other embodiments, the posture space is represented by Euler angles. A possible implementation of this step includes:

[0086] 1) Convert the posture coordinates of each path point at the end of the robot from Euler angles to quaternions.

[0087] Among them, the use of quaternions can solve the problem that Euler angles cannot be interpolated, but there is a problem of posture discontinuity.

[0088] 2) Based on the kinematic constraints in the Cartesian space of the robot terminal, the position coordinates of each path point of the robot terminal and the attitude coordinates expressed by quaternions are used to interpolate the path points of the robot terminal to obtain the planned trajectory of the robot terminal in the Cartesian space, and the speed of each trajectory point of the planned trajectory is kept continuous.

[0089] From the above, through the Cartesian space trajectory planning, the speed of the robot end in the Cartesian space meets the speed control requirements of the robot in the Cartesian space.

[0090] S140: According to the planned trajectory of the robot terminal in the Cartesian space, the joint nodes of the robot terminal in the joint space of the robot are obtained. The joint nodes are key points of the motion trajectory of the robot terminal in its joint space, and their coordinates are the coordinates of the joint space of the robot.

[0091] The planned trajectory of the joint space obtained in this step includes the joint trajectory, which is the relationship between the joint coordinates of the robot and time. Based on the relationship between each point in the Cartesian space and time in step S130, this step realizes the relationship between the position of each axis of the robot and time.

[0092] This step includes the following processes:

[0093] 1) According to the planned trajectory of the robot terminal in Cartesian space, the trajectory node of the robot terminal in Cartesian space is obtained, and the trajectory node is the key point of the motion trajectory of the robot terminal in Cartesian space.

[0094] In some embodiments, according to the curvature of each point on the planned trajectory of the robot terminal in the Cartesian space, a trajectory node of the robot terminal in the Cartesian space is obtained, and the trajectory node determines the trend of the planned trajectory of the robot terminal in the Cartesian space, and the trajectory of the robot terminal in the Cartesian space can be smoothly fitted.

[0095] 2) The trajectory node is used as a joint node, and the inverse kinematic solution is used to convert the position of the trajectory node into the coordinates of the joint node in the robot joint space.

[0096] The trajectory node is a key point of the motion trajectory of the robot terminal in the Cartesian space, which can be used as the key point of the motion trajectory of the robot terminal in its joint space, namely, the joint node.

[0097] Among them, the methods of kinematic inverse solution include analytical method, numerical method and geometric method, and this step does not limit the methods of kinematic inverse solution.

[0098] From the above, the joint nodes of the robot end in the robot joint space are obtained through the inverse kinematic solution, which serves as the basis for trajectory planning in the robot joint space.

[0099] S150: Obtaining a planned trajectory of the robot end in its joint space according to the coordinates of the joint nodes under the kinematic constraints of each axis of the robot.

[0100] Among them, the planned trajectory of the robot end in its joint space includes the planned trajectory of each axis of the robot in the joint space, and the planned trajectory of each axis in the joint space is synchronized, that is, each axis reaches the position corresponding to each joint node synchronously.

[0101] This step includes the following processes:

[0102] 1) Under the kinematic constraints of each axis of the robot, according to the coordinates of the joint nodes in the robot's joint space, the velocity planner's interpolation method is used to plan the trajectory of each axis of the robot in its joint space, and the duration of each axis between adjacent joint nodes is obtained accordingly.

[0103] 2) The synchronization duration of the robot between each pair of adjacent joint nodes is obtained according to the duration of each axis between each pair of adjacent joint nodes.

[0104] Among them, for a pair of adjacent joint nodes, the longest duration of each axis of the robot between the pair of adjacent joint nodes is used as the synchronization duration of each axis of the robot between the pair of adjacent joint nodes, that is, the movement duration of each axis of the robot between the pair of adjacent joint nodes is adjusted to the synchronization duration, so that the robot's mobility is optimized.

[0105] 3) According to the synchronization duration between each pair of adjacent joint nodes and the coordinates of the joint nodes in the joint space of the robot, velocity planning is used under the kinematic constraints of each axis of the robot to obtain the secondary planning trajectory of each axis of the robot in its joint space, and used as the planning trajectory of the robot terminal in its joint space.

[0106] From the above, the planned trajectory of each axis of the robot is synchronously planned under the kinematic constraints of each axis of the robot, so as to improve the motion performance of the robot, and make the speed, acceleration and jerk of the planned trajectory of each axis continuous, so as to reduce the vibration of each axis caused by motion jump.

[0107] In summary, an embodiment of a method for planning the trajectory of a robot terminal performs smooth fitting on the path nodes to obtain a planned path of the robot terminal in Cartesian space; under the kinematic constraints of the Cartesian space of the robot terminal, the planned trajectory of the robot terminal in Cartesian space is obtained according to the planned path using speed planning; according to the planned trajectory of the robot terminal in Cartesian space, the joint nodes of the robot terminal in the robot joint space are obtained; under the kinematic constraints of each axis of the robot, the planned trajectory of the robot terminal in its joint space is obtained according to the joint nodes.

[0108] The technical solution of this embodiment decouples the requirements for Cartesian space position accuracy, the kinematic constraints of Cartesian space motion, and the kinematic constraints of each axis of the robot during the trajectory planning process of the robot terminal through Cartesian space path planning, Cartesian space trajectory planning, and joint space trajectory planning. In Cartesian path planning, the position accuracy of the final planned trajectory is improved, in Cartesian space trajectory planning, the final planned trajectory satisfies the kinematic constraints of Cartesian space, and in joint space trajectory planning, the motion of each axis satisfies the kinematic constraints, thereby improving the trajectory motion performance of the robot terminal.

[0109] A second embodiment of a robot terminal trajectory planning method uses continuous Euler angles to represent posture coordinates; the path nodes are smoothly fitted by the passing point method to obtain the planned path of the robot terminal in Cartesian space; the planned trajectory of the robot terminal in the path space is obtained by speed planning using two-dimensional path space coordinates under the kinematic constraints of the robot terminal in Cartesian space, and converted into the planned trajectory of Cartesian space; the planned trajectory of the robot terminal in its joint space is obtained according to the joint nodes under the kinematic constraints of each axis of the robot, and the jump points are smoothed and filtered. A second embodiment of a robot terminal trajectory planning method not only decouples the requirements of Cartesian space position, Cartesian space motion and the requirements of each axis motion in the robot joint space, so that the final planned trajectory meets the requirements of Cartesian space position, Cartesian space motion and the requirements of each axis motion in the robot joint space, but also simplifies the synchronization problem of the planned trajectory of Cartesian space, makes the posture of the planned trajectory of Cartesian space continuous, and eliminates the motion jump points of the trajectory of the joint space, further improves the robot motion performance, and further reduces the vibration of each axis caused by motion jump.

[0110] Figure 2 The flowchart of a second embodiment of a method for planning a robot terminal trajectory is shown, including steps S210 to S250.

[0111] S210: Acquire a plurality of discrete path nodes at the end of the robot, wherein the coordinates of the path nodes are positions and postures in Cartesian space, and the posture coordinates are represented by continuous Euler angles.

[0112] Among them, the path node is the key point in the movement process of the robot terminal, which is generally the result of CAD / CAM output.

[0113] Among them, the continuous Euler angle used to represent the posture is convenient for calculating the coordinates of the posture dimension of the subsequent route planning space, so as to carry out trajectory planning in the route space and achieve posture continuity, which solves the problem that the Euler angle has singular points and cannot be interpolated, and also solves the problem that the posture interpolated by quaternion is not very continuous.

[0114] S220: Use polynomials or B-splines to smoothly fit the path nodes to obtain the planned path of the robot terminal in the Cartesian space.

[0115] The path nodes are smoothly fitted using polynomials or B-splines, and the planned path after smooth fitting passes through each path node.

[0116] From the above, using polynomials or B-splines to smoothly fit the path nodes meets the requirements of smoothness and accuracy for the planned path of the robot terminal.

[0117] S230: Convert the position and posture of each path point in the planned path into a two-dimensional path space coordinate, obtain the planned trajectory of the robot terminal in the path space according to the path space coordinate, and convert it into a planned trajectory in Cartesian space. The speed and position of the planned trajectory in Cartesian space are continuous.

[0118] This step includes the following sub-steps:

[0119] 1) The position and posture of each path point in the planned path are converted into the coordinates of the path space. The path space includes the position distance length dimension of the Cartesian position space and the attitude distance length dimension of the Cartesian attitude space.

[0120] Among them, the position distance length of a path point is the length of the distance from the first path point to the path point in the Cartesian position space, and the attitude distance length of a path point is the length of the distance from the first path point to the path point in the Cartesian attitude space.

[0121] 2) Convert the kinematic constraints of the Cartesian space at the end of the robot into the kinematic constraints of the path space.

[0122] Among them, the kinematic constraints of the Cartesian space of the robot terminal are generally set according to the operation requirements of the robot terminal to meet the control purpose of the robot terminal.

[0123] Among them, the Jacobian matrix can be used to convert the kinematic constraints of the Cartesian space at the end of the robot into the kinematic constraints of the path space.

[0124] 3) Under the kinematic constraints of the path space, the planned trajectory of the robot terminal in the path space is obtained by velocity planning according to the coordinates of the path space, and the velocity and coordinates of the robot terminal in the path space are continuous.

[0125] The interpolation method of the velocity planner is used to complete the planned trajectory of the robot terminal in the path space, and the trajectory of each dimension of the path space is kept synchronized in the process. Because in this embodiment, only two dimensions of the path space need to be kept synchronized, the planning accuracy is high.

[0126] 4) Obtain the planned trajectory of the robot terminal in Cartesian space based on the planned trajectory of the route space.

[0127] Among them, according to the motion trend of the route trajectory and the coordinates of each route trajectory point in the route space, a search method is used to convert the coordinates of each route trajectory point in the route space into the position of each route trajectory point in the Cartesian space, forming the planned trajectory of the robot terminal in the Cartesian space.

[0128] From the above, the speed of the robot terminal in the path space is continuous, and the speed of the robot terminal in the Cartesian space is also continuous. The position and posture dimensions of the robot terminal in the path space are continuous, and the posture of the robot terminal in the Cartesian space is also continuous. And only two-dimensional path space is used for planning, so the planning accuracy is high.

[0129] S240: According to the planned trajectory of the robot terminal in the Cartesian space, the joint nodes of the robot terminal in the robot joint space are obtained. The joint nodes are key points of the motion trajectory of the robot terminal in its joint space, and their coordinates are the coordinates of the robot joint space.

[0130] This step is the same as step S140 of the first embodiment of the method for planning the trajectory of the robot terminal, and will not be described in detail here.

[0131] S250: Under the kinematic constraints of each axis of the robot, first obtain the time synchronization between adjacent nodes according to the joint nodes, then obtain the planned trajectory of the robot terminal in its joint space through speed planning, and filter the planned trajectory. The final planned trajectory speed, acceleration and jerk are continuous.

[0132] Among them, the planned trajectory of the robot end in its joint space includes the planned trajectory of each axis of the robot in the joint space, and the planned trajectory of each axis in the joint space is synchronized, that is, each axis reaches the position corresponding to each joint node synchronously.

[0133] The kinematic constraints of each axis of the robot are obtained according to the dynamic constraints of each axis of the robot, so that the planned trajectory of each axis of the robot meets the dynamic constraints, and each axis of the robot can run according to the corresponding planned trajectory.

[0134] Among them, this step is completed by a speed planner, in which the relationship between position and time is an analytical expression with cosine as the kernel function. The speed planner uses an S-curve to predict the speed during interpolation.

[0135] This step includes the following processes:

[0136] 1) According to the coordinates of the joint nodes in the robot joint space, the inflection points of each axis of the robot are obtained.

[0137] The speed of an axis of a robot at the turning point of the axis is 0.

[0138] 2) Under the kinematic constraints of each axis of the robot, according to the coordinates of the inflection points of each axis of the robot in the robot's joint space, the velocity planner's interpolation method is used to plan the trajectory of each axis of the robot in its joint space, and the duration of each axis of the robot between adjacent joint nodes is obtained accordingly.

[0139] 3) The synchronization duration of the robot between each pair of adjacent joint nodes is obtained according to the duration of each axis of the robot between each pair of adjacent joint nodes.

[0140] Among them, for a pair of adjacent joint nodes, the longest duration of each axis of the robot between the pair of adjacent joint nodes is used as the synchronization duration of each axis of the robot between the pair of adjacent joint nodes, that is, the movement duration of each axis of the robot between the pair of adjacent joint nodes is adjusted to the synchronization duration.

[0141] 4) According to the synchronization duration between each pair of adjacent joint nodes and the coordinates of the joint nodes in the joint space of the robot, and under the kinematic constraints of each axis of the robot, velocity planning is used to obtain the secondary planning trajectory of each axis of the robot in its joint space.

[0142] 5) When there is a velocity, acceleration or jerk jump in the secondary planning trajectory of an axis of the robot, the jump is made continuous through balancing filtering, and the secondary planning trajectory of the axis is adjusted as the final planning trajectory of the axis in the joint space of the robot.

[0143] From the above, by adding jump point filtering to the quadratic planning trajectory, the continuity of velocity, acceleration and jerk on the planned trajectory of each axis of the robot is further improved.

[0144] In summary, a second embodiment of a robot terminal trajectory planning method uses continuous Euler angles to represent posture coordinates; the path nodes are smoothly fitted by the passing point method to obtain the planned path of the robot terminal in Cartesian space; the planned trajectory of the robot terminal in the path space is obtained by speed planning using two-dimensional path space coordinates under the kinematic constraints of the Cartesian space of the robot terminal, and converted into the planned trajectory of the Cartesian space; the planned trajectory of the robot terminal in its joint space is obtained according to the joint nodes under the kinematic constraints of each axis of the robot, and the jump points are smoothed and filtered. A second embodiment of a robot terminal trajectory planning method not only decouples the requirements of Cartesian space position, Cartesian space motion and the requirements of each axis motion in the robot joint space, so that the final planned trajectory meets the requirements of Cartesian space position, Cartesian space motion and the requirements of each axis motion in the robot joint space, but also simplifies the synchronization problem of the planned trajectory of Cartesian space, makes the posture of the planned trajectory of Cartesian space continuous, and eliminates the motion jump points of the trajectory of the joint space, further improves the robot motion performance, and further reduces the vibration of each axis caused by motion jump.

[0145] Combine the following Figure 3 and Figure 4 An embodiment of a planning device for a robot terminal trajectory is introduced.

[0146] A robot terminal trajectory planning device embodiment 1 executes a robot terminal trajectory planning method embodiment 1 described in the method, Figure 3 The structure of a first embodiment of a robot terminal trajectory planning device is shown, which includes: a node acquisition module 310, a path smoothing module 320, a Cartesian trajectory planning module 330, a kinematics inverse solution module 340 and a joint trajectory planning module 350.

[0147] The node acquisition module 310 is used to acquire a number of discrete path nodes of the robot terminal, and the coordinates of the path nodes are the positions and postures in the Cartesian space. For its working principle and advantages, please refer to step S110 of the first embodiment of a method for planning a trajectory of a robot terminal.

[0148] The path smoothing module 320 is used to perform smooth fitting on each path node to obtain the planned path of the robot terminal in the Cartesian space. For its working principle and advantages, please refer to step S120 of the first embodiment of a method for planning a trajectory of a robot terminal.

[0149] The Cartesian trajectory planning module 330 is used to obtain the planned trajectory of the robot terminal in the Cartesian space by using velocity planning according to the planned path under the kinematic constraints of the robot terminal in the Cartesian space. For its working principle and advantages, please refer to step S130 of the first embodiment of a robot terminal trajectory planning method.

[0150] The kinematics inverse solution module 340 is used to obtain the joint nodes of the robot end in the robot joint space according to the planned trajectory of the robot end in the Cartesian space. The joint nodes are the key points of the motion trajectory of the robot end in its joint space, and their coordinates are the coordinates of the robot joint space. For its working principle and advantages, please refer to step S140 of the first embodiment of a method for planning a trajectory of a robot end.

[0151] The joint trajectory planning module 350 is used to obtain the planned trajectory of the robot end in its joint space according to the joint nodes under the kinematic constraints of each axis of the robot. For its working principle and advantages, please refer to step S150 of the first embodiment of a method for planning the trajectory of a robot end.

[0152] A robot terminal trajectory planning device embodiment 2 executes a robot terminal trajectory planning method embodiment 2, Figure 4 The structure of a second embodiment of a robot terminal trajectory planning device is shown, which includes: a node acquisition module 410, a path smoothing module 420, a Cartesian trajectory planning module 430, a kinematics inverse solution module 440 and a joint trajectory planning module 450.

[0153] The node acquisition module 410 is used to acquire a number of discrete path nodes of the robot terminal. The coordinates of the path nodes are the positions and postures in Cartesian space, and their posture coordinates are represented by continuous Euler angles. For its working principle and advantages, please refer to step S210 of the second embodiment of a method for planning a robot terminal trajectory.

[0154] The path smoothing module 420 is used to smoothly fit each path node using polynomials or B-splines to obtain the planned path of the robot terminal in Cartesian space. For its working principle and advantages, please refer to step S220 of the second embodiment of a method for planning a trajectory of a robot terminal.

[0155] The Cartesian trajectory planning module 430 is used to convert the posture of each path point in the planned path into a two-dimensional path space coordinate, obtain the planned trajectory of the robot end in the path space according to the path space coordinate, and convert it into a planned trajectory in the Cartesian space. The speed and posture of the planned trajectory in the Cartesian space are continuous. For its working principle and advantages, please refer to step S230 of the second embodiment of a method for planning a robot end trajectory.

[0156] The kinematic inverse solution module 440 is used to obtain the joint nodes of the robot terminal in the robot joint space according to the planned trajectory of the robot terminal in the Cartesian space. The joint nodes are the key points of the motion trajectory of the robot terminal in its joint space, and their coordinates are the coordinates of the robot joint space. For its working principle and advantages, please refer to step S240 of the second embodiment of a method for planning a trajectory of a robot terminal.

[0157] The joint trajectory planning module 450 is used to obtain the time synchronization between adjacent nodes according to the joint nodes and then obtain the planned trajectory of the robot terminal in its joint space through speed planning under the kinematic constraints of each axis of the robot, and filter the planned trajectory. The final planned trajectory speed, acceleration and jerk are continuous. For its working principle and advantages, please refer to step S250 of the second embodiment of a robot terminal trajectory planning method.

[0158] The embodiment of the present invention further provides a computing device, Figure 5 Detailed introduction.

[0159] The computing device 500 includes a processor 510 , a memory 520 , a communication interface 530 , and a bus 540 .

[0160] It should be understood that the communication interface 530 in the computing device 500 shown in this figure can be used to communicate with other devices.

[0161] The processor 510 may be connected to a memory 520. The memory 520 may be used to store the program code and data. Therefore, the memory 520 may be a storage unit inside the processor 510, or an external storage unit independent of the processor 510, or a component including a storage unit inside the processor 510 and an external storage unit independent of the processor 510.

[0162] Optionally, the computing device 500 may further include a bus 540. The memory 520 and the communication interface 530 may be connected to the processor 510 via the bus 540. The bus 540 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus 540 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the figure is represented by only one line, but it does not mean that there is only one bus or one type of bus.

[0163] It should be understood that in the embodiment of the present invention, the processor 510 may adopt a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. Alternatively, the processor 510 may adopt one or more integrated circuits to execute relevant programs to implement the technical solutions provided in the embodiment of the present invention.

[0164] The memory 520 may include a read-only memory and a random access memory, and provides instructions and data to the processor 510. A portion of the processor 510 may also include a nonvolatile random access memory. For example, the processor 510 may also store information on the device type.

[0165] When the computing device 500 is running, the processor 510 executes the computer-executable instructions in the memory 520 to perform the operation steps of each method embodiment.

[0166] It should be understood that the computing device 500 according to an embodiment of the present invention can correspond to the corresponding subjects in the methods according to the various embodiments of the present invention, and the above-mentioned and other operations and / or functions of each module in the computing device 500 are respectively for implementing the corresponding processes of each method in the embodiment of the present method, which will not be repeated here for the sake of brevity.

[0167] 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 the present invention.

[0168] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0169] In the several embodiments provided by the present invention, 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 the 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.

[0170] 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 embodiment of the method.

[0171] In addition, each functional unit in each embodiment of the present invention 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.

[0172] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, 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 several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the decoding method described in each embodiment of the present invention. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0173] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, it is used to execute the operating steps of each method embodiment.

[0174] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include, an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0175] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0176] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0177] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0178] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may also include more other equivalent embodiments without departing from the concept of the present invention, all of which belong to the scope of protection of the present invention.

Claims

1. A method for planning a robot terminal trajectory, characterized in that: include: Acquire a number of discrete path nodes at the end of the robot, wherein the coordinates of the path nodes are Cartesian space postures, wherein the posture in the posture is represented by continuous Euler angles, the continuous Euler angle of a path node is equal to the sum of the continuous Euler angle of the previous path node and the Euler angle rotation angle of the node, and the Euler angle rotation angle of a path node is equal to the positive rotation angle of the Euler angle from the previous path node to the path node; Perform smooth fitting on the path nodes to obtain the planned path of the robot terminal in Cartesian space; Under the velocity constraint condition of the Cartesian space of the robot terminal, obtaining the planned trajectory of the robot terminal in the Cartesian space through velocity planning according to the planned path; According to the planned trajectory of the robot end in Cartesian space, the joint nodes of the robot end in the robot joint space are obtained, wherein the joint nodes are key points of the motion trajectory of the robot end in the joint space, and the coordinates thereof are the coordinates of the robot joint space; Under the kinematic constraints of each axis of the robot, the planned trajectory of the robot end in its joint space is obtained according to the joint nodes: Wherein, under the kinematic constraints of the Cartesian space of the robot terminal, the planned trajectory of the robot terminal in the Cartesian space is obtained according to the planned path by using velocity planning, including: According to the position and posture of each path point of the planned path, the position distance length and the angle distance length of each path point are obtained, and the coordinates of the path space are composed of the position distance length and the angle distance length. The position distance length of a path point is the length of the planned path from the first path point to the path point in the Cartesian position space, and the angle distance length of a path point is the length of the planned path from the first path point to the path point in the Cartesian posture space. Convert the kinematic constraints of the Cartesian space at the end of the robot into the kinematic constraints of the path space. Under the kinematic constraints of the path space, the planned trajectory of the robot terminal in the path space is obtained by velocity planning according to the coordinates of the path space, and the velocity of the robot terminal in the path space is continuous. The planned trajectory of the robot terminal in the Cartesian space is obtained according to the planned trajectory in the path space.

2. The method according to claim 1, characterized in that: The process of performing smooth fitting on the path nodes includes one of the following: Perform smooth fitting of the path nodes using line segments and circular arcs; The path nodes are smoothly fitted using polynomials or B-splines.

3. The method according to claim 1, characterized in that: Under the kinematic constraints of the Cartesian space of the robot terminal, the planned trajectory of the robot terminal in the Cartesian space is obtained by velocity planning according to the planned path, including: According to the position and posture of each path point of the planned path, the distance length of each path point on each coordinate axis of the Cartesian position space is obtained, and the coordinates of the distance space of the planned path are formed, and the distance length of a path point on a coordinate axis of the Cartesian space is the length of the projected distance of the planned path from the first path point to the path point on the coordinate axis; Convert the kinematic constraints of the Cartesian space at the end of the robot into the kinematic constraints of the path space; Under the kinematic constraints of the path space, a planned trajectory of the robot terminal in the path space is obtained by velocity planning according to the coordinates of the path space, and the velocity of the robot terminal in the path space is continuous; The planned trajectory of the robot terminal in the Cartesian space is obtained according to the planned trajectory in the path space.

4. The method according to claim 1, characterized in that: The step of obtaining the joint nodes of the robot terminal in the robot joint space according to the planned trajectory of the robot terminal in the Cartesian space includes: According to the planned trajectory of the robot terminal in the Cartesian space, a trajectory node of the robot terminal in the Cartesian space is obtained, wherein the trajectory node is a key point of the motion trajectory of the robot terminal in the Cartesian space; The trajectory node is used as the joint node, and the position of the trajectory node is converted into the coordinates of the joint node in the robot joint space by using the inverse kinematic solution.

5. The method according to claim 1, characterized in that: The step of obtaining the planned trajectory of the robot terminal in its joint space according to the joint nodes under the kinematic constraints of each axis of the robot includes: Under the kinematic constraints of each axis of the robot, a planned trajectory of each axis of the robot in the joint space is obtained by velocity planning according to the coordinates of the joint nodes in the joint space of the robot, and the motion duration of each axis of the robot between adjacent joint nodes is obtained accordingly; For any pair of adjacent joint nodes, the longest time of the movement of each axis of the robot between the pair of adjacent joint nodes is taken as the synchronization time between the pair of adjacent joint nodes; According to the synchronization duration between each pair of adjacent joint nodes of the robot and the coordinates of the joint nodes in the joint space of the robot, velocity planning is used under the kinematic constraints of each axis of the robot to obtain the secondary planning trajectory of each axis of the robot in the joint space, and the secondary planning trajectory is used as the planning trajectory of the robot terminal in its joint space. In the planning trajectory, the speed, acceleration and jerk of each axis of the robot are continuous.

6. A robot terminal trajectory planning device, characterized in that: include: A node acquisition module is used to acquire a number of discrete path nodes at the end of the robot, wherein the coordinates of the path nodes are positions in Cartesian space; A path smoothing module is used to perform smooth fitting on the path nodes to obtain a planned path of the robot terminal in Cartesian space; A Cartesian trajectory planning module, used to obtain the planned trajectory of the robot terminal in the Cartesian space by using velocity planning according to the planned path under the kinematic constraints of the Cartesian space of the robot terminal; The kinematics inverse solution module is used to obtain the joint nodes of the robot end in the robot joint space according to the planned trajectory of the robot end in the Cartesian space. The joint nodes are the key points of the motion trajectory of the robot end in its joint space, and their coordinates are the coordinates of the robot joint space; A joint trajectory planning module, used to obtain the planned trajectory of the robot end in the joint space according to the joint nodes under the kinematic constraints of each axis of the robot; The Cartesian trajectory planning module is specifically used to include: Under the kinematic constraints of the Cartesian space of the robot terminal, the planned trajectory of the robot terminal in the Cartesian space is obtained by velocity planning according to the planned path, including: According to the position and posture of each path point of the planned path, the position distance length and the angle distance length of each path point are obtained, and the coordinates of the path space are composed of the position distance length and the angle distance length. The position distance length of a path point is the length of the planned path from the first path point to the path point in the Cartesian position space, and the angle distance length of a path point is the length of the planned path from the first path point to the path point in the Cartesian posture space. Convert the kinematic constraints of the Cartesian space at the end of the robot into the kinematic constraints of the path space. Under the kinematic constraints of the path space, the planned trajectory of the robot terminal in the path space is obtained by velocity planning according to the coordinates of the path space, and the velocity of the robot terminal in the path space is continuous. The planned trajectory of the robot terminal in the Cartesian space is obtained according to the planned trajectory in the path space.

7. A computing device, characterized in that include: bus; A communication interface connected to the bus; at least one processor connected to the bus; as well as At least one memory is connected to the bus and stores program instructions, and when the program instructions are executed by the at least one processor, the at least one processor executes the method according to any one of claims 1 to 5.

8. A computer-readable storage medium having program instructions stored thereon, characterized in that: When the program instructions are executed by a computer, the computer executes the method according to any one of claims 1 to 5.