Human-machine collaborative assembly method, system and storage medium based on low-code programming

Through low-code programming and augmented reality technology, the three-dimensional segmentation model and user gestures are used to generate robotic arm control instructions, which solves the problem of low robotic arm programming efficiency and achieves a more intuitive and efficient programming process.

CN118493401BActive Publication Date: 2024-09-27THE HONG KONG POLYTECHNIC UNIV SHENZHEN RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410911487.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-09-27
Estimated Expiration
2044-07-09

AI Technical Summary

Technical Problem

The programming efficiency of robotic arms is low, relying on accurate digital models and large amounts of code writing, making it difficult to quickly complete complex assembly tasks.

Method used

Using a low-code programming method, the target AR device is used to collect scenes to generate a three-dimensional segmentation model, and the user's gesture information is combined to generate robotic arm control data. The robotic arm is directly controlled through augmented reality technology, reducing the amount of code writing.

Benefits of technology

It improves the programming efficiency of the robotic arm, enables users to intuitively control the three-dimensional segmentation model, generates robotic arm control instructions, and reduces programming complexity and time costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118493401B
    Figure CN118493401B
Patent Text Reader

Abstract

The present invention provides a human-machine collaborative assembly method, system and storage medium based on low-code programming, the method comprising: using a target AR device to collect a target scene containing a target object, generating and displaying a three-dimensional segmentation model; obtaining the initial posture information of the three-dimensional segmentation model and the gesture information of the user manipulating the three-dimensional segmentation model, generating mechanical arm control data according to the initial posture information and gesture information, and generating a simulation preview of the mechanical arm grabbing the target object; after receiving the user's confirmation information on the simulation preview, the target AR device generates a control instruction based on the mechanical arm control data, and sends the control instruction to the mechanical arm; the mechanical arm receives and executes the control instruction to move the target object to the target position with the target posture. The present invention uses augmented reality technology to enable users to intuitively manipulate the three-dimensional segmentation model, and then generate control instructions for the mechanical arm, reduce the workload of code writing, and effectively improve the programming efficiency of the mechanical arm.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of human-machine collaborative assembly, and in particular to a human-machine collaborative assembly method, system and storage medium based on low-code programming. Background Art

[0002] As a model of flexible automation in the industrial field, the robotic arm has brought a huge leap in productivity to the manufacturing industry. It can replace human operators to perform tasks with high repetitiveness and high precision requirements, greatly improving production efficiency and product quality.

[0003] The traditional offline programming method of the robot arm allows engineers to plan and debug the robot arm's movements in a virtual simulation environment. This method does not need to interrupt the actual production process and can handle more complex motion trajectories. However, this type of offline programming relies heavily on accurate digital models, including the robot arm itself, the workpiece being operated, and the digital representation of the entire working environment. Building these digital models requires a lot of time and effort to ensure that the simulation results in the virtual environment can truly reflect the situation in the actual workspace. In addition, the traditional offline programming method still requires writing a lot of code to define the robot arm's motion trajectory, control logic, and interaction with external sensors, and requires a large number of parameters to be finely configured in order for the robot arm to work as expected, making the programming efficiency of the robot arm low.

[0004] Therefore, the prior art has defects and needs to be improved and developed. Summary of the invention

[0005] The technical problem to be solved by the present invention is to provide a human-machine collaborative assembly method, system and storage medium based on low-code programming in response to the above-mentioned defects of the prior art, aiming to solve the problem of low programming efficiency of the robotic arm in the prior art.

[0006] The technical solution adopted by the present invention to solve the technical problem is as follows:

[0007] In a first aspect, an embodiment of the present invention provides a human-machine collaborative assembly method based on low-code programming, the method comprising:

[0008] Using the target AR device to collect the target scene including the target object, so as to generate a three-dimensional segmentation model corresponding to the target object and display it on the device;

[0009] Acquire initial pose information of the three-dimensional segmentation model and gesture information of a user manipulating the three-dimensional segmentation model, generate robot arm control data according to the initial pose information and the gesture information, and generate a simulation preview of the robot arm grasping a target object based on the robot arm control data;

[0010] After receiving confirmation information of the simulation preview from the user, the target AR device generates a control instruction based on the robotic arm control data, and sends the control instruction to the robotic arm;

[0011] The robotic arm receives and executes the control instruction to move the target object to a target position in a target posture.

[0012] In one embodiment, the method of using a target AR device to collect a target scene including a target object to generate a three-dimensional segmentation model corresponding to the target object and displaying it on the device includes:

[0013] Using the target AR device to capture the target scene including the target object, obtaining an RGB image of the target object, the camera pose when photographing the target object, and an initial point cloud of the target object;

[0014] Inputting the RGB image, the camera pose and the initial point cloud into a trained three-dimensional Gaussian sputtering model, and processing them with the three-dimensional Gaussian sputtering model to obtain an initial three-dimensional Gaussian distribution of the target object;

[0015] Inputting the RGB image into a segmentation model, processing the image through the segmentation model to obtain a two-dimensional segmentation mask of the target object, and performing inverse rasterization processing on the initial three-dimensional Gaussian distribution using the two-dimensional segmentation mask to obtain an initial segmentation result of the target object;

[0016] The initial segmentation result is filtered using a KNN statistical filtering algorithm to obtain a number of three-dimensional Gaussian spheres, all of which are converted into point clouds to obtain a three-dimensional segmentation model corresponding to the target object and display it on the device.

[0017] In one embodiment, the training step of the three-dimensional Gaussian sputtering model includes:

[0018] Constructing an initial three-dimensional Gaussian sputtering model;

[0019] Acquire a training data set, wherein the training data set includes multiple groups of training scenes, each group of the training scenes consists of a training RGB image obtained by photographing a target training object, a training camera pose when photographing the target training object, and an initial training point cloud of the target training object;

[0020] In each iterative training, the training RGB images, the training camera poses and the initial training point clouds in each group of the training scenes are input into the initial three-dimensional Gaussian sputtering model, and the training RGB images in each group of the training scenes are input into the segmentation model;

[0021] Calculating a loss function based on an output result of the initial three-dimensional Gaussian sputtering model and an output result of the segmentation model, and updating parameters of the initial three-dimensional Gaussian sputtering model based on the loss function;

[0022] The iterative training is repeated until the loss function converges to a preset value, thereby obtaining a trained three-dimensional Gaussian sputtering model.

[0023] In one embodiment, the gesture information includes target pose information, grasping strategy information, and path guidance information; the initial pose information of the three-dimensional segmentation model and the gesture information of the user manipulating the three-dimensional segmentation model are obtained, and the robot arm control data is generated according to the initial pose information and the gesture information, including:

[0024] Acquiring initial pose information of the three-dimensional segmentation model;

[0025] Obtaining target pose information, grasping strategy information, and path guidance information of the three-dimensional segmentation model manipulated by a user;

[0026] Performing posture calculation based on the initial posture information and the target posture information, and converting the coordinates of the three-dimensional segmentation model from the augmented reality coordinate system to the robotic arm coordinate system;

[0027] According to the grasping strategy information and the path guidance information, the robot arm control data is generated in the robot arm coordinate system, and the robot arm control data includes the motion angles of each joint of the robot arm to reach the target posture, and the path planning of the robot arm to grasp the target object.

[0028] In one embodiment, generating the robot arm control data in the robot arm coordinate system according to the grasping strategy information and the path guidance information includes:

[0029] Processing the grasping strategy information using a cyclic coordinate descent algorithm to obtain the motion angles of each joint of the robot arm to reach the target position in the robot arm coordinate system;

[0030] Path planning is performed based on the path guidance information to obtain a path planning for the robot arm to grasp the target object in the robot arm coordinate system.

[0031] In one embodiment, before the robotic arm executes the control instruction, the method further includes:

[0032] Obtaining a prerequisite corresponding to the control instruction, and determining whether the robotic arm satisfies the prerequisite, wherein the prerequisite is used to determine whether the robotic arm can execute the corresponding control instruction;

[0033] If the robot arm meets the prerequisite, it is determined that the robot arm can execute the control instruction.

[0034] In one embodiment, the method further comprises:

[0035] While the robotic arm executes the control instruction, the actual state of the robotic arm is monitored in real time to generate actual state time series data;

[0036] Based on the simulation preview of the robot arm grasping the target object, generating simulation state time series data;

[0037] Calculate the difference between the actual state time series data and the simulation state time series data in each time step, and if the difference in each time step is within a preset threshold, determine that the actual state of the robot arm is consistent with the simulation state;

[0038] If the difference value of any time step exceeds a preset threshold, it is determined that the actual state and the simulated state of the robot arm are inconsistent.

[0039] In one embodiment, after the robotic arm executes the control instruction, the method further includes:

[0040] Obtaining a postcondition corresponding to the control instruction, and determining whether the robotic arm satisfies the postcondition after executing the control instruction, wherein the postcondition is used to determine whether the robotic arm has completed the control instruction and is in a specified target state;

[0041] If the robotic arm meets the post-condition, a task success message is sent to the target AR device.

[0042] In a second aspect, an embodiment of the present invention further provides a human-machine collaborative assembly system based on low-code programming, comprising:

[0043] A model display module, used to collect a target scene containing a target object using a target AR device, so as to generate a three-dimensional segmentation model corresponding to the target object and display it on the device;

[0044] A simulation preview module, used to obtain initial posture information of the three-dimensional segmentation model and gesture information of a user manipulating the three-dimensional segmentation model, generate robot arm control data according to the initial posture information and the gesture information, and generate a simulation preview of the robot arm grasping a target object based on the robot arm control data;

[0045] An instruction sending module, configured to, after receiving confirmation information of the user on the simulation preview, cause the target AR device to generate a control instruction based on the robotic arm control data and send the control instruction to the robotic arm;

[0046] The instruction execution module is used for the robot arm to receive and execute the control instruction to move the target object to the target position with the target posture.

[0047] In the third aspect, an embodiment of the present invention also provides a computer-readable storage medium, which stores a human-machine collaborative assembly program based on low-code programming, and the human-machine collaborative assembly program based on low-code programming can be executed to implement the steps of the human-machine collaborative assembly method based on low-code programming as described above.

[0048] Beneficial effects of the present invention: The embodiment of the present invention uses the target AR device to collect the target scene containing the target object, generate and display a three-dimensional segmentation model; obtain the initial posture information of the three-dimensional segmentation model and the gesture information of the user manipulating the three-dimensional segmentation model, generate the robot arm control data according to the initial posture information and gesture information, and generate a simulation preview of the robot arm grabbing the target object based on the robot arm control data; after receiving the user's confirmation information on the simulation preview, the target AR device generates a control instruction based on the robot arm control data, and sends the control instruction to the robot arm; the robot arm receives and executes the control instruction to move the target object to the target position with the target posture. The present invention uses augmented reality technology to enable users to intuitively manipulate the three-dimensional segmentation model, and then generate control instructions for the robot arm, reduce the workload of code writing, and effectively improve the programming efficiency of the robot arm. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 It is a flow chart of a preferred embodiment of the human-machine collaborative assembly method based on low-code programming in the present invention.

[0050] Figure 2 It is a training diagram of the three-dimensional Gaussian sputtering model in the present invention.

[0051] Figure 3 It is a schematic diagram of a three-dimensional segmentation model selected by a user in the present invention.

[0052] Figure 4 This is a schematic diagram of the user using gestures to adjust the posture of the three-dimensional segmentation model in the present invention. Figure 1 .

[0053] Figure 5 This is a schematic diagram of the user using gestures to adjust the posture of the three-dimensional segmentation model in the present invention. Figure 2 .

[0054] Figure 6 This is a schematic diagram of the user using gestures to adjust the posture of the three-dimensional segmentation model in the present invention. Figure 3 .

[0055] Figure 7 It is a schematic diagram of a user dragging a three-dimensional segmentation model using a gesture in the present invention.

[0056] Figure 8It is a schematic diagram of the overall architecture of the present invention.

[0057] Fig. 9 It is a functional principle block diagram of a preferred embodiment of the human-machine collaborative assembly system in the present invention. DETAILED DESCRIPTION

[0058] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0059] The robotic arm is the essence of flexible automation in the industrial field. The introduction of robotic arms in the manufacturing process has greatly improved productivity. However, robotic arm programming, especially in the field of human-machine collaborative assembly, still faces problems such as time-consuming and over-dependence on the programmer's programming level. In traditional online programming, the operator controls the robotic arm by physically moving a joystick or a control box. Although this method requires lower programming skills and costs, it is less efficient in complex assembly tasks and difficult to modify easily. On the other hand, offline programming allows programmers to program the robotic arm in a simulation environment without downtime, which is suitable for more complex tasks. However, this type of offline programming relies heavily on accurate digital models, including the robotic arm itself, the workpiece being operated, and a digital representation of the entire working environment. Building these digital models requires a lot of time and effort to ensure that the simulation results in the virtual environment can truly reflect the situation in the actual workspace. In addition, the traditional offline programming method still requires writing a lot of code to define the robot's motion trajectory, control logic, and interaction with external sensors, and requires a large number of parameters to be finely configured in order for the robotic arm to work as expected, making the programming efficiency of the robotic arm low.

[0060] In view of the above-mentioned defects of the prior art, the present invention provides a human-machine collaborative assembly method, system and storage medium based on low-code programming, the method comprising: using a target AR device to collect a target scene containing a target object, generating and displaying a three-dimensional segmentation model; obtaining the initial posture information of the three-dimensional segmentation model and the gesture information of the user manipulating the three-dimensional segmentation model, generating mechanical arm control data according to the initial posture information and gesture information, and generating a simulation preview of the mechanical arm grabbing the target object based on the mechanical arm control data; after receiving the user's confirmation information on the simulation preview, the target AR device generates a control instruction based on the mechanical arm control data, and sends the control instruction to the mechanical arm; the mechanical arm receives and executes the control instruction to move the target object to the target position with the target posture. The present invention enables users to intuitively manipulate the three-dimensional segmentation model through augmented reality technology, and then generates control instructions for the mechanical arm, which reduces the workload of code writing and effectively improves the programming efficiency of the mechanical arm.

[0061] See also Figure 1 The human-machine collaborative assembly method based on low-code programming described in the embodiment of the present invention includes the following steps:

[0062] Step S100: using a target AR device to capture a target scene including a target object, so as to generate a three-dimensional segmentation model corresponding to the target object and display it on the device.

[0063] Specifically, the target object is an object that needs to be operated by a robotic arm in reality. For example, the target object is grasped by a robotic arm, and the target object is moved to the specified target position in the target posture. For example, if a box needs to be moved by a robotic arm in reality, the user wears the target AR device to collect the box and its surrounding environment in order to generate a three-dimensional segmentation model of the box and display it on the target AR device. Later, the user can use the target AR device to operate the three-dimensional segmentation model in order to generate control instructions for the robotic arm in reality to operate the target object.

[0064] In one implementation, the target AR device is AR glasses.

[0065] In one implementation, the target AR device is Microsoft HoloLens 2.

[0066] In one implementation, using a target AR device to capture a target scene including a target object to generate a three-dimensional segmentation model corresponding to the target object and displaying it on the device includes:

[0067] Using the target AR device to capture the target scene including the target object, obtaining an RGB image of the target object, the camera pose when photographing the target object, and an initial point cloud of the target object;

[0068] Inputting the RGB image, the camera pose and the initial point cloud into a trained three-dimensional Gaussian sputtering model, and processing them with the three-dimensional Gaussian sputtering model to obtain an initial three-dimensional Gaussian distribution of the target object;

[0069] Inputting the RGB image into a segmentation model, processing the image through the segmentation model to obtain a two-dimensional segmentation mask of the target object, and performing inverse rasterization processing on the initial three-dimensional Gaussian distribution using the two-dimensional segmentation mask to obtain an initial segmentation result of the target object;

[0070] The initial segmentation result is filtered using a KNN statistical filtering algorithm to obtain a number of three-dimensional Gaussian spheres, all of which are converted into point clouds to obtain a three-dimensional segmentation model corresponding to the target object and display it on the device.

[0071] Specifically, the present invention uses a combination of a 3D Gaussian Splatting model (3DGS) and a Segment Anything Model (SAM) to process the data collected by the target AR device. First, the target scene is collected by a head-mounted target AR device. The target scene is centered on the target object to obtain an RGB image, camera pose, and a rough initial point cloud. The RGB image, camera pose, and initial point cloud are input into the trained 3D Gaussian Splatting model to obtain the initial 3D Gaussian distribution of the target object. That is, the 3D Gaussian sphere set .in, represents a set of 3D Gaussian spheres, is a 3D Gaussian ball in the 3D Gaussian ball set, Represents the number of 3D Gaussian spheres in the scene.

[0072] The RGB image is input into the segmentation model, and after being processed by the segmentation model, a two-dimensional segmentation mask of the target object is obtained. For example, after the user wears the target AR device, he can select the target object through a certain gesture. At this time, the target AR device will obtain the RGB image of the camera posture, and after being processed by the segmentation model, a two-dimensional segmentation mask of the target object can be obtained. Then, the two-dimensional segmentation mask is used to trace back the initial three-dimensional Gaussian distribution pixel by pixel, that is, the rasterized 3D Gaussian sphere, to obtain the initial segmentation result. However, if we only rely on this segmentation result, there will be omissions or extra Gaussian balls. We need to use the KNN statistical filtering algorithm to calculate the segmentation result. In each Gaussian distribution, the nearest The average distance of all Gaussian distributions. Calculate the mean of the average distances of all Gaussian distributions and standard deviation , remove the average distance exceeding Gaussian distribution of It is the collection of 3D Gaussian balls of the segmented target object. The center positions of these Gaussian balls are obtained and converted into point clouds to obtain a 3D segmentation model, which can be displayed in the target AR device and overlapped with the target object.

[0073] In one implementation, the training step of the three-dimensional Gaussian sputtering model includes:

[0074] Constructing an initial three-dimensional Gaussian sputtering model;

[0075] Acquire a training data set, wherein the training data set includes multiple groups of training scenes, each group of the training scenes consists of a training RGB image obtained by photographing a target training object, a training camera pose when photographing the target training object, and an initial training point cloud of the target training object;

[0076] In each iterative training, the training RGB images, the training camera poses and the initial training point clouds in each group of the training scenes are input into the initial three-dimensional Gaussian sputtering model, and the training RGB images in each group of the training scenes are input into the segmentation model;

[0077] Calculating a loss function based on an output result of the initial three-dimensional Gaussian sputtering model and an output result of the segmentation model, and updating parameters of the initial three-dimensional Gaussian sputtering model based on the loss function;

[0078] The iterative training is repeated until the loss function converges to a preset value, thereby obtaining a trained three-dimensional Gaussian sputtering model.

[0079] Specifically, the present invention iteratively trains the initial three-dimensional Gaussian sputtering model to obtain a three-dimensional Gaussian sputtering model that meets the actual application scenario. During the training process, Figure 2 As shown, after the training RGB image, the training camera pose and the initial training point cloud are input into the initial three-dimensional Gaussian sputtering model, a 3D Gaussian ball set is obtained. An associated feature is added to each 3D Gaussian ball in the 3D Gaussian ball set The feature is rasterized, and the loss function is calculated by combining the rasterized 2D rendering mask result with the 2D mask reference truth output by the Segment Everything Model (SAM). In the calculation process, each training RGB image is used The corresponding training camera pose and parameters are used to calculate each pixel under the training camera pose The rasterization rendering result can be expressed as: In the formula, is the sequential set of Gaussian balls covering the pixel point, is the i-th associated feature, is the scattering intensity of the current Gaussian sphere, It is the scattering intensity of all Gaussian balls that are in front of the current Gaussian ball according to the pixel point, and r represents the rendering flag. The rasterization rendering result of can obtain the rasterization characteristics of the two-dimensional mask rendering image , using the pixel-level sigmoid function After processing, the rendered two-dimensional segmentation mask rendering result is obtained, which can be expressed as .

[0080] The training RGB image is input into the segmentation model to obtain the two-dimensional segmentation mask reference truth value, which is expressed as , where is the input RGB image set Any one of The coordinates on the RGB image converted from the spatial coordinate points of the target object input by the human operator using gestures.

[0081] The loss function is defined as the 2D segmentation mask rendering result and the 2D segmentation mask reference extracted by the Segmentation Everything Model (SAM) The binary cross entropy is expressed as:

[0082] ;

[0083] In the formula, Indicates the current image The 2D segmentation mask of the target object in Represents each pixel, H represents the current image The height of the current image. The width of Represents the two-dimensional mask value of the pixel (0 or 1), express Finally, the initial three-dimensional Gaussian sputtering model is trained using the loss function until the loss function converges to a preset value, and a trained three-dimensional Gaussian sputtering model is obtained.

[0084] See also Figure 1 The human-machine collaborative assembly method based on low-code programming described in the embodiment of the present invention also includes the following steps:

[0085] Step S200, obtaining initial pose information of the three-dimensional segmentation model and gesture information of a user manipulating the three-dimensional segmentation model, generating robotic arm control data according to the initial pose information and the gesture information, and generating a simulation preview of the robotic arm grasping a target object based on the robotic arm control data.

[0086] Specifically, after the three-dimensional segmentation model is generated, the user can wear the target AR device to operate the three-dimensional segmentation model, such as grabbing the target object, adjusting the posture of the target object, moving the target object, etc. These operations of the user on the three-dimensional segmentation model will generate gesture information. The present invention will generate the robot arm control data for controlling the robot arm in combination with the initial posture information and gesture information of the three-dimensional segmentation model, and at the same time, a simulation preview of the robot arm grabbing the target object can also be generated in the target AR device.

[0087] In the present invention, the three-dimensional segmentation of the target object is realized by using the three-dimensional Gaussian sputtering model and the segmentation everything model, the three-dimensional segmentation model corresponding to the target object is obtained, and the gesture information of the user operating the three-dimensional segmentation model is obtained, all of which are processed based on the coarse-grained human visual guidance module in the present invention. In the fine-grained robot autonomous perception module, posture calculation and path planning are performed, and the robot arm control data is generated. In the digital twin simulation and control module of the present invention, a simulation preview is generated based on the robot arm control data.

[0088] In one implementation, the gesture information includes target pose information, grasping strategy information, and path guidance information; the initial pose information of the three-dimensional segmentation model and the gesture information of the user manipulating the three-dimensional segmentation model are obtained, and the robot arm control data is generated according to the initial pose information and the gesture information, including:

[0089] Acquiring initial pose information of the three-dimensional segmentation model;

[0090] Obtaining target pose information, grasping strategy information, and path guidance information of the three-dimensional segmentation model manipulated by a user;

[0091] Performing posture calculation based on the initial posture information and the target posture information, and converting the coordinates of the three-dimensional segmentation model from the augmented reality coordinate system to the robotic arm coordinate system;

[0092] According to the grasping strategy information and the path guidance information, the robot arm control data is generated in the robot arm coordinate system, and the robot arm control data includes the motion angles of each joint of the robot arm to reach the target posture, and the path planning of the robot arm to grasp the target object.

[0093] Specifically, the present invention uses gesture input as an interactive method. When the user wears the target AR device, the user uses the pinching gesture of the thumb and index finger together to realize the function of selecting the object. The user can use the pinching gesture of one hand or two hands to select the 3D segmentation model. The user uses the pinching gesture of both hands to select the 3D model. The operation diagram is as follows Figure 3 After selecting the 3D segmentation model, the grasping point reference information will be generated, which belongs to the grasping strategy information. After the user selects the 3D segmentation model with one hand, the user can use gestures to rotate it to change the posture of the model. The schematic diagram of the user using gestures to adjust the posture of the 3D segmentation model can be shown as follows Figure 4 , Figure 5 and Figure 6 In addition, the user can drag the 3D segmentation model to the target location, and this process will generate path guidance information. The drag effect diagram is shown in Figure 7 shown.

[0094] After obtaining the gesture information of the user operating the 3D segmentation model, the robot arm control data can be generated in combination with the initial pose information of the 3D segmentation model. The gesture information includes the target pose information, the grasping strategy information and the path guidance information. The initial pose information includes the initial coordinate system of the 3D object in the virtual augmented environment. The target pose information includes the target pose coordinate system of the 3D object in the virtual augmented environment. The grasping strategy information includes the grasping points for grasping the 3D segmentation model. The path guidance information is the path for the user to move the 3D segmentation model to the target position.

[0095] In the process of posture calculation based on the initial posture information and the target posture information, first, the homogeneous transformation matrix preset by the target AR device is obtained. , to set the virtual robotic arm model coordinate system preset in the target AR device And the actual robot arm coordinate system At the same time, the target AR device can identify the initial coordinate system of the 3D segmentation model. Homogeneous coordinate transformation matrix between the augmented reality coordinate system , and the target pose coordinate system of the 3D segmentation model Homogeneous coordinate transformation matrix between the augmented reality coordinate system Then use , calculate the coordinate transformation matrix between the initial coordinate system of the three-dimensional object and the robot coordinate system, and use Calculate the coordinate transformation matrix between the target posture coordinate system of the three-dimensional object and the robot arm coordinate system.

[0096] After the posture calculation is completed, the robot arm control data is generated in the robot arm coordinate system according to the grasping strategy information and the path guidance information.

[0097] In one implementation, generating the robot arm control data in the robot arm coordinate system according to the grasping strategy information and the path guidance information includes:

[0098] Processing the grasping strategy information using a cyclic coordinate descent algorithm to obtain the motion angles of each joint of the robot arm to reach the target position in the robot arm coordinate system;

[0099] Path planning is performed based on the path guidance information to obtain a path planning for the robot arm to grasp the target object in the robot arm coordinate system.

[0100] Specifically, the CCDIK algorithm of inverse kinematics is used to process the grasping point information provided by the user to calculate the motion angles of each joint required for the robot to reach the target posture. According to the path guidance information provided by the user, the path planning from the initial position to the target position is calculated. The present invention uses a preset interpolation algorithm to plan the path of the robot. The input items of this interpolation algorithm are , , and .in, are n path points uniformly sampled on the reference path, The time interval from the previous frame to the current frame in the digital twin simulation and preview module is in seconds. The digital twin simulation and preview module in the present invention is used to generate a simulation preview based on the user's operation on the three-dimensional segmentation model. The interpolation algorithm outputs the motion angle of each joint of the robot arm at each path point. , and path planning data.

[0101] See also Figure 1 The human-machine collaborative assembly method based on low-code programming described in the embodiment of the present invention also includes the following steps:

[0102] Step S300: After receiving confirmation information from the user on the simulation preview, the target AR device generates a control instruction based on the robotic arm control data and sends the control instruction to the robotic arm.

[0103] Specifically, the digital twin simulation and control module includes a digital twin and preview module, and a physical execution module. The digital twin and preview module displays the movement of the robotic arm in the target AR device in advance for the user to check. The user can confirm by voice or gesture drive. When the confirmation information is received, the control command can be generated and sent to the robotic arm. The present invention uses digital twin technology to create a simulated preview of the robotic arm's operation on the target object, which can display its motion trajectory and expected effects in advance, so that the user can intuitively see the actual working status of the robotic arm. In this way, the user can discover and correct potential problems before actual operation, thereby improving work efficiency and safety.

[0104] See also Figure 1 The human-machine collaborative assembly method based on low-code programming described in the embodiment of the present invention also includes the following steps:

[0105] Step S400: The robotic arm receives and executes the control instruction to move the target object to a target position in a target posture.

[0106] Specifically, after the robotic arm receives the control instruction, the physical execution module drives the robotic arm to execute the control instruction.

[0107] In one implementation, before the robotic arm executes the control instruction, the method further includes:

[0108] Obtaining a prerequisite corresponding to the control instruction, and determining whether the robotic arm satisfies the prerequisite, wherein the prerequisite is used to determine whether the robotic arm can execute the corresponding control instruction;

[0109] If the robot arm meets the prerequisite, it is determined that the robot arm can execute the control instruction.

[0110] Specifically, before the robot executes the control instruction, it is necessary to judge the prerequisite. For example, if the control instruction is a grasping action, before executing the grasping, it is necessary to judge whether the gripper of the robot is open and does not grasp an object. The grasping action can only be performed if this prerequisite state is met. The present invention can ensure that the robot is in a safe and executable state when executing the control instruction through the judgment of the prerequisite, thereby avoiding the inability to complete the control instruction due to improper state of the robot.

[0111] In one implementation, the method further includes:

[0112] While the robotic arm executes the control instruction, the actual state of the robotic arm is monitored in real time to generate actual state time series data;

[0113] Based on the simulation preview of the robot arm grasping the target object, generating simulation state time series data;

[0114] Calculate the difference between the actual state time series data and the simulation state time series data in each time step, and if the difference in each time step is within a preset threshold, determine that the actual state of the robot arm is consistent with the simulation state;

[0115] If the difference value of any time step exceeds a preset threshold, it is determined that the actual state and the simulated state of the robot arm are inconsistent.

[0116] Specifically, while the robot is executing control instructions, the target AR device will continue to monitor the execution status of the robot. When the difference in any time step exceeds the preset threshold, it is considered that the actual state of the robot is inconsistent with the simulated state, and the corresponding prompt mechanism is triggered. During the monitoring process, the target AR device and the robot communicate using the TCP / IP communication protocol.

[0117] When executing control instructions, the robot arm executes based on device primitives, that is, it relies on a series of minimum unit hardware execution actions, such as the opening and closing of the gripper, the data collected by the force sensor, and the joint movement of the robot arm. In recent years, digital twin (DT) and augmented reality (AR) technologies have burst into vitality in human-computer interaction applications. AR-based robot arm programming blurs the boundaries between traditional online programming and offline programming, and provides an immersive natural interaction interface for human-computer collaborative assembly. At the same time, the integration of digital twins has enabled product assembly technology to develop in the direction of intelligent assembly with deep integration of virtual and real. However, the current method of programming with AR technology combined with robot arms is mainly focused on the low-level device primitive execution level, such as controlling basic robot arm movements (translation and rotation) or gripper operations (opening and closing), with poor accuracy and flexibility. The present invention uses a more advanced gesture to manipulate the three-dimensional segmentation model of the target object to trigger the underlying device primitive execution, which can achieve more natural and flexible control and make the execution of the robot arm more in line with human thinking and habits.

[0118] At the same time, the robot arm of the present invention is provided with a force torque sensor on the end effector, so that the robot arm can autonomously perform operations such as searching for a plane and searching for an aperture through force feedback perception when performing operations.

[0119] In one implementation, after the robotic arm executes the control instruction, the method further includes:

[0120] Obtaining a postcondition corresponding to the control instruction, and determining whether the robotic arm satisfies the postcondition after executing the control instruction, wherein the postcondition is used to determine whether the robotic arm has completed the control instruction and is in a specified target state;

[0121] If the robotic arm meets the post-condition, a task success message is sent to the target AR device.

[0122] Specifically, after the instruction is executed, a post-condition check is performed. For example, if the operation of grabbing and moving the target object is executed, the post-condition is that the gripper is in the released state. This indicates that the task has been completed and the next operation can be continued.

[0123] The overall structure diagram of the present invention is as follows: Figure 8As shown. The present invention includes a coarse-grained human visual guidance module, a fine-grained robot autonomous perception module and a digital twin simulation and control module. In the coarse-grained human visual guidance module, based on the spatial interaction interface of AR, the three-dimensional segmentation of the target object can be performed, so that the user can intuitively specify the target posture, grasping strategy and reference path of the object through gesture interaction; in the fine-grained robot autonomous perception module, posture calculation and path planning can be performed; in the digital twin simulation and control module, the digital twin simulation and preview module is first used to generate a simulation preview. When the user confirms the simulation preview, a control instruction is generated, and the physical execution module drives the mechanical arm to execute. Through the simulation preview, the safety of the operation can be improved, and the mechanical arm can be driven to complete the assembly task. Before execution, a prerequisite check is performed. During the execution process, it is executed based on the device meta-statement, and force feedback perception and digital twin continuous monitoring are performed. After execution, a post-condition check is performed. Through force feedback, posture calculation and path planning, high-precision on-site adaptive action execution can be achieved. The present invention uses a multi-granularity fusion low-code programming method to greatly reduce the workload of programming while ensuring that the robot arm has a better understanding of human guidance intentions, thereby improving the efficiency and flexibility of human-machine collaborative assembly programming. It can better solve the limitations of online programming methods and offline programming methods in the prior art when dealing with complex tasks, as well as the limitation that current AR programming only focuses on low-level device meta-language level control, and better balance the intuitiveness, safety and efficiency of robot arm programming.

[0124] In one embodiment, if Fig. 9 As shown, based on the above-mentioned human-machine collaborative assembly method based on low-code programming, the present invention also provides a human-machine collaborative assembly system, including:

[0125] The model display module 100 is used to collect a target scene including a target object using a target AR device to generate a three-dimensional segmentation model corresponding to the target object and display it on the device;

[0126] A simulation preview module 200 is used to obtain initial posture information of the three-dimensional segmentation model and gesture information of the user manipulating the three-dimensional segmentation model, generate robot arm control data according to the initial posture information and the gesture information, and generate a simulation preview of the robot arm grasping the target object based on the robot arm control data;

[0127] The instruction sending module 300 is used for, after receiving the user's confirmation information on the simulation preview, the target AR device generates a control instruction based on the robotic arm control data and sends the control instruction to the robotic arm;

[0128] The instruction execution module 400 is used for the robot arm to receive and execute the control instruction to move the target object to the target position with the target posture.

[0129] It should be noted that the aforementioned explanation of the embodiment of the human-machine collaborative assembly method based on low-code programming is also applicable to the human-machine collaborative assembly system of this embodiment and will not be repeated here.

[0130] An embodiment of the present invention also provides a computer-readable storage medium, on which a human-machine collaborative assembly program based on low-code programming is stored. When the human-machine collaborative assembly program based on low-code programming is executed by a processor, the steps of any one of the human-machine collaborative assembly methods based on low-code programming provided by the embodiment of the present invention are implemented.

[0131] It should be understood that the serial numbers of the steps in the above embodiments do not imply a sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0132] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the above-mentioned device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0133] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0134] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0135] In the embodiments provided by the present invention, it should be understood that the disclosed apparatus / terminal equipment and method can be implemented in other ways. For example, the apparatus / terminal equipment embodiments described above are only illustrative, for example, the division of the above modules or units is only a logical function division, and in actual implementation, other division methods can be used, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0136] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, it should be understood by those skilled in the art that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features therein may be replaced by equivalents. However, these modifications or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention.

Claims

1. A human-machine collaborative assembly method based on low-code programming, characterized in that: The method comprises: Using the target AR device to collect the target scene including the target object, so as to generate a three-dimensional segmentation model corresponding to the target object and display it on the device; Acquire initial pose information of the three-dimensional segmentation model and gesture information of a user manipulating the three-dimensional segmentation model, generate robot arm control data according to the initial pose information and the gesture information, and generate a simulation preview of the robot arm grasping a target object based on the robot arm control data; After receiving confirmation information of the simulation preview from the user, the target AR device generates a control instruction based on the robotic arm control data, and sends the control instruction to the robotic arm; The robotic arm receives and executes the control instruction to move the target object to a target position in a target posture.

2. The human-machine collaborative assembly method based on low-code programming according to claim 1 is characterized in that: The method of using the target AR device to collect a target scene including a target object to generate a three-dimensional segmentation model corresponding to the target object and displaying it on the device includes: Using the target AR device to capture the target scene including the target object, obtaining an RGB image of the target object, the camera pose when photographing the target object, and an initial point cloud of the target object; Inputting the RGB image, the camera pose and the initial point cloud into a trained three-dimensional Gaussian sputtering model, and processing them with the three-dimensional Gaussian sputtering model to obtain an initial three-dimensional Gaussian distribution of the target object; Inputting the RGB image into a segmentation model, processing the image through the segmentation model to obtain a two-dimensional segmentation mask of the target object, and performing inverse rasterization processing on the initial three-dimensional Gaussian distribution using the two-dimensional segmentation mask to obtain an initial segmentation result of the target object; The initial segmentation result is filtered using a KNN statistical filtering algorithm to obtain a number of three-dimensional Gaussian spheres, all of which are converted into point clouds to obtain a three-dimensional segmentation model corresponding to the target object and display it on the device.

3. The human-machine collaborative assembly method based on low-code programming according to claim 2 is characterized in that: The training steps of the three-dimensional Gaussian sputtering model include: Constructing an initial three-dimensional Gaussian sputtering model; Acquire a training data set, wherein the training data set includes multiple groups of training scenes, each group of the training scenes consists of a training RGB image obtained by photographing a target training object, a training camera pose when photographing the target training object, and an initial training point cloud of the target training object; In each iterative training, the training RGB images, the training camera poses and the initial training point clouds in each group of the training scenes are input into the initial three-dimensional Gaussian sputtering model, and the training RGB images in each group of the training scenes are input into the segmentation model; Calculating a loss function based on an output result of the initial three-dimensional Gaussian sputtering model and an output result of the segmentation model, and updating parameters of the initial three-dimensional Gaussian sputtering model based on the loss function; The iterative training is repeated until the loss function converges to a preset value, thereby obtaining a trained three-dimensional Gaussian sputtering model.

4. The human-machine collaborative assembly method based on low-code programming according to claim 1 is characterized in that: The gesture information includes target pose information, grasping strategy information and path guidance information; the initial pose information of the three-dimensional segmentation model and the gesture information of the user manipulating the three-dimensional segmentation model are obtained, and the robot arm control data is generated according to the initial pose information and the gesture information, including: Acquiring initial pose information of the three-dimensional segmentation model; Obtaining target pose information, grasping strategy information, and path guidance information of the three-dimensional segmentation model manipulated by a user; Performing posture calculation based on the initial posture information and the target posture information, and converting the coordinates of the three-dimensional segmentation model from the augmented reality coordinate system to the robotic arm coordinate system; According to the grasping strategy information and the path guidance information, the robot arm control data is generated in the robot arm coordinate system, and the robot arm control data includes the motion angles of each joint of the robot arm to reach the target posture, and the path planning of the robot arm to grasp the target object.

5. The human-machine collaborative assembly method based on low-code programming according to claim 4 is characterized in that: Generating robot arm control data in the robot arm coordinate system according to the grasping strategy information and the path guidance information includes: Processing the grasping strategy information using a cyclic coordinate descent algorithm to obtain the motion angles of each joint of the robot arm to reach the target position in the robot arm coordinate system; Path planning is performed based on the path guidance information to obtain a path planning for the robot arm to grasp the target object in the robot arm coordinate system.

6. The human-machine collaborative assembly method based on low-code programming according to claim 1 is characterized in that: Before the robotic arm executes the control instruction, the method further includes: Obtaining a prerequisite corresponding to the control instruction, and determining whether the robotic arm satisfies the prerequisite, wherein the prerequisite is used to determine whether the robotic arm can execute the corresponding control instruction; If the robot arm meets the prerequisite, it is determined that the robot arm can execute the control instruction.

7. The human-machine collaborative assembly method based on low-code programming according to claim 1 is characterized in that: The method further comprises: While the robotic arm executes the control instruction, the actual state of the robotic arm is monitored in real time to generate actual state time series data; Based on the simulation preview of the robot arm grasping the target object, generating simulation state time series data; Calculate the difference between the actual state time series data and the simulation state time series data in each time step, and if the difference in each time step is within a preset threshold, determine that the actual state of the robot arm is consistent with the simulation state; If the difference value of any time step exceeds a preset threshold, it is determined that the actual state and the simulated state of the robot arm are inconsistent.

8. The human-machine collaborative assembly method based on low-code programming according to claim 1 is characterized in that: After the robotic arm executes the control instruction, the method further includes: Obtaining a postcondition corresponding to the control instruction, and determining whether the robotic arm satisfies the postcondition after executing the control instruction, wherein the postcondition is used to determine whether the robotic arm has completed the control instruction and is in a specified target state; If the robotic arm meets the post-condition, a task success message is sent to the target AR device.

9. A human-machine collaborative assembly system based on low-code programming, characterized in that: include: A model display module, used to collect a target scene containing a target object using a target AR device, so as to generate a three-dimensional segmentation model corresponding to the target object and display it on the device; A simulation preview module, used to obtain initial posture information of the three-dimensional segmentation model and gesture information of a user manipulating the three-dimensional segmentation model, generate robot arm control data according to the initial posture information and the gesture information, and generate a simulation preview of the robot arm grasping a target object based on the robot arm control data; An instruction sending module, configured to, after receiving confirmation information of the user on the simulation preview, cause the target AR device to generate a control instruction based on the robotic arm control data and send the control instruction to the robotic arm; The instruction execution module is used for the robot arm to receive and execute the control instruction to move the target object to the target position with the target posture.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a human-machine collaborative assembly program based on low-code programming, and the human-machine collaborative assembly program based on low-code programming can be executed to implement the steps of the human-machine collaborative assembly method based on low-code programming as described in any one of claims 1-8.