A method and device for optimizing structural parameters of an articulated arm coordinate measuring machine
By obtaining the initial structural parameters and joint angle values, creating a preset motion model and optimization algorithm, it solves the problem of local optimal solutions in the structural parameter optimization of the articulated arm coordinate measuring machine, and achieves high-precision structural parameter optimization and measurement accuracy improvement. .
Patent Information
- Application Number
- CN202111507480.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-10
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-12-10
AI Technical Summary
During the use of the articulated arm coordinate measuring machine, structural parameter errors lead to a reduction in measurement accuracy. It is difficult to accurately optimize the structural parameters with existing technology, and it is easy to fall into a local optimal solution.
By obtaining the initial structural parameters, determining candidate parameters, obtaining joint angle values, creating a preset motion model and optimization algorithm, the optimization algorithm is used to find optimal structural parameters globally and improve measurement accuracy.
It achieves fast and high-precision structural parameter optimization, avoids local optimal solutions, and improves the measurement accuracy of the articulated arm coordinate measuring machine.
Smart Images

Figure CN114184150B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of precision measurement technology, and in particular to a structural parameter optimization method, device, electronic equipment and computer-readable storage medium for an articulated arm coordinate measuring machine. Background Art
[0002] The coordinate measuring machine is a precision measuring device that can convert the measurement of various geometric elements into coordinate measurement. It has the characteristics of strong versatility and high measurement accuracy. The articulated arm coordinate measuring machine is a new technology-intensive, economical and applicable three-dimensional coordinate measuring equipment. It adopts an open-chain full-rotation pair structure and completely abandons the platform and guide rails of the traditional three-dimensional coordinate measuring machine, which greatly reduces the weight and volume of the product and greatly reduces the product price. It is currently widely used in mold design, product quality inspection, equipment repair and maintenance and other fields. After a period of use, the structural parameters of the articulated arm coordinate measuring machine will change, and the structural parameter errors of each level of joints will be gradually amplified, thereby affecting the measurement accuracy of the coordinate measuring machine.
[0003] Kinematic parameter identification is an effective method to eliminate structural parameter errors of articulated arm coordinate measuring machines. However, due to the huge differences in structural forms, the parameter identification method of traditional orthogonal coordinate measuring machines cannot be directly applied to articulated arm coordinate measuring machines. In the prior art, structural parameter identification methods in the field of robotics are often used to optimize the structural parameters of articulated arm coordinate measuring machines.
[0004] However, structural parameter optimization methods in the field of robotics generally require the use of expensive precision measuring instruments such as laser trackers and laser interferometers, and the operation steps are cumbersome and the application cost is very high. In addition, the data collected by the coordinate measuring machine often have a high degree of similarity, and it is easy to fall into the local optimal solution when optimizing the structural parameters. Therefore, the obtained structural parameters are of low accuracy and cannot be accurately identified, resulting in low measurement accuracy of the articulated arm coordinate measuring machine. Summary of the invention
[0005] In view of this, it is necessary to provide a structural parameter optimization method, device, electronic device and computer-readable storage medium for an articulated arm coordinate measuring machine to solve the problem in the prior art that the structural parameter optimization process is prone to falling into a local optimal solution, resulting in inaccurate parameter optimization.
[0006] In order to solve the above problems, the present invention provides a method for optimizing structural parameters of an articulated arm coordinate measuring machine, comprising:
[0007] Acquiring initial structural parameters of the articulated arm coordinate measuring machine, and determining candidate structural parameters according to the initial structural parameters;
[0008] Obtain the joint angle value of the articulated arm coordinate measuring machine;
[0009] Create a preset motion model, and obtain target structural parameters according to the preset motion model, candidate structural parameters and joint rotation values;
[0010] An optimization algorithm is created, and the target structural parameters are optimized using the optimization algorithm to obtain the optimized structural parameters of the articulated arm coordinate measuring machine.
[0011] Further, determining candidate structural parameters according to the initial structural parameters includes:
[0012] According to the initial structural parameters, a constraint range is preset, and a plurality of candidate structural parameters are generated within the constraint range using a random function.
[0013] Furthermore, obtaining the joint angle value of the articulated arm coordinate measuring machine includes:
[0014] A plurality of groups of joint rotation angle values corresponding to the articulated arm coordinate measuring machine when the articulated arm coordinate measuring machine is shaken in different postures are obtained.
[0015] Furthermore, the created preset motion model is a Modified-DH motion model.
[0016] Furthermore, an optimization algorithm is created, and the target structural parameters are optimized using the optimization algorithm to obtain the optimized structural parameters of the articulated arm coordinate measuring machine, including:
[0017] According to the preset motion model, the candidate structural parameters and the joint angle value, the coordinate data of the probe end of the articulated arm measuring machine corresponding to the joint angle value is obtained;
[0018] Calculating characteristic values of the probe end coordinate data according to the probe end coordinate data;
[0019] Creating an objective function with the target structure parameter as an independent variable and the characteristic value as a dependent variable;
[0020] The objective function is solved by using a first preset algorithm to obtain an optimal eigenvalue whose eigenvalue meets a first preset condition, and the target structural parameter corresponding to the optimal eigenvalue is the optimized structural parameter.
[0021] Further, the target structural parameters are optimized using a first preset algorithm to obtain optimized structural parameters whose characteristic values meet the first preset conditions, including:
[0022] When the characteristic value obtained after optimizing the target structural parameter by using the first preset algorithm does not meet the first preset condition, the target structural parameter is recorded as the structural parameter to be optimized;
[0023] Determining whether the structural parameters to be optimized meet the second preset condition;
[0024] When the structural parameters to be optimized meet the second preset conditions, the second preset algorithm is used to obtain new target structural parameters, and then the first preset algorithm is used to optimize the new target structural parameters to obtain optimized structural parameters.
[0025] Further, according to the probe end coordinate data, the characteristic value of the probe end coordinate data is calculated, including:
[0026] According to the probe end coordinate data, using the Laida criterion, obtaining the deviation of the probe end coordinate data;
[0027] According to the deviation, the characteristic value of the coordinate data of the end of the probe is obtained.
[0028] The present invention also provides a structural parameter optimization device for an articulated arm coordinate measuring machine, comprising:
[0029] Parameter acquisition module: used to acquire initial structural parameters of the articulated arm coordinate measuring machine, and determine candidate structural parameters according to the initial structural parameters;
[0030] Angle data acquisition module: used to obtain the joint angle value of the articulated arm coordinate measuring machine;
[0031] Model creation module: used to create a preset motion model and obtain target structural parameters based on the preset motion model, candidate structural parameters and joint rotation angle values;
[0032] Parameter optimization module: used to create an optimization algorithm, and use the optimization algorithm to optimize the target structural parameters to obtain the optimized structural parameters of the articulated arm coordinate measuring machine.
[0033] The present invention also provides an electronic device, including a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the structural parameter optimization method of the articulated arm coordinate measuring machine as described in any of the above technical solutions is implemented.
[0034] The present invention also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for optimizing the structural parameters of the articulated arm coordinate measuring machine as described in any of the above technical solutions is implemented.
[0035] Compared with the prior art, the beneficial effects of the present invention include: first, obtaining the initial structural parameters of the articulated arm coordinate measuring machine, determining the candidate structural parameters, and obtaining the joint angle value; second, creating a preset motion model, and obtaining the target structural parameters according to the preset motion model, the candidate structural parameters, and the joint angle value; finally, creating an optimization algorithm, and using the optimization algorithm to optimize the target structural parameters to obtain the optimized structural parameters of the articulated arm coordinate measuring machine. The method of the present invention has fast calculation speed and high calculation accuracy, can correct the initial structural parameters of the articulated arm measuring machine, find the optimal solution of the structural parameters in a global range, solve the actual structural parameters of the articulated arm measuring machine, and improve the measurement accuracy of the articulated arm measuring machine. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 A schematic diagram of a scenario of an embodiment of an application system of a structural parameter optimization method for an articulated arm coordinate measuring machine provided by the present invention;
[0037] Figure 2 A schematic flow chart of an embodiment of a method for optimizing structural parameters of an articulated arm coordinate measuring machine provided by the present invention;
[0038] Figure 3 A schematic diagram of a coordinate system established for an articulated arm coordinate measuring machine according to an embodiment of a method for optimizing structural parameters of an articulated arm coordinate measuring machine provided by the present invention;
[0039] FIG. 4( a ) is a flow chart of steps S401 to S412 in a flow chart of an embodiment of a method for optimizing structural parameters of an articulated arm coordinate measuring machine provided by the present invention;
[0040] FIG4( b ) is a flow chart of steps S413 to S426 in the process of an embodiment of a method for optimizing structural parameters of an articulated arm coordinate measuring machine provided by the present invention;
[0041] Figure 5 A schematic structural diagram of an embodiment of a structural parameter optimization device for an articulated arm type coordinate measuring machine provided by the present invention;
[0042] Figure 6 It is a structural block diagram of an embodiment of an electronic device provided by the present invention. DETAILED DESCRIPTION
[0043] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.
[0044] The present invention provides a method, device, electronic device and computer-readable storage medium for optimizing structural parameters of an articulated arm coordinate measuring machine, which are described in detail below.
[0045] The embodiment of the present invention provides an application system of a method for optimizing structural parameters of an articulated arm coordinate measuring machine. Figure 1 The schematic diagram of a scenario of an embodiment of an application system of a method for optimizing the structural parameters of an articulated arm coordinate measuring machine provided by the present invention, wherein the system may include a server 101, wherein the server 101 is integrated with a device for optimizing the structural parameters of an articulated arm coordinate measuring machine, such as Figure 1 Servers in .
[0046] In the embodiment of the present invention, the server 101 is mainly used for:
[0047] Acquiring initial structural parameters of the articulated arm coordinate measuring machine, and determining candidate structural parameters according to the initial structural parameters;
[0048] Obtain the joint angle value of the articulated arm coordinate measuring machine;
[0049] Create a preset motion model, and obtain target structural parameters according to the preset motion model, candidate structural parameters and joint rotation values;
[0050] An optimization algorithm is created, and the target structural parameters are optimized using the optimization algorithm to obtain the optimized structural parameters of the articulated arm coordinate measuring machine.
[0051] In the embodiment of the present invention, the server 101 may be an independent server, or a server network or server cluster composed of servers. For example, the server 101 described in the embodiment of the present invention includes but is not limited to a computer, a network host, a single network server, a plurality of network server sets or a cloud server composed of a plurality of servers. The cloud server is composed of a large number of computers or network servers based on cloud computing.
[0052] It is to be understood that the terminal 102 used in the embodiment of the present invention may be a device including both receiving and transmitting hardware, that is, a device having receiving and transmitting hardware capable of performing two-way communication on a two-way communication link. Such a device may include: a cellular or other communication device having a single-line display or a multi-line display or a cellular or other communication device without a multi-line display. The specific terminal 102 may be a desktop computer, a portable computer, a network server, a PDA (Personal Digital Assistant), a mobile phone, a tablet computer, a wireless terminal device, a communication device, an embedded device, etc. The present embodiment does not limit the type of the terminal 102.
[0053] Those skilled in the art will understand that Figure 1 The application environment shown in the figure is only one application scenario of the solution of the present invention and does not constitute a limitation on the application scenario of the solution of the present invention. Other application environments may also include Figure 1 More or fewer terminals as shown in Figure 1 Only two terminals are shown in the figure. It can be understood that the application system of the structural parameter optimization method of the articulated arm coordinate measuring machine can also include one or more other terminals, which are not specifically limited here.
[0054] In addition, if Figure 1 As shown, the application system of the structural parameter optimization method of the articulated arm coordinate measuring machine may further include a first memory 103 for storing data, such as joint angle values, target structural parameters, and the like.
[0055] It should be noted that Figure 1 The scenario diagram of the application system of the structural parameter optimization device of the articulated arm coordinate measuring machine shown is only an example. The application system and scenario of the structural parameter optimization method of the articulated arm coordinate measuring machine described in the embodiment of the present invention are for more clearly illustrating the technical solution of the embodiment of the present invention, and do not constitute a limitation on the technical solution provided by the embodiment of the present invention. Ordinary technicians in this field can know that with the evolution of the application system of the structural parameter optimization method of the articulated arm coordinate measuring machine and the emergence of new business scenarios, the technical solution provided by the embodiment of the present invention is also applicable to similar technical problems.
[0056] The embodiment of the present invention provides a method for optimizing the structural parameters of an articulated arm coordinate measuring machine, and a flow chart thereof is shown as follows: Figure 2 As shown, the structural parameter optimization method of the articulated arm coordinate measuring machine includes:
[0057] Step S201, obtaining initial structural parameters of the articulated arm coordinate measuring machine, and determining candidate structural parameters according to the initial structural parameters;
[0058] Step S202, obtaining the joint angle value of the articulated arm coordinate measuring machine;
[0059] Step S203: creating a preset motion model, and obtaining target structural parameters according to the preset motion model, candidate structural parameters and joint rotation angle values;
[0060] Step S204: creating an optimization algorithm, and optimizing the target structural parameters using the optimization algorithm to obtain optimized structural parameters of the articulated arm coordinate measuring machine.
[0061] Compared with the prior art, the structural parameter optimization method of the articulated arm coordinate measuring machine provided in this embodiment first obtains the initial structural parameters of the articulated arm coordinate measuring machine, determines the candidate structural parameters, and obtains the joint angle value; secondly, creates a preset motion model, and obtains the target structural parameters according to the preset motion model, the candidate structural parameters, and the joint angle value; finally, creates an optimization algorithm, and uses the optimization algorithm to optimize the target structural parameters to obtain the optimized structural parameters of the articulated arm coordinate measuring machine. The method of the present invention has fast calculation speed and high calculation accuracy, can correct the initial structural parameters of the articulated arm measuring machine, find the optimal solution of the structural parameters in a global range, solve the actual structural parameters of the articulated arm measuring machine, and improve the measurement accuracy of the articulated arm measuring machine.
[0062] As a specific embodiment, the articulated arm coordinate measuring machine is a 6-DOF articulated arm coordinate measuring machine; the initial structural parameters include rod length, joint length, joint torsion angle, and probe length.
[0063] As a preferred embodiment, in step S201, determining candidate structural parameters according to the initial structural parameters includes:
[0064] According to the initial structural parameters, a constraint range is preset, and a plurality of candidate structural parameters are generated within the constraint range using a random function.
[0065] As a preferred embodiment, in step S202, obtaining the joint angle value of the articulated arm coordinate measuring machine includes:
[0066] A plurality of groups of joint rotation angle values corresponding to the articulated arm coordinate measuring machine when the articulated arm coordinate measuring machine is shaken in different postures are obtained.
[0067] As a specific embodiment, the specific process of obtaining the joint angle value of the articulated arm coordinate measuring machine is as follows:
[0068] Fixing the conical hole on the operating platform, and then placing a small ball at the end of the probe of the articulated arm type coordinate measuring machine in the conical hole, so that the end of the probe matches the conical hole;
[0069] The articulated arm coordinate measuring machine is shaken to a plurality of different postures to obtain a plurality of sets of joint rotation angle values.
[0070] As a preferred embodiment, in step S203, the preset motion model created is a Modified-DH motion model.
[0071] As a preferred embodiment, in step S203, an optimization algorithm is created, and the target structural parameters are optimized using the optimization algorithm to obtain the optimized structural parameters of the articulated arm coordinate measuring machine, including:
[0072] According to the preset motion model, the candidate structural parameters and the joint angle value, the coordinate data of the probe end of the articulated arm measuring machine corresponding to the joint angle value is obtained;
[0073] Calculating characteristic values of the probe end coordinate data according to the probe end coordinate data;
[0074] Creating an objective function with the target structure parameter as an independent variable and the characteristic value as a dependent variable;
[0075] The objective function is solved by using a first preset algorithm to obtain an optimal eigenvalue whose eigenvalue meets a first preset condition, and the target structural parameter corresponding to the optimal eigenvalue is the optimized structural parameter.
[0076] As a preferred embodiment, the target structural parameters are optimized using a first preset algorithm to obtain optimized structural parameters whose characteristic values meet the first preset conditions, including:
[0077] When the characteristic value obtained after optimizing the target structural parameter by using the first preset algorithm does not meet the first preset condition, the target structural parameter is recorded as the structural parameter to be optimized;
[0078] Determining whether the structural parameters to be optimized meet the second preset condition;
[0079] When the structural parameters to be optimized meet the second preset condition, a second preset algorithm is used to obtain new target structural parameters, and then the first preset algorithm is used to optimize the new target structural parameters to obtain optimized structural parameters;
[0080] When the structural parameters to be optimized do not meet the second preset condition, determine whether the number of iterative operations of the first preset algorithm has reached the preset maximum number of iterations; when the maximum number of iterations is reached, end the operation; when it is not reached, continue to use the first preset algorithm to optimize the parameters.
[0081] As a preferred embodiment, calculating the characteristic value of the probe end coordinate data according to the probe end coordinate data includes:
[0082] According to the probe end coordinate data, using the Laida criterion, obtaining the deviation of the probe end coordinate data;
[0083] According to the deviation, the characteristic value of the coordinate data of the end of the probe is obtained.
[0084] Combine the following Figure 3 4(a) and 4(b) , the above scheme is described in detail through specific embodiments.
[0085] As a specific embodiment, a 6-DOF articulated arm coordinate measuring machine is established as follows: Figure 3 The coordinate system shown in FIG. 1 can be obtained according to the Modified-DH motion model: For the structural parameters (a i ,d i ,α i ,l),i=1,2,...,6, after a set of joint rotation angles (θ1,θ2,θ3,θ4,θ5,θ6) is given, the coordinates of the probe end of the articulated arm coordinate measuring machine are:
[0086]
[0087] Where a represents the rod length, d represents the joint length, α represents the joint torsion angle, and l represents the probe length.
[0088] For any set of candidate structural parameters X = (a i ,d i ,α i ,l),i=1,2,...,6, the structural parameters and N groups of joint angles k θ m (k=1,2,...,N;m=1,2,...,6) is put into the calculation formula of the probe end coordinates, and the coordinates of the N groups of probe end can be obtained ( k x, k y, k z),k=1,2,...,N.
[0089] The candidate structural parameters are calculated as X = (a i ,d i ,α i ,l),i=1,2,...,6, the average value of the N sets of probe coordinates (x,y,z) can be obtained:
[0090]
[0091] According to the average value (x, y, z) of the probe coordinates, the accumulated deviation of each set of probe end coordinates is calculated respectively. The accumulated deviation of each set of coordinates is:
[0092]
[0093] According to the deviation accumulation of each group of probe end coordinates, the cumulative average value of N groups of probe coordinate deviations is obtained as follows:
[0094]
[0095] According to the cumulative average deviation of N groups of probe coordinates, the cumulative variance of the deviation can be obtained as:
[0096]
[0097] Applying the "3σ" principle (Laida's law), the deviation of the probe end coordinate data is obtained as follows:
[0098]
[0099] According to the deviation, the characteristic value of the probe end coordinate data is obtained:
[0100]
[0101] Where, realim is a very small positive number, ensuring that the denominator is not 0 or infinitely close to 0; the optimization of the structural parameters is to find the structural parameters X corresponding to the deviation F(X) approaching 0 or the eigenvalue M(X) approaching infinity. best (i),i=1,2,...,6.
[0102] From the above analysis, it can be seen that for each set of structural parameters, there is a corresponding characteristic value of the probe end coordinate data. The larger the characteristic value, the smaller the deviation is, and the closer the structural parameter is to the actual value. Therefore, the optimization of the structural parameters can be converted into: solving the optimal solution of the objective function with the target structural parameters as the independent variables and the characteristic values as the dependent variables. When the characteristic values meet the preset conditions, the target structural parameters corresponding to the characteristic values are the optimal structural parameters.
[0103] As a specific embodiment, the optimal structural parameter X to be found is preset. best (i) The eigenvalue must be no less than the first threshold value τ, that is, it must satisfy: M(X best (i))≥τ, i=1,2,...,6, FIG4(a) and FIG4(b) are flowcharts for optimizing the target structural parameters, the second preset algorithm used is the simulated annealing algorithm, the first maximum number of iterations is preset to be I, the second maximum number of iterations is preset to be J, the number of recursive verifications is preset to be K, the recursive difference threshold is preset to be ε, the first feature threshold is preset to be τ, the second feature threshold is preset to be δ, the termination temperature is preset to be T1, the cooling rate is preset to be μ, and rand represents a random number; the steps for solving the optimal structural parameters are as follows:
[0104] Step S401: Set the first iteration number k=1, use the candidate structure parameters as the initial values of the target structure parameters, and input Q groups of target structure parameters s X(k-1)=( s a i , s d i , s α i , sl),s=1,2,...,Q,i=1,2,..,6; binary encode each set of target structure parameters;
[0105] Step S402: Input the obtained N sets of joint angle values k θ m (k=1,2,...,N;m=1,2,...,6), calculate the eigenvalues corresponding to each set of target structural parameters according to N sets of joint rotation values s M(X(k-1)),s=1,2,...,Q,s=1,2,...,Q;
[0106] Step S403: According to each group of target structure parameters s The eigenvalue corresponding to X(k-1) s M(X(k-1)), using the roulette method to select the target structure parameters;
[0107] Step S404: performing cross operation on the target structure parameters after the selection operation;
[0108] Step S405: Perform mutation operation on the target structure parameters after the crossover operation to obtain Q groups of new target structure parameters. s X(k)=( s a i , s d i , s α i , s l), s=1,2,...,Q,i=1,2,...,6;
[0109] Step S406: Calculate the eigenvalues corresponding to the Q groups of new target structure parameters s M(X(k)), s=1,2,...,Q;
[0110] Step S407: Determination s M(X(k)) and s Does M(X(k-1)) satisfy s M(X(k))≥ s M(X(k-1)), s=1,2,...,Q; when s M(X(k))≥ s M(X(k-1)), go to step S408; when s M(X(k-1))< s When M(X(k-1)), go to step S409;
[0111] Step S408: Set the new structural parameters s X(k) is set as the target structure parameter of the current iterations X(k), s=1, 2, ..., Q, go to step S410;
[0112] Step S409: Structural parameters s X(k-1) is set as the target structure parameter of the current iteration s X(k),s=1,2,...,Q;
[0113] Step S410: Compare the eigenvalues corresponding to the Q current iteration target parameters s M(X(k)), s = 1, 2, ..., Q, and the structural parameter corresponding to the maximum value is recorded as the optimal structural parameter X best (k);
[0114] Step S411: Determine the optimal parameter X best (k) Whether the first preset condition M(X) is met best (k))≥τ; if satisfied, proceed to step S412; if not satisfied, proceed to step S413;
[0115] Step S412: Output current X best (k) is the optimal structural parameter, and the calculation ends;
[0116] Step S413: Determine whether the first iteration number k is greater than or equal to the recursive verification number K; if not, proceed to step S414; if satisfied, proceed to step S417;
[0117] Step S414: add 1 to the first iteration number, k=k+1;
[0118] Step S415: determine whether the first iteration number k is greater than or equal to the first maximum iteration number I; when k≥I, end the operation; when k<I, return to step S403;
[0119] Step S416: Determine the optimal structural parameter X best (k) Whether the following conditions (i.e., the second pre-condition) are met simultaneously:
[0120]
[0121] If not, go to step S417 (enter the second preset algorithm); if satisfied, return to step S413;
[0122] Step S417: Initialize the temperature value T to T=T o ;
[0123] Step S418: setting the second iteration number j=1;
[0124] Step S419: Based on X best(k) Generate new target structure parameters
[0125] Step S420: Determine X best (k) and Whether it meets If it meets, go to Step S421; if it does not meet, go to Step S422;
[0126] Step S421: Set the new target structure parameters As the optimal structure parameter X best (k), and return to Step S419;
[0127] Step S422: Determine X best (k) and Whether it meets the condition: If it meets, return to Step S421; if it does not meet, go to Step S423;
[0128] Step S423: Determine whether the second iteration number j meets j≥the second maximum iteration number J; if j < J, go to Step S424; if j≥J, go to Step S425;
[0129] Step S424: Increment the second iteration number by 1, j = j + 1;
[0130] Step S425: Determine whether the temperature value T is less than or equal to the termination temperature T1; when T≤T1, return to Step S411; when T > T1, go to Step S426;
[0131] Step S426: Cool down the temperature value T, make the temperature value T = μT o ; return to Step S418.
[0132] The embodiment of the present invention provides a structure parameter optimization device for an articulated arm coordinate measuring machine, and its structural block diagram is as Figure 5 shown. The structure parameter optimization device 500 of the articulated arm coordinate measuring machine includes:
[0133] Parameter acquisition module 501: used to acquire the initial structure parameters of the articulated arm coordinate measuring machine, and determine candidate structure parameters according to the initial structure parameters;
[0134] Rotation angle data acquisition module 502: used to acquire the joint rotation angle values of the articulated arm coordinate measuring machine;
[0135] Model creation module 503: used to create a preset motion model, and obtain target structure parameters according to the preset motion model, candidate structure parameters, and joint rotation angle values;
[0136] Parameter optimization module 504: used to create an optimization algorithm, and use the optimization algorithm to optimize the target structural parameters to obtain the optimized structural parameters of the articulated arm coordinate measuring machine.
[0137] like Figure 6 As shown, the present invention also provides an electronic device, which can be a computing device such as a mobile terminal, a desktop computer, a notebook, a palm computer, and a server. The electronic device includes a processor 601, a second memory 602, and a display 603.
[0138] In some embodiments, the second memory 602 may be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. In other embodiments, the second memory 602 may also be an external storage device of the computer device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the computer device. Furthermore, the second memory 602 may also include both an internal storage unit of the computer device and an external storage device. The second memory 602 is used to store application software and various types of data installed on the computer device, such as program codes for installing the computer device. The second memory 602 may also be used to temporarily store data that has been output or is to be output. In one embodiment, the second memory 602 stores a program 604 of a method for optimizing the structural parameters of an articulated arm coordinate measuring machine, and the program 604 of the method for optimizing the structural parameters of the articulated arm coordinate measuring machine may be executed by the processor 601, thereby realizing the method for optimizing the structural parameters of the articulated arm coordinate measuring machine of each embodiment of the present invention.
[0139] In some embodiments, the processor 601 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run program codes or process data stored in the second memory 602, such as executing a structural parameter optimization program of an articulated arm coordinate measuring machine.
[0140] In some embodiments, the display 603 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 603 is used to display information on the computer device and to display a visual user interface. The components 601-603 of the computer device communicate with each other through a system bus.
[0141] This embodiment also provides a computer-readable storage medium, on which a program of a method for optimizing the structural parameters of an articulated arm coordinate measuring machine is stored. When a processor executes the program, the method for optimizing the structural parameters of an articulated arm coordinate measuring machine as described above is implemented.
[0142] The computer-readable storage medium and computing device provided according to the above-mentioned embodiments of the present invention can be implemented with reference to the specific description of the structural parameter optimization method of the articulated arm coordinate measuring machine as described above according to the present invention, and have similar beneficial effects as the structural parameter optimization method of the articulated arm coordinate measuring machine as described above, which will not be repeated here.
[0143] The present invention discloses a method, device, electronic device and computer-readable storage medium for optimizing the structural parameters of an articulated arm coordinate measuring machine. First, the initial structural parameters of the articulated arm coordinate measuring machine are obtained, candidate structural parameters are determined, and joint rotation angle values are obtained; secondly, a preset motion model is created, and target structural parameters are obtained according to the preset motion model, candidate structural parameters and joint rotation angle values; finally, an optimization algorithm is created, and the target structural parameters are optimized using the optimization algorithm to obtain the optimized structural parameters of the articulated arm coordinate measuring machine.
[0144] The method of the present invention has fast calculation speed and high calculation accuracy, can correct the initial structural parameters of the articulated arm measuring machine, find the optimal solution of the structural parameters in a global range, solve the actual structural parameters of the articulated arm measuring machine, and improve the measurement accuracy of the articulated arm measuring machine.
[0145] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.
Claims
1. A method for optimizing structural parameters of an articulated arm coordinate measuring machine, characterized in that: include: Acquiring initial structural parameters of the articulated arm coordinate measuring machine, and determining candidate structural parameters according to the initial structural parameters; Obtain the joint angle value of the articulated arm coordinate measuring machine; Create a preset motion model, and obtain target structural parameters according to the preset motion model, candidate structural parameters and joint rotation values; Creating an optimization algorithm, and optimizing the target structural parameters using the optimization algorithm to obtain optimized structural parameters of the articulated arm coordinate measuring machine; The step of obtaining the optimized structural parameters of the articulated arm coordinate measuring machine includes: Step S401: Setting the first iteration number , take the candidate structure parameters as the initial values of the target structure parameters, and input Q groups of target structure parameters ; Binary encoding of each set of target structure parameters; Step S402: Input the obtained Group joint rotation value ,according to The joint angle values are calculated to obtain the eigenvalues corresponding to each set of target structural parameters. , ; Step S403: According to each group of target structure parameters The corresponding eigenvalue , the target structural parameters are selected using the roulette method; Step S404: performing cross operation on the target structure parameters after the selection operation; Step S405: Perform mutation operation on the target structure parameters after the crossover operation to obtain Q groups of new target structure parameters. ; Step S406: Calculate the eigenvalues corresponding to the Q groups of new target structure parameters , ; Step S407: Determination and Is it satisfied? , ;when ≥ When , go to step S408; when < When , go to step S409; Step S408: Set the new structural parameters Set as the target structure parameter for the current iteration , , proceed to step S410; Step S409: Structural parameters Set as the target structure parameter for the current iteration , ; Step S410: Compare the eigenvalues corresponding to the Q current iteration target parameters , , the structural parameter corresponding to the maximum value is recorded as the optimal structural parameter ; Step S411: Determine the optimal parameters Whether the first precondition is met ; If satisfied, proceed to step S412; if not satisfied, proceed to step S413; Step S412: Output current is the optimal structural parameter, and the calculation ends; Step S413: Determine whether the first iteration number k is greater than or equal to the recursive verification number. K ; If not, proceed to step S414; if satisfied, proceed to step S417; Step S414: Add 1 to the first iteration number. ; Step S415: Determine whether the first iteration number k is greater than or equal to the first maximum iteration number I; When , the operation ends; when When , return to step S403; Step S416: Determine the optimal structural parameters Whether the following conditions are met at the same time, namely the second precondition: If not, proceed to step S417 and enter the second preset algorithm; if satisfied, return to step S413; Step S417: The temperature value Initialize to ; Step S418: Setting the second iteration number ; Step S419: Based on Generate new target structure parameters ; Step S420: Determine and Is it satisfied? ; If satisfied, proceed to step S421; if not satisfied, proceed to step S422; Step S421: Set the new target structure parameters Set as the optimal structural parameters , return to step S419; Step S422: Determine and Whether the conditions are met: ; If satisfied, return to step S421; if not satisfied, go to step S423; Step S423: Determine the second iteration number Is it greater than or equal to the second maximum number of iterations? ;if , go to step S424; if , proceed to step S425; Step S424: Add 1 to the second iteration number. ; Step S425: Determine the temperature value Is it less than or equal to the termination temperature? ;when When , return to step S411; when When , go to step S426; Step S426: Give temperature value Cool down and make the temperature value ; Return to step S418.
2. The structural parameter optimization method of the articulated arm coordinate measuring machine according to claim 1, characterized in that: Determining candidate structural parameters according to the initial structural parameters includes: According to the initial structural parameters, a constraint range is preset, and a plurality of candidate structural parameters are generated within the constraint range using a random function.
3. The structural parameter optimization method of the articulated arm coordinate measuring machine according to claim 1, characterized in that: Get the joint angle values of the articulated arm coordinate measuring machine, including: A plurality of groups of joint rotation angle values corresponding to the articulated arm coordinate measuring machine when the articulated arm coordinate measuring machine is shaken in different postures are obtained.
4. The structural parameter optimization method of the articulated arm coordinate measuring machine according to claim 1, characterized in that: The preset motion model created is the Modified-DH motion model.
5. The structural parameter optimization method of the articulated arm coordinate measuring machine according to claim 1, characterized in that: Creating an optimization algorithm, and optimizing the target structural parameters using the optimization algorithm to obtain the optimized structural parameters of the articulated arm coordinate measuring machine, including: According to the preset motion model, the candidate structural parameters and the joint angle value, the coordinate data of the probe end of the articulated arm measuring machine corresponding to the joint angle value is obtained; Calculating characteristic values of the probe end coordinate data according to the probe end coordinate data; Creating an objective function with the target structure parameter as an independent variable and the characteristic value as a dependent variable; The objective function is solved by using a first preset algorithm to obtain an optimal eigenvalue whose eigenvalue meets a first preset condition, and the target structural parameter corresponding to the optimal eigenvalue is the optimized structural parameter.
6. The structural parameter optimization method of the articulated arm coordinate measuring machine according to claim 5, characterized in that: The objective function is solved by using a first preset algorithm to obtain an optimal eigenvalue whose eigenvalue meets a first preset condition, and the target structural parameter corresponding to the optimal eigenvalue is an optimized structural parameter, including: When the characteristic value obtained after optimizing the target structural parameter by using the first preset algorithm does not meet the first preset condition, the target structural parameter is recorded as the structural parameter to be optimized; Determining whether the structural parameters to be optimized meet the second preset condition; When the structural parameters to be optimized meet the second preset conditions, the second preset algorithm is used to obtain new target structural parameters, and then the first preset algorithm is used to optimize the new target structural parameters to obtain optimized structural parameters.
7. The structural parameter optimization method of the articulated arm coordinate measuring machine according to claim 5, characterized in that: Calculating characteristic values of the probe end coordinate data according to the probe end coordinate data includes: According to the probe end coordinate data, using the Laida criterion, obtaining the deviation of the probe end coordinate data; According to the deviation, the characteristic value of the coordinate data of the end of the probe is obtained.
8. A structural parameter optimization device for an articulated arm coordinate measuring machine, characterized in that: include: Parameter acquisition module: used to acquire initial structural parameters of the articulated arm coordinate measuring machine, and determine candidate structural parameters according to the initial structural parameters; Angle data acquisition module: used to obtain the joint angle value of the articulated arm coordinate measuring machine; Model creation module: used to create a preset motion model and obtain target structural parameters based on the preset motion model, candidate structural parameters and joint rotation angle values; Parameter optimization module: used to create an optimization algorithm, and use the optimization algorithm to optimize the target structural parameters to obtain the optimized structural parameters of the articulated arm coordinate measuring machine; The step of obtaining the optimized structural parameters of the articulated arm coordinate measuring machine includes: Step S401: Setting the first iteration number , take the candidate structure parameters as the initial values of the target structure parameters, and input Q groups of target structure parameters ; Binary encoding of each set of target structure parameters; Step S402: Input the obtained Group joint rotation value ,according to The joint angle values are calculated to obtain the eigenvalues corresponding to each set of target structural parameters. , ; Step S403: According to each group of target structure parameters The corresponding eigenvalue , the target structural parameters are selected using the roulette method; Step S404: performing cross operation on the target structure parameters after the selection operation; Step S405: Perform mutation operation on the target structure parameters after the crossover operation to obtain Q groups of new target structure parameters. ; Step S406: Calculate the eigenvalues corresponding to the Q groups of new target structure parameters , ; Step S407: Determination and Is it satisfied? , ;when ≥ When , go to step S408; when < When , go to step S409; Step S408: Set the new structural parameters Set as the target structure parameter for the current iteration , , proceed to step S410; Step S409: Structural parameters Set as the target structure parameter for the current iteration , ; Step S410: Compare the eigenvalues corresponding to the Q current iteration target parameters , , the structural parameter corresponding to the maximum value is recorded as the optimal structural parameter ; Step S411: Determine the optimal parameters Whether the first precondition is met ; If satisfied, proceed to step S412; if not satisfied, proceed to step S413; Step S412: Output current is the optimal structural parameter, and the calculation ends; Step S413: Determine whether the first iteration number k is greater than or equal to the recursive verification number. K ; If not, proceed to step S414; if satisfied, proceed to step S417; Step S414: Add 1 to the first iteration number. ; Step S415: Determine whether the first iteration number k is greater than or equal to the first maximum iteration number I; When , the operation ends; when When , return to step S403; Step S416: Determine the optimal structural parameters Whether the following conditions are met at the same time, namely the second precondition: If not, proceed to step S417 and enter the second preset algorithm; if satisfied, return to step S413; Step S417: The temperature value Initialize to ; Step S418: Setting the second iteration number ; Step S419: Based on Generate new target structure parameters ; Step S420: Determine and Is it satisfied? ; If satisfied, proceed to step S421; if not satisfied, proceed to step S422; Step S421: Set the new target structure parameters Set as the optimal structural parameters , return to step S419; Step S422: Determine and Whether the conditions are met: ; If satisfied, return to step S421; if not satisfied, go to step S423; Step S423: Determine the second iteration number Is it greater than or equal to the second maximum number of iterations? ;if , go to step S424; if , proceed to step S425; Step S424: Add 1 to the second iteration number. ; Step S425: Determine the temperature value Is it less than or equal to the termination temperature? ;when When , return to step S411; when When , go to step S426; Step S426: Give temperature value Cool down and make the temperature value ; Return to step S418.
9. An electronic device, characterized in that: It comprises a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the structural parameter optimization method of the articulated arm coordinate measuring machine as described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the structural parameter optimization method of the articulated arm coordinate measuring machine as described in any one of claims 1-7 is implemented.
