Hole site coordinate collection method, system, device and storage medium

By combining fixed path file acquisition with force control mode, the problems of poor repeatability and long error chain in hole position coordinate acquisition are solved, achieving accurate reproduction of hole position coordinates and precise control of contact force, significantly reducing overall error and improving the consistency of batch acquisition data.

CN123175128APending Publication Date: 2026-11-27GUANGZHOU AIMUYI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611380739.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-07
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing methods for acquiring borehole coordinates rely on human experience, resulting in poor repeatability, long error chains, and difficulty in rapid retesting. They cannot guarantee accurate reproduction of geometric paths and precise control of contact forces without relying on recalibration.

Method used

By acquiring a preset fixed path file, which includes the needle insertion pose, pre-contact pose, approach direction and target contact force, the robotic arm is controlled to move along the fixed path to the pre-contact pose and then switch to force control mode. The feed amount is adjusted according to the end force feedback value, and the real-time coordinates of the needle tip in a stable state are acquired and filtered.

Benefits of technology

It ensures the accuracy and consistency of borehole coordinate acquisition without relying on recalibration, reduces overall error, and improves data reproducibility and batch acquisition efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123175128A_ABST
    Figure CN123175128A_ABST
Patent Text Reader

Abstract

The application discloses a hole site coordinate collection method applied to an optical positioning system and a mechanical arm automatic collection device. The method comprises the following steps: acquiring a preset fixed path file; controlling the mechanical arm to replay to a pre-contact pose of a current sampling point according to the fixed path file; switching to a force control mode, controlling the mechanical arm to feed at a low speed along an approaching direction, and adjusting a feeding amount according to a deviation between an end force feedback value and a target contact force until a real-time contact force of the mechanical arm end reaches the target contact force and maintains a stable state; acquiring continuously output needle tip real-time coordinates, and screening and recording the needle tip real-time coordinates according to a change amount of the needle tip real-time coordinates. The application can solve the coordinate error problem caused by unstable contact force, needle tip shaking and small tooling deviation in batch sampling, effectively reduce the comprehensive error, significantly improve the repeatability and data comparability of batch collection, and adapt to the precision test scene requirement of the optical positioning system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to industrial automatic control, and in particular to a method, system, device, and storage medium for acquiring hole position coordinates. Background Technology

[0002] Accuracy testing of optical positioning systems requires a robotic arm to insert a needle tip into a standard hole array and collect hole position coordinates. Tooling deviations, unstable contact forces, and needle tip deformation can easily lead to data distortion. Fixed-path acquisition can decouple robotic arm movement from optical measurement and reproduce the preset needle insertion posture, but it is still affected by contact force, slight tooling deviations, needle tip deformation, and wear. All three existing acquisition methods have limitations: handheld acquisition has low efficiency and poor repeatability; automatic acquisition using hand-eye calibration is prone to error accumulation and requires recalibration after displacement; and pure force feedback stamping is still affected by path and clamping deviations.

[0003] Therefore, existing methods suffer from problems such as poor repeatability due to reliance on human experience, or long error chains and difficulty in rapid retesting due to over-reliance on calibration. Summary of the Invention

[0004] The main objective of this invention is to provide a method, system, device, and storage medium for acquiring borehole coordinates, aiming to solve the technical problem of how to simultaneously ensure accurate reproduction of geometric paths and precise control of contact forces without relying on recalibration, so as to reduce overall errors.

[0005] To achieve the above-mentioned objectives, the first aspect of the present invention proposes a method for acquiring hole position coordinates. The method includes: acquiring a preset fixed path file, wherein the fixed path file includes the needle insertion pose, pre-contact pose, approach direction and target contact force corresponding to each acquisition point, and the fixed path file is generated through actual hole position teaching, wherein the needle insertion pose is the actual physical pose of the end effector TCP of the robotic arm during teaching. The robotic arm is controlled to replay the pre-contact pose of the current sampling point according to the fixed path file; At the pre-contact pose, switch to force control mode, set the desired end contact force as the target contact force, control the robotic arm to feed slowly along the approach direction, and adjust the feed amount according to the deviation between the end force feedback value and the target contact force until the real-time contact force at the end of the robotic arm reaches the target contact force and remains stable. The system acquires the real-time coordinates of the needle tip through continuous output, filters the real-time coordinates of the needle tip based on the change in the real-time coordinates of the needle tip, records the valid data acquired after filtering, and controls the robotic arm to exit in reverse after recording is completed.

[0006] The second aspect of this invention provides a hole position coordinate acquisition system, including a robotic arm, an optical positioning system, and a host controller; The optical positioning system is set on the fixed side of the environment and is used to output the spatial coordinates of the marked points on the needle tip tool in real time; The host controller is communicatively connected to the robotic arm and the optical positioning system, and is used to execute the hole position coordinate acquisition method.

[0007] A third aspect of the present invention provides a borehole coordinate acquisition device, the borehole coordinate acquisition device comprising: The path acquisition module is used to acquire a preset fixed path file. The fixed path file includes the needle insertion pose, pre-contact pose, approach direction and target contact force corresponding to each sampling point. The fixed path file is generated through actual hole position teaching. The needle insertion pose is the actual physical pose of the end effector TCP of the robotic arm during teaching. The path playback and positioning module is used to control the robotic arm to play back to the pre-contact pose of the current sampling point according to the fixed path file; The force-controlled feed module switches to force control mode at the pre-contact pose, sets the desired end contact force as the target contact force, controls the robotic arm to feed at low speed along the approach direction, and adjusts the feed amount according to the deviation between the end force feedback value and the target contact force until the real-time contact force at the end of the robotic arm reaches the target contact force and remains stable. The coordinate filtering module is used to acquire the continuously output real-time coordinates of the needle tip, filter the real-time coordinates of the needle tip according to the change of the real-time coordinates of the needle tip, record the valid data obtained after filtering, and control the robotic arm to exit in reverse after the recording is completed.

[0008] A fourth aspect of the present invention provides a storage medium storing a hole position coordinate acquisition program, wherein the hole position coordinate acquisition program is executed by a processor to implement the hole position coordinate acquisition method.

[0009] Beneficial effects: The hole position coordinate acquisition method of this invention obtains a fixed path file containing the needle insertion posture, approach direction, and target contact force at each sampling point. This ensures that the robot arm's motion reference originates from physical teaching at the actual workstation rather than relying on hand-eye calibration files, thus solving the calibration dependency problem. The robot arm moves to the pre-contact posture along the fixed path, ensuring accurate reproduction of the macroscopic path. By reading the end-effector force feedback value in real time and adjusting the feed rate in a closed loop, the needle tip smoothly contacts the hole with a preset target contact force. This avoids needle tip deformation and hole wall wear caused by rigid impact under pure position control, and eliminates the random error of inconsistent contact force during manual operation. Continuous coordinates are acquired only under stable force conditions and filtered according to changes, effectively eliminating vibration and jitter interference at the moment of contact, ensuring that the recorded coordinates are the true spatial coordinates when the needle tip is in stable contact with the hole. This achieves simultaneous assurance of path reproduction accuracy and contact force consistency without relying on recalibration, significantly reducing overall error and improving the consistency and reproducibility of batch data acquisition. Attached Figure Description

[0010] Figure 1 This is a flowchart illustrating an embodiment of the present invention; Figure 2 This is a schematic diagram of the force-controlled feed process according to an embodiment of the present invention; Figure 3 This is a schematic diagram of the safety force upper limit monitoring process according to an embodiment of the present invention; Figure 4 This is a schematic diagram of the coordinate filtering process according to an embodiment of the present invention; Figure 5 This is a schematic diagram of a fixed-path file generation process according to an embodiment of the present invention; Figure 6 This is a schematic diagram of the correction hole compensation process according to an embodiment of the present invention; Figure 7 This is a schematic diagram of a report generation process according to an embodiment of the present invention; Figure 8 This is a schematic diagram of the hole position coordinate acquisition system of the present invention; Figure 9 This is a schematic diagram of the module structure of the hole position coordinate acquisition device of the present invention.

[0011] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0012] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0013] Those skilled in the art will understand that, unless specifically stated otherwise, the singular forms “a,” “an,” “the,” and “the” used herein may also include the plural forms. It should be further understood that the term “comprising” as used in this specification means the presence of features, integers, steps, operations, elements, modules, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, modules, components, and / or groups thereof. It should be understood that when we say an element is “connected” or “coupled” to another element, it can be directly connected or coupled to the other element, or there may be intermediate elements. Furthermore, “connected” or “coupled” as used herein can include wireless connections or wireless coupling. The term “and / or” as used herein includes all or any modules and all combinations of one or more associated listed items.

[0014] It will be understood by those skilled in the art that, unless otherwise defined, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. It should also be understood that terms such as those defined in general dictionaries should be understood to have the same meaning as in the context of the prior art, and should not be interpreted in an idealized or overly formal sense unless specifically defined as herein.

[0015] Reference Figure 1 This invention provides a method for acquiring borehole coordinates, comprising the following steps S1-S4: S1: Obtain a preset fixed path file. The fixed path file includes the needle insertion pose, pre-contact pose, approach direction, and target contact force corresponding to each sampling point. The fixed path file is generated through actual hole position teaching. The needle insertion pose is the actual physical pose of the end effector TCP of the robotic arm during teaching.

[0016] This invention relates to a hole position coordinate acquisition method applied to the accuracy testing of optical positioning systems. The optical positioning system includes a binocular or multi-lens near-infrared camera module for real-time tracking of optical markers on a needle tip tool and outputting the three-dimensional coordinates of the needle tip in the positioning system. A needle tip tool is mounted at the end of a robotic arm, which has a built-in or external force / torque sensing unit for real-time detection of the contact force between the needle tip and the tooling.

[0017] The fixed path file is pre-generated at the test station via a teaching method. This file contains the needle insertion pose, pre-contact pose, approach direction, and target contact force corresponding to each sampling point. Specifically, the needle insertion pose is the pose data of the tool center point (TCP) of the robotic arm end effector in the robotic arm's base coordinate system when the needle tip is aligned with the target standard hole, or equivalently recorded as the angle values ​​of each joint of the robotic arm. The approach direction is the axial direction when the needle tip is inserted into the standard hole, expressed as a unit direction vector relative to the robotic arm's base coordinate system. The target contact force is the preset expected force value when the needle tip contacts the hole, in Newtons.

[0018] The fixed path file also contains the pre-contact pose of each sampling point. This pose is obtained by offsetting the needle insertion pose by a preset distance in the opposite direction of the approach direction. It is located above the target hole or outside the needle insertion direction. The needle tip has not yet contacted the tooling at this pose and is in a ready position to approach the hole.

[0019] The fixed path file further includes obstacle avoidance transition points between each sampling point, which are used to guide the robotic arm to move along a safe path when switching sampling points, avoiding collisions with tooling or other obstacles.

[0020] In addition, the fixed path file also contains the following fields: hole number label, used to identify the specific sampling point number in the standard hole array; force control parameters, including target contact force, allowable force fluctuation, safe force limit and holding time; coordinate stability criteria, including the threshold for continuous reading of coordinate change and the number of samplings.

[0021] Since the needle insertion pose in the fixed path file is recorded at the actual workstation via teaching, it inherently contains the actual installation position information of the tooling. Therefore, during the subsequent data acquisition phase, when the robotic arm replays the data according to this file, it can accurately reach each hole position without relying on the hand-eye calibration matrix. Specifically, in the path planning phase, the operator controls the robotic arm to move the needle tip tool sequentially to each standard hole position by dragging and teaching or by low-speed jogging, ensuring that the needle tip is accurately inserted into or aligned with the target hole. At each hole position, the robotic arm controller directly records the current angle values ​​of each joint and the pose matrix of the end effector TCP in the robotic arm's base coordinate system, which serves as the needle insertion pose for that data acquisition point.

[0022] S2: Control the robotic arm to replay the pre-contact pose of the current sampling point according to the fixed path file.

[0023] The playback refers to the robotic arm directly reproducing the motion according to the pre-saved physical pose (including joint angles and TCP pose) and transition path in the fixed path file during data acquisition, rather than recalculating the needle insertion pose of each hole position through the coordinate transformation relationship calibrated by hand and eye. In playback mode, the robotic arm's motion reference comes from the actual physical pose recorded during the teaching phase, and is independent of the real-time measurement results of the optical positioning instrument.

[0024] Specifically, after the host controller loads the fixed path file, it parses the pre-contact pose data of the current sampling point and converts it into motion commands executable by the robotic arm. This commands control the robotic arm to move from its current position through a transition point to the pre-contact pose of the sampling point. This motion process employs position control mode, performing trajectory interpolation according to the pose data recorded in the path file. Linear interpolation or spline interpolation can be used to ensure smooth and jitter-free robotic arm movement. When the robotic arm reaches the pre-contact pose, a safe distance is maintained between the needle tip and the tooling; they have not yet made contact. This pose provides the starting position for subsequent force-controlled feed.

[0025] S3: At the pre-contact pose, switch to force control mode, set the desired end contact force as the target contact force, control the robotic arm to feed slowly along the approach direction, and adjust the feed amount according to the deviation between the end force feedback value and the target contact force until the real-time contact force at the end of the robotic arm reaches the target contact force and remains stable.

[0026] In this step, the control mode of the robotic arm is switched from position control to force control mode. Force control mode can employ admittance control or impedance control, ensuring that the end effector contact force follows a preset target value. For ease of understanding, admittance control will be used as an example below; however, those skilled in the art should understand that other types of force control modes are equally applicable to this invention.

[0027] At the pre-contact pose, the desired end-effector contact force is set as the target contact force. The admittance controller uses the deviation between the desired force and the actual feedback force as input, and calculates the output positional fine-tuning along the approach direction using the admittance control algorithm. The actual feedback force is read in real time by a force / torque sensor mounted on the end effector of the robotic arm or built into the joint of the robotic arm, with a sampling frequency of up to 500Hz. The parameters of the admittance controller are pre-tuned according to the tip material, tooling material, and desired compliance characteristics to ensure that the contact process is neither too stiff, causing impact, nor too stiff, resulting in sluggish response.

[0028] During force-controlled feeding, the robotic arm feeds at a low speed along the approach direction (hole axis direction), and the needle tip gradually penetrates deeper along the hole axis direction until it contacts the bottom surface of the standard hole, at which point the contact force gradually increases. The force / torque sensing unit reads the contact force between the needle tip and the tooling in real time at a preset sampling frequency. When the real-time contact force reaches the target contact force and remains within the force stability range for the force stability holding time, it is determined that a stable contact state has been established. This target contact force is the axial contact force along the hole axis direction.

[0029] The real-time contact force is the projected component of the end-effector force in the approach direction after zero-point and gravity compensation. Specifically, the raw six-dimensional force data read by the force / torque sensing unit is first deducted from the no-load zero-point offset, and then compensated according to the weight of the end-effector tool. The lateral force component perpendicular to the approach direction is filtered out, and only the component along the approach direction is retained as the real-time contact force. This real-time contact force is used for axial force closed-loop control to eliminate the interference of tool weight, installation posture, and lateral contact force on axial force control.

[0030] Preferably, the target contact force is set within the range of 1 to 5 Newtons, the force stability range is set to the target contact force ± 0.2 Newtons, and the force stability holding time is set to more than 0.5 seconds to eliminate instantaneous impact and vibration interference.

[0031] During force-controlled feeding, the real-time contact force is continuously compared with the preset safety force limit. If the real-time contact force exceeds the safety force limit, it indicates that an abnormal obstruction or needle tip jamming may have occurred during feeding. At this time, the admittance controller immediately outputs a reverse position fine-tuning amount, controlling the robotic arm to retract in the reverse direction of the approach and exiting the force-controlled mode. The abnormal state is recorded for subsequent analysis. The value of the safety force limit is determined based on the strength of the needle tip material and the tooling material, and is preferably set to 10 Newtons. This mechanism effectively avoids needle tip deformation and tooling wear caused by rigid impact, extending the tool's service life.

[0032] S4: Obtain the real-time coordinates of the continuously output needle tip, filter the real-time coordinates of the needle tip according to the change amount of the real-time coordinates of the needle tip, record the valid collected data after filtering, and control the robotic arm to exit in reverse after recording is completed.

[0033] While maintaining force control mode and keeping the contact force stable, the optical positioning system continuously outputs the three-dimensional spatial coordinates of the optical markers on the needle tip tool at a preset sampling frequency. The optical positioning system identifies passive reflective marker balls or active luminous markers on the needle tip tool, calculates the three-dimensional coordinates of the markers in the positioning instrument coordinate system using the principle of triangulation, and then deduces the three-dimensional spatial coordinates of the needle tip reference point based on the tool parameters calibrated at the factory.

[0034] The specific process of coordinate selection is as follows: The real-time coordinates of the needle tip are continuously output N times at a preset sampling frequency, where N is an integer greater than or equal to 2, preferably set to 5 or 10. The change in Euclidean distance between two adjacent coordinates in these N real-time coordinates is calculated, that is, the spatial distance between the i-th and (i+1)-th sampled coordinates is calculated respectively. When the change in Euclidean distance between all two adjacent coordinates is less than the coordinate stability threshold, it indicates that the needle tip has reached a stable state in space. At this time, the average of these N real-time coordinates is taken as valid data and recorded. When the change in Euclidean distance between any two adjacent coordinates is greater than or equal to the coordinate stability threshold, it indicates that the needle tip is still in a jittering or drifting state. At this time, the current data is not recorded, force-controlled contact is maintained, and the process waits for the next round of sampling judgment. Preferably, the coordinate stability threshold is set to 0.15 mm to balance acquisition accuracy and efficiency.

[0035] After recording is complete, the robotic arm is controlled to retract in the opposite direction of the approach direction. During the retraction process, the needle is first slowly retracted in force control mode until the contact force is zero, and then switched to position control mode to raise it to a safe height, ready to move to the next sampling point or end the sampling. If residual contact force is detected during the needle retraction process, force control mode is maintained until the force is zero before switching to position control mode to avoid impact caused by jamming during needle retraction.

[0036] The steps S1 to S4 above together constitute the complete acquisition process for a single sampling point. For each sampling point in the fixed path file, repeating steps S2 to S4 will complete the batch acquisition of all holes. Safe switching between sampling points is achieved through obstacle avoidance transition points recorded in the path file, ensuring that the robotic arm will not collide with the tooling when moving between holes.

[0037] After the coordinate recording in step S4 is completed, a data report generation step is preferably included. Specifically, valid acquisition data of all sampling points are obtained, and the positional deviation between the valid acquisition data of each sampling point and the standard hole reference coordinates of the corresponding sampling point in the fixed path file is calculated. The positional accuracy index of this batch acquisition is calculated based on all positional deviations, including but not limited to mean error and root mean square error. Finally, a batch acquisition report containing the hole number of each sampling point, valid acquisition data, positional deviation, and positional accuracy index is generated. This report can be directly used for the accuracy evaluation of the optical positioning system without the need for manual data processing.

[0038] The control logic and data processing in each of the above steps are executed by the host controller. The host controller is communicatively connected to both the robotic arm and the optical positioning system, receiving force feedback data from the force / torque sensing unit and coordinate data from the optical positioning system in real time, and synchronously sending motion control commands to the robotic arm. The timing relationships between each step are uniformly managed by the scheduling logic of the host controller.

[0039] Reference Figure 2In one embodiment, the step S3 above, which adjusts the feed amount based on the deviation between the end-effector force feedback value and the target contact force until the real-time contact force at the end of the robotic arm reaches the target contact force and maintains a stable state, includes S31-S32: S31: The real-time read end force feedback value is used as the input of the admittance controller, and the admittance controller calculates and outputs the position fine adjustment amount along the approach direction, the position fine adjustment amount being the feed amount of the robotic arm.

[0040] Force control mode is specifically implemented using admittance control. Admittance control is a force / position hybrid control strategy. Its core idea is to establish a dynamic relationship between force and motion so that the end effector of the robotic arm exhibits the desired compliance characteristics when it comes into contact with the external environment.

[0041] After the robotic arm reaches the pre-contact pose, the host controller sets the desired force input parameter of the admittance controller to the target contact force value of that sampling point recorded in the fixed path file. The target contact force is preset according to the physical properties of the needle tip tool and the tooling material, preferably set in the range of 1 to 5 Newtons.

[0042] During this stage, the robotic arm remains in a locked position. The admittance controller initializes with the desired force as the target value, and the force / torque sensing unit simultaneously begins monitoring the current static contact force. Since the needle tip has not yet contacted the tooling, the measured contact force should be approximately zero. If the measured contact force deviates from zero, force sensor zero-point calibration is first performed to reset the current reading to zero and eliminate the influence of sensor drift. Specifically, force zero-point calibration reads the no-load force / torque as the zero-point offset before acquisition and subtracts this offset value in subsequent contact force determination, thereby reducing the impact of tool weight, installation angle, and sensor drift on the accuracy of contact force measurement.

[0043] During the closed-loop control process of the admittance controller, the force / torque sensing unit reads the actual contact force between the needle tip and the tooling in real time at a preset sampling frequency. This actual contact force value is input to the admittance controller as a feedback quantity. The admittance controller uses the difference between the desired contact force and the actual contact force as an error signal, which is then used by the admittance control algorithm to calculate the position fine-tuning amount along the approach direction. Specifically, the admittance control algorithm presets inertial parameters, damping parameters, and stiffness parameters, which together determine the response characteristics of the robotic arm to external contact forces. When the actual contact force is lower than the desired value, the position fine-tuning amount is positive, indicating that the robotic arm should feed further along the approach direction; when the actual contact force is higher than the desired value, the position fine-tuning amount is negative, indicating that the robotic arm should retract slightly in the opposite direction along the approach direction.

[0044] In a preferred embodiment of the present invention, the parameter tuning of the admittance controller is determined comprehensively based on the robotic arm model, the needle tip tool material, and the tooling material. The three core parameters of the admittance controller (inertia parameter, damping parameter, and stiffness parameter) control the acceleration characteristics, velocity characteristics, and elastic characteristics during the contact force response process, respectively. The inertia parameter determines the acceleration response sensitivity of the end-effector position adjustment when the contact force changes; a larger inertia parameter results in a smoother response but increases tracking delay. The damping parameter determines the convergence speed at which the system tends to stabilize; a larger damping parameter leads to faster oscillation decay. The stiffness parameter determines the proportional relationship between the contact force deviation and the position correction amount; a larger stiffness parameter results in a smaller output position fine-tuning amount under the same force deviation.

[0045] The specific values ​​of the above parameters are obtained through experimental tuning based on the robot arm model, needle tip tool material, and tooling material. The tuning principle is as follows: under no-load conditions, gradually adjust the stiffness parameter to make the force response sensitivity moderate, then adjust the damping parameter to make the system converge to the target value without overshoot, and finally adjust the inertia parameter to optimize the response speed.

[0046] S32: The admittance controller controls the robotic arm to feed at a low speed according to the position fine-tuning amount, so that the real-time contact force gradually approaches and stabilizes at the target contact force.

[0047] The robotic arm executes corresponding movements based on the position fine-tuning output from the admittance controller. During force-controlled feeding, the position fine-tuning is done in small steps. After each adjustment, the contact force is allowed to stabilize before the next adjustment is made, allowing the contact force to gradually approach the target value and avoiding sudden changes in contact force caused by excessively large feed steps. As the robotic arm gradually feeds along the approach direction, the contact force between the needle tip and the bottom surface of the standard hole gradually increases. During this process, the admittance controller continuously compares the actual contact force with the target contact force and continuously outputs new position fine-tuning values, forming a closed-loop adjustment process.

[0048] When the actual contact force reaches the target contact force and remains within the force stability range for a period of time, the force control state is determined to be stable. At this point, the admittance controller stops outputting the position fine-tuning amount in the feed direction and keeps the current contact state unchanged.

[0049] The above steps S31 to S32 achieve precise control of the contact force through admittance control, ensuring that the contact force between the needle tip and the bottom surface of the standard hole remains consistent during each sampling. This eliminates the coordinate error caused by the difference in contact force under manual operation or pure position control, and provides a unified contact boundary condition for subsequent coordinate acquisition.

[0050] Reference Figure 3 In one embodiment, S32 above includes S321-S322: S321: The admittance controller controls the robotic arm to feed at low speed according to the position fine-tuning amount, and continuously compares the real-time contact force with the preset safety force upper limit.

[0051] During the low-speed feed driven by the admittance controller, the host controller continuously monitors the six-dimensional force data output by the force / torque sensing unit, extracts the component along the approach direction (i.e., real-time contact force) for axial force closed-loop control, and compares the real-time contact force with the preset safety force upper limit in the fixed path file. The value of the safety force upper limit is preset based on the tip material strength and tooling tolerance, preferably set to 10 Newtons. This comparison operation is performed in parallel with the position fine-tuning calculation of the admittance controller, without interfering with the normal closed-loop adjustment of the admittance controller.

[0052] S322: If the real-time contact force exceeds the upper limit of the safety force, the admittance controller outputs a reverse position fine adjustment amount to control the robotic arm to retract in the reverse direction along the approach direction.

[0053] When the real-time contact force exceeds the upper limit of the safety force, it indicates that abnormal resistance has occurred during the feeding process. Possible causes include oblique jamming of the needle tip against the hole wall, the needle tip hitting the edge of the hole due to path deviation, or unexpected displacement of the tooling. At this time, the admittance controller immediately stops outputting the position fine-tuning amount in the feed direction and instead outputs the position fine-tuning amount in the opposite direction, instructing the robotic arm to retreat a preset safety distance at a relatively fast speed in the opposite direction of the approach direction. During the retreat process, the host controller continues to monitor the contact force value, confirming that the contact force continues to decrease until it reaches zero.

[0054] Simultaneously, the upper-level controller records the abnormal status of the sampling point, including the time of the abnormality, the peak contact force, and the current sampling point number, for subsequent data analysis or manual intervention. After the retraction is completed, the robotic arm exits the force control mode and switches back to the position control mode, remaining at a safe height awaiting the next instruction.

[0055] The safety force upper limit monitoring mechanism and the normal force closed-loop adjustment of admittance control are independent yet coordinated: the axial force closed loop is responsible for accurately adjusting the target contact force within the normal operating range; the lateral force and total resultant force monitoring, as an independent safety protection layer, are responsible for monitoring abnormal contact states. The total resultant force is the magnitude of the composite vector of the three force components in the end direction (i.e., the force components in the three orthogonal directions in the tool coordinate system measured by the force / torque sensing unit), and the lateral force component is the resultant force perpendicular to the approach direction. The value of the safety force upper limit corresponds to the safety boundary of the total resultant force, while the lateral force component is compared with a preset lateral force threshold.

[0056] Within the normal contact force range, the admittance controller performs compliant force control according to preset inertia, damping, and stiffness parameters. When the real-time contact force exceeds the limit (i.e., the total resultant force exceeds the limit), the safety monitoring mechanism takes precedence over the force control closed loop and forcibly executes a retraction action. If the lateral force component continuously exceeds the preset threshold, the system records the abnormal information but does not immediately trigger retraction to avoid false triggering caused by brief lateral disturbances. The system then prompts the operator to check after the current sampling point is completed. This dual-protection design effectively avoids needle tip bending, breakage, or tool hole wall damage caused by abnormal resistance, extending tool life. At the same time, it ensures that even if occasional abnormalities occur during batch sampling, the entire sampling process will not be interrupted.

[0057] Reference Figure 4 In one embodiment, S4 above includes S41-S42: S41: During the period when the real-time contact force maintains the stable state, the real-time coordinates of the needle tip are continuously output N times at a preset sampling frequency, and the change in Euclidean distance between two adjacent coordinates in the N real-time coordinates is calculated.

[0058] Assuming the contact force remains stable, the optical positioning system continuously acquires the real-time coordinates of the needle tip N times at a preset sampling frequency, and calculates the change in Euclidean distance between two adjacent coordinates, i.e., the three-dimensional spatial distance between the i-th and i+1-th sampled coordinates. This change characterizes the spatial displacement amplitude of the needle tip within the sampling interval, reflecting whether the needle tip is truly stationary.

[0059] In a preferred embodiment of the present invention, the specific determination process for coordinate stability screening is as follows: Assuming the coordinate stabilization threshold is set to 0.15 mm, the number of samples N is set to 5, and the sampling frequency of the optical positioning system is 20 Hz, meaning a set of real-time needle tip coordinates is output every 50 milliseconds. After the contact force has stabilized, the host controller starts the coordinate filtering timer and buffers the 5 consecutively acquired real-time needle tip coordinates.

[0060] The following is a typical example of a coordinate selection and determination process. Assume that the real-time coordinates of the needle tip output by the optical positioning system for five consecutive times are as follows: 1st time (100.001, -50.002, 200.003), 2nd time (100.003, -50.001, 200.001), 3rd time (100.102, -50.105, 200.095), 4th time (100.104, -50.103, 200.098), 5th time (100.102, -50.101, 200.096), all in millimeters.

[0061] The host controller sequentially calculates the change in Euclidean distance between two adjacent coordinate measurements. The Euclidean distance between the first and second coordinate measurements is... Millimeters, less than 0.15 millimeters. The Euclidean distance between the second and third coordinates is... The value is greater than 0.15 mm. Since there are values ​​greater than the coordinate stability threshold among adjacent coordinate changes, it indicates that significant displacement fluctuations occurred at the needle tip during the second to third sampling interval, possibly caused by minute vibrations or optical measurement noise. At this point, the upper-level controller determines that the coordinates have not yet reached a stable state, does not record the current data, continues force-controlled contact, and waits for the next round of sampling.

[0062] In the next sampling cycle, the host controller reacquires five consecutive real-time coordinates of the needle tip. Assume the five reacquired coordinates are: 1st (100.102, -50.101, 200.096), 2nd (100.103, -50.102, 200.095), 3rd (100.105, -50.103, 200.097), 4th (100.104, -50.102, 200.096), and 5th (100.105, -50.104, 200.098). The changes in adjacent coordinates are all less than 0.15 mm. Based on this, the host controller determines that the needle tip is in a stable state in space and takes the arithmetic mean of these five coordinates (100.104, -50.102, 200.096) as the valid data for that sampling point and records it.

[0063] In the example above, if the contact force remains stable but the coordinates consistently fail to meet the stability threshold, the host controller will wait until the coordinates meet the stability condition. If the force-controlled feed displacement exceeds the preset maximum approach distance, or the waiting time exceeds the preset timeout threshold, the hole will be recorded as an abnormal sampling point according to the abnormal handling mechanism.

[0064] Preferably, the coordinate stability threshold of 0.15 mm takes into account the static repeatability of the optical positioning system and the requirements of the testing standards. When the static repeatability of the optical positioning system is 0.12 mm, the 0.15 mm threshold can effectively filter out random noise based on the accuracy margin, while avoiding the reduction in acquisition efficiency due to the inability to determine stability for a long time because the threshold is too small. The sampling number N is dynamically adjusted according to the actual noise level: when the measurement noise is low, it can be set to 5 times to speed up the acquisition speed; when the measurement noise is high, it can be set to 10 times to obtain a smoother average result. The above adjustments are automatically completed by the host controller based on real-time data or preset by the operator according to the actual test conditions.

[0065] In practice, the coordinate selection process runs in parallel with force control. That is, while the optical positioning system samples the coordinates, the force / torque sensing unit continues to monitor the contact force at a sampling frequency of 500 Hz, ensuring that the contact force remains within the target force range throughout the coordinate stabilization process. If the contact force deviates from the stable range during the coordinate stabilization period, the coordinate selection process is reset and restarted once the contact force stabilizes again, ensuring that the final recorded data simultaneously satisfies both force stability and coordinate stability conditions.

[0066] S42: When all the changes in Euclidean distance are less than the coordinate stability threshold, the average of the N real-time coordinates is taken as the valid collected data.

[0067] When the changes in all adjacent Euclidean distances are less than the preset coordinate stability threshold, the needle tip is determined to be in a stable state in space. At this point, the arithmetic mean of the N coordinate measurements is taken as the valid data. By successively verifying adjacent changes, coordinate fluctuations caused by minor vibrations or optical measurement noise are effectively eliminated, ensuring that the recorded coordinates are the true spatial positions when the needle tip is in stable contact with the hole. Averaging further eliminates the influence of random noise and improves the accuracy of single-point acquisition.

[0068] Reference Figure 5 In one embodiment, before S1, steps S101-S103 are further included: S101: Control the robotic arm to move sequentially to the standard hole position corresponding to each sampling point, record the joint angle and end TCP pose of the robotic arm at each standard hole position as the needle insertion pose of the corresponding sampling point, and record the hole number label and approach direction of the corresponding sampling point.

[0069] The operator controls the robotic arm to move the needle tip tool sequentially to each standard hole position in the 2554 tool standard hole array by dragging and teaching or low-speed jogging, so that the needle tip is accurately inserted into or aligned with the hole. At each hole position, the robotic arm controller records the current angle values ​​of each joint and the pose matrix of the end effector TCP in the robotic arm base coordinate system, as the needle insertion pose of that sampling point.

[0070] Preferably, the movement path between sampling points is as follows: rising a preset distance from the current position, translating to above the next aperture, adjusting the posture, and descending at low speed to the pre-contact posture. The rising distance can be set to approximately 30 mm. The rising distance at the transition point can be set to greater than 50 mm to support repetitive sampling in different postures such as spin, forward / backward, and left / right.

[0071] Simultaneously, the operator labels the hole number at each sampling point and records the approach direction of the needle tip when it is inserted into the hole; this direction is the hole axis direction. Through hole-by-hole operation, the needle insertion posture of each sampling point is recorded as the actual posture in physical space, rather than a virtual posture calculated through coordinate transformation. Therefore, the actual installation position information of the tooling is implicitly contained in these posture data.

[0072] More preferably, when setting control parameters for each sampling point, the maximum approach distance and the number of retries for failure can also be set and saved together with the path data.

[0073] S102: The needle insertion pose of each sampling point is offset by a preset distance in the opposite direction of its respective approach direction to obtain the pre-contact pose of each sampling point.

[0074] For each sampling point, the needle insertion pose recorded in step S101 is offset by a preset safety distance in the opposite direction of the approach direction to obtain a pre-contact pose. This pre-contact pose is located above the target hole or outside the needle insertion direction, and the needle tip has not yet contacted the tooling at this pose, and is in a ready position to approach the hole opening.

[0075] Preferably, the preset distance can be set to about 30 mm, so that the robotic arm can complete force-controlled feeding within the effective field of view of the optical positioning system while maintaining a safe gap with the tooling at the pre-contact pose.

[0076] The preset distance must meet two conditions simultaneously: first, ensure a safe gap between the needle tip and the tooling at the pre-contact pose; second, ensure that the pose is still within the effective field of view of the optical positioning system. By generating the pre-contact pose through reverse offset, the robotic arm can first move to this safe pose in step S2, and then switch to force control mode for low-speed feeding, avoiding the motion instability that may be caused by direct force control feeding from a distance.

[0077] S103: Associate and save the obstacle avoidance transition points between each sampling point, the target contact force of each sampling point with the needle insertion posture, the approach direction, and the pre-contact posture to generate a fixed path file.

[0078] During the teaching process, the operator also needs to record the obstacle avoidance transition points between each sampling point. These transition points are located on the path between sampling points and are used to guide the robotic arm to move safely from the current sampling point to the next sampling point, avoiding collisions with tooling or other obstacles. The target contact force of each sampling point is preset according to the physical properties of the needle tip tool and tooling material, preferably set in the range of 1 to 5 Newtons. The host controller associates the hole number label, needle insertion posture, approach direction, pre-contact posture, obstacle avoidance transition points, and target contact force of all sampling points according to the sampling point number and saves them to a fixed path file in a structured data format. When saving, control parameters such as force stability threshold, force stability holding time, coordinate stability threshold, number of samplings, and upper limit of safe force can be further written into the file, making the fixed path file a complete acquisition configuration file containing geometric information and control parameters.

[0079] In steps S101 to S103 above, the needle insertion pose is obtained through actual teaching, rather than calculated using a hand-eye calibration matrix. Therefore, the generated fixed path file fundamentally eliminates the dependence on the coordinate transformation relationship between the positioning device and the robotic arm. When the position of the positioning device changes or the tooling undergoes slight displacement, only the compensation amount needs to be recalculated through the calibration holes before subsequent data acquisition; there is no need to re-execute the complete teaching process. Furthermore, the fixed path file can be reused multiple times after generation. Subsequent batch data acquisition only requires loading this file for automatic execution, eliminating the need for repeated manual teaching and significantly improving the efficiency of batch data acquisition.

[0080] Reference Figure 6 In one embodiment, after S103, S1031-S1032 are further included: S1031: Control the robotic arm to perform force control acquisition with the needle insertion posture and approach direction of the correction hole in the fixed path file. When the real-time contact force of the correction hole reaches the target contact force and maintains a stable state, obtain the current TCP posture of the end of the robotic arm as the current actual contact posture of the correction hole.

[0081] The calibration hole is one or more pre-specified reference hole positions in the standard hole array, whose needle insertion pose and approach direction have been recorded in a fixed path file.

[0082] Before performing formal batch data acquisition, the host controller first loads a fixed path file and controls the robotic arm to move to the pre-contact pose of the calibration hole. After switching to force control mode, guided by the needle insertion pose and approach direction of the calibration hole, it executes the same force-controlled compliant feed process as the formal data acquisition. When the real-time contact force reaches the target contact force and maintains a stable state, the current TCP pose of the end effector is read from the robotic arm controller as the current actual contact pose of the calibration hole at the current workstation. Since this TCP pose and the needle insertion pose in the fixed path file belong to the same robotic arm base coordinate system, the two can be directly compared to calculate the deviation without the need for coordinate transformation through hand-eye calibration.

[0083] S1032: Calculate the positional deviation between the current actual contact pose and the reference pose of the correction hole in the fixed path file, and add the positional deviation to the needle insertion pose, pre-contact pose and associated obstacle avoidance transition point of all sampling points in the fixed path file.

[0084] The reference pose of the correction hole is the original needle insertion pose recorded in the fixed path file during the path planning stage, i.e., the TCP reference pose of the correction hole in the robot arm's base coordinate system. Comparing the current actual contact pose with the reference pose and calculating the three-dimensional spatial position deviation between them reflects the global pose offset caused by factors such as minor changes in the relative position of the tooling and the robot arm from the path generation time to the current time. A single correction hole is mainly used to compensate for translational deviations. Since the tooling, as a rigid body, experiences displacement, all standard hole positions generate the same spatial offset. Therefore, by superimposing this positional deviation onto the needle insertion pose, pre-contact pose, and associated obstacle avoidance transition points of all sampling points in the fixed path file, global compensation for the TCP needle insertion pose of all hole positions can be achieved.

[0085] The pre-contact pose is obtained by offsetting the needle insertion pose by a preset distance in the opposite direction of the approach direction. The relative offset between the two is a fixed value. Therefore, applying the same compensation amount synchronously to all associated pose points can ensure the geometric consistency of the robotic arm's motion path before and after compensation.

[0086] Optical measurement data must be registered or converted in the same reference coordinate system before it can be used for accuracy evaluation.

[0087] It should be noted that the above coordinate registration or transformation is only used to unify the measured coordinates of the optical positioning system with the standard hole reference coordinates into the same coordinate system for comparison, and does not participate in the robot arm path planning or the generation of needle insertion pose.

[0088] When significant changes occur in the tooling installation, multiple calibration holes can be selected to calculate the deviation separately, and then a weighted average or fitting method can be used to obtain a more accurate global compensation amount; alternatively, a local compensation method based on holes can be used, assigning different compensation weights according to the spatial relationship between each hole and the calibration hole. If there are rotational changes or significant clamping changes, rigid body transformation should be calculated through multiple calibration holes, or a fixed path file should be re-taught to generate. In addition, drift trend prediction compensation can be performed based on historical data.

[0089] Reference Figure 7 In one embodiment, after S4, S401-S402 are further included: S401: Obtain the valid acquisition data of all acquisition points, and calculate the positional deviation between the valid acquisition data of each acquisition point and the standard hole reference coordinates of the corresponding acquisition point in the fixed path file. The standard hole reference coordinates are derived from the standard hole position design coordinates and / or the reference distance between holes in the 2554 tool metrology calibration file.

[0090] After all coordinate acquisition points are completed, the host controller retrieves the valid acquisition data corresponding to each acquisition point from the storage unit. For the i-th acquisition point, the valid acquisition data is compared with the standard hole reference coordinates of the corresponding acquisition point in the fixed path file, and the Euclidean distance between the two is calculated as the position deviation of the acquisition point. This position deviation is used to evaluate the optical measurement accuracy.

[0091] It should be noted that the coordinate transformation between the effective acquired data and the standard hole reference coordinates in this embodiment is only for evaluating the measurement accuracy of the optical positioning system and is not used to correct or plan the needle insertion path of the robotic arm.

[0092] Meanwhile, the current TCP pose of the robotic arm end effector under stable force conditions is compared with the needle insertion pose of the corresponding sampling point in the fixed path file, and the Euclidean distance between the two is calculated as the path playback deviation of the sampling point. This path playback deviation is used to evaluate the accuracy of the robotic arm path reproduction. Since the current TCP pose and the needle insertion pose belong to the same robotic arm base coordinate system, they can be directly compared without coordinate transformation.

[0093] The needle insertion pose represents the reference spatial position of the hole in the initial tooling installation state during the path planning stage, while the effective acquisition data represents the actual measured position of the hole in the current batch acquisition. The difference between the two reflects the comprehensive offset of the hole position from path generation to the current acquisition time. This comprehensive offset includes the combined effects of various factors such as tooling displacement, temperature drift, and robotic arm repeatability error.

[0094] S402: Calculate the position accuracy index of this batch acquisition based on all the position deviations, and generate a batch acquisition report containing the hole number of each acquisition point, the effective acquisition data, the position deviation, and the position accuracy index.

[0095] After obtaining the positional deviations of all sampling points, the host controller performs statistical analysis on these deviation data to calculate the positional accuracy index for this batch of data acquisition. The positional accuracy index specifically includes the mean error and the root mean square error (RMSE). The mean error reflects the overall level of system deviation, while the RMS error comprehensively characterizes the acquisition accuracy. The calculation method for these indicators is as follows: the mean error is the arithmetic mean of all positional deviations, and the RMS error is the square root of the squared mean of all positional deviations.

[0096] In this embodiment, the reported positional accuracy index is calculated based on the positional deviation of all sampling points in a single sampling session, and is used to evaluate the overall accuracy level of batch sampling. Based on this, if it is necessary to further evaluate the consistency of multiple samplings of the same borehole under the same conditions, a single-point repeatability index can be calculated separately based on the positional deviation data of that borehole in multiple rounds of repeated sampling, as supplementary content to the report.

[0097] The host controller generates a batch acquisition report according to a preset report template, containing the aperture number of each acquisition point, valid acquired data, position deviation, and the aforementioned position accuracy indicators. The structure of this report corresponds to the data recording format specified in YY / T 1901-2023 and ASTM F2554 standards, and can be directly used as the original data basis for evaluating the accuracy of the optical positioning system, without the need for manual secondary processing. Simultaneously, this report can also be used to monitor data quality during the batch acquisition process; when the position accuracy indicator or single-point repeatability indicator exceeds a preset threshold, it can promptly prompt the operator to check the system status.

[0098] Those skilled in the art should understand that the above embodiments are merely preferred embodiments of the present invention, and the present invention can also be implemented in the following alternative or extended ways: The robotic arm can be replaced by other collaborative robots that support force control, impedance control, or admittance control, and the communication interface can adopt RTDE or other real-time control protocols.

[0099] Force control is not limited to admittance control; impedance control or other force / displacement hybrid control strategies may also be used. Contact determination is not limited to the dual criteria of force threshold plus settling time; other combinations of single force threshold, force / displacement joint criteria, or force / coordinate dual stability criteria may also be used.

[0100] Path compensation is not limited to single correction hole compensation; it can also employ multi-correction hole fitting compensation, hole-based local compensation, or drift compensation based on historical acquisition data.

[0101] The application of this invention is not limited to the 2554 tool, but can also be extended to other optical positioning system accuracy testing fixtures with standard holes, standard contacts, reference balls, or reference surfaces. Accuracy testing standards can adopt YY / T 1901-2023, ASTM F2554, or enterprise-defined positioning accuracy, distance deviation, and repeatability testing specifications.

[0102] Reference Figure 8 The present invention also provides a hole position coordinate acquisition system, including a robotic arm, an optical positioning system and a host controller; The optical positioning system is set on the fixed side of the environment and is used to output the spatial coordinates of the marked points on the needle tip tool in real time; The host controller is communicatively connected to the robotic arm and the optical positioning system, and is used to execute the hole position coordinate acquisition method.

[0103] The robotic arm is a collaborative robotic arm (such as UR5e, UR10e, AUBO i series, etc.), with a needle tip tool installed at its end. The needle tip tool is equipped with optical markers. The robotic arm has a built-in or external force / torque sensing unit for real-time detection of the contact force between the needle tip and the tooling. The force / torque sensing unit can be a six-dimensional force / torque sensor installed at the end of the robotic arm, or it can be a joint torque sensor built into each joint of the robotic arm.

[0104] The optical positioning system is set on the fixed side of the environment and includes a binocular or multi-eye near-infrared camera module. It is used to identify optical markers on the needle tool in real time and output the three-dimensional spatial coordinates of the markers in the coordinate system of the positioning instrument. Then, the three-dimensional spatial coordinates of the needle tip reference point are calculated based on the tool parameters calibrated at the time of manufacture.

[0105] The host controller is communicatively connected to both the robotic arm and the optical positioning system. It includes a memory and a processor. The memory stores a computer program and a fixed path file. When the processor executes the computer program, it implements the steps of the aforementioned hole position coordinate acquisition method. Specifically, the host controller is configured to perform the following functions: load and parse the fixed path file; control the robotic arm to move along the fixed path to the pre-contact pose of each acquisition point; switch the robotic arm to force control mode at the pre-contact pose; adjust the feed rate in a closed loop based on the real-time feedback value from the force / torque sensing unit to ensure the end-effector contact force reaches the target contact force and remains stable; acquire the real-time coordinates of the needle tip continuously output by the optical positioning system in a stable force state; filter and record valid acquisition data based on coordinate changes; and generate a batch acquisition report containing position deviation and position accuracy indicators after all acquisition points are completed.

[0106] The host controller, robotic arm, and optical positioning system work collaboratively according to the timing relationship of each step in the aforementioned method embodiments, under the unified scheduling of the host controller, to jointly complete the batch data acquisition task. Preferably, the host controller also includes a human-machine interface for displaying real-time acquisition status, force feedback curves, and coordinate stability determination results; the host controller further includes a path planning module, a path playback module, a force feedback closed-loop control module, an acquisition stability determination module, a compensation module, and a report generation module, each of which is implemented by a processor executing computer programs stored in memory. Details not described in the above system embodiments can be referred to the relevant descriptions in the aforementioned method embodiments, and will not be repeated here.

[0107] Reference Figure 9 This invention also provides a hole position coordinate acquisition device, comprising: The path acquisition module 10 is used to acquire a preset fixed path file. The fixed path file includes the needle insertion pose, pre-contact pose, approach direction and target contact force corresponding to each sampling point. The fixed path file is generated by actual hole position teaching. The needle insertion pose is the actual physical pose of the end effector TCP of the robotic arm during teaching. The path playback and positioning module 20 is used to control the robotic arm to play back to the pre-contact pose of the current sampling point according to the fixed path file. The force control feed module 30 switches to force control mode at the pre-contact pose, sets the desired end contact force as the target contact force, controls the robotic arm to feed slowly along the approach direction, and adjusts the feed amount according to the deviation between the end force feedback value and the target contact force until the real-time contact force at the end of the robotic arm reaches the target contact force and maintains a stable state. The coordinate filtering module 40 is used to acquire the continuously output real-time coordinates of the needle tip, filter the real-time coordinates of the needle tip according to the change of the real-time coordinates of the needle tip, record the valid data obtained after filtering, and control the robotic arm to exit in reverse after recording is completed.

[0108] As described above, the borehole coordinate acquisition device can realize the borehole coordinate acquisition method.

[0109] One embodiment of this application also provides a computer-readable storage medium storing a computer program. When executed by a processor, the computer program implements a hole position coordinate acquisition method, including the following steps: acquiring a preset fixed path file; controlling a robotic arm to move to the pre-contact pose of the current acquisition point according to the fixed path file; controlling the robotic arm to feed at a low speed along the approach direction, and adjusting the feed amount by real-time reading of the end force feedback value until the real-time contact force at the end of the robotic arm reaches the target contact force and maintains a stable state; acquiring continuously output real-time needle tip coordinates, and filtering and recording the real-time needle tip coordinates according to the change in the real-time needle tip coordinates. It is understood that the computer-readable storage medium in this embodiment can be a volatile readable storage medium or a non-volatile readable storage medium.

[0110] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media provided in this application and used in the embodiments can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0111] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, apparatus, article, or method. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, apparatus, article, or method that includes that element.

[0112] The above description is merely a preferred embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent structural or procedural transformations made based on the content of the present invention's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of the present invention.

Claims

1. A method for acquiring borehole coordinates, characterized in that, The method includes: Obtain a preset fixed path file, which includes the needle insertion pose, pre-contact pose, approach direction and target contact force corresponding to each sampling point. The fixed path file is generated through actual hole position teaching, and the needle insertion pose is the actual physical pose of the end effector TCP of the robotic arm during teaching. The robotic arm is controlled to replay the pre-contact pose of the current sampling point according to the fixed path file; At the pre-contact pose, switch to force control mode, set the desired end contact force as the target contact force, control the robotic arm to feed slowly along the approach direction, and adjust the feed amount according to the deviation between the end force feedback value and the target contact force until the real-time contact force at the end of the robotic arm reaches the target contact force and remains stable. The system acquires the real-time coordinates of the needle tip through continuous output, filters the real-time coordinates of the needle tip based on the change in the real-time coordinates of the needle tip, records the valid data acquired after filtering, and controls the robotic arm to exit in reverse after recording is completed.

2. The hole position coordinate acquisition method as described in claim 1, characterized in that, The robotic arm employs admittance control. The step of adjusting the feed rate based on the deviation between the end-effector force feedback value and the target contact force until the real-time contact force at the end of the robotic arm reaches the target contact force and remains stable includes: The real-time reading of the end force feedback value is used as the input of the admittance controller, which calculates and outputs the position fine-tuning amount along the approach direction. The position fine-tuning amount is the feed amount of the robotic arm. The admittance controller controls the robotic arm to feed at low speed according to the position fine-tuning amount, so that the real-time contact force gradually approaches and stabilizes at the target contact force.

3. The hole position coordinate acquisition method as described in claim 2, characterized in that, The step of controlling the robotic arm to perform low-speed feeding according to the position fine-tuning amount through the admittance controller, so that the real-time contact force gradually approaches and stabilizes at the target contact force, includes: The admittance controller controls the robotic arm to feed at low speed according to the position fine-tuning amount, and continuously compares the real-time contact force with the preset safety force limit. If the real-time contact force exceeds the upper limit of the safety force, the admittance controller outputs a reverse position fine-tuning amount to control the robotic arm to retract in the reverse direction along the approach direction.

4. The hole position coordinate acquisition method according to any one of claims 1 to 3, characterized in that, The steps of acquiring continuously output real-time needle tip coordinates, filtering the real-time needle tip coordinates based on their changes, and recording the valid acquired data after filtering include: During the period when the real-time contact force maintains the stable state, the real-time coordinates of the needle tip are continuously output N times at a preset sampling frequency, and the change in Euclidean distance between two adjacent coordinates in the N real-time coordinates is calculated. When all the changes in Euclidean distance are less than the coordinate stability threshold, the average of the N real-time coordinates is taken as the valid collected data.

5. The hole position coordinate acquisition method according to any one of claims 1 to 3, characterized in that, Before the step of obtaining the preset fixed path file, the method further includes: The robotic arm is controlled to move sequentially to the standard hole position corresponding to each sampling point. The joint angle and end TCP pose of the robotic arm at each standard hole position are recorded as the needle insertion pose of the corresponding sampling point. The hole number label and approach direction of the corresponding sampling point are also recorded. The needle insertion pose of each sampling point is offset by a preset distance in the opposite direction of its respective approach direction to obtain the pre-contact pose of each sampling point; The obstacle avoidance transition points between each sampling point, the target contact force of each sampling point, the needle insertion posture, the approach direction, and the pre-contact posture are associated and saved to generate a fixed path file.

6. The hole position coordinate acquisition method as described in claim 5, characterized in that, After the step of associating and saving the obstacle avoidance transition points between each sampling point, the target contact force of each sampling point, the needle insertion pose, the approach direction, and the pre-contact pose to generate a fixed path file, the method further includes: The robotic arm is controlled to perform force control acquisition with the needle insertion posture and approach direction of the correction hole in the fixed path file. When the real-time contact force of the correction hole reaches the target contact force and maintains a stable state, the current TCP posture of the end of the robotic arm is obtained as the current actual contact posture of the correction hole. Calculate the positional deviation between the current actual contact pose and the reference pose of the correction hole in the fixed path file, and then add the positional deviation to the needle insertion pose, pre-contact pose, and associated obstacle avoidance transition point of all sampling points in the fixed path file.

7. The hole position coordinate acquisition method according to any one of claims 1 to 3, characterized in that, The steps following the acquisition of continuously outputting real-time needle tip coordinates, filtering the real-time needle tip coordinates based on their changes, recording the valid collected data after filtering, and controlling the robotic arm to reverse and exit after recording are included: Obtain the valid acquisition data of all acquisition points, and calculate the positional deviation between the valid acquisition data of each acquisition point and the standard hole reference coordinates of the corresponding acquisition point in the fixed path file. The standard hole reference coordinates are derived from the standard hole position design coordinates and / or the reference distance between holes in the 2554 tool metrology calibration file. Calculate the position accuracy index of this batch of data acquisition based on all the position deviations, and generate a batch acquisition report containing the hole number of each acquisition point, the valid acquisition data, the position deviation, and the position accuracy index.

8. A borehole coordinate acquisition system, characterized in that, This includes a robotic arm, an optical positioning system, and a host controller; The optical positioning system is set on the fixed side of the environment and is used to output the spatial coordinates of the marked points on the needle tip tool in real time; The host controller is communicatively connected to the robotic arm and the optical positioning system, and is used to execute the hole position coordinate acquisition method according to any one of claims 1-7.

9. A hole position coordinate acquisition device, characterized in that, The borehole coordinate acquisition device includes: The path acquisition module is used to acquire a preset fixed path file. The fixed path file includes the needle insertion pose, pre-contact pose, approach direction and target contact force corresponding to each sampling point. The fixed path file is generated through actual hole position teaching. The needle insertion pose is the actual physical pose of the end effector TCP of the robotic arm during teaching. The path playback and positioning module is used to control the robotic arm to play back to the pre-contact pose of the current sampling point according to the fixed path file; The force-controlled feed module is used to switch to force control mode at the pre-contact pose, set the desired end contact force as the target contact force, control the robotic arm to feed at low speed along the approach direction, and adjust the feed amount according to the deviation between the end force feedback value and the target contact force until the real-time contact force at the end of the robotic arm reaches the target contact force and maintains a stable state. The coordinate filtering module is used to acquire the continuously output real-time coordinates of the needle tip, filter the real-time coordinates of the needle tip according to the change of the real-time coordinates of the needle tip, record the valid data obtained after filtering, and control the robotic arm to exit in reverse after the recording is completed.

10. A storage medium, characterized in that, The storage medium stores a borehole coordinate acquisition program, which, when executed by a processor, implements the borehole coordinate acquisition method as described in any one of claims 1 to 7.