Method and device for determining a gripping point of a robot arm, electronic device and storage medium

By acquiring the three-dimensional convex hull of the casting, determining the target plane and initial position, and moving along the axial direction of the gripping hole to conduct a collision test, the gripping position of the robotic arm is automatically determined. This solves the problem of low efficiency and accuracy in determining the gripping position of the robotic arm in the existing technology, and achieves efficient and accurate gripping position determination.

CN121403359BActive Publication Date: 2026-11-27CITIC DICASTAL CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511526885.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-10-24
Publication Date
2026-11-27
Estimated Expiration
2045-10-24

AI Technical Summary

Technical Problem

In existing technologies, the determination of the gripping point of a robotic arm relies on manual adjustment, resulting in low efficiency and accuracy.

Method used

By acquiring the three-dimensional convex hull of the casting, the target plane and initial position are determined. The robot moves along the axial direction of the gripping hole and conducts a collision test to automatically determine the gripping position of the robotic arm.

Benefits of technology

This improves the efficiency and accuracy of determining the gripping point of the robotic arm, avoiding the inefficiency of manual adjustment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121403359B_ABST
    Figure CN121403359B_ABST
Patent Text Reader

Abstract

The application relates to a mechanical arm grabbing point determination method and device, electronic equipment and a storage medium. The method comprises the following steps: obtaining a three-dimensional convex hull corresponding to a to-be-grabbed casting; determining a target plane from a plurality of planes of the three-dimensional convex hull, wherein the target plane comprises a grabbing hole used for grabbing the to-be-grabbed casting by a mechanical arm; determining an initial point for performing collision detection based on the position of the target plane, wherein the vertical projection of the initial point on the target plane overlaps with the center point of the grabbing hole, and the vertical distance between the initial point and the target plane is a preset distance; moving from the initial point to the grabbing hole along a target direction, and performing a collision test during the movement; and determining the grabbing point of the mechanical arm according to the test result. Thus, the problem that the grabbing point of the mechanical arm needs to be manually adjusted by a teaching device in the prior art can be effectively solved, and the determination efficiency and accuracy of the grabbing point of the mechanical arm are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of casting inspection technology, and in particular to a method, device, electronic device and storage medium for determining the gripping point of a robotic arm. Background Technology

[0002] In the process of visual inspection of castings, a robotic arm is usually needed to grasp the casting and take pictures from multiple angles to obtain a global image of the casting. Then, the visual inspection and analysis of the casting is performed based on the obtained global image. For example, when visually inspecting an automotive steering knuckle, it can determine whether the steering knuckle has defects such as insufficient filling or deformation of the holes.

[0003] However, in existing technologies, the determination of the gripping point of a robotic arm typically involves manual adjustment using a teach pendant. This method requires visual observation of the positions of the robotic arm's grippers and the workpiece's shaft hole, and repeated testing to ensure stable gripping of the steering knuckle when the grippers are open. This process involves continuous adjustments to obtain the position and posture of the robotic arm's gripping point, resulting in low efficiency and accuracy in determining the gripping point. Summary of the Invention

[0004] This application provides a method, device, electronic device, and storage medium for determining the gripping point of a robotic arm, in order to solve the problem that the determination of the gripping point of a robotic arm in the prior art usually involves manually adjusting the gripping point of the robotic arm using a teach pendant, which results in low efficiency and accuracy in determining the gripping point of the robotic arm.

[0005] In a first aspect, embodiments of this application provide a method for determining the gripping point of a robotic arm, the method comprising:

[0006] Obtain the three-dimensional convex hull corresponding to the casting to be grasped, wherein the three-dimensional convex hull is a polyhedron generated based on the three-dimensional mesh model of the casting to be grasped;

[0007] A target plane is determined from multiple planes of the three-dimensional convex hull, wherein the two-dimensional projection shape of the target plane conforms to the shape requirements of the robotic arm for gripping the casting to be gripped, and the target plane includes gripping holes for the robotic arm to grip the casting to be gripped.

[0008] Based on the position of the target plane, an initial point for performing collision detection is determined, wherein the vertical projection of the initial point on the target plane overlaps with the center point of the grab hole, and the vertical distance between the initial point and the target plane is a preset distance;

[0009] Starting from the initial point, the device moves along the target direction into the gripping hole, and a collision test is performed during the movement, wherein the target direction is the axial direction of the gripping hole;

[0010] The gripping points of the robotic arm were determined based on the test results.

[0011] Optionally, the step of moving from the initial point along the target direction into the gripping hole and performing a collision test during the movement includes:

[0012] According to the preset step size, the device moves sequentially from the initial point into the grasping hole along the target direction;

[0013] A target vector is created at the point after each movement of the preset step size, and a collision test is performed based on the target vector to obtain the collision result. The direction of the target vector is parallel to the target plane, and the length of the target vector is greater than a first threshold and less than a second threshold. The first threshold is less than the radius of the gripping hole, and the second threshold is greater than the radius of the gripping hole.

[0014] Optionally, determining the gripping point of the robotic arm based on the test results includes:

[0015] If there is a collision point between the target vector and the inner wall of the gripping hole, the point where the target vector is generated is determined as the gripping point of the robotic arm.

[0016] Optionally, determining the gripping point of the robotic arm based on the test results includes:

[0017] When there are multiple target vectors, and each target vector has a collision point with the inner wall of the gripping hole, it is determined whether the difference between the distances of the multiple target vectors from the vector starting point to their respective collision points is within a preset range.

[0018] If the difference in distance between the multiple target vectors from their starting points to their respective collision points is within a preset range, the point where the target vectors are generated is determined as the gripping point of the robotic arm.

[0019] Optionally, obtaining the three-dimensional convex hull corresponding to the casting to be grasped includes:

[0020] Obtain the model number of the casting to be grasped;

[0021] Based on the model of the casting to be grasped, a three-dimensional mesh model corresponding to the casting to be grasped is determined. The three-dimensional mesh model includes multiple three-dimensional meshes, and each three-dimensional mesh is a triangular mesh composed of three vertices in three-dimensional space.

[0022] Based on the three-dimensional mesh model, the three-dimensional convex hull is generated, wherein the three-dimensional convex hull is obtained by connecting the outermost vertices of the three-dimensional mesh model, and all vertices of the three-dimensional mesh model are located within the spatial range formed by the three-dimensional convex hull.

[0023] Optionally, determining the target plane from the plurality of planes of the three-dimensional convex hull includes:

[0024] The multiple planes of the three-dimensional convex hull are traversed sequentially to obtain the two-dimensional projection image of the currently traversed plane;

[0025] Determine whether the two-dimensional projection shape in the two-dimensional projection image meets the shape requirements for the robotic arm to grasp the casting to be grasped;

[0026] If the two-dimensional projection shape in the two-dimensional projection image meets the shape requirements for the robotic arm to grasp the casting to be grasped, the currently traversed plane is determined as the target plane;

[0027] If the two-dimensional projection shape in the two-dimensional projection image does not meet the shape requirements for the robotic arm to grasp the casting to be grasped, the two-dimensional projection image of the next plane of the three-dimensional convex hull is obtained by traversing, and the two-dimensional projection image of the next plane of the three-dimensional convex hull is used as the new two-dimensional projection image. The following steps are performed: determine whether the two-dimensional projection shape in the two-dimensional projection image meets the shape requirements for the robotic arm to grasp the casting to be grasped.

[0028] Optionally, determining the initial point for performing collision detection based on the position of the target plane includes:

[0029] Based on the position of the target plane, the center point position of the gripping hole and the normal vector corresponding to the center point position are obtained, wherein the normal vector corresponding to the center point position is perpendicular to the target plane;

[0030] Obtain a point at a preset distance from the center point from the normal vector corresponding to the center point, and determine the obtained point as the initial point.

[0031] Secondly, embodiments of this application also provide a device for determining the gripping point of a robotic arm, the device comprising:

[0032] The acquisition module is used to acquire the three-dimensional convex hull corresponding to the casting to be grasped, wherein the three-dimensional convex hull is a polyhedron generated based on the three-dimensional mesh model of the casting to be grasped;

[0033] The first determining module is used to determine a target plane from multiple planes of the three-dimensional convex hull, wherein the two-dimensional projection shape of the target plane conforms to the shape requirements of the robotic arm for grasping the casting to be grasped, and the target plane includes a grasping hole for the robotic arm to grasp the casting to be grasped.

[0034] The second determining module is used to determine an initial point for performing collision detection based on the position of the target plane, wherein the vertical projection of the initial point on the target plane overlaps with the center point of the grab hole, and the vertical distance between the initial point and the target plane is a preset distance.

[0035] The collision test module is used to move from the initial point along the target direction into the gripping hole and perform a collision test during the movement, wherein the target direction is the axial direction of the gripping hole;

[0036] The third determining module is used to determine the gripping point of the robotic arm based on the test results.

[0037] Thirdly, embodiments of this application also provide an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;

[0038] Memory, used to store computer programs;

[0039] The processor, when executing a program stored in memory, implements the method for determining the gripping point of the robotic arm as described in any of the first aspects.

[0040] Fourthly, embodiments of this application also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method for determining the gripping point of the robotic arm as described in any of the first aspects.

[0041] Compared with the prior art, the technical solution provided in this application has the following advantages: The method provided in this application obtains a three-dimensional convex hull corresponding to the casting to be grasped, wherein the three-dimensional convex hull is a polyhedron generated based on the three-dimensional mesh model of the casting to be grasped; a target plane is determined from multiple planes of the three-dimensional convex hull, wherein the two-dimensional projection shape of the target plane conforms to the shape requirements for the robotic arm to grasp the casting to be grasped, and the target plane includes a grasping hole for the robotic arm to grasp the casting to be grasped; based on the position of the target plane, an initial point for performing collision detection is determined, wherein the vertical projection of the initial point on the target plane overlaps with the center point of the grasping hole, and the vertical distance between the initial point and the target plane is a preset distance; starting from the initial point, the robotic arm moves along the target direction into the grasping hole, and a collision test is performed during the movement, wherein the target direction is the axial direction of the grasping hole; and the grasping point of the robotic arm is determined based on the test results. Using the above method, the robot arm can move continuously from the initial point into the gripping hole, and conduct collision tests during the movement. The gripping point of the robot arm is automatically determined based on the test results. This effectively solves the problem of manually adjusting the gripping point of the robot arm using a teach pendant in the existing technology, and improves the efficiency and accuracy of determining the gripping point of the robot arm. Attached Figure Description

[0042] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0043] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0044] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.

[0045] Figure 1 A flowchart illustrating a method for determining the gripping point of a robotic arm, provided in an embodiment of this application;

[0046] Figure 2 This is a schematic diagram of the structure of a steering knuckle provided in an embodiment of this application;

[0047] Figure 3A three-dimensional convex hull diagram of a steering knuckle is provided for an embodiment of this application;

[0048] Figure 4 A schematic diagram of a collision test for a steering knuckle provided in an embodiment of this application;

[0049] Figure 5 A flowchart illustrating another method for determining the gripping point of a robotic arm, provided in an embodiment of this application;

[0050] Figure 6 A schematic diagram of a gripping point determination device for a robotic arm provided in an embodiment of this application;

[0051] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0052] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0053] The following disclosure provides numerous different embodiments or examples for implementing various structures of the invention. To simplify the disclosure, specific examples of components and arrangements are described below. These are merely examples and are not intended to limit the scope of the invention. Furthermore, reference numerals and / or letters may be repeated in different examples. Such repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed.

[0054] To address the problem that the determination of gripping points for robotic arms in the prior art typically involves manual adjustment of the gripping points using a teach pendant, resulting in low efficiency and accuracy, this application provides a method, apparatus, electronic device, and storage medium for determining gripping points for robotic arms, which can improve the efficiency and accuracy of gripping point determination.

[0055] See Figure 1 , Figure 1 This is a flowchart illustrating a method for determining the gripping point of a robotic arm, as provided in an embodiment of this application. Figure 1 As shown, the method for determining the gripping point of the robotic arm may include the following steps:

[0056] Step 101: Obtain the 3D convex hull corresponding to the casting to be grasped. The 3D convex hull is a polyhedron generated based on the 3D mesh model of the casting to be grasped.

[0057] Specifically, the aforementioned casting to be gripped can be any type of steering knuckle, or other casting that needs to be gripped using gripping holes.

[0058] When obtaining the 3D convex hull corresponding to the casting to be grasped, you can first obtain the 3D mesh model of the casting to be grasped, and then generate a polyhedron, i.e., the 3D convex hull, based on the 3D mesh model of the casting to be grasped.

[0059] Step 102: Determine the target plane from multiple planes of the three-dimensional convex hull, wherein the two-dimensional projection shape of the target plane conforms to the shape requirements of the robotic arm for gripping the casting to be gripped, and the target plane includes gripping holes for the robotic arm to grip the casting to be gripped.

[0060] Specifically, the target plane mentioned above is one of multiple planes within a three-dimensional convex hull whose two-dimensional projection shape conforms to the shape requirements for the robotic arm to grasp the casting to be gripped. It should be noted that there are various models of castings to be gripped, each with different appearances and shapes, but each casting must have gripping holes for the robotic arm to grasp it. For example... Figure 2 As shown, Figure 2 This is a structural schematic diagram of a certain model of steering knuckle. A circular through-hole, designated as the gripping hole 200, is located on one side of the steering knuckle. The outer side of the gripping hole 200 is a plane, and the gripping hole 200 is located in the center of this plane. When the viewing angle is perpendicular to the gripping hole 200, the center position of the gripping hole 200 is the center position of the plane. Therefore, by traversing all planes of the three-dimensional convex hull and projecting them into a two-dimensional projected image, the target plane containing the gripping hole 200 can be determined using shape recognition methods.

[0061] Step 103: Based on the position of the target plane, determine the initial point for performing collision detection, wherein the vertical projection of the initial point on the target plane overlaps with the center point of the grab hole, and the vertical distance between the initial point and the target plane is a preset distance.

[0062] Specifically, the collision detection described above can be used to simulate the contact between the robotic arm and the gripping hole. Specifically, a vector can be created at a certain point in the preset coordinate system where the 3D convex hull is located. Then, it is determined whether this vector collides with the gripping hole. If a collision point exists, it indicates that the robotic arm and the gripping hole can perform a gripping operation, and therefore this point can be determined as the gripping point of the robotic arm. The vertical projection of the initial point on the target plane overlaps with the center point of the gripping hole, and the vertical distance between the initial point and the target plane is a preset distance. This preset distance can be set according to actual needs, such as 10mm, 15mm, etc. The reason for using this method to determine the initial point is that the gripping point of the robotic arm is usually located on the central axis of the gripping hole, thus allowing for quick location of the gripping point based on the initial point.

[0063] Step 104: Starting from the initial point, move along the target direction into the gripping hole and perform a collision test during the movement. The target direction is the axial direction of the gripping hole.

[0064] Specifically, the target direction mentioned above is consistent with the axial direction of the gripping hole.

[0065] In this step, the robot arm can move sequentially along the target direction into the gripping hole from the initial point, following a preset step size. For example, it can move 1mm closer to the gripping hole each time. Furthermore, during the movement, a collision test can be performed after each preset step size, allowing the robot arm to determine its gripping point based on the test results.

[0066] Step 105: Determine the gripping points of the robotic arm based on the test results.

[0067] Specifically, the gripping point of the robotic arm includes information such as the position and attitude angle of the gripping point. After determining the gripping point of the robotic arm based on the test results, the robotic arm can be controlled to move to the gripping point to grip the casting to be gripped, and subsequent movement control can be performed.

[0068] In this embodiment, the robot arm can move continuously from the initial point into the gripping hole and conduct collision tests during the movement. The gripping point of the robot arm is automatically determined based on the test results. This effectively solves the problem of manually adjusting the gripping point of the robot arm using a teach pendant in the prior art, and improves the efficiency and accuracy of determining the gripping point of the robot arm.

[0069] Furthermore, step 104 above, moving from the initial point along the target direction into the gripping hole and performing a collision test during the movement, includes:

[0070] According to the preset step size, move sequentially from the initial point into the grasping hole along the target direction;

[0071] A target vector is created at the point after each preset step size movement, and a collision test is performed based on the target vector to obtain the collision result. The direction of the target vector is parallel to the target plane, and the length of the target vector is greater than a first threshold and less than a second threshold. The first threshold is less than the radius of the gripping hole, and the second threshold is greater than the radius of the gripping hole.

[0072] Specifically, the first threshold and the second threshold can vary depending on the model of the casting to be gripped. Specifically, the first threshold is smaller than the radius of the gripping hole in the casting, and the second threshold is larger than the radius of the gripping hole. For example, when the radius of the gripping hole in the casting is 100mm, the first threshold can be set to 99mm and the second threshold to 101mm. The preset step size can be set according to actual needs, and this embodiment does not impose a specific limitation, such as 1mm.

[0073] In one embodiment, the robot can move sequentially from an initial point along the target direction into the gripping hole according to a preset step size, creating a target vector at each point after each preset step movement. Since the direction of this target vector is parallel to the target plane, and its length is greater than a first threshold and less than a second threshold, when conducting a collision test based on this target vector, it can be assumed that the target vector represents the robotic arm gripper. If the target vector collides with the inner wall of the gripping hole, it indicates that the robotic arm gripper is in contact with the gripping hole and can grip the casting. If the target vector does not collide with the inner wall of the gripping hole, it indicates that the robotic arm is not in contact with the gripping hole. In this case, the robot can continue to move along the target direction into the gripping hole by a preset step size and conduct another collision test until a gripping point where the target vector collides with the inner wall of the gripping hole is found. In this way, collision tests can be performed at different positions along the central axis of the gripping hole, facilitating the rapid determination of the robotic arm's gripping point based on the subsequent collision test results.

[0074] Furthermore, step 105 above, determining the gripping points of the robotic arm based on the test results, includes:

[0075] If there is a collision point between the target vector and the inner wall of the gripping hole, the point where the target vector is generated is determined as the gripping point of the robotic arm.

[0076] In one embodiment, when determining the gripping point of the robotic arm based on the test results, if there is only one target vector and the target vector has a collision point with the inner wall of the gripping hole, it indicates that the robotic arm gripper is in contact with the gripping hole and can grip the casting to be gripped. In this case, the point that generates the target vector can be directly determined as the gripping point of the robotic arm. In this way, the gripping point of the robotic arm can be quickly determined based on the test results of the collision test.

[0077] Furthermore, step 105 above, determining the gripping points of the robotic arm based on the test results, includes:

[0078] When there are multiple target vectors, and each target vector has a collision point with the inner wall of the grasping hole, determine whether the difference between the distances of the multiple target vectors from the vector starting point to their respective collision points is within a preset range;

[0079] If the difference in distance between multiple target vectors from their starting points to their respective collision points is within a preset range, the point where the target vector is generated will be determined as the gripping point of the robotic arm.

[0080] Specifically, the above-mentioned preset range can be set according to actual needs, such as 0.1mm, etc., and this application embodiment does not make specific limitations.

[0081] In one embodiment, when determining the gripping point of the robotic arm based on the test results, if there are multiple target vectors, and each target vector has a collision point with the inner wall of the gripping hole, it can be further determined whether the difference in distance between the multiple target vectors from their starting points to their respective collision points is within a preset range. If the difference in distance between the multiple target vectors from their starting points to their respective collision points is within the preset range, it indicates that the robotic arm gripper is in contact with the gripping hole at multiple points, and the contact force is not significantly different, enabling stable gripping of the casting. In this case, the point where the target vectors are generated can be directly determined as the gripping point of the robotic arm. In this way, the gripping point of the robotic arm can be quickly determined based on the test results of the collision test, and gripping from this gripping point of the robotic arm is more stable and secure.

[0082] Further, step 101 above, obtaining the three-dimensional convex hull corresponding to the casting to be grasped, includes:

[0083] Obtain the model number of the casting to be picked up;

[0084] Based on the model of the casting to be grasped, the corresponding three-dimensional mesh model is determined. The three-dimensional mesh model includes multiple three-dimensional meshes, each of which is a triangular mesh composed of three vertices in three-dimensional space.

[0085] Based on the 3D mesh model, a 3D convex hull is generated. The 3D convex hull is obtained by connecting the outermost vertices of the 3D mesh model, and all vertices of the 3D mesh model are located within the space formed by the 3D convex hull.

[0086] In one embodiment, when obtaining the 3D convex hull corresponding to the casting to be grasped, the casting to be grasped can be identified first to obtain its model number. Then, based on the model number, the corresponding 3D mesh model is determined, and the 3D convex hull is generated based on the 3D mesh model. Specifically, the open3d library (an open-source library focusing on 3D data processing and supporting rapid development of software for processing 3D data) can be used to obtain a 3D mesh model. This 3D mesh model includes multiple 3D meshes, each of which is a triangular mesh composed of three vertices in 3D space. Using this 3D mesh as input, the compute_convex_hull function in the open3d library can be used to generate the 3D convex hull. This 3D convex hull is a polyhedral structure that contains all vertices of the 3D mesh model and is formed by connecting the outermost vertices of the 3D mesh model. Similar to the 2D convex hull, the 3D convex hull is an extension of the 2D polygonal convex hull in 3D space. The purpose of obtaining the 3D convex hull is to locate the target plane containing the grasping holes on the casting to be grasped. Taking the casting to be gripped as a steering knuckle as an example, there are hundreds of models of steering knuckles, each with a different appearance and shape. However, each steering knuckle has a shaft hole with a similar inner diameter, which can be used as a gripping hole. Figure 2 As shown, therefore, when locating the gripping hole of the steering knuckle, it is necessary to first obtain the three-dimensional convex hull of the steering knuckle, such as... Figure 3 As shown, then from Figure 3 The target plane containing the gripping hole of the steering knuckle is located in the three-dimensional convex hull shown.

[0087] Further, step 102 above, determining the target plane from multiple planes of the three-dimensional convex hull, includes:

[0088] The 3D convex hull is traversed sequentially through multiple planes to obtain the 2D projection image of the currently traversed plane;

[0089] Determine whether the shape of the two-dimensional projection in the two-dimensional projection image meets the shape requirements for the robotic arm to grasp the casting.

[0090] If the two-dimensional projection shape in the two-dimensional projection image meets the shape requirements for the robotic arm to grasp the casting, the currently traversed plane is determined as the target plane.

[0091] If the two-dimensional projection shape in the two-dimensional projection image does not meet the shape requirements for the robotic arm to grasp the casting, the two-dimensional projection image of the next plane of the three-dimensional convex hull is obtained by traversing the image, and the two-dimensional projection image of the next plane of the three-dimensional convex hull is used as the new two-dimensional projection image. The following steps are performed: determine whether the two-dimensional projection shape in the two-dimensional projection image meets the shape requirements for the robotic arm to grasp the casting.

[0092] Specifically, since the Open3d library provides functions for generating a 2D image of the model from the current viewpoint, the 2D projection image of each plane of the 3D convex hull can be obtained using these functions.

[0093] In one embodiment, when determining the target plane from multiple planes of the three-dimensional convex hull, the multiple planes of the three-dimensional convex hull can be traversed sequentially to obtain a two-dimensional projection image of the currently traversed plane. Then, it is determined whether the two-dimensional projection shape in the two-dimensional projection image meets the shape requirements for the robotic arm to grasp the casting. If the two-dimensional projection shape in the two-dimensional projection image meets the shape requirements for the robotic arm to grasp the casting, the currently traversed plane can be determined as the target plane; if the two-dimensional projection shape in the two-dimensional projection image does not meet the shape requirements for the robotic arm to grasp the casting, the traversal can proceed. The process involves obtaining a 2D projection image of the next plane of the 3D convex hull, and determining whether its shape matches the shape requirements for the robotic arm to grasp the casting. If the shape matches, the next plane is identified as the target plane. If not, the process continues iterating through the next plane until the target plane is determined. This method allows for accurate determination of the target plane of the 3D convex hull.

[0094] Further, step 103 above, determining the initial points for performing collision detection based on the position of the target plane, includes:

[0095] Based on the position of the target plane, obtain the center point position of the gripping hole and the normal vector corresponding to the center point position, wherein the normal vector corresponding to the center point position is perpendicular to the target plane;

[0096] Obtain the point at a preset distance from the center point from the normal vector corresponding to the center point, and set the obtained point as the initial point.

[0097] In one embodiment, when determining the initial point for performing collision detection, the center point position of the gripping hole and the corresponding normal vector can be obtained based on the position of the target plane. Then, a point at a preset distance from the center point position is obtained from the normal vector corresponding to the center point position, and this obtained point is determined as the initial point. This allows for rapid determination of the initial point, facilitating the subsequent determination of the robotic arm's gripping point. The robotic arm can move in the opposite direction to the normal vector corresponding to the center point position according to a preset step size and perform a collision test, thereby quickly determining the robotic arm's gripping point. Continuing with the steering knuckle as an example, as... Figure 4As shown, a, b, and c represent the target vectors, and e represents the target direction. The point can be moved along the e direction and a collision test can be performed to determine the gripping point of the robotic arm to grasp the steering knuckle.

[0098] For ease of understanding, a steering knuckle is used as the casting to be gripped in the explanation. In this embodiment, a three-dimensional convex hull can be generated using the three-dimensional mesh model of the steering knuckle. The target plane containing the gripping hole is found through two-dimensional shape recognition. The point is continuously moved along the central axis of the gripping hole, and collision detection is performed by projecting rays into a certain range around this point. The position is continuously fine-tuned until stable convergence. The gripping point determination of the robotic arm provided in this embodiment is as follows: Figure 5 As shown, the following steps may be included:

[0099] Step 501: Use the Open3D library to open the 3D mesh model of the steering knuckle.

[0100] Step 502: Generate the three-dimensional convex hull of the three-dimensional mesh model, which is a polyhedron.

[0101] Step 503: Iterate through each plane in the 3D convex hull in sequence. For the currently traversed plane, make the camera viewpoint perpendicular to the center of the plane, and set the distance from the center point of the plane to a fixed value h. Calculate the spatial coordinates and orientation of the camera.

[0102] Step 504: Determine the two-dimensional projection image of the plane being traversed based on the spatial coordinates and orientation of the camera.

[0103] Step 505: Use the Open Source Computer Vision Library (OpenCV) to perform shape recognition on the two-dimensional projection image.

[0104] Step 506: Determine whether a grab hole has been detected on the currently traversed plane.

[0105] If no gripping hole is detected in the currently traversed plane, return to step 503; if a gripping hole is detected in the currently traversed plane, proceed to step 507.

[0106] Step 507: Save the current camera's coordinates p and direction vector v in 3D space to the list positions.

[0107] Step 508: Traverse the p and v in the positions list and obtain the set parameters dmin, dmax and e, where dmin represents the minimum length of the gripping hole radius, dmax is the maximum length of the gripping hole radius, and the unit is mm; e represents the interval length, and the unit is mm.

[0108] Step 509: Starting from p, along the direction of vector v, take spatial point p1 at intervals of e. Along the orthogonal plane of vector v located at p1, create 3 target vectors at intervals of 120 degrees, with lengths from dmin to dmax, and perform collision detection.

[0109] Step 510: Determine that the collision detection of the three target vectors is true, and the distance error from p1 to the collision point is less than w.

[0110] If the collision detection of the three target vectors is true, and the distance error from p1 to the collision point is less than w, then proceed to step 511; otherwise, proceed to step 512.

[0111] Step 511: Record point p1 as the grab point.

[0112] Step 512: Make p1 = p1 + e, and repeat step 509.

[0113] In this embodiment, an algorithm for automatically identifying the gripping point of a robotic arm based on a three-dimensional digital model of a steering knuckle is provided. After importing a digital model of a component, the algorithm can automatically calculate and find the optimal gripping point, obtain the position and attitude data of the robotic arm at the gripping point, and quickly calculate and identify the coordinates of the gripping point when the trajectory template is pre-made. The algorithm can then send a command to the host computer to move the robotic arm to the gripping point position, avoiding manual operation of the robotic arm and thus improving the efficiency of determining the gripping point of the robotic arm.

[0114] See Figure 6 , Figure 6 This is a schematic diagram of a gripping point determination device for a robotic arm, provided as an embodiment of this application. Figure 6 As shown, the device 600 includes:

[0115] The acquisition module 601 is used to acquire the three-dimensional convex hull corresponding to the casting to be grasped, wherein the three-dimensional convex hull is a polyhedron generated based on the three-dimensional mesh model of the casting to be grasped;

[0116] The first determining module 602 is used to determine a target plane from multiple planes of the three-dimensional convex hull, wherein the two-dimensional projection shape of the target plane conforms to the shape requirements for the robotic arm to grasp the casting to be grasped, and the target plane includes a grasping hole for the robotic arm to grasp the casting to be grasped.

[0117] The second determining module 603 is used to determine the initial point for performing collision detection based on the position of the target plane, wherein the vertical projection of the initial point on the target plane overlaps with the center point of the grab hole, and the vertical distance between the initial point and the target plane is a preset distance.

[0118] The collision test module 604 is used to move from the initial point along the target direction into the gripping hole and to perform a collision test during the movement, wherein the target direction is the axial direction of the gripping hole;

[0119] The third determining module 605 is used to determine the gripping point of the robotic arm based on the test results.

[0120] Furthermore, the crash test module 604 includes:

[0121] The moving submodule is used to move sequentially from the initial point along the target direction into the gripping hole according to a preset step size;

[0122] The collision test submodule is used to create a target vector at the point after each preset step size of movement, and to perform a collision test based on the target vector to obtain the collision result. The direction of the target vector is parallel to the target plane, and the length of the target vector is greater than a first threshold and less than a second threshold. The first threshold is less than the radius of the gripping hole, and the second threshold is greater than the radius of the gripping hole.

[0123] Furthermore, the third determining module 605 includes:

[0124] The first determination submodule is used to determine the point where the target vector is generated as the gripping point of the robotic arm when there is a collision point between the target vector and the inner wall of the gripping hole.

[0125] Furthermore, the third determining module 605 includes:

[0126] The first judgment submodule is used to determine whether the difference between the distances of the multiple target vectors from their starting points to their respective collision points is within a preset range when there are multiple target vectors and each target vector has a collision point with the inner wall of the grasping hole.

[0127] The second determining submodule is used to determine the point where the target vector is generated as the grasping point of the robotic arm when the difference between the distances of multiple target vectors from their starting points to their respective collision points is within a preset range.

[0128] Furthermore, the acquisition module 601 includes:

[0129] The first acquisition submodule is used to acquire the model of the casting to be picked up;

[0130] The third determination submodule is used to determine the three-dimensional mesh model corresponding to the casting to be grasped based on the model of the casting to be grasped. The three-dimensional mesh model includes multiple three-dimensional meshes, each of which is a triangular mesh composed of three vertices in three-dimensional space.

[0131] The generation submodule is used to generate a 3D convex hull based on a 3D mesh model. The 3D convex hull is obtained by connecting the outermost vertices of the 3D mesh model, and all vertices of the 3D mesh model are located within the space formed by the 3D convex hull.

[0132] Furthermore, the first determining module 602 includes:

[0133] The second acquisition submodule is used to traverse multiple planes of the three-dimensional convex hull in sequence and acquire the two-dimensional projection image of the currently traversed plane.

[0134] The second judgment submodule is used to determine whether the two-dimensional projection shape in the two-dimensional projection image meets the shape requirements for the robotic arm to grasp the casting to be grasped.

[0135] The fourth determination submodule is used to determine the currently traversed plane as the target plane when the two-dimensional projection shape in the two-dimensional projection image meets the shape requirements for the robotic arm to grasp the casting.

[0136] The execution submodule is used to obtain the two-dimensional projection image of the next plane of the three-dimensional convex hull when the two-dimensional projection shape in the two-dimensional projection image does not meet the shape requirements for the robotic arm to grasp the casting. The two-dimensional projection image of the next plane of the three-dimensional convex hull is then used as the new two-dimensional projection image. The execution steps are: determining whether the two-dimensional projection shape in the two-dimensional projection image meets the shape requirements for the robotic arm to grasp the casting.

[0137] Furthermore, the second determining module 603 includes:

[0138] The third acquisition submodule is used to acquire the center point position of the grabbing hole and the normal vector corresponding to the center point position based on the position of the target plane, wherein the normal vector corresponding to the center point position is perpendicular to the target plane;

[0139] The fifth determination submodule is used to obtain the point position at a preset distance from the center point position from the normal vector corresponding to the center point position, and to determine the obtained point position as the initial point position.

[0140] It should be noted that the device 600 can implement the robotic arm gripping point determination method provided in any of the aforementioned method embodiments, and can achieve the same technical effect, which will not be elaborated here.

[0141] like Figure 7 As shown in the illustration, this application also provides an electronic device, including a processor 711, a communication interface 712, a memory 713, and a communication bus 714, wherein the processor 711, the communication interface 712, and the memory 713 communicate with each other via the communication bus 714.

[0142] Memory 713 is used to store computer programs;

[0143] In one embodiment of this application, when the processor 711 executes the program stored in the memory 713, it implements the method for determining the gripping point of the robotic arm provided in any of the foregoing method embodiments, including:

[0144] Obtain the 3D convex hull corresponding to the casting to be grasped, wherein the 3D convex hull is a polyhedron generated based on the 3D mesh model of the casting to be grasped;

[0145] A target plane is determined from multiple planes of a three-dimensional convex hull, wherein the two-dimensional projection shape of the target plane conforms to the shape requirements for the robotic arm to grasp the casting to be grasped, and the target plane includes a gripping hole for the robotic arm to grasp the casting to be grasped.

[0146] Based on the position of the target plane, an initial point is determined for performing collision detection. The vertical projection of the initial point on the target plane overlaps with the center point of the grab hole, and the vertical distance between the initial point and the target plane is a preset distance.

[0147] Starting from the initial point, move along the target direction into the gripping hole and perform a collision test during the movement. The target direction is the axial direction of the gripping hole.

[0148] The gripping points of the robotic arm were determined based on the test results.

[0149] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the method for determining the gripping point of a robotic arm as provided in any of the foregoing method embodiments.

[0150] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0151] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented using software plus a general-purpose hardware platform, or of course, using hardware. Based on this understanding, the above technical solutions, in essence or the parts that contribute to the related technology, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0152] It should be understood that the terminology used herein is for the purpose of describing particular exemplary embodiments only and is not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms “a,” “an,” and “described” as used herein may also include the plural forms. The terms “comprising,” “including,” “containing,” and “having” are inclusive and therefore indicate the presence of the stated features, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, elements, components, and / or combinations thereof. The method steps, processes, and operations described herein are not construed as requiring them to be performed in a particular order described or illustrated unless the order of performance is explicitly indicated. It should also be understood that additional or alternative steps may be used.

[0153] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for determining the gripping point of a robotic arm, characterized in that, The method includes: Obtain the three-dimensional convex hull corresponding to the casting to be grasped, wherein the three-dimensional convex hull is a polyhedron generated based on the three-dimensional mesh model of the casting to be grasped, wherein the three-dimensional convex hull is obtained by connecting the outermost vertices in the three-dimensional mesh model, and all vertices of the three-dimensional mesh model are located within the spatial range formed by the three-dimensional convex hull; A target plane is determined from multiple planes of the three-dimensional convex hull, wherein the two-dimensional projection shape of the target plane conforms to the shape requirements for the robotic arm to grasp the casting to be grasped; the target plane includes a gripping hole for the robotic arm to grasp the casting to be grasped. Based on the position of the target plane, an initial point for performing collision detection is determined, wherein the vertical projection of the initial point on the target plane overlaps with the center point of the grab hole, and the vertical distance between the initial point and the target plane is a preset distance; Starting from the initial point, the device moves along the target direction into the gripping hole, and a collision test is performed during the movement, wherein the target direction is the axial direction of the gripping hole; The gripping points of the robotic arm were determined based on the test results. The process of moving from the initial point along the target direction into the grasping hole, and performing a collision test during the movement, includes: According to the preset step size, the device moves sequentially from the initial point into the grasping hole along the target direction; A target vector is created at the point after each movement of the preset step size, and a collision test is performed based on the target vector to obtain the collision result. The direction of the target vector is parallel to the target plane, and the length of the target vector is greater than a first threshold and less than a second threshold. The first threshold is less than the radius of the gripping hole, and the second threshold is greater than the radius of the gripping hole. The process of determining the gripping point of the robotic arm based on the test results includes: If there is a collision point between the target vector and the inner wall of the gripping hole, the point where the target vector is generated is determined as the gripping point of the robotic arm.

2. The method according to claim 1, characterized in that, The process of determining the gripping point of the robotic arm based on the test results includes: When there are multiple target vectors, and each target vector has a collision point with the inner wall of the gripping hole, it is determined whether the difference between the distances of the multiple target vectors from the vector starting point to their respective collision points is within a preset range. If the difference in distance between the multiple target vectors from their starting points to their respective collision points is within a preset range, the point where the target vectors are generated is determined as the gripping point of the robotic arm.

3. The method according to claim 1, characterized in that, The process of obtaining the three-dimensional convex hull corresponding to the casting to be grasped includes: Obtain the model number of the casting to be grasped; Based on the model of the casting to be grasped, a three-dimensional mesh model corresponding to the casting to be grasped is determined. The three-dimensional mesh model includes multiple three-dimensional meshes, and each three-dimensional mesh is a triangular mesh composed of three vertices in three-dimensional space. The three-dimensional convex hull is generated based on the three-dimensional mesh model.

4. The method according to claim 1, characterized in that, Determining the target plane from the plurality of planes of the three-dimensional convex hull includes: The multiple planes of the three-dimensional convex hull are traversed sequentially to obtain the two-dimensional projection image of the currently traversed plane; Determine whether the two-dimensional projection shape in the two-dimensional projection image meets the shape requirements for the robotic arm to grasp the casting to be grasped; If the two-dimensional projection shape in the two-dimensional projection image meets the shape requirements for the robotic arm to grasp the casting to be grasped, the currently traversed plane is determined as the target plane; If the two-dimensional projection shape in the two-dimensional projection image does not meet the shape requirements for the robotic arm to grasp the casting to be grasped, the two-dimensional projection image of the next plane of the three-dimensional convex hull is obtained by traversing, and the two-dimensional projection image of the next plane of the three-dimensional convex hull is used as the new two-dimensional projection image. The following steps are performed: determine whether the two-dimensional projection shape in the two-dimensional projection image meets the shape requirements for the robotic arm to grasp the casting to be grasped.

5. The method according to claim 1, characterized in that, Determining the initial point for performing collision detection based on the position of the target plane includes: Based on the position of the target plane, the center point position of the gripping hole and the normal vector corresponding to the center point position are obtained, wherein the normal vector corresponding to the center point position is perpendicular to the target plane; Obtain a point at a preset distance from the center point from the normal vector corresponding to the center point, and determine the obtained point as the initial point.

6. A device for determining the gripping point of a robotic arm, characterized in that, The apparatus for determining the gripping point of the robotic arm according to any one of claims 1-5, the apparatus comprising: The acquisition module is used to acquire the three-dimensional convex hull corresponding to the casting to be grasped, wherein the three-dimensional convex hull is a polyhedron generated based on the three-dimensional mesh model of the casting to be grasped; The first determining module is used to determine a target plane from multiple planes of the three-dimensional convex hull, wherein the two-dimensional projection shape of the target plane conforms to the shape requirements of the robotic arm for grasping the casting to be grasped, and the target plane includes a grasping hole for the robotic arm to grasp the casting to be grasped. The second determining module is used to determine an initial point for performing collision detection based on the position of the target plane, wherein the vertical projection of the initial point on the target plane overlaps with the center point of the grab hole, and the vertical distance between the initial point and the target plane is a preset distance. The collision test module is used to move from the initial point along the target direction into the gripping hole and perform a collision test during the movement, wherein the target direction is the axial direction of the gripping hole; The third determining module is used to determine the gripping point of the robotic arm based on the test results.

7. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; The processor, when executing the program stored in the memory, implements the gripping point determination method of the robotic arm according to any one of claims 1-5.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the method for determining the gripping point of the robotic arm as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Collision detection method for mechanical arm grabbing path

    CN113232021A

  • Mechanical arm track generation method and device, electronic equipment and readable storage medium

    CN117301077A