Flexible robot and pose determination method, system, equipment, medium and program thereof
By introducing the electromagnetic positioning system and Kalman filter technology into the flexible surgical robot, the problem of inaccurate positioning caused by elastic deformation and frictional interference of the driving components is solved, and high-precision joint posture observation and precise control are achieved.
Patent Information
- Application Number
- CN202410790775.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-10-11
AI Technical Summary
The problem of inaccurate positioning of existing flexible surgical robots during movement is mainly due to errors caused by elastic deformation and frictional interference of driving components, which affects the accuracy of minimally invasive surgery.
Using an electromagnetic positioning system and processor, the electromagnetic positioning sensor and drive sensor generate electromagnetic induction signals and mechanical induction signals. Combined with the system model and measurement model, the extended Kalman filter is used to calculate the current posture of the joint to achieve non-contact high-speed Accurate pose observation.
It reduces pose observation errors, improves accuracy and response speed, avoids the effects of friction and elastic deformation of driving components, and achieves high-precision determination of joint poses.
Smart Images

Figure CN118750174A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of medical devices, and in particular to a flexible robot and a method, system, device, medium and program for determining its position and posture. Background Art
[0002] With the advancement of science and technology, medical devices have produced surgical robots for minimally invasive surgery, among which flexible surgical robots are a typical representative. At present, flexible surgical robots mainly control the distal joints of surgical instruments by tendon sheath (Tendon-sheath) wire drive, and the motor at the proximal end pulls or releases the driving component corresponding to the joint (the aforementioned tendon sheath (Tendon-sheath) wire) to achieve the movement of the distal joint.
[0003] However, this control method has an inevitable disadvantage, that is, the drive components themselves have elastic deformation and external interference factors such as friction, which will cause errors in the process of controlling the robot. This error is unacceptable for the pursuit of precise minimally invasive surgery. Therefore, it is very necessary to control the position of the flexible surgical robot during the movement. Based on the necessity of precise positioning, how to accurately locate the position of the existing flexible surgical robot during the movement process is an important topic in this field. Summary of the invention
[0004] The technical problem to be solved by the present disclosure is to overcome the defect of inaccurate positioning of flexible surgical robots during movement in the prior art, and to provide a flexible robot and a method, system, device, medium and program for determining its position and posture.
[0005] The present invention solves the above technical problems through the following technical solutions:
[0006] The present disclosure provides a flexible robot, the flexible robot comprising: a surgical instrument, an electromagnetic positioning system, a driving device and a processor; the surgical instrument comprises at least one joint group, the joint group comprises joints and connectors, and is used to enter a human body to perform surgery; the electromagnetic positioning system comprises an electromagnetic positioning sensor and a magnetic field generator; the driving device comprises a driving component and a driving sensor;
[0007] The two connecting members are connected via a joint;
[0008] The driving sensor is connected to the joint of the flexible robot through the driving component, and the driving sensor is used to generate a mechanical sensing signal representing the mechanical parameters of the driving component;
[0009] The electromagnetic positioning sensor is used to generate an electromagnetic induction signal representing the position of the joint where the electromagnetic positioning sensor is located under the action of the magnetic field generated by the magnetic field generator;
[0010] The processor is used to calculate the current posture of the joint according to the mechanical induction signal and the electromagnetic induction signal.
[0011] Optionally, the driving device comprises at least two driving components, and each driven component is provided with at least one driving sensor;
[0012] The processor is used to calculate the first posture according to the mechanical sensing signal and based on the system model; the system model is used to characterize the corresponding relationship between the mechanical sensing signal and the first posture based on the previous posture.
[0013] Optionally, the processor is used to calculate the second posture of the joint according to the electromagnetic induction signal and a measurement model based on an inverse kinematic solution; the measurement model is used to characterize the corresponding relationship between the electromagnetic induction signal and the second posture.
[0014] Optionally, the processor is used to calculate the current posture of the joint based on an extended Kalman filter using the mechanical induction signal and the electromagnetic induction signal.
[0015] The present disclosure also provides a method for determining the position and posture of a flexible robot, the method for determining the position and posture being implemented by the flexible robot described in any one of the above items; the method for determining the position and posture comprising:
[0016] Acquiring the current mechanical induction signal and electromagnetic induction signal of the flexible robot;
[0017] The current posture of the joint is calculated according to the mechanical induction signal and the electromagnetic induction signal.
[0018] Optionally, calculating the current posture of the joint according to the mechanical induction signal and the electromagnetic induction signal includes:
[0019] Calculating a first posture according to the mechanical sensing signal and based on a system model; the system model is used to characterize a corresponding relationship between the mechanical sensing signal and the first posture;
[0020] Calculating a second posture according to the electromagnetic induction signal and a measurement model based on an inverse kinematic solution; the measurement model is used to characterize a corresponding relationship between the electromagnetic induction signal and the second posture;
[0021] The current posture of the joint is calculated according to the first posture and the second posture, and in combination with the uncertainties of the estimated state variables corresponding to the flexible robot, the system model, and the measurement model.
[0022] Optionally, the calculating the current posture of the joint according to the first posture and the second posture and combining the uncertainties of the estimated state variables corresponding to the flexible robot, the system model and the measurement model respectively includes:
[0023] For each round of iteration, obtaining a first error covariance matrix characterizing uncertainty of state variable estimation of the flexible robot;
[0024] Obtaining a process noise covariance matrix characterizing uncertainty in estimates of state variables of the system model;
[0025] Obtaining an observation noise covariance matrix characterizing uncertainty in state variable estimates of the measurement model;
[0026] Calculating a current second error covariance matrix according to a first Jacobian matrix characterizing a local linearization relationship of a state variable of the system model, the first error covariance matrix, and the process noise covariance matrix;
[0027] The Kalman gain is calculated according to a second Jacobian matrix representing a local linearized relationship of the measurement model state variables, the second error covariance matrix, and the observation noise covariance matrix.
[0028] Optionally, the posture determination method further includes:
[0029] A third error covariance matrix is calculated according to the Kalman gain, the second error covariance matrix and the second Jacobian matrix, and the third error covariance matrix is used as the first error covariance matrix required for the next current pose calculation.
[0030] Optionally, the process noise covariance matrix and the observation noise covariance matrix both satisfy normal distribution.
[0031] Optionally, the posture determination method further includes:
[0032] Obtain control instructions and execute a loop process; the loop process includes:
[0033] Obtaining the target pose and the current pose of the joint;
[0034] Determining a difference between the target pose and the current pose;
[0035] Determine a driving amount according to the difference and based on a mapping relationship between a driving amount for driving the joint to move and a movement amount of the joint;
[0036] The joint movement is controlled according to the driving amount.
[0037] The present disclosure further provides a posture determination system for a flexible robot, wherein the posture determination system is implemented by the flexible robot described in any one of the above items; the posture determination system comprises:
[0038] An acquisition module, used to acquire the current mechanical induction signal and electromagnetic induction signal of the flexible robot;
[0039] A processing module is used to calculate the current posture of the joint according to the mechanical induction signal and the electromagnetic induction signal.
[0040] Optionally, the processing module is specifically used for:
[0041] Calculating a first posture according to the mechanical sensing signal and based on a system model; the system model is used to characterize a corresponding relationship between the mechanical sensing signal and the first posture;
[0042] A second posture is calculated according to the electromagnetic induction signal and a measurement model based on an inverse kinematic solution; the measurement model is used to characterize the corresponding relationship between the electromagnetic induction signal and the second posture.
[0043] The current posture of the joint is calculated according to the first posture and the second posture, and in combination with the uncertainties of the estimated state variables corresponding to the flexible robot, the system model, and the measurement model.
[0044] Optionally, the processing module is specifically used for:
[0045] For each round of iteration, obtaining a first error covariance matrix characterizing uncertainty of state variable estimation of the flexible robot;
[0046] Obtaining a process noise covariance matrix characterizing uncertainty in estimates of state variables of the system model;
[0047] Obtaining an observation noise covariance matrix characterizing uncertainty in state variable estimates of the measurement model;
[0048] Calculating a current second error covariance matrix according to a first Jacobian matrix characterizing a local linearization relationship of a state variable of the system model, the first error covariance matrix, and the process noise covariance matrix;
[0049] The Kalman gain is calculated according to a second Jacobian matrix representing a local linearized relationship of the measurement model state variables, the second error covariance matrix, and the observation noise covariance matrix.
[0050] Optionally, the processing module is further specifically configured to:
[0051] A third error covariance matrix is calculated according to the Kalman gain, the second error covariance matrix and the second Jacobian matrix, and the third error covariance matrix is used as the first error covariance matrix required for the next current pose calculation.
[0052] Optionally, the process noise covariance matrix and the observation noise covariance matrix both satisfy normal distribution.
[0053] Optionally, the posture determination system further includes:
[0054] The control module is specifically used for:
[0055] Obtain control instructions and execute a loop process; the loop process includes: obtaining a target posture and a current posture of the joint; determining a difference between the target posture and the current posture; determining a driving amount according to the difference and based on a mapping relationship between a driving amount for driving the joint movement and a movement amount of the joint; and controlling the joint movement according to the driving amount.
[0056] The present disclosure also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and used to run on the processor, characterized in that when the processor executes the computer program, it implements the method for determining the posture of the flexible robot described in any one of the above items.
[0057] The present disclosure also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements any of the aforementioned methods for determining the posture of a flexible robot.
[0058] The present disclosure also provides a computer program product, including a computer program, characterized in that when the computer program is executed by a processor, the method for determining the posture of a flexible robot described in any one of the above items is implemented.
[0059] On the basis of being in accordance with the common sense in the art, the above-mentioned preferred conditions can be arbitrarily combined to obtain the preferred embodiments of the present disclosure.
[0060] The positive progressive effect of the present disclosure lies in: by adding an electromagnetic positioning sensor to the surgical instrument on the basis of the traditional drive sensor, and using the electromagnetic positioning system to assist in positioning the surgical instrument of the flexible surgical robot, that is, using the processor to update the current posture of the flexible robot according to the system model and the measurement model, thereby realizing non-contact posture observation of the surgical instrument. Compared with the physical contact posture observation method, it will not be affected by friction and elastic deformation of the driving components, reduces posture observation errors, and has the advantages of high precision and high response speed. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] Figure 1 A flexible robot and a partially enlarged schematic diagram provided as an exemplary embodiment of the present disclosure.
[0062] Figure 2 A partially enlarged schematic diagram of a flexible robot provided as an exemplary embodiment of the present disclosure.
[0063] Figure 3 A schematic diagram of a joint group of a flexible robot provided as an exemplary embodiment of the present disclosure.
[0064] Figure 4 A schematic diagram of a joint group configuration of a surgical instrument provided as an exemplary embodiment of the present disclosure.
[0065] Figure 5 A schematic diagram of a joint assembly configuration of another surgical instrument provided as an exemplary embodiment of the present disclosure.
[0066] Figure 6 A schematic diagram of a joint assembly configuration of another surgical instrument provided as an exemplary embodiment of the present disclosure.
[0067] Figure 7 A flowchart of a method for determining the position and posture of a flexible robot provided by an exemplary embodiment of the present disclosure.
[0068] Figure 8 A flowchart of step 102 is provided for an exemplary embodiment of the present disclosure.
[0069] Fig. 9 A flowchart of another method for determining the position and posture of a flexible robot provided as an exemplary embodiment of the present disclosure.
[0070] Fig.10 A schematic diagram of modules of a posture determination system for a flexible robot provided as an exemplary embodiment of the present disclosure.
[0071] Fig.11 The present invention is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present invention. DETAILED DESCRIPTION
[0072] The present disclosure is further described below by way of examples, but the present disclosure is not limited to the scope of the examples.
[0073] Prefixes such as "first" and "second" are used in the embodiments of the present disclosure only to distinguish different description objects, and have no limiting effect on the position, order, priority, quantity or content of the described objects. The use of prefixes such as ordinal numbers to distinguish description objects in the embodiments of the present disclosure does not constitute a limitation on the described objects. For the statement of the described objects, please refer to the description in the context of the claims or embodiments, and no unnecessary limitation should be constituted due to the use of such prefixes. In addition, in the description of the present embodiment, unless otherwise specified, the meaning of "plurality" is two or more.
[0074] In the embodiments of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0075] Example 1
[0076] The present disclosure provides a flexible robot, which includes: a surgical instrument, an electromagnetic positioning system, a drive device and a processor; the surgical instrument includes at least one joint group, the joint group includes joints and connectors, and is used to enter the human body to perform surgery; the electromagnetic positioning system includes an electromagnetic positioning sensor and a magnetic field generator; the drive device includes a drive component and a drive sensor. Figure 1 A flexible robot and a partially enlarged schematic diagram provided by an exemplary embodiment of the present disclosure, see Figure 1It can be seen that the flexible robot includes: surgical instruments, and an electromagnetic positioning system. The surgical instrument includes at least one joint group, and the joint group includes joints and connectors, which are used to enter the human body to perform surgery; the electromagnetic positioning system includes an electromagnetic positioning sensor, a magnetic field generator, and a processor; the driving device of the flexible robot includes: a driving sensor 41 and a driving component 40. In addition, it also includes a transmission mechanism 42 and a driving motor 43, wherein the main function of the driving sensor 41 is to monitor and measure the respective forces of multiple driving components 40. These data are crucial to achieving high dynamic force control, enabling the robot to perform tasks more accurately and adapt to different working environments. It should be understood that in flexible robots, drive sensors play a vital role. They are not only responsible for monitoring and controlling the movement of the robot, but also participate in processing complex sensing signals, which are mainly reflected in the present disclosure as mechanical sensing signals. Among them, since the drive sensor integrates a force sensor and a position sensor, the drive sensor has the following functions: 1. Function of the force sensor: The force sensor can detect and feedback the magnitude of the force applied to the drive component (for example, the force applied by the drive component 40), which is particularly important for performing fine operations. By monitoring the driving force, the force sensor helps the system prevent overload and protect the robotic arm and the environment from damage; 2. Function of the position sensor: The position sensor realizes real-time detection of the position of the drive component 40 and provides the drive component position input for the system model. In addition, based on the precise position information provided, high-precision motion control of the drive component can be achieved.
[0077] The transmission mechanism 42 is responsible for transmitting the power generated by the drive motor to the various joints or moving parts of the surgical instrument. This may include various mechanical elements, such as gears, chains, synchronous belts, etc., which assist in converting the transmission of power and motion to ensure the accuracy and smoothness of the surgical instrument's movements. The drive motor 43 is a device that provides a power source, which can be a direct current (DC), alternating current (AC) servo motor or stepper motor, etc. The drive motor is responsible for generating the necessary torque and speed to drive the movement of the surgical instrument.
[0078] See further Figure 2 It can be known that the surgical instrument includes a joint group 11 and a joint group 12 , an electromagnetic positioning sensor 21 , an electromagnetic positioning sensor 22 and an electromagnetic positioning sensor 23 , wherein the electromagnetic positioning sensor 22 is arranged on the connecting rod 31 , and the electromagnetic positioning sensor 23 is arranged on the connecting rod 32 .
[0079] In the present disclosure, electromagnetic positioning sensors are used because they are generally relatively insensitive to environmental changes (such as temperature, humidity, dust, etc.), which enables them to provide accurate position feedback under various conditions. It should be understood that in addition to electromagnetic positioning sensors, other positioning sensing means can also be used or combined with other positioning sensors. For example, an inertial measurement unit (IMU), an IMU usually includes three accelerometers and three gyroscopes, which measure linear acceleration and angular velocity, respectively. The accelerometer is used to sense the acceleration component of an object relative to a perpendicular line to the ground, while the gyroscope is used to sense the angular information of the object. These components are usually mounted on three orthogonal axes to capture the motion state of an object in six degrees of freedom, which can be used to track the position and posture of surgical tools, thereby providing real-time feedback to ensure the accuracy of the operation.
[0080] In addition, the two connecting parts are connected by a joint; wherein the degrees of freedom of motion realized by all joints in each joint group are not redundant, and the kinematic inverse solution is unique (hereinafter referred to as the redundant condition). In order to further illustrate the redundant condition, three joint group configurations are listed here for illustration, see Figures 4 to 6 :
[0081] See also Figure 4 It can be seen that the joint group configuration includes: two sensors, namely sensor s01 and sensor s02; three connectors, namely connector a01, connector a02 and connector a03; two joints, namely joint c01 and joint c02. In this configuration, the terminal connector a03 has three degrees of freedom of motion, namely two translational degrees of freedom (movement in the X and Y directions) and one rotational degree of freedom (rotation around a certain point, angle a). Among them, the sensors are set on connector a01 and connector a03, and each sensor has three measurement degrees of freedom, which can measure the position and orientation angle in the XY plane. It can be shown that the measurement degree of freedom includes the degree of freedom of motion. For the posture of a specific connector a03, a set of angle combinations of joints c01 and c02 can be uniquely determined, that is, there is no situation where multiple sets of different joint angles are mapped to the same connector a03 posture.
[0082] See also Figure 5 It can be seen that the joint group configuration includes: two sensors, namely sensor s01 and sensor s02; four connectors, namely connector a01, connector a02, connector a03 and connector a04; three joints, namely joint c01, joint c02 and joint c03. In this configuration, Figure 4 A revolute joint is added to the configuration shown, but the degrees of freedom of motion of the end connector a04 is still 3 (two translational degrees of freedom and one rotational degree of freedom). The sensor settings are also the same as Figure 4The sensors are arranged on the end connectors a01 and a04, and each sensor has three degrees of freedom, which can measure the position and orientation angle in the XY plane. Due to the addition of additional joints, although the degrees of freedom of movement have not increased, there are now multiple joint angle combinations that can achieve the same position and orientation of the end connector a04, such as Figure 5 The dashed line represents another joint angle combination of the current connection a04 position. Figure 5 Although the configuration shown does not have redundant joint degrees of freedom, the inverse kinematic solution is not unique.
[0083] See also Figure 6 It can be seen that the joint group configuration includes: two sensors, namely sensor s01 and sensor s02; five connectors, namely connector a01, connector a02, connector a03, connector a04 and connector a05; four joints, namely joint c01, joint c02, joint c03 and joint c04. In this configuration, Figure 5 A rotation joint is added to the configuration shown, but the movement degrees of freedom of the end connection a05 are still 3 (two translational degrees of freedom and one rotational degree of freedom). The setting method of the sensors is also consistent with the above two configurations. They are set on the end connections a01 and a05, and each sensor has 3 measurement degrees of freedom, which can measure the position and orientation angle in the XY plane. Due to the addition of additional joints, although the degrees of freedom of movement have not increased, there are now multiple joint angle combinations that can achieve the same posture of the end connection a04, that is, for the posture of the same connection a04, multiple joint angle combinations can be used, such as Figure 5 The dashed lines shown are the other two joint angle combinations of the current connection a04 position. Figure 5 The configuration shown has redundant joint degrees of freedom, and the inverse kinematic solution is not unique.
[0084] To further illustrate the specific structure of the joint group, take the joint group 12 as an example, optionally, see Figure 3It can be seen that the joint group 12 includes a connector 121, a joint 122, a connector 123, a joint 124 and a connector 125, wherein the connector 121 and the connector 123 are connected by the joint 122, and the connector 123 and the connector 125 are connected by the joint 124, thereby forming a joint group including two joints and three connectors. It should be understood that the main function of the joint group is posture adjustment, and the two ends of the joint group are connected with connecting rods. For example, the connector 125 and the connector 121 are connected to the connecting rod 31 and the connecting rod 32 as the two ends of the joint group. It should be noted that in a specific embodiment, the connecting rod 31 and the connecting rod 32 can also be presented in the form of a connecting member. In other words, the connecting rod 31 and the connecting rod 32 can be regarded as a specific presentation form of a connecting member, or it can be understood that the connecting member at the end of the joint group can be extended to present the form of the connecting rod 31 and the connecting rod 32. It should be understood that the reason why the joint group 12 can be used as an independent joint group is that the condition that needs to be met is that the degrees of freedom of motion achieved by all joints (including joints 122 and joints 124) in the joint group 12 have no redundancy. In other words, if there are multiple joints between two connecting rods, they can be divided into one joint group only if the degrees of freedom of motion achieved by all joints have no redundancy and the kinematic inverse solution is unique. Otherwise, the joint group can be divided into two or more groups to meet the requirement that each joint group meets the requirement that the degrees of freedom of motion achieved by all joints in the joint group have no redundancy and the kinematic inverse solution is unique.
[0085] For example, when there are four joints between two connecting rods, assuming that they are joint a1, joint a2, joint b1 and joint b2 in sequence, if joint a1 and joint a2 are divided into group A to meet the redundancy condition, and joint b1 and joint b2 are divided into group B to meet the redundancy condition, then the four joints can be defined as two joint groups, namely joint group A and joint group B. When the number of joints increases, the joints should also be divided into several joint groups according to the redundancy condition, which will not be repeated here. Among them, it is necessary to ensure that the degrees of freedom of motion achieved by each joint are not redundant to ensure the uniqueness of the kinematic inverse solution, which can be achieved by the following technical means: First, select the appropriate joint type in the design stage to ensure that each joint provides the necessary degrees of freedom of motion without exceeding the required degrees of freedom. When designing the structure of the surgical instrument, arrange the various joints and connectors reasonably to avoid redundant degrees of freedom or mutual interference. When possible, use orthogonal joints (i.e., joints that are perpendicular to each other), which helps to simplify kinematic analysis and ensure the uniqueness of the inverse solution. Secondly, kinematic analysis is also required, including: creating a mathematical model of the surgical instrument, including the geometric relationships of all joints and connectors. Calculate the Jacobian Matrix, which describes the linear mapping between the velocity of the end effector of the surgical instrument and the velocity of the joint. For the case with a unique inverse solution, the Jacobian matrix should be full rank. Then analyze the inverse kinematics and solve the inverse kinematics problem by algebraic or numerical methods to ensure the uniqueness of the solution. In some cases, it may be necessary to restrict the solution space to exclude ambiguous solutions. In addition, software verification can also be performed: Before actually manufacturing the flexible robot, use computer-aided design (CAD) and simulation software to test and verify the kinematic model and control strategy. After building the physical prototype, experiments are conducted to confirm the consistency between the theoretical analysis and the actual performance. Based on the test results, the design parameters and control logic are continuously optimized until the requirements of no redundant degrees of freedom and uniqueness of the solution are met.
[0086] It should be noted that multiple joints have the following benefits: 1. Improved flexibility. In complex surgeries or delicate operations, the range of motion of a single joint may be limited. By combining multiple joints, the flexibility of the entire surgical instrument can be increased, enabling it to perform more types of movements, such as bending, rotating, and twisting. 2. Realization of complex movements. The design of the joints allows each connector to move independently or collaboratively in multiple directions. This design mimics the movement mechanism of the human wrist and fingers, allowing surgical instruments to perform complex movements similar to human hands. 3. Precise control. By controlling the movement of each joint, the control system of the flexible robot can achieve precise control of the position and posture of the end of the surgical instrument. This is particularly important for medical operations that require high-precision positioning.
[0087] Based on the above discussion on the joint group, the electromagnetic positioning sensor is set as follows: at least one electromagnetic positioning sensor is set on each of the connectors at both ends of each joint group, and the first degree of freedom set includes a set of degrees of freedom of motion represented by the second degree of freedom set; the first degree of freedom set is a set of measurement degrees of freedom of the electromagnetic positioning sensors at both ends of the joint group; the second degree of freedom set is a set of degrees of freedom of motion corresponding to the relative position relationship between the joints between the connectors at the ends of the joint group. The electromagnetic positioning sensor is used to generate an electromagnetic induction signal representing the position and posture of the electromagnetic positioning sensor itself under the action of the magnetic field generated by the magnetic field generator. When a joint group meets the redundancy condition, the electromagnetic positioning sensor can be set on the connectors at both ends of the joint group. The advantage of this setting method is that for a joint group, only two electromagnetic positioning sensors are required to realize the positioning of the joint posture. The number of settings is reduced, which can save costs and reduce the difficulty of design.
[0088] It should be noted that the pose described in this disclosure is determined by the degrees of freedom, which are closely related and together describe the state of an object in space. The pose is usually used to describe the specific position and direction of an object in three-dimensional space, and it includes the following two aspects:
[0089] Position: refers to the exact location of an object in a spatial coordinate system, usually represented by three coordinate values (x, y, z). These three values correspond to the distance of the object relative to the origin on the X-axis, Y-axis, and Z-axis, respectively.
[0090] Orientation: refers to the direction or angle of an object, describing how the object is oriented in space. This usually involves the rotation angles (rx, ry, rz) about the three basic axes (OX, OY, OZ). These angles describe the rotation of the object coordinate system relative to the base coordinate system.
[0091] Degrees of freedom refer to the number of independent parameters required to describe the motion of an object in space. For a rigid body, six degrees of freedom are required to fully define its position:
[0092] Three translational degrees of freedom: describe the movement distance of the rigid body along the X, Y, and Z axes.
[0093] Three rotational degrees of freedom: describe the rotation angle of the rigid body around the X, Y, and Z axes.
[0094] The degrees of freedom and posture are interrelated because the degrees of freedom determine the range of possibilities of posture. For example, in the present disclosure, each joint of the surgical instrument provides a certain degree of freedom of movement, which together allow the end of the surgical instrument to perform specific position and posture tasks. Therefore, when the present disclosure involves posture, we are actually describing the result of the combination of the degrees of freedom of movement of each joint. In addition, due to the redundancy condition, when the posture of the surgical instrument is determined, the posture presented by each joint can also be determined.
[0095] In addition, the degree of freedom set (e.g., the first degree of freedom set and the second degree of freedom set) contains specific parameters of the pose, which is the number of independent parameters required to fully describe the position and pose of an object in three-dimensional space.
[0096] In addition, a specific special case is that when all joints between any two connecting rods meet the redundancy condition, a joint group is formed between any two connecting rods. Since the connecting parts at both ends of the joint group are directly connected to the connecting rod and can move synchronously, in addition to setting the electromagnetic positioning sensor on the connecting parts at both ends of the joint group, it can also be set on the connecting rod, for example, Figure 2 as well as Figure 3 As shown, the connecting rod 31 and the connecting rod 32 are respectively provided with an electromagnetic positioning sensor 22 and an electromagnetic positioning sensor 23. Among them, the first degree of freedom set is a set of measurement degrees of freedom of the electromagnetic positioning sensors at both ends of the joint group; the second degree of freedom set is a set of motion degrees of freedom corresponding to the relative position relationship presented by the joints between the connecting parts at the ends of the joint group. Among them, the electromagnetic positioning sensor is used to generate an electromagnetic induction signal representing the position of the electromagnetic positioning sensor itself under the action of the magnetic field generated by the magnetic field generator. By arranging at least one electromagnetic positioning sensor on the connecting parts at both ends of the joint group and ensuring that the first degree of freedom set contains the set of motion degrees of freedom represented by the second degree of freedom set, this design significantly improves the accuracy, flexibility and reliability of the flexible robot control system, which is particularly important for applications requiring high precision and stability (such as medical surgery).
[0097] The drive sensor is connected to the joint of the flexible robot through the drive component, and is used to generate a mechanical sensing signal that characterizes the mechanical parameters of the drive component. In the design of the flexible robot, the drive sensor is a crucial component that can detect and measure mechanical parameters such as force and torque acting on the joints of the surgical instrument.
[0098] A processor is used to calculate the current posture of the joint according to the mechanical induction signal and the electromagnetic induction signal. Optionally, the processor is used to calculate the current posture of the joint based on the extended Kalman filter using the mechanical induction signal and the electromagnetic induction signal. Among them, the processor integrates an extended Kalman filter, and the mechanical induction signal and the electromagnetic induction signal can be input into the extended Kalman filter for processing to obtain the current posture of the joint. The specific calculation method will be described in Example 2 and will not be repeated here.
[0099] Optionally, the drive device includes at least one drive component, and each driven component is provided with at least two drive sensors. The processor is used to calculate the first posture according to the mechanical sensing signal and based on the system model; wherein the system model is used to characterize the correspondence between the mechanical sensing signal and the first posture. The system model usually includes a series of mathematical equations and algorithms for describing the dynamic behavior of the surgical instrument. These models can predict the position and posture of the surgical instrument, i.e., the so-called posture, based on the mechanical sensing signal. Optionally, the system model can be expressed by the following formula:
[0100] x k =f(T k-1 ,x k-1 )+w k-1 ;
[0101] Among them, x k is the target joint pose at time k, x k-1 is the target joint pose at time k-1, T k-1 is the mechanical parameter of the driving sensor corresponding to the k-1 moment, that is, the tension and position of the driving component during the movement, f(T k-1 ,x k-1 ) is the corresponding relationship between mechanical parameters and posture variables, w k-1 is the process noise at time k-1; since the process noise is unknown, the estimated value of the target joint pose at time k obtained by the above system model while ignoring the process noise is taken as the first pose.
[0102] Optionally, the processor is used to calculate the second posture of the joint according to the electromagnetic induction signal and according to a measurement model based on an inverse kinematic solution; the measurement model is used to characterize the corresponding relationship between the electromagnetic induction signal and the second posture.
[0103] Alternatively, the measurement model can be expressed as follows:
[0104] z k =g(x k )+v k ;
[0105] Among them, z k is the connecting rod posture measured by electromagnetic induction signal at time k, g(xk ) is the corresponding relationship between the connecting rod posture and the target joint posture at time k, x k is the target joint pose at time k, v k is the measurement noise at time k; since the measurement noise is unknown, the measurement value of the target joint posture at time k obtained by the above measurement model while ignoring the measurement noise is taken as the second posture.
[0106] Based on the above-mentioned system model and measurement model, an extended Kalman filter (EKF) can be constructed to realize the pose estimation of the joints of surgical instruments. The underlying logic of EKF is to linearize the nonlinear system model and the measurement model, and then apply the standard process of Kalman filtering to perform state estimation. Therefore, EKF can combine the data of the system model and the measurement model to optimally estimate the system state, and can work effectively even in the presence of nonlinearity and Gaussian noise. Regarding the estimation method of the pose of the joint, please refer to the pose determination method of the flexible robot provided in Example 2.
[0107] In this embodiment, an electromagnetic positioning sensor is added to the surgical instrument on the basis of the traditional drive sensor, and the surgical instrument of the flexible surgical robot is assisted in positioning with the help of the electromagnetic positioning system. That is, the processor is used to update the current posture of the surgical instrument according to the system model and the measurement model, thereby realizing non-contact posture observation of the surgical instrument. Compared with the physical contact posture observation method, it will not be affected by friction and elastic deformation of the driving components, reduces posture observation errors, and has the advantages of high precision and high response speed.
[0108] Example 2
[0109] Figure 7 A flowchart of a method for determining the posture of a flexible robot provided by an exemplary embodiment of the present disclosure. The method for determining the posture is implemented by the flexible robot of any of the above items; the method for determining the posture comprises:
[0110] Step 101: Obtain the current mechanical induction signal and electromagnetic induction signal of the flexible robot.
[0111] In this step, the mechanical induction signal is generated by the drive sensor inside the surgical instrument, which can detect the mechanical changes caused by the movement of the surgical instrument joint or the action of external force. The electromagnetic induction signal is generated by the electromagnetic positioning sensor, which can detect the changes in the electromagnetic field (mainly the magnetic field environment generated by the magnetic field generator) in the surrounding environment. In this step, the processor reads data from each drive sensor and electromagnetic positioning sensor of the surgical instrument. These data are real-time and reflect the state of the surgical instrument at a specific moment. Optionally, in some cases, the signal can be pre-processed as needed to filter out noise or format it to make it suitable for subsequent processing. It should be understood that since the surgical instrument uses multiple sensors to obtain mechanical induction signals and electromagnetic induction signals, these signals need to be synchronized to ensure that they represent the state of the surgical instrument at the same time. After these signals are obtained and adaptively pre-processed, they will be used in the next step (step 102), that is, the current posture of the joint is calculated based on these signals. In general, step 101 is the data collection stage in the posture determination process, which provides the necessary input information for subsequent data processing and posture estimation.
[0112] Step 102: Calculate the current position and posture of the joint based on the mechanical induction signal and the electromagnetic induction signal. In this step, complex data processing and mathematical calculations are involved to extract accurate position and posture information from the sensor data. At the macro level, step 102 is a process of fusing different types of sensor data to estimate the current position and posture of the joint of the surgical instrument. This process can be summarized into the following main steps:
[0113] Preliminary pose estimation: Use the system model to analyze the mechanical sensing signal and obtain a preliminary pose estimation (first pose) based on the mechanical data. The system model is usually a mathematical model that describes the relationship between the mechanical signal and the pose of the surgical instrument.
[0114] Auxiliary pose estimation: Use electromagnetic induction signals and calculate another pose estimate (second pose) through inverse kinematics. Inverse kinematics is the process of mapping sensor data to pose.
[0115] Fusion estimation: Combining two pose estimates (the first pose and the second pose) and taking into account their respective uncertainties to calculate a more accurate current pose. This fusion process usually involves complex mathematical operations, such as Kalman filters, which can optimize the estimate and reduce the error.
[0116] Output results: The final calculated current pose will be used for the control and navigation of surgical instruments, or as input for subsequent processing.
[0117] In short, the purpose of step 102 is to improve the accuracy of estimating the current position of the joint of the surgical instrument by integrating different types of sensor data and mathematical models. This process is iterative, and the position estimation is continuously updated using new sensor data to adapt to the dynamically changing environment and surgical instrument status.
[0118] Figure 8 A flowchart of step 102 is provided for an exemplary embodiment of the present disclosure. Optionally, step 102 specifically includes:
[0119] Step 1021: Calculate the first pose according to the mechanical sensing signal and based on the system model; the system model is used to characterize the corresponding relationship between the mechanical sensing signal and the first pose.
[0120] In this step, the process of calculating the first posture according to the mechanical sensing signal and based on the system model can be understood as follows: the mechanical sensing signals are generated by the mechanical sensors of the surgical instrument (such as strain gauges, accelerometers or torque sensors), which can detect the force changes due to the driving components of the joints of the surgical instrument (in this embodiment, it is the tension of the driving components). Among them, the system model is a mathematical model used to describe the dynamic characteristics of the surgical instrument, usually including the dynamic equations of the surgical instrument. This system model predicts the behavior of the surgical instrument based on its design and physical characteristics, especially its reaction when subjected to force. The first posture is a preliminary posture estimate calculated based on the mechanical sensing signal and the system model. This estimate is based on the current mechanical sensing signal and may contain some uncertainty due to the uncertainty of the friction inside the driving component and due to external interference.
[0121] In general, the purpose of step 1021 is to use the mechanical sensing signal of the surgical instrument and the system model to calculate a preliminary pose estimate, which will be used as part of the subsequent pose fusion process to obtain more accurate pose information.
[0122] Step 1022, calculate the second posture according to the electromagnetic induction signal and the measurement model based on the inverse kinematic solution; the measurement model is used to characterize the corresponding relationship between the electromagnetic induction signal and the second posture. In this step, the purpose of calculating the second posture according to the electromagnetic induction signal and combining the inverse kinematic solution is to use another sensor data to obtain the posture information of the joint of the surgical instrument. First, the inverse kinematic solution is the process of solving the angles of each joint when the position and posture of the end of the surgical instrument are known. This is a basic concept in the field of robot control, because the inverse solution can determine the position to which each joint of the surgical instrument should move in order for the end to reach a predetermined posture. Secondly, when the position and posture of the end of the surgical instrument are known, the angle of each joint can be calculated using geometric relationships or algebraic methods. These angles represent a possible posture of the surgical instrument, that is, the second posture. Among them, this second posture will be used to construct a measurement model, which describes the corresponding relationship between the electromagnetic induction signal and the second posture.
[0123] Step 1023: Calculate the current posture of the joint according to the first posture and the second posture, and in combination with the uncertainties of the estimated state variables corresponding to the flexible robot, the system model, and the measurement model.
[0124] In this step, the process of estimating the current pose by combining the first and second poses and their corresponding uncertainties involves the core operation logic of the extended Kalman filter (EKF). Here is a detailed explanation: In the prediction phase, the system model is used to predict the current state of the surgical instrument. This model usually outputs a predicted state vector and covariance matrix based on the dynamic characteristics of the surgical instrument and the control input, the latter of which represents the uncertainty of the prediction. In the observation phase, the observation data of the surgical instrument are processed using the measurement model to obtain an observation prediction based on the latest sensor data (in this case, mechanical induction signals and electromagnetic induction signals). In the update phase, the observation prediction is compared with the actual observation value, and the covariance of the prediction error is minimized by calculating the Kalman gain to update the state estimate. This process also includes updating the estimated covariance matrix to reflect the updated uncertainty level. In general, the EKF combines information from different sources (mechanical induction signals and electromagnetic induction signals) in this way and takes into account their respective uncertainties to provide a more accurate estimate of the current pose.
[0125] Optionally, the current pose can be realized by the following formula:
[0126] x k|k =x k|k-1 +K k (g(x ′ k|k )-H k x k|k-1 );
[0127] Among them, x k|k is the current estimated pose, x k|k-1 is the first position, x ′ k|k is the second posture, g(x ′ k|k ) is the connecting rod position at time k, K k is the Kalman gain, H k is the second Jacobian matrix corresponding to the measurement model at the first pose.
[0128] Optionally, step 1023 specifically includes: for each round of iteration, obtaining a first error covariance matrix that characterizes the uncertainty of the state variable estimation of the flexible robot; obtaining a process noise covariance matrix that characterizes the uncertainty of the state variable estimation of the system model; obtaining an observation noise covariance matrix that characterizes the uncertainty of the state variable estimation of the measurement model; calculating the current second error covariance matrix based on the first Jacobian matrix that characterizes the local linearization relationship of the state variables of the system model, the first error covariance matrix, and the process noise covariance matrix; calculating the Kalman gain based on the second Jacobian matrix that characterizes the local linearization relationship of the state variables of the measurement model, the second error covariance matrix, and the observation noise covariance matrix.
[0129] The following key calculation steps are involved:
[0130] Get the first error covariance matrix: This matrix represents the uncertainty of the flexible robot state variable estimation. In each round of iteration, this matrix needs to be obtained for use in the next calculation.
[0131] Get the process noise covariance matrix: This matrix describes the uncertainty in the state transition process in the system model. In a dynamic system, even without external disturbances, there are uncertainties caused by factors such as model simplification, parameter estimation errors, or calculation rounding errors. In EKF, these uncertainties are considered to be random process noise, which is usually modeled as a normal distribution with zero mean, and its covariance matrix reflects the variance of this noise.
[0132] Get the observation noise covariance matrix: This matrix describes the observation uncertainty in the measurement model. In actual sensor measurements, there is always a certain degree of error, such as electromagnetic interference, sensor noise, changes in environmental factors, etc. These observation errors are also modeled as normally distributed random variables, and their covariance matrix reflects the variance of the observation noise.
[0133] Calculate the second error covariance matrix: Use the first Jacobian matrix, the first error covariance matrix, and the process noise covariance matrix to calculate the current second error covariance matrix through linearization and matrix operations. This matrix is the uncertainty of the updated state variable estimate. Optionally, the second error covariance matrix can be implemented by the following formula:
[0134]
[0135] Among them, P k|k-1 The second error covariance matrix (i.e. the predicted error covariance matrix), A k-1 The first Jacobian matrix corresponding to the estimated posture of the system model at the previous moment is used to approximate the nonlinear effect of the state transfer matrix. A k-1 The transpose of k-1|k-1 is the error covariance matrix of the previous moment (i.e., the first error covariance matrix), Q k-1 is the process noise covariance matrix.
[0136] This formula reflects how to propagate the uncertainty of the previous moment to the current moment through the state transfer matrix, and add the influence of process noise.
[0137] Calculate Kalman gain: Kalman gain is a weighting factor used to balance the confidence between the system model prediction and the actual measurement. It is calculated based on the second Jacobian matrix, the second error covariance matrix, and the observation noise covariance matrix. Optionally, Kalman gain can be implemented as follows:
[0138]
[0139] Among them, K k is the Kalman gain, P k|k-1 is the second error covariance matrix, H k is the second Jacobian matrix, H k The transpose of R k is the observation noise covariance matrix.
[0140] In general, these steps are the core part of the Kalman filter. Through these calculations, the information of the system model and the measurement model, as well as their respective uncertainties, can be combined to obtain a more accurate estimate of the current pose.
[0141] Wherein, optionally, the process noise covariance matrix and the observation noise covariance matrix both satisfy the normal distribution. In the framework of EKF, the process noise covariance matrix and the observation noise covariance matrix are usually assumed to satisfy the normal distribution. This is because the normal distribution (Gaussian distribution) can well describe the random variables in many natural and man-made phenomena, and its mathematical processing is relatively simple. It simplifies the mathematical processing and also conforms to the noise characteristics in many practical situations.
[0142] Optionally, the posture determination method further includes:
[0143] Step 103: Calculate a third error covariance matrix according to the Kalman gain, the second error covariance matrix and the second Jacobian matrix, and use the third error covariance matrix as the first error covariance matrix required for the next current pose calculation.
[0144] In this step, specifically, the Kalman filter first uses the system model to predict and obtain a predicted state estimate and a corresponding covariance matrix (i.e., the first error covariance matrix). Then, according to the actual observations and the observation model, the Kalman gain is calculated, and this gain is used to balance the trust between the model prediction and the actual observation. Then, using the Kalman gain, the second error covariance matrix (i.e., the predicted covariance matrix) and the second Jacobian matrix (i.e., the Jacobian matrix of the local linearization relationship of the observation model), the updated state estimate and the corresponding covariance matrix (i.e., the third error covariance matrix) are calculated. Finally, this third error covariance matrix is used as the first error covariance matrix of the next iteration, thereby completing a complete Kalman filter cycle. Optionally, the third error covariance matrix can be implemented by the following formula:
[0145] P k|k =(IK k H k ) k|k-1 ;
[0146] Among them, P k|k is the third error covariance matrix, I is the identity matrix, K k is the Kalman gain, H k is the second Jacobian matrix, P k|k-1 is the second error covariance matrix.
[0147] In general, step 103 is an important part of the Kalman filter, which updates the state estimate and the corresponding uncertainty by combining the information of the Kalman gain and the covariance matrix, and provides necessary information for the next iteration.
[0148] Optionally, the control method may also include: obtaining a control instruction and executing a loop process; wherein the loop process includes: obtaining a target posture and a current posture of a joint; determining the difference between the target posture and the current posture, which is the basis for the control system to calculate the required drive amount; determining the drive amount based on the difference and based on the mapping relationship between the drive amount for driving the joint movement and the movement amount of the joint, the mapping relationship is established based on a dynamic model and possible interference factors (such as elastic deformation and friction), and it is used to determine how to convert the difference into the drive amount; controlling the joint movement according to the drive amount to achieve movement from the current posture to the target posture. The above-mentioned loop process is automated and will be repeatedly executed to form a control loop. In each loop, the system will update the above-mentioned mapping relationship in real time to adapt to any environmental changes or nonlinear characteristics within the system, thereby ensuring control accuracy. In addition, for the termination condition of the loop process, it can be that the loop is stopped when the control instruction is terminated. Alternatively, a difference threshold can be set manually. When the difference is less than the difference threshold, the current posture is considered to be close enough to the target posture, and the loop can be stopped. The difference threshold should be set to a smaller value according to actual needs to ensure accuracy requirements.
[0149] In summary, this control method based on mapping relationship is a dynamic adjustment process, which optimizes the motion trajectory and behavior of the surgical instrument by continuously acquiring the latest information and adjusting the control input to achieve the purpose of high-precision control. This control method can accurately control the position and posture of the surgical instrument to ensure that it can accurately reach the predetermined target posture. Through the continuous cycle process, the system can adjust the drive amount in real time to adapt to the movement of the surgical instrument and changes in the external environment. Based on this embodiment, a specific example is given here for illustration, Fig. 9 A flowchart of another method for determining the position and posture of a flexible robot provided by an exemplary embodiment of the present disclosure, wherein the specific steps include:
[0150] Step 301, obtain command posture. This step refers to obtaining the instruction of the target posture from the instruction source (such as user input, program or other sensor). The posture usually includes position and posture information.
[0151] Step 302, calculate the difference. This step involves calculating the difference between the current posture and the command posture. This can be achieved by comparing the current observed posture and the command posture to determine the adjustment required for the surgical instrument. Among them, the observed posture is the posture parameter output after EKF processing.
[0152] Step 303, mapping relationship of driving amount from corresponding joint to driving line (a specific example of driving component). This step is to convert the difference into the corresponding driving amount. This is done by using a predefined mapping relationship, which describes how to apply the difference to the joint drive of the surgical instrument to achieve the desired posture adjustment.
[0153] Step 304: The actuator performs the action. This step involves transmitting the calculated change in the driving amount to the actuator (such as a motor or a servo system) so that the joint of the surgical instrument moves to a desired position or posture according to the driving amount.
[0154] Step 305: The electromagnetic positioning sensor continues to monitor. This step refers to using the electromagnetic positioning sensor to continuously monitor and generate electromagnetic induction signals. These electromagnetic induction signals are used to provide real-time induction signal feedback so that adjustments and corrections can be made when necessary.
[0155] Step 306: Drive the sensor to continue monitoring. This step refers to using the drive sensor to continuously monitor and generate force sensing signals. These force sensing signals are used to provide real-time sensing signal feedback so that adjustments and corrections can be made when necessary.
[0156] Step 307 : The system model generates a first pose based on the mechanical sensing signal and inputs it into the EKF of step 309 .
[0157] Step 308 : Generate a second posture based on the electromagnetic induction signal based on the inverse kinematic solution and input it into the EKF of step 309 .
[0158] Step 309: Calculate the current posture of the joint according to the first posture and the second posture, and in combination with the uncertainties of the estimated state variables corresponding to the flexible robot, the system model, and the measurement model.
[0159] Through these steps, a closed-loop control system is formed, which enables the surgical instrument to perform precise movements according to instructions and adjust its behavior through real-time monitoring and feedback to adapt to the changing environment and instruction requirements.
[0160] Example 3
[0161] Fig.10 A schematic diagram of a module of a posture determination system of a flexible robot provided by an exemplary embodiment of the present disclosure, the posture determination system corresponds to the posture determination method of embodiment 2, and the posture determination system includes:
[0162] An acquisition module 51 is used to acquire the current mechanical induction signal and electromagnetic induction signal of the flexible robot;
[0163] The processing module 52 is used to calculate the current position and posture of the joint according to the mechanical induction signal and the electromagnetic induction signal.
[0164] Optionally, the processing module 52 is specifically configured to:
[0165] The first pose is calculated according to the mechanical sensing signal and based on the system model; the system model is used to characterize the corresponding relationship between the mechanical sensing signal and the first pose;
[0166] The second posture is calculated according to the electromagnetic induction signal and a measurement model based on an inverse kinematic solution; the measurement model is used to characterize the corresponding relationship between the electromagnetic induction signal and the second posture;
[0167] The current posture of the joint is calculated according to the first posture and the second posture, and combined with the uncertainties of the estimated state variables corresponding to the flexible robot, the system model and the measurement model respectively.
[0168] Optionally, the processing module 52 is specifically configured to:
[0169] For each round of iteration, a first error covariance matrix characterizing the uncertainty of the state variable estimation of the flexible robot is obtained;
[0170] Obtaining a process noise covariance matrix that characterizes the uncertainty of state variable estimates of the system model;
[0171] Obtaining an observation noise covariance matrix that characterizes the uncertainty of the state variable estimates of the measurement model;
[0172] Calculate a current second error covariance matrix according to a first Jacobian matrix representing a local linearization relationship of a system model state variable, a first error covariance matrix, and a process noise covariance matrix;
[0173] The Kalman gain is calculated according to a second Jacobian matrix representing a local linearized relationship of the state variables of the measurement model, a second error covariance matrix, and an observation noise covariance matrix.
[0174] Optionally, the processing module 52 is specifically configured to:
[0175] The third error covariance matrix is calculated according to the Kalman gain, the second error covariance matrix and the second Jacobian matrix, and the third error covariance matrix is used as the first error covariance matrix required for the next current pose calculation.
[0176] Optionally, both the process noise covariance matrix and the observation noise covariance matrix satisfy a normal distribution.
[0177] Optionally, the posture determination system further includes: a control module, specifically configured to:
[0178] Obtain control instructions and execute a loop process; the loop process includes: obtaining a target posture and a current posture of a joint; determining a difference between the target posture and the current posture; determining a driving amount according to the difference and based on a mapping relationship between a driving amount for driving joint movement and a movement amount of the joint; and controlling joint movement according to the driving amount.
[0179] As for the system embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The system embodiment described above is only illustrative, wherein the units described as separate components may or may not be physically separated, and the components as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the disclosed solution.
[0180] Example 4
[0181] Fig.11 This is a schematic diagram of the structure of an electronic device shown in an example embodiment of the present disclosure, the device includes a memory, a processor, and a computer program stored in the memory and used to run on the processor, and when the processor executes the computer program, it implements the method for determining the posture of the flexible robot described in any of the above embodiments. Fig.11 The device 90 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0182] like Fig.11 As shown, the device 90 may be in the form of a general-purpose computing device, for example, it may be a server device. The components of the device 90 may include, but are not limited to: at least one processor 91, at least one memory 92, and a bus 93 connecting different system components (including the memory 92 and the processor 91).
[0183] The bus 93 includes a data bus, an address bus, and a control bus.
[0184] The memory 92 may include a volatile memory, such as a random access memory (RAM) 921 and / or a cache memory 922 , and may further include a read-only memory (ROM) 923 .
[0185] The memory 92 may also include a program tool 925 (or utility) having a set (at least one) of program modules 924, such program modules 924 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include an implementation of a network environment.
[0186] The processor 91 executes various functional applications and data processing by running the computer program stored in the memory 92, such as the method for determining the position and posture of the flexible robot provided in any of the above embodiments.
[0187] Device 90 can also communicate with one or more external devices 94 (e.g., keyboard, pointing device, etc.). Such communication can be performed through input / output (I / O) interface 95. In addition, device 90 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN) and / or public network, such as the Internet) through network adapter 96. As shown, network adapter 96 communicates with other modules of device 90 through bus 93. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with device 90, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.
[0188] It should be noted that although several units / modules or sub-units / modules of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided into multiple units / modules to be embodied.
[0189] Example 5
[0190] The embodiments of the present disclosure also provide a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the method for determining the posture of a flexible robot provided in any of the above embodiments is implemented.
[0191] The readable storage medium may include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device or any suitable combination of the above.
[0192] Example 6
[0193] An embodiment of the present disclosure also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned methods for determining the posture of a flexible robot.
[0194] Among them, the program code for executing the computer program product of the present disclosure can be written in any combination of one or more programming languages, and the program code can be executed completely on the user device, partially on the user device, as an independent software package, partially on the user device and partially on a remote device, or completely on the remote device.
[0195] Although the specific embodiments of the present disclosure are described above, those skilled in the art should understand that this is only an example, and the protection scope of the present disclosure is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present disclosure, but these changes and modifications all fall within the protection scope of the present disclosure.
Claims
1. A flexible robot, characterized in that: The flexible robot comprises: a surgical instrument, an electromagnetic positioning system, a driving device and a processor; the surgical instrument comprises at least one joint group, the joint group comprises joints and connectors, and is used to enter the human body to perform surgery; the electromagnetic positioning system comprises an electromagnetic positioning sensor and a magnetic field generator; the driving device comprises a driving component and a driving sensor; The two connecting members are connected via a joint; The driving sensor is connected to the joint of the flexible robot through the driving component, and the driving sensor is used to generate a mechanical sensing signal representing the mechanical parameters of the driving component; The electromagnetic positioning sensor is used to generate an electromagnetic induction signal representing the position of the joint where the electromagnetic positioning sensor is located under the action of the magnetic field generated by the magnetic field generator; The processor is used to calculate the current posture of the joint according to the mechanical induction signal and the electromagnetic induction signal.
2. The flexible robot according to claim 1, characterized in that: The driving device comprises at least two driving components, and each driven component is provided with at least one driving sensor; The processor is used to calculate the first pose according to the mechanical sensing signal and based on the system model; The system model is used to characterize the corresponding relationship between the mechanical sensing signal and the first posture based on the previous posture.
3. The flexible robot according to claim 2, characterized in that: The processor is used to calculate the second posture of the joint according to the electromagnetic induction signal and a measurement model based on an inverse kinematic solution; the measurement model is used to characterize the corresponding relationship between the electromagnetic induction signal and the second posture.
4. The flexible robot according to claim 1, characterized in that: The processor is used to calculate the current posture of the joint based on the extended Kalman filter using the mechanical induction signal and the electromagnetic induction signal.
5. A method for determining the position and posture of a flexible robot, characterized in that: The posture determination method is implemented by the flexible robot according to any one of claims 1 to 4; the posture determination method comprises: Acquiring the current mechanical induction signal and electromagnetic induction signal of the flexible robot; The current position and posture of the joint is calculated according to the mechanical induction signal and the electromagnetic induction signal.
6. The method for determining the position and posture of a flexible robot according to claim 5, characterized in that: The calculating the current posture of the joint according to the mechanical induction signal and the electromagnetic induction signal includes: Calculating a first posture according to the mechanical sensing signal and based on a system model; the system model is used to characterize a corresponding relationship between the mechanical sensing signal and the first posture; Calculating a second posture according to the electromagnetic induction signal and a measurement model based on an inverse kinematic solution; the measurement model is used to characterize a corresponding relationship between the electromagnetic induction signal and the second posture; The current posture of the joint is calculated according to the first posture and the second posture, and in combination with the uncertainties of the estimated state variables corresponding to the flexible robot, the system model, and the measurement model.
7. The method for determining the position and posture of a flexible robot according to claim 6, characterized in that: The step of calculating the current posture of the joint according to the first posture and the second posture and combining the uncertainties of the estimated state variables corresponding to the flexible robot, the system model, and the measurement model, respectively, includes: For each round of iteration, obtaining a first error covariance matrix characterizing uncertainty of state variable estimation of the flexible robot; Obtaining a process noise covariance matrix characterizing uncertainty in estimates of state variables of the system model; Obtaining an observation noise covariance matrix characterizing uncertainty in state variable estimates of the measurement model; Calculating a current second error covariance matrix according to a first Jacobian matrix characterizing a local linearization relationship of a state variable of the system model, the first error covariance matrix, and the process noise covariance matrix; The Kalman gain is calculated according to a second Jacobian matrix representing a local linearized relationship of the measurement model state variables, the second error covariance matrix, and the observation noise covariance matrix.
8. The method for determining the position and posture of a flexible robot according to claim 7, characterized in that: The posture determination method further includes: A third error covariance matrix is calculated according to the Kalman gain, the second error covariance matrix and the second Jacobian matrix, and the third error covariance matrix is used as the first error covariance matrix required for the next current pose calculation.
9. The method for determining the position and posture of a flexible robot according to claim 7, characterized in that: The process noise covariance matrix and the observation noise covariance matrix both satisfy normal distribution.
10. The method for determining the position and posture of a flexible robot according to claim 5, characterized in that: The posture determination method also includes: Obtain control instructions and execute a loop process; the loop process includes: Obtaining the target pose and the current pose of the joint; Determining a difference between the target pose and the current pose; Determine a driving amount according to the difference and based on a mapping relationship between a driving amount for driving the joint to move and a movement amount of the joint; The joint movement is controlled according to the driving amount.
11. A posture determination system for a flexible robot, characterized in that: The posture determination system is implemented by the flexible robot according to any one of claims 1 to 4; the posture determination system comprises: An acquisition module, used to acquire the current mechanical induction signal and electromagnetic induction signal of the flexible robot; A processing module is used to calculate the current posture of the joint according to the mechanical induction signal and the electromagnetic induction signal.
12. An electronic device comprising a memory, a processor, and a computer program stored in the memory and used to run on the processor, characterized in that: When the processor executes the computer program, the method for determining the position and posture of the flexible robot according to any one of claims 5 to 10 is implemented.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for determining the position and posture of the flexible robot according to any one of claims 5 to 10 is implemented.
14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method for determining the position and posture of a flexible robot according to any one of claims 5 to 10 is implemented.
