Abstract
In this paper, we present an integrated robotic arm with a flexible endoscope for laparoscopy. The endoscope holder is built to mimic a human operator that reacts to the surgeon's push while maintaining both the incision opening through the patient's body and the center of the endoscopic image. An impedance control algorithm is used to react to the surgeon's push when the robotic arm gets in the way. A modified software remote center-of-motion (RCM) constraint formulation then enables simultaneous RCM and impedance control. We derived the kinematic relationship between the robotic arm and line of sight of the flexible endoscope for image center control. Using this kinematic model, we integrated the task control for RCM and surgeon cooperation and the endoscope image centering into a semi-autonomous system. Implementation of the control algorithm with both matlab simulation and the HIWIN RA605-710 robotic arm with a MitCorp F500 flexible endoscope demonstrated the feasibility of the proposed algorithm.
1 Introduction
Minimally invasive surgery (MIS), the advantages of which include a small surgical wound and rapid recovery, has replaced open surgery on many occasions. MIS, such as laparoscopic surgery, involves the use of an endoscope to visualize the internal tissues of a patient. Because the surgeon performing MIS needs to use both their hands for operating the laparoscopic tools, an assistant surgeon is required to hold the endoscope in place. This task, which is relatively routine, can now be performed using robotic endoscope holders [1–3].
To provide a useful perspective for surgery, an endoscope holder must point the camera toward the tips of the instrument. However, the endoscope holder sometimes obstructs the surgeon's movement during the procedure and may need to move aside while maintaining the trocar's insertion point to not tearing the wound. This maneuver is straightforward for a human assistant but requires extraordinary capability when being performed by a robot. Moreover, the aforementioned movement can change the camera view; this necessitates a flexible endoscope with adequate control to compensate for the endoscope's pointing angle. This paper presents a robotic flexible video-endoscope-holder system that integrates a flexible endoscope with a six-degrees-of-freedom robotic arm that reacts to a surgeon's nudge while maintaining both the insertion point and endoscopic view. The surgeon could be busy with the procedure, and one should try to minimize the surgeon's effort. In this research, we fitted the endoscope holder on the robot arm through a six-degree-of-freedom load cell. The surgeon can give the endoscope holder a nudge with his elbow, and the endoscope holder will react. We also carried out the analysis in an adequate manner for the robot reaction.
The design of a flexible endoscope holder has three requirements. First, the endoscope-holder system must respond to the surgeon's push when directed to move aside. Second, the robotic system must observe the remote center-of-motion (RCM) constraint. Third, a suitable control algorithm must be applied to control the orientation of the endoscope. Accordingly, we employed the commonly used impedance control algorithm to execute surgeon–robot interactions [4]. The first requirement will be handled by the conjunction of task control and impedance control in this research. Regarding the second requirement, two main approaches have been employed: hardware RCM through mechanism design and software RCM through control. The conventional MIS manipulator systems that use hardware RCM are RAVEN-II [5], Telelap ALF-X [6], and da Vinci [7,8] surgical systems. These systems use parallelogram-based joint mechanisms [2,3]. Another commonly used design involves circular arc tracking and synchronous belt transmission [9–13]. However, all these approaches have a hard mechanical constraint. Software-generated RCM provides more freedom in the setup and is becoming popular in commercial systems. The Versius system (from CMR surgical) is an example of this RCM ability [14]. Depending on the coordinates used to describe the attitude, approaches can be divided into world frame and trocar frame-based [15]. In the world frame-based approach, the relationship between the tooltip and insertion point is established with respect to the patient's body [16–18], whereas in the trocar frame-based approach, this relationship is established with respect to the tool itself [19–21]. The earlier world frame-based approach demonstrates the difficulty of algorithmic singularity for null space projection in task control [16,17]. Sandoval et al. proposed a modified formulation of the RCM constraint to avoid this difficulty [18], and their proposed method was thus adopted in the current research.
The third design requirement concerns the pointing control of the flexible endoscope to restore the image center. The flexible endoscope for laparoscopy comprises a distal controllable bending tip in front of a flexible shaft. In this research, we fixed the flexible shaft through a rigid cannula, inserted it through the trocar, and modified the navigation wheel mechanism for motorized control. By combining the rigid part of the endoscope with the sixth joint, the cannula for the flexible endoscope could be treated as part of the sixth joint. We then adopted the kinematic model developed in Ref. [22] to control the position and attitude of the bending tip. The inertia of the bending tip is small, and kinematic control is sufficient for the pointing [23,24]. Through analysis of the kinematics of the flexible endoscope and robotic arm, we established the relationship between the tip yaw angle, tip position, and robot configuration. With the dynamic model of the robot, a control mechanism that provided the required lens movement could be designed. Herein, we propose combined kinematic–dynamic control for the overall flexible endoscope-holder system. The system consists of a flexible endoscope with one degree-of-freedom bending tip and six axes robotic arm to constitute seven axes of motion. The RCM constraint and the target viewpoint impose three-degrees-of-freedom constraint. We still have one more degree-of-freedom left for surgeon collaboration. This control gives doctors a user-friendly environment for maneuvering without compromising the operating view. Because of the algorithm, the laparoscope-holder system can not only hold the laparoscope in a manner that approximates a human operator but also achieve visual angle control that is difficult to implement using regular feedback from the manipulator angles.
In this study, we modified a commercial flexible laparoscope for motorized control and mounted the rigid shaft on an industrial robot. We also developed the related software control interfaces for the operator. With impedance control, doctors can adjust the robot to their preferred posture for inserting the laparoscope through the trocar and then change the target monitor view through the control interface. Once the center of the view has been fixed, the flexible laparoscope holder can automatically hold the target view, allowing the doctor to push the robotic arm around.
The paper is organized as follows. Section 2 presents the system configuration and the dynamics and geometric modeling of the robot manipulator and the flexible laparoscope. Section 3 introduces the proposed control algorithm. Section 4 gives a brief description of the system hardware. Section 5 presents the simulation and experimental results, and Section 6 presents the conclusions.
2 System Configuration and Modeling
This section introduces the system architecture and the dynamic and geometric modeling. As shown in Fig. 1, the flexible laparoscope holder system consists of a robotic arm holding a flexible laparoscope. We designed a special holder to fix the rigid cannula onto the sixth joint of the robot. The cannula is a standard surgical tool used in MIS surgery, which guides the flexible laparoscope through the trocar, and the distal bending tip points the lens toward the point of interest. The robotic arm moves the rigid cannula under the remote-center-of-motion constraint to maintain the trocar position. A rack-and-pinion set then drives the cable to bend the lens toward the point of interest. The purpose of this research is to design a controller that moves the laparoscope around by the surgeon's order under the RCM constraint. At the same time, maintain the laparoscope image centered around the point of interest of the operation.
Because of the different levels of manipulation, we separated the description into four sections: A, the model for the robotic manipulator; B, the task space RCM constraint; C, the mathematical description for the bending-tip geometry; and D, the correction for the displacement introduced by the bending-tip.
This research designed a coupler device (Fig. 2) to fix the torque sensor and the endoscope to Joint 6 of the robot. To enable motorized control of the flexible endoscope, we have also replaced the original hand adjusting lever mechanism (Fig. 3(a)) with a rack-and-pinion mechanism of our design (Fig. 3(b)).
2.1 Robot Manipulator Modeling.
This section briefly describes the RCM constraint as in Ref. [18] and the laparoscope bending tip model as in Ref. [22]. We then present the kinematics model for the robot–laparoscope interaction.
where , , and are the angle, angular velocity, and angular acceleration, respectively; moreover, and are the control and external torque, respectively. is the symmetric positive-definite inertial matrix, is the centrifugal and Coriolis terms, and is the gravitational force term.
2.1.1 RCM and Cannula Tip Constraint.
In MIS, the trocar cannula must never push against the wound. Therefore, in addition to the end control of the robotic arm, the system must follow the RCM constraint.
where is the ratio of the distance between and to the length of the cannula.
where is the velocity of the RCM, the mapping matrix between the joint velocity and velocity , and the mapping matrix between and . The last expression in Eq. (3) enables task-space control for the RCM constraint.
where and are the 3 × 5 and 3 × 6 matrices formed by eliminating the sixth column from and , respectively. Consequently, is a 6 × 6 matrix.
2.1.2 Kinematics for the Bending Tip.
Because of budget constraints, we used a laparoscope with one bending degree-of-freedom. We adopted the model from Ref. [22] to describe the bending geometry and the pointing angle of the bending tip (Fig. 5).
Note that we are interested in the pointing direction of the line of sight. The exact location of the end of the tip is not of concern here.
where is the radius of the pinion and the angular displacement of the pinion required to achieve bending.
2.1.3 Relationship of the Line of Sight With the Robotic Arm.
The flexible laparoscope is mounted on the end of the sixth joint of the robot, and the basic configuration is shown in Fig. 7, where stands for the additional length induced by the bending tip.
With Eq. (16), it is now possible to solve for iteratively.
3 Controlled Sign of the Laparoscope Holder
With the rigid cannula treated as part of the sixth joint, the system consists of two major components: the robotic arm and the bending tip. The goal is to implement impedance control and task control for the RCM constraint of the robotic arm [18] as well as kinematic control for image compensation of the bending tip.
3.1 Control of the Robotic Arm.
where and are the positive-definite gain matrices that can be tuned for joint space system stability. Next, we implemented robotic control on the kinematic level to coordinate with the lens pointing control.
3.2 RCM Task Control.
3.3 Surgeon Collaborative Task Control.
The strategy to react to the surgeon's push is to design the robot arm's behavior under certain external force. In this research, a force sensor is attached to the sixth axis of the robot, and we design the point where the force sensor is attached to move like a mass-spring-damper system, that is
where is the designed displacement resulted from the external force, is the designed position with external force, and is the desired position without external force. (M, B, K) is set as (1, 10, 25) to form a damped system with settling time around one second and the sensor position is set to be coincident with in this paper.
Instead of using null space control, a simpler way to deal with additional avoidance command is proposed here. Since both and are on the same rigid body, can be calculated under the constraint of the trocar, where is the designed position of the tool with external force, and is the desired position of the tool without external force. is then added to the command of without changing the control structure. The total control block diagram is shown in Fig. 10.
3.4 Bending Tip Control.
After there is a movement in the cannula, the amount of pointing angle adjustment, , can be obtained from Eq. (15), the bending angle, , from Eq. (16), and the required angular displacement for the pinion, , from Eq. (9). The bending tip is very light compared with the robot links. Thus, the kinematic control suffices for image center compensation. Note that we implemented the RCM control also in the position loop. It is possible to cascade the bending compensation control to the position controller.
Proposition. Consider both the dynamic manipulator control (17) and the tip bending mechanism (16) have sufficient bandwidth. The robotic flexible laparoscope holder system consists of the robot arm dynamics (1) with an RCM constraint (5) and a flexible laparoscope bending kinematics described by Eq. (16). The control law (23) achieves a decoupled uniformly ultimate boundedness on the control errorsand.
Following the argument in Ref. [25] and defining the Lyapunov function
Note that
We have for , and for with
The constraint tracking error is uniformly ultimately bounded within the ball of radius
Figure 11 shows the resulting overall control system architecture.
3.5 Surgeon Avoidance.
Consider the trocar entrance position (RCM) is fixed. The distance between joints 2 and 3 is , and the distance between joints 3 and 5 is . And the distance from Joint 5 to the fixed location is . One can carry out the Geogebra kinematic analysis to obtain the robot attitude plot.
Figure 12 shows the admissible range of motion for the robot. The large circle represents the distance from the origin on the -plane. The projection ranges from 0 to . The small circle stands for the projection of Joint 5 to the end effector with a range of 0–. Consider the case when the nudge points toward joint 5 ( in Fig. 12). Joint 5 should move away from the nudge along the black line in the following figures. Figure 13 shows the avoidance motions when the nudge force is at 20, 50, 90, 130, and 150 with the RCM is at , where indicates its location. The shaded regions show the area without collisions. The admissible regions shrink dramatically in Fig. 14 when on lower the RCM to . If the nudge force points toward joint 3 (), the entire robot arm can turn away from the nudge along the direction of the force. In this case, one needs to turn Joint 1 to move the entire arm away from the nudge.
To evaluate the proposed algorithm, we implemented the combined RCM control and image compensation with the industrial robot RA605-710 and examined both the simulation results and experimental results.
4 System Hardware Setup
The robotic arm in the setup is a silver RA605-710 six-axis robotic arm from HIWIN Technologies Corp. (Taiwan). The robot uses alternating current servomotors of the Panasonic MSME series with Panasonic A5B Ethernet Control Automation Technology (EtherCAT) Servo-Drivers for the joint actuators. The controller, a NET3600E-ECM industrial computer, can communicate with each driver through the EtherCAT interface. Moreover, this controller is based on the “NexRobotEdu” manipulator education kit executed under the RTX 2012 real-time system from NEXCOM, Taiwan.
For the flexible endoscope, we used the inexpensive MitCorp F500 system (MitCorp; Fig. 15), which offers 640 × 480 resolution images on a 3.5″ thin-film-transistor liquid crystal display screen monitor. The bending tip is driven by a rack-and-pinion assembly to drive the bending cable. Only one rack-and-pinion set allows the tip to bend along one direction with a maximum bending angle of 110 deg. MitCorp F500 is designed for manual operation with one navigation wheel. Therefore, to motorize the bending control, we modified the rack-and-pinion mechanism (Fig. 3(b)) by attaching a driving motor. The motor needed to be strong enough to drive the rack-and-pinion assembly, which in turn drove the bending cable. Hence, we used an MG996R servomotor operating at 4.8–6 V with an output torque of 9.8 kg·cm (at 4.8 V) to 11 kg·cm (at 6 V).
The RCM constraint, together with the task control, requires five degrees-of-freedom of the robotic arm. The sixth joint of the robotic arm can provide the extra degree-of-freedom to perform the angle of swing required to restore the image. The experimental setup is shown in Fig. 16, where the red tape on the cannula indicates the trocar position for the RCM, and the cross on the box indicates the point of interest for the bending tip to point at.
5 Implementation Results and Discussion
5.1 Simulation Results.
To verify the control strategy, we constructed a matlab simulation model to reflect the proposed scenario. The model comprises the articulated robot modeled by RVCtool and the flexible part constructed ourselves. In Fig. 17, the red dot indicates the location of the RCM, and the blue dot shows the position of interest on the image. The series of pictures in Fig. 17 illustrates how the robotic arm moves around the RCM while maintaining the line of sight to the image point. Figures 18(a) and 18(b) illustrate the variation in and , respectively. Figure 19(a) shows the tracking errors of the image center. The image center tracking error was maintained within 0.1 mm.
To demonstrate the effect of the task control under force from a surgeon, we introduced a small virtual force of N in the task space to for 0.1 s. Figure 19(a) image center tracking error. Figure 19(b) shows the simulation result of collision avoidance algorithm. It turns out that even the force on x-direction is zero, through the constraint of the trocar, the x-position of is affected, and that the robotic arm returned to the original posture after a nudge.
5.2 Experimental Results.
The aforementioned simulation results are indicative of an ideal case scenario. As described in Sec. 3, the sixth axis of the robotic arm can provide the required tip rotation. However, because this method was affected by the upper limit of the joint speed of the real system, our method could not address large positive or negative variations in the angles. In the experiment with an actual operation, the sixth axis moved to the rotation angle of the fixed configuration once the end of the rigid cannula had reached the task point.
As described in Sec. 2, the endoscope was attached to the end of the sixth axis of the robotic arm. To verify that the manipulator system could complete the task under conditions similar to those in a human abdominal cavity, we used an acrylic box to represent an abdominal cavity prosthesis. The circular hole with a diameter of 15 mm on top of the box mimicked a ventral insertion point. The initial posture of the arm was in the joint space, and the endoscope trocar location coinciding the insertion point was = in the task space, with the unit being millimeters. The initial distance between the endoscope lens and target (marked with the black cross) was 85 mm. The experimental setup is shown in Fig. 19. There were three parts to the motion command: In maneuver A, the end of the trocar cannula moved +80 mm in the z-direction (assuming the doctor would like to observe the target from the top). In maneuver B, the end of the trocar cannula moved +90 mm in the y-direction (assuming the doctor now wanted to observe the target from the side). Finally, in maneuver C, the end of the cannula simultaneously moved +10 mm in the x-direction, +70 mm in the y-direction, and +20 mm in the z-direction. All commands are smoothed fifth-order polynomial with zero initial acceleration, velocity and zero final acceleration, velocity. All commands are done within 3 s. A movie of maneuver C is available as an attachment to this paper.
Figures 20 and 21 show the experimental results of maneuvers A and B, respectively. In Fig. 20, the first column shows the posture of the robot and the flexible endoscope at 0, 5, 11, and 14 s. The robot starts to lower its arm to raise the cannula in the fifth second. The image also begins to move away from the center (the second row). At the eleventh second, the robot completed the move; however, the image is still below the center. Finally, at the 14th second, the flexible endoscope bends back to restore the image to the center. One can see that the bending control took longer because the rack-and-pinion-cable mechanism suffers from delay and backlash.
Figure 21 shows the robot posture and the endoscopic image at 0, 5, 7, and 9th sec for maneuver B. The robot gradually moves sideways, as shown in the first column. The endoscope could not catch up with the movements and missed the target in the second row. On the third and fourth row, the flexible endoscope gradually bends back and points the lens to the point of interest. Figure 22 shows the bending of the tip for maneuver B. The images demonstrate how the tip bent after maneuver B to restore the cross to the center of the image. Figure 23 presents the experimental result for maneuver C. As the end of the cannula moves in all three directions in the task space, the image was considerably tilted, with unsatisfactory center restoration. The robotic arm, however, never violated the RCM constraint during the entire process. Because the endoscope only offers one degree-of-freedom bending, the sixth axis of the robot manipulator is used to drive the angle. One can see from Fig. 23 that the picture becomes tilted. This tilt can be minimized with a two-degree-of-freedom bending tip.
5.3 Discussion.
Although there are some errors in the simulation and experience, the function of the system still works as we want. First, both simulation and experience show that the RCM errors are smaller than 1 millimeter, which is allowable since the hole diameter of the trocar is about 15 millimeters wide. Second, the large errors of happen in the transient state of motion, and the errors converge to zero within 4 s, which is no longer than the time required to manually operate the endoscope. Finally, the point of interest remaining around the center of the image meets the requirement we setup (Fig. 26).
6 Conclusion
In this study, we designed a robotic flexible endoscope-holder system as follows. First, we used a kinematic formulation to establish the RCM constraint and translate it into an augmented control loop for implementation. Second, a combination of task control and impedance control was used to enable the endoscope holder to become partially compliant to the external force exerted by the surgeon. Third, we modified a flexible endoscope, connecting it to the robotic arm for automatic image relocating and installing a motor for driving the rack-and-pinion mechanism of the bending tip. We derived an expression for the tip bending angle required to restore the center of the image. By using the relationship between the bending angle and angular displacement of the driving pinion, we then proposed a kinematic model for the image center control. The overall flexible endoscope control finally involved combined kinematic–dynamic control.
In conclusion, the hardware and software architecture of the endoscope and robotic arm were combined, and both simulation and experimental verification were conducted. The simulation results demonstrated how the system responds to an external force while maintaining both the RCM and the line of sight. The experimental setup consisted of an RA605-710 robot with a MitCorp F500 flexible endoscope. The testing results demonstrated that the experimental endoscope holder could maintain a trajectory error of <10 mm for the end of the cannula and an RCM error of <0.8 mm in all three spatial directions.
There are quite a few issues that remain for future development. The budget limit prevented us from using a regular two-degree-of-freedom flexible laparoscope. The one-degree-of-freedom endoscope with the sixth axis leads to the image tilting when the arm moves. One possible remedy is to online image processing to maintain image orientation. Also, the backlash and tolerance in the experimental setup introduce undesirable oscillation and error. The problem may not remain an issue if the endoscope is guided through the incision trocar. This research used only a six-axes load cell to sense the surgeon's nudge. It is desirable to check into the use of artificial skin for this purpose.
Funding Data
Ministry of Science and Technologies, Taiwan (Grant No. 108-2221-E-002-149-MY3; Funder ID: 10.13039/100007225).
National Taiwan University (Grant No. 109L890907; Funder ID: 10.13039/501100006477).