A sampling trajectory planning method and device for a robotic arm, and electronic equipment

The target trajectory of the robotic arm is screened out through polynomial curve fitting and motion constraints, and the depth camera data is combined to avoid obstacles. This solves the problems of complex calculations and low efficiency in robotic arm trajectory planning, and achieves smooth and reliable sampling trajectory planning.

CN115870976BInactive Publication Date: 2024-08-30BEIJING LUOBIDE TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211459443.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-16
Publication Date
2024-08-30
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing robot arm trajectory planning scheme has a complex calculation process and low efficiency, making it difficult to ensure the smoothness of the trajectory and avoid collision with environmental obstacles.

Method used

A polynomial curve fitting algorithm is used to calculate the trajectory curve from the initial position of the manipulator to multiple center positions, the target trajectory curve is screened based on motion constraints, interpolation points are set on the trajectory to generate discrete points, and a depth camera is used to obtain obstacle position data screening Collision-free target discrete points are obtained, and the target sampling trajectory is finally determined.

Benefits of technology

The smoothness of the trajectory is ensured through polynomial fitting and motion constraints, and obstacles are avoided through interpolation and screening to ensure the reliability and efficient calculation of the target sampling trajectory.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115870976B
    Figure CN115870976B
Patent Text Reader

Abstract

The present invention discloses a sampling trajectory planning method and device for a manipulator, and an electronic device, and belongs to the field of intelligent hardware technology. The method includes: determining the posture information of an object to be sampled on a sampling platform; determining the center position of at least two outer surfaces of the object to be sampled except the contact surface with the sampling platform according to the posture information; calculating the first trajectory curve from the initial position of the manipulator of the sampling robot to the center positions in sequence through a polynomial curve fitting algorithm; selecting a target trajectory curve from the first trajectory curve based on motion constraints; setting interpolation points on the target trajectory curve, and generating discrete points between adjacent interpolation points; selecting each discrete point, and obtaining the target discrete points that do not collide with environmental obstacles to form the target sampling trajectory of the manipulator. The sampling trajectory planning method for the manipulator disclosed by the present invention has a small amount of calculation in the trajectory planning process, and the reliability of the target sampling trajectory finally planned is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent hardware, and in particular to a sampling trajectory planning method and device for a robotic arm, and electronic equipment. Background Art

[0002] Robots can be divided into two categories: industrial robots and server robots. Service robots include site robots, professional cleaning robots, medical robots, logistics robots, inspection and maintenance robots, etc.

[0003] The sampling robot uses a robotic arm to sample the goods. Generally speaking, the input to the sampling robot is only the starting point and end point of the work, and the trajectory planning is carried out to ensure that the robotic arm can move from the starting point to the end point in a natural and smooth manner to ensure stability. However, the calculation process of the current robotic arm trajectory planning scheme is complicated and the efficiency is low. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide a sampling trajectory planning method and device for a robotic arm, and an electronic device, which can solve the problems of complex calculation process and low efficiency in existing trajectory planning solutions.

[0005] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0006] An embodiment of the present invention provides a sampling trajectory planning method for a robotic arm, which is applied to a sampling robot, wherein the method comprises:

[0007] Determine the position and posture information of the object to be sampled on the sampling platform;

[0008] Determine the center positions of at least two outer surfaces of the object to be sampled except the contact surface with the sampling platform according to the posture information;

[0009] By using a polynomial curve fitting algorithm, first trajectory curves are calculated, where the initial position of the robotic arm of the sampling robot reaches each of the center positions in sequence, wherein the number of the first trajectory curves is greater than or equal to 2;

[0010] Based on the motion constraint condition, selecting a target trajectory curve from the first trajectory curve;

[0011] Setting interpolation points on the target trajectory curve and generating discrete points between adjacent interpolation points;

[0012] Screening the discrete points according to preset rules to obtain target discrete points that do not collide with environmental obstacles;

[0013] The trajectory curve composed of the target discrete points is determined as the target sampling trajectory of the robotic arm.

[0014] Optionally, the step of determining the center positions of at least two outer surfaces of the object to be sampled except the contact surface with the sampling platform according to the posture information includes:

[0015] According to the posture information, the center positions of five outer surfaces of the object to be sampled except the contact surface with the sampling platform are determined.

[0016] Optionally, based on the motion constraint condition, the step of selecting a target trajectory curve from the first trajectory curve comprises:

[0017] For a plurality of first trajectory curves between adjacent center positions, a second trajectory curve that satisfies the motion constraints of the robot arm and has the shortest moving distance is selected from the plurality of first trajectory curves;

[0018] The second trajectory curves between all the adjacent center positions are determined as the target trajectory curve.

[0019] Optionally, the step of setting interpolation points on the target trajectory curve and generating discrete points between adjacent interpolation points includes:

[0020] A plurality of interpolation points of multidimensional vectors are set on the target trajectory curve, wherein the multidimensional vectors include: a position coordinate vector of the end point of the robotic arm in a three-dimensional coordinate system, and an angle vector of the end point of the robotic arm in a positive direction of the three-dimensional coordinate system;

[0021] Generate discrete points between adjacent interpolation points that meet the position tolerance range.

[0022] Optionally, the step of screening the discrete points according to a preset rule to obtain target discrete points that do not collide with environmental obstacles includes:

[0023] Use the depth camera to obtain the location distribution data of surrounding obstacles;

[0024] According to the position distribution data, target discrete points that do not collide with environmental obstacles are screened out from the discrete points.

[0025] An embodiment of the present invention provides a sampling trajectory planning device for a robotic arm, which is applied to a sampling robot, wherein the device comprises:

[0026] The first determination module is used to determine the position and posture information of the object to be sampled on the sampling platform;

[0027] A second determination module is used to determine the center positions of at least two outer surfaces of the object to be sampled except the contact surface with the sampling platform according to the posture information;

[0028] A calculation module, used to calculate, by a polynomial curve fitting algorithm, first trajectory curves from the initial position of the robotic arm of the sampling robot to the center positions in sequence, wherein the number of the first trajectory curves is greater than or equal to 2;

[0029] A first screening module, configured to screen a target trajectory curve from the first trajectory curve based on a motion constraint condition;

[0030] A setting module, used for setting interpolation points on the target trajectory curve and generating discrete points between adjacent interpolation points;

[0031] A second screening module is used to screen the discrete points according to preset rules to obtain target discrete points that do not collide with environmental obstacles;

[0032] The third determination module is used to determine the trajectory curve composed of each of the target discrete points as the target sampling trajectory of the robotic arm.

[0033] Optionally, the second determining module is specifically configured to:

[0034] According to the posture information, the center positions of five outer surfaces of the object to be sampled except the contact surface with the sampling platform are determined.

[0035] Optionally, the first screening module includes:

[0036] A first submodule is used to select, for a plurality of first trajectory curves between adjacent center positions, a second trajectory curve that satisfies the motion constraints of the robot arm and has the shortest moving distance from the plurality of first trajectory curves;

[0037] The second submodule is used to determine the second trajectory curves between all the adjacent center positions as the target trajectory curve.

[0038] Optionally, the setting module includes:

[0039] A third submodule is used to set a plurality of interpolation points of multidimensional vectors on the target trajectory curve, wherein the multidimensional vectors include: a position coordinate vector of the end point of the manipulator in a three-dimensional coordinate system, and an angle vector of the end point of the manipulator in a positive direction of the three-dimensional coordinate system;

[0040] The fourth submodule is used to generate discrete points between adjacent interpolation points that meet the position tolerance range.

[0041] Optionally, the second screening module includes:

[0042] The fifth submodule is used to obtain the position distribution data of surrounding obstacles using a depth camera;

[0043] The sixth submodule is used to screen out target discrete points that have no collision with environmental obstacles from the discrete points according to the position distribution data.

[0044] An embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor. When the program or instruction is executed by the processor, the steps of any one of the above-mentioned sampling trajectory planning methods for the robotic arm are implemented.

[0045] An embodiment of the present invention provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of any one of the above-mentioned sampling trajectory planning methods for a robotic arm are implemented.

[0046] The sampling trajectory planning scheme of the robot arm provided by the embodiment of the present invention fits multiple first trajectory curves through polynomials, screens the first trajectory curves according to the motion constraints of the robot arm to obtain a target trajectory curve, interpolates the target trajectory curve, and generates discrete points between adjacent interpolation points, and finally screens out target discrete points that do not collide with obstacles from the generated numerous discrete points, and finally obtains the target sampling trajectory of the robot arm. The smoothness of the trajectory can be guaranteed by polynomial fitting and motion constraints, and the target discrete points that can avoid obstacles are selected by interpolation and screening of discrete points between interpolations, thereby ensuring the reliability of the determined target sampling trajectory. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 is a flowchart showing a sampling trajectory planning method of a robot arm according to an embodiment of the present application;

[0048] Figure 2 is a schematic diagram of a first trajectory curve obtained by polynomial curve fitting in an embodiment of the present application;

[0049] Figure 3 is a schematic diagram of a target trajectory curve determined based on motion constraint conditions in an embodiment of the present application;

[0050] Figure 4 It is a schematic diagram representing discrete points between two interpolation points;

[0051] Figure 5 is a structural block diagram of a sampling trajectory planning device for a robotic arm according to an embodiment of the present application;

[0052] Figure 6 It is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0053] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.

[0054] The sampling trajectory planning scheme of the robotic arm provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in combination with the accompanying drawings.

[0055] As attached Figure 1 As shown, the sampling trajectory planning method of the robot arm in the embodiment of the present application includes the following steps:

[0056] Step 101: Determine the position and posture information of the object to be sampled on the sampling platform.

[0057] In an embodiment of the present application, the object to be sampled is placed on the sampling table. The sampling robot plans the sampling trajectory of the robotic arm based on information such as the posture of the sampling object on the sampling table and the position of the sampling robot's robotic arm, and then controls the robotic arm to move along the sampling trajectory to complete the sampling work of the object to be sampled.

[0058] The sampling trajectory planning method of the robotic arm of the embodiment of the present application is applied to the main control module of the electronic device or the sampling robot, and the electronic device can be a server, a computer, or other device with an analysis function. The storage medium in the electronic device or the sampling robot stores the sampling trajectory planning program of the robotic arm, and the processor of the electronic device or the main control module of the sampling robot runs the program in the storage medium to execute the sampling trajectory planning process of the robotic arm, and plans the sampling trajectory of the robotic arm for the sampling robot before the sampling robot samples the object to be sampled.

[0059] In the actual implementation process, a depth camera can be used to detect the posture of the object to be sampled on the sampling platform to obtain the posture data of the object to be sampled.

[0060] Step 102: Determine the center positions of at least two outer surfaces of the object to be sampled, except the contact surface with the sampling platform, according to the posture information.

[0061] In the actual implementation process, the center positions of the two outer surfaces of the object to be sampled can be determined, and the corresponding sampling points are two; the center positions of the three outer surfaces of the object to be sampled can also be determined, and the corresponding sampling points are three. In an optional embodiment, the center positions of the five outer surfaces of the object to be sampled except the contact surface with the sampling platform can be determined according to the posture information of the object to be sampled. The center positions of the five outer surfaces are determined, and the corresponding sampling points are five. The more sampling points there are, the more comprehensive the sample collection of the object to be sampled is, and the more accurate and reliable the final collection result is.

[0062] Step 103: Using a polynomial curve fitting algorithm, a first trajectory curve is calculated for the sampling robot's robot arm's initial position to sequentially reach each center position.

[0063] In the embodiment of the present application, the first trajectory curve obtained by calculating the initial position of the robotic arm of the sampling robot and sequentially reaching the center positions of the five outer surfaces of the object to be sampled is used as an example for explanation. The center positions of the five outer surfaces are respectively recorded as center position 1, center position 2, center position 3, center position 4, and center position 5. The specific generation process of the above trajectory curve is: generating the first trajectory curve from the initial position of the robotic arm to the center position 1, generating the first trajectory curve from the center position 1 to the center position 2, generating the first trajectory curve from the center position 2 to the center position 3, generating the first trajectory curve from the center position 3 to the center position 4, and generating the first trajectory curve from the center position 4 to the center position 5.

[0064] For the first trajectory curve between any two points, it can be obtained by fitting an n-order polynomial curve, and the value of n determines the number of first trajectory curves finally fitted. In the embodiment of the present application, n(max)>n>=1 can be set, where n(max) is set according to the system environment. When n is 1, the robot trajectory curve is a straight line, but sometimes this straight line trajectory does not meet the operational constraints of the robot, so multiple first trajectory curves are generated and screened in the next step. Therefore, the number of first trajectory curves between any two points is greater than or equal to 2. The schematic diagram of the first trajectory curve between any two points obtained by the polynomial curve fitting algorithm is shown in the figure. Figure 2 shown.

[0065] Step 104: Based on the motion constraint condition, a target trajectory curve is selected from the first trajectory curve.

[0066] An alternative method for selecting a target trajectory curve from the first trajectory curve based on the motion constraint condition is as follows:

[0067] Firstly, for a plurality of first trajectory curves between adjacent center positions, a second trajectory curve that satisfies the motion constraints of the robot arm and has the shortest moving distance is selected from the plurality of first trajectory curves;

[0068] Secondly, the second trajectory curves between all the adjacent center positions are determined as the target trajectory curve.

[0069] The target trajectory curve screening method provided in this optional embodiment first determines a second trajectory curve from multiple first trajectory curves between adjacent center positions, and then sequentially connects the second trajectory curves between two adjacent points to form a target trajectory curve, which can ensure that the target trajectory curve is the shortest moving distance for the robot arm under the premise of satisfying the motion constraint conditions. The generated target trajectory curve schematic diagram is shown in FIG. Figure 3 shown.

[0070] Step 105: setting interpolation points on the target trajectory curve, and generating discrete points between adjacent interpolation points.

[0071] An optional way to set interpolation points on the target trajectory curve can be: set multiple multidimensional vector interpolation points on the target trajectory curve, and generate discrete points that meet the position tolerance range between adjacent interpolation points. Figure 4 As shown, from Figure 4 It can be seen that there are multiple discrete points set near each interpolation point.

[0072] The multidimensional vector includes: a position coordinate vector of the end point of the robot arm in the three-dimensional coordinate system, and an angle vector of the end point of the robot arm in the positive direction of the three-dimensional coordinate system.

[0073] For example, each interpolation point can be set as a six-dimensional vector [x, y, z, θ_x, θ_y, θ_z] to represent the position and direction of the top of the sampling swab held by the end of the robotic arm. Among them, x, y, z represent the position coordinates of the end point of the robotic arm on the xyz axis, and θ_x, θ_y, θ_z represent the angle of the end of the robotic arm in the positive direction of the xyz axis.

[0074] Step 106: Screen the discrete points according to preset rules to obtain target discrete points that do not collide with environmental obstacles.

[0075] An optional method of screening each discrete point according to preset rules to obtain target discrete points that do not collide with environmental obstacles can be as follows: first, use a depth camera to obtain position distribution data of surrounding obstacles; second, based on the position distribution data, screen out target discrete points that do not collide with environmental obstacles among each discrete point.

[0076] This method of optionally screening target discrete points based on the position distribution information of surrounding fault objects can effectively prevent the robot arm from colliding with surrounding obstacles during movement.

[0077] It should be noted that the above is only an optional method of selecting target discrete points from multiple discrete points. In the actual implementation process, technical personnel in this field can flexibly set discrete point screening tools and rules to ensure that the selected target discrete points do not collide with environmental obstacles.

[0078] Step 107: Determine the trajectory curve composed of the target discrete points as the target sampling trajectory of the robot arm.

[0079] In the embodiment of the present application, each time the sampling object is changed in the sampling platform, the sampling trajectory planning method of the robot arm in the embodiment of the present application is executed. After the target sampling trajectory of the robot arm is determined by the sampling trajectory planning method provided in the embodiment of the present application, the robot arm is controlled to reach each target discrete point in turn according to the target sampling trajectory to complete the sampling action of the object to be sampled.

[0080] The sampling trajectory planning method of the robot provided in the embodiment of the present application is to fit multiple first trajectory curves through polynomials, screen the first trajectory curves according to the motion constraints of the robot to obtain a target trajectory curve, then interpolate the target trajectory curve, and generate discrete points between adjacent interpolation points, and finally screen out target discrete points that do not collide with obstacles from the generated numerous discrete points, and finally obtain the target sampling trajectory of the robot. The smoothness of the trajectory can be guaranteed by polynomial fitting and motion constraints, and points that can avoid obstacles can be selected by interpolation and screening of discrete points between interpolations, thereby ensuring the reliability of the determined target sampling trajectory.

[0081] Figure 5 A structural block diagram of a sampling trajectory planning device for a robotic arm to implement an embodiment of the present application.

[0082] The sampling trajectory planning device of the robotic arm provided in the embodiment of the present application is applied to a sampling robot, and the device includes the following functional modules:

[0083] The first determination module 501 is used to determine the position and posture information of the object to be sampled on the sampling platform;

[0084] A second determination module 502 is used to determine the center positions of at least two outer surfaces of the object to be sampled except the contact surface with the sampling platform according to the posture information;

[0085] A calculation module 503 is used to calculate, by a polynomial curve fitting algorithm, first trajectory curves from the initial position of the robotic arm of the sampling robot to the center positions in sequence, wherein the number of the first trajectory curves is greater than or equal to 2;

[0086] A first screening module 504, configured to screen a target trajectory curve from the first trajectory curve based on a motion constraint condition;

[0087] A setting module 505, used to set interpolation points on the target trajectory curve and generate discrete points between adjacent interpolation points;

[0088] A second screening module 506 is used to screen the discrete points according to a preset rule to obtain target discrete points that do not collide with environmental obstacles;

[0089] The third determination module 507 is used to determine the trajectory curve composed of the target discrete points as the target sampling trajectory of the robot arm.

[0090] Optionally, the second determining module is specifically configured to:

[0091] According to the posture information, the center positions of five outer surfaces of the object to be sampled except the contact surface with the sampling platform are determined.

[0092] Optionally, the first screening module includes:

[0093] A first submodule is used to select, for a plurality of first trajectory curves between adjacent center positions, a second trajectory curve that satisfies the motion constraints of the robot arm and has the shortest moving distance from the plurality of first trajectory curves;

[0094] The second submodule is used to determine the second trajectory curves between all the adjacent center positions as the target trajectory curve.

[0095] Optionally, the setting module includes:

[0096] A third submodule is used to set a plurality of interpolation points of multidimensional vectors on the target trajectory curve, wherein the multidimensional vectors include: a position coordinate vector of the end point of the manipulator in a three-dimensional coordinate system, and an angle vector of the end point of the manipulator in a positive direction of the three-dimensional coordinate system;

[0097] The fourth submodule is used to generate discrete points between adjacent interpolation points that meet the position tolerance range.

[0098] Optionally, the second screening module includes:

[0099] The fifth submodule is used to obtain the position distribution data of surrounding obstacles using a depth camera;

[0100] The sixth submodule is used to screen out target discrete points that have no collision with environmental obstacles from the discrete points according to the position distribution data.

[0101] The sampling trajectory planning device of the robot arm provided in the embodiment of the present application fits multiple first trajectory curves through polynomials, screens the first trajectory curves according to the motion constraints of the robot arm to obtain a target trajectory curve, then interpolates the target trajectory curve, and generates discrete points between adjacent interpolation points, and finally screens out target discrete points that do not collide with obstacles from the generated numerous discrete points, and finally obtains the target sampling trajectory of the robot arm. The smoothness of the trajectory can be guaranteed by polynomial fitting and motion constraints, and points that can avoid obstacles are selected by interpolation and screening of discrete points between interpolations, thereby ensuring the reliability of the determined target sampling trajectory.

[0102] In the present application embodiment Figure 5 The sampling trajectory planning device of the robot arm shown in the figure can be a device, or a component, an integrated circuit, or a chip in a server. Figure 5 The sampling trajectory planning device of the robot arm shown may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.

[0103] The embodiments of the present application provide Figure 5 The sampling trajectory planning device of the robot arm shown can achieve Figure 1 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0104] Alternatively, if Figure 6 As shown, an embodiment of the present application also provides an electronic device 600, including a processor 601, a memory 602, and a program or instruction stored in the memory 602 and executable on the processor 601. When the program or instruction is executed by the processor 601, each process of the above-mentioned sampling trajectory planning method embodiment of the robot arm is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0105] It should be noted that the electronic device in the embodiment of the present application includes the server described above.

[0106] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned robotic arm sampling trajectory planning method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0107] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0108] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned sampling trajectory planning method embodiment of the robotic arm, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0109] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0110] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0111] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A sampling trajectory planning method for a robotic arm, applied to a sampling robot, It is characterized in that The method comprises: Determine the position and posture information of the object to be sampled on the sampling platform; Determine the center positions of at least two outer surfaces of the object to be sampled except the contact surface with the sampling platform according to the posture information; By using a polynomial curve fitting algorithm, first trajectory curves are calculated, where the initial position of the robotic arm of the sampling robot reaches each of the center positions in sequence, wherein the number of the first trajectory curves is greater than or equal to 2; Based on the motion constraint condition, selecting a target trajectory curve from the first trajectory curve; Setting interpolation points on the target trajectory curve and generating discrete points between adjacent interpolation points; Screening the discrete points according to preset rules to obtain target discrete points that do not collide with environmental obstacles; The trajectory curve composed of the target discrete points is determined as the target sampling trajectory of the robotic arm.

2. The method according to claim 1, It is characterized in that The step of determining the center positions of at least two outer surfaces of the object to be sampled, except for the contact surface with the sampling platform, according to the posture information, comprises: According to the position information, the center positions of five outer surfaces of the object to be sampled except the contact surface with the sampling platform are determined.

3. The method according to claim 1, It is characterized in that The step of selecting a target trajectory curve from the first trajectory curve based on the motion constraint condition comprises: For a plurality of first trajectory curves between adjacent center positions, a second trajectory curve that satisfies the motion constraints of the robot arm and has the shortest moving distance is selected from the plurality of first trajectory curves; The second trajectory curves between all the adjacent center positions are determined as the target trajectory curve.

4. The method according to claim 1, It is characterized in that The step of setting interpolation points on the target trajectory curve and generating discrete points between adjacent interpolation points comprises: A plurality of interpolation points of multidimensional vectors are set on the target trajectory curve, wherein the multidimensional vectors include: a position coordinate vector of the end point of the robotic arm in a three-dimensional coordinate system, and an angle vector of the end point of the robotic arm in a positive direction of the three-dimensional coordinate system; Generate discrete points between adjacent interpolation points that meet the position tolerance range.

5. The method according to claim 1, It is characterized in that The step of screening the discrete points according to preset rules to obtain target discrete points that do not collide with environmental obstacles includes: Use the depth camera to obtain the location distribution data of surrounding obstacles; According to the position distribution data, target discrete points that do not collide with environmental obstacles are screened out from the discrete points.

6. A sampling trajectory planning device for a robotic arm, applied to a sampling robot, It is characterized in that The device comprises: The first determination module is used to determine the position and posture information of the object to be sampled on the sampling platform; A second determination module is used to determine the center positions of at least two outer surfaces of the object to be sampled except the contact surface with the sampling platform according to the posture information; A calculation module, used to calculate, by a polynomial curve fitting algorithm, first trajectory curves from the initial position of the robotic arm of the sampling robot to the center positions in sequence, wherein the number of the first trajectory curves is greater than or equal to 2; A first screening module, configured to screen a target trajectory curve from the first trajectory curve based on a motion constraint condition; A setting module, used for setting interpolation points on the target trajectory curve and generating discrete points between adjacent interpolation points; A second screening module is used to screen the discrete points according to preset rules to obtain target discrete points that do not collide with environmental obstacles; The third determination module is used to determine the trajectory curve composed of each of the target discrete points as the target sampling trajectory of the robotic arm.

7. The device according to claim 6, It is characterized in that The second determining module is specifically used for: According to the position information, the center positions of five outer surfaces of the object to be sampled except the contact surface with the sampling platform are determined.

8. The device according to claim 6, It is characterized in that The first screening module comprises: A first submodule is used to select, for a plurality of first trajectory curves between adjacent center positions, a second trajectory curve that satisfies the motion constraints of the robot arm and has the shortest moving distance from the plurality of first trajectory curves; The second submodule is used to determine a combination of second trajectory curves that sequentially reach each of the center positions from the initial position of the robot arm of the sampling robot as a target trajectory curve.

9. The device according to claim 6, It is characterized in that The setting module includes: A third submodule is used to set a plurality of interpolation points of multidimensional vectors on the target trajectory curve, wherein the multidimensional vectors include: a position coordinate vector of the end point of the manipulator in a three-dimensional coordinate system, and an angle vector of the end point of the manipulator in a positive direction of the three-dimensional coordinate system; The fourth submodule is used to generate discrete points between adjacent interpolation points that meet the position tolerance range.

10. An electronic device comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the sampling trajectory planning method for a robotic arm as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Path planning method and apparatus, mobile robot, storage medium, and program

    WO2022183790A1