A multi-camera cavity vision-based surgical instrument pose and motion synchronicity testing device and method

By constructing a multi-camera cavity visual measurement environment and structured visual markers, the problems of insufficient measurement accuracy and synchronization in the performance testing of surgical robots were solved, and high-precision testing of surgical instrument pose, motion trajectory and master-slave synchronization was achieved.

CN123141561APending Publication Date: 2026-11-20JIANGSU INST OF METROLOGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611099331.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-23
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing surgical robot performance testing methods lack independence, have low measurement accuracy, are difficult to reliably obtain complete pose information, and lack unified testing methods for trajectory and master-slave synchronization.

Method used

A multi-camera cavity visual measurement environment is constructed, and the pose, motion trajectory, and master-slave synchronization of surgical instruments are tested through a multi-view visual observation network, structured visual markers, and multi-constraint marker matching methods.

Benefits of technology

It improves the consistency and repeatability of surgical instrument pose measurement results, enhances the stability and traceability of measurements, comprehensively reflects the true motion state of the instruments, and achieves accurate assessment of master-slave synchronization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123141561A_ABST
    Figure CN123141561A_ABST
Patent Text Reader

Abstract

The application discloses a kind of surgical instrument pose and motion synchronism testing device and method based on multi-camera cavity vision, device includes multi-prism visual cavity, multiple fixed arrangement high-speed camera, structured visual mark being arranged on surgical instrument, image processing and pose reconstruction system and synchronism analysis system.Method by establishing controlled multi-view vision measurement environment, synchronous acquisition surgical instrument motion image and master control information, combined with structured visual mark identification, multi-camera constraint matching, three-dimensional reconstruction and rigid body registration, realize the six degrees of freedom pose measurement of surgical instrument end effector, and complete master-slave motion time delay, pose deviation, trajectory deviation and trajectory consistency Unified analysis and evaluation.The application can effectively improve the stability of vision measurement and pose measurement precision, realize the integrated testing of surgical robot pose precision, motion trajectory and master-slave synchronization performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of medical robot performance testing technology, specifically to a device and method for testing the pose and motion synchronization of surgical instruments based on multi-camera cavity vision, which is applicable to the testing and evaluation of the pose accuracy, motion trajectory consistency, and master-slave control synchronization performance of the end effector of a surgical robot. Background Technology

[0002] With the widespread application of surgical robots in minimally invasive surgery, laparoscopic surgery, and complex and delicate operations, the positional accuracy, motion trajectory stability, and master-slave control synchronization performance of their end-effectors in space are directly related to the safety, accuracy, and reliability of surgical operations.

[0003] In the clinical application and regulatory testing of surgical robots, there is an urgent need for objective, repeatable testing and quantitative evaluation of their key kinematic properties.

[0004] Existing surgical robot performance testing methods mainly include the following categories:

[0005] One is a performance evaluation method based on the robot's internal encoders, force sensors, and other body sensing information;

[0006] The second method is a pose measurement method based on external tracking devices (such as laser trackers);

[0007] Third, the method of indirect synchronization analysis is performed through repeated teaching or comparison of master and slave instructions.

[0008] However, the above methods still have the following shortcomings:

[0009] 1) Relying on the robot's own sensing system, the test results lack independence and are difficult to reflect the true accuracy of external motion;

[0010] 2) External tracking devices are easily affected by instrument obstruction, reflection, and changes in viewing angle, making it difficult to stably acquire complete pose information;

[0011] 3) Existing testing methods mostly focus on repetition position errors and lack a unified testing method for trajectory and master-slave time synchronization;

[0012] 4) Existing visual marking methods are not stable enough for the structure and dynamic movement of surgical instruments, which affects measurement accuracy.

[0013] Therefore, it is necessary to propose a visual testing device and method that is structurally stable, has high measurement accuracy, and can simultaneously perform pose, trajectory, and master-slave synchronization tests to meet the actual needs of surgical robot performance testing and evaluation. Summary of the Invention

[0014] The purpose of this invention is to provide a device and method for testing the pose and motion synchronization of surgical instruments based on multi-camera cavity vision. By constructing a controlled multi-view vision measurement space, the device can test the pose, motion trajectory, and master-slave synchronization performance of the end effector of surgical instruments.

[0015] The technical solution to achieve the purpose of this invention is as follows:

[0016] A method for testing the pose and motion synchronization of surgical instruments based on multi-camera cavity vision includes the following steps:

[0017] S1. Construct a visual cavity for testing surgical instruments, establish a test coordinate system within the visual cavity, and fix multiple cameras at different positions within the visual cavity so that each camera forms a multi-view visual observation network covering the area to be tested.

[0018] S2. Perform intrinsic and extrinsic parameter calibration on multiple cameras respectively, obtain the intrinsic parameter matrix, rotation matrix and translation vector of each camera, and establish the spatial transformation relationship between the coordinate system of each camera and the test coordinate system.

[0019] S3. Set up structured visual markers, which include multiple marker points with preset spatial geometric relationships. The three-dimensional coordinates of each marker point in the coordinate system of the instrument body are known in advance, and they have distinguishable coding information and local neighborhood geometric relationships.

[0020] S4. Control multiple high-speed cameras to simultaneously acquire multi-view image sequences of the surgical instruments under test during their movement, and simultaneously acquire the main input trajectory or main control signal of the surgical robot.

[0021] S5. Perform image distortion correction, instrument region segmentation, structured visual marker recognition and pixel coordinate extraction on the acquired multi-view image sequence in sequence to obtain the image coordinates of each structured visual marker under different camera views.

[0022] S6. Based on the structured visual marker encoding information, local neighborhood geometric relationships and multi-camera epipolar constraints, perform corresponding matching of structured visual markers in images from different cameras, and reconstruct the three-dimensional spatial coordinates of each structured visual marker in the test coordinate system based on minimizing the multi-view reprojection error.

[0023] S7. Based on the known spatial coordinates of the structured visual markers in the instrument body coordinate system and their reconstructed spatial coordinates, solve the six-degree-of-freedom pose of the end effector of the surgical instrument under test in the test coordinate system through rigid body registration, and generate the corresponding end motion trajectory.

[0024] S8. Synchronize the slave motion trajectory with the master input trajectory or master control signal in time. Calculate the master-slave motion time delay based on the time-aligned trajectory. Further calculate the posture deviation, position deviation, and trajectory consistency index to obtain the surgical robot motion performance test results.

[0025] A surgical instrument pose and motion synchronization testing device based on multi-camera cavity vision, comprising:

[0026] A visual cavity is used to fix multiple cameras in place, so that the cameras form a multi-view visual observation network covering the area to be measured.

[0027] The multi-camera vision acquisition module includes multiple high-speed cameras fixedly installed at different positions in the vision cavity, used to synchronously acquire multi-view images of the surgical instrument under test during its movement.

[0028] The structured visual marking of the instrument includes multiple marking points with preset spatial geometric relationships set on the end effector of the surgical instrument under test or on the structural surface near the end effector. The three-dimensional coordinates of each marking point in the instrument body coordinate system are known in advance, and it has distinguishable coding information and local neighborhood geometric relationships.

[0029] The parameter calibration module is used to calibrate the intrinsic and extrinsic parameters of multiple cameras respectively, obtain the intrinsic parameter matrix, rotation matrix and translation vector of each camera, and establish the spatial transformation relationship between the coordinate system of each camera and the test coordinate system.

[0030] The image processing and pose reconstruction module is used to perform image distortion correction, instrument region segmentation, structured visual marker recognition and pixel coordinate extraction, obtain the image coordinates of each structured visual marker under different camera views, and perform corresponding matching of structured visual markers in different camera images based on the structured visual marker encoding information, local neighborhood geometric relationships and multi-camera epipolar constraints, and reconstruct the three-dimensional spatial coordinates of each structured visual marker in the test coordinate system based on minimizing the multi-view reprojection error.

[0031] The synchronization analysis module is used to synchronize the slave motion trajectory with the master input trajectory or master control signal in time. It calculates the master-slave motion time delay based on the time-aligned trajectory, and further calculates the posture deviation, position deviation and trajectory consistency index to obtain the motion performance test results of the surgical robot.

[0032] Compared with the prior art, the significant advantages of this invention include:

[0033] (1) A unified visual measurement environment based on a fixed multi-camera visual cavity is proposed.

[0034] To address the problem of insufficient measurement stability in existing visual measurement systems due to changes in camera position, ambient light, and occlusion, this invention constructs a fixed multi-prism visual cavity, fixing multiple high-speed cameras within a unified spatial coordinate system. This establishes a controlled, multi-view visual measurement environment, enabling stable observation of the movement of surgical instruments and improving the consistency, repeatability, and traceability of pose measurement results.

[0035] (2) A multi-constraint label matching method that integrates coding information, local neighborhood geometric relations and epipolar constraints is proposed.

[0036] This invention designs structured visual markers with encoded information and local neighborhood geometric relationships, and establishes a multi-constraint joint matching mechanism by combining multi-camera epipolar constraints. This effectively solves the problems of mismatch and confusion of traditional visual markers during dynamic motion, and improves the accuracy and robustness of multi-view marker recognition and 3D reconstruction.

[0037] (3) Establish a visual reconstruction-based method for solving the six-DOF pose of a device.

[0038] This invention utilizes a known structured visual marker spatial model and three-dimensional coordinates obtained through visual reconstruction to calculate the six-degree-of-freedom pose of the instrument's end effector through rigid body registration, thereby achieving synchronous measurement of position and attitude parameters. Compared with traditional methods that can only obtain position error or repeatability error, this invention more comprehensively reflects the true motion state of the instrument. Attached Figure Description

[0039] Figure 1 This is a schematic diagram of the overall structure of the testing device of the present invention;

[0040] Figure 2 A schematic diagram of a multi-faceted visual cavity structure;

[0041] Figure 3 A schematic diagram of structured visual markings on the surface of an instrument;

[0042] Figure 4 A schematic diagram of a master-slave motion synchronization analysis system. Detailed Implementation

[0043] The present invention will be further described below with reference to the accompanying drawings and specific embodiments.

[0044] Example 1

[0045] Combination Figures 1-4 This embodiment of a method for testing the pose and motion synchronization of surgical instruments based on multi-camera cavity vision includes the following steps:

[0046] S1. Construct a multi-prism visual cavity 1, establish a test coordinate system within the multi-prism visual cavity, and fix multiple high-speed cameras 2 at different positions within the multi-prism visual cavity.

[0047] The multi-prism visual cavity 1 is a closed or semi-closed structure, preferably a hexagonal prism structure. The multi-prism visual cavity is provided with an instrument insertion port 101. The inner wall of the cavity is provided with a low-reflection, matte or anti-glare surface 102. Camera mounting positions 103 are provided on the side wall, edge or at different heights of the cavity to fix multiple high-speed cameras and maintain the stable spatial positional relationship between the cameras.

[0048] The test coordinate system takes the center point of the bottom surface of the vision cavity or any fixed reference point inside the cavity as the origin, takes the direction of the central axis of the polygonal vision cavity as the positive direction of the Z-axis of the test coordinate system, and establishes a three-dimensional rectangular orthogonal coordinate system by combining two mutually perpendicular directions inside the bottom surface of the cavity; no less than three fixed reference points are set inside the vision cavity for the reproduction of the test coordinate system and the calibration of the external parameters of the multi-camera.

[0049] S2, perform intrinsic and extrinsic parameter calibration on the multiple high-speed cameras to obtain the intrinsic parameter matrix, rotation matrix and translation vector of each high-speed camera, and establish the transformation relationship between the coordinate system of each high-speed camera and the test coordinate system;

[0050] The imaging model of the i-th high-speed camera satisfies:

[0051]

[0052] Among them, s i As the scaling factor, (u i ,v i Let be the pixel coordinates of a point in the test coordinate system within the image of the i-th high-speed camera, Ki be the intrinsic parameter matrix of the i-th high-speed camera, Ri be the rotation matrix of the i-th high-speed camera relative to the test coordinate system, and t be the pixel coordinates of the point in the i-th high-speed camera. i Let (X) be the translation vector of the i high-speed cameras relative to the test coordinate system. c , Y c Z c ) represents the three-dimensional coordinates of the point to be tested in the test coordinate system.

[0053] S3, set structured visual markers on the end effector or key structural surface near the end effector of the surgical instrument 3 under test. The structured visual markers include multiple marker points with a preset geometric distribution relationship, and the three-dimensional coordinates of each marker point in the instrument body coordinate system are known quantities. The instrument body coordinate system is a fixed coordinate system established on the robot body. The spatial position of each marker point in the instrument body coordinate system is pre-calibrated and used as a rigid body constraint for subsequent six-degree-of-freedom pose solving.

[0054] The structured visual markers are formed through scoring, microstructural processing, surface texturing, or coating. The structured visual markers include point-like, line-like, stripe-like, groove-like, or combined geometric markers that are asymmetrically distributed along the instrument axis (the direction of the geometric center axis of the end effector of the surgical instrument under test) and circumferentially, so that each marker point has unique coding information and unique local neighborhood geometric relationship.

[0055] The structured visual markers include at least three non-collinear marker points, preferably at least six asymmetrically distributed marker points; the three-dimensional coordinates of the marker points in the instrument body coordinate system are as follows:

[0056]

[0057] in, Let k be the three-dimensional coordinates of the k-th marker point in the b-coordinate system of the instrument body, where k = 1, 2, ..., L, and L is the number of marker points.

[0058] S4, control the multiple high-speed cameras to synchronously acquire multi-view image sequences during the movement of the surgical instrument under test through a unified trigger signal, and synchronously acquire the main input trajectory or main control signal of the surgical robot.

[0059] S5, perform distortion correction, instrument region segmentation and structured visual marker recognition on the multi-view image sequence to obtain the pixel coordinates of structured visual markers under different camera views;

[0060] After distortion correction of the multi-view image sequence, the instrument region is segmented based on the grayscale, texture, or edge differences between the instrument region and the background region. Within the segmented instrument region, marker points are identified based on the grayscale gradient, edge direction, geometric shape, and local neighborhood relationships of structured visual markers, thus obtaining the position of the i-th high-speed camera at position t. n The pixel coordinates of the kth marker point identified at time t:

[0061]

[0062] in, For the k-th marker point at t n The pixel coordinates of time t in the image of the i-th high-speed camera n For the nth sampling time, and These represent the points marked at time t. n The horizontal and vertical pixel coordinates of time i in the image of the i-th high-speed camera.

[0063] S6, based on the encoded information of structured visual tags, local geometric neighborhood relationships and multi-camera epipolar constraints, matches the same structured visual tags under different camera perspectives;

[0064] For candidate markers identified by the i-th high-speed camera and the r-th high-speed camera, if the candidate markers satisfy the consistency of structured visual marker encoding, the consistency of local neighborhood geometric relations, and the following epipolar constraints:

[0065]

[0066] Then, the candidate marker points are determined to be the imaging points of the same structured visual marker point under different camera viewpoints; where, p ik (t n ) represents the k-th candidate marker point at t n The pixel coordinates p in the image of the i-th high-speed camera at time i. rk (t n ) represents the k-th candidate marker point at t n The pixel coordinates of time F in the image of the r-th high-speed camera ri Let be the fundamental matrix between the i-th high-speed camera and the r-th high-speed camera.

[0067] S7. Based on the matched multi-view structured visual marker pixel coordinates and the calibration parameters of each high-speed camera, the three-dimensional coordinates of the structured visual marker points in the test coordinate system are reconstructed by minimizing the multi-camera reprojection error.

[0068] For the same structured visual marker point that is successfully matched in at least two high-speed cameras, its three-dimensional coordinates in the test coordinate system are solved by minimizing the multi-camera reprojection error:

[0069]

[0070] in, For the k-th marker at time t n The test coordinate system is a three-dimensional coordinate system, V. k For the set of cameras that observed the k-th marker point, For the k-th marker point at t n The measured pixel coordinates of time π in the image of the i-th high-speed camera i (P) represents the projected coordinates of the three-dimensional point P in the test coordinate system in the image of the i-th high-speed camera.

[0071] S8. Based on the known three-dimensional coordinates of the structured visual markers in the instrument body coordinate system and their reconstructed three-dimensional coordinates in the test coordinate system, the rigid body registration method is used to calculate the six-degree-of-freedom pose of the end effector of the surgical instrument under test in the test coordinate system and generate the end motion trajectory that changes with time.

[0072] The rigid body registration method solves for the rotation matrix and translation vector of the instrument body coordinate system relative to the test coordinate system by minimizing the spatial error between the structured visual marker point sets.

[0073]

[0074] in, Let the coordinate system of the instrument body be at time t n The rotation matrix relative to the test coordinate system, Let the coordinate system of the instrument body be at time t n Translation vector relative to the test coordinate system The known three-dimensional coordinates of the k-th marker point in the instrument body coordinate system b are: For the k-th marker at time t n Reconstructing the 3D coordinates in the test coordinate system c. The rotation matrix R and translation vector d can be solved using a rigid body registration algorithm, preferably using the Singular Value Decomposition (SVD) method or the Kabsch algorithm to solve for the optimal rotation matrix and translation vector between corresponding point sets; alternatively, the quaternion method, the ICP (Iterative Closest Point) algorithm, or other optimization algorithms capable of achieving rigid body registration can also be used.

[0075] The coordinates of the end effector reference point in the instrument body coordinate system are: Then, the position of the reference point of the instrument's end effector in the test coordinate system is:

[0076]

[0077] in, Let time t n The position of the end effector reference point of the lower instrument in the test coordinate system; the position of the reference point at multiple sampling times. Arranged in chronological order, the movement trajectory of the surgical instruments from the end is obtained.

[0078] S9, the slave motion trajectory is time-aligned with the master input trajectory or master control signal, the master-slave motion time delay is calculated through trajectory correlation analysis, and the pose deviation, trajectory deviation and trajectory consistency index are calculated after time alignment to obtain the master-slave motion synchronization test results of the surgical robot.

[0079] Suppose that at time t, the master terminal 5... n The input trajectory is M(t) n ), from end at time t n The visual measurement trajectory is S(t) nFor a candidate time offset τ, calculate the correlation coefficient between the master-end input trajectory and the slave-end visual measurement trajectory:

[0080]

[0081] in, The mean of the trajectory sequence is input to the main end. The mean of the trajectory sequence measured by the slave vision is used; when C(τ) reaches its maximum value, the corresponding time offset is used as the master-slave motion time delay.

[0082]

[0083] Where τ∗ is the master-slave motion time delay.

[0084] After aligning the master-slave trajectories in time according to τ∗, calculate the master-slave positional deviation:

[0085]

[0086] Among them, S p (t n +τ∗) represents the time-aligned position from the end, M p (t n ) is the main input position, e p (t n ) is at time t n Master-slave position deviation.

[0087] After completing the master-slave trajectory time alignment, calculate the master-slave attitude deviation:

[0088]

[0089] in, For time t n The master-end attitude rotation matrix, The time-aligned slave-end attitude rotation matrix (which is the sequence of slave-end surgical instrument attitude rotation matrices obtained in step S8 after a time delay τ). ∗ After compensation, at time t n +τ ∗ The corresponding attitude rotation matrix), tr(·) represents the trace of the matrix, For time t n Master-slave attitude deviation.

[0090] Calculate the normalized trajectory error as a trajectory consistency index:

[0091]

[0092] Where, N t L represents the number of sampling points used in the calculation.traj The main input is the trajectory length or a preset standard trajectory length, E traj This represents the normalized trajectory error.

[0093] Example 2

[0094] Based on the embodiment of the surgical instrument pose and motion synchronization testing method, this embodiment proposes a surgical instrument pose and motion synchronization testing device based on multi-camera cavity vision, including:

[0095] A multi-faceted visual cavity is used to house the surgical instruments to be tested and to form a stable visual observation space;

[0096] The multi-camera vision acquisition section includes multiple high-speed cameras fixedly installed at different positions in the multi-prism-shaped vision cavity, used to synchronously acquire multi-view image sequences during the movement of the surgical instrument under test.

[0097] The parameter calibration module is used to calibrate the intrinsic and extrinsic parameters of multiple cameras respectively, obtain the intrinsic parameter matrix, rotation matrix and translation vector of each camera, and establish the spatial transformation relationship between the coordinate system of each camera and the test coordinate system.

[0098] Structured visual markers for instruments are set on the end effector of the surgical instrument under test or on key structural surfaces near the end effector to provide feature points required for multi-view image recognition and 3D reconstruction.

[0099] The image processing and pose reconstruction system is used to perform image distortion correction, instrument region segmentation, structured visual marker recognition and pixel coordinate extraction. It obtains the image coordinates of each structured visual marker under different camera views. Based on the structured visual marker encoding information, local neighborhood geometric relationships and multi-camera epipolar constraints, it performs corresponding matching of structured visual markers in images from different cameras, and reconstructs the three-dimensional spatial coordinates of each structured visual marker in the test coordinate system based on minimizing the multi-view reprojection error.

[0100] The synchronization analysis system is used to collect the master input trajectory or master control signal, and calculate the master-slave motion time delay, pose deviation, trajectory deviation and trajectory consistency index based on the slave motion trajectory and the master input trajectory or master control signal.

[0101] The inner wall of the polygonal visual cavity is provided with a low-reflection, matte, or anti-glare surface. The polygonal visual cavity is provided with an instrument insertion port and multiple camera mounting positions, which are distributed along different side walls, edges, or height directions of the cavity.

[0102] The structured visual markings of the instrument are scratch markings, microstructure markings, surface texture markings, or coating markings, and the structured visual markings of the instrument are asymmetrically distributed along the axial and circumferential directions of the instrument so that different marking points have distinguishable local neighborhood features.

[0103] The synchronization analysis system includes a master signal acquisition module, a time alignment module, a trajectory comparison module, and an evaluation index calculation module;

[0104] The main-end signal acquisition module is used to acquire the main-end input trajectory or main-end control signal of the surgical robot.

[0105] The time alignment module is used to calculate the master-slave motion time delay through trajectory correlation analysis;

[0106] The trajectory comparison module is used to compare the master input trajectory and the slave visual measurement trajectory after time alignment is completed;

[0107] The evaluation index calculation module is used to calculate pose deviation, trajectory deviation, and trajectory consistency index.

[0108] The testing device also includes a trajectory generator, which generates a preset master input trajectory and outputs a synchronous trigger signal to the multi-camera visual acquisition part during trajectory execution.

Claims

1. A method for testing the synchronization of surgical instrument pose and motion based on multi-camera cavity vision, characterized in that, Includes the following steps: S1. Construct a visual cavity for testing surgical instruments, establish a test coordinate system within the visual cavity, and fix multiple cameras at different positions within the visual cavity so that each camera forms a multi-view visual observation network covering the area to be tested. S2. Perform intrinsic and extrinsic parameter calibration on multiple cameras respectively, obtain the intrinsic parameter matrix, rotation matrix and translation vector of each camera, and establish the spatial transformation relationship between the coordinate system of each camera and the test coordinate system. S3. Set up structured visual markers, which include multiple marker points with preset spatial geometric relationships. The three-dimensional coordinates of each marker point in the coordinate system of the instrument body are known in advance, and they have distinguishable coding information and local neighborhood geometric relationships. S4. Control multiple high-speed cameras to simultaneously acquire multi-view image sequences of the surgical instruments under test during their movement, and simultaneously acquire the main input trajectory or main control signal of the surgical robot. S5. Perform image distortion correction, instrument region segmentation, structured visual marker recognition and pixel coordinate extraction on the acquired multi-view image sequence in sequence to obtain the image coordinates of each structured visual marker under different camera views. S6. Based on the structured visual marker encoding information, local neighborhood geometric relationships and multi-camera epipolar constraints, perform corresponding matching of structured visual markers in different camera images, and reconstruct the three-dimensional spatial coordinates of each structured visual marker in the test coordinate system based on minimizing the multi-view reprojection error. S7. Based on the known spatial coordinates of the structured visual markers in the instrument body coordinate system and their reconstructed spatial coordinates, solve the six-degree-of-freedom pose of the end effector of the surgical instrument under test in the test coordinate system through rigid body registration, and generate the corresponding end motion trajectory. S8. Synchronize the slave motion trajectory with the master input trajectory or master control signal in time. Calculate the master-slave motion time delay based on the time-aligned trajectory. Further calculate the posture deviation, position deviation, and trajectory consistency index to obtain the surgical robot motion performance test results.

2. The test method according to claim 1, characterized in that, Positional deviation is: Where τ∗ is the master-slave motion time delay, t n For the nth sampling time, S p (t n +τ∗) is the slave position after master-slave trajectory time alignment, M p (t n ) is the main input position, e p (t n ) is at time t n Master-slave position deviation; The attitude deviation is: in, For time t n The master-end attitude rotation matrix, This is the time-aligned slave-end attitude rotation matrix, where tr(·) represents the trace of the matrix; The trajectory consistency index is: Where, N t L represents the number of sampling points used in the calculation. traj The main input is the trajectory length or a preset standard trajectory length, E traj This represents the normalized trajectory error.

3. The test method according to claim 2, characterized in that, The master-slave motion time delay is calculated using the following formula: in The mean of the trajectory sequence is input to the main end. M(t) is the mean of the trajectory sequence measured by end vision. n ) is the master end at time t n The input trajectory, S(t) n ) is the endpoint at time t n The visual measurement trajectory, where τ is the candidate time offset.

4. The test method according to claim 1, characterized in that, For candidate markers identified by the i-th high-speed camera and the r-th high-speed camera, if the candidate markers satisfy the consistency of structured visual marker encoding, the consistency of local neighborhood geometric relations, and the following epipolar constraints: Then the candidate marker point is determined to be the imaging point of the same structured visual marker point under different camera views; For the same successfully matched structured visual marker point, its 3D coordinates in the test coordinate system are solved by minimizing the multi-camera reprojection error: Where, p ik (t n ) represents the k-th candidate marker point at t n The pixel coordinates p in the image of the i-th high-speed camera at time i. rk (t n ) represents the k-th candidate marker point at t n The pixel coordinates of time F in the image of the r-th high-speed camera ri Let be the fundamental matrix between the i-th high-speed camera and the r-th high-speed camera; For the k-th marker at time t n The test coordinate system is a three-dimensional coordinate system, V. k For the set of cameras that observed the k-th marker point, For the k-th marker point at t n The measured pixel coordinates of time π in the image of the i-th high-speed camera i (P) represents the projected coordinates of the three-dimensional point P in the test coordinate system in the image of the i-th high-speed camera.

5. The test method according to claim 1, characterized in that, The motion trajectory at the end is obtained by sampling multiple times. Arranged in chronological order: in, Let time t n The position of the reference point of the lower instrument end effector in the test coordinate system; Let the coordinate system of the instrument body be at time t n The rotation matrix relative to the test coordinate system, The coordinates of the end effector reference point in the instrument's body coordinate system. Let the coordinate system of the instrument body be at time t n The rotation matrix relative to the test coordinate system, Let the coordinate system of the instrument body be at time t n Translation vector relative to the test coordinate system.

6. The test method according to claim 5, characterized in that, The rotation matrix and translation vector are solved by minimizing the spatial error between the structured visual marker sets: in, The known three-dimensional coordinates of the k-th marker point in the instrument body coordinate system b are: For the k-th marker at time t n The reconstructed 3D coordinates are given in the test coordinate system c, where d is the translation amount to be determined, L is the number of marker points, and R is the rotation matrix to be determined between the instrument body coordinate system and the test coordinate system.

7. A device for testing the synchronization of surgical instrument pose and motion based on multi-camera cavity vision, characterized in that, include: A visual cavity is used to fix multiple cameras in place, so that the cameras form a multi-view visual observation network covering the area to be measured. The multi-camera vision acquisition module includes multiple high-speed cameras fixedly installed at different positions in the vision cavity, used to synchronously acquire multi-view images of the surgical instrument under test during its movement. The structured visual marking of the instrument includes multiple marking points with preset spatial geometric relationships set on the end effector of the surgical instrument under test or on the structural surface near the end effector. The three-dimensional coordinates of each marking point in the instrument body coordinate system are known in advance, and it has distinguishable coded information or local neighborhood geometric relationships. The parameter calibration module is used to perform intrinsic and extrinsic parameter calibration on multiple cameras respectively, obtain the intrinsic parameter matrix, rotation matrix and translation vector of each camera, and establish the spatial transformation relationship between the coordinate system of each camera and the test coordinate system. The image processing and pose reconstruction module is used to perform image distortion correction, instrument region segmentation, structured visual marker recognition and pixel coordinate extraction, obtain the image coordinates of each structured visual marker under different camera views, and perform corresponding matching of structured visual markers in different camera images based on the structured visual marker encoding information, local neighborhood geometric relationships and multi-camera epipolar constraints, and reconstruct the three-dimensional spatial coordinates of each structured visual marker in the test coordinate system based on minimizing the multi-view reprojection error. The synchronization analysis module is used to synchronize the slave motion trajectory with the master input trajectory or master control signal in time. It calculates the master-slave motion time delay based on the time-aligned trajectory, and further calculates the posture deviation, position deviation and trajectory consistency index to obtain the motion performance test results of the surgical robot.

8. The testing apparatus according to claim 7, characterized in that, The synchronization analysis system includes: The main signal acquisition module is used to acquire the main input trajectory or main control signal of the surgical robot. The time alignment module is used to calculate the master-slave motion time delay through trajectory correlation analysis; The trajectory comparison module is used to compare the master input trajectory and the slave visual measurement trajectory after time alignment is completed; The evaluation index calculation module is used to calculate attitude deviation, position deviation, and trajectory consistency index.

9. The testing apparatus according to claim 8, characterized in that, Positional deviation is: Where τ∗ is the master-slave motion time delay, t n For the nth sampling time, S p (t n +τ∗) is the slave position after master-slave trajectory time alignment, M p (t n ) is the main input position, e p (t n ) is at time t n Master-slave position deviation; The attitude deviation is: in, For time t n The master-end attitude rotation matrix, This is the time-aligned slave-end attitude rotation matrix, where tr(·) represents the trace of the matrix; The trajectory consistency index is: Where, N t L represents the number of sampling points used in the calculation. traj The main input is the trajectory length or a preset standard trajectory length, E traj This represents the normalized trajectory error.

10. The test method according to claim 9, characterized in that, The master-slave motion time delay is calculated using the following formula: in The mean of the trajectory sequence is input to the main end. M(t) is the mean of the trajectory sequence measured by end vision. n ) is the master end at time t n The input trajectory, S(t) n ) is the endpoint at time t n The visual measurement trajectory, where τ is the candidate time offset.