Autonomous correction of alignment error in a master-slave robotic system
11179209 · 2021-11-23
Assignee
Inventors
Cpc classification
Y10S901/31
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
B25J11/008
PERFORMING OPERATIONS; TRANSPORTING
Y10S901/06
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
A61B2034/301
HUMAN NECESSITIES
International classification
B25J11/00
PERFORMING OPERATIONS; TRANSPORTING
A61B34/00
HUMAN NECESSITIES
Abstract
In some embodiments, correcting an alignment error between an end effector of a tool associated with a slave and a master actuator associated with a master in a robotic system involves receiving at the master, master actuator orientation signals (R.sub.MCURR) representing the orientation of the master actuator relative to a master reference frame and generating end effector orientation signals (R.sub.EENEW) representing the end effector orientation relative to a slave reference frame, producing control signals based on the end effector orientation signals, receiving an enablement signal for selectively enabling the control signals to be transmitted from the master to the slave, responsive to a transition of the enablement signal from not active state to active state, computing the master-slave misalignment signals (R.sub.Δ) as a difference between the master actuator orientation signals (R.sub.MCURR) and the end effector orientation signals (R.sub.EENEW), and adjusting the master-slave misalignment signals (R.sub.Δ) to reduce the alignment difference.
Claims
1. A method of reducing alignment difference between an instrument end effector and an input actuator in a robotic system, the method comprising, by a processor: receiving signals representing an orientation of the input actuator; receiving an enablement signal that, in an active state, permits a change in the orientation of the instrument end effector in response to a change in the orientation of the input actuator; in response to determining that the enablement signal has transitioned to the active state, determining an alignment error between a current orientation of the input actuator and a current orientation of the instrument end effector; and while the alignment error is greater than an alignment criterion and the enablement signal is in the active state: determining a rotational speed associated with a change in orientation of the input actuator; in response to determining that the rotational speed satisfies a threshold rotational speed associated with reducing the alignment error, producing an adjustment control signal; and adjusting the orientation of the instrument end effector based on the adjustment control signal to reduce the alignment error.
2. The method of claim 1 wherein determining the alignment error comprises computing an offset angle between a master reference frame in which the input actuator is oriented and a slave reference frame in which the instrument end effector is oriented.
3. The method of claim 2 wherein computing the offset angle is performed while permitting a roll alignment error about the respective z-axes between the slave reference frame and the master reference frame.
4. The method of claim 2 wherein computing the offset angle comprises generating a rotation matrix that carries the instrument end effector orientation at a time of the enablement signal transition into the input actuator orientation at the time of the enablement signal transition and determining the offset angle associated with the rotation matrix.
5. The method of claim 2 wherein the alignment error is determined to be greater than the alignment criterion in response to the offset angle between the slave reference frame and the master reference frame being less than a threshold value.
6. The method of claim 1 wherein producing the adjustment control signal comprises: determining a misalignment axis associated with the alignment error; determining an axis and an angle of rotation associated with the change in orientation of the input actuator; computing a component of rotation associated with the changes in orientation of the input actuator in a direction of the misalignment axis; and computing a correction angle for the adjustment based on the angle of rotation of the input actuator and the component of rotation.
7. The method of claim 1 further comprising, in response to determining that the rotational speed does not satisfy the threshold rotational speed, not adjusting the orientation of the instrument end effector.
8. The method of claim 1 wherein determining the rotational speed comprises: generating a rotation matrix that carries a previous input actuator orientation into a current input actuator orientation; computing an angle of rotation associated with the rotation matrix; and computing the rotational speed based on the angle of rotation and a sampling rate for the input actuator.
9. The method of claim 1 wherein producing the adjustment control signal; comprises successively adjusting an orientation of a slave reference frame until the slave reference frame in which the instrument end effector is oriented meets the alignment criterion.
10. The method of claim 1 wherein determining the rotational speed is performed for each change in orientation of the input actuator.
11. A non-transitory computer readable medium storing instructions that, when executed by a processor, cause the processor to execute a method of reducing alignment difference between an instrument end effector and an input actuator in a robotic system, the method comprising: receiving signals representing an orientation of the input actuator; receiving an enablement signal that, in an active state, permits a change in the orientation of the instrument end effector in response to a change in the orientation of the input actuator; in response to determining that the enablement signal has transitioned to the active state, determining an alignment error between a current orientation of the input actuator and a current orientation of the instrument end effector; and while the alignment error is greater than an alignment criterion and the enablement signal is in the active state: determining a rotational speed associated with a change in orientation of the input actuator; in response to determining that the rotational speed satisfies a threshold rotational speed associated with reducing the alignment error, producing an adjustment control signal; and adjusting the orientation of the instrument end effector based on the adjustment control signal to reduce the alignment error.
12. The computer readable medium of claim 11 wherein determining the alignment error comprises computing an offset angle between a master reference frame in which the input actuator is oriented and a slave reference frame in which the instrument end effector is oriented.
13. The computer readable medium of claim 12 wherein computing the offset angle is performed while permitting a roll alignment error about the respective z-axes between the slave reference frame and the master reference frame.
14. The computer readable medium of claim 12 wherein computing the offset angle comprises generating a rotation matrix that carries the instrument end effector orientation at a time of the enablement signal transition into the input actuator orientation at the time of the enablement signal transition and determining the offset angle associated with the rotation matrix.
15. The computer readable medium of claim 12 wherein the alignment error is determined to be greater than the alignment criterion in response to the offset angle between the slave reference frame and the master reference frame being less than a threshold value.
16. The computer readable medium of claim 11 wherein producing the adjustment control signals comprises: determining a misalignment axis associated with the alignment error; determining an axis and an angle of rotation associated with the change in orientation of the input actuator; computing a component of rotation associated with the changes in orientation of the input actuator in a direction of the misalignment axis; and computing a correction angle for the adjustment based on the angle of rotation of the input actuator and the component of rotation.
17. The computer readable medium of claim 11 further comprising, in response to determining that the rotational speed does not satisfy the threshold rotational speed, not adjusting the orientation of the instrument end effector.
18. The computer readable medium of claim 11, wherein determining the rotational speed comprises: generating a rotation matrix that carries a previous input actuator orientation into a current input actuator orientation; computing an angle of rotation associated with the rotation matrix; and computing the rotational speed based on the angle of rotation and a sampling rate for the input actuator.
19. The computer readable medium of claim 11 wherein producing the adjustment control signals comprises successively adjusting an orientation of a slave reference frame until the slave reference frame in which the instrument end effector is oriented meets the alignment criterion.
20. The computer readable medium of claim 11 wherein determining the rotational speed is performed for each change in orientation of the input actuator.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) In drawings which illustrate embodiments of the invention,
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
DETAILED DESCRIPTION
(11) Referring to
(12) In the embodiment shown, the master subsystem 52 comprises a workstation 56 having first and second input devices 58 and 60 and a viewer 62 in communication with a master apparatus 64 comprising at least one processor. The first and second input devices 58 and 60 are operable to be actuated by respective hands of an operator such as a surgeon, for example, who will perform the laparoscopic surgery by manipulating the first and second input devices of the master subsystem 52 to control corresponding laparoscopic tools 66 and 67 on the slave subsystem 54.
(13) The viewer 62 may include an LCD display 68, for example, for displaying images acquired by a camera 70 on the slave subsystem 54, to enable the user to see the laparoscopic tools 66 and 67 inside the patient while manipulating the first and second input devices 58 and 60 to cause the tools to move in desired ways to perform the surgery. The first and second input devices 58 and 60 produce position and orientation signals that are received by the master apparatus 64 and the master apparatus produces slave control signals that are transmitted by wires 72 or wirelessly, for example, from the master subsystem 52 to the slave subsystem 54.
(14) The slave subsystem 54 includes a slave computer 74 that receives the slave control signals from the master subsystem 52 and produces motor control signals that control motors 76 on a drive mechanism of a tool controller 78 of the slave subsystem 54, to extend and retract wires (not shown) of respective tool positioning devices 79 and 81 to position and to rotate the tools 66 and 67. Exemplary tool positioning devices and tools for this purpose are described in PCT/CA2013/001076, which is incorporated herein by reference. The tool positing devices 79 and 81 extend through an insertion tube 61, a portion of which is inserted through a small opening 63 in the patient to position end effectors 71 and 73 of the tools 66 and 67 inside the patient, to facilitate the surgery.
(15) In the embodiment shown, the workstation 56 has a support 80 having a flat surface 82 for supporting the first and second input devices 58 and 60 in positions that are comfortable to the operator whose hands are actuating the first and second input devices 58 and 60.
(16) In the embodiment shown, the slave subsystem 54 includes a cart 84 in which the slave computer 74 is located. The cart 84 has an articulated arm 86 mechanically connected thereto, with a tool holder mount 88 disposed at a distal end of the articulated arm.
(17) In the embodiment shown, the first and second input devices 58 and 60 are the same, but individually adapted for left and right hand use respectively. In this embodiment, each input device 58 and 60 is an Omega.7 haptic device available from Force Dimension, of Switzerland. For simplicity, only input device 60 will be described, it is being understood that input device 58 operates in the same way.
(18) Referring to
(19) The arms 94, 96, 98 facilitate translational movement of the handle 102 and hence the handle position 104, in space, and confine the movement of the handle position within a volume in space. This volume may be referred to as the handle translational workspace.
(20) The handle 102 is mounted on a gimbal mount 106 having a pin 108. The base plate 90 has a calibration opening 110 for receiving the pin 108. When the pin 108 is received in the opening 110, the input device 60 is in a calibration position that is defined relative to a fixed master Cartesian reference frame comprising orthogonal axes x.sub.r, y.sub.r, z.sub.r generally in the center of the handle translational workspace. In the embodiment shown, this master reference frame has an x.sub.r-z.sub.r plane parallel to the flat surface 82 and a y.sub.r axis perpendicular to the flat surface.
(21) In the embodiment shown, the z.sub.r axis is parallel to the flat surface 82 and is coincident with an axis 112 passing centrally through the control unit 92 so that pushing and pulling the handle 102 toward and away from the center of the control unit 92 along the axis 112 in a direction parallel to the flat surface 82 is movement in the z.sub.r direction.
(22) The control unit 92 has sensors (not shown) that sense the positions of the arms 94, 96, 98 and the rotation of the handle 102 and produces signals representing the handle position 104 (i.e. the center of the handle 102) in the workspace and the rotational orientation of the handle 102 relative to the fixed master reference frame x.sub.r, y.sub.r, z.sub.r. In this embodiment, these position and orientation signals are transmitted on wires 111 of a USB bus to the master apparatus 64. More particularly, the control unit 92 produces current handle position signals and current handle orientation signals that represent the current position and orientation of the handle 102 by a current handle position vector .sub.MCURR and a current handle rotation matrix R.sub.MCURR, relative to the fixed master reference frame x.sub.r, y.sub.r, z.sub.r.
(23) For example, the current handle position vector .sub.MCURR is a vector
(24)
where x.sub.1, y.sub.1, and z.sub.1 represent coordinates of the handle position 104 within the handle workspace relative to the fixed master reference frame, x.sub.r, y.sub.r, z.sub.r.
(25) The current handle rotation matrix R.sub.MCURR is a 3×3 matrix
(26)
where the columns of the matrix represent the axes of the handle reference frame x.sub.1, y.sub.1, z.sub.1 written in the fixed master reference frame x.sub.r, y.sub.r, z.sub.r. R.sub.MCURR thus defines the current rotational orientation of the handle 102 in the handle translational workspace, relative to the x.sub.r, y.sub.r, z.sub.r master reference frame.
(27) The current handle position vector .sub.MCURR and current handle rotation matrix R.sub.MCURR are transmitted in the current handle position and orientation signals on wires 111 of the USB bus, for example, to the master apparatus 64 in
(28) In addition, in the embodiment shown, referring to
(29) Referring now to
(30) In the embodiment shown, end effector 73 includes a pair of gripper jaws. Orthogonal axes x.sub.2, y.sub.2 and z.sub.2 of an end effector Cartesian reference frame have an origin on the end effector axis, for example, at the intersection at the tip of the gripper jaws of the end effector 73. The origin of the end effector reference frame may be referred to as the end effector position 150 relative to the fixed slave reference frame x.sub.s, y.sub.s, z.sub.s. Due to the mobility of the tool positioning device 81 and the mobility of the end effector 73 itself, the end effector position 150 can be placed at discrete positions within a volume in space. This volume may be referred to as the end effector translational workspace.
(31) New end effector positions and end effector orientations are calculated by an end effector position and orientation calculation block 116 encoded in the master apparatus 64 shown in .sub.MCURR and current handle orientation signals R.sub.MCURR and are represented by a new end effector position vector
.sub.EENEW and a new end effector rotation matrix R.sub.EENEW, relative to the x.sub.s, y.sub.s, z.sub.s fixed slave reference frame.
(32) For example, the new end effector position vector .sub.EENEW is a vector
(33)
where x.sub.2, y.sub.2, and z.sub.2 represent coordinates of the end effector position 150 within the end effector translational workspace relative to the x.sub.s, y.sub.s, z.sub.s fixed slave reference frame.
(34) The end effector rotation matrix R.sub.EENEW is a 3×3 matrix
(35)
where the columns of the R.sub.EENEW matrix represent the axes of the end effector reference frame x.sub.2, y.sub.2, z.sub.2 written in the fixed slave reference frame x.sub.s, y.sub.s, z.sub.s. R.sub.EENEW thus defines a new orientation of the end effector 73 in the end effector translational workspace, relative to the x.sub.s, y.sub.s, z.sub.s reference frame.
(36) Referring back to
(37) Generally, the end effector position and orientation calculation block 116 includes codes that direct the master apparatus 64 to produce the new end effector position and orientation signals, referred to herein as {right arrow over (P)}.sub.EENEW and R.sub.EENEW n respectively.
(38) The kinematics block 118 includes codes that direct the master apparatus 64 to produce configuration variables in response to the newly calculated end effector position and orientation signals {right arrow over (P)}.sub.EENEW and R.sub.EENEW.
(39) The motion control block 120 includes codes that direct the master apparatus 64 to produce the slave control signals, in response to the configuration variables.
(40) The base setting block 216 is executed asynchronously, whenever the enablement signal transitions from an inactive state to an active state, such as when the user releases the footswitch 170. The base setting block 216 directs the master apparatus 64 to set new reference positions and orientations for the handle 102 and end effector 73, respectively as will be described below.
(41) Referring back to
(42) Referring to
(43) The kinematics block 118 receives newly calculated end effector position and orientation signals {right arrow over (P)}.sub.EENEW and R.sub.EENEW each time the end effector position and orientation calculation block 116 is executed. In response, the kinematics block 118 produces the configuration variables described below.
(44) Referring to
(45) Referring to
(46) The s-segment 130 extends from the first position 330 to a third position 334 defined as an origin of a third reference frame having axes x.sub.5, y.sub.5, and z.sub.5 and is capable of assuming a smooth S-shape when control wires (not shown) inside the s-segment 130 are pushed and pulled. The s-segment 130 has a mid-point at a second position 332, defined as the origin of a second position reference frame having axes x.sub.4, y.sub.4, z.sub.4. The s-segment 130 has a length L.sub.1, which in the embodiment shown may be about 65 mm, for example.
(47) The distal segment 132 extends from the third position 334 to a fourth position 336 defined as an origin of a fourth reference frame having axes x.sub.6, y.sub.6, z.sub.6. The distal segment 132 has a length L.sub.2, which in the embodiment shown may be about 23 mm, for example.
(48) The tool 67 also has an end effector length, which in the embodiment shown is a gripper length L.sub.3 that extends from the fourth position 336 to the end effector position 150 defined as the origin of axes x.sub.2, y.sub.2, and z.sub.2. The gripper length L.sub.3, in this embodiment, may be about 25 mm, for example. The slave base position 128, first position 330, second position 332, third position 334, fourth position 336 and end effector position 150 may collectively be referred to as tool reference positions.
(49) As explained in PCT/CA2013/001076, hereby incorporated herein by reference in its entirety, by pushing and pulling on certain control wires inside the tool positioning devices 79 and 81, the s-segment 130 can be bent into any of various degrees of an S-shape, from straight as shown in
(50) In addition, the distal segment 132 lies in a second bend plane containing the third position 334 and the fourth position 336. The second bend plane is at an angle δ.sub.dist to the x.sub.s-z.sub.s plane of the fixed slave reference frame. The distal segment 132 is bent in the second bend plane at an angle θ.sub.dist. Thus, by pushing and pulling the control wires within the tool positioning device 81, the fourth position 336 can be placed within another volume in space. This volume may be referred to as the distal workspace. The combination of the s-segment workspace plus the distal workspace can be referred to as the tool positioning device workspace, as this represents the total possible movement of the tools 66 and 67 as effected by the respective tool positioning devices 79 and 81.
(51) The distance between the fourth position 336 and the end effector position 150 is the distance between the movable portion of the distal segment 132 and the tip of the gripper end effector 73 in the embodiment shown, i.e. the length L.sub.3. Generally, the portion of the gripper between the fourth position 336 and the end effector position 150 (L.sub.3) will be unbendable.
(52) In the embodiment shown, the end effector 73 is a gripper jaw tool that is rotatable about the z.sub.2 axis in the x.sub.2-y.sub.2 plane of the end effector reference frame, the angle of rotation being represented by an angle γ relative to the positive x.sub.2 axis. Finally, the gripper jaws may be at any of varying degrees of openness from fully closed to fully open (as limited by the hinge). The varying degrees of openness may be defined as the “gripper”.
(53) In summary therefore, the configuration variables provided by the kinematic block 118 codes are as follows: q.sub.ins: represents a distance from the slave base position 128 defined by axes x.sub.s, y.sub.s, and z.sub.s to the first position 330 defined by axes x.sub.3, y.sub.3 and z.sub.3 where the s-segment 130 of the tool positioning device 81 begins; δ.sub.prox: represents a first bend plane in which the s-segment 130 is bent relative to the x.sub.s-y.sub.s plane of the fixed slave reference frame; θ.sub.prox: represents an angle at which the first and second sections 320 and 322 of the s-segment 130 is bent in the first bend plane; θ.sub.dist: represents a second bend plane in which the distal segment 132 is bent relative to the x.sub.s-y.sub.s plane of the fixed slave reference frame; θ.sub.dist: represents an angle through which the distal segment 132 is bent in the second bend; γ: represents a rotation of the end effector 73 about axis z.sub.2; and Gripper: represents a degree of openness of the gripper jaws of the end effector 73. (This is a value which is calculated in direct proportion to a signal produced by an actuator (not shown) on the handle 102 indicative of an amount of pressure the operator exerts by squeezing the handle).
(54) To calculate the configuration variables, it will first be recalled that the end effector rotation matrix R.sub.EENEW is a 3×3 matrix:
(55)
Since the last column of R.sub.EENEW is the z-axis of the end effector reference frame written relative to the fixed slave reference frame x.sub.s, y.sub.s and z.sub.s, the values θ.sub.dist, θ.sub.dist, and γ associated with the distal segment 132 can be calculated according to the relations:
(56)
(57)
γ=a tan 2(−y.sub.2z,y.sub.2z)−δ.sub.dist+π (4a)
else
γ=a tan 2(y.sub.2z,−x.sub.2z)−δ.sub.dist (4b)
(58) These values can then be used to compute the locations of the third position 334, the fourth position 336, and the end effector position 150 relative to the fixed slave base position 128. The locations may be expressed in terms of vectors
where:
(59)
where:
(60) ī is a unit vector in the x direction;
(61)
(62)
(63) Once the vector from the fixed slave base position 128 to the third position 334 (
(64)
The ratio of (8b) and (8a) gives
δ.sub.prox=a tan 2(−
(65) where ī and
(66) A closed form solution cannot be found for θ.sub.prox, thus θ.sub.prox must be found with a numerical equation solution to either of equations (8a) or (8b). A Newton-Raphson method, being a method for iteratively approximating successively better roots of a real-valued function, may be employed, for example. The Newton-Raphson method can be implemented using the following equations:
(67)
where ī is the unit vector in the x direction.
(68) The equation (10) is equation (8a) rewritten in the form f(θ.sub.prox)=0. The Newton-Raphson method tends to converge very quickly because in the range 0<θ.sub.prox<π, the function has a large radius of curvature and has no local stationary points. Following the Newton-Raphson method, successive improved estimates of θ.sub.prox can be made iteratively to satisfy equation (10) using the following relationship:
(69)
Finally, upon determination of θ.sub.prox, the following equation can be used to find q.sub.ins,
(70)
where:
(71)
(72)
(73) The codes in the kinematics block 118 shown in
(74) It will be appreciated that configuration variables are produced for each end effector 71 and 73 and therefore in the embodiment shown, two sets of configuration variables which will be referred to as left and right configuration variables respectively are produced and forwarded or otherwise made available to the motion control block 120.
(75) Referring to
(76) Referring to .sub.MBASE in a third store 146 and stores values representing a definable master base rotation matrix R.sub.MBASE in a fourth store 148. The master apparatus 64 initially causes the definable master base position vector
.sub.MBASE to be set equal to the current handle position vector
.sub.MCURR on startup of the system and causes the definable master base rotation matrix R.sub.MBASE to define an orientation that is the same as the orientation defined by the current handle rotation matrix R.sub.MCURR associated with the current handle rotation, on startup of the system.
(77) Initially, therefore: .sub.MBASE=
.sub.MCURR; and R.sub.MBASE=R.sub.MCURR.
(78) In other words, the master base reference frame and the handle reference frame coincide at startup.
(79) Thereafter, the master base position vector .sub.MBASE and the master base rotation matrix R.sub.MBASE are maintained at the same values as on startup until the enablement signal is activated, such as by inactivation of the footswitch (170 in
.sub.MBASE and master base rotation matrix R.sub.MBASE to the currently acquired handle position vector
.sub.MCURR and currently acquired handle orientation matrix R.sub.MCURR respectively.
(80) Referring to .sub.EEBASE in a fifth store 152 and stores values representing a definable slave base rotation matrix R.sub.EEBASE in a sixth store 154. The master apparatus 64 initially causes the definable slave base position vector
.sub.EEBASE to be set equal to the new end effector position vector
.sub.EENEW and causes the definable slave base rotation matrix R.sub.EEBASE to define an orientation that is the same as the orientation defined by the new end effector rotation matrix R.sub.EENEW on startup of the system.
(81) Initially, therefore: .sub.EEBASE=
.sub.EENEW; and R.sub.EEBASE=R.sub.EENEW.
(82) In other words, the slave base reference frame and the end effector reference frame coincide at startup.
(83) The slave base position .sub.EEBASE and slave base rotation matrix R.sub.EEBASE are maintained at the same values as on startup until the enablement signal is activated such as by inactivation of the footswitch (170 in
.sub.EEBASE and slave base rotation matrix R.sub.EEBASE to the newly calculated end effector position vector
.sub.EENEW and newly calculated end effector rotation matrix R.sub.EENEW.
(84) Referring to .sub.MCURR and R.sub.MCURR are acquired from the control unit 92. It begins with a first block 161 that directs the master apparatus 64 to check the state of the enablement signal to determine whether it is active or inactive. If the enablement signal is active, then the process continues at block 160 shown in
.sub.EENEW and to produce and store, in an eighth store 164 in
(85) To produce new end effector position signals .sub.EENEW and new end effector orientation signals R.sub.EENEW representing a desired end effector position 150 and desired end effector orientation, relative to the slave base position 128 and the slave base rotation, the new end effector position signals
.sub.EENEW and new end effector orientation signals R.sub.EENEW are calculated according to the following relations:
.sub.EENEW=A(
.sub.MCURR−
.sub.MBASE)+
.sub.EEBASE
and
R.sub.EENEW=R.sub.EEBASER.sub.MBASE.sup.−1R.sub.MCURR Where: .sub.EENEW is the new end effector position vector that represents the new desired end effector position 150 of the end effector 73 in the end effector workspace, relative to the slave base reference frame; A is a scalar value representing a scaling factor in translational motion between the master and the slave;
.sub.MCURR is the current representation of the handle position vector stored in the first store 142, the handle position vector being relative to the fixed master reference frame;
.sub.MBASE is the last-saved position vector
.sub.MCURR for the handle 102 that was saved upon the last inactive to active state transition of the enablement signal such as by release of the footswitch 170 or on system initialization or by operation of a control interface by the operator;
.sub.EEBASE is the last-saved position vector
.sub.EENEW for the end effector 73 that was saved upon the last inactive to active state transition of the enablement signal; R.sub.EENEW is the new end effector rotation matrix representing the current orientation of the end effector 73 relative to the slave reference frame; R.sub.EEBASE is the rotation matrix representing the last-saved orientation of the end effector 73 saved upon the last inactive to active state transition of the enablement signal; R.sub.MBASE.sup.−1 is the inverse of rotation matrix R.sub.MBASE, where R.sub.MBASE is a rotation matrix representing the last-saved orientation of the handle 102 saved upon the last inactive to active state transition of the enablement signal; R.sub.MCURR is the currently acquired rotation matrix representing the orientation of the handle 102 relative to the fixed master reference frame.
(86) The following describes how the master apparatus 64 is controlled by the codes in the end effector position and orientation calculation block 116 to effect autonomous alignment of the orientation of the end effector 73 with the handle 102 after clutching and to effect autonomous alignment of the z-axes of the handle 102 and end effector 73 for wrist roll management.
(87) Referring to .sub.EENEW and R.sub.EENEW are calculated by the master apparatus 64 executing block 160, the master apparatus 64 is directed to block 202 which directs the master apparatus to determine whether the system 50 is configured to allow wrist roll management. A simple binary wrist roll management signal selectively set by the operator is used to indicate to the master apparatus 64 whether the system 50 is configured to allow wrist roll management or not. If the system is not configured for wrist roll management, block 204 directs the master apparatus 64 to compute a rotation matrix that carries the newly calculated end effector orientation into the current handle orientation (R.sub.EE_TO_MASTER) by the relation:
R.sub.EE_TO_MASTER=R.sub.EENEW.sup.−1R.sub.MCURR Where: R.sub.EENEW.sup.−1 is the inverse matrix of the end effector rotation matrix R.sub.EENEW represented by a 3×3 matrix stored in the eighth store 164 in
(88) Then, block 206 directs the master apparatus 64 to compute an angle of rotation associated With R.sub.EE_TO_MASTER (Φ.sub.EE_TO_MASTER) by the relation:
Φ.sub.EE_TO_MASTER=a cos (0.5 trace(R.sub.EE_TO_MASTER)−1)
(89) This angle of rotation (Φ.sub.EE_TO_MASTER) represents the alignment difference between the orientation of the handle 102 and the newly calculated end effector orientation.
(90) In a special case, applicable to the embodiment described here, it is desirable that to be aligned, only the z-axes of the reference frames described by R.sub.EENEW and R.sub.MCURR be coincident. In this case the handle 102 and the end effector 73 point in the same direction relative to their respective fixed reference frames (x.sub.r, y.sub.r, z.sub.r and x.sub.s, v.sub.s, z.sub.s, respectively) and the roll about their z-axis is not considered.
(91) In this special case therefore, blocks 204 and 206 shown in
Φ.sub.EE_TO_MASTER=a cos(R.sub.EENEW(1,3)*R.sub.M_CURR(1,3)+R.sub.EENEW(2,3)*R.sub.M_CURR(2,3)+R.sub.EENEW(3,3)*R.sub.MCURR(3,3)) Where (i,j) represent matrix row (i) and column (j) indices.
(92) This computation represents the angle obtained from the dot product of the z-axes of the handle reference frame and end effector reference frame.
(93) Referring back to
(94)
(95) After executing either block 206 or block 208, the angle of rotation by which the handle 102 and end effector 73 are out of alignment, i.e. the alignment error, is given by Φ.sub.EE_TO_MASTER.
(96) The master apparatus 64 is then directed to block 210 which causes it to determine whether the alignment error Φ.sub.EE_TO_MASTER meets a criterion, such as being above a threshold value. If the alignment error is not above the threshold value, the current handle orientation R.sub.MCURR and new end effector orientation R.sub.EENEW are considered to be aligned.
(97) Then, block 215 directs the master apparatus 64 to signal the motion control block 120 of .sub.EENEW and R.sub.EENEW are to be sent to the slave computer 74. This causes the end effector 73 to assume a position and orientation determined by the current position and current orientation of the handle 102 when the alignment difference meets the criterion.
(98) Block 159 then directs the master apparatus 64 to copy the newly calculated end effector position vector .sub.EENEW and end effector rotation matrix R.sub.EENEW into an eleventh and twelfth stores 147 and 149 of a previous buffer 141 of
.sub.EENEW and newly calculated end effector rotation matrix R.sub.EENEW are thus renamed as “previously calculated end effector position vector”
.sub.EEPREV and “previously calculated end effector rotation matrix” R.sub.EEPREV. By storing the newly calculated end effector position vector
.sub.EENEW and newly calculated end effector rotation matrix R.sub.EENEW, as previously calculated end effector position vector
.sub.EEPREV and previously calculated end effector rotation matrix R.sub.EEPREV, a subsequently acquired new end effector position vector
.sub.EENEW and subsequently acquired new end effector rotation matrix R.sub.EENEW can be calculated from the next current handle position vector
.sub.MCURR and next current handle position matrix R.sub.MCURR.
(99) The end effector position and orientation calculation block 116 is thus completed, and the calculated .sub.EENEW and R.sub.EENEW values stored in the seventh and eighth stores 162 and 164 are available for use by the kinematics block 118.
(100) If at block 210 the alignment error is above the threshold value, block 214 directs the master apparatus 64 to produce a rotation matrix that carries the previous handle orientation into current handle orientation (R.sub.DIFF), according to the relation:
R.sub.DIFF=R.sub.MPREV.sup.−1R.sub.MCURR Where: R.sub.MPREV.sup.−1 is the inverse of the previous handle rotation matrix stored in the tenth store 145 of
(101) Referring to
(102)
(103) Then, block 216 directs the master computer 64 to compute an angle of rotation (Φ.sub.DIFF) associated with R.sub.DIFF by the relation:
Φ.sub.DIFF=a cos (0.5 trace(R.sub.DIFF)−1)
(104) Then, block 218 directs the master computer 64 to compute an angular speed of the rotation (ω.sub.DIFF) associated with R.sub.DIFF by the relation:
ω.sub.DIFF=sr.Math.Φ.sub.DIFF Where: sr=sample rate in Hz at which {right arrow over (P)}.sub.MCURR and R.sub.MCURR values are acquired from the control unit (92).
(105) Then, block 220 directs the master apparatus 64 to determine whether the angular speed WDIFF meets a second criterion such as being above a threshold speed to initiate auto alignment. (This may avoid any automated motion when the user is performing slow fine movements that may be undesirable.)
(106) If not, the master apparatus 64 is directed to block 222 which corresponds to location “E” on
(107) If at block 220 the angular speed ω.sub.DIFF is above the threshold speed, block 224 directs the master computer 64 to determine whether the system is configured to allow wrist roll misalignment by reading the status of the wrist roll management signal set by the operator. If the wrist roll management signal is not active, block 226 directs the master apparatus 64 to determine a misalignment axis e.sub.ERR, i.e. the axis of rotation associated with R.sub.EE_TO_MASTER by the relation
(108)
(109) Alternatively, if the system is configured to allow wrist roll misalignment, block 228 directs the master apparatus 64 to determine a unit vector in the direction of the misalignment axis e.sub.ERR by the relation:
(110)
(111) Now referring to
L=|
(112) Then, block 234 directs the master apparatus 64 to compute a correction angle Φ.sub.C, as a function of the angle of the master rotation Φ.sub.DIFF and the component of the master rotation in the misalignment plane L by the relation:
Φ.sub.C=BΦ.sub.DIFFf(L) Where: B is a scaling factor that defines the fraction of Φ.sub.DIFF that should be used in the correction angle Φ.sub.C, for example B=0.5. f(L) is a function that alters the profile of how the correction angle Φ.sub.C changes with the plane of orientation change, for example f (L)=L.sup.3.
(113) Then, block 236 directs the master apparatus 64 to compute a correction matrix R.sub.C(Φ.sub.C, e.sub.ERR) to rotate by the correction angle Φ.sub.C about the misalignment axis e.sub.ERR.
(114) The correction matrix R.sub.C is determined by the relation:
R.sub.C(Φ.sub.C,e.sub.ERR)=e.sub.ERRe.sub.ERR.sup.T+COS (Φ.sub.C)*(I-e.sub.ERRe.sub.ERR.sup.T)+sin (Φ.sub.C)E.sub.ERR
Where:
(115)
(116) Then, block 238 directs the master apparatus 64 to modify the end effector base matrix using the correction matrix, R.sub.C by the relation:
R.sub.EEBASE′=R.sub.EEBASER.sub.C
(117) The R.sub.EEBASE′ value calculated by block 238 is then saved in the sixth store 154, of
(118) Then, block 244 directs the master apparatus 64 to re-compute the end effector rotation matrix R.sub.EENEW using the new end effector base rotation matrix R.sub.EEBASE and store this new end effector orientation as R.sub.EENEW in store 164, of
R.sub.EENEW=RR.sub.EEBASE Where: R is a rotation matrix describing the rotation between the master base rotation matrix and R.sub.MBASE the current handle rotation matrix R.sub.MCURR.
R=R.sub.MCURRR.sub.MBASE.sup.−1
(119) Then, block 240 directs the master apparatus 64 to location “E” in
(120) Alternatively referring to
(121) Referring back to .sub.EENEW and
.sub.EENEW to determine the configuration variables. The configuration variables are made available to the motion control block 120 and the motion control block 120 produces the slave control signals representing wire lengths. Referring back to
.sub.EENEW and R.sub.EENEW are transmitted to the slave computer 74 when the footswitch 170 is not depressed. When the footswitch 170 is depressed the process continues at block 163, and the slave control signals based on
.sub.EEPREV and R.sub.EEPREV are transmitted to the slave computer 74 when the footswitch 170 is depressed.
(122) It will be appreciated that the above routine is executed by the end effector position and orientation calculation block 116 after each sample of the {right arrow over (P)}.sub.MCURR and R.sub.MCURR values is acquired from the control unit 92. Suitable values for the scaling factor B at block 234 and suitable choices for the correction angle function f(L) at block 234 will cause the R.sub.EEBASE saved in store 154 to be updated each time the routine is executed, i.e. each time new {right arrow over (P)}.sub.MCURR and R.sub.MCURR values are acquired, until the alignment error Φ.sub.EE_TO_MASTER is below the alignment threshold at which time the handle 102 and the end effector 73 are considered to be aligned and no further modification of the R.sub.EEBASE value occurs.
(123) Generally, when the enablement signal is in the inactive state, the handle 102 on input device 61 can be moved and rotated and the calculations of {right arrow over (P)}.sub.EENEW and R.sub.EENEW will still be performed, but there will be no movement of the end effector 73. This allows “clutching” or repositioning the handle 102 without corresponding movement of the end effector 73, to enable the end effector 73 to have increased range of movement and to allow the operator to reposition their hands to a more comfortable position within the master translational workspace. For example, referring to
(124) The above clutching effect is achieved by causing movements of the handle 102 and movements of the end effector 73 to be made relative to the last-saved master base position .sub.MBASE and orientation R.sub.MBASE and the last saved slave base position
.sub.EEBASE and orientation R.sub.EEBASE respectively. The master computer 64 stores the current values of the current handle position
.sub.MCURR and current handle orientation R.sub.MCURR signals as new values of the master base position signals
.sub.MBASE and new values of the master base orientation signals R.sub.MBASE respectively, and stores the current values of the end effector position signals
.sub.EENEW and new end effector orientation R.sub.EENEW signals as new values of the slave base position signals
.sub.EEBASE and new values of the slave base orientation signals R.sub.EEBASE respectively, in response to the enablement signal transitioning from the “not active” state to the “active” state. Otherwise, upon release of the footswitch 170, the end effector 73 would “snap” to the absolute position directly mapped to the position and orientation of the handle 102 and this could be dangerous if it were to occur inside a patient because the end effector 73 could tear into tissue or internal organs of the patient with possibly life-threatening effects. In addition, the surgeon would feel somewhat out of control of the end effectors 71 and 73.
(125) While the above described clutching effect is desirable to match the range of translational movement of the end effector 73 with the range of movement of the handle 102 and to reposition the hands of the operator to a comfortable position, it is not desirable for clutching to result in reorientation of the handle within the master rotational workspace because orientation control can become unnatural or unintuitive to the operator when there is a misalignment between the handle 102 and end effector 73. In the absence of a mechanical means to maintain the orientation of the handle 102 it would be difficult for the operator to rotate the handle 102 to cause it to be exactly aligned with the end effector 73 on release of the footswitch 170 so that normal operation can be resumed. In this regard, the codes of the end effector position and orientation calculation block 116 direct the master apparatus 64 to detect a difference, between the current handle orientation signals R.sub.MCURR and the new end effector orientation signals R.sub.EENEW, the difference representing a difference in physical alignment between the end effector 73 and the handle 102 relative to their respective fixed reference frame. In response to detecting the difference, the codes cause the master apparatus 64 to adjust the saved slave base orientation signals R.sub.EEBASE to ultimately have values close to the same values as the saved master base orientation signals R.sub.MBASE so that subsequent generations of the end effector orientation signals R.sub.EENEW cause the slave control signals produced by the motion control block 120 to cause the end effector 73 to be physically aligned with the handle 102 relative to their respective fixed reference frames.
(126) This technique of adjusting the saved slave base orientation signals R.sub.EEBASE also has applications in providing a wrist-roll management feature, where wrist roll is measured as variations of orientation of the handle 102 relative to only the z-axis. The wrist roll management feature would have the effect of correcting only for misalignment for the direction in which the end effector 73 and the handle 102 are pointing and not the rotation about the axis 134 of the end effector 73.
(127) Generally, the above described system may cause smooth autonomous motion of the end effector 73 toward alignment with the handle 102, when there is a misalignment between the handle 102 and the end effector 73 without compromising control of the end effector 73 for the operator. In addition, if the alignment error Φ.sub.EE_TO_MASTER exceeds the threshold value, the alignment error will always be reduced no matter what direction the handle 102 is moving, unless e.sub.DIFF and e.sub.ERR are parallel and f(A) is such that f(A)=0 when A=0.
(128) While specific embodiments of the invention have been described and illustrated, such embodiments should be considered illustrative of the invention only and not as limiting the invention as construed in accordance with the accompanying claims.