Manuscript Offprint
arXiv:2610.37981Active Constraints for Simultaneous Guidance and Safety in Handheld Micromanipulation
Roger Ho, Robert A. MacLachlan, and Cameron N. Riviere
Abstract—In micromanipulation, erroneous hand motion limits unaided manipulation accuracy, which can affect task performance and safety in critical applications like microsurgery. Handheld robots (micromanipulators) enable motion accuracy beyond human limits by providing robotic assistance in a low-cost, compact, intuitive form factor. Particularly, active constraints are an effective form of robotic assistance, which aids the operator by restricting the robot's permissible motion based on task-specific requirements or objectives, thereby providing task guidance and enforcing safety. However, existing formulations of active constraints for handheld systems are limited, most notably because of the inability to provide guidance and enforce safety simultaneously. Implementing active constraints with optimization-based methods can address these limitations, but existing implementations are designed for freestanding robots, and neglect that handheld robots actuate relative to the operator's hand with a limited workspace. In this work, we propose an optimization-based active constraint framework for handheld micromanipulation that enables simultaneous guidance and safety enforcement. The formulation was implemented in a handheld robot and demonstrated on a medically relevant artificial task. Results show that the proposed formulation reduced safety violation rate by more than two orders of magnitude relative to baselines, while recovering the threefold accuracy loss from enforcing safety alone.
I. INTRODUCTION
In micromanipulation, unintentional, erroneous hand motion (physiological tremor, drift, jerk, etc.) limits unaided manipulation accuracy [1]. This positioning error of the hand not only degrades the efficacy of micromanipulation, but also concerns safety in critical applications like microsurgery. To enable accuracy beyond human limits, robotic assistance can be applied to micromanipulation to improve precision, accuracy, and reliability [2], [3]. Particularly, active constraints (virtual fixtures) are an effective method of robotic assistance, which aid the operator by shaping the robot's permissible motion [4]. Given a task with safety requirements, active constraints can provide task guidance (e.g., by constraining the robot to move along a desired trajectory or guidance region) and/or enforce safety (e.g., by preventing the robot from entering unsafe/forbidden regions).
Active constraints and other types of robotic assistance in micromanipulation are typically realized via three main modalities: teleoperation, where the operator controls a slave robot via a physically separate master robot; comanipulation,
where the operator and the robot share control of the same physical end effector; and handheld, where the operator holds the entire robot, which actuates relative to the handle [5]. Of these modalities, handheld robots are attractive due to their familiar and intuitive interface at a lower cost and smaller footprint when compared to teleoperated and com-manipulated robots, which are generally large, free-standing systems. However, advantages of the handheld form factor also introduce fundamental tradeoffs that affect how active constraints are implemented.
Notably, handheld robots lack a mechanical ground separate from the operator, unlike teleoperated and comanipulated systems (hereafter collectively referred to as grounded systems). Without a ground to react against, conventional force-based enforcement of active constraints [6] cannot be implemented; handheld robots must enforce constraints positionally [7] within a workspace much smaller than that of grounded systems [5]. Because of these differences, formulations of active constraints for grounded systems cannot be generalized to handheld systems [8].
At the same time, the active constraint frameworks developed specifically for handheld systems are limited. Most importantly, they can only enforce a single constraint at any given moment [8], so task guidance cannot be provided simultaneously while enforcing safety. To address this gap, we propose an improved active constraint framework for handheld micromanipulation using constrained optimization. The contributions of this work are summarized as follows:
-
We present an active constraint framework for handheld robots that can provide task guidance and enforce safety simultaneously, while degrading guidance gradually when actuation budget can no longer support both.
-
We validate the formulation on a physical handheld system with a medically relevant artificial task, demonstrating a reduction in safety violation rate by more than two orders of magnitude compared to baselines, without the 3× accuracy loss incurred by enforcing safety alone.
This work was supported in part by the U.S. National Institutes of Health (grant number R01GM153059).
Department of Mechanical Engineering and Robotics Institute, CMU, Pittsburgh, PA 15213 USA (email: criviere@andrew.cmu.edu)
This work has been submitted to the IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible.
included active constraints in both the objective and the optimization constraints — however, mixing active constraint and command-tracking terms in the objective makes their relative weights difficult to tune [12]. Later work avoids this problem by expressing active constraints purely as optimization constraints, reserving the objective for command tracking [10].
In contrast, handheld systems cannot implement force-based methods due to the lack of a mechanical ground separate from the operator. This necessitates modified formulations where the handheld robot actuates/deflects independently of the handle to satisfy the active constraints [7]. Given a feature that the tool tip wants to be constrained with respect to, e.g., a point, line, or plane, the formulation in [8] constrains the tip to the closest point on the constraint feature, but is unable to constrain multiple points and/or orientations of the robot. In the case of multiple constraint features, operating close to feature boundaries may cause undesirable switching behavior, which [8] handles by disabling all constraints except for the closest one. For safety-critical applications like microsurgery, this means that enforcing safety-related constraints prevents guidance-related constraints from being enabled at the same time.
Active constraints implemented using constrained optimization can address the above limitations, but existing formulations for grounded systems cannot be generalized to handheld systems. This stems from two main differences: handheld robots have much smaller workspaces due to their size, and actuate relative to the operator's hand. Because the operator realizes the desired command with their own hand, the command-tracking objective term [10] is degenerate. Additionally, hand motion is an external input that the controller cannot measure in advance or modify, so active constraints can only be enforced against predictions, in which satisfaction only holds while the required enforcement is within the robot workspace.
III. OPTIMIZATION-BASED ACTIVE CONSTRAINT FRAMEWORK FOR HANDHELD MICROMANIPULATION
A. System Model
In this formulation, we consider a handheld robot that can actuate in the six rigid body degrees of freedom (6-DoF) relative to the handle as in [13]. We also define three reference frames: an arbitrary task-space frame, a handle frame rigidly attached to the instrument handle, and a robot frame rigidly attached to the output of the 6-DoF robot. Unless indicated otherwise, all quantities are expressed in task-frame coordinates. The robot pose at timestep , i.e., the pose of the robot frame expressed in task-frame coordinates, can then be written as a discrete-time kinematic update
where , are the pose increments contributed over the timestep by the robot and hand, respectively. At timestep , the controller commands but the hand motion is not known ahead of time, so
the controller works with the estimate . We define as the predicted robot pose that would result if no actuation is commanded over the timestep. To avoid optimizing over manifold constraints, we define optimization variable as the local tangent-space coordinates of with translation referenced at a point on the robot, recovered through the exponential map and the spatial adjoint of . Here is the displacement of over the timestep, while is the corresponding orientation increment as a rotation vector.
B. Optimization Structure
We build the framework on quadratic programming (QP) as in prior works [14], such that enforcing active constraints at each timestep equates to solving a QP of the form
for the optimal command , where the objective Hessian and the objective gradient are derived from the objective terms detailed in Section III-D, while and define the optimization constraints detailed in Section III-E.
Here, safety (active) constraints are enforced as optimization constraints, while guidance (active) constraints are expressed in the objective. While recent grounded formulations reserve the objective for command tracking and express all active constraints as optimization constraints to avoid balancing multiple objectives and their weights [14], handheld systems do not suffer from the same problem due to the lack of a command-tracking term.
C. Active Constraint Primitives
Desired active constraint behavior can be formed using constraint primitives. A constraint primitive defines a desired relationship between a primitive feature on the robot and the environment. A primitive feature can be a point, line (curve), or plane (surface), while the type of relationship can be some form of Euclidean or angular distance. The polarity of the relationship, which may be keep-in or keep-out, also needs to be specified. For instance, constraining a robot point within some distance of an environmental point calls on the point-point distance keep-in primitive, which forms a spherical allowable region. We define scalar function as the constraint value
which encodes constraint primitives, such that when the constraint is satisfied, and otherwise. A continuous function returns a scalar quantifying the Euclidean or angular separation (e.g., 2-norm, geodesic distance) between environment feature and robot feature , the latter of which is a function of robot pose , while scalar sets the threshold of satisfaction. The prefixed sign sets the constraint polarity: positive for keep-out, where is required, and negative for keep-in, where is required. Combining constraint primitives forms a compound active constraint, which is the intersection of the superlevel sets formed by the constituent constraint primitives. These constraint primitives are similar to those in [11], [12], [14], which contain derivations of instantiated primitives.
The distance function , and consequently the constraint value , is generally nonlinear in the optimization variable . We therefore expand the predicted constraint value at the next timestep about the drift pose to first order, assuming environmental features are static over the timestep:
where is the constraint value of the next timestep that would result from predicted hand motion only, and is the gradient of with respect to evaluated at the drift pose. This decomposition separates the constraint value into what the hand contributes and what the commanded robot pose increment can add.
D. Objective Function
Because handheld systems lack the command-tracking objective term that grounded systems require, the optimization objective can carry guidance constraints without the difficulty of balancing multiple primary objectives [12]. In addition, we append objective terms that encode the secondary objective of minimizing total actuator cost (e.g., stroke consumption) in enforcing active constraints, which resolves the optimization solution in the null space of the active constraints.
- Actuator Cost: To minimize total actuator cost, we append a term penalizing the magnitude of the commanded increment (referred to as the rate term), as well as a term penalizing the total excursion from the home configuration where actuator cost is zero (referred to as the home term). The penalty is defined in actuator space to account for the variable mapping between task space and actuator space, which depends on hand position and robot configuration. We therefore write the corresponding actuator increment as , where composes the change of frame from expressing in the handle frame (which the robot actuates relative to) with the inverse kinematic Jacobian of the robot. The two penalty terms together are then
with scalar weights and for the rate and home terms, respectively, while denotes the actuator displacements from home configuration at the current timestep. Because already encodes the anisotropy of actuator costs in different task space directions, scalar weights are used for ease of parameter tuning. The rate and home weights can be respectively interpreted as derivative and proportional gains that define the robot's homeward speed.
- Guidance Constraints: Guidance-related active constraints enter the optimization objective as a quadratic penalty on the scalar (guidance) constraint value:
with denoting the error between the guidance constraint value at the drift pose and guidance
constraint value setpoint . Generally, guiding the robot along a trajectory calls for a keep-in constraint primitive, where the constraint threshold from (3) is typically zero, in which case the constraint value simplifies to the negated distance function . Correspondingly, the constraint value setpoint is also typically zero as it is desirable for the distance between the robot and the trajectory to be zero, in which case the guidance term in (6) penalizes the robot's distance from the trajectory. At each timestep, the commanded increment corrects a fraction of , subject to the actuator cost terms in (5), such that the constraint value is driven towards setpoint over time.
- Guidance Weight Normalization: Generally, relative weights in optimization-based frameworks are hard to predict and must be returned as the system or task changes [12]. Here, a similar problem arises for a different reason: the fraction of guidance constraint value error corrected per timestep (i.e., bandwidth of guidance) depends on the actuator cost along the constraint gradient , i.e., the actuator cost of providing guidance. This cost can vary significantly for handheld robots, even with fixed weights on all objective terms; consider an example of a guidance constraint that pins the tip of a long end effector (extended from the robot) at a fixed target point. Given some small initial distance between the tip and the target point, there are combinations of hand pose and robot configuration which can utilize the moment arm of the long end effector to close the tip-target distance such that the robot has to actuate minimally, while there are other combinations where the end effector's moment arm cannot be utilized to close the distance such that the robot has to actuate maximally. Because the actuator cost of providing guidance varies significantly under fixed weights, so does the bandwidth or “amount” of provided guidance, which is generally undesirable. We address this issue by normalizing the guidance weight against actuator cost along constraint gradient at each timestep using
where sets the dimensionless ratio, while denotes the actuator terms' accumulated contributions to the objective Hessian in (2) such that . Here represents the compliance of the actuator terms along the constraint gradient, which is large when guidance is cheap to provide and small when it is expensive. Accordingly, the dynamics of the constraint value error (in the absence of active optimization constraints) can be derived by projecting the stationarity condition of (2) onto to get
where is an offset term resulting from normalization, representing the change in constraint value in the absence of the guidance term, with denoting the objective gradient contribution from the home term in the form of (2). This offset imposes a steady-state error of which can be compensated for by shifting the setpoint accordingly.
As (8) is a linear time-invariant difference equation, it can be characterized by a first-order pole with cutoff frequency for controller loop period , such that sets the guidance bandwidth invariant to parameters and weights. In addition to simplifying parameter tuning, the bandwidth property is also desirable when the disturbances that the guidance constraints act against are band-limited (e.g., hand tremor), in which case the guidance weight no longer needs to be set to a large value to maintain consistent behavior, avoiding numerical ill-conditioning of the QP.
- Guidance Degradation: Due to the limited actuation budget (i.e., the available actuator stroke) of handheld robots, it is not always possible to enforce all guidance and safety active constraints within the robot's workspace. In this case, guidance should degrade in a perceptible manner so that the operator can correct their hand position in a way which recovers stroke. This could be done by scaling the guidance weight , but the guidance bandwidth discussed in Section III-D.3 would also change accordingly. Because the robot acts within the operator's eye-hand feedback loop, which has a critical frequency of 0.5 Hz to 2 Hz, varying the frequency response of assistance risks destabilizing effects [5]. Instead, we vary the constraint value setpoint using
where is the guidance fraction that blends the nominal constraint value setpoint of zero (full guidance) with the guidance-off constraint value , which is defined as the guidance constraint value evaluated at the minimum-actuator-cost robot pose that satisfies all safety constraints and joint/actuator limits while ignoring guidance. In other words, full guidance is provided when , degrading towards no guidance as , all while safety is enforced. Guidance-off pose is obtained by sequentially solving the same QP without the guidance term, starting from the home configuration and re-evaluating/re-linearizing optimization constraints (containing safety constraints and joint/actuator limits) with each solve until optimization constraint residuals fall below a tolerance.
Guidance fraction is derived from the actuator stroke needed to provide full guidance while enforcing safety. We estimate this stroke to first order by solving the underdetermined system which has a closed form minimum-norm solution representing the minimum-norm pose increment from guidance-off pose that approximately drives the guidance-off constraint value to zero. The stroke required to provide full guidance and safety is then defined as , where denotes the actuator displacements corresponding to guidance-off pose from inverse kinematics. Worst-case stroke fraction and guidance fraction follow as
where denotes the maximum allowable actuator stroke, which we assume here to be uniform across actuators, while and demarcate the degradation boundaries on such that guidance is fully provided below and fully disabled above . Because accounts for the stroke required to enforce safety, in the case that providing guidance recovers stroke, stays small and guidance is not degraded.
E. Optimization Constraints
-
Mechanism Limits: Static and dynamic limits of the robot joints and actuators are encoded in the optimization constraints to prevent unrealizable solutions. As these limits are typically nonlinear in the decision variable , we relinearize the constraints at each timestep before the QP solve.
-
Safety Constraints: For a safe set of robot poses defined as the superlevel set of continuous scalar function , i.e., , enforcing the discrete control barrier function (DCBF) condition with barrier gain (which we note is similar to vector field inequalities described in [14]) guarantees forward invariance of the safe set if [15]. Since is not known at solve time, we substitute the first order expansion of the prediction (4). However, errors from linearization, hand motion prediction, imperfect command tracking, etc., induce discrepancies between the actual and predicted constraint value. Following robust CBF formulations [16], we absorb these errors into a prespecified safety margin and enforce the DCBF condition on the tightened set . Forward invariance therefore holds while the prediction residual is within [17].
Additionally, enforcing safety constraints may demand motion that the mechanism limits prevent, leaving the QP infeasible. We therefore soften the safety constraints with slack terms and augment the decision vector and objective function accordingly, with the slack term penalty weights set well above the objective weights introduced in Section III-D so the slack terms go nonzero only when no feasible solution exists. Slack terms are added to the safety constraints rather than the mechanism limits to prevent commands that may damage the robot — if both sets of constraints are binding, safety cannot be enforced regardless of where the slack terms are placed. This gives
for a single safety constraint primitive, where is the constraint value evaluated at current robot pose , while denotes the constraint value increment contributed by predicted hand motion over the timestep, so safety is enforced in a feedforward manner — this term is not present for grounded systems, where a zero (do-nothing) command maintains safety.
IV. EXPERIMENTS
We evaluated the framework on a handheld robot performing a medically relevant artificial task that requires guidance and safety enforcement at the same time.
See accompanying video that demonstrates the system and the task

Fig. 1. Experimental setup of the artificial task, where the goal was to hold the needle tip at the target point while satisfying a remote center of motion (RCM) safety constraint. The target point was a virtual point defined by the intersection of two hypodermic needles, while the RCM was realized by a small hole in a shim.
A. Task Description
The artificial task was defined with a performance goal and a safety requirement to demonstrate guidance provision and safety enforcement of the proposed active constraint formulation: the goal was to hold a needle tip at a target point for 330 s under a microscope while satisfying a remote center of motion (RCM) safety requirement that lay outside the microscope field of view. The long-duration needle tip hold-still is inspired by retinal vein cannulation [18], a vitreoretinal microsurgical procedure, whereas the RCM constraint corresponds to the instrument port, which is also typically outside the microscope view.
The RCM was realized as a hole in a brass shim, through which the needle was inserted (Fig. 1). To minimize plastic deformation, the needle was fabricated from superelastic nitinol wire with a nominal diameter of 610 µm, which is comparable to incision diameters of vitreoretinal microsurgery [19]. The target point was a virtual point defined by the intersection of two 24-gauge hypodermic needles, and was positioned approximately 20 mm beyond the RCM (in the direction of needle insertion) to approximate intraocular working distances [20]. For a shim thickness of 160 µm, the hole diameter was nominally set to 1320 µm, approximately twice the needle diameter, so that the task remained feasible unaided. Contact between the needle shaft and the hole edge was deemed a safety violation, and was recorded with electrical continuity at 1 kHz. Since the microscope shows only the needle tip, the operator cannot observe the shaft–hole clearance and must infer contact from tip motion.
B. Implementation Details
The proposed framework was implemented on a 6-DoF parallel kinematic handheld robot (micromanipulator) with a translational workspace that circumscribes a cylinder 4 mm in diameter and height, along with a rotational workspace of ±7.5° about the three axes of rotation, each measured from the home configuration. An optical tracker [21] measured the robot and handle poses in its own coordinate frame (defined as the task frame) at a rate of 1 kHz with a noise floor of approximately 10 µm RMS. The needle tip and shaft axis were registered to the robot frame using the tracker
and least-squares fitting, while the target point and RCM point were similarly registered to the tracker (task) frame. Following [8], hand motion was predicted by integrating forward the estimated velocity from a constant-acceleration error-state Kalman filter [22] on the tracked handle pose.
The controller was implemented in ROS2 Jazzy Jalisco on Ubuntu 24.04 with the real-time kernel patch, in which the 1 kHz control loop was pinned to an isolated core of an Intel Core Ultra 7 270K Plus. Both optimization programs discussed in Section III were solved with ProxQP [23], giving mean and median total solve times of 27 µs and 24 µs.
Two distance-based primitives of the form (3) were instantiated (with feature pairs denoted as robot feature–environmental feature): a point–point keep-in primitive as the guidance constraint for holding the needle tip at the target point, and a line–point keep-in primitive as the safety constraint for restricting needle axis displacement from the hole center. While other formulations like [14] used the squared 2-norm as the distance function to avoid derivative singularities of the standard 2-norm, we used the Huber norm [24] here, which addresses the same problem while retaining linear distance units (outside the transition region) to simplify parameter tuning. In the experiments, the Huber transition parameter was set below the noise floor of the tracker to minimize effects of the quadratic regime.
The guidance constraint used , corresponding to an approximate bandwidth of 36 Hz per (8), which was limited by overall system bandwidth and delay, but still above the dominant physiological hand tremor band of 4 Hz to 12 Hz [25] and well above the human eye-hand feedback loop's critical frequency of 0.5 Hz to 2 Hz [5]. Guidance degradation boundaries were and to prevent full actuator saturation. The safety constraint used distance threshold , equal to the nominal shaft–hole clearance radius, while the safety margin was set to , informed by registration residuals and estimated servo error. The barrier gain was kept low to avoid oscillatory behavior at the constraint boundary caused by overall system delay.
C. Conditions and Protocol
The aforementioned task was performed under four conditions: 1) Unaided, with the robot disabled; 2) Shelving, an established task-agnostic assistance algorithm for handheld robots [5] that attenuates hand tremor; 3) AC-S, the proposed active constraint framework enforcing safety only; and 4) AC-S+G, the complete proposed framework with safety and guidance both enabled. Unaided serves as the baseline, while comparing Shelving against the latter two conditions isolates the proposed active constraints on identical hardware. Finally, comparing AC-S against AC-S+G quantifies the cost of enforcing safety without guidance.
Four novice subjects completed two trials per condition in a pilot study under a board-approved protocol. Before the trials, each subject trained on the task unaided to adapt to manipulation at a small scale under the microscope, and to develop the intuition of detecting safety violations from


Fig. 2. Safety and task performance over four subjects. Each marker is a subject; the horizontal rule gives the mean over subjects. Each subject's two repeated trials were pooled before averaging. (a) Violation rate, with a logarithmic axis above 0.01% and linear below so that zero is shown; longest continuous violation per condition is printed above. (b) Tip RMSE against the target (abs.) and against the trial mean tip position (rel.) from contact-free samples. The proposed AC-S+G lowers violation rate by more than two orders of magnitude against Unaided, and recovers the accuracy that AC-S loses.
tip motion. They were then introduced to each of the three assisted conditions for a similar duration. Condition order was assigned by a balanced Latin square [26], with the second set of trials reversing the order of the first to mitigate ordering and fatigue effects.
D. Evaluation Metrics
The first 30s of each trial were treated as an acclimatization period and excluded from analysis, leaving 300s per trial, so that the reported metrics reflect steady-state performance rather than the initial approach and settling.
Task performance was evaluated using the root mean square of the Euclidean distance between tip position and target point, . To account for the fact that the subjects may not perceive the same target as the registered point, we also report for comparisons between conditions, defined as the RMSE between tip position and mean tip position over the trial period. Because tip position is computed from measured robot pose and a calibrated tip offset, we compute these performance metrics only from samples where continuity was open, as contact undermines the implicit rigid-body assumption. Within each subject and condition, performance metrics across the two repeats were combined by root mean square, weighted by the number of contact-free samples in each, while each condition was summarized by the arithmetic mean across subjects.
Correspondingly, we quantify task safety with violation rate, defined as the percentage of trial time where continuity was closed, averaged across all trials of the same condition. As a worst-case measure, we also report the longest continuous violation over all trials of the same condition.
V. RESULTS AND DISCUSSION
A. Safety
Figure 2(a) shows the safety metrics across conditions. In the two baseline conditions, Unaided and Shelving, safety was violated for a substantial portion of each trial: 38.7% and 72.0%, respectively. Enforcing the safety constraint reduced average violation rate to 0.2% and 0.3% for AC-S and AC-S+G, respectively — a reduction of more than two orders of magnitude against both baselines, which held for all four subjects. The worst-case measure of the longest continuous violation similarly shows the same separation, going from 95s and 217s for the Unaided and Shelving condition respectively, to 0.9s for AC-S and 0.4s for AC-S+G. Most importantly, activating guidance in AC-S+G did not jeopardize safety, as AC-S and AC-S+G did not differ meaningfully on either safety metric.
Violation rate was higher for all subjects under Shelving compared to Unaided. Although the Shelving assistance algorithm attenuates operator hand tremor, it does so without knowledge of the safety requirements such that the provided assistance can compromise safety. Furthermore, since the subjects developed intuition for the task under the Unaided condition, the lag introduced by the Shelving algorithm's low-pass filter [5] may have impaired the skill transfer. Specifically, because the tip motion cue for detecting safety violations is altered under the Shelving algorithm, the subjects may have had more difficulty identifying shaft-hole contact and correcting appropriately.
B. Task Performance
Figure 2(b) shows the task performance metrics across conditions. Averaged across subjects, the Unaided condition produced RMSE of 363 m, with a minor increase to 473 m under the Shelving condition. Compared to the Unaided condition, enforcing only safety increased RMSE for all four subjects, resulting in a 3 increase to 1112 m. Enabling guidance on top of enforcing safety in the AC-S+G condition produced a 3 decrease (from AC-S) to 380 m, compensating for the decrease in accuracy from
(a) Stroke needed for full guidance + safety

(b) Realized accuracy
(c) Accuracy vs. guidance fraction
Fig. 3. Guidance degrading to preserve safety, due to insufficient actuation budget. Tip error is the distance from the tip to the registered target point. (a) and (b) show an excerpt of an AC-S+G trial, as means over 20 ms windows. (a) Stroke fraction and the corresponding guidance fraction . Below , guidance is fully provided ( ), degrading when . (b) Corresponding tip error, which approximately tracks proportionally. No safety violation occurred in this window. (c) Tip RMSE against the guidance fraction over all eight AC-S+G trials and binned in uniform intervals with a width of 0.05; the line is computed from the pooled data while the band spans the unpooled RMSE range across trials.
just enforcing safety. RMSE_{rel} shows the same pattern: 210 µm in the Unaided case increased slightly to 246 µm in the Shelving case, while enforcing only safety in AC-S resulted in a much larger RMSE_{rel} of 616 µm, counteracted by enabling guidance in AC-S+G to give 233 µm. Because both performance metrics agree in the relative effects of each condition, the results suggest that the problem of subjects perceiving a different target point is not a concern.
The minor reduction in accuracy under the Shelving assistance can be explained by a similar reason to Section V-A, where the assistance algorithm may have undermined the task intuition developed in the Unaided condition, which is exacerbated by the cognitive load imposed by the safety requirement of avoiding shaft-hole contact. On the other hand, the accuracy loss under the safety-only AC-S condition agrees with the geometry of the task. Without a guidance constraint holding the needle tip at the target point, the minimum-actuator-cost robot pose that keeps the shaft clear of the hole edge in this case moves the tip away from the target. As the line-point RCM safety constraint only restricts two degrees of freedom, the addition of a guidance constraint in the AC-S+G condition enables the optimization to use the remaining degrees of freedom of the robot to satisfy both active constraints. AC-S is also representative of what a single-constraint framework like [8] can do in this task, as such a framework must disable guidance whenever the safety constraint is binding. AC-S approximates the worst case of this, with guidance disabled throughout, resulting in an accuracy loss of .
Furthermore, the minimum-actuator-cost poses that enforce the RCM safety constraint in this case exhibit the fulcrum effect, i.e., tip motion is reversed relative to the hand's motion, which may be unintuitive to a novice operator without (micro)surgical experience. Similar to the Shelving
assistance, the task intuition developed in the Unaided condition may not transfer well as a result. This phenomenon also introduces skill as a confounding factor, where subjects that intuited the fulcrum effect could have better utilized the assistance in the two active constraint (AC) conditions, which possibly explains the higher variability seen in Fig. 2.
C. Guidance Degradation
Figure 3(a) and (b) show the guidance degradation mechanism during a 60 s window of an AC-S+G trial. Tip error stays below 100 µm while stroke fraction remains under degradation boundary , where guidance is fully provided. As exceeds and guidance fraction decreases, the tip error approximately tracks the degraded setpoint of (9). Figure 3(c) shows the same relation over all eight AC-S+G trials, where tip RMSE increases monotonically as the guidance fraction decreases to preserve safety under limited actuation budget. The tip RMSE is 64 µm for samples under full guidance ( ), against 486 µm over the degraded samples ( ) and 434 µm overall, pooled across trials rather than averaged across subjects as in Fig. 2.
The guidance degradation mechanism was exercised over most of its range. Degradation was active for 79% of all samples ( ), and the largest observed stroke fraction of 0.78 corresponds to guidance fraction per (10), meaning guidance was never fully disabled and the actuation budget was never fully depleted.
The distribution of indicates that the subjects used guidance degradation as a cue for making corrections in hand positioning, which was a design objective introduced in Section III-D.4: occupied 35.5 % of all samples while occupied only 4.5 %. These adjacent ranges bookend , the boundary between full guidance and degradation. Because the loss of guidance is the only signal observable through the microscope, subjects seemed to gravitate towards this degradation boundary.
VI. CONCLUSIONS AND FUTURE WORK
In this work, we present an optimization-based active constraint framework for handheld micromanipulation that provides task guidance and enforces safety simultaneously. Guidance constraints are expressed in the objective with their bandwidth held invariant to hand pose and robot configuration, while safety constraints are enforced with CBFs in a feedforward manner against predicted hand motion. In the case that actuation budget can no longer support both, guidance degrades gracefully to preserve safety. On a medically relevant artificial task, the proposed formulation decreased the safety violation rate by more than two orders of magnitude against the unaided and tremor-canceling baselines, while recovering the 3× accuracy loss incurred by enforcing safety alone.
In future work, we plan to vary the safety constraint margin online to adapt to different users, fatigue, etc. We also plan to extend evaluation to realistic tasks with richer constraint sets, on operators trained to convergence to remove the learning effects that confound the comparison above.
REFERENCES
[1] S. Singh and C. Riviere, "Physiological tremor amplitude during retinal microsurgery," in Proceedings of the IEEE 28th Annual Northeast Bioengineering Conference, Apr. 2002, pp. 171–172. [2] R. Taylor and D. Stoianovici, "Medical robotics in computer-integrated surgery," IEEE Transactions on Robotics and Automation, vol. 19, no. 5, pp. 765–781, Oct. 2003. [3] M. Roizenblatt, T. L. Edwards, and P. L. Gehlbach, "Robot-assisted vitreoretinal surgery: current perspectives," Robot Surg, vol. 5, pp. 1–11, 2018. [4] S. A. Bowyer, B. L. Davies, and F. Rodriguez y Baena, "Active constraints/virtual fixtures: A survey," IEEE Transactions on Robotics, vol. 30, no. 1, pp. 138–157, Feb. 2014. [5] R. A. MacLachlan, B. C. Becker, J. C. Tabares, G. W. Podnar, L. A. Lobes, and C. N. Riviere, "Micron: An actively stabilized handheld tool for microsurgery," IEEE Transactions on Robotics, vol. 28, no. 1, pp. 195–212, Feb. 2012. [6] D. Menoth Mohan, B. Shirinzadeh, J. Smith, Y. Zhong, S. H. Turlapati, and D. Campolo, "A review of recent methods and applications of virtual fixtures in robot-assisted surgery," Computers in Biology and Medicine, vol. 199, p. 111294, Dec. 2025. [7] B. C. Becker, R. A. MacLachlan, G. D. Hager, and C. N. Riviere, "Handheld micromanipulation with vision-based virtual fixtures," in 2011 IEEE International Conference on Robotics and Automation. Shanghai, China: IEEE, May 2011, pp. 4127–4132. [8] B. C. Becker, R. A. MacLachlan, L. A. Lobes, G. D. Hager, and C. N. Riviere, "Vision-based control of a handheld surgical micromanipulator with virtual fixtures," IEEE Trans. Robot., vol. 29, no. 3, pp. 674–683, June 2013. [9] Ming Li, A. Kapoor, and R. Taylor, "A constrained optimization approach to virtual fixtures," in 2005 IEEE/RSJ International Conference on Intelligent Robots and Systems. Edmonton, Alta., Canada: IEEE, 2005, pp. 1408–1413. [10] M. M. Marinho, B. V. Adorno, K. Harada, K. Deie, A. Deguet, P. Kazanzides, R. H. Taylor, and M. Mitsuishi, "A unified framework for the teleoperation of surgical robots in constrained workspaces," in 2019 International Conference on Robotics and Automation (ICRA), May 2019, pp. 2721–2727. [11] J. Funda, R. Taylor, B. Eldridge, S. Gomory, and K. Gruben, "Constrained cartesian motion control for teleoperated surgical robots," IEEE Trans. Robot. Automat., vol. 12, no. 3, pp. 453–465, June 1996.
[12] A. Kapoor, M. Li, and R. Taylor, "Constrained control for surgical assistant robots," in Proceedings 2006 IEEE International Conference on Robotics and Automation, 2006. ICRA 2006., May 2006, pp. 231–236. [13] S. Yang, R. A. MacLachlan, and C. N. Riviere, "Design and analysis of 6 dof handheld micromanipulator," in 2012 IEEE International Conference on Robotics and Automation, May 2012, pp. 1946–1951. [14] M. M. Marinho, B. V. Adorno, K. Harada, and M. Mitsuishi, "Dynamic active constraints for surgical robots using vector-field inequalities," IEEE Transactions on Robotics, vol. 35, no. 5, pp. 1166–1185, Oct. 2019. [15] A. Agrawal and K. Sreenath, "Discrete control barrier functions for safety-critical control of discrete systems with application to bipedal robot navigation," in Robotics: Science and Systems XIII. Robotics: Science and Systems Foundation, July 2017. [16] M. Jankovic, "Robust control barrier functions for constrained stabilization of nonlinear systems," Automatica, vol. 96, pp. 359–367, Oct. 2018. [17] S. Kolathaya and A. D. Ames, "Input-to-state safety with control barrier functions," IEEE Control Systems Letters, vol. 3, no. 1, pp. 108–113, Jan. 2019. [18] B. Gonenc, N. Tran, P. Gehlbach, R. H. Taylor, and I. Iordachita, "Robot-assisted retinal vein cannulation with force-based puncture detection: Micron vs. the steady-hand eye robot," in 2016 38th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC). Orlando, FL, USA: IEEE, Aug. 2016, pp. 5107–5111. [19] S. Mohamed, C. Claes, and C. W. Tsang, "Review of small gauge vitrectomy: Progress and innovations," J Ophthalmol, vol. 2017, p. 6285869, 2017. [20] S. Yang, J. N. Martel, L. A. Lobes, and C. N. Riviere, "Techniques for robot-aided intraocular surgery using monocular vision," The International Journal of Robotics Research, vol. 37, no. 8, pp. 931–952, July 2018. [21] R. A. MacLachlan and C. N. Riviere, "High-speed microscale optical tracking using digital frequency-domain multiplexing," IEEE Transactions on Instrumentation and Measurement, vol. 58, no. 6, pp. 1991–2001, June 2009. [22] J. Solà, J. Deray, and D. Atchuthan, "A micro lie theory for state estimation in robotics." https://arxiv.org/abs/1812.01537v9, Dec. 2018. [23] A. Bambade, S. El-Kazdadi, A. Taylor, and J. Carpentier, "Prox-qp: Yet another quadratic programming solver for robotics and beyond," in Robotics: Science and Systems XVIII. Robotics: Science and Systems Foundation, June 2022. [24] P. J. Huber, "Robust estimation of a location parameter," in Breakthroughs in Statistics: Methodology and Distribution, S. Kotz and N. L. Johnson, Eds. New York, NY: Springer, 1992, pp. 492–518. [25] A. Lenka and J. Jankovic, "Tremor syndromes: An updated review," Front. Neurol., vol. 12, July 2021. [26] EJ. Williams, "Experimental designs balanced for the estimation of residual effects of treatments," Australian Journal of Scientific Research Series A: Physical Sciences, vol. 2, no. 2, pp. 149–168, June 1949.