A Unified Fractal Impedance Control Framework
Physical human--robot interaction requires controllers capable of maintaining intrinsically bounded interactions with the environment. The Fractal Impedance Controller (FIC) has been proven to guarantee these safety characteristics by design.
From the abstract. Our summary is in progress.
Full paper
A Unified Fractal Impedance Control Framework
Published under CC BY 4.0. Reproduced with attribution; original at arXiv:2611.08009 (PDF).
Abstract
Physical human–robot interaction requires controllers capable of maintaining intrinsically bounded interactions with the environment. The Fractal Impedance Controller (FIC) has been proven to guarantee these safety characteristics by design. This paper introduces the robotic implementation and experimental validation of its most advanced architecture: the Harmonic-Passive Motion Paradigm (H-PMP), an evolution of the Passive Motion Paradigm designed to mimic human-like interaction. Furthermore, we present a unified framework for FIC deployment, supported by an open-source software suite featuring ROS2, MuJoCo, and physical hardware integrations. Through three experiments conducted on a Kinova Gen3 arm (trajectory tracking, a wall press with sudden loss of contact, and learning-by-demonstration) we compare the H-PMP against earlier FIC architectures. The results demonstrate that the H-PMP achieves a seamless trade-off between admittance and impedance behaviours. This makes it ideal for deployment in unstructured environments, enabling the robot to transition between interaction modes with no computational overhead.
Index Terms:
Fractal impedance control, human–robot interaction, admittance control, compliant manipulation, variable impedance, passivity.
I Introduction
Deploying robots in real-world settings requires the ability to interact safely with unstructured surroundings. Under these conditions, the environmental state is notoriously difficult to track and often impossible to model accurately. Over the past four decades, interaction control has evolved to manage both expected and unexpected physical contacts, ensuring safe human-robot and robot-environment interactions [1, 2, 3, 4, 5, 6]. Until recently, these systems were largely confined to research laboratories and highly specialised industrial contexts, where structured environments and expert operators ensured proper deployment. However, there is currently a strong push to introduce robots into unstructured domains where operators may lack deep technical expertise. Consequently, learning by demonstration (LbD) and, more recently, generative and agentic AI have gained traction to bridge the skill gap in robot programming. Despite their potential, the lack of robustness and explainability in these methods raises significant safety concerns regarding their deployment near humans. Furthermore, the extensive data and computational requirements of these approaches raise critical questions regarding their environmental sustainability and ethics.
Enhancing interaction control beyond the state-of-the-art to provide hard safety guarantees and increased closed-loop dexterity is crucial prior to integrating learning methods. This foundational improvement mitigates safety risks, reduces reliance on data-driven approaches, and increases sustainability by lowering computational overhead. At the foundation of interaction control lie port-Hamiltonian controllers (i.e., impedance and admittance control). Both approach the robot as an equivalent mass-spring-damper system, acting as reciprocal formulations to each other [1, 7]. Admittance control generates a flow command from an effort error, while impedance control generates an effort command from a flow error. These approaches carry opposite limitations: impedance control excels at regulating position, whereas admittance control regulates interaction force. Biological interaction control in humans and animals naturally inspires robotic counterparts due to their ability to effortlessly trade off between these skills during physical interaction [8, 9, 10]. While variable impedance control has been proposed to mimic this biological adaptability, the stability challenges associated with these controllers have severely limited their application in complex interactions and high-dimensional systems [11, 12].
Fractal Impedance Control (FIC) [3] was introduced to overcome these fundamental limitations. The controller relies on an algorithmic formulation of a Liénard equation, which describes non-linear systems such as Van der Pol oscillators [13]. The system generated by the FIC acts as a critically damped, asymptotically stable attractor around the desired state, defined algorithmically from an effort profile [3, 14]. Consequently, it enables the generation of asymptotically stable, passive controllers that can be safely superposed and tuned online. FIC has successfully demonstrated the capability to introduce an outer admittance loop on top of a non-linear impedance controller, deployed within biomimetic architectures for robust interaction in challenging dynamic environments [4, 15]. Its intrinsically passive behaviour also yields excellent performance despite significant feedback delays and low control bandwidths, making it exceptionally well-suited for teleoperation applications[3, 16, 4, 17].
This manuscript presents the integration of these theoretical advancements into a unified library to support the development of FIC-based controllers for manipulation and teleoperation. Notably, the library includes a robotic implementation of the Harmonic-Passive Motion Paradigm (H-PMP), the most advanced FIC architecture developed to model human motor control [18]. H-PMP can autonomously trade off admittance and impedance behaviours without requiring a rigid state machine or model-based interaction optimisation [18]. Furthermore, the library is fully integrated with standard robotics infrastructure, including MuJoCo for simulation, the Pinocchio library for inverse kinematics optimisation, and ROS2. To streamline deployment, we introduce FIC Studio—a user-friendly, modular Graphical User Interface (GUI) that centralises these functionalities, featuring drag-and-drop controller tuning and Python live scripting for high-level control integration. Fig. 1 shows the arm in two of the experiments for the evaluation of the interaction performance.
The remainder of this paper is structured as follows: Section II introduces related work. Section III provides an overview of the FIC Suite functionalities. Section IV describes the FIC library and the robotic implementation of H-PMP. Section V presents an evaluation comparing the proposed control architecture against an earlier implementation of the Task-Space FIC. Finally, Section VI draws the conclusions.
II Related Work
As mentioned in the introduction, interaction control aims to develop an architecture capable of modulating its behaviour to naturally trade off between admittance and impedance strategies. This type of adaptability has been sought since the early nineties but was long relegated to non-redundant robots [5, 19, 14, 20]. In non-redundant systems, the transformation between joint and task spaces is fully observable; for instance, most actuators equipped with torque sensors are governed by an impedance controller featuring an outer admittance loop. However, this does not hold for redundant robots, where the transformation can only be approximated using null-space projectors, leading to non-unique solutions. Consequently, interaction control for redundant robots traditionally had to operate strictly in either admittance or impedance modes [5, 4, 21, 6]. Optimisation-based approaches, such as Model Predictive Control (MPC), have enabled substantial improvements in implementing admittance-impedance trade-off strategies. Nevertheless, they introduce vulnerabilities related to modelling errors (i.e., the sim-to-real gap) and carry the risk of unstable behaviour stemming from the numerical instability of the optimisation problem itself [21, 6, 4, 5].
1\text{\,}\mathrm{kHz} and sends each tick to the joint inner loop, fic_inner_loop, which steps with MuJoCo in simulation or exchanges torques with the vendor driver through shared memory on the robot.FIC was introduced to solve this problem by exploiting passivity. It is important to note that FIC did not introduce the concept of the passive impedance controller, which has existed since its inception in 1985 [1]. If an impedance controller tracks a zero-velocity setpoint, it is generally a passive system—and conservative if damping is fully omitted. However, removing velocity tracking from a linear impedance controller historically meant the system could no longer accurately track dynamic trajectories. Prior to FIC, numerous methods attempted to resolve this limitation by introducing adaptive behaviours, energy budgets, and hierarchical optimisations [7, 12, 22, 23, 24, 25, 26, 21, 27, 28, 29, 30, 31]. Yet, tracking the energy of a redundant system is highly non-trivial; even under ideal conditions with a perfect model, non-passive systems require a path integral. This inevitably introduces integration drift in the state observer, leading to subsequent instability. By contrast, passive controllers hold the distinct advantage of avoiding integration drift because their state observer is inherently a conservative system.
Here, a critical distinction must be drawn between a passivated system (e.g., using energy tanks) and a purely passive system [5]. A passivated system remains an active system that relies on an additional conservative observer (i.e., a virtual spring) to enforce passivity by storing the non-conservative energy generated during interaction. While this approach improves stability and performance, it remains susceptible to instability or degraded tracking performance [5].
The FIC was originally envisioned as an online tunable passive controller that guarantees asymptotic stability by design. Over the years, it has evolved from a bio-inspired concept designed to mimic human motor control into a mature architecture capable of addressing major challenges in interaction control and teleoperation by exploiting its intrinsic passivity. It operates as a controller capable of leveraging highly non-linear impedance profiles to maintain excellent performance across diverse environmental dynamics with minimal tuning, all without requiring prior knowledge of the system or environmental dynamics. However, its development has, so far, remained fragmented across multiple standalone implementations. This work brings these disparate elements together, packaging them into a single, unified tool to streamline implementation and integration. Additionally, we port, for the first time to robotics, the complete Harmonic-Passive Motion Paradigm (H-PMP) originally developed to model human motor control [18]. Previously, this paradigm had only been partially adapted for robotics by replacing the lower-level control with dynamic compensation [4, 16].
III The FIC Suite
The FIC Suite is cross-platform (compatible with Linux, macOS, and Windows), and a Docker containerised version is also available. The suite comprises three main components interfaced via ROS2 nodes: the GUI, the robot nodes (handling simulation and hardware interfaces), and the core FIC library. For rigid body kinematics and differential kinematics modelling, the suite integrates the Pinocchio library [32] due to its state-of-the-art computational efficiency. However, the modular architecture ensures that users can easily substitute Pinocchio with their kinematics library of choice.
Fig. 2 shows the three components and their interfaces. The suite runs natively on Linux, with simulation and hardware, and on macOS, with simulation; the Docker version runs the simulation on Windows, macOS and Linux, with the GUI in a web browser [33].
III-A FIC Studio
The GUI serves as the primary interaction point for the end-user. It bridges the FIC control libraries with MuJoCo [34] for simulation and with physical robots through one driver per vendor interface, e.g., the Kinova Kortex API, the Franka Control Interface, the Universal Robots client library, the KUKA Fast Robot Interface and CAN bus motors. A driver only exchanges joint states and torques with the controller, so a new robot needs a driver and a configuration file rather than changes to the controllers. So far, the hardware chain has been tested on the Kinova Gen3 and the Franka FR3. In simulation, the same controllers also drive parallel mechanisms and dexterous hands. A robot is added by dropping its URDF or MuJoCo model, from which the Studio writes the missing model and the robot’s configuration (Section III-C). A per-robot hardware model adds to the simulation the joint friction, damping and torque-sensor noise estimated on the real arm, so that a tuning carries over to the hardware. Grippers, hands and tools, including custom ones, are robot types of their own that can be fitted to an arm after a check against its payload and joint torque limits. A dedicated drag-and-drop tuning interface enables users to seamlessly adjust controller parameters and store these configurations in an XML profile file. Furthermore, the GUI includes a Python live scripting environment for implementing custom high-level control functions, as well as an interface for saving and executing motion sequences. These sequences can be defined via scripts, inputted manually through the GUI, or recorded directly by moving the robot (kinesthetic teaching).
The GUI, FIC Studio, runs as a desktop window and as a web interface, which other computers and phones reach after signing in, with an emergency stop on every page. It selects the robot, the target (simulation or hardware), the control mode and the active profile. Its dashboard shows the robot in 3D with its trail, commanded path, target, safety zones and contact force, together with the tracking error and the update rate (Fig. 3). Pressing Start launches the simulator, or the robot’s vendor driver, and 2\text{\,}\mathrm{s} later the controller; Stop ends the controller first. Since both targets load the same library and profile file, a profile tuned in simulation loads on the robot unchanged. The topics are scoped by a robot number, so one Studio can run several robots, simulated or real, side by side, and the Studios of a lab find one another on the network, so that one station’s arm can be teleoperated from another.
Live tuning
The tuning page draws a channel’s force profile (Section IV-A) as a canvas whose stiffness K_{0}, breakpoints x_{b,j}, saturation efforts F_{s,j} and ratio \rho are set by dragging handles, scrolling and a slider. The channel’s live operating point is drawn on the curve, and the tracking error, joint effort and Cartesian wrench are shown beneath it (Fig. 3). Saving writes the profile file and publishes a parameter update. The robot node then reads the file off its control thread and passes the new profile to the inner loop, which switches to it on its next tick, without a restart or a mode switch. Similarly, the experiments of Section V are Studio extensions: Python scripts, run headless, that act on the robot only through the same ROS2 topics.
III-B Robot Nodes and Runtime
The robot node, fic_control, runs the task-space layer on a 1\text{\,}\mathrm{ms} wall-clock timer: the FIC control law, the kinematics, the safety checks and, on a thread of its own, the inverse kinematics (IK). Each tick, it sends a command over UDP to the joint inner loop, fic_inner_loop, a separate process that runs the joint modes, H-PMP’s joint layer and a hold-and-ramp that stops the arm when the task layer goes quiet; the same joint layer also runs on an MCU, as in Experiment C. Both targets load the same library, profile file and URDF, that of the arm with its fitted end-effector (Section III-C); in the experiments, the Kinova Gen3 with a Robotiq 2F-85 gripper. A target parameter selects the plant. In simulation, the inner loop steps in lockstep with MuJoCo, and the gravity torque is the simulator’s; on the robot, it runs at 1\text{\,}\mathrm{kHz} against the vendor driver through shared memory, the gravity torque comes from Pinocchio, and the driver adds its own torque limits.
- 1
- Impedance
- Joint
- 2
- Impedance with planner
- Joint
- 3
- Admittance
- Joint
- 4
- HapFIC
- Joint
- 5
- Impedance
- Cartesian
- 6
- Impedance with planner
- Cartesian
- 7
- Admittance
- Cartesian
- 8
- HapFIC
- Cartesian
III-C Library Core and Configuration
At its core, the FIC Library is built around a C++ template class, ficControl. This class contains all the methods required to implement ad hoc FIC controllers, alongside a collection of standard FIC architectures that can be called directly. These architectures are the modes of Section IV. The class owns an indexed array of per-DOF controllers, planners and admittance integrators, whose channels are numbered from 0. Joint i=1,\dots,n\in\mathbb{N} uses channel i-1, the Cartesian axes use channels 0–3, and the postural controller and H-PMP’s task layer use channels of their own. Each robot is described by configuration rather than code. A YAML file per robot gives its URDF and MuJoCo model, the kinematics solver, the joint limits, the per-joint torque limits L_{i}, the admittance deadbands, the safety settings and the hardware driver. The controllers load the URDF of the arm with its end-effector: either the robot’s own, or one that the Studio generates by adding the end-effector’s mass and inertia to the link it is mounted on, so that the gravity compensation carries it. XML files, one per robot and one per tuning profile, give the per-mode, per-DOF profiles. The library provides full access to all controller tuning parameters, granting advanced users complete customisation over the control behaviour. Finally, the FIC library is highly modular and can be deployed as a standalone dependency if the broader GUI and ROS2 infrastructure is not required.
IV FIC Controllers
Table I summarises all the controllers available within the library. The joint-space and task-space admittance controllers, impedance controllers, and planners are formulated as linearly independent collections of their respective mono-dimensional functions, which will be detailed later in this section. The quaternion controller is presented separately due to the distinctive formulation of the FIC in orientation space; specifically, the error and torque profiles are defined directly in quaternion space before being projected onto the end-effector frame.
IV-A FIC Effort Function
The FIC formulation requires the effort functions to be smooth and possess bounded derivatives, thereby ensuring Lipschitz continuity [3, 20, 18]. The effort profile implemented in the library is linear in the vicinity of the desired state, featuring n sigmoidal saturations for negative state errors, m sigmoidal saturations for positive state errors, and k=n+m. Let \tilde{x}=x_{d}-x denote the state error, where x_{d} is the desired state and x is the current state. The effort function is then defined as:
\Gamma(\tilde{x})=\begin{cases}\nu^{1}(\tilde{x}),&\tilde{x}\leq\tilde{x}_{b0}^{1},\\[-2.0pt]
\ \ \vdots&\\
\nu^{n}(\tilde{x}),&\tilde{x}_{b0}^{n-1}\leq\tilde{x}\leq\tilde{x}_{b0}^{n},\\[2.0pt]
K\tilde{x},&\tilde{x}_{b0}^{n}\leq\tilde{x}\leq\tilde{x}_{b0}^{n+1},\\[2.0pt]
\psi^{n+1}(\tilde{x}),&\tilde{x}_{b0}^{n+1}\leq\tilde{x}\leq\tilde{x}_{b0}^{n+2},\\[-2.0pt]
\ \ \vdots&\\
\psi^{k}(\tilde{x}),&\tilde{x}\geq\tilde{x}_{b0}^{k},\end{cases}Let \tilde{x}_{b}^{i}=\tilde{x}_{b0}^{i}/S^{i} denote the point at which the saturation reaches its peak value. Here, S^{i} represents the percentage of the distance between \tilde{x}_{b}^{i} and the previous transition point in the effort profile (i.e., the origin or a preceding boundary, \tilde{x}_{b}) where the effort saturation initiates. The sigmoidal saturation profiles are then defined as follows:
\begin{array}[]{l}\nu^{i}(\tilde{x})=\left(\gamma^{i}-\gamma^{i+1}\right)\left(\mathit{tanh}\left(\alpha^{i}+\pi\right)\right)+\gamma^{i+1}\\
\\
\psi^{i}(\tilde{x})=\left(\gamma^{i+1}-\gamma^{i}\right)\left(\mathit{tanh}\left(\alpha^{i}+\pi\right)\right)+\gamma^{i}\\
\\
\alpha^{i}=2\pi\frac{x-\left(S^{i}\left(x_{b}^{i}-x_{b0}^{i}\right)+x_{b0}^{i}\right)}{\left(1-S^{i}\right)\left(x_{b}^{i}-x_{b0}^{i}\right)}\\
\end{array}where \gamma_{i} is the i^{th} saturation value of the effort.
IV-B FIC Control
The FIC is a algorithmic implementation of a critically damped Liénard equation; thus, belonging to the same type of dynamic system as the Van der Pol oscillator [3, 5, 13]. The algorithm generating the FIC attractor is:
\Gamma_{c}(\tilde{x})=\left\{\begin{array}[]{ll}\Gamma(\tilde{x})&\text{Divergence}\\
\\
\frac{2\Gamma(\tilde{x}_{M})}{\tilde{x}_{M}}\left(\frac{\tilde{x}_{M}}{2}-\tilde{x}\right)&\text{Convergence}\end{array}\right.where \tilde{x}_{M} is the maximum state error recorded at the end of the previous divergence phase.
IV-C FIC Quaternion
Let q_{\mathrm{des}} and q represent the desired and current end-effector orientations in quaternion form. The orientation error is defined as \tilde{q}=q_{\mathrm{des}}\otimes q^{*}. The angular error \theta in quaternion space can be derived from \tilde{q}=[\tilde{q}_{s},\tilde{q}_{v}]^{T}, where \tilde{q}_{s} and \tilde{q}_{v} are the scalar and vector components of the error quaternion, respectively:
\theta=2\,\mathrm{atan}\!\Big(\frac{\lVert\tilde{q}_{v}\rVert}{\tilde{q}_{s}}\Big),This angular error is then used to compute the torque at the end-effector, \tau_{ee}, as follows:
\tau_{ee}=\Gamma_{c}(\theta)\,\frac{\tilde{q}_{v}}{\lVert\tilde{q}_{v}\rVert},where \Gamma_{c} is the effort function of Eq. (1) with the parameters of the orientation channel (channel 3), applied through the control law of Section IV-B.
x^{\mathrm{des}} to yield x^{\mathrm{adm}}. This output is then passed to the Cartesian planner (Plan.) and a Task-Space FIC (FICTS), which consists of a 3D Cartesian controller and a quaternion controller. The resulting output wrench is transformed into the desired joint torques by pre-multiplying it by the Jacobian transpose (J^{T}). Joint-Space: The torque error \tau_{\mathrm{des}}-\tau+g(q) is processed by the dead-band (\mathrm{dz}^{h}) described in Eq. (7) before being sent to the joint admittance block. The HapFIC algorithm (the joint-space HapFIC of Table I) within the joint admittance generates an offset \delta. This offset is added to the IK solution q^{\mathrm{IK}}—which is computed using x^{\mathrm{adm}} as its input—to determine the admittance-modified joint angles q^{\mathrm{adm}}. These angles are subsequently sent as input to the Joint FICs (FICJS) to compute the FIC control torques \tau^{J}. Finally, the gravity vector g(q) is added to \tau^{J} to generate the final actuator control torques \tau_{c}.IV-D FIC Planner
The FIC planner is utilised to generate trajectories connecting via-points [35, 36]. It is implemented as an FIC governing a unit point mass moving within a viscous field. Consequently, the planner generates an acceleration profile that is numerically integrated to produce continuous velocity and position references [35, 36]. These resulting kinematic outputs are then strictly bounded to respect the specific physical limits of the robot hardware. Once a desired velocity is selected, the planner’s parameters are automatically configured using principles from vibration theory. This ensures a critically damped convergence behaviour for both input via-points and continuous trajectories [36].
\left\{\begin{array}[]{ll}\ddot{x}=&\Gamma^{I}_{c}(\ddot{x})-\mu\dot{x}\\
\\
\dot{x}=&\mathrm{max}\left(\dot{x}_{\mathrm{min}},\mathrm{min}\left(\dot{x}_{\mathrm{max}},\int_{t_{0}}^{t}\ddot{x}dt+\dot{x}(t_{0})\right)\right)\\
\\
x=&\mathrm{max}\left(x_{\mathrm{min}},\mathrm{min}\left(x_{\mathrm{max}},\int_{t_{0}}^{t}\dot{x}dt+x(t_{0})\right)\right)\end{array}\right.where t_{0} is the starting time, t is the current time, and \mu is the viscosity coefficient. \dot{x}_{\mathrm{max}} and x_{\mathrm{max}} are the upper for velocity and positions limits, respectively. \dot{x}_{\mathrm{min}} and x_{\mathrm{min}} are the lower velocity and position limits.
IV-E Admittance Control
The admittance behaviour is divided into two distinct modes. Admittance accumulates the positional offset up to the hardware joint limits. In contrast, HapFIC bounds this offset using the i^{th}\in[1,n]\subseteq\mathbb{N} and j^{th}\in[n+1,k]\subseteq\mathbb{N} saturations (i.e., x^{i}_{b} and x^{j}_{b}) of the FIC controller. Therefore, it implements a seemless trade-off between admittance and impedance behaviour [20, 4]. In all other respects, Admittance and HapFIC (in both joint space and task space) operate identically according to the following admittance formulation. This implementation utilises a virtual viscosity field, determined by the coefficient \mu_{a}, alongside a desired virtual inertia M. By relying on this user-defined virtual inertia rather than the physical inertia of the robot, the admittance controller remains completely robust against kinematic singularities:
\ddot{x}=M^{-1}\left(\mathrm{dz}_{b}\left(\tilde{\Gamma}\right)-\mu\dot{x}\right),\qquad\tilde{\Gamma}=\Gamma_{d}-\Gamma_{c},where \mathrm{dz}_{b} is a deadband with a band of b. The acceleration is then integrated in velocities and position as in the planner in equation 6.
IV-F H-PMP: Nested Task-Space & Joint-Space Admittance Controllers
The H-PMP architecture, illustrated in Fig. 4, nests a task-space admittance or HapFIC controller (Admittance and HapFIC in task space, Table I) within a joint-space HapFIC (Table I). The task-space controller takes as input the desired pose (x_{\mathrm{des}}, represented as Cartesian coordinates plus a quaternion) and the external wrench (w). The wrench w can either be provided directly by a sensor or estimated (\hat{w}) from the joint torques, which we source from the robots’ APIs. The task-space controller generates the desired joint torques for the joint-space HapFIC as follows:
\tau_{\mathrm{des}}=J^{T}wMeanwhile, the corresponding joint posture q is generated via Inverse Kinematics (IK). The joint-space HapFIC then compares \tau_{\mathrm{des}} with the net actuator torque (i.e., the measured actuator torque \tau minus the gravity torque vector g(q)), which is compensated independently as depicted in Fig. 4. Finally, the admittance output is passed to the Joint FICs to generate the torque command \tau^{J}, to which the gravity vector g(q) is added to produce the final torque control signal \tau_{c} for the actuators.
V Experimental Validation
The experiments validate the ability of the proposed H-PMP architecture to transition between impedance and admittance behaviours. All evaluations were conducted on a physical 7-DOF Kinova Gen3 robotic arm driven by the FIC library (Section III) for Experiments A, B, and C. The performance of the H-PMP is compared against three other FIC-based control architectures, each implemented with its own optimised tuning: (1) a Cartesian impedance controller with a planner [15], (2) a Task-Space HapFIC [36, 4] that sends commands directly to the actuators (i.e., \tau_{c}=J^{T}w_{c}+g(q)), and (3) a Cartesian impedance controller with a planner sending commands to a joint-space HapFIC. This comparative analysis enables a rigorous assessment of the proposed controller’s performance against current state-of-the-art FIC implementations in robotics. Finally, all experiments were implemented as extensions of FIC Studio, which is open-source and freely available on GitHub to facilitate reproducibility [33].
The controllers are evaluated across three distinct tasks to assess their impedance and admittance behaviours. Experiment A tests trajectory tracking performance. Experiment B evaluates the admittance and impedance characteristics—as well as the transition between them—by having the robot make and lose contact with a wall. For this task, the admittance controllers are assigned a desired interaction force of zero, a condition that is abruptly altered when the obstacle suddenly collapses. Finally, Experiment C compares the H-PMP and the Task-Space HapFIC during a learning-by-demonstration (LbD) task, utilising their admittance behaviour for kinesthetic teaching and their impedance behaviour for trajectory replay.
The hardware controller operates at a 1\text{\,}\mathrm{kHz} loop rate, interfacing with the robot via the vendor driver’s torque interface. All evaluated controllers issue torque commands while simultaneously reading joint torques and positions. Additionally, the admittance controllers utilise the external wrench, which the library takes either from the robot’s API or from an estimate based on the measured joint torques; on the Kinova Gen3, the estimate was used.
A=0.10 m, 20\text{\,}\mathrm{s} period, one cycle per trial from the home pose, n=10 per controller): commanded path (dotted), every trial, the mean path and the 90\text{\,}\mathrm{\%} tube, in the colour of each controller. Each controller is shown in 3D with the horizontal plane below it: Cartesian impedance with planner and Cartesian impedance with joint-space HapFIC (top two rows), Task-Space HapFIC and H-PMP (bottom two rows).V-A Trajectory Tracking
A lemniscate trajectory is utilised to evaluate how the controllers respond to continuous acceleration changes and direction inversions within the xy-plane, both of which pose significant challenges for interaction controllers. Let the robot’s home position denote the centre of this trajectory. The commanded pose, which maintains a fixed end-effector orientation, is streamed at 60\text{\,}\mathrm{Hz}. The kinematic equations governing the lemniscate trajectory are defined as:
x=c_{x}+A\sin\omega t,\quad y=c_{y}+A\sin\omega t\cos\omega t,\quad z=c_{z},where A=0.10 m is the amplitude. The trajectory operates with a period of T=2\pi/\omega=20 s. We evaluate the tracking error as the instantaneous Euclidean distance between the measured and commanded end-effector positions, d(t)=\lVert p(t)-p^{\mathrm{cmd}}(t)\rVert_{2}. This distance metric is subsequently used to compute the mean absolute error (MAE), the root-mean-square error (RMSE), and the peak error. Furthermore, we evaluate the orientation error, calculated as the geodesic angle relative to the fixed target orientation, alongside the least-squares gain of the measured motion versus the commanded motion along the x-axis.
The H-PMP tracked the lemniscate with an RMSE of 7.80\text{\,}\mathrm{mm}, compared to 21.11\text{\,}\mathrm{mm} for the Task-Space HapFIC (Table II, Fig. 5 and Fig. 6). The Cartesian impedance controller with joint-space HapFIC achieved an RMSE of 12.56\text{\,}\mathrm{mm}, while the standard Cartesian impedance controller with a planner yielded 43.19\text{\,}\mathrm{mm}. The H-PMP, Task-Space HapFIC, and Cartesian impedance with joint-space HapFIC followed the figure-eight trajectory with x-axis gains of 0.99, 0.97, and 0.94, respectively. In contrast, the Cartesian impedance with planner reached a gain of only 0.69, exhibiting a peak error of 69.4\text{\,}\mathrm{mm} (compared to 16.9\text{\,}\mathrm{mm}, 32.2\text{\,}\mathrm{mm}, and 20.9\text{\,}\mathrm{mm} for the first three controllers, respectively). The orientation error was 3.33\text{\,}\mathrm{\SIUnitSymbolDegree} for the H-PMP and 3.65\text{\,}\mathrm{\SIUnitSymbolDegree} for the Task-Space HapFIC, whereas the Cartesian impedance with joint-space HapFIC and the Cartesian impedance with planner maintained lower orientation errors of 1.41\text{\,}\mathrm{\SIUnitSymbolDegree} and 1.94\text{\,}\mathrm{\SIUnitSymbolDegree}, respectively. Across all configurations, the ten trials for each controller differed by at most 2.04\text{\,}\mathrm{mm} in RMSE.
x (red), y (green) and z (blue) position of every trial from the centre c of the lemniscate, commanded dotted, with the 5\text{\,}\mathrm{s} hold at the centre after the cycle.- Cartesian impedance with planner
- 41.4
- 43.19 [42.65, 43.72]
- 69.4 [69.0, 69.8]
- 1.94
- 0.69
- Cartesian impedance with joint-space HapFIC
- 11.8
- 12.56 [11.81, 13.65]
- 20.9 [20.3, 22.2]
- 1.41
- 0.94
- Task-Space HapFIC
- 20.3
- 21.11 [21.00, 21.22]
- 32.2 [31.8, 32.4]
- 3.65
- 0.97
- H-PMP
- 7.3
- 7.80 [7.06, 9.10]
- 16.9 [15.5, 18.8]
- 3.33
- 0.99
Fig. 5 and Fig. 6 show that the H-PMP achieves the best tracking performance in terms of error; however, its trajectory is less smooth compared to the purely Cartesian controllers (Cartesian Impedance and HapFIC). It does still yield a smoother trajectory than a Cartesian Impedance controller combined with a joint-space HapFIC. The oscillatory motion introduced in the H-PMP trajectory can therefore be attributed to the joint-space HapFIC trading tracking accuracy for torque tracking. This issue can be mitigated by utilising the robot’s dynamic model to enhance the desired torque estimation or by introducing online tuning to adapt the controller’s behaviour.
V-B Wall Press and Release
The experimental setup consists of a vertical plate on a quick-release mount positioned beside the arm, facing the x-axis of the base frame (Fig. 1). The robot controls the physical interaction with the rigid wall until the experimenter activates the quick release, causing the wall to collapse and generating a sudden loss of end-effector contact. Such a task is notoriously difficult for traditional interaction controllers. An admittance approach can effectively regulate the interaction force, but the sudden loss of contact can drive the controller into instability. Conversely, an impedance controller handles the loss of contact safely but only allows for indirect control of the interaction force via feed-forward estimation. Therefore, this serves as an excellent task to validate the claim that the proposed architecture successfully seamlessly combines admittance and impedance behaviours.
- Cart. imp. with joint-space HapFIC
- 2
- 16.9
- 0.0
- 68.7
- Task-Space HapFIC
- 1
- 4.6
- -50.0
- 36.3
- H-PMP
- 2
- 12.6
- -50.0
- 23.4
The robot makes contact with the wall by attempting to reach a desired state located 60\text{\,}\mathrm{mm} beyond the wall along the x-axis. Following a 1\text{\,}\mathrm{s} baseline phase, the target moves further along the x-axis towards the wall at 10\text{\,}\mathrm{mm}\text{\,}{\mathrm{s}}^{-1} until it reaches 100\text{\,}\mathrm{mm} beyond the face, at which point the task-space law commands an expected contact force of 20\text{\,}\mathrm{N}. The target is then held. Between 4\text{\,}\mathrm{s} and 14\text{\,}\mathrm{s} into this hold phase, the operator pulls the release. The plate drops away while the commanded target remains fixed; the arm’s response is then recorded for an additional 5\text{\,}\mathrm{s}. Because no external force sensor is fitted, the contact force relies on the controllers’ estimation of the external wrench derived from the joint torques. This is measured along the press axis and tared prior to each press. Three architectures are compared over two presses each (one for the Task-Space HapFIC): Task-Space HapFIC, Cartesian impedance with joint-space HapFIC, and H-PMP.
The Cartesian impedance controller with joint-space HapFIC sustained the highest contact force and interaction torque (Table III, Fig. 7), registering 16.86\text{\,}\mathrm{N} just prior to the release. Because its set-point did not shift, it travelled 68.7\text{\,}\mathrm{mm} past the original wall face immediately following the release. In contrast, the H-PMP shifted its set-point by 50.0\text{\,}\mathrm{mm} and maintained a contact force of 12.59\text{\,}\mathrm{N}, safely travelling only 23.4\text{\,}\mathrm{mm} past the face upon release. The Task-Space HapFIC also shifted its set-point by 50.0\text{\,}\mathrm{mm} but held a lower force of 4.59\text{\,}\mathrm{N}, travelling 36.3\text{\,}\mathrm{mm} past the face. Notably, during its first press, the H-PMP rebounded from the wall once before settling into stable contact.
20\text{\,}\mathrm{N} (first press of each controller; H-PMP and Cartesian impedance with joint-space HapFIC with the contact profile). Top: the distance from the wall (zero at the touch, negative past the face; the wall face dotted) and the commanded target x^{\mathrm{des}} (dash-dot), which ramps 100\text{\,}\mathrm{mm} past the face and is then held; bottom: the contact force estimated from the joint torques, with the expected maximum force (dashed). The vertical dashed lines mark each controller’s release, in its colour.d, the end-effector’s distance from the unpushed replay at the same replay time; bottom: \lVert F\rVert, the force on the end-effector during the pushed replay, estimated from the joint torques (50\text{\,}\mathrm{ms} mean); both against time from the start of the push (t=0). The push, located in the recorded force estimate, is shaded in the colour of its setup.The wall press and release data in Fig. 7 indicates that the H-PMP’s force-tracking performance falls between that of the purely Cartesian HapFIC and the Cartesian controller with a joint-space HapFIC, while outperforming both in recovering from contact loss. The end-effector detachment observed upon making contact with the wall suggests an initial overcompensation. This is subsequently counteracted when the HapFIC reaches the maximum allowed displacement of its desired state under the admittance behaviour. When contact is lost, the H-PMP exhibits the smoothest transition from admittance to impedance behaviour. These results further confirm that performance could be enhanced by introducing online parameter tuning, enabling the controller to adapt to the task at hand.
V-C Learning by Demonstration
The learning-by-demonstration (LbD) task evaluates the ability to seamlessly switch from admittance to impedance behaviour during physical interaction with a user. The user relies on the admittance behaviour to kinesthetically demonstrate a trajectory to the robot, which must then be replayed by the controller exploiting its impedance behaviour. The only baseline configuration that can be fairly compared with the H-PMP for this task is a combination of a Cartesian admittance controller (for the teaching phase) and the Task-Space HapFIC (for the replay phase). All controller tunings remain identical across both phases.
After homing, the teaching controller operates in either the baseline Cartesian admittance mode or the H-PMP task-space admittance mode. The operator moves the end-effector from the home pose to the left, to the right, up, down and out, as shown in Fig. 8. The arm is then homed again, and the taught trajectory is replayed using its original timing in either the Task-Space HapFIC baseline or the H-PMP operating in HapFIC mode in the Task-Space. A second replay is subsequently performed with an introduced physical perturbation to evaluate the perturbation rejection capabilities of the controllers’ impedance behaviours. The H-PMP was also run with its joint-space HapFIC on a microcontroller (MCU): the STM32H5 of an Arduino Ventuno Q runs it at 1\text{\,}\mathrm{kHz} and drives the arm through an Ethernet shield, while the task-space controller runs on the board’s Linux processor and reaches the MCU over the board’s internal link at about 95\text{\,}\mathrm{Hz}. The task-space controller could not be integrated into the MCU due to its dependency on Pinocchio. However, because the current control loop and robot communication require only about 100\text{\,}\mathrm{\SIUnitSymbolMicro s}, there is ample computational capacity to include the task-space controller alongside analytical or geometrical kinematic models directly on the MCU.
- Teaching speed, mean (\mathrm{mm}\text{\,}{\mathrm{s}}^{-1})
- 150
- 144
- 75
- Replay RMSE over the movement (mm)
- 55.7
- 40.7
- 42.4
- Replay error, peak (mm)
- 119.0
- 92.8
- 87.6
- Peak perturbation force F_{\mathrm{p}} (N)
- 27.8
- 11.3
- 51.3
- Peak deviation d_{\max} (mm)
- 132
- 67
- 167
- Residual deviation d_{\mathrm{r}} (mm)
- 77
- 4.6
- 85
- Compliance C (\mathrm{mm}\text{\,}{\mathrm{N}}^{-1})
- 4.8
- 6.0
- 3.3
Over the taught movement, the H-PMP replayed its taught path with an RMSE of 40.7\text{\,}\mathrm{mm} and a peak error of 92.8\text{\,}\mathrm{mm}, compared to 55.7\text{\,}\mathrm{mm} and 119.0\text{\,}\mathrm{mm} for the Task-Space HapFIC (Fig. 8, Table IV), with both paths taught at a mean hand speed of 144\text{\,}\mathrm{mm}\text{\,}{\mathrm{s}}^{-1} and 150\text{\,}\mathrm{mm}\text{\,}{\mathrm{s}}^{-1}, respectively. During the perturbation tests, both controllers safely yielded to the pushes. We define the compliance as the peak error, the end-effector’s distance from the unperturbed replay, over the push and the 2\text{\,}\mathrm{s} after it, divided by the peak force of the push, both located in the recorded data. Under a hand push of 11.3\text{\,}\mathrm{N}, the H-PMP’s end-effector moved up to 67\text{\,}\mathrm{mm} from the unperturbed replay trajectory (Fig. 9), yielding a compliance of 6.0\text{\,}\mathrm{mm}\text{\,}{\mathrm{N}}^{-1}. Similarly, under a push of 27.8\text{\,}\mathrm{N}, the Task-Space HapFIC deviated by up to 132\text{\,}\mathrm{mm}, a compliance of 4.8\text{\,}\mathrm{mm}\text{\,}{\mathrm{N}}^{-1}. With its joint-space HapFIC on the MCU, the H-PMP replayed a path taught at 75\text{\,}\mathrm{mm}\text{\,}{\mathrm{s}}^{-1} with an RMSE of 42.4\text{\,}\mathrm{mm} and a peak error of 87.6\text{\,}\mathrm{mm}; under a push of 51.3\text{\,}\mathrm{N}, its end-effector moved up to 167\text{\,}\mathrm{mm} (3.3\text{\,}\mathrm{mm}\text{\,}{\mathrm{N}}^{-1}) and was 85\text{\,}\mathrm{mm} from the unperturbed replay 2\text{\,}\mathrm{s} after the push.
The LbD experimental data in Fig. 8 confirm the superiority of the H-PMP over the Cartesian controllers in transitioning from admittance to impedance behaviour, generating a more accurate replica of the trained trajectory.
VI Conclusion
We presented an evaluation of the H-PMP against other FIC controllers, demonstrating that it offers a balanced compromise between impedance and admittance behaviours. This enables the robot to successfully track trajectories while controlling interaction forces with the environment. The H-PMP architecture is computationally efficient and could be executed in its entirety on the MCU, which has a maximum power consumption of approximately 400\text{\,}\mathrm{mW} [37], compared to the 15\text{\,}\mathrm{W}17\text{\,}\mathrm{W} drawn by the Arduino Ventuno Q board, built around the highly efficient Qualcomm Dragonwing IQ-8275 [38]. Furthermore, the data suggest that performance could be enhanced by exploiting the FIC’s real-time capabilities to introduce online tuning, thereby implementing an adaptive architecture. Finally, we also introduced a FIC Suite that enables the deployment of all available FIC architectures in both MuJoCo simulations and on physical robots. Future work will focus on developing adaptive tuning methods to enable the online optimisation of FIC performance.