Assembly model file generation method and device, electronic equipment and medium

By obtaining robot link assembly information to generate link model files and assembly constraint relationships, and automatically combining assembly model files, the high cost and low accuracy problems caused by manual operation in the existing technology are solved, and efficient and accurate assembly is achieved Model file generation.

CN118940433APending Publication Date: 2024-11-12HANGZHOU HIKROBOT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410985586.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The prior art relies on manual operations when generating robot assembly model files, resulting in high costs and difficulty in ensuring accuracy.

Method used

By obtaining the robot's connecting rod assembly information, the connecting rod model file and assembly constraint relationship are generated, and the assembly model file is automatically combined to form the assembly model file.

Benefits of technology

Significantly reduce manual intervention, reduce labor costs, and improve the generation efficiency and accuracy of model files.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118940433A_ABST
    Figure CN118940433A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an assembly model file generation method and device, electronic equipment and a medium, and the method comprises the steps: obtaining the connecting rod assembly information of a robot which comprises a plurality of connecting rods; according to the connecting rod assembly information and the constructed assembly body model file, generating a connecting rod model file corresponding to each connecting rod; according to the connecting rod assembly information, generating an assembly constraint relationship between the connecting rods; and combining and associating the connecting rod model files based on the assembly constraint relationship to obtain an assembly body model file of the robot. The electronic equipment can generate the assembly constraint relation between the connecting rod model file and the connecting rod through the connecting rod configuration information of the robot, and the connecting rod model file is combined and associated according to the assembly constraint relation to obtain the assembly body model file, so that the robot assembly body model file is automatically generated, manual intervention is greatly reduced, and the production efficiency is improved. And the efficiency and the accuracy of generating the model file are improved while the labor cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method, device, electronic equipment and medium for generating an assembly model file. Background Art

[0002] The robot assembly model file plays a vital role in the robot design and manufacturing stages. For example, in the design stage, the robot assembly model file can be used to generate an assembly model, and then the overall design of the robot can be verified through the assembly model to check whether there are interferences, collisions or other design problems. In the manufacturing stage, the assembly model file can be used as a guide for production and manufacturing to ensure that the manufacturing personnel can assemble the various parts of the robot according to the assembly model, thereby improving the accuracy and efficiency of assembly.

[0003] Currently, the generation of robot assembly model files mainly relies on manual operation of technicians. Specifically, technicians need to manually create models corresponding to the various components of the physical robot through CAD (Computer Aided Design) and other software on electronic equipment. Then, the technicians need to associate and combine the generated models according to the connection relationship between the various components in the physical robot to obtain the robot assembly model. Finally, the electronic equipment generates the robot assembly model file based on the robot assembly model.

[0004] However, this method of generating robot assembly model files not only consumes a lot of manpower costs, but also the accuracy of the generated assembly model files is difficult to guarantee due to the interference of human factors. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a method, device, electronic device and medium for generating an assembly model file, so as to automatically generate an assembly model file of a robot. The specific technical solution is as follows:

[0006] In a first aspect, an embodiment of the present application provides a method for generating an assembly model file, the method comprising:

[0007] Acquiring connecting rod assembly information of a robot, wherein the robot includes a plurality of connecting rods;

[0008] Generate a connecting rod model file corresponding to each connecting rod according to the connecting rod assembly information and the constructed assembly model file;

[0009] Generating assembly constraint relationships between the connecting rods according to the connecting rod assembly information;

[0010] Based on the assembly constraint relationship, the various connecting rod model files are combined and associated to obtain the assembly model file of the robot.

[0011] Optionally, the connecting rod assembly information includes: robot type, size information and position index of each connecting rod;

[0012] The step of generating a connecting rod model file corresponding to each connecting rod according to the connecting rod assembly information and the constructed assembly model file comprises:

[0013] According to the correspondence between the robot type and the assembly model file, determining a target assembly model file corresponding to the robot type from the plurality of constructed assembly model files;

[0014] For each connecting rod in the robot, determine the target connecting rod model file whose position index is consistent with the position index of the connecting rod from the connecting rod model files included in the target assembly model file, add the size information of the connecting rod to the target connecting rod model file, and obtain the connecting rod model file corresponding to the connecting rod.

[0015] Optionally, the connecting rod assembly information includes: robot type, size information of each connecting rod, position index of each connecting rod, zero offset of the connecting structure between each connecting rod, rotation direction of the connecting structure between each connecting rod, rotation angle range of the connecting structure between each connecting rod, base coordinate axis direction and tool coordinate axis direction;

[0016] Generating assembly constraint relationships between the connecting rods according to the connecting rod assembly information includes:

[0017] Adjusting the relative positions of the target connecting rods according to the size information and position index of each connecting rod to obtain the relative positions of the connecting rods, wherein the target connecting rod is a connecting rod in the assembly model corresponding to the constructed assembly model file;

[0018] Determine the initial range of motion of each link according to the zero offset, rotation direction and rotation angle range of the connection structure between each link; determine the target specific motion constraint corresponding to the robot type according to the correspondence between the robot type and the specific motion constraint; add constraint information to the initial range of motion according to the target specific motion constraint to obtain the target range of motion of each link;

[0019] Determining the end position of the robot according to the base coordinate axis direction and the tool coordinate axis direction;

[0020] The relative positions between the connecting rods, the target range of motion of the connecting rods and the end position of the robot are used as assembly constraint relationships between the connecting rods.

[0021] Optionally, the constructed assembly model file is a model file of an assembly constructed with a basic geometric body as a connecting rod.

[0022] Optionally, the basic geometric body includes: a cylinder and / or a pipe.

[0023] Optionally, the obtaining of connecting rod assembly information of the robot includes:

[0024] Obtain the robot's connecting rod assembly information input by the user;

[0025] or,

[0026] Acquire factory information of the robot, extract target type information from the factory information, and obtain connecting rod assembly information of the robot, wherein the target type information is information used to characterize properties of the connecting rods of the robot and assembly constraint relationships between the connecting rods;

[0027] or,

[0028] The calibration information of the robot when performing the target action is obtained, and the connecting rod assembly information of the robot is determined according to the calibration information and the robot kinematic model, wherein the union of the connecting rods for the robot to perform the target action scheduling includes all the connecting rods of the robot, and the calibration information includes: robot posture and kinematic parameters.

[0029] In a second aspect, an embodiment of the present application provides a device for generating an assembly model file, the device comprising:

[0030] An information acquisition module, used to acquire connecting rod assembly information of a robot, wherein the robot includes a plurality of connecting rods;

[0031] A connecting rod model file generating module, used for generating a connecting rod model file corresponding to each connecting rod according to the connecting rod assembly information and the constructed assembly model file;

[0032] An assembly constraint relationship generating module, used for generating assembly constraint relationships between various connecting rods according to the connecting rod assembly information;

[0033] The assembly model file generation module is used to combine and associate the various connecting rod model files based on the assembly constraint relationship to obtain the assembly model file of the robot.

[0034] Optionally, the connecting rod assembly information includes: robot type, size information and position index of each connecting rod; the connecting rod model file generation module includes: a target assembly model file determination unit, used to determine the target assembly model file corresponding to the robot type from multiple constructed assembly model files according to the correspondence between the robot type and the assembly model file; a connecting rod model file generation unit, used to determine, for each connecting rod in the robot, from the connecting rod model files included in the target assembly model file, a target connecting rod model file whose position index is consistent with the position index of the connecting rod, and add the size information of the connecting rod to the target connecting rod model file to obtain the connecting rod model file corresponding to the connecting rod.

[0035] Optionally, the connecting rod assembly information includes: robot type, size information of each connecting rod, position index of each connecting rod, zero offset of the connecting structure between each connecting rod, rotation direction of the connecting structure between each connecting rod, rotation angle range of the connecting structure between each connecting rod, base coordinate axis direction and tool coordinate axis direction; the assembly constraint relationship generation module includes: a relative position determination unit, which is used to adjust the relative position between each target connecting rod according to the size information and position index of each connecting rod to obtain the relative position between each connecting rod, wherein the target connecting rod is the connecting rod in the assembly model corresponding to the constructed assembly model file; an activity range determination unit, which is used to adjust the relative position between each target connecting rod according to the size information and position index of each connecting rod to obtain the relative position between each connecting rod The zero position offset, rotation direction and rotation angle range of the connection structure between the rods are used to determine the initial activity range of each connecting rod; according to the correspondence between the robot type and the specific motion constraint, the target specific motion constraint corresponding to the robot type is determined; according to the target specific motion constraint, constraint information is added to the initial activity range to obtain the target activity range of each connecting rod; an end position determination unit is used to determine the end position of the robot according to the direction of the base coordinate axis and the direction of the tool coordinate axis; an assembly constraint relationship production unit is used to use the relative position between the various connecting rods, the target activity range of the various connecting rods and the end position of the robot as the assembly constraint relationship between the various connecting rods.

[0036] Optionally, the constructed assembly model file is a model file of an assembly constructed with a basic geometric body as a connecting rod.

[0037] Optionally, the basic geometric body includes: a cylinder and / or a pipe.

[0038] Optionally, the information acquisition module is specifically used to obtain the connecting rod assembly information of the robot input by the user; or, to obtain the factory information of the robot, extract the target type information from the factory information, and obtain the connecting rod assembly information of the robot, wherein the target type information is used to characterize the properties of the connecting rods of the robot and the assembly constraint relationship between the connecting rods; or, to obtain the calibration information of the robot when performing the target action, and determine the connecting rod assembly information of the robot according to the calibration information and the robot kinematic model, wherein the union of the connecting rods for the robot to perform the target action scheduling includes all the connecting rods of the robot, and the calibration information includes: robot posture and kinematic parameters.

[0039] In a third aspect, an embodiment of the present application provides an electronic device, including:

[0040] Memory, used to store computer programs;

[0041] The processor is used to implement any method described in the first aspect when executing a program stored in the memory.

[0042] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any method described in the first aspect is implemented.

[0043] Beneficial effects of the embodiments of the present application:

[0044] In the solution provided by the embodiment of the present application, the electronic device can obtain the connecting rod assembly information of the robot, wherein the robot includes multiple connecting rods; generate the connecting rod model files corresponding to each connecting rod according to the connecting rod assembly information and the constructed assembly model files; generate the assembly constraint relationship between each connecting rod according to the connecting rod assembly information; combine and associate each connecting rod model file based on the assembly constraint relationship to obtain the assembly model file of the robot. Since the electronic device can generate the connecting rod model file and the assembly constraint relationship between the connecting rods through the connecting rod configuration information of the robot, and combine and associate the connecting rod model files according to the assembly constraint relationship to obtain the assembly model file, the robot assembly model file is automatically generated, which greatly reduces manual intervention, reduces labor costs, and also improves the efficiency and accuracy of generating model files.

[0045] Of course, implementing any product or method of the present application does not necessarily require achieving all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other embodiments can also be obtained based on these drawings.

[0047] Figure 1 A flowchart of a method for generating an assembly model file provided in an embodiment of the present application;

[0048] Figure 2 Based on Figure 1 A flow chart of a connecting rod model file generation method of the illustrated embodiment;

[0049] Figure 3 Based on Figure 1 A flow chart of a method for generating assembly constraint relations in the illustrated embodiment;

[0050] Figure 4 is a schematic diagram of a robot assembly model;

[0051] Figure 5 is a schematic diagram of another robot assembly model;

[0052] Figure 6 A schematic diagram of the structure of an assembly model file generation device provided in an embodiment of the present application;

[0053] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0055] In order to solve the technical problems that the current generation of robot assembly model files mainly relies on manual operation of technicians, resulting in a large amount of manpower costs and low accuracy of assembly model files, the embodiments of the present application provide an assembly model file generation method, device, electronic device, computer storage medium and computer program product. The assembly model file generation method provided by the embodiments of the present application is first introduced below.

[0056] The assembly model file generation method provided in the embodiment of the present application can be applied to any electronic device that needs to generate an assembly model file, for example, it can be a terminal device such as a computer, a tablet computer, or a server. No specific limitation is made here. For the sake of clear description, it is referred to as an electronic device below.

[0057] like Figure 1 As shown, a method for generating an assembly model file includes:

[0058] S101, obtaining the connecting rod assembly information of the robot.

[0059] The robot comprises a plurality of connecting rods.

[0060] S102, generating a connecting rod model file corresponding to each connecting rod according to the connecting rod assembly information and the constructed assembly model file.

[0061] S103: Generate assembly constraint relationships between the connecting rods according to the connecting rod assembly information.

[0062] S104, combining and associating the various link model files based on the assembly constraint relationship to obtain an assembly model file of the robot.

[0063] In the solution provided by the embodiment of the present application, the electronic device can obtain the connecting rod assembly information of the robot, wherein the robot includes multiple connecting rods; generate the connecting rod model files corresponding to each connecting rod according to the connecting rod assembly information and the constructed assembly model files; generate the assembly constraint relationship between each connecting rod according to the connecting rod assembly information; combine and associate each connecting rod model file based on the assembly constraint relationship to obtain the assembly model file of the robot. Since the electronic device can generate the connecting rod model file and the assembly constraint relationship between the connecting rods through the connecting rod configuration information of the robot, and combine and associate the connecting rod model files according to the assembly constraint relationship to obtain the assembly model file, the robot assembly model file is automatically generated, which greatly reduces manual intervention, reduces labor costs, and also improves the efficiency and accuracy of generating model files.

[0064] For a robot including multiple connecting rods, when generating the assembly model of the robot, the electronic device can first obtain the connecting rod assembly information of the robot. The specific method of obtaining the connecting rod assembly information of the robot will be described in detail in the subsequent embodiments and will not be repeated here.

[0065] The above-mentioned connecting rod assembly information may include information used to characterize the properties of each connecting rod of the robot and the assembly constraint relationship between each connecting rod. For example, the connecting rod assembly information may include: robot type, size information of each connecting rod, motion degree of freedom information of each connecting rod, and assembly order between each connecting rod, etc., which are not specifically limited here.

[0066] After acquiring the connecting rod assembly information, the electronic device can generate a connecting rod model file corresponding to each connecting rod and an assembly constraint relationship between each connecting rod according to the connecting rod assembly information.

[0067] For the method of generating the connecting rod model files corresponding to each connecting rod according to the connecting rod assembly information:

[0068] After obtaining the connecting rod assembly information of the robot, the electronic device can determine the assembly model file corresponding to the robot type in the constructed assembly model file according to the robot type included in the connecting rod assembly information. Then, the electronic device can add the information used to characterize the properties of each connecting rod of the robot in the connecting rod assembly information to the connecting rod model file included in the assembly model file, thereby generating the connecting rod model file corresponding to each connecting rod.

[0069] In one embodiment, each assembly model file can be pre-built in the following manner: a robot can be selected from each robot type, and then for each robot, a link model file corresponding to each link in the robot can be pre-built, wherein the link model file can record the position index of the link in the robot and the shape information of the link. Then, the link model files corresponding to all the links of the robot can be combined as the assembly model file of the robot, thereby obtaining the assembly model files corresponding to each robot type.

[0070] For the method of generating assembly constraint relationships between connecting rods based on connecting rod assembly information:

[0071] After acquiring the connecting rod assembly information, the electronic device can determine the relative position relationship between the connecting rods and the motion range of each connecting rod based on the information in the connecting rod assembly information used to characterize the assembly constraint relationship between the connecting rods of the robot, thereby obtaining the assembly constraint relationship between the connecting rods.

[0072] After obtaining the link model files corresponding to each link and the assembly constraint relationships between the links, the electronic device can combine and associate the link model files based on the assembly constraint relationships in the following two ways to obtain the assembly model file of the robot.

[0073] In one embodiment, the electronic device can input the attribute information of the connecting rod recorded in the connecting rod model file into the modeling program to create each connecting rod model, and then input the assembly constraint relationship between the connecting rods into the modeling program. The connecting rod models corresponding to the connecting rods are combined through the modeling program to reconstruct the assembly model of the robot. Finally, the electronic device can directly export the robot assembly model file of the robot assembly model through the modeling program, or read the assembly model information in the database through a pre-created script to generate an assembly model file.

[0074] In another embodiment, for every two connecting rod model files, the electronic device can determine the assembly constraint relationship between the connecting rods corresponding to the two connecting rod model files in the assembly constraint relationship between the respective connecting rods, and then generate an assembly constraint file between the two connecting rod model files according to the determined assembly constraint relationship, wherein the assembly constraint file can characterize the association relationship between the two connecting rod model files. Then, the electronic device can use the respective connecting rod model files and the assembly constraint file between every two connecting rod model files as an assembly model file.

[0075] In the solution provided in the embodiment of the present application, since the electronic device can generate a connecting rod model file and the assembly constraint relationship between the connecting rods through the connecting rod configuration information of the robot, and combine and associate the connecting rod model files according to the assembly constraint relationship to obtain the assembly model file, the robot assembly model file is automatically generated, which greatly reduces manual intervention and labor costs, while also improving the efficiency and accuracy of generating model files.

[0076] As an implementation of the above step S102, the connecting rod assembly information of the above robot may include: robot type, size information and position index of each connecting rod.

[0077] The robot type is used to indicate the type of robot, for example, a six-axis ball-wrist robot, a six-axis paranoid-wrist robot, and a four-axis palletizing robot. The size information of the connecting rod is used to indicate the length information of the connecting rod, for example, the length of the connecting rod is 0.5m. The position index of the connecting rod is used to indicate the number of the connecting rod in the robot. For example, based on the base, a position index of 1 indicates that the connecting rod is the first connecting rod connected to the base, and a position index of 2 indicates that the connecting rod is the second connecting rod connected to the connecting rod with a position index of 1, etc.

[0078] Correspondingly, such as Figure 2 As shown, the above step S102 may include:

[0079] S201 , according to the correspondence between the robot type and the assembly model file, determining a target assembly model file corresponding to the robot type from multiple constructed assembly model files.

[0080] The multiple assembly model files that have been constructed may include assembly model files of different types of robots. For example, the multiple assembly model files that have been constructed may include assembly model files of a six-axis ball-wrist robot, assembly model files of a six-axis paranoid-wrist robot, assembly model files of a four-axis palletizing robot, and assembly model files of a four-axis Scara (Selective Compliance Assembly Robot Arm) robot, etc.

[0081] The connecting rod assembly information obtained by the electronic device may include the robot type. In this way, when the electronic device generates the connecting rod model files corresponding to each connecting rod of the robot, it can first determine the assembly model file corresponding to the robot type included in the connecting rod assembly information from the assembly model files corresponding to the different types of robots that have been constructed. That is, according to the correspondence between the robot type and the assembly model file, the target assembly model file corresponding to the robot type of the robot is determined from the multiple assembly model files that have been constructed.

[0082] In one embodiment, after obtaining the connecting rod assembly information, the electronic device can input the robot type in the connecting rod assembly information into the parametric modeling module in the modeling program, so that the parametric modeling module calls the target assembly model file corresponding to the robot type in the multiple constructed assembly model files to perform connecting rod modeling according to the correspondence between the robot type and the assembly model file.

[0083] S202, for each link in the robot, determine the target link model file whose position index is consistent with the position index of the link from the link model files included in the target assembly model file, add the size information of the link to the target link model file, and obtain the link model file corresponding to the link.

[0084] The target assembly model file may include multiple link model files, wherein each link model file corresponds to a position index, and the position index is used to indicate which link the link model file corresponds to in the robot. The link assembly information obtained by the electronic device also includes the position index of each link.

[0085] Therefore, for each link in the robot, the electronic device can determine the link model file whose corresponding position index is consistent with the position index of the link from the link model files included in the target assembly model file as the target link model file corresponding to the link.

[0086] For example, the target assembly model file may include a first link model file, a second link model file, and a third link model file, wherein the first link model file corresponds to a link with a position index of 1, the second link model file corresponds to a link with a position index of 2, and the third link model file corresponds to a link with a position index of 3. For a link with a position index of 1 in the robot, the electronic device may use the first link model file as the target link model file corresponding to the link. For a link with a position index of 2 in the robot, the electronic device may use the second link model file as the target link model file corresponding to the link. For a link with a position index of 3 in the robot, the electronic device may use the third link model file as the target link model file corresponding to the link.

[0087] Because for robots of the same type, the shapes of the connecting rods included in each robot are relatively similar, but the size information between the robots may be quite different. Therefore, when the assembly model file is pre-built, the connecting rod model file in the assembly model file only records the shape information of the connecting rod but does not record the size information of the connecting rod.

[0088] Therefore, for each link in the robot, after the electronic device determines the target link model file corresponding to the link, it can add the size information of the link included in the link assembly information to the target link model file, so that the link model file includes both the shape information and the size information of the link, thereby obtaining the link model file corresponding to the link.

[0089] In one embodiment, after obtaining the connecting rod assembly information, the electronic device can not only input the robot type in the connecting rod assembly information into the parametric modeling module in the modeling program, but also input the dimension information and position index in the connecting rod assembly information as modeling parameters into the parametric modeling module, so that after the parametric modeling module calls the target assembly model file, it can determine the target connecting rod model file corresponding to each connecting rod according to the position index in the connecting rod assembly information and the position index of the connecting rod model file in the target assembly model file, and then add the dimension information in the connecting rod assembly information to the target connecting rod model file, thereby outputting the connecting rod model file corresponding to the connecting rod.

[0090] In the solution provided by the embodiment of the present application, for the same type of robot, the electronic equipment only needs to add dimension information on the basis of the target link model file to quickly generate the link model file corresponding to the link of the robot, and for each link in the robot, by determining the target link model file with consistent position index and adding dimension information, the accuracy and precision of assembly can be ensured, and the risk of assembly errors can be reduced. In addition, through the assembly model file corresponding to each type of robot that has been constructed, the standardization and normalization of robot assembly can be promoted, and the consistency and predictability of the assembly process can be improved.

[0091] As an implementation mode of the above-mentioned step S103, the above-mentioned connecting rod assembly information may include: robot type, size information of each connecting rod, position index of each connecting rod, zero position offset of the connecting structure between each connecting rod, rotation direction of the connecting structure between each connecting rod, rotation angle range of the connecting structure between each connecting rod, base coordinate axis direction and tool coordinate axis direction.

[0092] Among them, the robot type is used to indicate what type of robot the robot is. The size information of the connecting rod is used to indicate the length information of the connecting rod, etc. The position index of the connecting rod is used to indicate which connecting rod the connecting rod is in the robot. The zero position offset of the connecting structure between each connecting rod is used to indicate the deviation between the current position of the connecting structure and the defined "zero position" of the connecting structure. The rotation direction of the connecting structure between each connecting rod is used to characterize the rotatable direction of the connecting structure. The rotation angle range of the connecting structure between each connecting rod is used to indicate the upper and lower limits of the rotation angle of the connecting structure in the rotatable direction. The base coordinate axis direction and the tool coordinate axis direction are used to indicate the direction of the coordinate axis of the robot base and the direction of the coordinate axis of the robot end tool compared to the base, respectively.

[0093] Correspondingly, such as Figure 3 As shown, the above step S103 may include:

[0094] S301, adjusting the relative positions of the target connecting rods according to the size information and position index of each connecting rod to obtain the relative positions of the connecting rods.

[0095] In the assembly model corresponding to the constructed assembly model file, the relative positions of the various connecting rods are determined. On this basis, after obtaining the connecting rod assembly information, the electronic device can determine, for each connecting rod in the connecting rod assembly information, a connecting rod model whose corresponding position index is consistent with the position index of the connecting rod from the assembly model, and then adjust the corresponding size information of each connecting rod in the assembly model according to the size information of each connecting rod in the connecting rod assembly information, so as to adjust the relative positions of each connecting rod in the assembly model, and thus use the adjusted relative positions as the relative positions of each connecting rod.

[0096] S302, determine the initial activity range of each link according to the zero position offset, rotation direction and rotation angle range of the connection structure between each link; determine the target specific motion constraint corresponding to the robot type according to the correspondence between the robot type and the specific motion constraint; based on the target specific motion constraint, add constraint information to the initial activity range to obtain the target activity range of each link.

[0097] The electronic device can first determine the initial position of the connection structure according to the "zero position" and zero position offset of the connection structure, and then determine the initial range of motion of each connecting rod based on the initial position and the rotation direction and rotation angle range of the connection structure.

[0098] In some robots, there may be specific motion constraints between the links of the robot. For example, for some 4-axis robots, the third link and the fourth link have strong constraints, that is, when the third link is rotated, the fourth link needs to maintain a relative rotational posture.

[0099] Therefore, after obtaining the robot type included in the connecting rod assembly information, the electronic device can determine the target specific motion constraint corresponding to the robot type according to the correspondence between the robot type and the specific motion constraint; and then, for each connecting rod targeted by the target specific motion constraint, determine the constrained motion range of each connecting rod based on the target specific motion constraint, and then use the intersection between the initial motion range of each connecting rod and the constrained motion range as the target motion range between each connecting rod, so as to add constraint information to the initial motion range according to the target specific motion constraint, and obtain the target motion range of each connecting rod.

[0100] S303, determining the end position of the robot according to the base coordinate axis direction and the tool coordinate axis direction.

[0101] The base coordinate system is established relative to the world coordinate system, while the tool coordinate system is established relative to the base coordinate system. The electronic device can determine the posture of the base in the world coordinate system according to the direction of the base coordinate axis, and determine the posture of the tool in the base coordinate system according to the direction of the tool coordinate axis. The two postures are then added together to determine the end posture of the robot, that is, the tool coordinate system is superimposed on the base coordinate system to obtain the coordinate system of the flange at the end of the robot, which is used as the end posture of the robot.

[0102] S304: The relative positions between the links, the target ranges of motion between the links, and the end position of the robot are used as assembly constraint relationships between the links.

[0103] After obtaining the relative positions between the links, the target range of motion between the links and the end position of the robot, the electronic device can use them as assembly constraint relationships between the links.

[0104] In the solution provided in the embodiment of the present application, firstly, by adjusting the relative positions between the target connecting rods, the relative positions between the connecting rods are determined, thereby ensuring the accuracy and stability of the connecting rods during assembly. Secondly, the initial range of motion is determined based on the zero position offset, rotation direction and angle range of the connecting structure, which can reduce unnecessary motion conflicts in actual operation and improve the motion efficiency of the robot arm. In addition, constraint information is added to the initial range of motion, and the target range of motion obtained is more in line with actual operation requirements, thereby improving the reliability and safety of the robot arm. Finally, by determining the direction of the base coordinate axis and the tool coordinate axis, the terminal posture of the robot is clarified, providing a basis for the precise operation of the robot.

[0105] As an implementation of an embodiment of the present application, the above-mentioned constructed assembly model file can be: a model file of an assembly constructed with the actual shape of each connecting rod of the robot, or a model file of an assembly constructed with basic geometric bodies as connecting rods.

[0106] Because robots of the same type include the same number of links, and the shapes of the links included in robots of the same type are relatively close, for each type of robot, each link model can be constructed according to the actual shape of each link of a physical robot in that type of robot, and then these link models can be combined into an assembly model according to the connection relationship between the links in the physical robot, and then an assembly model file is generated based on the assembly model, thereby obtaining a model file of the assembly constructed according to the actual shapes of the links of the robot.

[0107] Figure 4 It is a schematic diagram of an assembly model constructed based on the actual shapes of each link of the robot. Figure 4 The values ​​in represent the length information of each component in the robot, and J1-J6 represent each rotation axis.

[0108] For each type of robot, basic geometric bodies can also be used as basic units, each basic unit corresponds to a connecting rod of the robot, and then according to the connection relationship between the connecting rods in the physical robot, these basic geometric bodies are combined into an assembly model, and then an assembly model file is generated based on the assembly model, thereby obtaining a model file of the assembly constructed with basic geometric bodies as connecting rods.

[0109] In one embodiment, the basic geometric bodies may include: cylinders and / or pipes, that is, cylinders and / or pipes are used as the connecting rods of the robot. In this case, the constructed assembly model may be as follows: Figure 5 As shown, Figure 5 L1-L7 in the figure represent the length information of each component in the robot, and a1-a6 represent each rotation axis.

[0110] In the solution provided by the embodiment of the present application, the assembly model can be constructed with the actual shape of each connecting rod of the robot, so that the assembly model obtained is closer to the actual robot structure, which can make the user more intuitively understand the working principle and mechanical structure of the robot, and the model based on the actual shape can more easily identify potential design problems, such as insufficient structural strength, motion interference, etc., so as to guide the designer to optimize and improve. Simple geometric bodies (such as cylinders, pipe bodies, etc.) can also be used to replace the complex connecting rods in the original assembly three-dimensional model file, which simplifies the complexity and calculation amount of the model to a certain extent, and can obtain the assembly model file of the robot by combining simple geometric bodies without the actual three-dimensional model of the robot, thereby improving the calculation speed, reducing resource consumption, etc. At the same time, because the size of the connecting rod and the movement mode between the connecting rods are maintained, the user's experience of interacting with the robot assembly three-dimensional model will not be affected.

[0111] As an implementation of the above step S101, when the electronic device obtains the connecting rod assembly information of the robot, the connecting rod assembly information of the robot can be obtained through steps S1011, S1012 or S1013:

[0112] S1011, obtaining the connecting rod assembly information of the robot input by the user.

[0113] The electronic device can directly receive the connecting rod assembly information of the robot input by the user, thereby acquiring the connecting rod assembly information of the robot.

[0114] S1012, obtaining the factory information of the robot, extracting the target type information from the factory information, and obtaining the connecting rod assembly information of the robot.

[0115] The electronic device can also extract information that can characterize the properties of the robot's connecting rods and the assembly constraint relationship between the connecting rods from the factory information as the robot's connecting rod assembly information. This step can be achieved through the target type pre-set in the electronic device, that is, after obtaining the factory information, the electronic device can extract the target type information from the factory information to obtain information that can characterize the properties of the robot's connecting rods and the assembly constraint relationship between the connecting rods, thereby obtaining the robot's connecting rod assembly information.

[0116] S1013, obtaining calibration information when the robot performs the target action, and determining the connecting rod assembly information of the robot according to the calibration information and the robot kinematic model.

[0117] The electronic device can also control the robot to perform the target action, obtain calibration information such as the robot's position and kinematic parameters when the robot performs the target action, and can also obtain calibration information such as the robot's position and kinematic parameters when other devices control the robot to perform the target action.

[0118] Among them, the union of the connecting rods dispatched by the robot when executing the target action includes all the connecting rods of the robot, that is, when the robot executes the target action, all the connecting rods of the robot need to be called, so that the connecting rod assembly information of the robot can be obtained according to the calibration information when the robot executes the target action. The target action can be set according to the actual use requirements and the type of robot, and is not specifically limited here.

[0119] Then the electronic device can determine the robot's connecting rod assembly information according to the calibration information and the robot kinematic model. The method of determining the robot's connecting rod assembly information according to the calibration information and the robot kinematic model can adopt the existing connecting rod assembly information determination method, which is not specifically limited here.

[0120] In the solution provided in the embodiment of the present application, the electronic device can obtain the connecting rod assembly information of the robot in a variety of ways, thereby ensuring that the electronic device can automatically generate an assembly model file based on the connecting rod assembly information of the robot, thereby improving the universality of the assembly model file generation method.

[0121] Corresponding to the above-mentioned assembly model file generating method, an embodiment of the present application further provides an assembly model file generating device. The following introduces an assembly model file generating device provided by an embodiment of the present application.

[0122] like Figure 6 As shown, a device for generating an assembly model file includes:

[0123] An information acquisition module 610 is used to acquire the connecting rod assembly information of the robot, wherein the robot includes a plurality of connecting rods;

[0124] A connecting rod model file generating module 620 is used to generate a connecting rod model file corresponding to each connecting rod according to the connecting rod assembly information and the constructed assembly model file;

[0125] An assembly constraint relationship generating module 630 is used to generate assembly constraint relationships between various connecting rods according to the connecting rod assembly information;

[0126] The assembly model file generating module 640 is used to combine and associate the various link model files based on the assembly constraint relationship to obtain the assembly model file of the robot.

[0127] In the solution provided by the embodiment of the present application, the electronic device can obtain the connecting rod assembly information of the robot, wherein the robot includes multiple connecting rods; generate the connecting rod model files corresponding to each connecting rod according to the connecting rod assembly information and the constructed assembly model files; generate the assembly constraint relationship between each connecting rod according to the connecting rod assembly information; combine and associate each connecting rod model file based on the assembly constraint relationship to obtain the assembly model file of the robot. Since the electronic device can generate the connecting rod model file and the assembly constraint relationship between the connecting rods through the connecting rod configuration information of the robot, and combine and associate the connecting rod model files according to the assembly constraint relationship to obtain the assembly model file, the robot assembly model file is automatically generated, which greatly reduces manual intervention, reduces labor costs, and also improves the efficiency and accuracy of generating model files.

[0128] As an implementation method of the embodiment of the present application, the above-mentioned connecting rod assembly information may include: robot type, size information and position index of each connecting rod;

[0129] The connecting rod model file generating module 620 may include:

[0130] A target assembly model file determination unit is used to determine a target assembly model file corresponding to the robot type from a plurality of constructed assembly model files according to a correspondence between the robot type and the assembly model file;

[0131] The connecting rod model file generation unit is used to determine, for each connecting rod in the robot, from the connecting rod model files included in the target assembly model file, a target connecting rod model file whose corresponding connecting rod position index is consistent with the connecting rod position index, add the connecting rod size information to the target connecting rod model file, and obtain the connecting rod model file corresponding to the connecting rod.

[0132] As an implementation method of an embodiment of the present application, the above-mentioned connecting rod assembly information may include: robot type, size information of each connecting rod, position index of each connecting rod, zero offset of the connecting structure between each connecting rod, rotation direction of the connecting structure between each connecting rod, rotation angle range of the connecting structure between each connecting rod, base coordinate axis direction and tool coordinate axis direction;

[0133] The assembly constraint relationship generating module 630 may include:

[0134] A relative position determination unit, used for adjusting the relative positions of the target connecting rods according to the size information and position index of each connecting rod to obtain the relative positions of the connecting rods, wherein the target connecting rod is a connecting rod in the assembly model corresponding to the constructed assembly model file;

[0135] The activity range determination unit is used to determine the initial activity range of each link according to the zero position offset, rotation direction and rotation angle range of the connection structure between each link; determine the target specific motion constraint corresponding to the robot type according to the correspondence between the robot type and the specific motion constraint; according to the target specific motion constraint, add constraint information to the initial activity range to obtain the target activity range of each link;

[0136] The end position determination unit is used to determine the end position of the robot according to the base coordinate axis direction and the tool coordinate axis direction;

[0137] The assembly constraint relationship production unit is used to take the relative positions between the various links, the target activity ranges between the various links and the end position and posture of the robot as the assembly constraint relationships between the various links.

[0138] As an implementation method of the embodiment of the present application, the above-mentioned constructed assembly model file may be: a model file of an assembly constructed with a basic geometric body as a connecting rod;

[0139] As an implementation of an embodiment of the present application, the above-mentioned basic geometric body may include: a cylinder and / or a pipe body.

[0140] As an implementation of an embodiment of the present application, the above-mentioned information acquisition module 610 can be specifically used to obtain the connecting rod assembly information of the robot input by the user; or, obtain the factory information of the robot, extract the target type information from the factory information, and obtain the connecting rod assembly information of the robot, wherein the target type information is used to characterize the properties of the connecting rod of the robot and the assembly constraint relationship between the connecting rods; or, obtain the calibration information of the robot when performing the target action, and determine the connecting rod assembly information of the robot according to the calibration information and the robot kinematic model, wherein the union of the connecting rods for the robot to perform the target action scheduling includes all the connecting rods of the robot, and the calibration information includes: robot posture and kinematic parameters.

[0141] The present application also provides an electronic device, such as Figure 7 As shown, including:

[0142] Memory 701, used for storing computer programs;

[0143] The processor 702 is used to implement the assembly model file generation method described in any of the above embodiments when executing the program stored in the memory 701.

[0144] In the solution provided by the embodiment of the present application, the electronic device can obtain the connecting rod assembly information of the robot, wherein the robot includes multiple connecting rods; generate the connecting rod model files corresponding to each connecting rod according to the connecting rod assembly information and the constructed assembly model files; generate the assembly constraint relationship between each connecting rod according to the connecting rod assembly information; combine and associate each connecting rod model file based on the assembly constraint relationship to obtain the assembly model file of the robot. Since the electronic device can generate the connecting rod model file and the assembly constraint relationship between the connecting rods through the connecting rod configuration information of the robot, and combine and associate the connecting rod model files according to the assembly constraint relationship to obtain the assembly model file, the robot assembly model file is automatically generated, which greatly reduces manual intervention, reduces labor costs, and also improves the efficiency and accuracy of generating model files.

[0145] Furthermore, the electronic device may further include a communication bus and / or a communication interface, and the processor 702, the communication interface, and the memory 701 communicate with each other via the communication bus.

[0146] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0147] The communication interface is used for communication between the above electronic device and other devices.

[0148] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0149] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0150] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of the method for generating an assembly model file described in any of the above embodiments are implemented.

[0151] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the method for generating an assembly model file described in any one of the above embodiments.

[0152] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a solid-state hard disk (SSD), etc.

[0153] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0154] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, electronic device, computer-readable storage medium, and computer program product embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0155] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims

1. A method for generating an assembly model file, It is characterized in that The method comprises: Acquiring connecting rod assembly information of a robot, wherein the robot includes a plurality of connecting rods; Generate a connecting rod model file corresponding to each connecting rod according to the connecting rod assembly information and the constructed assembly model file; Generating assembly constraint relationships between the connecting rods according to the connecting rod assembly information; Based on the assembly constraint relationship, the various connecting rod model files are combined and associated to obtain the assembly model file of the robot.

2. The method according to claim 1, It is characterized in that The connecting rod assembly information includes: robot type, size information and position index of each connecting rod; The step of generating a connecting rod model file corresponding to each connecting rod according to the connecting rod assembly information and the constructed assembly model file comprises: According to the correspondence between the robot type and the assembly model file, determining a target assembly model file corresponding to the robot type from the plurality of constructed assembly model files; For each connecting rod in the robot, determine the target connecting rod model file whose position index is consistent with the position index of the connecting rod from the connecting rod model files included in the target assembly model file, add the size information of the connecting rod to the target connecting rod model file, and obtain the connecting rod model file corresponding to the connecting rod.

3. The method according to claim 1, It is characterized in that The connecting rod assembly information includes: robot type, size information of each connecting rod, position index of each connecting rod, zero offset of the connecting structure between each connecting rod, rotation direction of the connecting structure between each connecting rod, rotation angle range of the connecting structure between each connecting rod, base coordinate axis direction and tool coordinate axis direction; Generating assembly constraint relationships between the connecting rods according to the connecting rod assembly information includes: Adjusting the relative positions of the target connecting rods according to the size information and position index of each connecting rod to obtain the relative positions of the connecting rods, wherein the target connecting rod is a connecting rod in the assembly model corresponding to the constructed assembly model file; Determine the initial range of motion of each link according to the zero offset, rotation direction and rotation angle range of the connection structure between each link; determine the target specific motion constraint corresponding to the robot type according to the correspondence between the robot type and the specific motion constraint; add constraint information to the initial range of motion according to the target specific motion constraint to obtain the target range of motion of each link; Determining the end position of the robot according to the base coordinate axis direction and the tool coordinate axis direction; The relative positions between the connecting rods, the target range of motion of the connecting rods and the end position of the robot are used as assembly constraint relationships between the connecting rods.

4. The method according to any one of claims 1 to 3, It is characterized in that The constructed assembly model file is a model file of an assembly constructed with a basic geometric body as a connecting rod.

5. The method according to claim 4, It is characterized in that The basic geometric bodies include: cylinders and / or pipes.

6. The method according to any one of claims 1 to 3, It is characterized in that The obtaining of the connecting rod assembly information of the robot includes: Obtain the robot's connecting rod assembly information input by the user; or, Acquire factory information of the robot, extract target type information from the factory information, and obtain connecting rod assembly information of the robot, wherein the target type information is information used to characterize properties of the connecting rods of the robot and assembly constraint relationships between the connecting rods; or, The calibration information of the robot when performing the target action is obtained, and the connecting rod assembly information of the robot is determined according to the calibration information and the robot kinematic model, wherein the union of the connecting rods for the robot to perform the target action scheduling includes all the connecting rods of the robot, and the calibration information includes: robot posture and kinematic parameters.

7. A device for generating an assembly model file, It is characterized in that The device comprises: An information acquisition module, used to acquire connecting rod assembly information of a robot, wherein the robot includes a plurality of connecting rods; A connecting rod model file generating module, used for generating a connecting rod model file corresponding to each connecting rod according to the connecting rod assembly information and the constructed assembly model file; An assembly constraint relationship generating module, used for generating assembly constraint relationships between various connecting rods according to the connecting rod assembly information; The assembly model file generation module is used to combine and associate the various connecting rod model files based on the assembly constraint relationship to obtain the assembly model file of the robot.

8. The device according to claim 7, It is characterized in that The connecting rod assembly information includes: robot type, size information and position index of each connecting rod; the connecting rod model file generation module includes: a target assembly model file determination unit, which is used to determine the target assembly model file corresponding to the robot type from multiple constructed assembly model files according to the correspondence between the robot type and the assembly model file; a connecting rod model file generation unit, which is used to determine, for each connecting rod in the robot, from the connecting rod model files included in the target assembly model file, a target connecting rod model file whose position index of the corresponding connecting rod is consistent with the position index of the connecting rod, and add the size information of the connecting rod to the target connecting rod model file to obtain the connecting rod model file corresponding to the connecting rod; and / or, The connecting rod assembly information includes: robot type, size information of each connecting rod, position index of each connecting rod, zero offset of the connecting structure between each connecting rod, rotation direction of the connecting structure between each connecting rod, rotation angle range of the connecting structure between each connecting rod, base coordinate axis direction and tool coordinate axis direction; the assembly constraint relationship generation module includes: a relative position determination unit, which is used to adjust the relative position between each target connecting rod according to the size information and position index of each connecting rod to obtain the relative position between each connecting rod, wherein the target connecting rod is the connecting rod in the assembly model corresponding to the constructed assembly model file; an activity range determination unit, which is used to adjust the relative position between each connecting rod according to the size information and position index of each connecting rod to obtain the relative position between each connecting rod. The zero position offset, rotation direction and rotation angle range of the connecting structure between the connecting rods are used to determine the initial range of motion of each connecting rod; according to the correspondence between the robot type and the specific motion constraint, the target specific motion constraint corresponding to the robot type is determined; according to the target specific motion constraint, constraint information is added to the initial range of motion to obtain the target range of motion of each connecting rod; the terminal posture determination unit is used to determine the terminal posture of the robot according to the direction of the base coordinate axis and the direction of the tool coordinate axis; the assembly constraint relationship production unit is used to use the relative position between the connecting rods, the target range of motion of the connecting rods and the terminal posture of the robot as the assembly constraint relationship between the connecting rods; and / or, The constructed assembly model file is: a model file of an assembly constructed with a basic geometric body as a connecting rod; and / or, The basic geometric bodies include: cylinders and / or pipes; and / or, The information acquisition module is specifically used to obtain the connecting rod assembly information of the robot input by the user; or, to obtain the factory information of the robot, extract the target type information from the factory information, and obtain the connecting rod assembly information of the robot, wherein the target type information is used to characterize the properties of the connecting rods of the robot and the assembly constraint relationship between the connecting rods; or, to obtain the calibration information of the robot when performing the target action, and determine the connecting rod assembly information of the robot according to the calibration information and the robot kinematic model, wherein the union of the connecting rods for the robot to perform the target action scheduling includes all the connecting rods of the robot, and the calibration information includes: robot posture and kinematic parameters.

9. An electronic device, It is characterized in that include: Memory, used to store computer programs; A processor, for implementing any of the methods described in claims 1-6 when executing a program stored in a memory.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.