Coordinate System Transformation Method, Device, Equipment and Medium in Intelligent Arrangement of Standard Parts
By establishing a target coordinate system in the intelligent arrangement of standard parts, the inefficiency problem caused by the attitude and coordinate origin of different standard parts is solved, and automated standard parts are realized and efficiency is improved.
Patent Information
- Application Number
- CN202211375930.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-04
- Publication Date
- 2025-07-08
- Estimated Expiration
- 2042-11-04
AI Technical Summary
In the prior art, due to the different postures and coordinate origin positions of the same type of standard parts designed by different standard parts manufacturers, the intelligent arrangement algorithm cannot be used uniformly, resulting in time-consuming manual observation and calculation, which reduces the efficiency of standard parts layout.
By obtaining the position of the reference origin in the reference standard part, determining the target point is on the standard part to be transformed, and obtaining the coordinate information of the target point based on the coordinate system of the standard part to be transformed, calculating the target movement distance and rotation angle, establishing the target coordinate system, so that it is consistent with the coordinate system of the reference standard part, and automatically realizing the arrangement of the standard part.
No manual observation and calculation is required, and the operation is simplified, which improves the efficiency of standard parts layout and realizes the automation and unification of standard parts coordinate systems.
Smart Images

Figure CN115631239B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of standard part intelligence, and particularly to a coordinate system transformation method, device, equipment and medium for intelligent arrangement of standard parts. Background Art
[0002] With the continuous development of science and technology, the manufacturing industry is also constantly changing and upgrading. Among them, for intelligent die design, the intelligent arrangement of standard parts is an important criterion for measuring intelligent die design. The intelligent arrangement of standard parts refers to automatically identifying the body features corresponding to each standard part of the die and the standard part arrangement rules, and intelligently arranging the standard parts to the correct positions on the die.
[0003] Specifically, for the same type of standard parts, by using the intelligent arrangement algorithm of standard parts, the arrangement of standard parts is realized according to the posture of the standard parts and the position of the coordinate origin. However, since the postures and coordinate origin positions of the same type of standard parts designed by different standard part manufacturers may be different, it is impossible to use a unified intelligent arrangement algorithm to realize the intelligent arrangement of standard parts. Therefore, in order to be able to use a unified intelligent arrangement algorithm to realize the intelligent arrangement of standard parts, currently, the method of manual observation and calculation is adopted to achieve the unification of the same type of standard parts with different postures and coordinate origin positions. However, this method is very time-consuming, thus reducing the efficiency of arranging standard parts. Summary of the Invention
[0004] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a coordinate system transformation method, device, equipment and medium for intelligent arrangement of standard parts.
[0005] In a first aspect, the present disclosure provides a coordinate system transformation method for intelligent arrangement of standard parts, including: obtaining a first position of a reference origin on a reference standard part, and determining a target point on a to-be-transformed standard part based on the first position, where the reference origin is the origin of a first coordinate system where the reference standard part is located;
[0006] Based on a second coordinate system where the to-be-transformed standard part is located, obtaining first coordinate information of the target point;
[0007] Based on the first coordinate information and second coordinate information of the second coordinate system, determining target transformation parameters of the second coordinate system, where the target transformation parameters include: a target moving distance and a target rotation angle;
[0008] Based on the target point, the target transformation parameters and the second coordinate system, obtaining a target coordinate system;
[0009] Wherein, the target origin of the target coordinate system coincides with the position of the standard part to be transformed, and the position of the target point in the reference standard part. The directions of the axes of the target coordinate system are the same as those of the axes of the first coordinate system. The target coordinate system is used to arrange the standard part to be transformed.
[0010] As an optional implementation manner of an embodiment of the present disclosure, obtaining the first coordinate information of the target point based on the second coordinate system where the standard part to be transformed is located includes:
[0011] Obtain the workpiece drawing of the standard part to be transformed;
[0012] Based on the workpiece drawing, obtain the first coordinate information of the target point in the second coordinate system.
[0013] As an optional implementation manner of an embodiment of the present disclosure, obtaining the first coordinate information of the target point in the second coordinate system based on the workpiece drawing includes:
[0014] Determine the target point on the workpiece drawing, and establish a third coordinate system with the target point as the origin based on the first coordinate system, where the directions of the axes of the third coordinate system are the same as those of the axes of the first coordinate system;
[0015] In the second coordinate system, determine the first coordinate of the origin of the third coordinate system and the third unit vectors of the axes of the third coordinate system to obtain the first coordinate information of the target point.
[0016] As an optional implementation manner of an embodiment of the present disclosure, the second coordinate information includes: the second origin coordinate of the second coordinate system and the second unit vectors of the axes;
[0017] Determining the target transformation parameters of the second coordinate system based on the first coordinate information and the second coordinate information of the second coordinate system includes:
[0018] Based on the first coordinate and the second origin coordinate, determine the target moving distance;
[0019] Based on the third unit vectors of the axes of the third coordinate system and the second unit vectors of the axes of the second coordinate system, determine the target rotation angles of the axes.
[0020] As an optional implementation manner of an embodiment of the present disclosure, determining the target rotation angle based on the third unit vectors of the axes of the third coordinate system and the second unit vectors of the axes of the second coordinate system includes:
[0021] Calculate the cross products corresponding to the third unit vectors of the axes and the second unit vectors of the axes respectively;
[0022] Determine the target rotation angle of each axis based on the cross product corresponding to each axis.
[0023] As an optional implementation manner of the embodiments of the present disclosure, the obtaining the target coordinate system based on the target point, the target transformation parameter, and the second coordinate system includes:
[0024] Based on the target moving distance, control the origin of the second coordinate system to coincide with the target point to obtain the target origin;
[0025] Based on the target rotation angle of each axis, control each axis of the second coordinate system to coincide with each axis of the third coordinate system to determine the directions of the axes of the target coordinate system;
[0026] Based on the target origin and the directions of the axes, determine the target coordinate system.
[0027] As an optional implementation manner of the embodiments of the present disclosure, the method further includes:
[0028] Based on the target coordinate system, call the preset arrangement algorithm corresponding to the reference standard part to arrange the standard part to be transformed.
[0029] In a second aspect, the present disclosure provides a coordinate system transformation device for intelligent arrangement of standard parts, including:
[0030] A target point determination module, configured to obtain the first position of the reference origin on the reference standard part, and determine a target point on the standard part to be transformed based on the first position, where the reference origin is the origin of the first coordinate system where the reference standard part is located;
[0031] A first coordinate information acquisition module, configured to acquire the first coordinate information of the target point based on the second coordinate system where the standard part to be transformed is located;
[0032] A target transformation parameter determination module, configured to determine the target transformation parameter of the second coordinate system based on the first coordinate information and the second coordinate information of the second coordinate system, where the target transformation parameter includes: a target moving distance and a target rotation angle;
[0033] A target coordinate system obtaining module, configured to obtain a target coordinate system based on the target point, the target transformation parameter, and the second coordinate system;
[0034] Wherein, the position of the target origin of the target coordinate system on the standard part to be transformed is the same as the position of the target point on the reference standard part, the directions of the axes of the target coordinate system are the same as the directions of the axes of the first coordinate system, and the target coordinate system is used to arrange the standard part to be transformed.
[0035] In a third aspect, the present disclosure provides an electronic device, including: one or more processors; a memory; and one or more computer programs; wherein the one or more computer programs are stored in the memory; and characterized in that when the one or more processors execute the one or more computer programs, the electronic device implements the coordinate system transformation method in the standard part intelligent layout as described in any item of the first aspect.
[0036] In a fourth aspect, the present disclosure provides a computer-readable storage medium, including computer instructions, which when running on an electronic device, cause the electronic device to execute the coordinate system transformation method in the standard part intelligent layout as described in any item of the first aspect.
[0037] In the technical solution provided by the embodiments of the present disclosure, by obtaining the first position of the reference origin on the reference standard part, determining the target point on the to-be-transformed standard part based on the first position, wherein the reference origin is the origin of the first coordinate system where the reference standard part is located; obtaining the first coordinate information of the target point based on the second coordinate system where the to-be-transformed standard part is located; determining the target transformation parameters of the second coordinate system based on the first coordinate information and the second coordinate information of the second coordinate system, wherein the target transformation parameters include: the target moving distance and the target rotation angle; obtaining the target coordinate system based on the target point, the target transformation parameters and the second coordinate system; wherein the position of the target origin of the target coordinate system on the to-be-transformed standard part is the same as the position of the target point on the reference standard part, the directions of the axes of the target coordinate system are the same as the directions of the axes of the first coordinate system, and the target coordinate system is used to arrange the to-be-transformed standard part. In this process, it is possible to automatically determine the target point on the to-be-transformed standard part on the premise of the origin of the first coordinate system where the reference standard part is located, and determine the coordinate information of the target point in the second coordinate system where the to-be-transformed standard part is located. Further, by combining the coordinate information of the target point and the second coordinate system, calculate the target transformation parameters that make the origin of the target coordinate system coincide with the target point and the directions of the axes be the same as those of the reference standard part, automatically realizing the coordinate unification of the to-be-transformed standard part and the reference standard part in the actual layout process, without the need to manually observe and calculate the moving distance and rotation angle, simplifying the operation, thereby improving the efficiency of arranging the standard parts. Description of the Drawings
[0038] The drawings here are incorporated into the specification and form a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure.
[0039] To more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0040] Figure 1 It is a schematic flowchart of a coordinate system transformation method in the intelligent arrangement of standard parts provided by the embodiment of the present disclosure;
[0041] Figure 2 It is a schematic diagram of the first coordinate system where the reference standard part is located provided by the embodiment of the present disclosure;
[0042] Figure 3 It is a schematic diagram of the second coordinate system where the standard part to be transformed is located provided by the embodiment of the present disclosure;
[0043] Figure 4 It is a schematic diagram of the third coordinate system where the workpiece drawing corresponding to the standard part to be transformed is located provided by the embodiment of the present disclosure;
[0044] Figure 5 It is a schematic structural diagram of a coordinate system transformation device in the intelligent arrangement of standard parts provided by the present disclosure. Detailed implementation manners
[0045] In order to more clearly understand the above-mentioned objects, features, and advantages of the present disclosure, the following will further describe the solutions of the present disclosure. It should be noted that, without conflict, the embodiments of the present disclosure and the features in the embodiments can be combined with each other.
[0046] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure can also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only a part of the embodiments of the present disclosure, rather than all the embodiments.
[0047] Aiming at the problem in the prior art that due to the use of manual observation and calculation methods, it is very time-consuming to unify the same type of standard parts with different postures and coordinate origin positions, thus reducing the efficiency of the arrangement of standard parts.
[0048] Based on this, the present disclosure proposes a method for intelligent arrangement processing of standard parts. The coordinate system transformation method in the intelligent arrangement of standard parts can automatically determine the target point on the standard part to be transformed on the premise that the origin of the first coordinate system where the reference standard part is located, and determine the coordinate information of the target point in the second coordinate system where the standard part to be transformed is located. Further, in combination with the coordinate information of the target point and the second coordinate system, the target transformation parameters are calculated so that the origin of the target coordinate system coincides with the target point, and the directions of each axis are consistent with the direction of the reference standard part, realizing the coordinate unification of the standard part to be transformed and the reference standard part in the actual arrangement process automatically, without the need to manually observe and calculate the moving distance and rotation angle, simplifying the operation, thereby improving the efficiency of the arrangement of standard parts.
[0049] The coordinate system transformation method in the intelligent arrangement of standard parts provided by the present disclosure can be applied to a coordinate system transformation device in the intelligent arrangement of standard parts. The device can be various electronic devices such as personal computers, laptop computers, smart phones, tablet computers, and portable wearable devices. Optionally, the device can also be a functional module or functional entity in these electronic devices that can implement the coordinate system transformation method in the intelligent arrangement of standard parts.
[0050] The technical solutions of the present disclosure will be described below with several specific embodiments.
[0051] Figure 1 It is a flowchart of a coordinate system transformation method in the intelligent arrangement of standard parts provided by an embodiment of the present disclosure. As Figure 1 shown, the method of this embodiment includes the following steps:
[0052] S11. Obtain the first position of the reference origin on the reference standard part, and determine the target point on the standard part to be transformed based on the first position.
[0053] Among them, the reference origin is the origin of the first coordinate system where the reference standard part is located.
[0054] The reference standard part refers to the reference object for unifying the coordinate system where the standard part is located in the actual arrangement process, and the intelligent arrangement algorithm is set according to the coordinate system where the reference standard part is located. The reference standard part can be, for example, a pressure regulating pad, a guide plate, a positioning plate, etc., but is not limited thereto. The present disclosure does not specifically limit it, and those skilled in the art can set it according to the actual situation.
[0055] The standard part to be transformed refers to a workpiece with a similar structure, size, etc. to the reference standard part. However, due to different manufacturers of the same type of standard parts, the standard part to be transformed and the reference standard part may have different postures or coordinate systems. But it is not limited thereto. The present disclosure does not specifically limit it, and those skilled in the art can set it according to the actual situation.
[0056] Therefore, based on the above, for standard parts of the same type, in order to be able to arrange standard parts using an intelligent layout algorithm set according to the coordinate system where the reference standard part is located, it is necessary to unify the coordinate system where the standard part is located in the actual layout process based on the coordinate system where the reference standard part is located. However, this is not limited to this, and the present disclosure does not specifically limit it. Those skilled in the art can set it according to the actual situation.
[0057] The target point refers to the position of the origin of the coordinate system where the reference standard part is located on the reference standard part, and based on this, the point at the same position on the standard part to be transformed is determined.
[0058] Specifically, obtain the position of the origin of the first coordinate system where the reference standard part is located, thereby obtaining the first position of the reference origin on the reference standard part, and determine the position of the target point on the standard part to be transformed based on this first position.
[0059] Exemplarily, referring to Figures 2 - 3 As shown, for the reference standard part A, taking a vertex of the reference standard part A as the origin a, establish the first coordinate system X1, Y1, Z1. Then the reference origin is the origin a of the first coordinate system where the reference standard part A is located, and the position of the origin a is the first position a of the reference origin on the reference standard part. And based on this first position a, determine the target point a1 on the standard part B to be transformed. However, this is not limited to this, and the present disclosure does not specifically limit it. Those skilled in the art can set it according to the actual situation.
[0060] S12. Based on the second coordinate system where the standard part to be transformed is located, obtain the first coordinate information of the target point.
[0061] Specifically, determine the second coordinate system where the standard part to be transformed is located, and in this second coordinate system, determine the first coordinate information of the target point.
[0062] Exemplarily, referring to Figure 3 As shown, for the standard part B to be transformed, taking a point on the standard part B to be transformed as the origin b, establish the second coordinate system X2, Y2, Z2. Then based on this second coordinate system, obtain the first coordinate information of the target point a1 in this second coordinate system. For example, the coordinates of the target point a1 in this second coordinate system. However, this is not limited to this, and the present disclosure does not specifically limit it. Those skilled in the art can set it according to the actual situation.
[0063] Optionally, on the basis of the above embodiments, in some embodiments of the present disclosure, one implementation manner of S12 can be:
[0064] S121: Obtain the workpiece drawing of the standard part to be transformed.
[0065] Among them, the workpiece drawing refers to a drawing obtained by using drawing software such as Computer Aided Design (CAD) for the standard part to be transformed, but is not limited thereto. The present disclosure does not specifically limit it, and those skilled in the art can set it according to the actual situation.
[0066] S122: Based on the workpiece drawing, obtain the first coordinate information of the target point in the second coordinate system.
[0067] Specifically, obtain the workpiece drawing of the standard part to be transformed. After obtaining this workpiece drawing, in the second coordinate system corresponding to the standard part to be transformed, obtain the first coordinate information of the target point.
[0068] Exemplarily, the above-mentioned obtaining the first coordinate information of the target point in the second coordinate system based on the workpiece drawing can be, for example, by controlling a device such as a computer to import and obtain the workpiece drawing of the standard part to be transformed in the processing software, and determine the second coordinate system corresponding to the standard part to be transformed, so as to obtain the first coordinate information of the target point, but is not limited thereto. The present disclosure does not specifically limit it, and those skilled in the art can set it according to the actual situation.
[0069] Optionally, on the basis of the above embodiments, in some embodiments of the present disclosure, one implementation manner of S122 may be:
[0070] S1221: Determine the target point on the workpiece drawing, and establish a third coordinate system with the target point as the origin based on the first coordinate system.
[0071] Among them, the directions of the axes of the third coordinate system are the same as those of the axes of the first coordinate system.
[0072] S1222: In the second coordinate system, determine the first coordinate of the origin of the third coordinate system and the third unit vectors of the axes of the third coordinate system, so as to obtain the first coordinate information of the target point.
[0073] Exemplarily, referring to Figure 4 As shown, for the workpiece drawing B1 corresponding to the standard part B to be transformed, determine the position of the target point a1 on the workpiece drawing B1, and establish a third coordinate system X3, Y3, Z3 with the target point a1 as the origin b1. Among them, the horizontal axis X3 of the third coordinate system is in the same direction as the horizontal axis X1 of the first coordinate system, the vertical axis Y3 of the third coordinate system is in the same direction as the vertical axis Y1 of the first coordinate system, and the vertical axis Z3 of the third coordinate system is in the same direction as the vertical axis Z1 of the first coordinate system. That is, it can be understood that the third coordinate system X3, Y3, Z3 is the coordinate system corresponding to the first coordinate system X1, Y1, Z1 on the workpiece drawing B1 of the standard part to be transformed. Then, in the second coordinate system, obtain the first coordinate of the origin b1 of the third coordinate system as (Xb1, Yb1, Zb1), and obtain the third unit vectors of the axes of the third coordinate system such as The corresponding coordinates are (Xb1e, Yb1e, Zb1e), (Xb1f, Yb1f, Zb1f), (Xb1g, Yb1g, Zb1g), etc., from which the first coordinate information of the target point is obtained. However, this is not limited thereto, and the present disclosure does not specifically limit it, and those skilled in the art can set it according to actual situations.
[0074] S13. Determine the target transformation parameters of the second coordinate system based on the first coordinate information and the second coordinate information of the second coordinate system.
[0075] Among them, the target transformation parameters include: the target moving distance and the target rotation angle.
[0076] The above-mentioned target moving distance refers to the moving parameter for moving the origin of the second coordinate system where the standard part to be transformed is located to the target point, and the target rotation angle is the angle parameter that needs to be rotated to make the axes of the second coordinate system where the standard part to be transformed is located coincide with the axes of the third coordinate system established based on the first coordinate system.
[0077] S14. Obtain the target coordinate system based on the target point, the target transformation parameters, and the second coordinate system.
[0078] Among them, the target origin of the target coordinate system is in the same position as the target point in the reference standard part where the standard part to be transformed is located, the directions of the axes of the target coordinate system are the same as the directions of the axes of the first coordinate system, and the target coordinate system is used to arrange the standard part to be transformed.
[0079] Specifically, according to the obtained first coordinate information of the target point and the second coordinate information of the second coordinate system, calculate the target moving distance and the target rotation angle for moving and rotating the second coordinate system. According to the target point, the obtained target moving distance and the target rotation angle, move the second coordinate system, so as to obtain the target coordinate system, and use this target coordinate system to arrange the standard part to be transformed.
[0080] In the technical solution provided by the embodiments of the present disclosure, by obtaining the first position of the reference origin on the reference standard part, a target point is determined on the standard part to be transformed, where the reference origin is the origin of the first coordinate system where the reference standard part is located; based on the second coordinate system where the standard part to be transformed is located, the first coordinate information of the target point is obtained; based on the first coordinate information and the second coordinate information of the second coordinate system, the target transformation parameters of the second coordinate system are determined, where the target transformation parameters include: the target moving distance and the target rotation angle; based on the target point, the target transformation parameters, and the second coordinate system, a target coordinate system is obtained; where the position of the target origin of the target coordinate system on the standard part to be transformed is the same as the position of the target point on the reference standard part, the directions of the axes of the target coordinate system are the same as the directions of the axes of the first coordinate system, and the target coordinate system is used to arrange the standard part to be transformed. In this process, it is possible to automatically determine the target point on the standard part to be transformed on the premise of the origin of the first coordinate system where the reference standard part is located, and determine the coordinate information of the target point in the second coordinate system where the standard part to be transformed is located. Further, by combining the coordinate information of the target point and the second coordinate system, the target transformation parameters are calculated so that the origin of the target coordinate system coincides with the target point, and the directions of the axes are the same as those of the reference standard part, automatically realizing the coordinate unification of the standard part to be transformed and the reference standard part in the actual arrangement process, without the need to manually observe and calculate the moving distance and rotation angle, simplifying the operation, thereby improving the efficiency of arranging the standard parts.
[0081] Optionally, on the basis of the above embodiments, in some embodiments of the present disclosure, the second coordinate information includes: the second origin coordinate of the second coordinate system, and the second unit vectors of each axis. A possible implementation manner of S13 may be:
[0082] S131: Determine the target moving distance based on the first coordinate and the second origin coordinate.
[0083] Specifically, after determining the first coordinate of the origin of the third coordinate system, the target moving distance is determined according to the first coordinate and the second origin coordinate of the second coordinate system.
[0084] Exemplarily, continuing with the above embodiments, referring to Figure 4 as shown, for the first coordinate being (Xb1, Yb1, Zb1), in the second coordinate system X2, Y2, Z2, if the second origin coordinate of the second coordinate system is determined to be (0, 0, 0), then the difference is calculated between the first coordinate (Xb1, Yb1, Zb1) and the second origin coordinate (0, 0, 0) of the second coordinate system to calculate the target moving distance However, it is not limited thereto, and the present disclosure does not specifically limit it, and those skilled in the art can set it according to the actual situation.
[0085] S132: Determine the target rotation angle of each axis based on the third unit vectors of each axis of the third coordinate system and the second unit vectors of each axis of the second coordinate system.
[0086] Optionally, based on the above embodiments, in some embodiments of the present disclosure, a possible implementation manner of S132 may be:
[0087] S1321: Calculate the cross products respectively corresponding to the third unit vectors of each axis and the second unit vectors of each axis.
[0088] Exemplarily, continuing with the above embodiments, referring to Figure 4 as shown, for the third unit vectors of each axis of the third coordinate system such as the corresponding coordinates are (Xb1e, Yb1e, Zb1e), (Xb1f, Yb1f, Zb1f), (Xb1g, Yb1g, Zb1g), and for the second unit vectors of each axis of the second coordinate system such as the corresponding coordinates are (1, 0, 0), (0, 0, 1), (0, 1, 0), then according to the coordinates respectively corresponding to the third unit vectors of each axis of the third coordinate system such as and the coordinates respectively corresponding to the second unit vectors of each axis of the second coordinate system such as calculate the cross products corresponding to each axis.
[0089] S1322: Determine the target rotation angle of each axis based on the cross products respectively corresponding to each axis.
[0090] Specifically, after determining the third unit vectors of each axis of the third coordinate system in the second coordinate system, calculate the cross products respectively corresponding to the third unit vectors of each axis and the second unit vectors of each axis, and then determine the target rotation angle of each axis based on the cross products respectively corresponding to each axis.
[0091] It should be noted that when calculating the cross products respectively corresponding to each axis through the third unit vectors of each axis and the second unit vectors of each axis, first calculate the cross product corresponding to the horizontal axis Specifically, for the cross product corresponding to the horizontal axis it can be specifically defined according to the following expression:
[0092]
[0093] The target rotation angle for the horizontal axis can be specifically defined according to the following expression:
[0094]
[0095] After determining the cross product and the target rotation angle corresponding to the horizontal axis of the second coordinate system, rotate around the cross product Rotate the target by the rotation angle α to make the horizontal axis of the second coordinate system coincide with the horizontal axis of the third coordinate system. Since the direction of the horizontal axis of the third coordinate system is the same as that of the horizontal axis of the first coordinate system, the direction of the horizontal axis of the second coordinate system is also the same as that of the horizontal axis of the first coordinate system.
[0096] It should be noted that when and are in the same or opposite directions, the target rotation angle is determined to be 0 degrees or 180 degrees.
[0097] After rotating the horizontal axis of the third coordinate system, determine the third unit vectors of the vertical axis and the vertical axis of the rotated third coordinate system. Optionally, the third unit vector of the vertical axis of the rotated third coordinate system can be specifically defined according to the following expression:
[0098]
[0099] The third unit vector of the vertical axis of the rotated third coordinate system can be specifically defined according to the following expression:
[0100]
[0101] Furthermore, calculate the cross product of the vertical axis and the target rotation angle, and perform rotation to make the vertical axis of the second coordinate system coincide with the vertical axis of the third coordinate system. After rotating the vertical axis of the third coordinate system, determine the third unit vector of the vertical axis of the rotated third coordinate system. After determining the third unit vector of the vertical axis of the rotated third coordinate system, calculate the cross product of the vertical axis and the target rotation angle, and perform rotation to make the vertical axis of the second coordinate system coincide with the vertical axis of the third coordinate system, thereby obtaining the target coordinate system. For the calculation process of the cross product of the vertical axis and the target rotation angle, the third unit vector of the vertical axis of the rotated third coordinate system, and the cross product of the vertical axis and the target rotation angle, refer to the specific implementation process for the horizontal axis above, which will not be elaborated here.
[0102] Optionally, based on the above embodiments, in some embodiments of the present disclosure, a possible implementation manner of S14 may be:
[0103] S141: Based on the target moving distance, control the origin of the second coordinate system to coincide with the target point to obtain the target origin.
[0104] S142: Based on the target rotation angles of each axis, control each axis of the second coordinate system to coincide with each axis of the third coordinate system to determine the directions of each axis of the target coordinate system.
[0105] S143: Based on the target origin and the directions of each axis, determine the target coordinate system.
[0106] Specifically, according to the obtained target moving distance, control the origin of the second coordinate system to coincide with the target point, obtaining the target origin of the target moving distance. After determining the target origin, according to the obtained target rotation angles of each axis, control each axis of the second coordinate system to coincide with each axis of the third coordinate system, determining the directions of each axis of the target coordinate system. Furthermore, according to the target origin and the directions of each axis, determine the target coordinate system.
[0107] For the specific implementation processes of S141 - S143, refer to the above - mentioned embodiments S1321 - S1322, which will not be elaborated here.
[0108] In this way, the coordinate system transformation method in the intelligent arrangement of standard parts provided in this embodiment can move and rotate the second coordinate system according to the target moving distance and the target rotation angles of each axis, so that the origin of the target coordinate system coincides with the target point, and the directions of each axis are consistent with the directions of the reference standard parts. It automatically realizes the coordinate unification of the standard parts to be transformed and the reference standard parts in the actual arrangement process, without the need to manually observe and calculate the moving distance and rotation angle, simplifies the operation, and thus improves the efficiency of the arrangement of standard parts.
[0109] Optionally, on the basis of the above - mentioned embodiments, in some embodiments of the present disclosure, it further includes:
[0110] Based on the target coordinate system, call the preset arrangement algorithm corresponding to the reference standard part to arrange the standard part to be transformed.
[0111] Specifically, after determining the target coordinate system corresponding to the standard part to be transformed, call the preset arrangement algorithm corresponding to the reference standard part to arrange the standard part to be transformed.
[0112] In this way, the coordinate system transformation method in the intelligent arrangement of standard parts provided in the embodiments of the present disclosure can, in the above - mentioned process, arrange the standard part to be transformed based on the target coordinate system unified with the reference standard part by calling the preset arrangement algorithm corresponding to the reference standard part, improve the efficiency of the arrangement of standard parts, and enhance the user experience.
[0113] Figure 5 It is a structural schematic diagram of a coordinate system transformation device in the intelligent arrangement of standard parts provided by the present disclosure. As Figure 5 shown, the device in this embodiment includes: a target point determination module 11, a first coordinate information acquisition module 12, a target transformation parameter determination module 13, and a target coordinate system acquisition module 14.
[0114] Among them, the target point determination module 11 is used to obtain the first position of the reference origin on the reference standard part, and determine the target point on the standard part to be transformed based on the first position, where the reference origin is the origin of the first coordinate system where the reference standard part is located;
[0115] The first coordinate information acquisition module 12 is configured to acquire the first coordinate information of the target point based on the second coordinate system where the standard part to be transformed is located;
[0116] The target transformation parameter determination module 13 is configured to determine the target transformation parameters of the second coordinate system based on the first coordinate information and the second coordinate information of the second coordinate system, where the target transformation parameters include: the target moving distance and the target rotation angle;
[0117] The target coordinate system obtaining module 14 is configured to obtain a target coordinate system based on the target point, the target transformation parameters, and the second coordinate system;
[0118] Wherein, the target origin of the target coordinate system coincides with the position of the standard part to be transformed, and the position of the target point in the reference standard part, and the directions of the axes of the target coordinate system are the same as the directions of the axes of the first coordinate system, and the target coordinate system is used to arrange the standard part to be transformed.
[0119] Optionally, the first coordinate information acquisition module 12 is specifically configured to acquire the workpiece drawing of the standard part to be transformed;
[0120] Based on the workpiece drawing, acquire the first coordinate information of the target point in the second coordinate system.
[0121] Optionally, the first coordinate information acquisition module 12 is further specifically configured to determine the target point on the workpiece drawing, and establish a third coordinate system with the target point as the origin based on the first coordinate system, where the directions of the axes of the third coordinate system are the same as the directions of the axes of the first coordinate system; in the second coordinate system, determine the first coordinate of the origin of the third coordinate system and the third unit vectors of the axes of the third coordinate system, so as to obtain the first coordinate information of the target point.
[0122] Optionally, the target transformation parameter determination module 13 is specifically configured to determine the target moving distance based on the first coordinate and the second origin coordinate; determine the target rotation angle of each axis based on the third unit vectors of the axes of the third coordinate system and the second unit vectors of the axes of the second coordinate system.
[0123] Optionally, the target transformation parameter determination module 13 is further specifically configured to calculate the cross products corresponding to the third unit vectors of the axes and the second unit vectors of the axes respectively; determine the target rotation angle of each axis based on the cross products corresponding to each axis.
[0124] Optionally, the target coordinate system obtaining module 14 is specifically configured to control the origin of the second coordinate system to coincide with the target point based on the target moving distance to obtain the target origin; control each axis of the second coordinate system to coincide with each axis of the third coordinate system based on the target rotation angle of each axis to determine the directions of the axes of the target coordinate system; and determine the target coordinate system based on the target origin and the directions of the axes.
[0125] Optionally, the apparatus further includes: an arranging module, configured to arrange the to-be-transformed standard part by invoking a preset arranging algorithm corresponding to the reference standard part based on the target coordinate system.
[0126] In this way, the target point determining module 11 of the embodiment of the present disclosure is configured to obtain the first position of the reference origin on the reference standard part and determine the target point on the to-be-transformed standard part based on the first position, where the reference origin is the origin of the first coordinate system where the reference standard part is located; the first coordinate information obtaining module 12 is configured to obtain the first coordinate information of the target point based on the second coordinate system where the to-be-transformed standard part is located; the target transformation parameter determining module 13 is configured to determine the target transformation parameters of the second coordinate system based on the first coordinate information and the second coordinate information of the second coordinate system, where the target transformation parameters include: a target moving distance and a target rotation angle; the target coordinate system obtaining module 14 is configured to obtain the target coordinate system based on the target point, the target transformation parameters, and the second coordinate system; where the position of the target origin of the target coordinate system on the to-be-transformed standard part is the same as the position of the target point on the reference standard part, the directions of the axes of the target coordinate system are the same as the directions of the axes of the first coordinate system, and the target coordinate system is used to arrange the to-be-transformed standard part. In this process, it is possible to automatically determine the target point on the to-be-transformed standard part on the premise of the origin of the first coordinate system where the reference standard part is located, and determine the coordinate information of the target point in the second coordinate system where the to-be-transformed standard part is located. Further, in combination with the coordinate information of the target point and the second coordinate system, calculate the target transformation parameters that make the origin of the target coordinate system coincide with the target point and the directions of the axes be the same as those of the reference standard part, and automatically realize the coordinate unification of the to-be-transformed standard part and the reference standard part in the actual arranging process, without manually observing and calculating the moving distance and rotation angle, simplifying the operation, and thus improving the efficiency of arranging the standard parts.
[0127] The apparatus in this embodiment can be used to execute the steps of the above method embodiments, and its implementation principle and technical effects are similar, which will not be elaborated here.
[0128] The present disclosure also provides an electronic device, including: one or more processors; a memory; and one or more computer programs; wherein the one or more computer programs are stored in the memory; when the one or more processors execute the one or more computer programs, the electronic device implements the steps of the above method embodiments.
[0129] The present disclosure also provides a computer-readable storage medium, including computer instructions, when the computer instructions run on an electronic device, the electronic device executes the steps of the above method embodiments.
[0130] In the above embodiments, all or part of the functions can be implemented by software, hardware, or a combination of software and hardware. 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 processes or functions according to the embodiments of the present disclosure are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more integrated available media. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)), etc.
[0131] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variation thereof is intended to cover a non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including the element.
[0132] The above are only specific embodiments of the present disclosure, enabling those skilled in the art to understand or implement the present disclosure. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to these embodiments described herein, but rather will be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A coordinate system transformation method in the intelligent layout of standard parts, characterized in that, Including: Obtain the first position of the reference origin on the reference standard part, and determine a target point on the standard part to be transformed based on the first position, where the reference origin is the origin of the first coordinate system where the reference standard part is located; Based on the second coordinate system where the standard part to be transformed is located, obtain the first coordinate information of the target point; Based on the first coordinate information and the second coordinate information of the second coordinate system, determine the target transformation parameters of the second coordinate system, where the target transformation parameters include: the target moving distance and the target rotation angle; Based on the target point, the target transformation parameters, and the second coordinate system, obtain a target coordinate system; Wherein, the position of the target origin of the target coordinate system on the standard part to be transformed is the same as the position of the target point on the reference standard part, the directions of the axes of the target coordinate system are the same as the directions of the axes of the first coordinate system, and the target coordinate system is used to arrange the standard part to be transformed; The second coordinate information includes: the second origin coordinate of the second coordinate system, and the second unit vectors of each axis; Based on the first coordinate information and the second coordinate information of the second coordinate system, determining the target transformation parameters of the second coordinate system includes: Based on the first coordinate and the second origin coordinate, determine the target moving distance; Based on the third unit vectors of each axis of the third coordinate system and the second unit vectors of each axis of the second coordinate system, determine the target rotation angle of each axis; The determining the target rotation angle based on the third unit vectors of each axis of the third coordinate system and the second unit vectors of each axis of the second coordinate system includes: Calculate the cross product corresponding to the third unit vector of each axis and the second unit vector of each axis respectively; Based on the cross product corresponding to each axis respectively, determine the target rotation angle of each axis; The obtaining the target coordinate system based on the target point, the target transformation parameters, and the second coordinate system includes: Based on the target moving distance, control the origin of the second coordinate system to coincide with the target point to obtain the target origin; Based on the target rotation angle of each axis, control each axis of the second coordinate system to coincide with each axis of the third coordinate system to determine the directions of the axes of the target coordinate system; Based on the target origin and the directions of each axis, determine the target coordinate system.
2. The method according to claim 1, characterized in that, The obtaining the first coordinate information of the target point based on the second coordinate system where the standard part to be transformed is located includes: Obtain the workpiece drawing of the standard part to be transformed; Based on the workpiece drawing, obtain the first coordinate information of the target point in the second coordinate system.
3. The method according to claim 2, wherein The obtaining the first coordinate information of the target point in the second coordinate system based on the workpiece drawing includes: Determine the target point on the workpiece drawing, and based on the first coordinate system, establish a third coordinate system with the target point as the origin, where the directions of the axes of the third coordinate system are the same as the directions of the axes of the first coordinate system; In the second coordinate system, determine the first coordinate of the origin of the third coordinate system and the third unit vectors of each axis of the third coordinate system to obtain the first coordinate information of the target point.
4. The method according to claim 1, characterized in that The method further includes: Based on the target coordinate system, call the preset arrangement algorithm corresponding to the reference standard part to arrange the standard part to be transformed.
5. An apparatus for coordinate transformation in the intelligent arrangement of standard parts, characterized in that, Including: A target point determination module, configured to obtain the first position of the reference origin in the reference standard part, and determine a target point on the standard part to be transformed based on the first position, where the reference origin is the origin of the first coordinate system where the reference standard part is located; A first coordinate information acquisition module, configured to obtain the first coordinate information of the target point based on the second coordinate system where the standard part to be transformed is located; A target transformation parameter determination module, configured to determine the target transformation parameters of the second coordinate system based on the first coordinate information and the second coordinate information of the second coordinate system, where the target transformation parameters include: a target movement distance and a target rotation angle; the second coordinate information includes: the second origin coordinate of the second coordinate system, and the second unit vectors of each axis; A target coordinate system obtaining module, configured to obtain a target coordinate system based on the target point, the target transformation parameters, and the second coordinate system; Wherein, the position of the target origin of the target coordinate system on the standard part to be transformed is the same as the position of the target point on the reference standard part, the directions of the axes of the target coordinate system are the same as the directions of the axes of the first coordinate system, and the target coordinate system is used to arrange the standard part to be transformed; The target transformation parameter determination module is specifically configured to determine the target movement distance based on the first coordinate and the second origin coordinate; determine the target rotation angle of each axis based on the third unit vectors of each axis of the third coordinate system and the second unit vectors of each axis of the second coordinate system; The target transformation parameter determination module is specifically further configured to calculate the cross product corresponding to the third unit vector of each axis and the second unit vector of each axis respectively; determine the target rotation angle of each axis based on the cross product corresponding to each axis; The target coordinate system obtaining module is specifically configured to control the origin of the second coordinate system to coincide with the target point based on the target movement distance to obtain the target origin; control the axes of the second coordinate system to coincide with the axes of the third coordinate system based on the target rotation angle of each axis to determine the directions of the axes of the target coordinate system; determine the target coordinate system based on the target origin and the directions of the axes.
6. An electronic device, characterized in that, Including: One or more processors; a memory; and one or more computer programs; wherein the one or more computer programs are stored in the memory; characterized in that when the one or more processors execute the one or more computer programs, the electronic device implements the coordinate system transformation method in the intelligent arrangement of standard parts as described in any one of claims 1-4.
7. A computer-readable storage medium, characterized in that, Including computer instructions, when the computer instructions run on an electronic device, the electronic device is caused to execute the coordinate system transformation method in the intelligent arrangement of standard parts as described in any one of claims 1-4.
Citation Information
Patent Citations
Positioning method, device and system for three-dimensional curved surface workpiece
CN110686655A
Method and device for determining coordinate system conversion parameters and coordinate system conversion equipment
CN114727219A