arXiv:2611.12378cs.RONov 2026

Manuscript Offprint

arXiv:2611.12378

Safety-Constrained Intelligent Control of a 2-DOF Robotic Manipulator Using Control Barrier Functions

Gabriel da Silva Lima, Made Widhi Surya Atman, Wallace Moreira Bessa

Gabriel da Silva Lima¹, Made Widhi Surya Atman², and Wallace Moreira Bessa¹

Abstract— Control barrier function (CBF) filters depend on dynamic models that can be inaccurate when their parameters and external forces are uncertain. This paper investigates a radial basis function (RBF) neural network compensator whose output is shared by a Cartesian tracking controller and a joint-space CBF filter. An auxiliary state driven by the difference between requested and applied torques corrects the learning signal, reducing the direct influence of filter intervention on adaptation. A two-link manipulator is evaluated through constrained regulation, ablations, matched uncertainty and disturbance trials, and operating-range and timing studies. The results demonstrate that the proposed controller improves tracking while maintaining joint, velocity, and torque limits under parameter uncertainty, and that both the shared compensation and the auxiliary correction contribute to this improvement.

I. INTRODUCTION

Robotic manipulators must track motions within joint, velocity, and actuator limits. Model-based control tracks accurately, but inertia errors and unmodeled forces corrupt both the tracking law and the constraint prediction. A control barrier function (CBF) filter offers a convenient way to modify a requested input through a quadratic program (QP) [1]. Position constraints require a higher-relative-degree construction, while joint-velocity constraints depend directly on acceleration [2]. Both constructions remain sensitive to errors in the assumed dynamics.

Neural compensation has been demonstrated in intelligent controllers. Lima et al. combine sliding mode control and online neural adaptation for a single-link flexible manipulator [3]. Alwala et al. integrate an intelligent controller with an RBF neural compensator with EKF-based multisensor fusion for differential-drive robots with unmodeled dynamics [4]. These works show that online neural compensation is effective.

CBFs also support robot navigation and coordination: Keyumarsi et al. synthesize barrier functions online from LiDAR data using Gaussian processes [5], and Pham et al. combine distributed QPs and CBFs for formation control with rigid and elastic edges and obstacle avoidance [6]. Here, the joint-limit geometry is known; uncertainty affects the dynamics used to predict constraint evolution.

Robust CBFs and input-to-state safety tolerate bounded model error through constraint margins [7], [8]. Adaptive CBFs couple parameter estimation and safety conditions [9],

[10], and learning-based approaches estimate the residual that enters the barrier condition [11]. Wang et al. combine neural estimation with augmented high-order CBFs and auxiliary systems that adjust barrier conditions for constrained robotic tracking [12]. Sweatland et al. use adaptive neural identification and an estimation-error bound to formulate CBF constraints [13]. We examine how an online neural network compensator interacts with a filter when both use an incomplete model.

Two issues arise when the controller and the filter share an incomplete model. First, compensating only the tracking controller leaves the filter unaware of the learned correction, so the two components may request incompatible accelerations. Second, a tracking-driven adaptation law can react to error generated by deliberate filter intervention. We investigate a shared RBF correction and an auxiliary state that accounts for the nominal Cartesian effect of the torque modification. Although pseudo-control hedging can remove the effect of actuator limits from the signal seen by an adaptive law [14], compensated tracking errors can play the same role in command-filtered backstepping [15], and auxiliary systems driven by the saturation error are standard in adaptive neural control under input constraints [16], these designs treat the gap between commanded and applied inputs as an intentional deviation that should not be learned. In this work, we apply this principle to CBF intervention, which, unlike saturation, depends on the state, the barrier rates, and the learned term itself. The auxiliary state corrects only the adaptation signal; it does not adjust the barrier functions or restore feasibility.

Overall, the main contributions of this paper are as follows:

i. We adapt the learning input signal to CBF intervention: an auxiliary state removes the nominal effect of the filter's torque modification from the signal used to train an RBF compensator shared by the tracking controller and the CBF filter.

ii. We relate the corrected signal to the joint-acceleration residual that the filter must bound, and show that this residual is driven mainly by the transient error of the shared correction rather than by model uncertainty.

iii. We isolate the effects of sharing the RBF output and of correcting its learning signal through matched ablations under fixed tuning.

iv. We evaluate tracking performance, observed constraint satisfaction, residual-bound validity, QP feasibility, and computation time as separate outcomes, over 172 simulations including uncertainty, disturbance, and operating-range studies.

¹G. S. Lima and W. M. Bessa are with the Smart Systems Lab, University of Turku, 20520 Turku, Finland (e-mail: gdasil@utu.fi, wmobes@utu.fi). ²M. W. S. Atman is with the Department of Computing, University of Turku, 20520 Turku, Finland (e-mail: widhi.atman@utu.fi).

II. MANIPULATOR MODEL AND CONTROL OBJECTIVE

Let q=[q1,q2]⊤q = [q_1, q_2]^\top, v=q˙v = \dot{q}, and τ∈R2\tau \in \mathbb{R}^2 denote joint position, velocity, and torque. The planar manipulator satisfies

q˙=v,M(q)v˙=F(q,v)+τ+dτ(q,v).(1)\dot{q}=v,\qquad M(q)\dot{v}=F(q,v)+\tau+d_{\tau}(q,v). \tag{1}

Gravity is absent from the implemented dynamics. With link lengths lil_{i}, center-of-mass distances rir_{i}, masses mim_{i}, and inertias IiI_{i}, its inertia matrix is

M11=m1r12+m2(l12+r22+2l1r2cos⁡q2)+I1+I2,M12=M21=m2(r22+l1r2cos⁡q2)+I2,M22=m2r22+I2.\begin{align*}M_{11}&=m_{1}r_{1}^{2}+m_{2}(l_{1}^{2}+r_{2}^{2}+2l_{1}r_{2}\cos q_{2})+I_{1}+I_{2},\\M_{12}&=M_{21}=m_{2}(r_{2}^{2}+l_{1}r_{2}\cos q_{2})+I_{2},\\M_{22}&=m_{2}r_{2}^{2}+I_{2}.\end{align*}

(2)

Writing b=m2l1r2b = m_{2}l_{1}r_{2}, the implemented velocity-dependent term and unmodeled forces are

F=bsin⁡q2[2v1v2+v22,−v12]⊤,dτ=[−b1v1,−b2(v2−v1)]⊤+J(q)⊤fext(t).\begin{align*}F&=b\sin q_{2}[2v_{1}v_{2}+v_{2}^{2},-v_{1}^{2}]^{\top},\\d_{\tau}&=[-b_{1}v_{1},-b_{2}(v_{2}-v_{1})]^{\top}+J(q)^{\top}f_{\mathrm{ext}}(t).\end{align*}

(3)

Here J=∂p/∂qJ = \partial p / \partial q is the Jacobian of

p(q)=[l1cos⁡q1+l2cos⁡(q1+q2)l1sin⁡q1+l2sin⁡(q1+q2)].(4)p(q)=\begin{bmatrix}l_{1}\cos q_{1}+l_{2}\cos(q_{1}+q_{2})\\ l_{1}\sin q_{1}+l_{2}\sin(q_{1}+q_{2})\end{bmatrix}. \tag{4}

Kinematic parameters and joint states are available to the controller. The estimated model uses M^\hat{M} and F^\hat{F} with uncertain masses and inertias and omits dτd_{\tau}.

The objective is regulation to a feasible constant Cartesian target pdp_{d} subject to componentwise bounds

qi−≤qi≤qi+,vi−≤vi≤vi+,∣τi∣≤τˉ.(5)q_{i}^{-}\leq q_{i}\leq q_{i}^{+},\quad v_{i}^{-}\leq v_{i}\leq v_{i}^{+},\quad|\tau_{i}|\leq\bar{\tau}. \tag{5}

Define e=p−pde = p - p_d, s=e˙+Λes = \dot{e} + \Lambda e, and Λ≻0\Lambda \succ 0 diagonal. All experiments use a fixed target. Singularity avoidance is not implemented; the pseudoinverse is used numerically, and the cancellation below assumes nonsingular JJ.

References (19)