Self-adaptive mechanical arm man-machine object conveying method and system based on point cloud under composite constraint, machine readable storage medium and data processing equipment

By using a depth camera on the robotic arm to obtain point cloud data, combined with point cloud matching and attitude estimation, it solves the problem of difficulty in adaptive grasping and transmission of traditional robotic arms, achieves efficient robotic arm human-machine object transmission, and improves the success of efficiency and intelligence level.

CN118721184AActive Publication Date: 2024-10-01HANGZHOU DIANZI UNIV

Patent Information

Application Number
CN202410768011.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-10-01
Estimated Expiration
2044-06-14

AI Technical Summary

Technical Problem

When facing objects of different shapes and sizes and complex working environments, it is difficult for traditional robotic arms to adaptively grasp and transport human-machine objects, resulting in low success rate and efficiency.

Method used

An adaptive robot arm human-machine object transmission method based on point cloud under compound constraints is used to obtain point cloud data of the object to be grasped and the user through a depth camera. It combines point cloud matching and attitude estimation to plan the movement trajectory of the robot arm and realize automatic control. Adaptable grabbing and transporting.

Benefits of technology

It improves the adaptability and intelligence of the robotic arm in complex environments, reduces the error of adaptive pose results, improves the planning success rate, and meets the needs of complex working environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118721184A_ABST
    Figure CN118721184A_ABST
Patent Text Reader

Abstract

The invention discloses a self-adaptive mechanical arm man-machine object conveying method and system based on point cloud under composite constraints and data processing equipment, and belongs to the field of mobile mechanical arm visual perception and motion planning. The method comprises the following steps that S1, a depth camera at the tail end of a mechanical arm is used for obtaining the point cloud of an object to be grabbed and the point cloud of a user body; s2, on the basis of the to-be-grabbed object point cloud and the user body point cloud obtained in the step S1, the grabbing pose of the to-be-grabbed object and the object conveying pose of the user are estimated; and S3, based on the grabbing pose of the to-be-grabbed object estimated in the step S2 and the object conveying pose of the user, the motion track of the mechanical arm is planned under the composite constraint, and self-adaptive mechanical arm man-machine object conveying planning is achieved. According to the self-adaptive mechanical arm man-machine object conveying method and system based on the point cloud under the composite constraint and the data processing equipment, point cloud matching and posture estimation are combined, self-adaptability and intelligentization of the mechanical arm in the grabbing and object conveying process are achieved, the estimated self-adaptive posture result is small in error, and the self-adaptive mechanical arm man-machine object conveying method and system based on the point cloud under the composite constraint are more accurate. The planning success rate is high, and the complex working environment of the mechanical arm is met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of visual perception and motion planning of mobile manipulators, and in particular to a method, system and data processing equipment for point cloud-based adaptive manipulator human-machine object transmission under composite constraints. Background Art

[0002] With the widespread application of service robots in daily life and industrial fields, especially in grasping and object transfer tasks, the adaptability and intelligence of robotic arms have become key challenges. Traditional robotic arm grasping methods usually rely on pre-defined grasping postures or fixed grasping points, which often perform poorly when facing objects of different shapes and sizes and complex working environments, resulting in low grasping success rate and efficiency. In addition, in the scenario of human-machine object transfer, the robotic arm needs to perform grasping and transfer operations according to the user's state and posture, which increases the complexity and difficulty of the task.

[0003] In response to the above problems, many adaptive robotic arm control methods based on vision and depth perception have emerged in recent years. Among them, the development of robotic arm hand-eye system and point cloud processing technology has provided important support for the realization of intelligent grasping and transmission. The robotic arm hand-eye system uses a camera installed at the end of the robotic arm to obtain image information of the surrounding environment in real time, thereby realizing the perception of key information such as the position and posture of the object. Combined with a depth camera, richer three-dimensional point cloud data can be obtained, providing the robot with more accurate object shape and position information. Summary of the invention

[0004] In view of the problem that it is difficult for a service robot to adaptively transfer human-machine objects according to the task and the current status of the user when the robotic arm is performing a grasping task, the present invention provides a point cloud-based adaptive robotic arm human-machine object transfer method, system and data processing equipment under composite constraints, which combines point cloud matching and posture estimation to achieve the adaptability and intelligence of the robotic arm in the grasping and object transfer process. The estimated adaptive posture result has a small error and a high planning success rate to meet the complex working environment of the robotic arm.

[0005] To achieve the above object, the present invention provides a method for transmitting objects between a manipulator and a human-machine object by an adaptive manipulator based on point cloud under composite constraints, comprising the following steps:

[0006] S1. Use the depth camera at the end of the robotic arm to obtain the point cloud of the object to be grasped and the point cloud of the user's body respectively;

[0007] S2, based on the point cloud of the object to be grasped and the point cloud of the user's body obtained in step S1, respectively estimating the grasping posture of the object to be grasped and the object transmission posture of the user;

[0008] S3. Based on the grasping posture of the object to be grasped and the object transfer posture of the user estimated in step S2, the motion trajectory of the robot arm is planned under the composite constraints to realize adaptive robot arm human-machine object transfer planning.

[0009] Preferably, step S2 specifically includes the following steps:

[0010] S21. Obtain the Euclidean rotation matrix between the robot's camera coordinate system and the robot's end tool coordinate system tool T cam , thereby determining the coordinate transformation relationship between the target point cloud in the depth camera and the robot arm base;

[0011] It specifically includes the following steps:

[0012] S211. Set the closed-loop coordinate system spatial relationship of the hand-eye system of the robot arm to satisfy the following formula:

[0013] tool T cam = tool T base * base T cal * cal T cam (1)

[0014] In the formula, tool T cam is the Euclidean rotation matrix of the depth camera coordinate system relative to the tool coordinate system at the end of the robot arm; tool T base is the rotation matrix of the tool coordinate system at the end of the robot arm relative to the coordinate system of the robot arm base; base T cal is the rotation matrix of the calibration plate relative to the robot base coordinate system; cal T cam is the rotation matrix of the calibration plate relative to the depth camera coordinate system;

[0015] It is deduced that:

[0016] base T cal = base T tool * tool T cam * cam T cal (2)

[0017] In the formula, base T tool is the rotation matrix of the robot base coordinate system relative to the tool coordinate system at the end of the robot arm; tool T cam is the rotation matrix of the tool coordinate system at the end of the robot arm relative to the depth camera coordinate system;cam T cal is the rotation matrix of the depth camera coordinate system relative to the calibration plate;

[0018] S212, take the results twice at time t0 and time t1 respectively, and obtain:

[0019]

[0020] In the formula, is the rotation matrix of the robot base coordinate system relative to the tool coordinate system at the end of the robot arm at time t0; is the rotation matrix of the depth camera coordinate system relative to the calibration plate at time t0; is the rotation matrix of the robot base coordinate system relative to the tool coordinate system at the end of the robot arm at time t1; is the rotation matrix of the robot base coordinate system relative to the tool coordinate system at the end of the robot arm at time t1;

[0021] Multiply the left and right sides of formula (3) by and get:

[0022]

[0023] In the formula, is the rotation matrix of the tool coordinate system at the end of the robot arm relative to the coordinate system of the robot arm base at time t1; is the rotation matrix of the calibration plate relative to the depth camera coordinate system at time t0;

[0024] Convert to:

[0025] AX=XB (5)

[0026] in:

[0027]

[0028]

[0029] X= tool T cam (8);

[0030] S213, use the Tsai-Lenz method to solve the Euclidean rotation matrix of the required depth camera coordinate system relative to the tool coordinate system at the end of the robot arm tool T cam Numerical solution of ;

[0031] S214, using the depth camera internal parameters and Euclidean rotation matrix tool T cam Convert the user's position coordinates to the robot base coordinate system:

[0032]

[0033]

[0034] In the formula, (u pixel ,v pixel ) is the user's position in the pixel coordinate system, which is the coordinate of the center point of the identification box; (x, y, z) is the three-dimensional coordinate of the user in the camera coordinate system; z is the depth value of the pixel where the user is located read from the depth map; f is the focal length of the depth camera; c x and c y are the optical center positions of the depth camera on the x-axis and y-axis respectively;

[0035] S22, respectively estimate the grasping posture of the object to be grasped and the object transmission posture of the user:

[0036] For the point cloud of the object to be grasped, a template matching method based on two-dimensional image features is used to identify the target object to achieve the segmentation of the three-dimensional scene point cloud. Then, a point cloud matching method combining coarse matching and fine registration based on three-dimensional point cloud features is used to estimate the transformation matrix, thereby adaptively determining the grasping posture of the object to be grasped.

[0037] For the user's human body point cloud, a combined point cloud filtering and clustering method is used to realize the screening and segmentation of the three-dimensional human body point cloud in the scene, and then the human body posture is estimated using a method based on the singular value decomposition of the point cloud matrix, so as to adaptively determine the user's object transmission posture.

[0038] Preferably, in step S22, for the point cloud of the object to be captured, firstly, the feature points of the template image and the scene image are calculated respectively using the two-dimensional SURF feature, and then the feature points are screened using the Lowe algorithm and the RANSAC algorithm and the homography transformation matrix of the template matching is calculated to delineate the region of interest in the two-dimensional RGB image of the camera; then, the points in the region of interest are converted into a point cloud containing both three-dimensional XYZ coordinates and RGB colors, and then screened according to the depth value constraint to achieve the segmentation of the three-dimensional environment point cloud;

[0039] Then, the SAC-IA point cloud registration method based on FPFH three-dimensional point cloud features is used to achieve coarse matching between the scene object point cloud and the template point cloud. The point-to-point point cloud ICP algorithm is used to achieve precise registration between the scene object point cloud and the template point cloud. The Euclidean transformation matrix of the template point cloud and the scene object point cloud is obtained using a method based on point cloud matching. The Euclidean transformation matrix is ​​applied to the corresponding optimal manual grasping posture to calculate the optimal grasping posture of the current scene object.

[0040] Among them, the point cloud matching steps are as follows:

[0041] First, the FPFH features of all points in the point cloud are calculated, that is, each point in the point cloud is calculated as the current source point and all points within a certain neighborhood to calculate the FPFH features, and then the coordinate system is established according to the normal vector and connecting line of the source point and a neighboring point in the neighborhood. The direction calculation formula of the three axes of the coordinate system is as follows:

[0042] u=n s (11)

[0043] v=(P t -P s )×u (12)

[0044] w=u×v (13)

[0045] In the formula, u, v, and w represent the three axes of the coordinate system respectively; P s is the source point of the current feature calculation; P t P s One of the points in the neighborhood; n s Point P s The normal vector of t -P s ) represents point P t To point P s The symbol × represents the cross product of vectors;

[0046] According to the three-axis coordinate system, the following three eigenvalues ​​are calculated:

[0047] α=v·n t (14)

[0048]

[0049] θ=arctan(w·n t ,u·n t ) (16)

[0050] Where α is the v-axis and point P t The angle eigenvalue of the normal vector; φ is the angle eigenvalue of the line connecting the two points of the source point normal vector; θ is the eigenvalue describing the direction of the u-axis, w-axis and the normal vector of the neighboring point; n t Point P t Normal vector of ||P t -P s || represents point P t To point P s The Euclidean distance of Indicates point P t To point P s The unit vector in the direction of the line connecting ;

[0051] Then, the three eigenvalues ​​of α, φ, and θ are calculated for all neighboring points in the neighborhood of the source point, and statistics are performed through histograms. The method of dividing the three eigenvalue ranges equally is used to form a multidimensional histogram feature, which is recorded as SPF (P s ), for k neighboring points P t , and calculate SPF(P t ), and press the neighboring point P t The distance calculation weight from the source point is added to SPF (P s ), the FPFH feature FPFH(P s ):

[0052]

[0053] In the formula, ω k represents the i-th neighbor point P i and source point P s distance;

[0054] After calculating the FPFH features of the template point cloud and the scene object point cloud respectively, the SAC-IA point cloud registration method is used to randomly select a set number of feature matching points, and the Euclidean rotation matrix and matching error under the current matching situation are calculated;

[0055] Different feature matching point sets are selected by iterating for a set number of times, and the Euclidean rotation matrix with the smallest matching error is taken as the result of the point cloud rough registration;

[0056] Finally, the point-to-point point cloud ICP algorithm is used to achieve precise alignment of the scene object point cloud and the template point cloud: the scene object point cloud, the template point cloud and the coarsely aligned Euclidean transformation matrix are input into the point-to-point point cloud ICP algorithm, and the new Euclidean transformation matrix is ​​iteratively calculated based on the coarsely aligned transformation until the set error requirement is met.

[0057] Preferably, in step S22, for the user's human body point cloud, a combined point cloud filtering and clustering method is used to implement the screening and segmentation of the three-dimensional human body point cloud in the scene, and the specific steps are as follows:

[0058] First, define the distance threshold T dist , and the distance is greater than T dist Delete the point cloud to achieve the rough segmentation of the environment point cloud;

[0059] Then, the voxel filtering method is used to downsample the roughly segmented environment point cloud: the voxel filtering method divides the space into equal parts with a radius of r voxel For a cube voxel grid with point cloud distribution, the centroid of all point clouds in the voxel grid is calculated and stored in the voxel grid as a new point cloud;

[0060] The centroid calculation formula for all points in any voxel grid is as follows:

[0061]

[0062]

[0063]

[0064] The point cloud is then denoised using a statistical outlier filter:

[0065] For a point cloud P with N number of points, P = {p1, p2, ..., p n Any point p in i , define point p i The k nearest neighboring points nearby are its neighborhood, and the distance from the point to all points in its neighborhood is used as a statistical sample, which satisfies the normal distribution and has a sample mean and sample variance;

[0066] Among them, point p i The sample distance M to all points in the neighborhood i The calculation formula is as follows:

[0067]

[0068] Where k is the number of neighboring points in the neighborhood; p j Represents point p i The jth point in the neighborhood; ||p i -p j || represents point p i To point p j distance;

[0069] Then calculate the point p separately i The sample variance D of all points in the neighborhood i :

[0070]

[0071] Define the outlier threshold T o , when the outlier threshold T o When the following conditions are met, it is considered that point p i To count outliers, they are removed by the filter:

[0072] T o <M i +λ D D i (twenty three)

[0073] In the formula, λ D is the multiple of standard deviation;

[0074] Finally, the human point cloud is segmented using a clustering segmentation algorithm based on Euclidean distance:

[0075] For a point cloud P with N number of points, P = {p1, p2, ..., p n Any point p in i , if the current point is not assigned to any cluster, a new cluster C is established j , and point p i Assign to cluster C j For a neighboring point p in its neighborhood k , calculate point p i and point p k The Euclidean distance dis(p i ,p k ):

[0076]

[0077] In the formula, (x i ,y i ,z i ) is point p i The coordinates of (x k ,y k ,z k ) is point p k The coordinates of

[0078] Define a distance threshold T d , when the Euclidean distance dis(p i ,p k ) is less than the distance threshold T d , then they are considered to be points of the same cluster and are assigned to cluster C. j Middle; all points in the neighborhood of the point are judged by the threshold of the Euclidean distance, and the newly added cluster C j , continue to iteratively search the neighboring points of the newly added point until there are no new points; continue to traverse the points that are not assigned to any cluster until all points are assigned to the corresponding clusters.

[0079] Preferably, in step S22, a method based on singular value decomposition of a point cloud matrix is ​​used to estimate the human body posture, thereby adaptively determining the user's object transmission posture, and the specific steps are as follows:

[0080] First, the point cloud is decomposed into singular values ​​to obtain a mathematical description of the main feature directions of the point cloud:

[0081] For N-dimensional data with M points, it is described in matrix form A M×N , A iis the i-th column vector, u is the column vector of the unit projection, the data is decentralized so that the mean of the processed point cloud is 0, and the main direction of the point cloud is set to the variance S in the data distribution 2 The unit vector e in the direction of the maximum defines the following objective function:

[0082]

[0083] in

[0084]

[0085] because

[0086] ((A i ) T e) 2 =((A i ) T e) T ·((A i ) T ·e)=e T ·A i ·(A i ) T ·e (27)

[0087] Therefore

[0088]

[0089] In the formula, A M×N The covariance matrix of It is denoted as C;

[0090] Then use the Lagrange multiplier method to solve the target optimization function:

[0091] L(e,λ)=e T Ce+λ(1-e T e) (29)

[0092]

[0093] Where, L(e,λ) represents the objective function of the Lagrange multiplier method;

[0094] Simplifying equation (30)

[0095] Ce=λe (31)

[0096] When the objective function takes an extreme value, λ is the largest eigenvalue of the covariance matrix C, and e is the eigenvector corresponding to the largest eigenvalue. At this time, solving the eigenvalue and eigenvector problem of the covariance matrix C is equivalent to solving the point cloud matrix A. M×N The singular value decomposition problem of AM×N The result of singular value decomposition is as follows:

[0097]

[0098] In the formula, For (A M×N ) T A M×N The eigenvector of the covariance matrix C; U M×M A M×N (A M×N ) T The characteristic vector of and U M×M are all unit orthogonal vectors;

[0099] And U M×M and The corresponding eigenvectors in M×N The singular values ​​are arranged in order, and the eigenvalues ​​of the covariance matrix C are ∑ M×N The squares of the singular values ​​in ;

[0100] Finally, the positive and negative directions of the desired point cloud directions are unified to form a three-dimensional Euclidean coordinate system, and the three-dimensional Euclidean coordinate system is regarded as the coordinate system of the current human body point cloud direction.

[0101] Preferably, in step S3, the human-machine object transfer task is set as: taking the object grasping posture as the starting point and the object transfer posture as the end point, using the robot arm motion planning method to plan an effective path to achieve the object transfer task, and setting the constraints in the object transfer robot arm motion planning process: passive chain constraints, environmental constraints, comfort constraints and task constraints.

[0102] Preferably, in step S3, the following constraint is also added: a judgment condition based on the quaternion angle of the end of the robot arm is used to constrain the posture change of two adjacent path nodes during the movement process. The judgment condition is as follows:

[0103] 2arccos(Q n Q n′ )≤T Q (33)

[0104] In the formula, Q n is the current node of the robot's motion path; Q n′ is the next node in the planned path, arccos is the inverse cosine function, T Q is the posture change threshold.

[0105] The system of the adaptive manipulator human-machine object transmission method based on point cloud under composite constraints includes a manipulator, a depth camera is installed at the end of the manipulator, the depth camera communicates with a computer, and the computer includes:

[0106] The calibration module obtains the Euclidean transformation matrix between the camera coordinate system of the robot and the tool coordinate system at the end of the robot;

[0107] The perception and target detection module is used to use the depth camera to obtain the point cloud of the object to be grasped and the point cloud of the user's body, and to obtain the Euclidean transformation matrix between the camera coordinate system of the robot arm and the tool coordinate system at the end of the robot arm tool T cam , thereby determining the coordinate transformation relationship between the target point cloud in the depth camera and the robot arm base;

[0108] The object grasping posture estimation module is used to identify the target object according to the point cloud of the object to be grasped using a template matching method based on two-dimensional image features to segment the three-dimensional scene point cloud, and then use a point cloud matching method that combines coarse matching and fine registration based on three-dimensional point cloud features to estimate the transformation matrix, thereby adaptively determining the grasping posture of the object to be grasped;

[0109] The user transmission posture estimation module is used to filter and segment the three-dimensional human body point cloud in the scene based on the user's human body point cloud using a combined point cloud filtering and clustering method, and then estimate the human body posture using a method based on the singular value decomposition of the point cloud matrix, so as to adaptively determine the user's object transmission posture;

[0110] The robot arm motion planning module is used to realize adaptive robot arm human-machine object transfer planning under composite constraints based on the grasping posture of the object to be grasped and the object transfer posture of the user.

[0111] A machine-readable storage medium stores machine-executable instructions, which, when executed by one or more processors, implement the point cloud-based adaptive manipulator human-machine object transfer method under composite constraints.

[0112] A data processing device comprises a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are executed by the processor, the method for adaptive manipulator-human-machine object transmission based on point cloud under composite constraints is implemented.

[0113] The present invention has the following beneficial effects:

[0114] 1. By combining point cloud matching and posture estimation, the adaptability and intelligence of the robot arm in the process of grasping and object transmission are realized. The estimated adaptive posture result has a small error and a high planning success rate to meet the complex working environment of the robot arm;

[0115] 2. Enable the robotic arm to perform service tasks efficiently by considering compound constraints in the planning process.

[0116] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0117] Figure 1 It is a flow chart of the method for point cloud-based adaptive manipulator human-machine object transmission under composite constraints of the present invention;

[0118] Figure 2 It is a schematic diagram of hand-eye calibration of the eye-on-hand robotic arm system of the point cloud-based adaptive robotic arm human-machine object transmission method under composite constraints of the present invention;

[0119] Figure 3 It is a schematic diagram of the three-dimensional point cloud FPFH feature description of the point cloud-based adaptive manipulator human-machine object transmission method under composite constraints of the present invention;

[0120] Figure 4 It is a schematic diagram of FPFH characteristic source points and their neighborhoods of the adaptive manipulator human-machine object transmission method based on point cloud under composite constraints of the present invention;

[0121] Figure 5 This is a rendering of the pose estimation results based on singular value decomposition of the point cloud-based adaptive manipulator human-machine object transmission method under composite constraints of the present invention. DETAILED DESCRIPTION

[0122] In order to make the purpose, technical scheme and advantages disclosed in the embodiments of the present invention clearer, the embodiments of the present invention are further described in detail in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the embodiments of the present invention and are not intended to limit the embodiments of the present invention. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application. Examples of the embodiments are shown in the accompanying drawings, where the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions.

[0123] It should be noted that the terms "include", "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or server comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products or devices.

[0124] Like reference numerals and letters denote similar items in the following drawings, and thus, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0125] As a three-dimensional representation of an object, point cloud has rich geometric information and can better describe the shape and surface features of the object. Therefore, using point cloud for object recognition, grasping posture estimation and target positioning has become an important way to improve the adaptability of the robot arm.

[0126] On the other hand, by using a depth camera to obtain the user's point cloud data and using a posture estimation algorithm to analyze the user's state, a more comfortable human-computer interaction between the robotic arm and the user can be achieved.

[0127] Based on the above analysis, the present invention is designed as follows: Figure 1 As shown, the method for transferring objects between an adaptive manipulator and a human-machine object based on a point cloud under a composite constraint comprises the following steps:

[0128] S1. Use the depth camera at the end of the robotic arm to obtain the point cloud of the object to be grasped and the point cloud of the user's body respectively;

[0129] S2, based on the point cloud of the object to be grasped and the point cloud of the user's body obtained in step S1, respectively estimating the grasping posture of the object to be grasped and the object transmission posture of the user;

[0130] Step S2 specifically includes the following steps:

[0131] S21. Obtain the Euclidean rotation matrix between the robot's camera coordinate system and the robot's end tool coordinate system tool T cam , thereby determining the coordinate transformation relationship between the target point cloud in the depth camera and the robot arm base;

[0132] It specifically includes the following steps:

[0133] S211. Set the closed-loop coordinate system spatial relationship of the hand-eye system of the robot arm to satisfy the following formula:

[0134] tool T cam = tool T base * base T cal *cal T cam (1)

[0135] In the formula, tool T cam is the Euclidean rotation matrix of the depth camera coordinate system relative to the tool coordinate system at the end of the robot arm; tool T base is the rotation matrix of the tool coordinate system at the end of the robot arm relative to the coordinate system of the robot arm base; base T cal is the rotation matrix of the calibration plate relative to the robot base coordinate system; cal T cam is the rotation matrix of the calibration plate relative to the depth camera coordinate system; in this embodiment, the following is used a T b The symbol represents the Euclidean transformation matrix from coordinate system a to coordinate system b, and like Figure 2 As shown in the figure, the camera of the eye-on-hand system is installed at the end of the robotic arm and the calibration plate is installed in a fixed position. base T cal and tool T cam is a fixed amount, and tool T cam The result of the calibration solution.

[0136] It is deduced that:

[0137] base T cal = base T tool * tool T cam * cam T cal (2)

[0138] In the formula, base T tool is the rotation matrix of the robot base coordinate system relative to the tool coordinate system at the end of the robot arm; tool T cam is the rotation matrix of the tool coordinate system at the end of the robot arm relative to the depth camera coordinate system; cam T cal is the rotation matrix of the depth camera coordinate system relative to the calibration plate;

[0139] S212, take the results twice at time t0 and time t1 respectively, and obtain:

[0140]

[0141] In the formula, is the rotation matrix of the robot base coordinate system relative to the tool coordinate system at the end of the robot arm at time t0; is the rotation matrix of the depth camera coordinate system relative to the calibration plate at time t0; is the rotation matrix of the robot base coordinate system relative to the tool coordinate system at the end of the robot arm at time t1; is the rotation matrix of the robot base coordinate system relative to the tool coordinate system at the end of the robot arm at time t1;

[0142] Multiply the left and right sides of formula (3) by and get:

[0143]

[0144] In the formula, is the rotation matrix of the tool coordinate system at the end of the robot arm relative to the coordinate system of the robot arm base at time t1; is the rotation matrix of the calibration plate relative to the depth camera coordinate system at time t0;

[0145] Convert to:

[0146] AX=XB (5)

[0147] in:

[0148]

[0149]

[0150] X= tool T cam (8);

[0151] S213, use the Tsai-Lenz method to solve the Euclidean rotation matrix of the required depth camera coordinate system relative to the tool coordinate system at the end of the robot arm tool T cam Numerical solution of ;

[0152] S214, using the depth camera internal parameters and Euclidean rotation matrix tool T cam Convert the user's position coordinates to the robot base coordinate system:

[0153]

[0154]

[0155] In the formula, (u pixel ,v pixel ) is the user's position in the pixel coordinate system, which is the coordinate of the center point of the identification box; (x, y, z) is the three-dimensional coordinate of the user in the camera coordinate system; z is the depth value of the pixel where the user is located read from the depth map; f is the focal length of the depth camera; cx and c y are the optical center positions of the depth camera on the x-axis and y-axis respectively;

[0156] S22, respectively estimate the grasping posture of the object to be grasped and the object transmission posture of the user:

[0157] For the point cloud of the object to be grasped, a template matching method based on two-dimensional image features is used to identify the target object to achieve the segmentation of the three-dimensional scene point cloud. Then, a point cloud matching method combining coarse matching and fine registration based on three-dimensional point cloud features is used to estimate the transformation matrix, thereby adaptively determining the grasping posture of the object to be grasped.

[0158] In step S22, if Figure 3 and Figure 4 As shown in the figure, for the point cloud of the object to be grasped, the two-dimensional SURF features are first used to calculate the feature points of the template image and the scene image respectively, and then the Lowe algorithm and the RANSAC algorithm are used to filter the feature points and calculate the homography transformation matrix of the template matching to delineate the region of interest in the two-dimensional RGB image of the camera; then the points in the region of interest are converted into a point cloud containing both three-dimensional XYZ coordinates and RGB colors, and then filtered according to the depth value constraint to achieve the segmentation of the three-dimensional environment point cloud;

[0159] Then, the SAC-IA point cloud registration method based on FPFH three-dimensional point cloud features is used to achieve coarse matching between the scene object point cloud and the template point cloud. The point-to-point point cloud ICP algorithm is used to achieve precise registration between the scene object point cloud and the template point cloud. The Euclidean transformation matrix of the template point cloud and the scene object point cloud is obtained using a method based on point cloud matching. The Euclidean transformation matrix is ​​applied to the corresponding optimal manual grasping posture to calculate the optimal grasping posture of the current scene object.

[0160] Among them, the point cloud matching steps are as follows:

[0161] First, the FPFH features of all points in the point cloud are calculated, that is, each point in the point cloud is calculated as the current source point and all points within a certain neighborhood to calculate the FPFH features, and then the coordinate system is established according to the normal vector and connecting line of the source point and a neighboring point in the neighborhood. The direction calculation formula of the three axes of the coordinate system is as follows:

[0162] u=n s (11)

[0163] v=(P t -P s )×u (12)

[0164] w=u×v (13)

[0165] In the formula, u, v, and w represent the three axes of the coordinate system respectively; P s is the source point of the current feature calculation; P t P s One of the points in the neighborhood; n s Point P s The normal vector of t -P s ) represents point P t To point P s The symbol × represents the cross product of vectors;

[0166] According to the three-axis coordinate system, the following three eigenvalues ​​are calculated:

[0167] α=v·n t (14)

[0168]

[0169] θ=arctan(w·n t ,u·n t ) (16)

[0170] Where α is the v-axis and point P t The angle eigenvalue of the normal vector; φ is the angle eigenvalue of the line connecting the two points of the source point normal vector; θ is the eigenvalue describing the direction of the u-axis, w-axis and the normal vector of the neighboring point; n t Point P t Normal vector of ||P t -P s || represents point P t To point P s The Euclidean distance of Indicates point P t To point P s The unit vector in the direction of the line connecting ;

[0171] Then, the three eigenvalues ​​of α, φ, and θ are calculated for all neighboring points in the neighborhood of the source point, and statistics are performed through histograms. The method of dividing the three eigenvalue ranges equally is used to form a multidimensional histogram feature, which is recorded as SPF (P s ),like Figure 4 As shown in the solid line range, in this embodiment, the method of dividing the three feature value ranges into 11 equal parts is used to form a total of 33-dimensional histogram features. t , and calculate SPF(P t ),like Figure 4 As shown in the dotted line range, and press the neighboring point P t The distance calculation weight from the source point is added to SPF (P s ), the FPFH feature FPFH(P s ):

[0172]

[0173] In the formula, ω represents k The i-th neighbor point P i and source point P s distance;

[0174] After calculating the FPFH features of the template point cloud and the scene object point cloud respectively, the SAC-IA point cloud registration method is used to randomly select a set number of feature matching points, and the Euclidean rotation matrix and matching error under the current matching situation are calculated;

[0175] Different feature matching point sets are selected by iterating for a set number of times, and the Euclidean rotation matrix with the smallest matching error is taken as the result of the point cloud rough registration;

[0176] Finally, the point-to-point point cloud ICP algorithm is used to achieve precise alignment of the scene object point cloud and the template point cloud: the scene object point cloud, the template point cloud and the coarsely aligned Euclidean transformation matrix are input into the point-to-point point cloud ICP algorithm, and the new Euclidean transformation matrix is ​​iteratively calculated based on the coarsely aligned transformation until the set error requirement is met.

[0177] For the user's human body point cloud, a combined point cloud filtering and clustering method is used to realize the screening and segmentation of the three-dimensional human body point cloud in the scene, and then the human body posture is estimated using a method based on the singular value decomposition of the point cloud matrix, so as to adaptively determine the user's object transmission posture.

[0178] In step S22, for the user's human body point cloud, a combined point cloud filtering and clustering method is used to implement the screening and segmentation of the three-dimensional human body point cloud in the scene. The specific steps are as follows:

[0179] First, define the distance threshold T dist , whose value is close to the radius of the robot's working space, and the distance is greater than T dist Delete the point cloud to achieve the rough segmentation of the environment point cloud;

[0180] Then, the voxel filtering method is used to downsample the roughly segmented environment point cloud: the voxel filtering method divides the space into equal parts with a radius of r voxel For a cube voxel grid with point cloud distribution, the centroid of all point clouds in the voxel grid is calculated and stored in the voxel grid as a new point cloud, so as to reduce the number of point clouds while keeping the shape and characteristics of the original point cloud as much as possible;

[0181] The centroid calculation formula for all points in any voxel grid is as follows:

[0182]

[0183]

[0184]

[0185] The point cloud is then denoised using a statistical outlier filter:

[0186] For a point cloud P with N number of points, P = {p1, p2, ..., p n Any point p in i , define point p i The k nearest neighboring points nearby are its neighborhood, and the distance from the point to all points in its neighborhood is used as a statistical sample, which satisfies the normal distribution and has a sample mean and sample variance;

[0187] Among them, point p i The sample distance M to all points in the neighborhood i The calculation formula is as follows:

[0188]

[0189] Where k is the number of neighboring points in the neighborhood; p j Represents point p i The jth point in the neighborhood; ||p i -p j || represents point p i To point p j distance;

[0190] Then calculate the point p separately i The sample variance D of all points in the neighborhood i :

[0191]

[0192] Define the outlier threshold T o , when the outlier threshold T o When the following conditions are met, it is considered that point p i To count outliers, they are removed by the filter:

[0193] T o <M i +λ D D i (twenty three)

[0194] In the formula, λ D is the multiple of standard deviation;

[0195] Finally, the human point cloud is segmented using a clustering segmentation algorithm based on Euclidean distance:

[0196] For a point cloud P with N number of points, P = {p1, p2, ..., p n Any point p ini , if the current point is not assigned to any cluster, a new cluster C is established j , and point p i Assign to cluster C j For a neighboring point p in its neighborhood k , calculate point p i and point p k The Euclidean distance dis(p i ,p k ):

[0197]

[0198] In the formula, (x i ,y i ,z i ) is point p i The coordinates of (x k ,y k ,z k ) is point p k The coordinates of

[0199] Define a distance threshold T d , when the Euclidean distance dis(p i ,p k ) is less than the distance threshold T d , then they are considered to be points of the same cluster and are assigned to cluster C. j Middle; all points in the neighborhood of the point are judged by the threshold of the Euclidean distance, and the newly added cluster C j , continue to iteratively search the neighboring points of the newly added point until there are no new points; continue to traverse the points that are not assigned to any cluster until all points are assigned to the corresponding clusters.

[0200] It can be seen that the core idea of ​​the clustering segmentation algorithm based on Euclidean distance is to set the distance threshold T d To assign points with dense connection characteristics and close distribution characteristics in the point cloud to the same cluster. In this way, the points in the point cloud can be effectively grouped into multiple clusters, and the connectivity of these adjacent points in the point cloud is used to form clusters. Experiments have verified that the cluster segmentation algorithm based on Euclidean distance can effectively achieve precise segmentation of human point clouds.

[0201] Preferably, in step S22, Figure 5 As shown, the human body posture is estimated using a method based on singular value decomposition of the point cloud matrix, so as to adaptively determine the user's object transmission posture. The specific steps are as follows:

[0202] Describe the three-dimensional coordinates of each point in the point cloud in the form of a column vector, and then use the column vectors to form a matrix of the entire point cloud, which can be processed using the singular value decomposition method. Singular value decomposition reveals the overall structure and directionality of the data by solving the characteristics of the point cloud matrix, and can represent the global properties of the entire point cloud data. Therefore, through singular value decomposition, accurate and stable feature vectors can be obtained. These vectors represent the most important directions in the point cloud data, and are then converted into the optimal object transmission posture corresponding to the current human body point cloud through subsequent processing.

[0203] First, the point cloud is decomposed into singular values ​​to obtain a mathematical description of the main feature directions of the point cloud:

[0204] For N-dimensional data with M points, it is described in matrix form A M×N , A i is the i-th column vector, u is the column vector of the unit projection, the data is decentralized so that the mean of the processed point cloud is 0, and the main direction of the point cloud is set to the variance S in the data distribution 2 The unit vector e in the direction of the maximum defines the following objective function:

[0205]

[0206] in

[0207]

[0208] because

[0209] ((A i ) T e) 2 =((A i ) T e) T ·((A i ) T ·e)=e T ·A i ·(A i ) T ·e (27)

[0210] Therefore

[0211]

[0212] In the formula, A M×N The covariance matrix of It is denoted as C;

[0213] Then use the Lagrange multiplier method to solve the target optimization function:

[0214] L(e,λ)=e TCe+λ(1-e T e) (29)

[0215]

[0216] Where, L(e,λ) represents the objective function of the Lagrange multiplier method;

[0217] Simplifying equation (30)

[0218] Ce=λe (31)

[0219] When the objective function takes an extreme value, λ is the largest eigenvalue of the covariance matrix C, and e is the eigenvector corresponding to the largest eigenvalue. At this time, solving the eigenvalue and eigenvector problem of the covariance matrix C is equivalent to solving the point cloud matrix A. M×N The singular value decomposition problem of A M×N The result of singular value decomposition is as follows:

[0220]

[0221] In the formula, For (A M×N ) T A M×N The eigenvector of the covariance matrix C; U M×M A M×N (A M×N ) T The characteristic vector of and U M×M are all unit orthogonal vectors;

[0222] And U M×M and The corresponding eigenvectors in M×N The singular values ​​are arranged in order, and the eigenvalues ​​of the covariance matrix C are ∑ M×N The squares of the singular values ​​in ;

[0223] Finally, the positive and negative directions of the desired point cloud directions are unified to form a three-dimensional Euclidean coordinate system, and the three-dimensional Euclidean coordinate system is regarded as the coordinate system of the current human body point cloud direction.

[0224] S3. Based on the grasping posture of the object to be grasped and the object transfer posture of the user estimated in step S2, the motion trajectory of the robot arm is planned under the composite constraints to realize adaptive robot arm human-machine object transfer planning.

[0225] In step S3, the human-machine object transfer task is set as follows: taking the object grasping posture as the starting point and the object transfer posture as the end point, the robot arm motion planning method is used to plan an effective path to achieve the object transfer task. For service robots, their working environment is mostly complex indoor scenes, and there are inevitably a large number of human-machine interaction processes. At the same time, there are different specific requirements for different task objects. The constraints in the object transfer robot arm motion planning process are set: passive chain constraints, environmental constraints, comfort constraints and task constraints.

[0226] Passive chain constraints refer to the situation in which the movement of some parts of a mechanical system or robot control is subject to the movement of other parts. This is usually caused by the mechanical structure and connection method of the system, rather than the constraints actively imposed by the controller. For a six-degree-of-freedom robot arm, each joint can move independently, but due to the limitations of the mechanical structure, the movement of some joints may affect the movement of other joints.

[0227] Environmental constraints mainly come from complex obstacles in the indoor environment, such as tables, chairs, cabinets, etc. During the motion planning of the robot arm, it is necessary to prevent the joints from colliding with obstacles.

[0228] The comfort constraint is based on the human-machine relationship. When the robot interacts with a human, the planning result of the motion planning algorithm does not invade the human's comfort space.

[0229] Task constraints refer to the constraints imposed by task objects on the motion planning of the robot arm when performing a specific task. Task constraints are mostly manifested as posture constraints. For example, when the robot arm is asked to transfer a water cup, the end of the robot arm should grasp the cup in a positive direction (with the cup mouth facing up), and at the same time, the cup should have almost no pitch and roll changes during the movement, and only yaw rotation at most. Only by ensuring the above constraints can we ensure that the liquid in the cup will not spill when the robot is transporting the cup, thus meeting all aspects of the task requirements.

[0230] In step S3, the following constraint is also added: the judgment condition based on the quaternion angle of the end of the robot arm is used to constrain the posture change of two adjacent path nodes during the movement process. The judgment condition is as follows:

[0231] 2arccos(Q n Q n′ )≤T Q (33)

[0232] In the formula, Q n is the current node of the robot's motion path; Q n′ is the next node in the planned path, arccos is the inverse cosine function, T Qis the attitude change threshold. Since this condition directly calculates the quaternion of the end attitude of the robot arm, the three-axis rotation changes are restricted, and the planned path can be regarded as the end basically unchanged.

[0233] The system of the adaptive manipulator man-machine object transmission method based on point cloud under composite constraints includes a manipulator, a depth camera is installed at the end of the manipulator, and the depth camera communicates with a computer. In this embodiment, the manipulator is a 6-DOF UR5e manipulator, the depth camera model is realsenseD435, and the computer is a NUC computer

[0234] The computer includes:

[0235] The calibration module obtains the Euclidean transformation matrix between the camera coordinate system of the robot and the tool coordinate system at the end of the robot;

[0236] The perception and target detection module is used to use the depth camera to obtain the point cloud of the object to be grasped and the point cloud of the user's body, and to obtain the Euclidean transformation matrix between the camera coordinate system of the robot arm and the tool coordinate system at the end of the robot arm tool T cam , thereby determining the coordinate transformation relationship between the target point cloud in the depth camera and the robot arm base;

[0237] The object grasping posture estimation module is used to identify the target object according to the point cloud of the object to be grasped using a template matching method based on two-dimensional image features to segment the three-dimensional scene point cloud, and then use a point cloud matching method that combines coarse matching and fine registration based on three-dimensional point cloud features to estimate the transformation matrix, thereby adaptively determining the grasping posture of the object to be grasped;

[0238] The user transmission posture estimation module is used to filter and segment the three-dimensional human body point cloud in the scene based on the user's human body point cloud using a combined point cloud filtering and clustering method, and then estimate the human body posture using a method based on the singular value decomposition of the point cloud matrix, so as to adaptively determine the user's object transmission posture;

[0239] The robot arm motion planning module is used to realize adaptive robot arm human-machine object transfer planning under composite constraints based on the grasping posture of the object to be grasped and the object transfer posture of the user.

[0240] A machine-readable storage medium stores machine-executable instructions, which, when executed by one or more processors, implement the point cloud-based adaptive manipulator human-machine object transfer method under composite constraints.

[0241] A data processing device comprises a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are executed by the processor, the method for adaptive manipulator-human-machine object transmission based on point cloud under composite constraints is implemented.

[0242] Therefore, the present invention adopts the above-mentioned point cloud-based adaptive robotic arm human-machine object transfer method, system and data processing equipment under the composite constraints, combines point cloud matching and posture estimation, and realizes the adaptability and intelligence of the robotic arm in the process of grasping and object transfer. The estimated adaptive posture result has a small error and a high planning success rate to meet the complex working environment of the robotic arm.

[0243] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that they can still modify or replace the technical solution of the present invention with equivalents, and these modifications or equivalent replacements cannot cause the modified technical solution to deviate from the spirit and scope of the technical solution of the present invention.

Claims

1. A method for transferring objects between man-machine and robot based on point cloud under composite constraints, characterized by: The following steps are involved: S1. Use the depth camera at the end of the robotic arm to obtain the point cloud of the object to be grasped and the point cloud of the user's body respectively; S2, based on the point cloud of the object to be grasped and the point cloud of the user's body obtained in step S1, respectively estimating the grasping posture of the object to be grasped and the object transmission posture of the user; S3. Based on the grasping posture of the object to be grasped and the object transfer posture of the user estimated in step S2, the motion trajectory of the robot arm is planned under the composite constraints to realize adaptive robot arm human-machine object transfer planning.

2. The method for adaptive manipulator-human-machine object transmission based on point cloud under composite constraints according to claim 1 is characterized in that: Step S2 specifically includes the following steps: S21. Obtain the Euclidean rotation matrix between the robot's camera coordinate system and the robot's end tool coordinate system tool T cam , thereby determining the coordinate transformation relationship between the target point cloud in the depth camera and the robot arm base; It specifically includes the following steps: S211. Set the closed-loop coordinate system spatial relationship of the hand-eye system of the robot arm to satisfy the following formula: tool T cam = tool T base * base T cal * cal T cam (1) In the formula, tool T cam is the Euclidean rotation matrix of the depth camera coordinate system relative to the tool coordinate system at the end of the robot arm; tool T base is the rotation matrix of the tool coordinate system at the end of the robot arm relative to the coordinate system of the robot arm base; base T cal is the rotation matrix of the calibration plate relative to the robot base coordinate system; cal T cam is the rotation matrix of the calibration plate relative to the depth camera coordinate system; It is deduced that: base T cal = base T tool * tool T cam * cam T cal (2) In the formula, base T tool is the rotation matrix of the robot base coordinate system relative to the tool coordinate system at the end of the robot arm; tool T cam is the rotation matrix of the tool coordinate system at the end of the robot arm relative to the depth camera coordinate system; cam T cal is the rotation matrix of the depth camera coordinate system relative to the calibration plate; S212, take the results twice at time t0 and time t1 respectively, and obtain: In the formula, is the rotation matrix of the robot base coordinate system relative to the tool coordinate system at the end of the robot arm at time t0; is the rotation matrix of the depth camera coordinate system relative to the calibration plate at time t0; is the rotation matrix of the robot base coordinate system relative to the tool coordinate system at the end of the robot arm at time t1; is the rotation matrix of the robot base coordinate system relative to the tool coordinate system at the end of the robot arm at time t1; Multiply the left and right sides of formula (3) by and get: In the formula, is the rotation matrix of the tool coordinate system at the end of the robot arm relative to the coordinate system of the robot arm base at time t1; is the rotation matrix of the calibration plate relative to the depth camera coordinate system at time t0; Convert to: AX=XB (5) in: X= tool T cam (8); S213, use the Tsai-Lenz method to solve the Euclidean rotation matrix of the required depth camera coordinate system relative to the tool coordinate system at the end of the robot arm tool T cam Numerical solution of ; S214, using the depth camera internal parameters and Euclidean rotation matrix tool T cam Convert the user's position coordinates to the robot base coordinate system: In the formula, (u pixel ,v pixel ) is the user's position in the pixel coordinate system, which is the coordinate of the center point of the identification box; (x, y, z) is the three-dimensional coordinate of the user in the camera coordinate system; z is the depth value of the pixel where the user is located read from the depth map; f is the focal length of the depth camera; c x and c y are the optical center positions of the depth camera on the x-axis and y-axis respectively; S22, respectively estimate the grasping posture of the object to be grasped and the object transmission posture of the user: For the point cloud of the object to be grasped, a template matching method based on two-dimensional image features is used to identify the target object to achieve the segmentation of the three-dimensional scene point cloud. Then, a point cloud matching method combining coarse matching and fine registration based on three-dimensional point cloud features is used to estimate the transformation matrix, thereby adaptively determining the grasping posture of the object to be grasped. For the user's human body point cloud, a combined point cloud filtering and clustering method is used to realize the screening and segmentation of the three-dimensional human body point cloud in the scene, and then the human body posture is estimated using a method based on the singular value decomposition of the point cloud matrix, so as to adaptively determine the user's object transmission posture.

3. The method for adaptive manipulator-human-machine object transmission based on point cloud under composite constraints according to claim 2 is characterized in that: In step S22, for the point cloud of the object to be grasped, the two-dimensional SURF features are first used to calculate the feature points of the template image and the scene image respectively, and then the Lowe algorithm and the RANSAC algorithm are used to screen the feature points and calculate the homography transformation matrix of the template matching to delineate the region of interest in the two-dimensional RGB image of the camera; then the points in the region of interest are converted into a point cloud containing both three-dimensional XYZ coordinates and RGB colors, and then screened according to the depth value constraint to achieve the segmentation of the three-dimensional environment point cloud; Then, the SAC-IA point cloud registration method based on FPFH three-dimensional point cloud features is used to achieve coarse matching between the scene object point cloud and the template point cloud. The point-to-point point cloud ICP algorithm is used to achieve precise registration between the scene object point cloud and the template point cloud. The Euclidean transformation matrix of the template point cloud and the scene object point cloud is obtained using a method based on point cloud matching. The Euclidean transformation matrix is ​​applied to the corresponding optimal manual grasping posture to calculate the optimal grasping posture of the current scene object. Among them, the point cloud matching steps are as follows: First, the FPFH features of all points in the point cloud are calculated, that is, each point in the point cloud is calculated as the current source point and all points within a certain neighborhood to calculate the FPFH features, and then the coordinate system is established according to the normal vector and connecting line of the source point and a neighboring point in the neighborhood. The direction calculation formula of the three axes of the coordinate system is as follows: u=n s (11) v=(P t -P s )×u (12) w=u×v (13) In the formula, u, v, and w represent the three axes of the coordinate system respectively; P s is the source point of the current feature calculation; P t P s One of the points in the neighborhood; n s For point P s The normal vector of t -P s ) represents point P t To point P s The symbol × represents the cross product of vectors; According to the three-axis coordinate system, the following three eigenvalues ​​are calculated: α=v·n t (14) θ=arctan(w·n t ,u·n t ) (16) Where α is the v-axis and point P t The angle eigenvalue of the normal vector; φ is the angle eigenvalue of the line connecting the two points of the source point normal vector; θ is the eigenvalue describing the direction of the u-axis, w-axis and the normal vector of the neighboring point; n t For point P t Normal vector of ||P t -P s || represents point P t To point P s The Euclidean distance of Indicates point P t To point P s The unit vector in the direction of the line connecting ; Then, the three eigenvalues ​​of α, φ, and θ are calculated for all neighboring points in the neighborhood of the source point, and statistics are performed through histograms. The method of dividing the three eigenvalue ranges equally is used to form a multidimensional histogram feature, which is recorded as SPF (P s ), for k neighboring points P t , and calculate SPF(P t ), and press the neighboring point P t The distance calculation weight from the source point is added to SPF (P s ), the FPFH feature FPFH(P s ): In the formula, ω represents k The i-th neighbor point P i and source point P s distance; After calculating the FPFH features of the template point cloud and the scene object point cloud respectively, the SAC-IA point cloud registration method is used to randomly select a set number of feature matching points, and the Euclidean rotation matrix and matching error under the current matching situation are calculated; Different feature matching point sets are selected by iterating for a set number of times, and the Euclidean rotation matrix with the smallest matching error is taken as the result of the point cloud rough registration; Finally, the point-to-point point cloud ICP algorithm is used to achieve precise alignment of the scene object point cloud and the template point cloud: the scene object point cloud, the template point cloud and the coarsely aligned Euclidean transformation matrix are input into the point-to-point point cloud ICP algorithm, and the new Euclidean transformation matrix is ​​iteratively calculated based on the coarsely aligned transformation until the set error requirement is met.

4. The method for adaptive manipulator-human-machine object transmission based on point cloud under composite constraints according to claim 3 is characterized in that: In step S22, for the user's human body point cloud, a combined point cloud filtering and clustering method is used to implement the screening and segmentation of the three-dimensional human body point cloud in the scene. The specific steps are as follows: First, define the distance threshold T dist , and the distance is greater than T dist Delete the point cloud to achieve the rough segmentation of the environment point cloud; Then, the voxel filtering method is used to downsample the roughly segmented environment point cloud: the voxel filtering method divides the space into equal parts with a radius of r voxel For a cube voxel grid with point cloud distribution, the centroid of all point clouds in the voxel grid is calculated and stored in the voxel grid as a new point cloud; The centroid calculation formula for all points in any voxel grid is as follows: The point cloud is then denoised using a statistical outlier filter: For a point cloud P with N number of points, P = {p1, p2, ..., p n Any point p in i , define point p i The k nearest neighboring points nearby are its neighborhood, and the distance from the point to all points in its neighborhood is used as a statistical sample, which satisfies the normal distribution and has a sample mean and sample variance; Among them, point p i The sample distance M to all points in the neighborhood i The calculation formula is as follows: Where k is the number of neighboring points in the neighborhood; p j Represents point p i The jth point in the neighborhood; ||p i -p j || represents point p i To point p j distance; Then calculate the point p separately i The sample variance D of all points in the neighborhood i : Define the outlier threshold T o , when the outlier threshold T o When the following conditions are met, it is considered that point p i To count outliers, they are removed by the filter: T o <M i +λ D D i (23) In the formula, λ D is the multiple of standard deviation; Finally, the human point cloud is segmented using a clustering segmentation algorithm based on Euclidean distance: For a point cloud P with N number of points, P = {p1, p2, ..., p n Any point p in i , if the current point is not assigned to any cluster, a new cluster C is established j , and point p i Assign to cluster C j For a neighboring point p in its neighborhood k , calculate point p i and point p k The Euclidean distance dis(p i ,p k ): In the formula, (x i ,y i ,z i ) is point p i The coordinates of (x k ,y k ,z k ) is point p k The coordinates of Define a distance threshold T d , when the Euclidean distance dis(p i ,p k ) is less than the distance threshold T d , then they are considered to be points of the same cluster and are assigned to cluster C. j Middle; all points in the neighborhood of the point are judged by the threshold of the Euclidean distance, and the newly added cluster C j , continue to iteratively search the neighboring points of the newly added point until there are no new points; continue to traverse the points that are not assigned to any cluster until all points are assigned to the corresponding clusters.

5. The method for adaptive manipulator-human-machine object transmission based on point cloud under composite constraints according to claim 4 is characterized in that: In step S22, a method based on singular value decomposition of a point cloud matrix is ​​used to estimate the human body posture, thereby adaptively determining the user's object transmission posture. The specific steps are as follows: First, the point cloud is decomposed into singular values ​​to obtain a mathematical description of the main feature directions of the point cloud: For N-dimensional data with M points, it is described in matrix form A M×N , A i is the i-th column vector, u is the column vector of the unit projection, the data is decentralized so that the mean of the processed point cloud is 0, and the main direction of the point cloud is set to the variance S in the data distribution 2 The unit vector e in the direction of the maximum defines the following objective function: in because ((TO i ) T ·And) 2 =((A i ) T ·And) T ·((TO i ) T ·e)=e T ·TO i ·(TO i ) T ·and (27) Therefore In the formula, A M×N The covariance matrix of It is denoted as C; Then use the Lagrange multiplier method to solve the target optimization function: L(e,λ)=e T Ce+λ(1-e T (29) Where, L(e,λ) represents the objective function of the Lagrange multiplier method; Simplifying equation (30) Ce=λe (31) When the objective function takes an extreme value, λ is the largest eigenvalue of the covariance matrix C, and e is the eigenvector corresponding to the largest eigenvalue. At this time, solving the eigenvalue and eigenvector problem of the covariance matrix C is equivalent to solving the point cloud matrix A. M×N The singular value decomposition problem of A M×N The result of singular value decomposition is as follows: In the formula, For (A M×N ) T A M×N The eigenvector of the covariance matrix C; U M×M A M×N (A M×N ) T The characteristic vector of and U M×M are all unit orthogonal vectors; AndU M×M and The corresponding eigenvectors in M×N The singular values ​​are arranged in order, and the eigenvalues ​​of the covariance matrix C are ∑ M×N The squares of the singular values ​​in ; Finally, the positive and negative directions of the desired point cloud directions are unified to form a three-dimensional Euclidean coordinate system, and the three-dimensional Euclidean coordinate system is regarded as the coordinate system of the current human body point cloud direction.

6. The method for adaptive manipulator-human-machine object transmission based on point cloud under composite constraints according to claim 5 is characterized in that: In step S3, the human-machine object transfer task is set as follows: taking the object grasping posture as the starting point and the object transfer posture as the end point, using the robot arm motion planning method to plan an effective path to achieve the object transfer task, and setting the constraints in the object transfer robot arm motion planning process: passive chain constraints, environmental constraints, comfort constraints and task constraints.

7. The method for adaptive manipulator-human-machine object transmission based on point cloud under composite constraints according to claim 6 is characterized in that: In step S3, the following constraint is also added: the judgment condition based on the quaternion angle of the end of the robot arm is used to constrain the posture change of two adjacent path nodes during the movement process. The judgment condition is as follows: 2arccos(Q n ·Q n′ )≤T Q (33) In the formula, Q n is the current node of the robot motion path; Q n′ is the next node in the planned path, arccos is the inverse cosine function, T Q is the attitude change threshold.

8. A system for the method for adaptive manipulator-human-machine-object transmission based on point cloud under composite constraints according to any one of claims 1 to 7, comprising a manipulator, a depth camera is installed at the end of the manipulator, and the depth camera communicates with a computer, wherein: the computer include: The calibration module obtains the Euclidean transformation matrix between the camera coordinate system of the robot and the tool coordinate system at the end of the robot; The perception and target detection module is used to use the depth camera to obtain the point cloud of the object to be grasped and the point cloud of the user's body, and to obtain the Euclidean transformation matrix between the camera coordinate system of the robot arm and the tool coordinate system at the end of the robot arm tool T cam , thereby determining the coordinate transformation relationship between the target point cloud in the depth camera and the robot arm base; The object grasping posture estimation module is used to identify the target object according to the point cloud of the object to be grasped using a template matching method based on two-dimensional image features to segment the three-dimensional scene point cloud, and then use a point cloud matching method that combines coarse matching and fine registration based on three-dimensional point cloud features to estimate the transformation matrix, thereby adaptively determining the grasping posture of the object to be grasped; The user transmission posture estimation module is used to filter and segment the three-dimensional human body point cloud in the scene based on the user's human body point cloud using a combined point cloud filtering and clustering method, and then estimate the human body posture using a method based on the singular value decomposition of the point cloud matrix, so as to adaptively determine the user's object transmission posture; The robot arm motion planning module is used to realize adaptive robot arm human-machine object transfer planning under composite constraints based on the grasping posture of the object to be grasped and the object transfer posture of the user.

9. A machine-readable storage medium having machine-executable instructions stored thereon, which, when executed by one or more processors, implement the point cloud-based adaptive robotic arm human-machine object transfer method under the composite constraints described in any one of claims 1-7.

10. A data processing device, comprising a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are executed by the processor, the method for adaptive manipulator human-machine object transfer based on point cloud under the composite constraints described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Mobile robot pose estimation method and system based on multi-sensor tight coupling

    CN113436260A

  • Man-machine cooperation method and device for realizing article transfer between robot and person

    CN113681565A

  • Mobile robot man-machine interaction and positioning method based on mixed reality

    CN117021117A

  • Controlling movement of a robot arm

    DE3470011D1

Cited By

  • Method for driving tail end of mechanical arm of robot

    CN119526424A

  • Electric drive system feeding and discharging method and system based on point cloud recognition

    CN121447403A