A positioning method, control device and system for a mechanical arm dark box
Through the multi-axis arc motion of the six-axis robotic arm, the joint motion of the robotic arm is directly controlled, solving the problems of complex positioning and low efficiency in the existing technology, and achieving efficient and accurate antenna near-field testing.
Patent Information
- Application Number
- CN202210960963.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-11
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-08-11
AI Technical Summary
In the near-field test of existing antennas, the positioning method based on machine vision recognition algorithms is complex and requires specific shapes of logo images and preliminary training, which affects positioning efficiency and accuracy.
The multi-axis arc motion of the six-axis robotic arm is used to realize automated testing of the antenna's near-field pattern by calculating the arm length and rotation angle, omitting the machine vision recognition process, directly controlling the joint movement of the robotic arm, and tracking the test antenna in real time.
It improves testing efficiency and accuracy, reduces energy consumption, simplifies the process, realizes automated control, and is suitable for multi-batch intensive testing of large enterprises.
Smart Images

Figure CN115407133B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of antenna testing, and in particular to a positioning method, a control device and a system for a mechanical arm dark box. Background Art
[0002] Antenna near-field testing is carried out in a microwave darkroom. It has high precision, high efficiency and low cost, and is increasingly widely used in antenna testing. The scanning device used for antenna near-field testing mainly includes the antenna to be tested and the probe system, the antenna to be tested and the probe positioning system, and the test data acquisition and processing system. Among them, the antenna to be tested and the probe positioning system are the key platforms for antenna near-field testing. Its positioning method and accuracy determine the accuracy of the antenna test results. At present, in the domestic research on antenna near-field testing platforms, by installing the test antenna at the end of the six-axis robotic arm, flexible three-dimensional testing can be achieved, and a three-dimensional imaging device is used to acquire images of the antenna to be tested. Based on the machine vision recognition algorithm, the precise geometric position of the antenna to be tested is obtained, and then the local coordinate system and two-dimensional scanning coordinate system of the antenna to be tested can be established. However, based on the machine vision recognition algorithm, the spatial information of the target is obtained by visually identifying and positioning the identification image of a specific shape. This visual positioning method requires complex algorithm support, and also requires the provision of identification images with specific shape requirements. In the early stage, the identification image must be recognized and trained, which makes the calculation complex and affects the positioning efficiency. Summary of the invention
[0003] The purpose of the present invention is to provide a positioning method, control device and system for a mechanical arm dark box, which is suitable for the application of six-axis mechanical arm control in antenna near-field testing. The principle is to use the inherent multi-axis circular motion of the six-axis mechanical arm to convert it into a special motion mode (straight line running surface scanning) of the scene, so as to realize the automatic test of the antenna near-field radiation pattern, so as to solve the existing antenna positioning problem.
[0004] A positioning method for a robot dark box is used to control a six-axis robot, wherein the six-axis robot comprises an arm L1 rotating around its own central axis, and a moving part swinging in an arc relative to the arm L1, wherein the moving part comprises an arm L2, an arm L3, an arm L4 and an arm L5 connected in sequence, and specifically comprises the following steps:
[0005] S1. Obtain the position information of the free end of the l5 arm at the current moment by the origin derivation method, wherein the motion trajectory of the free end of the l5 arm is in the same plane;
[0006] S2, importing the offset of the free end of the l5 arm at the next moment, and calculating the position information of the free end of the l5 arm at the next moment according to the offset of the free end of the l5 arm;
[0007] S3, determining the current one-arm triangle according to the position information of the free end of arm l5 at the current moment, and the arm lengths of arm l2, arm l3 and arm l5;
[0008] S4, determining the target one-arm triangle according to the position information of the free end of arm l5 at the next moment, and the arm lengths of arm l2, arm l3 and arm l5;
[0009] S5, determining a step offset according to the current triangle and the target triangle, wherein the step offset includes a rotation angle α of the l2 arm, a rotation angle β of the l3 arm, and a rotation angle ρ of the l5 arm;
[0010] S6. According to the rotation angle α of the L2 arm, the rotation angle β of the L3 arm and the rotation angle ρ of the L5 arm, the L2 arm, the L3 arm and the L5 arm of the six-axis robot arm are step-controlled to move to the target point respectively.
[0011] Furthermore, before step S1, it also includes establishing a two-dimensional scanning coordinate system: taking the connection point of the l2 arm and the l1 arm of the six-axis robot as the coordinate origin, taking the initial state of the six-axis robot as the Y-axis, and taking the line connecting the projection point of the target point along the Y-axis direction and the coordinate origin as the X-axis, the established plane rectangular coordinate system is a two-dimensional scanning coordinate system, wherein: the initial state of the six-axis robot is: the l2 arm, the l3 arm and the l5 arm of the six-axis robot are in a straight line, and the straight line is perpendicular to the outermost plane where the antenna to be measured is located.
[0012] Further, the end of the six-axis robot performs a plane scan in a measurement plane whose vertical distance from the coordinate origin is H, the target point is located in the measurement plane, the target point and the end of the six-axis robot are both located in a two-dimensional scanning coordinate system, and the measurement plane is perpendicular to the plane of the two-dimensional scanning coordinate system;
[0013] Among them, the coordinates of the position information of the free end of the l5 arm at the current moment in the two-dimensional scanning coordinate system are (X1, H), and the offset is X. The coordinates of the position information of the free end of the l5 arm at the next moment in the two-dimensional scanning coordinate system are (X2, H), and X=X2-X1.
[0014] Furthermore, the coordinates (X1, H) and the coordinates (X2, H) are both located in the first quadrant of the two-dimensional scanning coordinate system. At the next moment, the l4 arm is regarded as a point M connecting the l3 arm and the l5 arm, X2>X1, and the step S4 specifically includes the following steps:
[0015] Calculate the angle between the line segment 1 and the Y axis between the origin and point M according to the coordinates (X2, H) and the height H in
[0016] According to the coordinates (X2, H) and the angle Calculate the length H2 of line segment 1,
[0017] The target one-arm triangle is determined according to line segment 1, arm l2 and arm l3, wherein the target one-arm triangle is: a target triangle determined by taking coordinates (X2, H) as reference points, target line segments l2 and l3 formed by line segment 1, arm l2 at the next moment and arm l3, and target line segment l5 perpendicular to the measurement plane.
[0018] Furthermore, step S4 also includes: calculating the angle ∠a between arm l2 and the X-axis, the angle ∠b between arm l2 and arm l3, and the angle ∠c between arm l5 and arm l3 at the next moment according to the target one-arm triangle, the coordinates (X2, H) and the side length formula of the triangle.
[0019] Furthermore, at the current moment, the l4 arm is regarded as a point M' connecting the l3 arm and the l5 arm, and the step S3 specifically includes the following steps:
[0020] Calculate the angle between the line segment 1' and the Y axis between the origin and point M' according to the coordinates (X1, H) and the height H in
[0021] According to the coordinates (X1, H) and the angle Calculate the length H1 of the line segment 1' formed by the origin and point M',
[0022] The current one-arm triangle is determined according to the line segment 1', the l2 arm and the l3 arm, and the current one-arm triangle is: the current triangle determined by taking the coordinates (X1, H) as the reference point, the line segment 1', the current moment's l2 arm and the l3 arm to form the current line segments l2' and l3', and the current line segment l5' perpendicular to the measurement plane.
[0023] Furthermore, step S4 also includes: calculating the angle ∠a' between arm l2 and the X-axis, the angle ∠b' between arm l2 and arm l3, and the angle ∠c' between arm l5 and arm l3 at the current moment according to the current arm triangle, coordinates (X1, H) and the side length formula of the triangle.
[0024] Furthermore, the step S5 specifically includes the following steps:
[0025] Drive the L2 arm of the six-axis robot arm to rotate around the intersection of the L2 arm and the L1 arm by an angle α to reach the position of the reference line segment L2;
[0026] Drive the L3 arm of the six-axis robot arm to rotate around the intersection of the L2 arm and the L3 arm by an angle β to reach the position of the reference line segment L3;
[0027] Drive the six-axis robot arm's l5 arm to rotate around the target point by an angle ρ to a position parallel to the Y axis;
[0028] Wherein, α is the angle between the current line segment l2' and the target line segment l2, where ∠α = ∠a'-∠a;
[0029] β is when the l2 arm is rotated by an angle α around the intersection of the l2 arm and the l1 arm, where ∠β=∠b-∠b′;
[0030] ρ is the rotation of the l3 arm around the intersection of the l3 arm and the l2 arm by an angle β, where ∠ρ=∠c-∠c′.
[0031] A positioning control device for a six-axis mechanical arm dark box, comprising:
[0032] one or more processors;
[0033] A storage unit is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors can implement the positioning method of a robotic arm dark box.
[0034] A dark box positioning system, comprising:
[0035] A turntable, on which the antenna to be tested is placed, and the turntable can drive the antenna to be tested to rotate;
[0036] A six-axis robotic arm, wherein a probe is provided at the end of the six-axis robotic arm, and the probe is used to scan and sample the antenna to be tested;
[0037] It also includes a positioning control device, which is respectively connected to the six-axis robot arm, the turntable, and the probe for communication.
[0038] The six-axis robot controls the movement of the probe to perform a planar near-field test according to the instructions of the control device.
[0039] The present invention has the beneficial effects:
[0040] 1. The process of machine vision recognition is omitted, and the relative movement between two adjacent arms at the joint of the six-axis manipulator is controlled in real time to indirectly track the movement of the test antenna in real time, and to perform sampling when the test antenna reaches the preset sampling point, thereby ensuring the test efficiency and avoiding interference with the work of the test antenna. The pointing accuracy in the near-field test is achieved through the high-precision control of the six-axis manipulator, and each test component is connected through networking to achieve a high degree of automated control, which greatly optimizes the test process and test efficiency. The present invention can improve test efficiency, reduce energy consumption, increase productivity, improve accuracy, simplify the process, and facilitate control.
[0041] 2. This system can flexibly set the layout position, sampling method and aperture of the detection antenna through software, and freely switch between different sampling surfaces and dot arrays to meet the needs of different industries or equipment detection, and has a wider range of applications; the detection and positioning process is efficient and fast, and the system is easy to deploy, meeting the requirements of large enterprises with long product lines and multi-batch intensive detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a schematic flow chart of the positioning method of the six-axis robot arm dark box of the present invention;
[0043] Figure 2 It is a schematic diagram of the zeroing state of the six-axis robot arm in the two-dimensional scanning coordinate system of the present invention;
[0044] Figure 3 It is a schematic diagram of the initial state of the six-axis robot in the two-dimensional scanning coordinate system of the present invention;
[0045] Figure 4 It is a schematic diagram of the motion state of the six-axis robot arm in the two-dimensional scanning coordinate system of the present invention;
[0046] Figure 5 Schematic diagram of a current triangle and a target triangle determined by a six-axis robot in a two-dimensional scanning coordinate system of the present invention;
[0047] Figure 6 It is a schematic diagram of the target triangle angle parameters of the present invention;
[0048] Figure 7 It is a schematic diagram of the current triangle angle parameters of the present invention;
[0049] Figure 8 Schematic diagram of the six-axis robot arm l2 arm rotation angle α of the present invention;
[0050] Fig. 9 Schematic diagram of the six-axis robot arm l3 arm rotation angle β of the present invention;
[0051] Fig.10 Schematic diagram of the six-axis robot arm l5 arm rotation angle ρ of the present invention;
[0052] Fig.11 It is a schematic diagram of a target point 1 of the three-dimensional coordinate system of the six-axis robot arm base of the present invention;
[0053] Fig.12 It is a schematic diagram of target point 2 of the three-dimensional coordinate system of the six-axis robot base of the present invention;
[0054] Fig.13 It is a schematic diagram of the positioning system of the six-axis robot arm dark box of the present invention;
[0055] Figure numerals: 1 - turntable, 2 - antenna to be measured, 3 - probe, 4 - l5 arm, 5 - l4 arm, 6 - l3 arm, 7 - l2 arm, 8 - l1 arm, 9 - measurement plane. DETAILED DESCRIPTION
[0056] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present invention and its application or use. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0057] The relative arrangement of components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
[0058] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0059] Additionally, descriptions of well-known structures, functions, and configurations may be omitted for clarity and conciseness.One of ordinary skill in the art will recognize that various changes and modifications may be made to the examples described herein without departing from the spirit and scope of the present disclosure.
[0060] Technologies, methods, and apparatus known to ordinary technicians in the relevant field may not be discussed in detail, but where appropriate, such technologies, methods, and apparatus should be considered part of the authorization specification.
[0061] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0062] Example 1
[0063] A positioning method for a robot dark box is used to control a six-axis robot, wherein the six-axis robot comprises an arm L1 rotating around its own central axis, and a moving part swinging in an arc relative to the arm L1, wherein the moving part comprises an arm L2, an arm L3, an arm L4 and an arm L5 connected in sequence, and specifically comprises the following steps:
[0064] S1, obtaining the position information of the free end of the l5 arm at the current moment, wherein the motion trajectory of the free end of the l5 arm is in the same plane;
[0065] S2, importing the offset of the free end of the l5 arm at the next moment, and calculating the position information of the free end of the l5 arm at the next moment according to the offset of the free end of the l5 arm;
[0066] S3, determining the current one-arm triangle according to the position information of the free end of arm l5 at the current moment, and the arm lengths of arm l2, arm l3 and arm l5;
[0067] S4, determining the target one-arm triangle according to the position information of the free end of arm l5 at the next moment, and the arm lengths of arm l2, arm l3 and arm l5;
[0068] S5, determining a step offset according to the current triangle and the target triangle, wherein the step offset includes a rotation angle α of the l2 arm, a rotation angle β of the l3 arm, and a rotation angle ρ of the l5 arm;
[0069] S6. According to the rotation angle α of the L2 arm, the rotation angle β of the L3 arm and the rotation angle ρ of the L5 arm, the L2 arm, the L3 arm and the L5 arm of the six-axis robot arm are step-controlled to move to the target point respectively.
[0070] Specifically, the position information of the free end of the l5 arm at the current moment satisfies W n =W n-1 +X, the position information of the free end of the l5 arm at the current moment can be obtained by iteratively calculating the position information of the free end of the l5 arm at the previous moment.
[0071] Specifically, before step S1, it also includes establishing a two-dimensional scanning coordinate system: taking the connection point of the l2 arm and the l1 arm of the six-axis robot as the coordinate origin, taking the initial state of the six-axis robot as the Y-axis, and taking the line connecting the projection point of the target point along the Y-axis direction and the coordinate origin as the X-axis, the established plane rectangular coordinate system is a two-dimensional scanning coordinate system, wherein: the initial state of the six-axis robot is: the l2 arm, the l3 arm and the l5 arm of the six-axis robot are in a straight line, and the straight line is perpendicular to the outermost plane where the antenna to be measured is located.
[0072] Specifically, the end of the six-axis robot performs a plane scan in a measurement plane whose vertical distance from the coordinate origin is H, the target point is located in the measurement plane, the target point and the end of the six-axis robot are both located in a two-dimensional scanning coordinate system, and the measurement plane is perpendicular to the plane of the two-dimensional scanning coordinate system;
[0073] Among them, the coordinates of the position information of the free end of the l5 arm at the current moment in the two-dimensional scanning coordinate system are (X1, H), and the offset is X. The coordinates of the position information of the free end of the l5 arm at the next moment in the two-dimensional scanning coordinate system are (X2, H), and X=X2-X1.
[0074] Furthermore, the coordinates (X1, H) and the coordinates (X2, H) are both located in the first quadrant of the two-dimensional scanning coordinate system. At the next moment, the l4 arm is regarded as a point M connecting the l3 arm and the l5 arm, X2>X1, and the step S4 specifically includes the following steps:
[0075] Calculate the angle between the line segment 1 and the Y axis between the origin and point M according to the coordinates (X2, H) and the height H in
[0076] According to the coordinates (X2, H) and the angle Calculate the length H2 of line segment 1,
[0077] The target one-arm triangle is determined according to line segment 1, arm l2 and arm l3, wherein the target one-arm triangle is: a target triangle determined by taking coordinates (X2, H) as reference points, target line segments l2 and l3 formed by line segment 1, arm l2 at the next moment and arm l3, and target line segment l5 perpendicular to the measurement plane.
[0078] Specifically, step S4 also includes: calculating the angle ∠a between arm l2 and the X-axis, the angle ∠b between arm l2 and arm l3, and the angle ∠c between arm l5 and arm l3 at the next moment according to the target one-arm triangle, the coordinates (X2, H) and the side length formula of the triangle.
[0079] Specifically, at the current moment, the l4 arm is regarded as a point M' connecting the l3 arm and the l5 arm, and the step S3 specifically includes the following steps:
[0080] Calculate the angle between the line segment 1' and the Y axis between the origin and point M' according to the coordinates (X1, H) and the height H in
[0081] According to the coordinates (X1, H) and the angle Calculate the length H1 of the line segment l' formed by the origin and point M',
[0082] The current one-arm triangle is determined according to the line segment 1', the l2 arm and the l3 arm, and the current one-arm triangle is: the current triangle determined by taking the coordinates (X1, H) as the reference point, the line segment 1', the current moment's l2 arm and the l3 arm to form the current line segments l2' and l3', and the current line segment l5' perpendicular to the measurement plane.
[0083] Specifically, step S4 also includes: calculating the angle ∠a' between arm l2 and the X-axis, the angle ∠b' between arm l2 and arm l3, and the angle ∠c' between arm l5 and arm l3 at the current moment according to the current arm triangle, coordinates (X1, H) and the side length formula of the triangle.
[0084] Specifically, the step S5 specifically includes the following steps:
[0085] Drive the L2 arm of the six-axis robot arm to rotate around the intersection of the L2 arm and the L1 arm by an angle α to reach the position of the reference line segment L2;
[0086] Drive the L3 arm of the six-axis robot arm to rotate around the intersection of the L2 arm and the L3 arm by an angle β to reach the position of the reference line segment L3;
[0087] Drive the six-axis robot arm's l5 arm to rotate around the target point by an angle ρ to a position parallel to the Y axis;
[0088] Wherein, α is the angle between the current line segment l2' and the target line segment l2, where ∠α = ∠a'-∠a;
[0089] β is when the l2 arm is rotated by an angle α around the intersection of the l2 arm and the l1 arm, where ∠β=∠b-∠b′;
[0090] ρ is the rotation of the l3 arm around the intersection of the l3 arm and the l2 arm by an angle β, where ∠ρ=∠c-∠c′.
[0091] The angular parameters of the target triangle are calculated according to the distance H2, the length of the target line segment l2, the length of the target line segment l3 and the side length formula of the triangle, including: the angle θ between the target line segment l2 and the target line segment l3, the angle ∠L3 between the target line segment l2 and the line segment 1, and the angle ∠L2 between the target line segment l3 and the line segment 1, where:
[0092] θ=arcos{(L2 2 +L3 2 -H1 2 ) / 2*L2*L3};
[0093] ∠L3=arcos[(L2 2 -L3 2 +H1 2 ) / 2*H1*L2];
[0094] ∠L2=arcos[L2 2 +L3 2 -H1 2 ) / 2*H1*L3];
[0095] and the angle between target line segment l5 and target line segment l3
[0096] And the angle between the target line segment l2 and the X axis
[0097] Where L2 and L3 are the lengths of the l2 arm and the l3 arm respectively.
[0098] For example, when the initial state and the target point of the six-axis robot are both located in the two-dimensional scanning coordinate system:
[0099] The two arms (L2), three arms (L3) and five arms (L5) of the six-axis robot arm are mainly used in this algorithm. All explanations and formulas in this scheme are explained with letters and symbols.
[0100] All the following descriptions only consider L2, L3 and L5 and treat the six-axis robot as a straight line.
[0101] After positioning is completed, the L5 arm is perpendicular to the X-axis in the two-dimensional scanning coordinate system.
[0102] The absolute angle of all arms in the zero state is 0°
[0103] When the six-axis robot arm moves, the right is the positive direction.
[0104] 1. Zero state
[0105] When the six-axis robot is not in working state, the system will default to zero setting and put the six-axis robot in zero state. In this state, the six-axis robot will be perpendicular to the XOY plane, and L2, L3, and L5 will form a straight line.
[0106] 2. Initial state
[0107] The initial state is the starting point of the antenna near-field test and also the end point after the test. In this state, the height of the target point is H0=800mm and the horizontal position is X=0mm.
[0108] At this time, the angle of θ, the angle of ∠L3 and the angle of ∠L2 can be calculated through the cosine theorem of mathematical trigonometric functions. The specific calculation is as follows:
[0109] ∠H0=arcos[(L2^2+L3^2-H0^2) / 2*L2*L3]
[0110] ∠L3=arcos[(L2^2-L3^2+H0^2) / 2*H0*L2]
[0111] ∠L2=arcos[(-L2^2+L3^2+H0^2) / 2*H0*L3]
[0112] 3. Movement status
[0113] In the antenna near-field test, the system needs to use the control of the six-axis robotic arm to perform a plane scan of the antenna under test with the test probe. In the plane scan, the information setting of each point in the plane (including height and horizontal position) is required. Because the accuracy of the test step is required to be within ±1mm in the test, and the circular motion of the six-axis robotic arm cannot directly bring the probe to the specified position, all tests are performed according to this algorithm for positioning and movement. For example, the specific movement process of the following movement can be seen in the following picture.
[0114] In the above movement, the algorithm is used to perform the translation movement of the target point. The specific calculation process is as follows:
[0115] 1) Under the requirement of movement, the target needs to be translated to the right by Xmm, and the height H remains unchanged, so the offset between the initial state and the moving state is X;
[0116]
[0117]
[0118] 2) Since the axis length of the six-axis robot arm is fixed, the angle between the l2 arm and the l3 arm can be deduced:
[0119] ∠HD=arcos[(L2^2+L3^2-HD^2) / 2*L2*L3]
[0120] That is: ∠HD=arcos{(L2^2+L3^2-[X / sin(arctan(X / H))]^2) / 2*L2*L3}
[0121] 3) Calculate ∠L3 at the triangle in motion:
[0122] ∠L3=arcos[(L2^2-L3^2+HD^2) / 2*HD*L2]
[0123] That is, the angle Φ between L2 and the X-axis can be deduced:
[0124]
[0125] 4) Calculate ∠L2 at the triangle in motion:
[0126] ∠L2=arcos[(L2^2+L3^2-HD^2) / 2*HD*L3]
[0127] According to the above 1)-5), we can calculate the absolute angle required to move the target point from a height of H and a horizontal position of X = 0 mm to a height of H and a horizontal position of X = 5 mm:
[0128] In the 2D scanning coordinate system:
[0129] The L2 arm rotates to a position where the angle with the Y axis is 90°-Φ;
[0130] The L3 arm rotates to a position where the angle between it and the L2 arm is ∠HD;
[0131] The L5 arm rotates to a position perpendicular to the Y axis.
[0132] In summary, according to the above calculations, we can draw the following conclusions:
[0133] When performing plane scanning, when a six-axis robotic arm is needed to translate the test probe to a fixed point, it is only necessary to know the height and horizontal position of the target point to calculate the required rotation angles of L2, L3 and L5.
[0134] To sum up, the above determination method is applicable to: the motion trajectory of the end of the six-axis robotic arm in the scanning plane is a plurality of intersecting line segments, the intersection point is the origin of the two-dimensional scanning coordinate system, and after completing a line segment trajectory, the end of the six-axis robotic arm returns to the origin and starts the motion trajectory of the next line segment passing through the origin.
[0135] For expansion, when the motion trajectory of the end of the six-axis robot arm in the scanning plane is random, if the current position information of the six-axis robot arm is not in the two-dimensional scanning coordinate system, then:
[0136] The scanning plane is a rectangular plane, and the offset also includes the rotation parameter of the l1 arm around the base, which specifically includes the following steps:
[0137] A three-dimensional coordinate system of a six-axis robot base is established according to the initial state of the six-axis robot and the scanning plane, wherein the three-dimensional coordinate system of the six-axis robot base is: the connection point of the six-axis robot arm l2 and the six-axis robot arm l1 is the coordinate origin, the initial state of the six-axis robot is the Z axis, and the plane passing through the coordinate origin and parallel to the rectangular plane is the XOY plane;
[0138] Calculate the angle λ between the line segment P1 between the end of the six-axis robot and the coordinate origin and the line segment P2 between the target point and the coordinate origin;
[0139] The angle λ is the rotation parameter of the l1 arm around the base.
[0140] A control signal is generated so that the rotation angle λ of the l2 arm around the l1 arm is such that the line segment P1 is located in the two-dimensional scanning coordinate system, thereby obtaining the position information of the end of the six-axis robot arm in the two-dimensional scanning coordinate system.
[0141] It is understandable that since the length and rotation angle of the six-axis robot arm itself have upper limits, the six-axis robot arm used in this project system has an upper limit for positioning using the plane scanning algorithm. In the zero state, the area of a circle with a radius of L2+L3 and the coordinate axis as the origin is the scanning radius. Moreover, since only a rectangular area needs to be scanned, the scanning area is approximately 2*(L2+L3)^2 when actually used according to the actual length of the six-axis robot arm.
[0142] Example 2
[0143] A positioning control device for a six-axis mechanical arm dark box, comprising:
[0144] one or more processors;
[0145] A storage unit is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors can implement the positioning method of a robotic arm dark box.
[0146] Example 3
[0147] A dark box positioning system, comprising:
[0148] A turntable, on which the antenna to be tested is placed, and the turntable can drive the antenna to be tested to rotate;
[0149] A six-axis robotic arm, wherein a probe is provided at the end of the six-axis robotic arm, and the probe is used to scan and sample the antenna to be tested;
[0150] It also includes a positioning control device, which is respectively connected to the six-axis robot arm, the turntable, and the probe for communication.
[0151] The six-axis robot controls the movement of the probe to perform a planar near-field test according to the instructions of the control device.
[0152] Specifically, the turntable is used to install the antenna to be tested, and can drive the antenna to be tested to move to a predetermined position together, and adjust the posture of the antenna to be tested according to the posture adjustment instruction of the control device;
[0153] The six-axis robotic arm can move according to the trajectory data sent by the control device to adjust the posture of the probe; in response to the six-axis robotic arm moving to a preset detection point, the probe scans the antenna to be tested according to the scanning signal sent by the control device; in response to the probe receiving the feedback signal of the antenna to be tested within the preset dwell time of the six-axis robotic arm, the six-axis robotic arm moves to the next preset detection point according to the trajectory data, so that the probe can scan the antenna to be tested again.
[0154] An antenna test data acquisition method based on positioning of a six-axis mechanical arm dark box, comprising:
[0155] Install the antenna to be tested on the turntable and the probe on the six-axis robotic arm;
[0156] Establish a communication link between the turntable and the six-axis robotic arm to obtain the current position and status of the turntable and the six-axis robotic arm; select the spatial coordinate system for antenna test data collection;
[0157] Establish the spatial coordinate relationship between the six-axis manipulator and the antenna aperture to be measured, and adjust the coordinate plane through the turntable and / or the six-axis manipulator so that the motion plane of the six-axis manipulator is parallel to the antenna aperture;
[0158] According to the spatial coordinate system, set the starting position, ending position, and number of spatial point sets of the spatial scanning of the six-axis manipulator; set the relative offset of the spatial origin coordinates of the six-axis manipulator so that the scanning center of the six-axis manipulator is located at the phase center of the antenna;
[0159] After checking that the multi-probe array antenna is in normal condition, scan it. During the scanning process, the six-axis robotic arm sends a synchronous pulse signal to the network analyzer at the preset spatial scanning position. After the network analyzer receives the synchronous pulse signal, it immediately collects amplitude and phase data and stores it in the network analyzer.
[0160] Collect near-field data of multi-probe array antennas and perform polarization compensation;
[0161] The near-field radiation pattern of the antenna to be tested is calculated using the amplitude and phase data collected by the network analyzer in step (6) and the polarization compensation data in step (6).
[0162] The six-axis robot arm of the present application is a six-axis robot arm in the prior art, specifically including a base and an arm 11, an arm 12, an arm 13, an arm 14, and an arm 15 connected in sequence on the base. The arm 11 can rotate around its own vertical central axis, the arm 12 can rotate around the connection point between the arm 12 and the arm 11, the arm 13 can rotate around the connection point between the arm 13 and the arm 12, the arm 14 can rotate around its own vertical central axis, and the arm 15 can rotate around the connection point between the arm 14 and the arm 15. When the arm 11, the arm 12, the arm 13, the arm 14, and the arm 15 are in the zero state, their projections in the two-dimensional scanning coordinate system are regarded as a straight line.
[0163] Embodiment 4, a computer-readable storage medium, having a computer program stored thereon, wherein the computer program, when executed by a processor, can implement the method for positioning a robotic arm darkroom.
[0164] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. According to the technical essence of the present invention, within the spirit and principles of the present invention, any simple modification, equivalent replacement and improvement made to the above embodiment still falls within the protection scope of the technical solution of the present invention.
Claims
1. A six-axis robot arm dark box positioning method, characterized in that: Used to control a six-axis robot, the six-axis robot includes an arm l1 rotating around its own central axis, and a moving part that swings in an arc relative to the arm l1, the moving part includes an arm l2, an arm l3, an arm l4 and an arm l5 connected in sequence, to establish a two-dimensional scanning coordinate system: the connection point between the arm l2 and the arm l1 of the six-axis robot is used as the coordinate origin, the initial state of the six-axis robot is used as the Y axis, and the line connecting the projection point of the target point along the Y axis direction and the coordinate origin is used as the X axis, and the plane rectangular coordinate system established is a two-dimensional scanning coordinate system, wherein: the initial state of the six-axis robot is: the arm l2, the arm l3 and the arm l5 of the six-axis robot are in a straight line, and the straight line is perpendicular to the outermost plane where the antenna to be measured is located, and specifically includes the following steps: S1, obtaining the position information of the free end of the l5 arm at the current moment, wherein the motion trajectory of the free end of the l5 arm is in the same plane; the coordinates of the position information of the free end of the l5 arm at the current moment in the two-dimensional scanning coordinate system are (X1, H), the offset is X, and the coordinates of the position information of the free end of the l5 arm at the next moment in the two-dimensional scanning coordinate system are (X2, H), wherein X=X2-X1; S2, importing the offset of the free end of the l5 arm at the next moment, and calculating the position information of the free end of the l5 arm at the next moment according to the offset of the free end of the l5 arm; S3, determining the current one-arm triangle according to the position information of the free end of arm l5 at the current moment, and the arm lengths of arm l2, arm l3 and arm l5; S4, determining the target one-arm triangle according to the position information of the free end of arm 15 at the next moment, the arm lengths of arm 12, arm 13 and arm 15, the coordinates (X1, H) and coordinates (X2, H) are both located in the first quadrant of the two-dimensional scanning coordinate system, and at the next moment, arm 14 is regarded as a point M connecting arm 13 and arm 15, X2>X1, and step S4 specifically includes the following steps: Calculate the angle between the line segment l and the Y axis between the origin and point M according to the coordinates (X2, H) and the height H in According to the coordinates (X2, H) and the angle Calculate the length H2 of line segment l, Determine a target one-arm triangle according to line segments l, l2 arm and l3 arm, wherein the target one-arm triangle is: a target triangle determined by taking coordinates (X2, H) as reference points, line segment l, target line segments l2 and l3 formed by the next moment l2 arm and l3 arm, and a target line segment l5 perpendicular to the measurement plane; S5, determining a step offset according to the current triangle and the target triangle, wherein the step offset includes a rotation angle α of the l2 arm, a rotation angle β of the l3 arm, and a rotation angle ρ of the l5 arm; S6. According to the rotation angle α of the L2 arm, the rotation angle β of the L3 arm and the rotation angle ρ of the L5 arm, the L2 arm, the L3 arm and the L5 arm of the six-axis robot arm are step-controlled to move to the target point respectively.
2. A six-axis robot dark box positioning method according to claim 1, characterized in that: The step S4 also includes: calculating the angle ∠a between the l2 arm and the X-axis, the angle ∠b between the l2 arm and the l3 arm, and the angle ∠c between the l5 arm and the l3 arm at the next moment according to the target one-arm triangle, the coordinates (X2, H) and the side length formula of the triangle.
3. A six-axis robot dark box positioning method according to claim 2, characterized in that: At the current moment, the l4 arm is regarded as a point M' connecting the l3 arm and the l5 arm, and the step S3 specifically includes the following steps: Calculate the angle between the line segment l' and the Y axis between the origin and point M' according to the coordinates (X1, H) and the height H in According to the coordinates (X1, H) and the angle Calculate the length H1 of the line segment l' formed by the origin and point M', The current one-arm triangle is determined according to the line segments l', l2 arm and l3 arm, and the current one-arm triangle is: the current triangle determined by taking the coordinates (X1, H) as the reference point, the line segment l', the current moment l2 arm and l3 arm formed by the current line segments l2' and l3', and the current line segment l5' perpendicular to the measurement plane.
4. A six-axis robot dark box positioning method according to claim 3, characterized in that: The step S4 also includes: calculating the angle ∠a' between the l2 arm and the X-axis, the angle ∠b' between the l2 arm and the l3 arm, and the angle ∠c' between the l5 arm and the l3 arm at the current moment according to the current one-arm triangle, the coordinates (X1, H) and the side length formula of the triangle.
5. A six-axis robot dark box positioning method according to claim 4, characterized in that: The step S5 specifically comprises the following steps: Drive the L2 arm of the six-axis robot arm to rotate around the intersection of the L2 arm and the L1 arm by an angle α to reach the position of the target line segment L2; Drive the L3 arm of the six-axis robot arm to rotate around the intersection of the L2 arm and the L3 arm by an angle β to reach the position of the target line segment L3; Drive the six-axis robot arm's l5 arm to rotate around the target point by an angle ρ to a position parallel to the Y axis; Wherein, α is the angle between the current line segment l2' and the target line segment l2, where ∠α = ∠a'-∠a; β is when the l2 arm is rotated by an angle α around the intersection of the l2 arm and the l1 arm, where ∠β=∠b-∠b′; ρ is the rotation of the l3 arm around the intersection of the l3 arm and the l2 arm by an angle β, where ∠ρ=∠c-∠c′.
6. A positioning control device for a six-axis robot arm dark box, characterized in that: include: one or more processors; A storage unit, used to store one or more programs, which, when executed by the one or more processors, enable the one or more processors to implement a positioning method for a six-axis robotic arm dark box according to any one of claims 1 to 5.
7. A dark box positioning system, used to implement the six-axis robot arm dark box positioning method as claimed in claim 1, characterized in that: include: A turntable, on which the antenna to be tested is placed, and the turntable can drive the antenna to be tested to rotate; A six-axis robotic arm, wherein a probe is provided at the end of the six-axis robotic arm, and the probe is used to scan and sample the antenna to be tested; It also includes a positioning control device, which is respectively connected to the six-axis robot arm, the turntable, and the probe for communication. The six-axis robot controls the movement of the probe to perform a planar near-field test according to the instructions of the control device.
