<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>DARC: Disturbance-Aware Redundant Control for Human–Robot Co-Transportation</title></titleStmt>
			<publicationStmt>
				<publisher>MDPI</publisher>
				<date>06/01/2025</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10640034</idno>
					<idno type="doi">10.3390/electronics14122480</idno>
					<title level='j'>Electronics</title>
<idno>2079-9292</idno>
<biblScope unit="volume">14</biblScope>
<biblScope unit="issue">12</biblScope>					

					<author>Al Jaber Mahmud</author><author>Amir Hossain Raj</author><author>Duc M Nguyen</author><author>Xuesu Xiao</author><author>Xuan Wang</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[<p>This paper introduces Disturbance-Aware Redundant Control (DARC), a control framework addressing the challenge of human–robot co-transportation under disturbances. Our method integrates a disturbance-aware Model Predictive Control (MPC) framework with a proactive pose optimization mechanism. The robotic system, comprising a mobile base and a manipulator arm, compensates for uncertain human behaviors and internal actuation noise through a two-step iterative process. At each planning horizon, a candidate set of feasible joint configurations is generated using a Conditional Variational Autoencoder (CVAE). From this set, one configuration is selected by minimizing an estimated control cost computed via a disturbance-aware Discrete Algebraic Riccati Equation (DARE), which also provides the optimal control inputs for both the mobile base and the manipulator arm. We derive the disturbance-aware DARE and validate DARC with simulated experiments with a Fetch robot. Evaluations across various trajectories and disturbance levels demonstrate that our proposed DARC framework outperforms baseline algorithms that lack disturbance modeling, pose optimization, or both.</p>]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">Introduction</head><p>Human-robot collaboration is an emerging topic in research that helps to reduce humans' physical and cognitive workloads in various applications. For example, in industrial applications, collaborative robots are often used to perform repetitive tasks that enhance productivity and reduce human effort <ref type="bibr">[1,</ref><ref type="bibr">2]</ref>. In such scenarios, robots generally operate behind safety fences, with physical separation from humans, to ensure safety <ref type="bibr">[3]</ref>. Moreover, when humans and robots share the same workspace, the robots must be aware of human movements to ensure safety and achieve task goals <ref type="bibr">[4]</ref>. This is important in both industrial and non-industrial settings. The application in non-industrial settings includes supporting elderly people with daily activities <ref type="bibr">[5]</ref> and providing navigation assistance to individuals <ref type="bibr">[6]</ref>. These applications require high-level planning with low-level control of the robot to achieve increased performance while maintaining safety. Increased performance refers to comparison with the performance level of either humans or robots operating independently <ref type="bibr">[7]</ref>.</p><p>Among these diverse applications, the co-transportation of objects by a human with a mobile manipulator (i.e., a robotic arm mounted on a mobile base) is a common scenario <ref type="bibr">[8]</ref>, as illustrated in Figure <ref type="figure">1</ref>. In human-robot co-transportation tasks, there are challenges in ensuring safe and efficient performance, especially when subjected to disturbances <ref type="bibr">[9,</ref><ref type="bibr">10]</ref>. These disturbances include unpredictable human behavior, hardware imperfections such as sensor noise or actuator inaccuracies, etc. Even if the task has a predefined nominal path, humans often deviate from it due to fatigue, personal preferences, or external influences <ref type="bibr">[11,</ref><ref type="bibr">12]</ref>. These deviations need to be compensated for by the robot to achieve the task goals. For a mobile manipulator, such adaptation toward disturbances is complex, as the robotic arm must dynamically reconfigure its joint angles to adapt to the human. The high-level planning of a mobile manipulator highly relies on the Model Predictive Control (MPC) framework, which has the predictive capabilities to enhance collaborative task performance <ref type="bibr">[13]</ref>. However, this framework may lead to singularities or semisingularities where the arm loses degrees of freedom or becomes stuck <ref type="bibr">[14]</ref>. To address (semi-)singularities, proactive pose optimization can be implemented by exploiting the manipulator's kinematic redundancy <ref type="bibr">[15,</ref><ref type="bibr">16]</ref>. Yet, limited existing works consider the integration of MPC and pose optimization, and they are not directly applicable to the co-transportation task considered in this paper <ref type="bibr">[17,</ref><ref type="bibr">18]</ref>. Furthermore, the complexity rises in a mobile manipulator compared to a fixed-base robotic arm. Although using a mobile manipulator extends the system's workspace and maneuverability, such flexibility challenges the simultaneous coordination of the base's mobility with the arm's joint angle velocities <ref type="bibr">[19]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Human Uncertainty Pose Optimization</head><p>To address these challenges, this work (a preprint of this paper is available in <ref type="bibr">[20]</ref>) proposes a DARC framework by combining a disturbance-aware Model Predictive Control strategy as a high-level planner with a pose optimization mechanism at the low-level control. The MPC component plays the role of coordinating the movements of the mobile base and robotic arm by estimating the effects of disturbances on tracking accuracy and energy consumption. At the low-level control, we use a pose optimization mechanism that dynamically adjusts the robot's joint angles to compensate for disturbances. This also helps avoid singularities and enhances tracking accuracy under disturbances. This two-step interactive process, integrating the predictive capability of MPC and the proactive control of the robot with pose optimization, helps to reduce control effort and improve energy efficiency and tracking performance.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Statement of Contribution:</head><p>The main contributions of this paper are as follows:</p><p>&#8226;</p><p>We formulate a high-level Model Predictive Control (MPC) planner problem that incorporates disturbances along with a low-level pose optimization mechanism and the robot's whole-body kinematics. We propose a two-step iterative optimization approach to holistically solve the high-level and low-level problems.</p><p>&#8226; For the high-level MPC problem, we estimate control costs under disturbances and generate optimal control inputs. The initial state of the MPC controller depends on the low-level pose optimization.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>&#8226;</head><p>For the low-level pose optimization, we optimize the robot's pose selected from a joint configuration set generated using Conditional Variational Autoencoder (CVAE). The selection criteria are informed by the expected cost of the high-level MPC.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>&#8226;</head><p>We provide theoretical derivations and simulated experiments with a Fetch mobile manipulator to validate the DARC framework. Quantitative comparisons highlight the advantages of our method over different baselines.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">Literature Review</head><p>Human-robot collaboration can be broadly classified into four levels based on their interaction modes: (i) physical separation (No Coexistence), (ii) shared space with no shared goals (Coexistence), (iii) shared goals in shared space (Cooperation), and (iv) simultaneous work on a shared object in shared space (Collaboration) <ref type="bibr">[21,</ref><ref type="bibr">22]</ref>. Co-transportation work falls into level (iv) as the human and the robot carry the same object in the same environment.</p><p>To enhance the performance of such collaborative tasks while ensuring safety by adapting to humans, integrating model-based control and reinforcement learning has been explored. Recent works use model-based reinforcement learning to assist humans in target activities <ref type="bibr">[23]</ref>, perform wood sawing and surface polishing <ref type="bibr">[24]</ref>, and execute Gaussian Process MPC in collaborative assembly tasks <ref type="bibr">[13]</ref>. Furthermore, studies consider robust variable admittance control with unknown payload <ref type="bibr">[25]</ref>, sampling-based MPC for task and motion planning <ref type="bibr">[26]</ref>, and combined task/joint-space constraint handling <ref type="bibr">[27]</ref>. Co-manipulation and transportation tasks are also addressed by considering whole-body kinematics of mobile manipulators <ref type="bibr">[28]</ref><ref type="bibr">[29]</ref><ref type="bibr">[30]</ref> or employing human-humanoid collaboration strategies <ref type="bibr">[31]</ref><ref type="bibr">[32]</ref><ref type="bibr">[33]</ref> to reduce human workload. While reinforcement learning methods are effective for handling unmodeled human uncertainties, they often lack transparency and rigorous guarantees of performance. For such issues, the control-theoretic framework is provided by robust MPC for addressing uncertainties, ensuring strict safety <ref type="bibr">[34]</ref>, adhering to physical constraints <ref type="bibr">[35]</ref>, and accommodating parameter variations <ref type="bibr">[36]</ref>. However, these approaches do not integrate the disturbance-aware MPC formulation with pose optimization to enhance the overall performance further. This is one of the main differences from the problem addressed in our proposed framework. Additionally, they usually do not embed the disturbance component in the problem formulation itself; rather, they include it in the robot dynamics.</p><p>The idea of pose optimization is closely related to redundancy resolution, where multiple joint configurations can achieve a desired end-effector pose <ref type="bibr">[16,</ref><ref type="bibr">37]</ref>. Redundancy resolution is one of the most important parts in controlling high-degree-of-freedom robotic systems, particularly for end-effector manipulation. Such kinematic redundancy helps to avoid singularities <ref type="bibr">[38]</ref>, improves dexterity in confined workspaces <ref type="bibr">[39]</ref>, and enhances precision under dynamic conditions <ref type="bibr">[40]</ref>. Recent research has explored diverse methodologies to address these objectives-for instance, employing Monte Carlo tree search to optimize redundant configurations <ref type="bibr">[41]</ref>, introducing a sampling-based approach to navigate complex constraint spaces <ref type="bibr">[42]</ref>, and leveraging stiffness modeling to refine pose selection for task-specific compliance <ref type="bibr">[43]</ref>. In soft robotics, <ref type="bibr">[44]</ref> demonstrated redundancy resolution for continuum manipulators by adapting poses to flexible forms. Additionally, many researchers have used learning methods for redundant manipulators. These include utilizing the proximal policy optimization algorithm <ref type="bibr">[45]</ref>, deep deterministic policy gradient algorithm <ref type="bibr">[46]</ref>, and deep reinforcement learning <ref type="bibr">[47]</ref>. In general, these works highlight the adaptability of pose optimization in overcoming environmental and operational constraints.</p><p>Although pose optimization has been investigated in many scenarios, these seldom account for disturbances <ref type="bibr">[48]</ref>. In contrast to prior approaches, our formulation redefines pose optimization by coupling it with a disturbance-aware MPC framework. This strategy helps to select poses that not only satisfy kinematic goals but also minimize the impact of disturbances.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">Preliminaries and Problem Formulation</head><p>In this section, we first define how disturbances impact the co-transportation process in terms of a nominal trajectory for the human and robot to complete the task. Next, we present the kinematic model of a mobile manipulator's end-effector, where we integrate the kinematics of its mobile base and arm. Finally, we formulate an MPC problem that incorporates pose optimization to address disturbances effectively.</p><p>Notations: Let I r be the r &#215; r identity matrix and diag{a 1 , &#8226; &#8226; &#8226; , a r } be a diagonal matrix whose entries are a 1 , . . . , a r . For any vector x, let &#8741;x&#8741; 2 be the Euclidean norm. If M is a square matrix, Tr(M) is the trace. Additionally, M { 0 (M &#176;0) denotes that M is positive (semi-)definite We define &#8741;x&#8741; 2 M = x &#166; Mx.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1.">Trajectory with External Human Disturbances</head><p>Consider the co-transportation task illustrated in Figure <ref type="figure">1</ref>, where a human and a mobile manipulator jointly move an object. Let</p><p>be the manipulator's end-effector pose, where (r x , r y , r z ) denotes the Cartesian position and (r &#179; , r &#180;, r &#947; ) the orientation in Euler angles, respectively. We define this pose over a finite horizon k = 0, 1, . . . , H, where H is the planning horizon. To account for external human disturbances, we incorporate a disturbance term &#982;(&#196;) in the trajectory:</p><p>where r(k) &#8712; R 6 is a nominal trajectory. If we assume that the task has a desired trajectory, this r(k) can be treated as known to the human and the robot. Otherwise, we may consider trajectory prediction of r(k) by the robot based on human behaviors. In existing works, such trajectory prediction can be achieved using geometry-based curve fitting <ref type="bibr">[49]</ref>, utility function frameworks <ref type="bibr">[50]</ref>, or learning methods like recurrent neural networks <ref type="bibr">[51,</ref><ref type="bibr">52]</ref>, LSTM <ref type="bibr">[53]</ref><ref type="bibr">[54]</ref><ref type="bibr">[55]</ref>. We use LSTM (the detailed implementation will be described in the Appendix A) because it can capture temporal dependencies in sequential data. This makes it beneficial in predicting the continuous, non-linear evolution of human movement. The term &#982;(&#196;) represents the disturbance due to human movement, modeled as a Gaussian distribution-i.e., &#982;(&#196;) &#8764; N (&#179; &#982; , &#931; &#982; ) in the x, y, and z directions where &#196; denotes the time step. Here, &#179; &#982; &#8712; R 3 is the non-zero-mean and &#931; &#982; &#8712; R 3&#215;3 is the covariance matrix that captures individual variations or preferences of the human collaborator. D &#8712; R 6&#215;3 is a matrix that maps &#982;(&#196;) into the 6D pose space. To focus on the translational disturbances caused by the human, we assume the orientation (r &#179; , r &#180;, r &#947; ) remains unaffected by these disturbances. This is because the orientation is co-determined by the robot and the human. Thus, the disturbance towards orientation is not necessarily impacted only by the human, and the robot can compensate for this. Thus, we define D = I 3 0 3&#215;3 &#166; .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.">End-Effector Kinematics</head><p>We illustrate the modeling details using a Fetch Mobile Manipulator <ref type="bibr">[56]</ref>, as we used this robot for experiments. The Fetch robot has a differential-drive mobile base and a 7-DOF robotic arm. In the following, we consider simplified kinematics, focusing on velocity inputs.</p><p>Note that our proposed framework is applicable to either a dynamic or a kinematic model of the end-effector of any kind of mobile manipulator. A dynamic model with torque control requires the use of accurate inertial parameters, the modelling of non-linear Coriolis and gravity terms, and the capturing of friction and actuator dynamics. When using dynamic models instead of kinematic models, the computational and implementation complexity might increase, but the process remains unchanged. Additionally, the approach can be easily generalized to other types of mobile manipulators, such as robots with an omnidirectional base and a robotic arm mounted on top. For this, we only need to modify the corresponding kinematics equations accordingly.</p><p>Mobile Base. The kinematics model of the mobile base of the Fetch Mobile Manipulator can be approximated using a standard differential-drive model in the inertial frame (Figure <ref type="figure">2a</ref>). Let</p><p>be the pose of the base. This has Cartesian coordinates (x base , y base ) in the inertial frame and heading angle &#981;. The state update of s base from step k to k + 1 is given by</p><p>where</p><p>where the base's linear velocity is v and the angular velocity is &#966; at time k. We denote the time interval as &#8710;t. Here, (v, &#966;) are in the robot's body frame &#926;, which translates and rotates with the base. Robotic Manipulator. Fetch robot incorporates a 7-DOF manipulator mounted on top of its base. We denote each joint angle as &#977; i , where i &#8712; {2, . . . , 8} represent seven joint angles. In addition, we include the base's heading angle &#981; as an extra DOF that yields an 8-DOF system as illustrated in Figure <ref type="figure">2b</ref>. This helps to merge the kinematics of the mobile base and the manipulator by enabling the transformation of the end-effector's pose in the robot body frame from the inertial frame without any rotation and vice versa. Additionally, it allows the incorporation of the heading angle &#981; into the pose optimization along with the arm's joint angles. Let</p><p>combine the base's heading angle and the arm's seven joint angles. We denote the corresponding angular velocities by</p><p>Let s arm be the end-effector pose in the body frame &#926;. Specifically,</p><p>where p arm &#8712; R 3 denotes the Cartesian position of the end-effector in &#926; frame, and &#968; arm &#8712; R 3 represents the orientation in Euler angles in the same frame. Note that our use of Euler angles is primarily for simplicity, although we are aware that Euler angles may potentially lead to singularities <ref type="bibr">[57]</ref>. In our application, the target end-effector orientation is maintained horizontally relative to the ground, which helps mitigate the issue. Orientation may also be represented using quaternions or SO(3) with complex dynamic matrices. However, we claim that the choice of the representation method does not impact our results if we modify the equations related to Euler angles in Section 4.</p><p>Although the original model of forward kinematics is non-linear, it can be locally linearized around &#952;(k) for small sampling intervals. We perform linearization to map the end-effector pose from joint angle velocities, which is a standard process in MPC to enhance computational tractability. Additionally, if the planning horizon of MPC is short, then the impact of this linearization is not significant. Letting f (&#8226;) be the forward-kinematics map, we have</p><p>where J &#952;(k) &#8712; R 6&#215;8 is the Jacobian matrix, which is computed as</p><p>.</p><p>The specific form of J is derived from the DH parameters of the Fetch arm <ref type="bibr">[56]</ref>.</p><p>End-Effector Kinematics. We integrate the kinematics of the base (2) and manipulator (3) to capture the end-effector kinematics of the manipulator in the inertial frame. We define</p><p>Because s base is measured in the inertial frame, s arm is in the frame &#926;, and &#981; is already included in &#952;, the heading angle change is effectively captured by the Jacobian matrix itself. Combining the control inputs into u = [ v, &#969; &#166; ] &#166; &#8712; R 9 and combining (2) and (3) into a single linearized state transition for s(k) yields</p><p>where</p><p>is the input matrix. Here, the first column represents the contribution of the base's linear velocity, and the other columns reflect the effect of the angular velocities &#969;(k) through the Jacobian J &#952;(k) .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3.">MPC-Based Tracking with Pose Optimization</head><p>To achieve effective co-transportation, the robot mainly aims to precisely control its end-effector pose by adjusting its joint angles. This ensures seamless coordination with the human during the collaborative task. However, due to the inherent redundancy of highdegree-of-freedom manipulators, a given end-effector pose corresponds to infinitely many joint angle combinations. These different configurations can lead to different future costs. For example, some joint combinations may perform better in tracking trajectories along the y-axis, while some others may be better for the z-axis. Motivated by this observation, we introduce an approach that allows the robot to slightly adjust its joint configuration between each control input without changing the end-effector pose. Such adjustments enable the robot to proactively select a configuration from multiple solutions that potentially minimize future tracking costs. This leads to jointly optimizing both the control inputs and the robot's joint configuration, as we describe next.</p><p>Our goal is to track the trajectory r(k) while considering the robot's whole-body kinematics. To achieve this, we formulate a disturbance-aware Model Predictive Control (MPC) problem that incorporates pose optimization. This allows the robot to select a new joint configuration &#952;, which may differ from the initial configuration &#952; 0 . We formulate the following finite-horizon optimization problem: min u(0:H-1), &#952;&#8712;&#920;</p><p>Here, u(0 : H -1) = { u(0), u(1), . . . , u(H -1)} denote the control input sequence over finite horizon H, and &#920; is the candidate set of all feasible joint configurations. The tracking error cost term penalizes the deviations of the end-effector pose s(k) from the trajectory r(k) over the planning horizon. The matrices Q &#176;0 and R { 0 weigh the tracking error and control efforts costs, respectively. &#187; &gt; 0 adjusts how strongly the optimizer prefers to remain near the initial configuration &#952; 0 . The joint limit penalty discourages the robot from approaching its joint limits. This penalty term exponentially increases the cost as the pose &#952; approaches the joint limit values &#952; lim . This helps the robot operate within safety bounds and avoids any potential configuration that may lead to a stuck pose. The coefficient w &#952; &gt; 0 is the weighting factor for the joint limit penalty. The expectation E &#982; <ref type="bibr">[&#8226;]</ref> is computed over the disturbance &#982;(&#196;). Note that, for computational tractability, B( &#952;) is treated as fixed over the planning horizon based on the new configuration &#952;. This technique is common in MPC implementations with short horizons <ref type="bibr">[58,</ref><ref type="bibr">59]</ref> since re-linearizing at each step would increase the computational burden. By allowing the robot to proactively adjust its joint configuration from &#952; 0 to &#952;, we claim that our framework selects more favorable poses to better compensate for disturbances.</p><p>We also note that the state update (cf. Equation ( <ref type="formula">4</ref>)) considers an ideal scenario without noise. However, in real-world applications, a robot's internal noise, such as sensor noise or actuator errors, often exists and introduces uncertainty. From a modeling perspective, both types of noise can be incorporated into the disturbance term &#982;(&#196;) without introducing additional variables. The impact of these noises will then be propagated to the predicted control cost to inform pose optimization. In terms of implementation, actuator errors can be compensated through closed-loop control. Sensor noise, however, is more difficult to address, as it corrupts the measurements and prevents the system from accurately observing its true state. Developing filtering techniques to mitigate the impact of sensor noise will be the focus of our future work.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.">Main Result</head><p>In this section, we first present the theoretical foundation of how our framework estimates the impact of disturbances with derivations of the optimal control law. Then, we detail the methodology of generating a candidate set of feasible joint configurations using a Conditional Variational Autoencoder (CVAE).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1.">Optimal Control Law:</head><p>In the problem formulation (5), the control input sequence u(0 : H -1) depends on the input matrix B( &#952;), which itself is a function of the robot joint configuration &#952;. A direct solution that jointly optimizes both u(0 : H -1) and &#952; is often not tractable because of highly non-linear and non-analytic dependence on &#952;. To handle this challenge, we adopt a two-step iterative approach:</p><p>1.</p><p>We first generate a set of candidate joint angle configurations around &#952; 0 . Then, for each candidate pose &#952; in this set, we compute the sequence of optimal control inputs u * (0 : H -1) and associated cost-to-go.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>2.</head><p>We compare the estimated cost-to-go J * ( &#952;) for each configuration in the candidate set and choose the one that yields the minimum cost-to-go.</p><p>To achieve our goal, we first need to derive an optimal control law, and for that, we need error dynamics. To obtain the error dynamics, we subtract r(k + 1) from Equation (4):</p><p>where we use B = B( &#952;), which is the input matrix evaluated at the chosen pose &#952;. e(k) = s(k)r(k) is the tracking error. We assume that optimal cost-to-go has the following form:</p><p>where P(k) &#8712; R 6&#215;6 , q(k) &#8712; R 6 , and c(k) &#8712; R are unknown quantities to be determined.</p><p>Theorem 1. Suppose the optimal control input u * for (5) yields a cost-to-go function in the quadratic form of <ref type="bibr">(7)</ref>. Then for a given pose &#952; and its corresponding input matrix B, the quantities P(k), q(k), and c(k) are obtained using a disturbance-aware Discrete Algebraic Riccati Equation (DARE). Letting M = R + B&#166; P(k + 1) B,</p><p>with the terminal conditions</p><p>The corresponding optimal control input has the form</p><p>Proof of Theorem 1. Combining the Equations ( <ref type="formula">6</ref>) and ( <ref type="formula">7</ref>),</p><p>where E(&#982;(k + 1)) = &#179; &#982; . Because the control input is optimized to minimize the cost at each step, the optimality condition yields the following:</p><p>By solving this, we obtain the optimal control law as</p><p>By expanding <ref type="bibr">(10)</ref> and injecting u * (k) = -M -1 M into (10), one has</p><p>))e(k)</p><p>where</p><p>= e(k) &#166; (P(k + 1) B)M -1 ( B&#166; P(k + 1))e(k)</p><p>Putting this back into <ref type="bibr">(12)</ref> gives</p><p>Comparing ( <ref type="formula">14</ref>) with <ref type="bibr">(7)</ref>, we obtain</p><p>where J * (e(H), k = H), P(H), q(H), and c(H) are obtained.</p><p>From Theorem 1, we observe that c(k) is not a part of the expression for u * (k) in (9). However, the term c(k) is essential in computing the optimal cost-to-go J * . Therefore, when we compare different pose candidates &#952; &#8712; &#920;, each candidate yields a different set of P, q, and c values. This results in a different cost J * ( &#952;) for each candidate. Among all, we select the pose with the lowest J * . Specifically, our proposed two-step iterative process framework, described in Algorithm 1, addresses the challenge that arises from the strong non-linear and non-analytic dependence on &#952;. For this reason, finding an optimized &#952; can be computationally infeasible. Hence, we use a sample-based approach for generating a set of candidate poses &#920;. In our approach, we use a deep learning method that is discussed in the following Section 4.2 to obtain each candidate pose &#952; &#8712; &#920;. A similar approach of using learning methods and a sampling-based approach have been used in <ref type="bibr">[42,</ref><ref type="bibr">60]</ref>, respectively.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Algorithm 1 Disturbance-Aware MPC Tracking with Pose Optimization</head><p>Require: Reference trajectory r(0 : H), disturbance parameters &#179; &#982; , &#931; &#982; , initial pose &#952; 0 Ensure: Sequence of optimal inputs u * (0 : H -1) and optimized pose control &#363; 1: Trajectory Formulation 2: Formulate trajectory r(k = 0 : H) through (1). 3: Create set of candidate joint configurations &#920; using CVAE (cf. Algorithm 2). Compute input matrix B( &#952;).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>8:</head><p>Solve ( <ref type="formula">5</ref>) by the disturbance-aware DARE solution (see Theorem 1).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>9:</head><p>Compute the optimal cost J * ( &#952;) via <ref type="bibr">(7)</ref>. 10: end for 11:</p><p>Step 2: Pose Optimization and Control Computation 12: Determine the optimal pose &#952; * = arg min &#952;&#8712;&#920; J * ( &#952;). 13: Compute the pose control input as &#363; = &#952; * -&#952; 0 &#196; . 14: Reuse the DARE solution for &#952; * to compute u * (0 : H -1) using Equation ( <ref type="formula">9</ref>). 15: Apply the combined control input &#363; + u * (0) to the robot.</p><p>For each candidate pose &#952; &#8712; &#920;, we compute the associated Jacobian, input matrix B( &#952;) and then evaluate the estimated optimal cost J * ( &#952;) using Theorem 1. Because each candidate in &#920; is processed independently, this computation can be parallelized to reduce runtime. We can achieve this if the number of candidates in &#920; is less than the number of computing threads of the test computer. Once the cost J * ( &#952;) is obtained for every candidate, we choose the &#952; that yields the smallest cost ( &#952; * ) and apply the corresponding optimal control sequence computed via Equation <ref type="bibr">(9)</ref>. The ideal implementation of the algorithm would be as follows: (i) move the robot pose to &#952; * and then (ii) apply the arm control inputs u * . However, such execution can be challenging in real-time settings. Because of this, we merge these two controls into a single step by adding the pose optimization command and the manipulator control command vectorially. Based on the triangle law of vector addition, this combined approach does not increase the total cost relative to the separated steps. Moreover, if the difference ( &#952; *&#952; 0 ) is very small, the potential difference in cost is negligible in practice.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2.">Generation of Candidate Set with Conditional Variational Autoencoder (CVAE):</head><p>As discussed in Section 4.1, directly finding &#952; * is challenging because of the input matrix's non-linear and non-analytic dependence on &#952;. To overcome this, we generate a set of candidate poses that yield the same end-effector pose. We want these configurations to be closer to the initial joint angle combination &#952; 0 , since larger deviation from &#952; 0 incurs a higher cost as formulated in <ref type="bibr">(5)</ref>. However, finding multiple configurations for a given end-effector pose is challenging, as traditional inverse kinematics often yields a single configuration for a certain end-effector pose. To address this, we use a CVAE model to obtain multiple joint angle combinations where each of them gives the same end-effector pose and is close to the initial configuration &#952; 0 .</p><p>Algorithm 2 Training Algorithm for Conditional Variational Autoencoder (CVAE) Require: Joint angle data {&#952; i } N i=1 , end-effector pose data {s} N i=1 , initial configurations {&#952; 0i } N i=1 , learning rate &#179;, weight coefficients &#188; KL , &#188; pose , number of epochs E, and batch size B. Ensure: Trained CVAE model parameters. 1: for epoch = 1 to E do 2:</p><p>for each mini-batch of {&#952;, s} of size B do 3:</p><p>Forward Pass:</p><p>Compute encoder input: E in &#8592; [&#952;, s].</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>5:</head><p>Compute latent variables: (&#181;, log &#195; 2 ) &#8592; Encoder(E in ).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>6:</head><p>Compute &#195; &#8592; exp 1 2 log &#195; 2 .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>7:</head><p>Sample &#1013; &#8764; N (0, I).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>8:</head><p>Obtain latent vector: &#958; &#8592; &#181; + &#195; &#187; &#1013;.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>9:</head><p>Compute decoder input:</p><p>Reconstruct joint angles: &#952; &#8592; Decoder(D in ).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>11:</head><p>Loss Computation:</p><p>Total loss function:</p><p>Backpropagation and Optimization:</p><p>14:</p><p>Backpropagate L total .</p><p>15:</p><p>Update model parameters &#961; e and &#961; d using the NAdam optimizer 16:</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>end for 17: end for</head><p>The CVAE model has an encoder, a reparameterization step, and a decoder. The encoder maps an input joint angle vector &#952; to a latent variable &#958; &#8712; R l . This is conditioned on the end-effector pose s &#8712; R 6 . We model this mapping as a multivariate Gaussian distribution:</p><p>where &#961; e denotes the encoder's trainable parameters, and &#181; &#961; e and log &#195; 2 &#961; e are the mean and log-variance of the latent distribution, respectively. To sample &#958; while enabling gradientbased optimization, we employ the reparameterization trick:</p><p>where &#187; represents element-wise multiplication. The decoder then reconstructs a joint angle vector &#952; &#8712; R 8 from &#958;, conditioned on s and &#952;:</p><p>where &#961; d represents the decoder's parameters. Each reconstructed &#952; is a candidate for inclusion in &#920;.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Loss Function:</head><p>We train the model by minimizing a composite loss function. This function comprises (i) Reconstruction loss (L recon ) that measures the discrepancy between the reconstructed joint configurations &#952; and the original combinations &#952;; (ii) Kullback-Leibler (KL) Divergence loss (L KL ) that regularizes the latent space to follow a standard normal distribution; and (iii) Pose Similarity loss (L pose ) that encourages consistency between the pose derived from the reconstructed angles and the desired end-effector pose. Putting all these terms together, the total loss is</p><p>where B is the batch size, and &#188; KL and &#188; pose are the hyperparameters controlling the relative importance of each term.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Network Architecture and Training:</head><p>We generate the training data for CVAE by randomly taking joint angle combinations and use forward kinematics to obtain the endeffector pose with the Fetch's URDF. Since all data is generated using the kinematic model and satisfies the joint limit constraints, the output of the CVAE model is therefore trained to meet these constraints. The URDF of the Fetch Mobile Manipulator can be found at <ref type="url">https://github.com/ZebraDevs/fetch_ros/blob/ros1/fetch_description/robots/fetch</ref>. urdf (accessed on 16 June 2025). In the rare case where infeasible candidates are generated, we will discard the output during selection for the candidate set. We train the encoder and decoder parameters (&#961; e , &#961; d ) by minimizing L total using the Nesterov-accelerated Adaptive Moment Estimation (NAdam) optimizer <ref type="bibr">[61]</ref>:</p><p>where &#179; is the learning rate. We generate the dataset by performing forward kinematics on an 8-DoF configuration (7-DoF manipulator and 1-DoF mobile base, considering heading angle only) to obtain pairs of joint angle vectors &#952; &#8712; R 8 and the corresponding endeffector pose s. Algorithm 2 summarizes our training procedure, and a block diagram is illustrated in Figure <ref type="figure">3</ref>. For presentation simplicity, we use (&#981;, &#977; 2 , . . . , &#977; 8 ) to represent &#952; and ( &#966;, &#952;2 , . . . , &#952;8 ) to represent &#952; in Figure <ref type="figure">3</ref>. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.">Experiments</head><p>In this section, we first show the efficiency of the CVAE in generating multiple joint configurations while maintaining the same end-effector pose. We then evaluate our proposed algorithm Pose Optimization with Human Uncertainty (PO-HU), which represents the DARC framework, through simulation experiments in the Gazebo environment using a Fetch robot <ref type="bibr">[56]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.1.">Evaluation of CVAE Method</head><p>As discussed earlier, there are three parts in CVAE: encoder network, reparameterization trick, and decoder network. In the encoder network, we set up the model as a 14-dimensional input layer (&#952; &#8712; R 8 and s &#8712; R 6 ) that maps to a hidden layer of 128 neurons. This 14-dimension consists of an 8-dimensional &#952; and a 6-dimensional end-effector pose s. The second layer maps the hidden layer to 64 neurons. This outputs the mean and log-variance of the latent distribution and maps from 64 to the l = 20 dimensional latent space. We then use the reparameterization trick part to allow gradient backpropagation through the sampling process. In the decoder network, the first layer maps the (20 + 14)-dimensional input to 64 neurons. Layer 2 maps the 64-dimensional hidden layer to 128 neurons, and this outputs the reconstructed joint angle with a dimension of 8. We set B = 64 and &#179; = 10 -4 .</p><p>Figure <ref type="figure">4a</ref> shows the training and validation loss curves. We can observe the convergence of the loss from this plot. Figure <ref type="figure">4b</ref> depicts the training and validation accuracy of the model. We evaluate the trained CVAE by feeding it a specific end-effector pose s along with its associated joint angles &#952;, represented by the row "Given" in Table <ref type="table">1</ref>. Using CVAE, we first generate 100 samples and then choose 20 samples for the candidate set. To choose these 20 samples, we consider the lowest reconstruction error, pose deviation, satisfaction of joint angle limits, and an error tolerance setting of the Mean Squared Error (MSE) being within 0.02 for the end-effector pose. If any of the generated joint configurations yields an MSE higher than 0.02 or violates the joint angle limits, that configuration is dropped from the candidate set. We observe that in sample 13 of Table <ref type="table">1</ref>, &#977; 8 is 1.696 rad, but the given &#977; 8 is 2.1 rad. However, the generated end-effector pose is very close to the given pose, with an MSE of only 0.00831. For that reason, it is still a valid candidate. Yet, these higher differences in generated joint configurations may result in higher estimated costs due to the "Pose Optimization" and "Joint Limit Penalty" terms in Equation ( <ref type="formula">5</ref>). Thus, these configurations have a higher chance of being discarded when we select a configuration based on the lowest estimated costs for pose optimization. Overall, Table <ref type="table">1</ref> illustrates that, for nearly the same end-effector pose, the CVAE can produce different feasible joint angle combinations.</p><p>Figure <ref type="figure">4c</ref> shows the MSE between each predicted end-effector pose and the desired pose. It is observed that the error is very small and within a range of 0.002 to 0.014. Figure <ref type="figure">4d</ref>,e depict the end-effector position and orientation results, respectively. These figures show that the generated angles yield very similar end-effector poses. Finally, Figure <ref type="figure">4f</ref> visualizes how the generated angles differ from the given joint angles. These results demonstrate that the proposed approach effectively produces diverse joint angle solutions. Each of them satisfies the end-effector pose condition, along with exploring alternative configurations close to the initial one. In addition, we compare the averaged execution time and MSE with variations over 100 trials for generating the samples in Table <ref type="table">2</ref>. We observe that, by increasing the number of samples, we reduce the MSE. Although this increases the computation time, it remains within an acceptable range for real-time implementation. The low latency stems from using a neural network model that has already been trained offline, and we only perform the forward pass to produce the joint configurations. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2.">Evaluation of DARC Framework</head><p>We aim to validate the effectiveness of DARC under various levels of human disturbances and trajectories. We assumed that human uncertainties are mathematically equivalent to robot actuation disturbances, as discussed in Section 3.2. To model human uncertainties, we use &#982;(k) &#8764; N (&#179; &#982; , &#931; &#982; ), where &#179; &#982; = [0.0035, 0.0055, 0.0027] &#166; (in meters) and &#931; &#982; = &#951; &#8226; diag(0.011, 0.02, 0.013) (in meters) and &#951; &#8712; {0.3, 0.6} represents the strength of the disturbances. This reflects the tendency for disturbances along the y-axis to be more pronounced than those in the x and z directions.</p><p>To evaluate the algorithm, we employ two representative trajectories, which are trajectory A and B. Each of them is discretized with 500 waypoints and a time-step interval of &#8710;t = 0.1 s. In one set of experiments, we assume that the future human poses are unknown to the robot. To address this, we incorporate an LSTM network for pose prediction (cf. Appendix A). The algorithm predicts the next six poses based on the ten previous poses. The experiments leveraging the LSTM-based prediction are denoted by A P and B P . We consider a second set of experiments where we assume the future human pose to be fully known a priori, though still subject to disturbances. The corresponding experiments are denoted by A N and B N .</p><p>We adopt an MPC strategy as described in Section 3.3 and in Algorithm 1, where the planning is repeated at every discrete time step. Within each planning horizon, we sample twenty candidate robot poses, i.e., |&#920;| = 20. To solve the optimization problem (5), we set H = 4 for predictive experiments A P and B P , and H = 8 for the experiments A N and B N . In the predictive cases, we forecast only six future steps. We chose H = 4 (&lt; 6) to keep the planning horizon shorter than the prediction window. For A N and B N , although the robot knows the full reference trajectory, setting a very long horizon would increase computational time and slow the solver. Thus, we select a moderate value H = 8, which is double the predictive horizon. We examine two distinct settings for the tracking-error weight Q-i.e., Q = 1500 &#8226; I 6 and Q = 1100 &#8226; I 6 . These configurations allow us to investigate the impact of reweighting the tracking error cost on the overall performance. A larger Q emphasizes pose tracking by rescaling the pose error to a magnitude comparable to the control inputs (unit-balancing). Moreover, it ensures the MPC actively suppresses the pose errors that might twist the object. We set R = I 9 to penalize all nine actuators evenly, which avoids over-regularizing of any specific control input. We set &#187; = w &#952; = 1, which in our case, is sufficient to penalize changes in joint configurations.</p><p>Although the algorithm is designed to minimize an expected cost, we quantify the true cumulative cost over the full trajectory as follows:</p><p>where the first term penalizes the end-effector tracking error, the second term penalizes the control effort, and the third term is related to pose optimization. T = 500 denotes the total number of steps.</p><p>To evaluate the effectiveness of our proposed PO-HU algorithm with |&#920;| = 20, we compare it against five baseline methods: (i) PO-HU (|&#920;| = 1): single candidate pose optimization, which corresponds to using a traditional inverse kinematics approach that yields only one joint configuration; (ii) pPO-HU: periodic pose optimization every five time steps, which reduces computation load while still considering human uncertainty; (iii) NPO-HU: no pose optimization but considers human uncertainty while computing the control inputs; (iv) PO-NHU: perform pose optimization without considering the impact of human uncertainties; and (v) NPO-NHU: neither pose optimization nor human uncertainty is considered in the computation of the control inputs.</p><p>Table <ref type="table">3</ref> shows the mean with standard deviation of the total cost C total over 100 trials for each combination of trajectory type (A P , B P , A N , B N ), disturbance strength &#951;, and weighting matrix Q. Here, we observe that whenever pose optimization is performed (i.e., PO-HU, PO-NHU, pPO-HU), it achieves a lower mean cost and often reduced standard deviation compared to methods lacking pose optimization (NPO-HU and NPO-NHU). Notably, NPO-NHU yields the highest mean cost with the largest variance as it neither performs pose optimization nor considers human uncertainties. This supports the importance of selecting a better pose for improved performance.</p><p>Within pose optimization methods, PO-HU outperforms PO-NHU. This reflects how explicitly accounting for human uncertainty yields advantages in all scenarios. While comparing PO-HU (|&#920;| = 1) and PO-HU (|&#920;| = 20), we observe that even a single-candidate version of pose optimization can achieve better results than not performing pose optimization at all, i.e., NPO-HU. However, when more candidate poses are considered (|&#920;| = 20), the algorithm better explores alternative joint configurations and achieves the lowest average total cost in all cases. Moreover, the pPO-HU shows that pose optimization at every five steps is still better than never performing pose optimization. Still, there exists a slight performance drop compared to optimizing at every time step. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B P</head><p>In addition, NPO-HU shows better performance than NPO-NHU. This highlights that even without performing pose optimization, and only considering human uncertainty, it can still increase the overall performance. Here, we use specific markers to highlight significant differences with respect to PO-HU. We use " &#8224;" to mark large differences for NPO-HU, " &#8225;" for PO-NHU, and " &#167;" for NPO-NHU. The fewer highlighted markers in PO-NHU than in NPO-HU and NPO-NHU imply that pose optimization contributes more to cost reduction than the characterization of human uncertainty.</p><p>Overall, the robot achieves better performance in the cases where future human poses are known a priori to the robot (i.e., A N and B N ) compared to the cases where the robot uses LSTM to predict the human future poses (i.e., A P and B P ). This stems from having more accurate knowledge of human movements than predicting human poses.</p><p>Figure <ref type="figure">5</ref> visualizes the tracking performance along the x-, y-, and z-axes for trajectories A N , B N , A P , and B P , with the weighting matrix Q = 1500 &#8226; I 6 and &#951; = 0.3 for 10 representative trials. We observe that PO-HU tracks the human trajectory with disturbances more closely, whereas methods lacking pose optimization comparatively deviate more. Empirically, the performance of LSTM is good, as suggested by this figure. We observe that the human trajectories with disturbances in Figure <ref type="figure">5c</ref>,d are almost similar to those in Figure <ref type="figure">5a</ref>,<ref type="figure">b</ref>. We validated our trained LSTM model with trajectories A N and B N . The validation accuracy of the model is 90.84% with an MSE loss of 0.0512. If the human follows a smooth trajectory, it is expected that the model can predict the future movements with high accuracy. Theoretically, the accuracy of the LSTM-based model is not guaranteed. If the human takes sharp turns, then the trajectory prediction accuracy will be lower. Consequently, the control cost obtained from the MPC can be inaccurate, which further impacts the pose selection. However, when the control input is implemented, the tracking accuracy will not be significantly impacted, as we have a closed-loop control. Specifically, while the MPC can plan for six future time steps, the execution applies to only one step. Figure <ref type="figure">6</ref> depicts the instantaneous (left) and accumulated cost (right) for trajectory A N with Q = 1500 &#8226; I 6 , R = I 9 , and &#951; = 0.3. We observe that, at each time step, the cost associated with PO-HU remains the lowest, while NPO-NHU consistently shows the highest cost. This reflects that incorporating pose optimization performs better than ignoring it, both in terms of instantaneous and accumulated cost.</p><p>Table <ref type="table">4</ref> represents the comparison of average tracking error (mean &#177; standard deviation) across different planning horizons for the proposed PO-HU method. This tracking error is averaged over 100 trials. We observe that a longer planning horizon may increase tracking error if we execute the entire control input sequence. For example, when H = 8, executing all eight control inputs may incur a higher tracking error. In our method, although we generate the eight control inputs for the future eight time steps, we only execute the control input for the first time step, and then re-plan again for the next planning horizon. This strategy yields a lower tracking error, as shown in the case of a planning horizon of H = 1.  Table <ref type="table">5</ref> presents the average execution time with standard deviation in evaluating each candidate for different planning horizons. The time is averaged over 500 trials. In our approach, we can parallelize steps 4-9 of Algorithm 1. As a result, the computation times for methods with and without pose optimization differ slightly. This benefits from the multiple computing threads of the AMD 5975WX on our test computer. The majority of the computation time is spent on the one-time calculation of the Jacobian matrix. The minor increase is due to the increasing number of planning horizons and thus more iterations when solving the DARE (cf. Equation ( <ref type="formula">8</ref>)). </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.3.">Hardware Demonstration</head><p>Besides Gazebo simulations, we implemented our proposed algorithm in real hardware as a demo. A video of the hardware demo is available at <ref type="url">https://www.youtube.com/</ref> watch?v=QyR2NcSXhvY (accessed on 16 June 2025). For this hardware demo, we used an AprilTag marker on a board and placed a cup on top. We allowed the robot to capture the marker's pose with its built-in camera for end-effector tracking. We positioned the cup so that the marker remained visible to the camera. The captured pose was first obtained in the camera frame, and then it was transformed to the robot's base frame using the tf package. The human leads the robot by pulling the board along the x, y, and z axes. The robot predicts six future poses using LSTM, and uses a planning horizon of H = 3. It then plans three steps with MPC but executes only the first control input before re-planning to adapt to the human. We used Q = 1100 &#8226; I 6 , R = I 9 , and &#187; = w &#952; = 1 in the demonstration. As discussed in Section 3, each control input consists of the linear and angular velocity of the base and seven joint angle velocities. The executions of these control inputs are driven by an ROS publisher and then sent to the corresponding ROS topic on Fetch. From the demonstration video, we observe that tracking is slower. This is primarily due to the physical execution time required for the robot to move its base and arm. The computation time does not significantly impact the slowness of the demonstration, as the generation of the candidate set is achieved by the pre-trained CVAE model, and the evaluation of each candidate was fully parallelized throughout the demonstration.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Loss Function and Optimization:</head><p>We define the loss function as the MSE over the 6-step prediction horizon, and it is averaged across all training samples:</p><p>where N denotes total number of training samples, r i (k + j) is the ground truth pose at time k + j for sample i, and ri (k + j) is its corresponding prediction. The model learns to align its predicted trajectories closely with the ground truth by penalizing the deviations in both position and orientation. All network parameters, weight matrices, and biases of the LSTM and output layers are optimized with the Adam optimizer using a learning rate of 10 -3 .</p></div></body>
		</text>
</TEI>
