Manuscript Offprint
arXiv:2610.17069Task-Space Motion-Force Nonlinear Model Predictive Control for Precise and Compliant Control under Uncertainties
Quang-Nam Nguyen and Ludovic Righetti
Abstract—In Nonlinear Model Predictive Control (NMPC), the control law is implicitly determined by the solution of an Optimal Control Problem (OCP). Consequently, OCP design is often tailored to specific platforms and tasks, demanding extensive expert knowledge and tuning effort. To address this, we propose a unified NMPC framework that directly plans and controls the robot joints subject to task-space motion and force requirements and is capable of seamlessly generalizing across multiple robotic platforms and diverse tasks. Furthermore, optimization-based methods often treat interactions as rigid contacts, making the torque solution sensitive to the modeling errors of the robot dynamics and the environment. We study the intrinsic task-space impedance of our proposed controller, its partial contraction for differential stability and differential passivity under unmodeled interactions. As a result, our framework enables closing the force-feedback loop in the high-level planning layer to achieve precise motion-force tracking performance, addressing the long-standing challenge of force-feedback NMPC. Finally, we validate our framework on physical hardware, demonstrating hybrid motion-force control on a redundant manipulator and compliant locomotion on a quadruped, while preserving core NMPC advantages such as hard constraint satisfaction, optimal redundancy exploitation, and real-time planning under unforeseen interactions.
I. INTRODUCTION
Recent progress in model-based optimization has improved the ability to solve real-time whole-body Optimal Control Problems (OCP) for Nonlinear Model-Predictive Control (NMPC), thanks to the cumulative efforts of dynamics algorithms [1], versatile OCP formulation [2], and efficient solvers [3]. In general, a discrete OCP with horizon N aiming to minimize a cost function under dynamics constraints and inequality constraints can be written as:
where the constraints (1c) may include joint state and torque limits, task-space collision avoidance, friction cones, etc.
Such approaches are interesting as they offer, in theory, the ability to adapt in real-time to any types of environment while ensuring hard constraint satisfaction when necessary. In practice, however, OCP has been mostly used in offline trajectory optimization due to the computational burden of long-horizon OCP with complex costs and constraints.

Fig. 1. Our force feedback IA-NMPC performs safe and precise motion-force control tasks: (a) drawing on a deformable surface, (b) massaging, and (c) SE(3) manipulation of an unknown heavy object. Without force feedback, our I-NMPC creates robust, compliant behaviors on a quadruped: (d) walking through unknown terrains, and (e) pulling human on a chair.
designed to solve a given task. To realize the motion on real robots, the optimal trajectory is then used as reference for faster tracking controllers such as joint-space linear/nonlinear MPC [4] or reinforcement learning (RL) tracking policies [5]. Recent efforts have made whole-body NMPC possible by carefully tailoring the OCP to specific platforms and tasks [6] or making strong assumptions about contacts, either via analytical model [7] or in simulation [8], rendering these approaches often brittle to unexpected interactions. These reasons can explain why the community tends to prefer policy learning methods (e.g. RL) [9], [5] which remove all the issues of real-time decision making. However, such approaches might not be suitable for all contexts, for example when hard constraint satisfaction guarantees are dictated by the application, or when the environment model is inaccurate or unavailable, leading to large sim-to-real gap. Furthermore, incorporating force/torque sensors to achieve motion-force tracking performance of state-of-the-art force control techniques has been a challenge for both optimization and learning methods [10].
In this paper, we propose a task-space NMPC framework to generate in real-time robot motion that guarantees passive impedance in the task space for various robots. Indeed, a diverse set of robotic tasks can be achieved with platform-agnostic task-space targets, then a generic OCP featuring end-effector reaching costs can generalize to multiple robot platforms. Moreover, based on theoretical analysis, we remove unnecessary rigid contact assumptions and instead choose appropriate end-effector cost features to regulate the robot's task-space impedance and its overall movement in a generic manner while increasing its robustness to distur-
Machines in Motion Laboratory, Center for Robotics and Embodied Intelligence, New York University (NYU), USA. namnguyen@nyu.edu
Artificial and Natural Intelligence Toulouse Institute (ANITI), France.
bances and model errors. As a surprising result, this framework also enables us to utilize a simple and modular way to close the force-feedback loop in NMPC through admittance control. We validate our approach for multiple motion-force control tasks on a 7-DOF manipulator and achieve the same tracking precision as state-of-the-art force control methods while preserving the additional advantages of NMPC such as optimal redundancy resolution and real-time predictive planning under hard constraint satisfaction and unmodeled human-robot interactions. We also run NMPC on a real quadruped to stress-test the robustness to unknown environments and modeling/sensory uncertainties, while achieving customizable compliance at the robot's feet and center of mass (COM). We open-source our framework which seamlessly controls diverse types of robots for different tasks, utilizing Pinocchio for our dynamics model and Mujoco for simulations to mimic the model-to-real gap.
Classical methods often prefer to decouple complex tasks into task-space planning followed by joint-space planning and control. Similarly, recent efforts in learning-based methods also aim to remove joint-space tele-operation data, which are expensive and hard to scale, and instead collect demonstration data in task space [14]. Following this paradigm, we propose a generic NMPC architecture (see Fig. 2) that is applicable to a wide range of robots and replaces Inverse Kinematics (IK), Inverse Dynamics (ID), Proportional-Derivative (PD) control with receding-horizon optimal control.
-
Impedance and Admittance: Numerous methods have been developed to address hybrid motion-force control, including impedance [15] and admittance [16] which aim to establish a mass-spring-damper relationship for end-effector contacts but differ in whether the end-effector is force-controlled or position-controlled. For locomotion, COM admittance and foot damping can be modeled via an admittance control law [17] or a PD control law [18] and eventually mapped to joint state and torque using IK and ID solvers [19]. The relationship between impedance and admittance is known to be complementary, and many works have proposed unifying impedance and admittance, such as mode switching [20] or through hardware design [21]. Unlike in closed-form methods which specify spring-like and damper-like constants [22], we can obtain impedance stiffness that can be scaled by the weight matrices in nonlinear OCP.
-
Force-feedback MPC: There are two approaches in force-feedback MPC which originate in force control: direct and indirect. Some direct force-control MPC methods may impose the rigid contact constraint on the end-effectors [7], [23], which over-constrains the robot while requiring accurate contact timings and locations. Moreover, contact forces and control torques are algebraically coupled due to the overconstrained dynamics. Although some works have proposed breaking the algebraic loop by introducing delay [7] or using soft contact models [10], these methods introduce task-specific contact assumptions, making it difficult to implement for different tasks and sensitive to actual contact state. In comparison, we do not apply rigid contact constraints to interactions except standing foot of legged robots. We show that the mismatch between our predictive model and the actual interaction helps characterize task-space impedance, and afford reasoning about contacts in task space instead without modifying the dynamics model.
We follow the indirect approach which has shown promising results in linear and nonlinear MPC. For example, [24] proposed to adjust reference end-effector trajectory to regulate contact forces, i.e. an admittance control scheme, in a position-controlled mobile manipulator using sequential linear quadratic MPC. In comparison, our method uses an admittance loop to regulate impedance instead of relying only on the actual robot movements. Recently, [25] combined admittance control with NMPC for aerial robots, updating the reference trajectory using the impedance model's predictions. In contrast, our method does not use interaction forces as an optimization variable nor in the OCP's dynamics model, keeping our formulation generic and avoiding the need for force derivative, which is commonly set to zero [25] or estimated indirectly with a contact dynamics model [10].
II. METHODOLOGY OVERVIEW
Our OCP formulation using end-effector costs allows to solve tasks in two stages, i.e. the task-space motion-force planning and the generic optimal control, resulting in a unified architecture (see Fig. 2) that is generalizable to different types of robots in various tasks. The high-level task-space planning can be solved using any planning or learning-based methods that output end-effector plans, either discrete or continuous. For example, locomotion only requires a discrete plan for contact placements and timings. Manipulation tasks such as pick-and-place can be solved with discrete reaching targets while some tasks, e.g. drawing and polishing, dictate that the end-effector keeps a continuous path. Finally, end-effector plans are inputs to a generic OCP formulation that computes optimal joint and torque trajectories. Different from many MPC works, we avoid tracking nominal joint trajectories and therefore use nonlinear robot dynamics.

Fig. 2. Task-space Impedance-Admittance NMPC Architecture
Compared to classical and learning-based methods, NMPC offers hard constraint satisfaction and online planning.
The salient points of our architecture are:
• Instead of tracking a nominal trajectory or formulating all task requirements into a single OCP, we rely on online task-space planners to break down manipulation and locomotion tasks into end-effector costs and constraints that define our generic OCP in real time;
- The task-space cost formulation also enables to regulate the end-effector impedance stiffness, crucial to improve robustness to unknown environment and contacts;
• We close the force-feedback loop by admittance, synthesizing an Impedance-Admittance NMPC (IA-NMPC);
- The OCP is solved online to generate optimal joint position, velocity and torque trajectories that are sent directly to the low-level controller, e.g. pure torque control, position control, or with a joint-space PD control.
III. BACKGROUND
A. Clarifications on dynamics model with contacts
Denote q the robot configuration and u the control torque. The dynamics of fixed-base and floating-base robots is:
where is the robot's inertial matrix; is the gravity term, is Coriolis and centrifugal forces, and is a selection matrix (for fixed-base robots, ). We would like to clarify the distinction between rigid contact wrench and external interaction wrench . Rigid contact is associated with holonomic scleronomic constraint [2], [13]: and its contributed torque is derived from Gauss's principle of least constraint, where the Lagrangian multiplier is also the contact wrench . In contrast, external interaction wrench does not require end-effector constraints. For example, the gravity term is the contribution of gravity applied to the center of mass (COM), which can be written as but no constraint is imposed. Therefore, may include gravitational forces due to modeling errors.
In this work, we only enforce rigid contact constraint on the standing feet in floating-base robots, while the fixed-base robot's end-effector and floating-base robot's swing feet are not subjected to contact constraints and their force contributions are not included in our prediction model even when they interact with the environment, i.e.
which is valid for a number of reasons. Firstly, contacts may not occur as planned and are generally not rigid contacts, so predicting exact contact timings and force evolution is prone to errors. Secondly, we will show that the mismatch between our prediction model (3) and the full dynamics (2), together with our cost function, characterize a task-space impedance which can be regulated and is robust to unknown interactions.
B. Optimal Control Problem
For the purpose of recovering the control law explicitly, in this section, we focus on the unconstrained OCP (1a-b).
The optimal trajectories of states , where , and controls must satisfy the Karush–Kuhn–Tucker (KKT) conditions (cf. [3]):
where , , , , , and the dynamics is linearized at the current guess with , . We do not include terms which are zeros for our cost function (6).
Assumption 1: (Convergence) Regardless of the choice of solvers, we assume convergence after sufficient iterations:
Substituting into (4), we recover the Riccati recursion: starting with then iteratively computing as follows
(5)
IV. TASK-SPACE IMPEDANCE NMPC
In this section, we would like to apply the Riccati recursion (5) to recover the converged solution for an OCP with a generic cost function that will be used in our nonlinear MPC architecture. In particular, we will show that the optimal control law characterizes task-space impedance control. This insight will allow us to regulate task-space impedance and to close the force-feedback loop in NMPC in the next section.
A. Cost function
To benefit from the advantages of nonlinear MPC, we avoid tracking nominal joint trajectories, hence do not use the joint position cost, while joint velocity cost is necessary for smooth trajectories. Notably, we use the end-effector pose cost, which is widely used to plan optimal trajectories to reach a goal. Consider a cost function that consists of the end-effector cost, velocity and control regularization costs:
where is a reference control, typically the gravity compensation torque.
Definition 1: We define the end-effector residual:
(7)
where is the right-minus [26] and is the relative pose (twist) from the end-effector frame to a goal frame, expressed in the end-effector frame. The sign flip is merely for easier interpretation, e.g. common convention for relative position is . The task Jacobian is
where is the right Jacobian of the logarithm [1].
B. Combined Forward Kinematics-Dynamics
Definition 2: We define the following variables:
and the Forward Kinematics and Forward Dynamics is:
Assumption 2: It is common in practice to set the reference control to be the gravity compensation, given that one end of the robot (the fixed base or the standing foot) is in rigid contact with the ground, based on the dynamics model
while any modeling errors (e.g., inertial matrices, joint friction, etc.) can be included in the external force .
Based on the above assumption, we can simplify the combined Forward Kinematics-Dynamics (10):
which can be discretized using the forward Euler method:
C. Recovering the control law
We rewrite the cost function (6) using the new variables:
Applying the Riccati recursion (5) to our cost function (13) and Forward Kinematics-Dynamics (12), starting at :
then this backward pass can be summarized as follows:
Finally, MPC applies the first control to the robot:
where is called the Riccati gain.
D. Task-space Impedance of our OCP formulation
Since if is the gravity compensation torque (Assumption 2), we can rewrite the full dynamics (2):
We left-multiply both sides by and rearrange to get
and since , we recover the task-space dynamics of the end-effector (cf. [11]):
where is the task-space inertial matrix, is the generalized pseudo-inverse of the end-effector's Jacobian, i.e. . It is worth highlighting that is not used for Inverse Kinematics anywhere in our proof. Using the optimal control from (17), the gravity-compensated control wrench is
where we remove the subscripts in , , for readability.
Finally, denote , split and substitute (20) into (19), we obtain a closed-loop dynamics that obeys task-space impedance law:

Fig. 3. Simplified diagram of Impedance-Admittance NMPC
where the impedance stiffness and damping can be scaled through the weight matrices as they back-propagate through the Riccati recursion (16).
This task-space impedance law attracts the end-effector to a steady state by the following equilibrium:
which can prevent the end-effector from deviating away under unmodeled forces . Next, we shall analyze the contraction and passivity of this Impedance NMPC (I-NMPC).
V. MOTION-FORCE NMPC
A. Partial Contraction and Differential Passivity
Since our system is nonlinear and time-varying, we follow the partial contraction analysis framework [27]. Consider a virtual system for our closed-loop dynamics (by substituting (20) into (18)) with respect to a virtual state , the external forces , and the relative twist of end-effector goal (recall Definition 1), the variation dynamics is:
We define the following differential Lyapunov function which is also differential storage function:
Noting that and , we obtain:
(25)
-
Partial contraction: Without the moving goal and external force variation, (25) simplifies to . Condition: if , , the system is partially contracting, guaranteeing differential stability and convergence, in our case, to the task-space equilibrium (22). Compared to standard contraction which guarantees convergence to a single trajectory, our system allows freedom in the joint space which is crucial for optimal redundancy exploitation of manipulators and adapting behaviors of legged robots.
-
Differential passivity: Taken the moving goal and external force variations into account, the differential passivity condition is satisfied if . If , the system is strictly differentially passive, which means it always dissipates energy faster than the energy transfer rate from the external forces and from the virtual energy created by the moving goal . Given this passivity, we can safely close the force-feedback loop to regulate external wrench in NMPC by adjusting the end-effector's goal pose using admittance

Fig. 4. Press test: contact forces when changing the relative goal pose , the z component of weight matrix Q, and the end-effector's position.
law (Fig. 3), provided that an interconnection of admittance control with passive systems is passive [28].
In summary, the condition to obtain both partial contraction and differential passivity is: which is achievable in practice by tuning the cost weight matrix Q, e.g. high enough to dominate during back propagation (16).
B. Impedance-Admittance NMPC
To track a desired force and motion , we propose an admittance step that adapts the relative end-effector pose by updating the goal frame's transformation matrix in (7) by a twist by integrating a desired dynamics:
where , , are positive-diagonal matrices that represent the desired inertia, damping and stiffness; , , are the desired 6D pose, velocity and acceleration with respect to a fixed frame, i.e. , , .
-
Staying mode: is fixed, and so that the object returns to a desired equilibrium .
-
Floating mode: , and so that the object can be moved to any poses in space.
-
Force tracking: setting , , , and simplifies (26) to which integrates into proportional force control: . One could also include a derivative term to obtain PD force control, i.e. .
Since the OCP outputs the optimal joint and torque trajectories, our framework can run on either position-controlled or torque-controlled robots. In position-control mode, we obtain Admittance NMPC (A-NMPC), and in torque-control mode, Impedance-Admittance NMPC (IA-NMPC).
VI. EXPERIMENTS
We perform all experiments using a laptop with CPU AMD 8940HX. We test two OCP solvers, FDDP [2] and mim_solvers [3], and both generate compliant behaviors since the task-space impedance is the underlying control law of the OCP and agnostic to numerical methods (cf. section IV). In the following experiments, OCPs are solved by mim_solvers which treats inequality requirements as hard constraints.
A. Experiment 1: Task-space Impedance in manipulation
In section IV, we characterized the relationship between the task-space impedance and the end-effector costs. The task-space compliance has been observed in a recent work [29] but was credited to high-frequency closed-loop MPC.

Fig. 5. Comparison of force tracking precision between different methods.
To validate our theoretical analysis of the task-space impedance as a result of the end-effector cost, we set up a pressing test as follows. A 7-DOF manipulator (Flexiv) presses at different locations on a wooden surface (Fig. 4) with different weight matrices for the end-effector cost. A force/torque sensor measures contact force changes at the end-effector. The first plot shows vertical contact force increases linearly as the goal pose is set further below the surface. It also shows that as the z component of the weight matrix increases, the stiffness (the slope) is scaled up. This stiffness is state-dependent (second plot). These results validate force-position relationship characterized by the impedance law (22). This observation suggests to control contact forces by adapting the end-effector goal pose (Admittance), while the stiffness of the end-effectors can be adjusted by the cost weight matrix (Impedance).
B. Experiment 2: Drawing on flat and deformable surfaces
In this series of experiments (see Fig. 1a-b), Flexiv must draw with 1.0N on a white board, 2.0N on paper, and 0.5N on the balloon. Similar tasks such as polishing/massage (Fig. 1c) can be done by setting the desired contact force, e.g. 10N. For these tasks, one could use the force tracking admittance control in z direction: where the admittance coefficients are tuned for each material and method to the best of our effort:
• Massage: , for all.
• Paper drawing: , for all.
• Board drawing: we re-tune except for our IA-NMPC where we keep old value but soften the impedance by lowering .
• Balloon: similarly, NMPC uses with low while others are tuned to .
In board and balloon drawing, our IA-NMPC works well with the same admittance coefficients as others but we want to test different admittance coefficients to show the benefit of the impedance layer in changing the contact stiffness.
We use raw force/torque sensor data without any additional estimator/filter. All drawing experiments use the same MPC setup: update frequency 100Hz, receding horizon nodes . Keep all other parameters the same, we compare our method IA-NMPC (pure torque mode) and A-NMPC (position mode) with three baseline controllers:
- Classical admittance control (Admittance IK): : passing desired end-effector velocity adjusted by the admittance law to a QP solver to compute joint velocities.

Fig. 6. Drawing under disturbances with real-time constraint addition.
-
Torque-control admittance (Admittance ID): adding another layer to Admittance IK that maps desired joint acceleration to torque via Inverse Dynamics.
-
Direct motion-force control: using Inverse Dynamics for motion-tracking directions and null-space force control assuming rigid contact in force-tracking direction.
Classical admittance control is already the state-of-the-art, so we do not compare with direct force-control MPC since these methods require modifying the dynamics model and optimization variables. Since our robot model is not accurate, the torque-control baselines must be coupled with a low-level PD controller. Meanwhile, our IA-NMPC sends pure torque commands to the robot, validating the task-space impedance without the help of the joint-space PD impedance law.
Results are shown in Table I and Fig. 5. Overall, IA-NMPC, A-NMPC and Admittance IK keep highly precise contact forces throughout all experiments. Notably, these methods enable the robot to draw with 0.50 on a balloon with standard deviation of 0.08–0.12N without knowledge of the balloon's curvature and deformations. In term of position accuracy, classical Admittance IK and A-NMPC achieved the smallest deviation since they are position-controlled. Meanwhile, IA-NMPC achieved slightly lower accuracy due to its compliance to friction in other directions. Nonetheless, a standard deviation of 0.65–1.48mm is highly accurate for most cases and the impedance stiffness can be adjusted when extreme position accuracy is needed by the applications.
Torque-control Admittance ID, though achieves good force tracking performance, cannot plan when it is deviated from the reference due to friction, leading to poor motion tracking in massage task. In contrast, direct force control performs poorly in drawing tasks since it depends on a flat surface model, and improves in the massage where the rigid contact assumption becomes more relevant under high contact forces.
The advantage of our method over Admittance IK is more significant in the massage/polishing task when the desired force of 10N making the contact dynamics stiffer which is known to be where Admittance IK performance drops. In comparison, classical admittance control relies solely on actual movement of the end-effector (infinite stiffness) while our IA-NMPC adds an impedance layer that is equivalent to adding springs in series to soften the contact dynamics.
In addition, MPC framework allows adding and solving hard constraints in real-time, even when subject to human interaction, as shown in Fig. 6. Together with the adjustable stiffness of the task-space impedance layer as discussed
TABLE I CONTACT FORCE AND POSITION TRACKING PRECISION ON DIFFERENT SURFACES AND DESIRED FORCE: ○ BOARD (1.0N) – ♥ PAPER (2.0N) – ♥ BALLOON (0.5N) – ∞ BOX MASSAGE (10.0N)
| Method (Mode) | IA-NMPC (ours) (Pure Torque) | A-NMPC (ours) (Position) | Admittance IK (Position) | Admittance ID (Torque + PD) | Direct Force Control (Torque + PD) |
|---|---|---|---|---|---|
| Board | 0.98 ± 0.23N (0.65mm) | 0.98 ± 0.27N (0.05mm) | 0.98 ± 0.15N (0.02mm) | 0.99 ± 0.25N (6.86mm) | 1.11 ± 0.29N (6.09mm) |
| Paper | 2.00 ± 0.12N (0.87mm) | 2.00 ± 0.12N (0.17mm) | 2.00 ± 0.12N (0.16mm) | 2.00 ± 0.16N (6.11mm) | 2.81 ± 0.87N (5.67mm) |
| Balloon | 0.50 ± 0.08N (1.48mm) | 0.50 ± 0.09N (0.37mm) | 0.50 ± 0.12N (0.11mm) | 0.49 ± 0.10N (6.42mm) | 2.06 ± 1.08N (8.80mm) |
| Massage | 10.0 ± 0.2N (0.87mm) | 10.0 ± 0.2N (0.43mm) | 10.0 ± 0.5N (0.24mm) | 10.0 ± 1.1N (11.9mm) | 10.1 ± 0.9N (7.16mm) |
above, our IA-NMPC provides safe and precise interactions which is a critical property in many applications, especially with human-robot interaction as shown in the video.
C. Experiment 3: admittance with a heavy object
We demonstrate a pipeline to manipulate unknown heavy objects in (Fig. 1c) without object model in the OCP, which will be useful for human-robot collaboration tasks.
- Estimation of object's inertia properties: In general, one could estimate the object's inertia matrix using Newton-Euler equations of motion (EOM), such as in [30]. However, since knowledge of the object mass and COM location are sufficient for most cases, we could use the static EOM:
Without the object model, we can still rely on a stiff Impedance NMPC to rotate the end-effector and collect force/torque data at different orientations (see the video). Object mass is estimated by averaging, while the COM is estimated by least square method on the EOM (27).
We can apply this method to estimate inertia properties of every tool used in previous experiments. For this experiment we attached a 3.48kg weight plate to the robot's flange using a coupling mechanism weighted 0.42kg (see Fig. 1c). Our method estimated the total mass is 3.93kg and the COM at [0.00, 0.00, 0.04]m in end-effector's frame.
- Estimation of external interaction's wrench: In general, given the object mass and COM obtained in step 1, we can extract any external wrench applied to the object. For a single grasping configuration and slow rotation, external wrench can be determined by:
- Object manipulation in : We implement the admittance in (26) in two modes, i.e. staying and floating, as described in V.B. Although the robot model is not updated with the object's inertia, we can achieve manipulation while the object is being held at the equilibrium according to (22), which shows the benefit of the impedance-admittance combination. Moreover, our NMPC framework enables real-time predictive planning under whole-body interactions, which is an improvement to classical methods.
D. Experiment 4: Compliant locomotion for a quadruped in an unknown, unsteady environment with limited sensing
In this experiment, a quadruped Go2 must walk through unknown, unsteady obstacles (Fig. 1d) without terrain model or visual perception. Importantly, to stress test the system and validate the task-space impedance, we remove contact detection and translational position/velocity odometry feedback from the controller (floating-base position is set to and velocity to the commanded velocity ). We only use joint and gyroscope feedback. The task is therefore quite difficult due to limited feedback. There are instances when the obstacles are moving unexpectedly (see Fig. 1d and the video), the robot is still able to compliantly adapt and robustly compute optimal trajectories to recover balance.
Our I-NMPC updates at 33Hz, solving a constrained OCP with joint state and torque bound constraints for a horizon of 10 to 12 nodes × 0.03s. The mim_solvers [3] spends less than 10ms to converge. Since Go2 utilizes a low-level PD controller, we send a bundle of the optimal torque, joint position and velocity with and .
E. Experiment 5: Quadruped Go2 carries human on a chair
The advantage of our method is that the walking gait can be customized for different purposes by simply changing hyper-parameters, e.g. step height, step duration; and the robot's morphology can adapt to unknown terrains thanks to the impedance at its feet and COM.
Based on the same controller in experiment 4, we simply increase the weight matrix of the COM task cost and set the desired COM further ahead. With those few parameter changes, the robot is able to pull a chair with human sitting on it (Fig. 1e). This experiment not only validates the task-space impedance resulting from our cost function design, but also shows the ability to customize robot's behaviors in our framework without any re-formulation or re-training. In comparison, a recent work [31] proposes a teacher-student RL framework that achieves a similar compliant behavior by training a teacher policy with an explicit compliant law and privileged external force information which was then removed from the student policy training. We achieve a similar result using passive impedance without force feedback.
VII. CONCLUSIONS
In this paper, we proposed a generic NMPC framework that solves motion-force requirements in the task space and generates optimal joint trajectories to control the robot in real-time with an intrinsic task-space impedance. Based on our theoretical analysis of the task-space impedance of a generic OCP formulation with end-effector cost features, we are able to remove unnecessary rigid contact constraints and instead regulate contact forces by adapting the weight matrices and goal poses of the end-effector costs. This results in a versatile way to reason about contacts with differential stability and passivity guarantees. We validated our method through compliant locomotion tasks with a blind quadruped carrying unknown weights in unknown environment and hybrid motion-force control tasks with a redundant manipulator under constraints and unforeseen human-robot interactions.
Within the scope of this paper, the impedance control law is analyzed for the unconstrained OCP. It would be interesting to study the effect of active constraints that may occur such as joint limits, collision avoidance, friction cone, etc. These topics involve additional analysis into designing or learning terminal cost functions and constraints capable of approximating long-horizon value function and reachability, which we leave for future investigations. In addition, our architecture can generate in real-time smooth robot trajectories for any task-and-motion-planning (TAMP) planners or learning policies that output task-space targets, while adding constraint satisfaction guarantee, compliance and force-feedback capabilities. In practice, the main limitation of our method is that the computation time grows as the DOFs and horizon increase, which introduces delay and limits control frequency. For repetitive tasks such as walking, our framework could be used as an expert demonstrator to train behavior cloning policies in simulation, thus replacing online computation by offline memorization.
REFERENCES
[1] J. Carpentier, G. Saurel, G. Buondonno, J. Mirabel, F. Lamiraux, O. Stasse, and N. Mansard, “The pinocchio c++ library: A fast and flexible implementation of rigid body dynamics algorithms and their analytical derivatives,” in 2019 IEEE/SICE International Symposium on System Integration (SII). IEEE, 2019, pp. 614–619.
[2] C. Mastalli, R. Budhiraja, W. Merkt, G. Saurel, B. Hammoud, M. Naveau, J. Carpentier, L. Righetti, S. Vijayakumar, and N. Mansard, “Crocoddyl: An efficient and versatile framework for multi-contact optimal control,” in 2020 IEEE International Conference on Robotics and Automation (ICRA). IEEE, 2020, pp. 2536–2542.
[3] A. Jordana, S. Kleff, A. Meduri, J. Carpentier, N. Mansard, and L. Righetti, “Structure-exploiting sequential quadratic programming for model-predictive control,” IEEE Transactions on Robotics, 2025.
[4] A. L. Bishop, J. Alvarez-Padilla, S. Schoedel, I. S. Sow, J. Chandrachud, S. Sharma, W. Kraus, B. Park, R. J. Griffin, J. M. Dolan et al., "The surprising effectiveness of linear models for whole-body model-predictive control," in 2025 IEEE-RAS 24th International Conference on Humanoid Robots (Humanoids). IEEE, 2025, pp. 1–7.
[5] I. Taouil, M. Ciebelski, S. Omar, H. Zhao, A. Dai, A. M. Johnson, and M. Khadiv, “Motiondisco: Motion discovery for extreme humanoid loco-manipulation,” arXiv preprint arXiv:2606.06139, 2026.
[6] C. Khazoom, S. Hong, M. Chignoli, E. Stanger-Jones, and S. Kim, "Tailoring solution accuracy for fast whole-body model predictive control of legged robots," IEEE Robotics and Automation Letters, 2024.
[7] S. Kleff, E. Dantec, G. Saurel, N. Mansard, and L. Righetti, “Introducing force feedback in model predictive control,” in 2022 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS). IEEE, 2022, pp. 13379–13385.
[8] J. Z. Zhang, T. A. Howell, Z. Yi, C. Pan, G. Shi, G. Qu, T. Erez, Y. Tassa, and Z. Manchester, “Whole-body model-predictive control of legged robots with mujoco,” arXiv preprint arXiv:2503.04613, 2025.
[9] S. Cao and J. Xiao, “On efficient and flexible autonomous robotic insertion assembly in the presence of uncertainty,” IEEE Robotics and Automation Letters, vol. 9, no. 7, pp. 6360–6367, 2024.
[10] S. Kleff, A. Jordana, N. Mansard, and L. Righetti, “Force feedback in model predictive control: A soft contact approach,” 2024.
[11] O. Khatib, “A unified approach for motion and force control of robot manipulators: the operational space formulation,” IEEE journal of robotics and automation, vol. 3, no. 1, pp. 43–53, 1987.
[12] L. Righetti, J. Buchli, M. Mistry, and S. Schaal, “Inverse dynamics control of floating-base robots with external constraints: A unified view,” in 2011 IEEE international conference on robotics and automation. IEEE, 2011, pp. 1085–1090.
[13] J. Peters, M. Mistry, F. Udwadia, R. Cory, J. Nakanishi, and S. Schaal, "A unifying methodology for the control of robotic systems," in 2005 IEEE/RSJ International Conference on Intelligent Robots and Systems. IEEE, 2005, pp. 1824–1831.
[14] X. Xu, J. Park, H. Zhang, E. Cousineau, A. Bhat, J. Barreiros, D. Wang, and S. Song, “Hommi: Learning whole-body mobile manipulation from human demonstrations,” arXiv preprint arXiv:2603.03243, 2026.
[15] S. Erhart, D. Sieber, and S. Hirche, “An impedance-based control architecture for multi-robot cooperative dual-arm mobile manipulation,” in 2013 IEEE/RSJ International Conference on Intelligent Robots and Systems. IEEE, 2013, pp. 315–322.
[16] S. Tarbouriech, B. Navarro, P. Fraisse, A. Crosnier, A. Cherubini, and D. Sallé, “Admittance control for collaborative dual-arm manipulation,” in 2019 19th International Conference on Advanced Robotics (ICAR). IEEE, 2019, pp. 198–204.
[17] S. Caron, A. Kheddar, and O. Tempier, “Stair climbing stabilization of the hrp-4 humanoid robot using whole-body admittance control,” in 2019 International conference on robotics and automation (ICRA). IEEE, 2019, pp. 277–283.
[18] M. Focchi, A. Del Prete, I. Havoutis, R. Featherstone, D. G. Caldwell, and C. Semini, “High-slope terrain locomotion for torque-controlled quadruped robots,” Autonomous Robots, vol. 41, no. 1, pp. 259–272, 2017.
[19] A. Herzog, N. Rotella, S. Mason, F. Grimminger, S. Schaal, and L. Righetti, “Momentum control with hierarchical inverse dynamics on a torque-controlled humanoid,” Autonomous Robots, vol. 40, no. 3, pp. 473–491, 2016.
[20] C. Ott, R. Mukherjee, and Y. Nakamura, “A hybrid system framework for unified impedance and admittance control,” Journal of Intelligent & Robotic Systems, vol. 78, no. 3, pp. 359–375, 2015.
[21] M. L. Elwin, B. Strong, R. A. Freeman, and K. M. Lynch, “Human-multirobot collaborative mobile manipulation: The omnid mocobots,” IEEE Robotics and Automation Letters, vol. 8, no. 1, pp. 376–383, 2022.
[22] N. Hogan, “Impedance control: An approach to manipulation: Part ii—implementation,” Journal of dynamic systems, measurement, and control, vol. 107, no. 1, pp. 8–16, 1985.
[23] A. Jordana, S. Kleff, J. Carpentier, N. Mansard, and L. Righetti, “Force feedback model-predictive control via online estimation,” in 2024 IEEE International Conference on Robotics and Automation (ICRA). IEEE, 2024, pp. 11 503–11 509.
[24] J. Pankert and M. Hutter, “Perceptive model predictive control for continuous mobile manipulation,” IEEE Robotics and Automation Letters, vol. 5, no. 4, pp. 6177–6184, 2020.
[25] A. Alharbat, C. Gabellieri, A. Y. Mersha, and A. Franchi, “Predictive admittance control for aerial physical interaction,” IEEE Robotics and Automation Letters, 2025.
[26] J. Sola, J. Deray, and D. Atchuthan, “A micro lie theory for state estimation in robotics,” arXiv preprint arXiv:1812.01537, 2018.
[27] W. Wang and J.-J. E. Slotine, “On partial contraction analysis for coupled nonlinear oscillators,” Biological cybernetics, vol. 92, no. 1, pp. 38–53, 2005.
[28] M. J. Kim, W. Lee, C. Ott, and W. K. Chung, “A passivity-based admittance control design using feedback interconnections,” in 2016 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS). IEEE, 2016, pp. 801–807.
[29] S. Kleff, A. Meduri, R. Budhiraja, N. Mansard, and L. Righetti, “High-frequency nonlinear model predictive control of a manipulator,” in 2021 IEEE International Conference on Robotics and Automation (ICRA). IEEE, 2021, pp. 7330–7336.
[30] C. G. Atkeson, C. H. An, and J. M. Hollerbach, “Rigid body load identification for manipulators,” in 1985 24th IEEE Conference on Decision and Control. IEEE, 1985, pp. 996–1002.
[31] A. Zhang, Z. Zhuang, C. Wang, S. S. Ge, F. Shi, and C. Xiang, “Sacloco: Safe and adjustable compliant quadrupedal locomotion,” arXiv preprint arXiv:2509.23223, 2025.