Robot joint space angle acquisition method and path planning method and equipment

By discretizing the joint movement range of the robot's external rail and iteratively solving the joint space angle, the path planning of the welding robot is optimized, solving the problems of insufficient utilization of redundant features and low planning success rate in the existing technology, and improving the robot motion planning. efficiency and feasibility.

CN118848967AActive Publication Date: 2024-10-29SPEEDBOT ROBOTICS CO LTD

Patent Information

Application Number
CN202410920235.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-10-29
Estimated Expiration
2044-07-10

AI Technical Summary

Technical Problem

It is difficult for existing welding robots with sky rails and ground rails to make full use of redundant features during motion planning, and the success rate of path planning is low, affected by problems such as initial values, joint limits, and strange configurations.

Method used

By discretizing the joint movement range of the robot's external axis, the joint space angle of the robot's external axis is obtained, and combined with the inverse kinematics of the robotic arm, iterative solution is used to obtain the complete joint space angle, and angles beyond the operable range and collision are eliminated to optimize the path. planning.

Benefits of technology

It improves the robot's degree of freedom and path planning success rate during motion planning, makes full use of the redundant characteristics of the sky rail and the ground rail, and reduces the impact of initial values ​​and joint limits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118848967A_ABST
    Figure CN118848967A_ABST
Patent Text Reader

Abstract

The invention provides a robot joint space angle acquisition method and a path planning method and equipment, and the method comprises the steps: obtaining a plurality of groups of robot external shaft joint space angles according to the prior joint movement range of a robot external shaft, and then substituting the plurality of groups of robot external shaft joint space angles into the forward kinematics of the robot external shaft, obtaining the pose of the base of the robot mechanical arm corresponding to each group of joint space angles under the world coordinate system, then obtaining the poses of the tail ends of a plurality of groups of robot mechanical arms under the robot base coordinate system according to the priori poses of the tail ends of the robot mechanical arms under the world coordinate system, and substituting the poses into the inverse kinematics of the robot mechanical arm to obtain the final position of the robot mechanical arm. And a plurality of groups of corresponding robot joint space angles are obtained by combining the corresponding robot mechanical arm joint space angles and the robot external shaft joint space angles. The problems that in the prior art, the redundancy characteristic of a redundant robot cannot be fully utilized, and the success rate of path planning is low are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of robot control, and in particular to a robot joint space angle acquisition method and path planning method and equipment. Background Art

[0002] There are two common strategies for motion planning of existing welding robots with ceiling rails and floor rails. One is to regard the floor rails and ceiling rails as a set of kinematic models, and the 6-axis robotic arm at the end as a set of kinematic models, and perform motion planning for the two sets of kinematic models separately; the other is to regard the floor rails, ceiling rails and 6-axis robotic arm as a robot with joint redundancy, that is, a robot with greater degrees of freedom in the joint space than in the task space, and then use the theory related to redundant robots for motion planning.

[0003] However, it is difficult to determine the values ​​of the ceiling rail and the ground rail when the ground rail, ceiling rail and robotic arm are planned separately; and when the ground rail, ceiling rail and robotic arm are regarded as a robot with joint redundancy and the inverse kinematics numerical solution related to the redundant robot is used to solve the joint space angle and planning, it will be disturbed by initial values, joint limits, singular configurations and other problems, resulting in a low planning success rate.

[0004] Therefore, how to improve the problems that the existing technology cannot fully utilize the redundant characteristics of redundant robots and the success rate of path planning is a technical problem that needs to be solved urgently in this field. Summary of the invention

[0005] Based on this, the purpose of this application is to provide a method for acquiring the joint space angle of a robot with a ceiling rail and a ground rail, as well as a path planning method and device, to solve at least one of the technical problems mentioned in the above background technology.

[0006] In a first aspect, the present application provides a method for acquiring a joint space angle of a robot with a ceiling rail and a floor rail, comprising:

[0007] S1: discretize the joint movement range of the robot's external axis according to the prior joint movement range of the robot's external axis to obtain several groups of joint space angles of the robot's external axis;

[0008] S2: Substitute several sets of robot external axis joint space angles into the robot external axis forward kinematics to obtain the position and posture of the robot external axis end corresponding to each set of robot external axis joint space angles in the world coordinate system, which is regarded as the position and posture of the base of the robot manipulator corresponding to each set of joint space angles in the world coordinate system;

[0009] S3: obtaining the positions and poses of the end portions of the robot manipulators in the robot base coordinate system according to the positions and poses of the bases of the robot manipulators in the world coordinate system and the prior positions and poses of the end portions of the robot manipulators in the world coordinate system;

[0010] S4: Substitute the posture of each group of robot arm ends in the robot base coordinate system into the inverse kinematics of the robot arm to obtain several groups of robot arm joint space angles corresponding to the posture of each group of robot arm ends in the robot base coordinate system, and combine the corresponding robot arm joint space angles and the robot external axis joint space angles to obtain several groups of corresponding robot joint space angles.

[0011] Furthermore, the positive kinematics of the robot's external axes are:

[0012]

[0013] in, is the position of the robot's external axis end in the world coordinate system, is the transformation matrix between the xth joint and the x-1th joint of the robot's external axis, representing the spatial angle of the xth joint of the robot's external axis, where 1 <x<m。

[0014] Furthermore, the step of obtaining the positions and postures of the robot manipulator ends in the robot base coordinate system also includes:

[0015] When a welding gun is installed at the end of the robot arm, the end of the welding gun is actually the end of the robot arm:

[0016]

[0017] in, is the position of the robot welding gun end in the world coordinate system, Represents the transformation matrix from the end of the welding gun to the flange at the end of the robot arm, is the position of the robot arm end in the world coordinate system.

[0018] Further, the specific steps of obtaining several groups of robot joint space angles by combining the corresponding robot manipulator joint space angles and the robot external axis joint space angles include:

[0019] Traverse the posture of the first joint of the joint space angle of each group of robot manipulators and the end posture of the robot's external axis, and determine whether the posture is the same. If so, combine the corresponding robot manipulator's joint space angle and the robot's external axis joint space angle, and iterate continuously until all complete robot joint space angles are obtained.

[0020] Furthermore, after obtaining a plurality of corresponding sets of joint space angles of the robot manipulator, the method further includes:

[0021] S44: Determine whether the angle of each joint of the robot arm is greater than the operable angle range of the corresponding joint. If so, remove the group of joint space angles; if not, execute step S45;

[0022] S45: Determine whether the robot arm collides with obstacles in the environment when in each group of joint space angles. If so, remove the group of angles. If not, obtain a suitable joint space angle.

[0023] In a second aspect, the present application provides a robot path planning method, comprising:

[0024] P1: Install a welding gun and several identification sensors at the end of the welding robot;

[0025] P2: Control the robot arm to move to the prior weld position, obtain the position of the robot arm end in the world coordinate system when it is located at the coordinates of the current weld starting point, and obtain several sets of joint space angles corresponding to the current weld starting point according to any of the above methods;

[0026] P3: Obtain the joint space angle when the end of the robot arm is in the safe position, obtain several corresponding joint space paths between the safe position and the current weld starting point according to several groups of joint space angles corresponding to the current weld starting point, and obtain the optimal joint space path according to the preset conditions;

[0027] P4: Get the prior weld direction, control the end of the robot arm to run along the current weld start point and weld end point, get the pose of the current weld start point in the world coordinate system and several sampling path points between the current weld start point and weld end point, and get the joint space path between the current weld start point and weld end point;

[0028] P5: Based on the prior weld position, determine whether there is a weld without a planned path. If so, execute step P6. If not, complete the path planning.

[0029] P6: According to the prior weld position, obtain the sampling path points between the current weld starting point and the next weld starting point to obtain the joint space path between the two points, and use the next weld starting point as the current weld starting point, and return to step P5.

[0030] Furthermore, the step of obtaining the optimal joint space path according to the preset conditions includes:

[0031] Obtain the robot maneuverability and joint movement corresponding to each joint space path;

[0032] A path with the smallest weighted combination of the robot's maneuverability and joint movement among several groups of spatial joint paths is obtained, which is regarded as the final joint spatial path.

[0033] Furthermore, the position of the current weld start point in the world coordinate system and several sampling path points between the current weld start point and the weld end point are obtained to obtain the joint space path between the current weld start point and the weld end point, including:

[0034] The robot arm is controlled to move along the prior weld direction, and the weld is sampled at set sampling intervals by the recognition sensor to obtain the position of the current weld starting point in the world coordinate system and several sampling path points between the current weld starting point and the weld end point;

[0035] Substitute the position of the current weld starting point in the world coordinate system into any of the above methods to obtain several sets of joint space angles corresponding to the current weld starting point;

[0036] A path with the smallest weighted combination of the robot's maneuverability and joint movement among several groups of spatial joint paths is obtained, which is regarded as the final joint spatial path.

[0037] Furthermore, it is characterized in that the method further comprises:

[0038] Get the current joint space angle of the robot at any position;

[0039] According to the current joint space angle of the robot at any position and the joint space angle when the end of the robot arm is at a safe position, a number of corresponding joint space paths between the safe position and the starting point of the initial weld are obtained;

[0040] A path with the smallest weighted combination of the robot's maneuverability and joint movement among several groups of spatial joint paths is obtained, which is regarded as the final joint spatial path.

[0041] In a third aspect, the present application also provides a terminal device comprising a memory and a processor; the memory stores program code that can be executed by the processor; the program code is used to execute the method for acquiring the joint space angle of a robot with an overhead rail and a ground rail described in the first aspect and / or the path planning method of the robot described in the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 This is a flow chart of a method for acquiring joint space angles of a robot with overhead rails and ground rails according to an embodiment of the present invention;

[0043] Figure 2 The figure is a flow chart of a robot path planning method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0044] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0045] It should be noted that if the embodiments of the present invention involve directional indications, such as up, down, left, right, front, back, etc., then the directional indication is only used to explain the relative position relationship, movement status, etc. between the components in a certain specific posture. If the specific posture changes, the directional indication will also change accordingly. In addition, if the embodiments of the present invention involve descriptions of "first, second", "S1, S2", "step one, step two", etc., then such descriptions are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of indicated technical features or indicating the execution order of the method, etc. Those skilled in the art can understand that anything that does not violate the gist of the invention under the technical concept of the invention should be included in the protection scope of the present invention.

[0046] like Figure 1 As shown, the present invention provides a method for obtaining the joint space angle of a robot with a ceiling rail and a floor rail, comprising:

[0047] S1: discretize the joint movement range of the robot's external axis according to the prior joint movement range of the robot's external axis to obtain several groups of joint space angles of the robot's external axis;

[0048] Specifically, the a priori joint movement range can be obtained directly from the robot control software according to the robot's technical specification sheet, or by a technician in the field manually controlling the robot's external axis in advance and recording its movement range;

[0049] More specifically, the movement range of each joint of the robot's external axis can be discretized according to the prior joint movement range of the robot's external axis, and the movement range of each joint of the robot's external axis can be evenly divided into several parts to obtain several groups of corresponding robot's external axis joint space angles; the specific number of groups of specific robot's external axis joint space angles can be optionally but not limited to being determined by technical personnel in this field; preferably, the movement range of each joint of the robot's external axis is divided according to the minimum accuracy of the robot's external axis joint motor.

[0050] Further preferably, it is optional but not limited to assuming that the number of external axes of the robot is m, and the number of joints of the robot arm is n, then the joint space angle of the robot can be expressed as formula 1-1:

[0051] q=[q0,...,q m-1,q m ,...,q m+n-1 ]1-1

[0052] Among them, q is the joint space angle of the robot, q i is the joint space angle of the robot's i-th joint, 0<i <m+n。

[0053] For example, it is optional but not limited to dividing the movement range of each joint of the robot's external axis into h evenly according to the prior joint movement range of the robot's external axis j to obtain h j The candidate angle values ​​of the moving range, (where j = 0 ~ m-1, h j represents the number of parts of the movement range of each joint of the robot's external axis), we can get The candidate angle values ​​of the robot's external axes are The joint space angles of the external axes of the group robot; preset constraints, including joint limits, collision detection, maximum speed and maximum acceleration data; it is worth noting that the preset constraints are optional but not limited to being directly read from the robot's specification sheet, joint sensors, collision detection devices, controllers and other components.

[0054] S2: Substitute several sets of robot external axis joint space angles into the robot external axis forward kinematics to obtain the position and posture of the robot external axis end corresponding to each set of robot external axis joint space angles in the world coordinate system, which is regarded as the position and posture of the base of the robot manipulator corresponding to each set of joint space angles in the world coordinate system;

[0055] Specifically, it is optional but not limited to substituting several groups of robot external axis joint space angles obtained in step S1 into the positive kinematics of the robot external axis to obtain the position and posture of the robot external axis end corresponding to each group of robot external axis joint space angles in the world coordinate system. Since the robot external axis end is connected to the base of the robot manipulator arm, the position and posture of the base of the robot manipulator arm corresponding to each group of joint space angles in the world coordinate system are obtained at the same time.

[0056] For example, it is optional but not limited to substituting each set of robot external axis joint space angles into the positive kinematics of the robot external axis to obtain the position and posture of the robot external axis end corresponding to each set of robot external axis joint space angles in the world coordinate system. Since the end of the robot's external axis is connected to the base of the robot's mechanical arm, the positions and postures of the bases of several sets of robot's mechanical arms in the world coordinate system are obtained. in,

[0057] Preferably, the positive kinematics of the robot's external axes may be optionally but not limited to be expressed as 2-1:

[0058]

[0059] in, is the position of the end of the robot's external axis in the world coordinate system (equivalent to the position of the base of the robot's manipulator in the world coordinate system), is the transformation matrix between the xth joint and the x-1th joint of the robot's external axis, representing the spatial angle of the xth joint of the robot's external axis, where 1 <x<m。

[0060] S3: obtaining the positions and postures of the robot arm ends in the robot base coordinate system according to the positions and postures of the robot arm bases in the world coordinate system and the prior positions and postures of the robot arm ends in the world coordinate system; the prior positions and postures may be obtained according to the robot CAD model, but are not limited to the prior positions and postures.

[0061] Specifically, it is optional but not limited to obtaining the prior position and posture of the robot's mechanical arm end in the world coordinate system based on the robot CAD model Then combined with the results obtained in step S2 The position of the robot arm base in the world coordinate system corresponding to the joint space angle The position and posture of the end of the robot arm in the robot base coordinate system can be calculated in

[0062] Further preferably, when a welding gun is installed at the end of the robot arm, the end of the welding gun is actually the end of the robot arm, so the position and posture of the end of the welding gun in the world coordinate system is calculated according to formula 3-1:

[0063]

[0064] in, is the position of the robot welding gun end in the world coordinate system, Represents the transformation matrix from the end of the welding gun to the flange at the end of the robot arm, is the position of the robot arm end in the world coordinate system.

[0065] S4: Substitute the posture of each group of robot arm ends in the robot base coordinate system into the inverse kinematics of the robot arm to obtain several groups of robot arm joint space angles corresponding to the posture of each group of robot arm ends in the robot base coordinate system, and combine the corresponding robot arm joint space angles and the robot external axis joint space angles to obtain several groups of corresponding robot joint space angles.

[0066] Specifically, it is optional but not limited to substituting the position and posture of each group of robot arm end portions in the robot base coordinate system obtained in step S3 into the robot inverse kinematics to obtain several groups of corresponding robot arm joint space angles. Since the position and posture of the base of the robot arm is the position and posture of the robot's external axis end portion, the joint space angles of each group of robot arms are combined with the corresponding robot external axis joint space angles to obtain several groups of complete robot joint space angles.

[0067] Preferably, the steps of obtaining several groups of corresponding robot joint space angles in combination with the corresponding robot manipulator joint space angles and the robot external axis joint space angles may include but are not limited to:

[0068] S41: traverse the posture of the first joint of the joint space angle of each group of robot manipulators and the end posture of the robot's external axis, and determine whether the posture is the same. If so, combine the corresponding robot manipulator joint space angle and the robot's external axis joint space angle, and iterate continuously until all complete robot joint space angles are obtained.

[0069] For example, according to step S3, a set of joint angles of the robot's external axis can obtain the position and posture of the end of the robot's external axis in the world coordinate system. Since the end of the robot's external axis is connected to the robot base, the position and posture of the robot arm base in the world coordinate system are obtained. According to the position of the base of the robot arm in the world coordinate system The prior pose of the end of the robot arm in the world coordinate system can be used to calculate the pose of the end of the robot arm in the robot base coordinate system. Then the position and posture of the end of the robot arm in the robot base coordinate system can be Substituting the inverse kinematics of the robot arm can obtain k solutions, i.e., k groups of joint space angles of the robot arm. When the value of k is not 0, it can be considered that several valid groups of joint space angles of the robot arm are obtained. Combining these groups of joint space angles of the robot arm with the joint angles of the robot's external axis in the first step can obtain several groups of complete robot joint angles. Repeat the above steps until the joint angles of all robot's external axes are calculated, and all complete robot joint space angles can be obtained. Further preferably, after obtaining several groups of corresponding joint space angles of the robot arm, optional but not limited to the following are also included:

[0070] S45: Determine whether the angle of each joint of the robot arm is greater than the operable angle range of the corresponding joint. If so, remove the group of joint space angles; if not, execute step S46;

[0071] Specifically, it is optional but not limited to obtaining the operable angle range of each joint of the robot arm through the robot's technical specification document and / or the robot control system, and comparing all obtained joint space angles of the robot arm with the corresponding joint operable angle ranges. If the joint space angle of a robot arm is larger than the corresponding joint operable angle range, it means that the joint space angle of the robot arm only exists in theory and cannot be realized in actual operation. Therefore, the joint space angle needs to be eliminated; if the joint space angle of the robot arm is not larger than the corresponding joint operable angle range, it means that the joint space angle of the robot arm can be realized in actual operation, and the joint space angle can be further tested.

[0072] S46: Determine whether the robot arm collides with obstacles in the environment when in each group of joint space angles. If so, eliminate the group of angles. If not, obtain a suitable joint space angle.

[0073] Specifically, it is optional but not limited to simulating the motion trajectory of the robot under each set of joint space angles based on the robot's 3D model, judging whether the robot collides with obstacles in the surrounding environment and / or the working environment, and whether the various components of the robot interfere with each other. If a collision or interference is detected, it means that this set of joint space angles cannot be achieved and needs to be eliminated. Then, several sets of qualified robot joint space angles can be obtained.

[0074] In this embodiment, a method for acquiring joint space angles of a robot with an overhead rail and a ground rail of the present invention is provided. The joint movement range of the robot's external axis is discretized according to the prior joint movement range of the robot's external axis to obtain several groups of joint space angles of the robot's external axis. The overhead rail and the ground rail are then considered as part of the robot's joints and incorporated into the robot's motion planning process, so that the robot can make full use of the redundant characteristics of the overhead rail and the ground rail during motion planning, thereby improving the robot's degree of freedom at work. Then, the several groups of joint space angles of the robot's external axis are substituted into the positive kinematics of the robot's external axis to obtain the position and posture of the robot's external axis end corresponding to each group of the robot's external axis joint space angles in the world coordinate system, which are regarded as the position and posture of the base of the robot manipulator corresponding to each group of joint space angles in the world coordinate system. Then, according to the position and posture of the base of the robot manipulator corresponding to the several groups of joint space angles in the world coordinate system, the robot's external axis end is obtained. The priori posture of the end of the robot manipulator arm in the world coordinate system is used to obtain several groups of postures of the end of the robot manipulator arm in the robot base coordinate system. Finally, the postures of the end of each group of robot manipulator arm in the robot base coordinate system are substituted into the inverse kinematics of the robot manipulator arm to obtain several groups of robot manipulator arm joint space angles corresponding to the postures of the end of each group of robot manipulator arm in the robot base coordinate system. Combine the corresponding robot manipulator arm joint space angles and the robot external axis joint space angles to obtain several groups of corresponding robot joint space angles. Several groups of possible joint space angles of the robot manipulator arm and the robot external axis are obtained respectively. Then, the joint space angles of several groups of corresponding robot manipulator arms and the robot external axis that can be realized are combined to obtain several groups of complete robot joint space angles that can be realized. All joint space angles that cannot be realized due to joint limit and collision are eliminated, thereby improving the success rate of path planning. The problem that the existing technology cannot fully utilize the redundant characteristics of redundant robots and the success rate of path planning is low is solved.

[0075] like Figure 2 As shown, the present invention provides a path planning method for a robot, comprising:

[0076] P1: Install a welding gun and several identification sensors at the end of the welding robot;

[0077] Specifically, the welding robot may optionally include but is not limited to a multi-axis robotic arm and an overhead rail and a floor rail, and the overhead rail and the floor rail are preferably regarded as the robot's external axes; the identification sensor may optionally include but is not limited to a 2D camera, a laser ranging sensor, a lidar, a laser tracker, a three-coordinate measuring machine, and other measuring equipment commonly used to measure and sense the position of an object; it is worth noting that the installation position must enable the identification sensor to clearly identify the workpiece surface, while the robot maintains a set safety distance from the workpiece surface to avoid collision between the welding gun and the workpiece surface and cause damage; the safety distance is arbitrarily set by technical personnel in this field.

[0078] Preferably, the identification sensor is composed of a 2D camera and a laser ranging sensor, the 2D camera obtains the relative position of the weld and the end of the robot on the same plane, and the laser ranging sensor obtains the relative distance between the plane where the weld is located and the end of the welding gun.

[0079] P2: Control the robot arm to move to the prior weld position, obtain the position of the robot arm end in the world coordinate system when it is located at the coordinates of the current weld starting point, and obtain several groups of joint space angles corresponding to the current weld starting point according to any of the above methods; the prior weld position is pre-marked by a person skilled in the art or obtained according to a workpiece model or pre-set by a person skilled in the art;

[0080] Specifically, since the welding robot needs to replenish welding wire during the welding process, it is preferred to set a safe position so that the welding robot can replenish welding wire at will. It is optional but not limited to obtaining the prior weld position, selecting any weld starting point as the current weld starting point, controlling the robotic arm to move to the prior weld position, obtaining the position and posture of the current weld starting point coordinates in the world coordinate system, and substituting the position and posture of the current weld starting point coordinates in the world coordinate system into the joint space angle acquisition method, so as to obtain several sets of joint space angles corresponding to the current weld starting point.

[0081] P3: Obtain the joint space angle when the end of the robot arm is in the safe position, obtain several corresponding joint space paths between the safe position and the current weld starting point according to several groups of joint space angles corresponding to the current weld starting point, and obtain the optimal joint space path according to the preset conditions;

[0082] Specifically, it is optional but not limited to obtaining the joint space angle when the end of the robot arm is in a safe position. It is preferred to obtain a smooth joint space angle trajectory between the joint space angle when the end of the robot arm is in a safe position and several groups of joint space angles corresponding to the current weld starting point according to the joint space planning method, so as to obtain several corresponding joint space paths between the safe position and the initial weld starting point, and finally obtain the optimal joint space path among all joint space paths according to preset conditions.

[0083] Preferably, the step of obtaining the optimal joint space path according to the preset conditions may optionally include but is not limited to:

[0084] P31: Obtain the robot maneuverability and joint movement corresponding to each joint space path;

[0085] Specifically, it is optional but not limited to obtaining the robot maneuverability corresponding to each joint space path according to the kinematic maneuverability analysis method, and then it is optional but not limited to obtaining the joint movement corresponding to each joint space path according to the joint movement analysis method; the kinematic maneuverability analysis method may be optional but not limited to including, but not limited to, common calculation methods such as condition number-based method, characteristic ellipsoid volume-based method, minimum singular value-based method, weighted condition number-based method, task-based maneuverability method, etc.; the joint movement analysis method may be optional but not limited to including, but not limited to, commonly used joint movement analysis methods such as cumulative angle method, maximum joint space angle method, weighted angle method, Euclidean norm method, and maximum joint velocity method.

[0086] P32: Obtain a path with the smallest weighted combination of the robot's maneuverability and joint movement among several groups of spatial joint paths, which is considered as the final joint spatial path.

[0087] Specifically, it is optional but not limited to sorting according to the robot's maneuverability and / or the joint movement amount and / or a weighted combination of the two to obtain a joint space path with the maximum maneuverability and / or the minimum joint movement amount, that is, the optimal joint space path; preferably, the specific sorting method is arbitrarily set by technical personnel in this field according to conditions such as the site environment and production process.

[0088] P4: Obtain the prior weld direction, control the end of the robot arm to run along the current weld start point and weld end point, obtain several sampling path points between the current weld start point and weld end point, and obtain the joint space path between the current weld start point and weld end point; the prior weld direction is pre-marked by a technician in this field or obtained based on a workpiece model or pre-set by a technician in this field;

[0089] Specifically, it is optional but not limited to controlling the robotic arm to move along the prior weld direction, sampling the weld at set sampling intervals by identifying the sensor, obtaining a number of sampling path points between the current weld starting point and the weld end point, substituting the posture of the current weld starting point in the world coordinate system into the above-mentioned joint space angle acquisition method, obtaining k groups of corresponding joint space angles, and then using the k groups of joint space angles as initial values ​​to perform parallel calculations on subsequent weld path points to obtain k groups of spatial joint paths, preferably sorting the k groups of spatial joint paths in a weighted combination of the robot's maneuverability and the amount of joint movement to obtain the corresponding optimal joint space path; the sampling interval is arbitrarily set by a technician in this field.

[0090] Preferably, the relative position of the weld and the end of the robot on the same plane is obtained by a 2D camera, and sampling is performed in the weld area at set intervals until the end point of the weld. At the same time, the distance between the end point of the weld and the robotic arm is obtained according to the laser ranging sensor, and the specific coordinates of each weld path point in the world coordinate system and the position and posture of the current weld starting point in the world coordinate system are obtained.

[0091] P5: Based on the prior weld position, determine whether there is a weld without a planned path. If so, execute step P6. If not, complete the path planning.

[0092] P6: According to the prior weld position, obtain the sampling path points between the current weld starting point and the next weld starting point to obtain the joint space path between the two points, and use the next weld starting point as the current weld starting point, and return to step P5;

[0093] Specifically, based on the prior weld position, determine whether there are welds for which no scan or path planning has been performed. If so, based on the prior weld position, control the robotic arm to obtain the sampling path points between the current weld starting point and the next weld starting point, and obtain the joint space path between the two points based on the joint space path planning method. Take the next weld starting point as the current weld starting point, and continue to determine whether there are welds for which no path planning has been performed until the path planning for all welds is completed.

[0094] Preferably, since the welding wire carried by the robot during the welding process may not be sufficient to support the robot to complete the welding work of the current weld, the path planning method of the welding robot also includes:

[0095] P7: Get the current joint angle of the robot at any position and obtain the optimal joint space path from any position to a safe position.

[0096] Specifically, it is optional but not limited to obtaining the current joint space angle of the robot at any position through the motor carried by the robot itself, and obtaining a smooth joint space angle trajectory between the joint space angle when the end of the robot's mechanical arm is in a safe position and the current joint space angle of the robot at any position according to the joint space planning method, so as to obtain several corresponding joint space paths between the safe position and the starting point of the initial weld, and finally obtain a path with the smallest weighted combination of the robot's maneuverability and the joint movement amount among several groups of spatial joint paths, which is regarded as the final joint space path.

[0097] On the other hand, the present invention also provides a computer storage medium storing an executable program code; the executable program code is used to execute any of the above-mentioned robot joint space angle acquisition methods with overhead rails and ground rails or robot path planning methods.

[0098] On the other hand, the present invention also provides a terminal device, including a memory and a processor; the memory stores a program code that can be executed by the processor; the program code is used to execute any of the above-mentioned robot joint space angle acquisition methods with overhead rails and ground rails or robot path planning methods.

[0099] Exemplarily, the program code may be divided into one or more modules / units, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the program code in the terminal device.

[0100] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the terminal device may also include an input / output device, a network access device, a bus, etc.

[0101] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0102] The memory may be an internal storage unit of the terminal device, such as a hard disk or a memory. The memory may also be an external storage device of the terminal device, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the terminal device. Further, the memory may also include both an internal storage unit of the terminal device and an external storage device. The memory is used to store the program code and other programs and data required by the terminal device. The memory may also be used to temporarily store data that has been output or is to be output.

[0103] The above-mentioned terminal device is created based on the above-mentioned robot joint space angle acquisition method and path planning method with overhead rails and ground rails. Its technical functions and beneficial effects are no longer repeated here. The various technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the various technical features in the above-mentioned embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0104] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A method for obtaining the joint space angle of a robot with a ceiling rail and a ground rail, characterized in that: include: S1: discretize the joint movement range of the robot's external axis according to the prior joint movement range of the robot's external axis to obtain several groups of joint space angles of the robot's external axis; S2: Substitute several sets of robot external axis joint space angles into the robot external axis forward kinematics to obtain the position and posture of the robot external axis end corresponding to each set of robot external axis joint space angles in the world coordinate system, which is regarded as the position and posture of the base of the robot manipulator corresponding to each set of joint space angles in the world coordinate system; S3: obtaining the positions and poses of the end portions of the robot manipulators in the robot base coordinate system according to the positions and poses of the bases of the robot manipulators in the world coordinate system and the prior positions and poses of the end portions of the robot manipulators in the world coordinate system; S4: Substitute the posture of each group of robot arm ends in the robot base coordinate system into the inverse kinematics of the robot arm to obtain several groups of robot arm joint space angles corresponding to the posture of each group of robot arm ends in the robot base coordinate system, and combine the corresponding robot arm joint space angles and the robot external axis joint space angles to obtain several groups of robot joint space angles.

2. The method according to claim 1, characterized in that The positive kinematics of the robot's external axes are: in, is the position of the robot's external axis end in the world coordinate system, is the transformation matrix between the xth joint and the x-1th joint of the robot's external axis, representing the spatial angle of the xth joint of the robot's external axis, where 1 <x<m。 3. The method according to claim 1, characterized in that The step of obtaining the positions and poses of the robot manipulator ends in the robot base coordinate system also includes: When a welding gun is installed at the end of the robot arm, the end of the welding gun is actually the end of the robot arm: in, is the position of the robot welding gun end in the world coordinate system, Represents the transformation matrix from the end of the welding gun to the flange at the end of the robot arm, is the position of the robot arm end in the world coordinate system.

4. The method according to claim 1, characterized in that The specific steps of obtaining several groups of robot joint space angles by combining the corresponding robot manipulator joint space angles and the robot external axis joint space angles include: Traverse the posture of the first joint of the joint space angle of each group of robot manipulators and the end posture of the robot's external axis, and determine whether the posture is the same. If so, combine the corresponding robot manipulator's joint space angle and the robot's external axis joint space angle, and iterate continuously until all complete robot joint space angles are obtained.

5. The method according to claim 4, characterized in that After obtaining several sets of corresponding robot arm joint space angles, it also includes: S45: Determine whether the angle of each joint of the robot arm is greater than the operable angle range of the corresponding joint. If so, remove the group of joint space angles; if not, execute step S46; S46: Determine whether the robot arm collides with obstacles in the environment at each set of joint space angles. If so, remove the set of angles. If not, obtain a suitable joint space angle.

6. A robot path planning method, characterized in that: include: P1: Install a welding gun and several identification sensors at the end of the welding robot; P2: Control the robot arm to move to the prior weld position, obtain the position of the robot arm end in the world coordinate system when it is located at the coordinates of the current weld starting point, and obtain several sets of joint space angles corresponding to the current weld starting point according to any of the above methods; P3: Obtain the joint space angle when the end of the robot arm is in the safe position, obtain several corresponding joint space paths between the safe position and the current weld starting point according to several groups of joint space angles corresponding to the current weld starting point, and obtain the optimal joint space path according to the preset conditions; P4: Get the prior weld direction, control the end of the robot arm to run along the current weld start point and weld end point, get the pose of the current weld start point in the world coordinate system and several sampling path points between the current weld start point and weld end point, and get the joint space path between the current weld start point and weld end point; P5: Based on the prior weld position, determine whether there is a weld without a planned path. If so, execute step P6. If not, complete the path planning. P6: According to the prior weld position, obtain the sampling path points between the current weld starting point and the next weld starting point to obtain the joint space path between the two points, and use the next weld starting point as the current weld starting point, and return to step P5.

7. The method according to claim 6, characterized in that The steps of obtaining the optimal joint space path according to the preset conditions include: Obtain the robot maneuverability and joint movement corresponding to each joint space path; A path with the smallest weighted combination of the robot's maneuverability and joint movement among several groups of spatial joint paths is obtained, which is regarded as the final joint spatial path.

8. The method according to claim 6, characterized in that Get the position of the current weld start point in the world coordinate system and several sampling path points between the current weld start point and the weld end point, and get the joint space path between the current weld start point and the weld end point, including: The robot arm is controlled to move along the prior weld direction, and the weld is sampled at set sampling intervals by the recognition sensor to obtain the position of the current weld starting point in the world coordinate system and several sampling path points between the current weld starting point and the weld end point; Substitute the position of the current weld starting point in the world coordinate system into any of the above methods to obtain several sets of joint space angles corresponding to the current weld starting point; A path with the smallest weighted combination of the robot's maneuverability and joint movement among several groups of spatial joint paths is obtained, which is regarded as the final joint spatial path.

9. The method according to claim 6, characterized in that The method further comprises: Get the current joint space angle of the robot at any position; According to the current joint space angle of the robot at any position and the joint space angle when the end of the robot arm is at a safe position, a number of corresponding joint space paths between the safe position and the starting point of the initial weld are obtained; A path with the smallest weighted combination of the robot's maneuverability and joint movement among several groups of spatial joint paths is obtained, which is regarded as the final joint spatial path.

10. A terminal device, characterized in that: It comprises a memory and a processor; the memory stores a program code that can be executed by the processor; the program code is used to execute the method for acquiring the joint space angle of a robot with a ceiling rail and a ground rail as described in any one of claims 1-5 or the path planning method of a robot as described in any one of claims 6-9.

Citation Information

Patent Citations

  • Method for resolving minimum spatial turning path of joints of mechanical arm

    CN111300420A

  • Mechanical arm path planning method and device, electronic equipment and storage medium

    CN113459109A

  • Method and device for acquiring joint angle, storage medium and electronic equipment

    CN116327177A

  • Joint angle generation method for robot and robot system

    CN116673966A

  • Distance measuring system and method, and robot system using same

    US20200088865A1

Cited By

  • Path planning method and device for robot with external shaft and computer equipment

    CN119567254A