Next Article in Journal
A Reliable Life Consumption Assessment and Individual Life Monitoring Method for Rolling Bearings
Previous Article in Journal
Predictive Speed Control of a DC Universal Motor Applied to Monitor Electric Vehicle Batteries
Previous Article in Special Issue
A Single-Loop Framework for the Reliability-Based Control Co-Design Problem in the Dynamic System
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Planning Framework for Robotic Insertion Tasks via Hydroelastic Contact Model

Robotics Research Center, School of Mechanical and Aerospace Engineering, Nanyang Technological University, Singapore 639798, Singapore
*
Author to whom correspondence should be addressed.
Machines 2023, 11(7), 741; https://doi.org/10.3390/machines11070741
Submission received: 14 June 2023 / Revised: 6 July 2023 / Accepted: 12 July 2023 / Published: 14 July 2023
(This article belongs to the Special Issue Recent Trends in Robot Motion Planning and Control)

Abstract

:
Robotic contact-rich insertion tasks present a significant challenge for motion planning due to the complex force interaction between robots and objects. Although many learning-based methods have shown success in contact tasks, most methods need sampling or exploring to gather sufficient experimental data. However, it is both time-consuming and expensive to conduct real-world experiments repeatedly. On the other hand, while the virtual world enables low cost and fast computations by simulators, there still exists a huge sim-to-real gap due to the inaccurate point contact model. Although finite element analysis might generate accurate results for contact tasks, it is computationally expensive. As such, this study proposes a motion planning framework with bilevel optimization to leverage relatively accurate force information with fast computation time. This framework consists of Dynamic Movement Primitives (DMPs) used to parameterize motion trajectories, Black-Box Optimization (BBO), a derivative-free approach, integrated to improve contact-rich insertion policy with hydroelastic contact model, and simulated variability to account for visual uncertainty in the real world. The accuracy of the simulated model is then validated by comparing our contact results with a benchmark Peg-in-Hole task. Using these integrated DMPs and BBO with hydroelastic contact model, the motion trajectory generated in planning is capable of guiding the robot towards successful insertion with iterative refinement.

1. Introduction

In recent decades, robot manipulators have been increasingly utilized for various manipulation tasks. In particular, part insertion, e.g., USB port and socket, figures in both daily life and industrial settings [1]. These scenarios highlight the potential of robots in handling contact-rich manipulation tasks. However, the interaction between robots and objects involving contact force is complex, which can lead to manipulation failure, and even damage the device [2]. Hence, it becomes challenging for robot manipulator planning and control [3]. One specific challenge arises from the limitations of visual uncertainty [4], which is widely used in robotic systems. For instance, the vision information cannot always perform well in contact-rich tasks, since some inaccurate pose estimation may cause planning in a mismatch trajectory and finally, failure in an experiment [2]. Therefore, there are difficulties for robots to find a solution for contact-rich tasks, particularly when robotic systems rely solely on vision-based guidance. In order to address this challenge, researchers are exploring the integration of vision sensors with force feedback information [5].
Researchers have proposed many learning-based methods to complete such contact-rich tasks. However, there still exist notable challenges because of the requirement for a substantial amount of sampling and exploration to gather sufficient data [1]. For instance, Levine et al. [6] deployed numerous robot manipulators in the real world, which is time-consuming and expensive. Alternatively, some other researchers prefer training in the simulator to prepare learning-based algorithms; this methodology works depending on the situation [7]. For example, Blender can only easily simulate kinematics motion of a robot. On the other hand, when dynamics are required, Bullet is widely used for its collision detection, which is a point-contact model. Open Dynamics Engine (ODE) is the default engine of Gazebo, which is famous for its fast calculating speed, but the accuracy is low. Chrono [8] mainly focuses on mobility simulation. MuJoCo [9] is similar to Bullet but has better speed and accuracy. PhysX also focuses on speed instead of accuracy, and is mainly used in video games. Isaac [10] utilizes this engine and is also famous for generating simulated images in a virtual world. Indeed, it is cost-efficient to use the simulators above in non-contact tasks or relatively simple contact tasks. However, as the complexity of contact increases, these simulators may fail or introduce distortions due to inaccurate contact feedback, which means there still exists a significant sim-to-real gap [1]. For instance, an algorithm can be trained with even 100 percent success rate in simulators but still meet failures when deployed into real applications [11]. Alternatively, some researchers are addressing the issue by pursuing highly accurate contact models, such as ANSYS with finite element analysis (FEA) techniques [12]. However, it is impractical to execute training and learning through ANSYS due to the long calculation time associated with FEA. Furthermore, a data-driven method can also be utilized to model contact mechanics. For instance, Peng et al. [13] and Ma et al. [14] utilize neural networks, inputting a substantial amount of real-world data, to accurately regress contact mechanics. However, these approaches may lack the capability to generalize the contact mechanics to any user-defined scenario with varying parameters and geometry shapes. Gathering a comprehensive dataset covering all possible cases can be challenging. Consequently, achieving a balance between accuracy and efficiency remains a challenge when gathering data for contact-rich tasks. It is crucial to find alternative approaches that can accelerate the data collection process without sacrificing accuracy.
Motion planning plays a pivotal role in robotics contact-rich insertion to ensure a safe path to the desired position. Classical motion planning can be divided into these three categories: classical approaches, heuristic approaches, and graph search approaches [15]. Classical approaches, such as potential field, have been traditionally used in motion planning. However, these methods often suffer from limitations in terms of global optimization and robustness. Heuristic exploration can overcome this disadvantage to some extent. Graph Search, such as Astar, is inefficient in complex environments. Moreover, these motion planning algorithms always focus on collision-free motions [16] which are not suitable for complex contact-rich tasks.
Moreover, optimization plays a crucial role in assisting robots to find the best trajectory under specific criteria or constraints, and optimization is widely used in robot planning [2]. For instance, Wang et al. [17] utilize classical optimal control techniques for trajectory planning on a flight deck, which focuses on a collision avoidance problem. However, classical optimization methods may struggle with multi-modal or high-order nonlinear problems [18], because in the real world, contact dynamics is inherently nonlinear and complex, making it challenging to model the contact-rich tasks. The challenge stems from the complexity involved in creating an analytical model that accurately represents the dynamics of contact [19]. Indeed, to address these challenging problems, researchers propose many advanced optimization algorithms. Kurtz et al. [20] take an implicit contact force into account, which is computed at each time step. To specify, they use Iterative Linear Quadratic Regulator (iLQR) to optimize this contact-implicit trajectory. Wei et al. [21] optimizes robot position, speed, and torque, which are used for virtual spring to keep a minimal impedance force and vibration by the forgetting factor function. Moreover, some researchers combine bilevel optimization which combines multiple layers of optimization methods for one optimization problem. For instance, Stouraitis et al. [22] employed a bilevel optimization approach that combines graph search and trajectory optimization to accomplish a collaborative task. Furthermore, robot learning with policy parameterization also utilizes optimization, where policy optimization consists of derivative free/evolutive (e.g., BBO) and policy gradients (e.g., REINFORCE [23]), and dynamic programming, consisting of policy iteration and value iteration. For example, Suomalainen et al. [3], summarized robot learning methods in contact tasks, including Learning from Demonstration (LfD) and Reinforcement Learning (RL). LfD, such as Gaussian mixture models (GMM) and Gaussian mixture regression (GMR), enable the robot to learn from the demonstrated trajectories provided by human experts. Enayati et al. [24] use GMM to encode human demonstrations and use GMR to generate trajectory, where the policy is parameterized and optimized. However, the original solution of GMM and GMR cannot deal with contact-rich tasks well, which can be improved by RL. For example, an expert’s demonstration can be used as a starting point for RL-based policy optimization and minimize the difference between robot and expert [25]. Furthermore, DMPs are widely and popular used in policy parameterization [26], which can be optimized. For instance, Abu-Dakka et al. [4] propose making use of human demonstration to get a peg-in-hole task encoded by DMPs, which helps the robot come to new tasks without new coding.
Peg-in-hole assembly covers many specifics of common contact-rich tasks in various real-world applications. Due to their practical relevance and complexity, numerous researchers have focused their efforts on this. For instance, Whitney et al. [27] consider the whole insertion as quasi-static, then use Newton’s law to derive the relation between contact force and pose of peg. Pitchandi et al. [28] also refer to Whitney’s work, but add viscoelastic property of compliant material into consideration and derive the appropriate device with optimal stiffness and damping parameters. When the exact pose of hole is uncertain, Lee et al. [29] use a quasi-static model to derive where the hole is based on feedback friction force and geometry of peg. They divide the task into many phases separately. Wu et al. [30] also use equilibrium condition; they focus on robot assembly of circular-rectangular compound peg and hole parts, and use flow chart of hole searching, whose essence is a super if-else machine. Salem et al. [31] insert the hole to the fix peg using quasi-static model by deriving two-point and three-point contact static equations. They also define the assembly sequence by approaching two-point contact, adjusting the direction based on force feedback, until they reach a stable three-point contact phase. However, a geometry method [3] can also work for contact-rich tasks. However, a for geometry method, we need the shape of objects and the environment. Therefore, it is hard to build an analytical model for contact [32].
The contributions of our work are several-fold. Firstly, we enhance the accuracy of simulation by employing the hydroelastic model, which has the potential to reduce the sim-to-real gap. We validate the hydroelastic model against a benchmark to demonstrate its effectiveness. Secondly, we propose a bilevel framework that combines DMPs and BBO, utilizing a hydroelastic model, while this framework incorporates contact force information into the optimization process. Thirdly, we address the inherent uncertainty in visual perception to some extent by introducing noise into the cost function. This allows our framework to adapt to visual uncertainty.
The remaining sections of this paper are structured as follows. Section 2 offers a comprehensive model description and introduces the well-established Whitney’s theory. Subsequently, a comparative analysis between the hydroelastic model and Whitney’s theory is conducted to assess their performance and identify disparities. In Section 3, our proposed bilevel framework is presented. We explain the methodology that combines DMPs and BBO with the hydroelastic model. This approach aims to tackle the challenges posed by visual uncertainty, which often proves to be a significant obstacle in conventional robot planning solutions. Section 4 concludes the paper and outlines avenues for future research.

2. Dynamics Model and Hydroelastic Model

In this section, we first introduce the peg-in-hole scenario. Next, we present a concise mathematical description of our scenario, and introduce the benchmark proposed by Whitney [27]. Subsequently, we extract the curves containing contact force and kinematics information to compare with Whitney’s benchmark. By conducting this comparison, we evaluate the accuracy of the hydroelastic model while also identifying its shortcomings. This evaluation can guide us in effectively utilizing the hydroelastic model.

2.1. Dynamic Model

We utilize a hydroelastic model supported in DRAKE [33], a simulator that considers surface contact and offers fast calculation speeds. In our scenario, a virtual robot guides the peg towards a hole, accounting for friction. The term “virtual robot” refers to a robot lacking a physical body but possessing kinematic properties. Meanwhile, a spring connects the ghost robot and peg, as depicted in Figure 1. The initial frame of the peg remains fixed, while users can set the initial frame of the hole, assuming the robot is equipped with sensors, such as a camera, to perceive the pose of the hole. Consequently, the target pose of the peg is known but subject to noise. Therefore, the motion of the peg only depends on the force exerted by the robot and the contact force between the peg and hole. Whenever the contact between peg and hole occurs, the hydroelastic model will generate a surface contact force acting on the peg.
We account for the interaction between robot and peg via a simple linear spring model. Therefore, the force applied on the peg is generated by a spring, which only depends on the pose difference between the robot frame R and peg top center P 1 , Numerically, we make use of a simulator, (DRAKE [33]) depicted in Figure 2, to obtain discrete-time evaluation of the dynamics captured by:
( q P , q ˙ P , q ¨ P ) = Φ ( q P , q R , H )
which denotes the position, velocity, and acceleration of the peg which can be generated by this simulator with inputting the pose of the peg at the previous time step, pose of the robot, and models. Ultimately, a successful insertion is achieved when the distance between the bottom surface center of the peg P 2 and the frame of the hole H is sufficiently close. This criterion determines whether the peg has been successfully inserted into the hole.

2.2. Compliant Interaction

As previously mentioned, it is essential for the robot to apply a force onto the peg during the peg-in-hole task. Here, we shall assume a compliant interaction between robot and peg which, in turn, will allow to evaluate interaction forces from pose differences.
Figure 1 illustrates the scenario we are considering, where { P } = T P S E ( 2 ) represents the frame of center of the peg. In addition, we utilize a rotation matrix R P and transformation matrix T P to represent the peg frame { P } in the world coordinate system.
T P = R ( θ P ) x P y P 0 0 1
where the general rotation matrix is
R ( θ ) : = cos ( θ ) sin ( θ ) sin ( θ ) cos ( θ )
Similarly, we employ the same definitions for the robot frame { R } and hole frame { H } . Furthermore, we introduce two additional frames to define the top surface center of the peg { P 1 } and bottom surface center of the peg { P 2 } . Assuming the peg is a fixed rigid body, we can consider the transformation matrix for { P 1 } in { P } to be constant. The length of the peg is symbolized as l, T P 1 P equals
T P 1 P = 1 0 0 0 1 l 2 0 0 1
The transformation matrix of { P 1 } can be expressed as
T P 1 = T P T P 1 P
We employ a function q = f v e c ( T ) to extract a vector q P 1 to describe { P 1 } , where
q = x y θ = f v e c ( T ) = T 13 T 23 arctan ( T 21 , T 11 )
The relative distance between frame { R } and frame { P 1 } is written as δ q R P 1 .
δ q R P 1 = x R x P 1 y R y P 1 θ R θ P 1
where x , y denote positions, θ denotes orientation. Next, we model the interaction between robot and peg by considering three springs with stiffness coefficients k x , k y , k θ connecting frame { R } and frame { P 1 } , Additionally, we define the spring between peg and robot in Cartesian space using stiffness matrix K :
K = k x 0 0 0 k y 0 0 0 k θ
Therefore, the elastic interaction between robot and peg can be accounted for by the following energy function
E R P = 1 2 ( δ q R P 1 ) T K ( δ q R P 1 )
The elastic (interaction) force exerted by the robot onto the peg f R P can be derived as
f R P = q P E R P = K δ q R P 1

2.3. Classical Whitney’s Model

Previous derivations are based on a series of simplifying assumptions. In order to verify the realism of such a model, we will benchmark it with classical quasi-static assembly results. Whitney [27] introduced a quasi-static assembly theory for rigid parts utilizing compliant supports, which has undergone comparison with real-world experiments. Their methodology has demonstrated accuracy, making it highly valuable for comparative analysis.
The derivations in the paper involve modelling the compliant supports as springs and deriving equations to describe the forces and displacements during assembly. By analyzing the equilibrium conditions of the system, the derived equations enable predicting the behavior of the parts and supports, offering a flexible approach to assembly processes. Typical insertion geometry has an insertion event with these stages shown in Figure 3: approach, chamfer crossing, one-point contact, and two-point contact.
Given the stiffness K x , K θ , friction coefficient μ and compliance center L g with the peg and hole geometrical parameters (such as its initial angular error θ 0 , initial lateral error ϵ 0 , c clearance ratio), the insertion forces F x , F z and insertion angles θ can be calculated from the derived analytical equations in Table 1.

2.4. Comparison between Hydroelastic Model and Whitney’s Theory

To facilitate a comparison, we build models and frame based on Whitney’s work [27] within the DRAKE simulator. It is important to note that in this case the peg is moving downward slowly with only a vertical velocity as it approaches the hole.
Furthermore, for defining the material properties of peg and hole in the simulator, we refer the DRAKE’s manual [33], which provides guidelines on how to set parameters that correspond to the physical characteristics and behavior of the materials used in the contact-rich tasks. According to the suggestions, we set the hydroelastic modulus same as Young’s modulus. Assuming the peg and hole are both made of steel, we set the hydroelastic modulus as 200 GPA [34]. Then, we set the friction coefficient as 0.6, and Hunt–Crossley dissipation as 30 s / m , which is responsible for the energy-damping property. In order to minimize undesired oscillations of the model during contact, we choose a heuristic value for this parameter.
To facilitate a direct comparison between Whitney’s results and the results obtained from the hydroelastic model, we log the contact force and other information by using the same scenario. All simulations were performed on a desktop with an Intel i9 processor and 32 GB RAM.
We are evaluating the quality of the hydroelastic contact model, with the contact force as the performance indicator. Thus, we plot the variation of the contact force with insertion depth. The results are shown in Figure 4 (further results are also reported in Appendix A). We vary the starting position x P of the peg, which corresponds to changing the horizontal distance or offset between the central line of the hole and the peg. From Figure 4, we observe that the hydroelastic model exhibits the same phases as observed in Whitney’s method, albeit with some difference. In the hydroelastic model [33], the horizontal contact force F x in the peg frame gradually increases during the chamfer contact phase, rather than experiencing a sudden force at the initial contact. As the peg penetrates deeper into the hole, the contact force gradually builds up. After leaving the chamfer phase, there are some oscillations. Subsequently, the peg transitions to one-point contact phase; the value of contact force decreases, then increases, which aligns with Whitney’s theory. Finally, during two-point contact phase, we observe that the behavior of the hydroelastic model closely resembles Whitney’s theory. The final contact force values converge to very similar values in both the hydroelastic model and Whitney’s theory.
Based on the depicted figures, it is apparent that the hydroelastic model consistently reproduces results that closely align with those of Whitney’s theory, even when the starting points are altered. The three figures exhibit similar trends and characteristics, thereby supporting the similarity between the hydroelastic model and Whitney’s theory; additional results can be found in Appendix A.
We evaluated the relative error at various contact phases for the four situations, and the results are presented in Table 2.
Some relative errors are small, within 1 % , and the majority of other features are within 10 % . However, a few of them exhibit larger relative errors, approximately around 20 % . Additionally, it may be emphasized that to get a more comprehensive understanding of how Whitney’s results compared with hydroelastic model’s results, we need to look at the data throughout the contact task, not just some peak values (as reported in Table 2). Therefore, we introduce this Pearson correlation coefficient to report the overall relationship between the two datasets, denoted as r, which is presented in Table 3. The Pearson correlation coefficient measures the strength and the direction of a linear relationship between Whitney’s theoretical result and the hydroelastic model’s result with possible values between −1 and 1, where a higher value of r indicates a stronger relationship between the two sets of data. Furthermore, the Pearson correlation coefficient can serve as a quantitative measure to assess the extent to which performance in simulations corresponds to performance in the real world [35]. Therefore, we present the linear relationship between Whitney’s theory and the hydroelastic model by F x and F z at the same insertion depth (after alignment) in Figure 5a,b. In other words, each curve represents the simulated force versus the theoretical force throughout the entire insertion process, with each point plotted at the corresponding shifted insertion depth. We plot a total of four cases, each corresponding to different offsets. Subsequently, we calculate r in Table 3. We can observe that there exists a strong linear relationship between the variables, and some curvatures are caused by the oscillation during contact.
The hydroelastic model demonstrates several advantages. Firstly, it accurately captures the values of the contact force during both the sudden contact and final stable phases, with some relative errors even less than 1 % . Secondly, the overall trend of results obtained from the hydroelastic model closely aligns with Whitney’s theory, which can be proved by r ( F x ) , r ( F z ) ; both of them are over 0.9 .
However, there are two limitations from the results. Firstly, oscillation occurs when the peg abruptly leaves the chamfer phase. This can be attributed to the virtual spring between robot and peg, which can be considered as stiffness control. When a sudden force disturbs the system, it will result in an oscillation. In this case, when the robot exerts sufficient force to the peg, the peg will suddenly slip off the chamfer and the oscillation phenomenon occurs.
Secondly, there always exists a depth domain delay no matter whether during the chamfer crossing or two-point contact phase. To account for this delay, we shift the results generated by the hydroelastic model based on the depth axis. This is because the contact force arises linearly after instantaneous contact, which is caused by the theory of hydroelastic contact [33]. The insertion depth and contact force will both continue increasing until the two bodies achieve quasi-static force equilibrium. Therefore, as sudden insertion occurs, we observe a progressive increase in contact force corresponding to the increasing insertion depth, while Whitney’s theory makes the contact force suddenly arise. Thus, there exists a depth–domain disparity between these two curves, which explains these curves of the contact results. In plotting Figure 4 and calculating the Pearson correlation coefficient, we aligned the curves based on the peak of first contact force due to the depth domain delay phenomenon. Otherwise, this delay will result in a low Pearson correlation coefficient.
To summarize, the results indicate that the hydroelastic model is capable of accurately simulating the contact-rich behavior, especially with a slow motion that meets quasi-static, and successfully reproducing key characteristics in Whitney’s theory, which have already been verified through real-world experiments. Although Whitney’s theory is accurate and mature, it fails to account for deformation during contact and lacks the ability to generalize to complex scenarios (e.g., USB port). In other words, when dealing with intricate object shapes, applying Whitney’s theory becomes challenging due to the consideration of numerous edges. Consequently, the hydroelastic model not only addresses both deformation and generalization, but also aligns well with Whitney’s theory. A user can easily apply the hydroelastic model to any geometry, making it a versatile tool with the potential to support a wide range of application scenarios and provide valuable explanations for real-world contact tasks.

3. Bilevel Optimization with Hydroelastic Model

With our validated simulation, we can utilize this simulated contact force in the virtual world to optimize our policy for contact-rich tasks, eliminating the need for extensive and time-consuming experiments in the real world. In this section, we will outline the formulation of our planning and optimization method by a peg-in-hole task.

3.1. Bilevel Framework

Optimal control is a field of control theory that determines the control input that enables a process to satisfy the physical constraints and minimize some criterion [36]. In the field of robotics, optimal control can be employed to generate optimal trajectories for robots in order to achieve specific goals.
In our problem, the physical constraints arise from the physical contact between the hole and peg. Our objective is to minimize a cost associated with the task. However, calculating the gradient of the contact phenomenon analytically can be complex and challenging. Therefore, in our approach, we utilize BBO, a gradient-free method, to search for the solution that minimizes the cost. BBO provides a flexible and efficient method to explore the solution space without explicitly computing the analytical gradients. By employing BBO, we can effectively optimize the control policy, which is parameterized by DMPs.
The whole computational framework of our approach is illustrated in Figure 6. We propose a bilevel optimization framework. In the inner level, we apply policy parameterization DMPs to plan for trajectory, which is introduced in the Appendix B. One of the salient features of DMP is the definition of low-dimensional parametric vector W to parameterize smooth spatial trajectories. Such a parameter W is then updated during optimization to generate the robot’s trajectory. There are several parallel rollouts performed with the varied weight value in the inner level. Additionally, the starting point and target point are provided as inputs to DMPs. The dash arrow represents parameters q R ( 0 ) , q R ( T ) which will be assumed constant during each rollout of the inner level. After the planned robot trajectory q R is generated, it is sent to the simulator for execution. The simulator provides the resulting trajectory of the peg, which is then passed to the inner-level optimization with the BBO algorithm. The BBO algorithm analyzes the trajectory and iteratively adjusts the weight values in order to find the best weight. In the outer level, outer optimization sends q R ( T ) to DMPs in each iteration. Here, the solid arrow represents q R ( T ) which will change in each iteration of outer level. Furthermore, we assume the vision system will detect the environment in each iteration, which represents that q ˜ H is constant in the rollouts but varying during each iteration. q ˜ H is applied in both inner optimization and outer optimization, which affects this task significantly. The subsequent sections will provide detailed explanations of the components depicted in this figure.

3.1.1. Inner-Level Optimization

We choose BBO as the core method for inner-level optimization, because obtaining an analytical description of contact dynamics proves to be challenging. In the inner-level optimization, DMPs require the start and goal points as inputs. As we possess knowledge of the robot’s initial pose, we can define the robot trajectory as t { q R ( t ) } . By utilizing Equation (9), we can compute E R P ( t ) , while the simulator will record the trajectory of the peg as q P ( t ) . We employ the same method as Equation (7) to calculate T P 2 P , then determine the distance between frame { H } and frame { P 2 } , which is denoted as δ q ˜ H P 2 , where visual uncertainty is symbolized as ( · ) ˜ .
The inner-level cost function is defined as follows:
J i n n ( W , q R , q P , q ˜ H ) = α 1 W 2 + α 2 t = 0 t = T E R P ( t ) + α 3 t = 0 t = T ( δ q ˜ H P 2 ) T Σ H 1 ( δ q ˜ H P 2 )
where α 1 , α 2 , α 3 are weight coefficients. The first term of Equation (11) represents regularization, which helps in controlling the planning trajectory. The second term represents total energy cost incurred by the robot in the entire insertion process, as calculated in Equation (9). This term encourages the robot to minimize energy consumption during the task. The third term represents the kinematic distance between the current bottom of the peg to the sensed hole, which guides the system move to the target hole. Additionally, Σ H represents the perception error covariance matrix caused by the vision system, which measures the belief associated with the distance between the actual position of the hole and the sensed position of the hole.
In BBO, we perform multiple iterations. During each iteration i, we randomly vary the weight parameters W i according to a Gaussian distribution N in Equation (A4) with several rollouts, where
W i + 1 ( r ) = N ( W i , σ W )
Subsequently, the trajectory of the robot will be determined by utilizing DMPs Equation (A2), which will then be transmitted to the simulator for execution. Once the simulation is finished, the simulator sends back the simulated results, enabling the calculation of cost for this rollout J i n n ( r k ) by Equation (11), where a total of r rollouts are considered.
Upon completion of all the rollouts, the rollouts are sorted based on the inner level cost, which is symbolized as W ( s o r t e d ) ( i ) . Subsequently, the fittest n % results are selected as the optimal rollout set. The number of elements in the sorted set is n r , where · represents the ceiling function that returns the integer greater than or equal to its input. The weights are then updated based on this selected rollout set.
W i + 1 = r k = 1 n r W ( s o r t e d ) ( i ) ( r k ) n r
Hence, the inner optimization can be written as
(14a) min W : J i n n ( W , q R , q P , q ˜ H ) (14b) s . t . q ¨ P = Φ ( q P , q R , H ) (14c) q R = DMP ( W , t , q R ( 0 ) , q R ( T ) ) (14d) t [ 0 , T ]
where Equations (14b) and (14c) are identical to Equations (1), (A1) and (14d) describe motion duration.

3.1.2. Outer-Level Optimization

In this case, we update the goal q R ( i + 1 ) ( T ) by the exploring result from the previous iteration. The objective is for the goal of DMPs to progressively approach the actual hole frame. Hence, we define the outer-level cost J o u t as
J o u t ( q P 2 , q ˜ H ) = 1 2 ( q ˜ H q P 2 ) T Σ H 1 ( q ˜ H q P 2 )
Therefore, the outer-level optimization is
(16a) arg min q P 2 : J o u t ( q P 2 , q ˜ H ) (16b) s . t . q ˜ H = [ N ( μ H , σ x 2 ) , y H , θ H ] T (16c) q P 2 = f v e c ( T P 2 ) (16d) T P 2 = T P T P 2 P (16e) q P Q P
where Equation (16b) refers to the sensed hole frame, Equation (16c) represents Equation (6) coming from the simulator, Equation (16d) denotes the two frames in a rigid body, and Equation (16e) describes that q P is the element of set Q P , which comprises all the peg trajectories in each iteration.

3.1.3. Bilevel Formulation

We combine the two equations presented in Equations (14) and (16) into a bilevel optimization formulation. The pseudocode is shown in Algorithm 1.
Algorithm 1: Bilevel framework
Machines 11 00741 i001
where q P i represents the whole trajectory of the peg in this iteration.

3.2. Validation by Peg-in-Hole Task

We continue to utilize the same scene in the simulator and rely on a camera as being susceptible to inaccuracies. In the peg-in-hole task, the horizontal uncertainty exerts a significant impact. Specifically, when there is a horizontal mismatch between the peg and the hole, it may lead to the peg getting stuck. Therefore, researchers focus on horizontal variation [11]. To account for this, we introduce visual noise for horizontal information x ˜ H = N ( μ x , σ x 2 ) with Gaussian distribution, where μ x = 0.005 m because the translation error could reach 5 mm [4], and we also choose σ x = 0.005 m to simulate a wide range of uncertainty. The sensed visual information is q ˜ H = [ x ˜ H , y H , θ H ] T . Regarding the stiffness parameter, it is common to choose 1000 N/m [37]. Similarly, there are no specific requirements for the starting position parameters x H , y H , θ H . Additionally, it is common to consider the coefficients of friction between steel to be around 0.6 . The only selected parameters are the weights α 1 , α 2 , α 3 . It is important to note that the magnitudes of these three terms in Equation (11) should be similar. If the magnitude of one term is too small, it may not produce the intended effect. Therefore, balancing the weights appropriately is essential to achieve a successful insertion. In practice, we have a rough calibration to compare different weight values for α 1 , α 2 , α 3 and their corresponding terms in Equation (11) in order to select suitable weight values. The initial parameters are detailed in Table 4.
In the simulation, we performed iterations with 10 rollouts until convergence. Figure 7 displays intermediate results from different iterations. By observing the progression from iteration 1, the initial solution is quite far from the target. However, in subsequent iterations, the policy exhibits a tendency to explore the environment. This improvement can be attributed to the third term in the cost function (11), which evaluates the uncertain distance between the hole and the bottom of the peg. The outer-level optimization in Equation (15) then updates the goal to keep approaching the hole iteratively, motivating to find trajectories towards the uncertain hole against the visual uncertainty.
Around iteration 20 in Figure 7, we observe that the peg has successfully identified the location of the hole but requires further exploration to achieve the bottom. The policy, with the help of the second term of the cost function (11), aims to avoid excessive contact force or getting stuck during the insertion process. As a result, the policy explores different approaches and adjusts its trajectory to achieve a balance between successful insertion and avoiding undesirable contact forces.
In iteration 35 of Figure 7, we observe that the peg has successfully inserted into the hole. At this stage, the policy has refined its trajectory by discarding the exploratory curves from previous iterations. The optimization process, guided by both the first and second terms of the cost function (11), aims to generate a trajectory that is more direct towards the goal. The first term encourages the policy to move towards the target, minimizing deviation on insertion path. Meanwhile, the second term continues to ensure that the contact forces remain within acceptable limits and avoid potential stuck or excessive force during the insertion process.
Figure 8a displays the results of the best peg trajectory for each iteration, while Figure 8b showcases the results of the optimal robot trajectory for each iteration. The gray value of the trajectories represents the iteration number, enabling the observation of policy improvement over time. In the shallow trajectories, the robot moves towards the hole, indicating the searching phase when the policy explores the environment. As the trajectories move into the chamfer region, the policy starts to move downwards, indicating the insertion phase. Through the entire optimization process, we can clearly observe the gradual improvement of the policy, with trajectories becoming more directed towards successful insertion. Hence, we conclude that the iterative optimization approach allows the policy to explore and refine its trajectory, resulting in a more accurate and effective contact-rich insertion.

3.3. One-Level Optimization vs. Bilevel Optimization

In order to further validate and evaluate the performance of our approach, we conducted a large-scale simulation with varying starting positions of the peg x P = [ 0.04 : 0.001 : 0.03 ] for only one-level optimization (only J i n n ) and bilevel optimization ( J i n n and J o u t ). In fact, the routine solution for planning with DMP and BBO is identical to one-level optimization in our framework. For one-level optimization, we directly provide the perceived goal q ˜ H to DMPs, resulting in q R ( T ) = q ˜ H . To make a fair comparison, we give the same initial goal for our bilevel framework. During the simulation, we run bilevel optimization until converge, and run same iterations for one-level optimization. The simulation of 50 iterations with 10 rollouts can be finished in 10 min.
The result shown in Figure 9 reveals a consistent trend with our previous findings. We can compare these two methods, the inner-level optimization and one-level optimization. Firstly, in iteration 0, both cases start from the same initial position, and the initial goal given to the DMPs is also the same. Therefore, the cost of the initial problem will be identical for both methods. Secondly, these two cost curves decrease rapidly in two iterations, then the difference between them becomes evident. The one-level optimization method exhibits a converging cost with a high value, indicating that the peg fails to achieve a successful insertion. This reflects the limited effectiveness of the one-level optimization approach in achieving peg-in-hole insertions. On the other hand, bilevel optimization demonstrates convergence of the cost during iterations, reaching a low value, indicating successful insertion tasks. Thirdly, it is worth noting that the effect of visual uncertainty is taken into account in the cost function (11) and (15), which means the final convergence phase may exhibit some mild oscillations due to the inaccuracies representing the uncertain distance between the hole and the bottom of the peg. Therefore, there exist variance bands for both curves. In spite of these variance bands, all the starting points can achieve successful insertions within 50 iterations via bilevel optimization, and the whole trend of cost demonstrates a significant reduction, indicating that bilevel optimization and planning with DMPs can adapt to the uncertainties in visual information, ultimately leading to a successful peg-in-hole insertion.
Thus, we observe that one-level optimization, which is a conventional approach, heavily relies on the accuracy of visual perception and is more susceptible to failure. It struggles to overcome the challenges posed by visual uncertainty, which can hinder the achievement of successful peg-in-hole insertions. In contrast, the bilevel optimization strategy effectively addresses the challenges arising from visual uncertainty. By incorporating both inner and outer-level optimization, it provides a mechanism to iteratively refine the trajectory and adapt to uncertainties in visual information. This enables the cost to converge and ultimately leads to a successful insertion. The bilevel strategy demonstrates its effectiveness by considering different starting positions, which is a reliable approach for achieving successful peg-in-hole insertions.

4. Conclusions

This paper presents a bilevel optimization framework utilizing DMPs and BBO with a hydroelastic contact model for peg-in-hole tasks. Our research has yielded several key findings. Firstly, we have demonstrated that the hydroelastic model accurately reproduces the essential characteristics of Whitney’s theory for a peg-in-hole task. Secondly, we have validated the feasibility of our framework for a peg-in-hole task under visual uncertainty. Thirdly, we have established that conventional planning methods, e.g., one-level optimization, are susceptible to failure in contact-rich tasks due to visual uncertainty. In contrast, our bilevel framework has the capability to overcome visual uncertainty and successfully insert the peg.
Through comparison with Whitney’s theory, we have observed that the hydroelastic model generates results with similar features during each contact phase. Notably, the characteristic results achieve r ( F x ) = 0.9954 and r ( F z ) = 0.9032 . Furthermore, our findings indicate that the hydroelastic model is accurate, with some relative error even less than 1 % when motion is slow. The results above prove that the hydroelastic model is a good fit for Whitney’s theory, thereby offering potential for reducing the sim-to-real gap. However, when motion is rapid, such as at the sudden contact, the contact force cannot be instantaneously generated. Instead, the surface contact force gradually increases until two complaint bodies reach equal pressure. Therefore, we have also noted the presence of a depth delay phenomenon due to the property of the hydroelastic model.
Our investigations into the bilevel framework with DMPs and BBO have revealed that policy parameterization is a useful and efficient method, where 50 iterations with 10 rollouts can be completed in 10 min. Meanwhile, bilevel optimization guides peg approach to hole with different phases during iteration, which can be logically explained and justified. Specifically, the explored goal for DMPs supported by the outer level has successfully mitigated the visual uncertainty and achieved superior planning trajectories compared with using sensed information directly, where the mean cost of directly using inaccurate hole diverges. Furthermore, our solution demonstrates the ability to achieve 100 % successful insertion within 50 iterations across a wide range of starting positions. This showcases the superior performance and reliability of our approach.
For ongoing and future work, we attempt to transfer this planning policy to the real world and test how the hydroelastic model bridges the sim-to-real gap. Additionally, we intend to investigate a more robust framework that can further enhance the effectiveness and reliability of our approach. Moreover, it is worth discussing the generalization of our framework to be applicable to flexible materials. Incorporating another simulator specialized in modeling flexible materials could prove beneficial in extending the versatility of our approach.

Author Contributions

Conceptualization, L.Y. and D.C.; Methodology, L.Y. and D.C.; Software, L.Y. and M.Z.A.; Validation, L.Y.; Formal analysis, L.Y.; Investigation, L.Y.; Resources, D.C.; Data curation, L.Y.; Writing—original draft, L.Y.; Writing—review and editing, L.Y., M.Z.A., B.L., C.L. and D.C.; Visualization, L.Y. and M.Z.A.; Supervision, D.C. and C.L.; Project administration, D.C.; Funding acquisition, D.C. All authors have read and agreed to the published version of the manuscript.

Funding

This research is supported by the National Research Foundation, Singapore, under the NRF Medium Sized Centre scheme (CARTIN). Any opinions, findings, and conclusions or recommendations expressed in this material are those of the authors and do not reflect the views of National Research Foundation, Singapore.

Data Availability Statement

The data and results are available in https://github.com/lllllyang/drake-for-Robotic-Insertion (accessed on 14 June 2023).

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

From Figure A1, which has same trend as Figure 4. The vertical contact force F z delays at initial contact compared with Whitney, but the peak force values are highly approximate; the relative errors are shown in Table 2, and there is also an oscillation during one-point contact. After coming to the two-point contact phase, the value of F z increases first then decreases. This behavior is consistent with the expected trend described in Whitney’s theory. Then, after coming to two-point contact, the force increases first to a peak, then converges to a highly approximate value.
Figure A1. Insertion Force (Fz) vs. Insertion Depth (l) at different x P after depth shifting, where CFC symbolizes “Chamfer Contact”, 1PC symbolizes “1 Point Contact”, S2PC symbolizes “Start 2 Point Contact”, E2PC symbolizes “End 2 Point Contact”.
Figure A1. Insertion Force (Fz) vs. Insertion Depth (l) at different x P after depth shifting, where CFC symbolizes “Chamfer Contact”, 1PC symbolizes “1 Point Contact”, S2PC symbolizes “Start 2 Point Contact”, E2PC symbolizes “End 2 Point Contact”.
Machines 11 00741 g0a1
From Figure A2. The trend observed in the hydroelastic model is also similar. Although there is a delayed phenomenon compared to Whitney’s theory, the final insertion angle can still converge at a value close to Whitney’s theory.
Figure A2. Insertion Angle vs. Insertion Depth at different x P after depth shifting, where CFC symbolizes “Chamfer Contact”, 1PC symbolizes “1 Point Contact”, S2PC symbolizes “Start 2 Point Contact”, E2PC symbolizes “End 2 Point Contact”.
Figure A2. Insertion Angle vs. Insertion Depth at different x P after depth shifting, where CFC symbolizes “Chamfer Contact”, 1PC symbolizes “1 Point Contact”, S2PC symbolizes “Start 2 Point Contact”, E2PC symbolizes “End 2 Point Contact”.
Machines 11 00741 g0a2

Appendix B

The core idea of DMPs is exerting an external force to a simple linear spring damper system f t , and the force has a nonlinear forcing term h W , which is a function of phase of motion s t . Define the trajectory of robot frame as t { q R ( t ) , t = 0 T } . Hence, the start pose of robot is q R ( 0 ) while the goal pose of robot is q R ( T ) .
Our control input, the robot trajectory, is generated by DMPs,
q R ( t ) = DMP ( W , t , q R ( 0 ) , q R ( T ) )
To specify, q R ( t ) will be solve as a ODE,
1 τ q ¨ R ( t ) = f t + h W ( s t ) s t ( q R ( T ) q R ( 0 ) )
where
f t = α ( β ( q R ( T ) q R ( t ) ) q ˙ R ( t ) )
Since in planar motion, each degree of freedom is independent from each other with no constraints, we expand classical DMPs [38] into three dimensions. The output of Equation (A2) is the desired acceleration of the reference trajectory, which means that DMPs can generate a reference trajectory to a nonlinear attractor system with attractor goal q R ( T ) and start point q R ( 0 ) . Moreover, the second term denotes external force based on the phase of the movement. s t is the phase and starts at 1 while it ends at 0. This design implies that when external force equals zero, the system will converge to the attractor q R ( T ) . Equation (A3) represents a feedback controller (spring-damper system) since it covers current state.
During black-box optimization, W is the parameter that will be optimized based on cost function. The nonlinear forcing term is a function with weight parameter W . The general case is multiplying a set of Gaussian kernels. During iteration, the weight will learn from the cost of each trajectory.
h ( s t ) = ϕ ( s t ) T W
[ ϕ ( s t ) ] j = w j ( s t ) k = 1 p w k ( s t )
w j = [ e x p ( 1 2 σ x j 2 ( s t c x j ) 2 ) , e x p ( 1 2 σ y j 2 ( s t c y j ) 2 ) , e x p ( 1 2 σ θ j 2 ( s t c θ j ) 2 ) ]

References

  1. Kroemer, O.; Niekum, S.; Konidaris, G. A Review of Robot Learning for Manipulation: Challenges, Representations, and Algorithms. J. Mach. Learn. Res. 2021, 22, 1395–1476. [Google Scholar]
  2. Jiang, J.; Huang, Z.; Bi, Z.; Ma, X.; Yu, G. State-of-the-Art control strategies for robotic PiH assembly. Robot. Comput.-Integr. Manuf. 2020, 65, 101894. [Google Scholar] [CrossRef]
  3. Suomalainen, M.; Karayiannidis, Y.; Kyrki, V. A survey of robot manipulation in contact. Robot. Auton. Syst. 2022, 156, 104224. [Google Scholar] [CrossRef]
  4. Abu-Dakka, F.J.; Nemec, B.; Kramberger, A.; Buch, A.G.; Krüger, N.; Ude, A. Solving peg-in-hole tasks by human demonstration and exception strategies. Ind. Robot. Int. J. 2014, 41, 575–584. [Google Scholar] [CrossRef]
  5. Billard, A.; Kragic, D. Trends and challenges in robot manipulation. Science 2019, 364, eaat8414. [Google Scholar] [CrossRef]
  6. Levine, S.; Pastor, P.; Krizhevsky, A.; Ibarz, J.; Quillen, D. Learning hand-eye coordination for robotic grasping with deep learning and large-scale data collection. Int. J. Robot. Res. 2018, 37, 421–436. [Google Scholar] [CrossRef]
  7. Liu, C.K.; Negrut, D. The Role of Physics-Based Simulators in Robotics. Annu. Rev. Control. Robot. Auton. Syst. 2021, 4, 35–58. [Google Scholar] [CrossRef]
  8. Tasora, A.; Serban, R.; Mazhar, H.; Pazouki, A.; Melanz, D.; Fleischmann, J.; Taylor, M.; Sugiyama, H.; Negrut, D. Chrono: An Open Source Multi-physics Dynamics Engine. In High Performance Computing in Science and Engineering; Series Title: Lecture Notes in Computer Science; Kozubek, T., Blaheta, R., Šístek, J., Rozložník, M., Čermák, M., Eds.; Springer International Publishing: Cham, Switzerland, 2016; Volume 9611, pp. 19–49. [Google Scholar] [CrossRef]
  9. Todorov, E.; Erez, T.; Tassa, Y. MuJoCo: A physics engine for model-based control. In Proceedings of the 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems, Vilamoura-Algarve, Portugal, 7–12 October 2012; pp. 5026–5033. [Google Scholar] [CrossRef]
  10. Makoviychuk, V.; Wawrzyniak, L.; Guo, Y.; Lu, M.; Storey, K.; Macklin, M.; Hoeller, D.; Rudin, N.; Allshire, A.; Handa, A.; et al. Isaac gym: High performance gpu-based physics simulation for robot learning. arXiv 2021, arXiv:2108.10470. [Google Scholar]
  11. Lammle, A.; Tenbrock, P.; Balint, B.; Nagele, F.; Kraus, W.; Vancza, J.; Huber, M.F. Simulation-based Learning of the Peg-in-Hole Process Using Robot-Skills. In Proceedings of the 2022 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Kyoto, Japan, 23–27 October 2022; pp. 9340–9346. [Google Scholar] [CrossRef]
  12. Narang, Y.; Sundaralingam, B.; Macklin, M.; Mousavian, A.; Fox, D. Sim-to-real for robotic tactile sensing via physics-based simulation and learned latent projections. In Proceedings of the 2021 IEEE International Conference on Robotics and Automation (ICRA), Xi’an, China, 30 May–5 June 2021; pp. 6444–6451. [Google Scholar]
  13. Peng, H.; Song, N.; Li, F.; Tang, S. A mechanistic-based data-driven approach for general friction modeling in complex mechanical system. J. Appl. Mech. 2022, 89, 071005. [Google Scholar] [CrossRef]
  14. Ma, J.; Dong, S.; Chen, G.; Peng, P.; Qian, L. A data-driven normal contact force model based on artificial neural network for complex contacting surfaces. Mech. Syst. Signal Process. 2021, 156, 107612. [Google Scholar] [CrossRef]
  15. Koubâa, A.; Bennaceur, H.; Chaari, I.; Trigui, S.; Ammar, A.; Sriti, M.F.; Alajlan, M.; Cheikhrouhou, O.; Javed, Y. Robot Path Planning and Cooperation; Springer: Berlin/Heidelberg, Germany, 2018; Volume 772. [Google Scholar]
  16. Siciliano, B.; Khatib, O.; Kröger, T. Springer Handbook of Robotics; Springer: Berlin/Heidelberg, Germany, 2008; Volume 200. [Google Scholar]
  17. Wang, X.; Li, B.; Su, X.; Peng, H.; Wang, L.; Lu, C.; Wang, C. Autonomous dispatch trajectory planning on flight deck: A search-resampling-optimization framework. Eng. Appl. Artif. Intell. 2023, 119, 105792. [Google Scholar]
  18. Ghafil, H.N.; Jármai, K. Optimization for Robot Modelling with MATLAB; Springer: Berlin/Heidelberg, Germany, 2020. [Google Scholar]
  19. Mitsioni, I.; Karayiannidis, Y.; Stork, J.A.; Kragic, D. Data-driven model predictive control for the contact-rich task of food cutting. In Proceedings of the 2019 IEEE-RAS 19th International Conference on Humanoid Robots (Humanoids), Toronto, ON, Canada, 15–17 October 2019; pp. 244–250. [Google Scholar]
  20. Kurtz, V.; Lin, H. Contact-Implicit Trajectory Optimization with Hydroelastic Contact and iLQR. arXiv 2022, arXiv:2202.13986. [Google Scholar]
  21. Wei, B.; Li, H.; Dong, Q.; Ni, W.; Jiang, Z.; Zhang, B.; Huang, Q. An improved variable spring balance position impedance control for a complex docking structure. Int. J. Soc. Robot. 2016, 8, 619–629. [Google Scholar] [CrossRef]
  22. Stouraitis, T.; Chatzinikolaidis, I.; Gienger, M.; Vijayakumar, S. Online hybrid motion planning for dyadic collaborative manipulation via bilevel optimization. IEEE Trans. Robot. 2020, 36, 1452–1471. [Google Scholar] [CrossRef]
  23. Williams, R.J. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Reinf. Learn. 1992, 8, 5–32. [Google Scholar]
  24. Enayati, N.; Mariani, S.; Wahrburg, A.; Zanchettin, A.M. Variable-Impedance and Force Control for Robust Learning of Contact-rich Manipulation Tasks from User Demonstration. IFAC-PapersOnLine 2020, 53, 9834–9840. [Google Scholar] [CrossRef]
  25. Xie, Z.; Zhang, Q.; Jiang, Z.; Liu, H. Robot learning from demonstration for path planning: A review. Sci. China Technol. Sci. 2020, 63, 1325–1334. [Google Scholar]
  26. Saveriano, M.; Abu-Dakka, F.J.; Kramberger, A.; Peternel, L. Dynamic Movement Primitives in Robotics: A Tutorial Survey. arXiv 2021, arXiv:2102.03861. [Google Scholar]
  27. Whitney, D.E. Quasi-Static Assembly of Compliantly Supported Rigid Parts. J. Dyn. Syst. Meas. Control 1982, 104, 65–77. [Google Scholar] [CrossRef]
  28. Pitchandi, N. Influence of viscoelastic property of compliance material in achieving successful robotic Peg-In-Hole. Mater. Today Proc. 2022, 66, 871–877. [Google Scholar] [CrossRef]
  29. Lee, D.H.; Choi, M.S.; Park, H.; Jang, G.R.; Park, J.H.; Bae, J.H. Peg-in-Hole Assembly with Dual-Arm Robot and Dexterous Robot Hands. IEEE Robot. Autom. Lett. 2022, 7, 8566–8573. [Google Scholar] [CrossRef]
  30. Wu, W.; Liu, K.; Wang, T. Robot assembly theory and simulation of circular-rectangular compound peg-in-hole. Robotica 2022, 40, 3306–3339. [Google Scholar] [CrossRef]
  31. Salem, A.; Karayiannidis, Y. Robotic Assembly of Rounded Parts with and Without Threads. IEEE Robot. Autom. Lett. 2020, 5, 2467–2474. [Google Scholar] [CrossRef]
  32. Jiang, Y.; Huang, Z.; Yang, B.; Yang, W. A review of robotic assembly strategies for the full operation procedure: Planning, execution and evaluation. Robot. Comput.-Integr. Manuf. 2022, 78, 102366. [Google Scholar] [CrossRef]
  33. Elandt, R.; Drumwright, E.; Sherman, M.; Ruina, A. A pressure field model for fast, robust approximation of net contact force and moment between nominally rigid objects. arXiv 2019, arXiv:1904.11433. [Google Scholar]
  34. Boresi, A.P.; Schmidt, R.J. Advanced Mechanics of Mmaterials; John Wiley & Sons: Hoboken, NJ, USA, 2004. [Google Scholar]
  35. Kadian, A.; Truong, J.; Gokaslan, A.; Clegg, A.; Wijmans, E.; Lee, S.; Savva, M.; Chernova, S.; Batra, D. Sim2real predictivity: Does evaluation in simulation predict real-world performance? IEEE Robot. Autom. Lett. 2020, 5, 6670–6677. [Google Scholar]
  36. Kirk, D.E. Optimal Control Theory: An Introduction; Courier Corporation: New York, NY, USA, 2004. [Google Scholar]
  37. Liu, C.; Li, Z. Force tracking smooth adaptive admittance control in unknown environment. Robotica 2023, 1–21. [Google Scholar] [CrossRef]
  38. Ijspeert, A.J.; Nakanishi, J.; Schaal, S. Trajectory formation for imitation with nonlinear dynamical systems. In Proceedings of the 2001 IEEE/RSJ International Conference on Intelligent Robots and Systems, Wailea, HI, USA, 29 October–3 November 2001; Expanding the Societal Role of Robotics in the the Next Millennium (Cat. No. 01CH37180). Volume 2, pp. 752–757. [Google Scholar]
Figure 1. Environment description.
Figure 1. Environment description.
Machines 11 00741 g001
Figure 2. Input and output of simulator.
Figure 2. Input and output of simulator.
Machines 11 00741 g002
Figure 3. Definition of terms for geometric analysis of part mating. The red circles represent the contact positions. (a) Geometry during approach. (b) Geometry during chamfer crossing. (c) Geometry during One-Point Contact. (d) Geometry during Two-Point Contact.
Figure 3. Definition of terms for geometric analysis of part mating. The red circles represent the contact positions. (a) Geometry during approach. (b) Geometry during chamfer crossing. (c) Geometry during One-Point Contact. (d) Geometry during Two-Point Contact.
Machines 11 00741 g003
Figure 4. Insertion Force (Fx) vs. Insertion Depth (l) at different x P after depth shifting, where CFC symbolizes “Chamfer Contact”, 1PC symbolizes “1 Point Contact”, S2PC symbolizes “Start 2 Point Contact”, E2PC symbolizes “End 2 Point Contact”.
Figure 4. Insertion Force (Fx) vs. Insertion Depth (l) at different x P after depth shifting, where CFC symbolizes “Chamfer Contact”, 1PC symbolizes “1 Point Contact”, S2PC symbolizes “Start 2 Point Contact”, E2PC symbolizes “End 2 Point Contact”.
Machines 11 00741 g004
Figure 5. Contact force of Whitney’s theory vs. hydroelastic model at same shifted insertion depth. (a) Horizontal force ( F x )—simulated vs. theoretical. (b) Vertical force ( F z )—simulated vs. theoretical.
Figure 5. Contact force of Whitney’s theory vs. hydroelastic model at same shifted insertion depth. (a) Horizontal force ( F x )—simulated vs. theoretical. (b) Vertical force ( F z )—simulated vs. theoretical.
Machines 11 00741 g005
Figure 6. Bilevel Framework.
Figure 6. Bilevel Framework.
Machines 11 00741 g006
Figure 7. all variations in iteration.
Figure 7. all variations in iteration.
Machines 11 00741 g007
Figure 8. Optimal trajectory in each iteration.
Figure 8. Optimal trajectory in each iteration.
Machines 11 00741 g008
Figure 9. Mean and variance bands of one−level optimization and bilevel optimization for different starting positions.
Figure 9. Mean and variance bands of one−level optimization and bilevel optimization for different starting positions.
Machines 11 00741 g009
Table 1. Insertion forces and angles for various insertion stages reproduced from [27].
Table 1. Insertion forces and angles for various insertion stages reproduced from [27].
Chamfer Crossing
(For l = z to 0)
F x = K x ( U o U )
F z = K x K θ A ( z / tan α ) B D E
θ = θ 0 + K x ( z / tan α ) ( L g B r A ) ( K x L g 2 + K θ ) B K x L g r A
One-point Contact
(For l = 0 to l 2 )
F x = K x ( U o U )
F z = μ K x K θ ( ϵ 0 + θ 0 ) C ( L g ) + K θ
θ = C ( ϵ 0 + L g θ 0 ) + K θ θ 0 C ( L g ) + K θ
Two-point Contact ( l 2 )
(For l 2 onwards)
F x = K x L g ( θ 0 c D / ) K x ϵ 0
F z = 2 μ [ D ( θ 0 c D / ) + F ] + μ ( 1 + μ d [ G ( θ 0 c D / ) F / L g ]
θ = θ 0 + K x ϵ 0 ( L g l 2 μ r ) K x L g 2 + K θ K x L g ( l 2 + μ r )
where
A = cos α + μ sin α
B = sin α μ cos α
C = K x ( L g μ r )
D = K x L g 2 + K θ
E = K x L g r A
F = K x L g ϵ 0
G = K x L g
ϵ 0 = ϵ 0 c R
ϵ 0 = ϵ 0 + c R
Table 2. Relative error between hydroelastic model and Whitney’s theory (%).
Table 2. Relative error between hydroelastic model and Whitney’s theory (%).
Offset x P = 0.0005 m x P = 0.0010 m x P = 0.0015 m x P = 0.0020 m
initial contact force of F x 10.75756.92880.97802.9370
final contact force of F x 0.29180.36860.50880.8534
initial contact force of F z 0.0262.74555.09617.8345
final contact force of F z 12.731411.706710.41387.3891
final insertion angle25.743722.914119.209814.3666
Table 3. r ( F x ) and r ( F z ) .
Table 3. r ( F x ) and r ( F z ) .
VariablePearson Correlation Coefficient r
F x 0.9954
F z 0.9032
Table 4. User-defined parameters.
Table 4. User-defined parameters.
ParameterValueUnitsDescription
k x 1000N/mstiffness
k y 1000N/mstiffness
k θ 1Nm/radstiffness
x H 0minitial pose
x ˜ H N ( μ H , σ x 2 ) msensed pose
y H −0.01minitial pose
θ H 0radinitial pose
α 1 10,000-weight factor
α 2 20-weight factor
α 3 10-weight factor
μ 0.6-friction
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Yang, L.; Ariffin, M.Z.; Lou, B.; Lv, C.; Campolo, D. A Planning Framework for Robotic Insertion Tasks via Hydroelastic Contact Model. Machines 2023, 11, 741. https://doi.org/10.3390/machines11070741

AMA Style

Yang L, Ariffin MZ, Lou B, Lv C, Campolo D. A Planning Framework for Robotic Insertion Tasks via Hydroelastic Contact Model. Machines. 2023; 11(7):741. https://doi.org/10.3390/machines11070741

Chicago/Turabian Style

Yang, Lin, Mohammad Zaidi Ariffin, Baichuan Lou, Chen Lv, and Domenico Campolo. 2023. "A Planning Framework for Robotic Insertion Tasks via Hydroelastic Contact Model" Machines 11, no. 7: 741. https://doi.org/10.3390/machines11070741

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop