Adaptive Control for Robotic Manipulation of Deformable Linear Objects with Offline and Online Learning of Unknown Models
Abstract
The deformable linear objects (DLOs) are common in both industrial and domestic applications, such as wires, cables, ropes. Because of its highly deformable nature, it is difficult for the robot to reproduce human’s dexterous skills on DLOs. In this paper, the unknown deformation model is estimated in both the offline and online manners. The offline learning aims to provide a good approximation prior to the manipulation task, while the online learning aims to compensate the errors due to insufficient training (e.g. limited datasets) in the offline phase. The offline module works by constructing a series of supervised neural networks (NNs), then the online module receives the learning results directly and further updates them with the technique of adaptive NNs. A new adaptive controller is also proposed to allow the robot to perform manipulation tasks concurrently in the online phase. The stability of the closed-loop system and the convergence of task errors are rigorously proved with Lyapunov method. Simulation studies are presented to illustrate the performance of the proposed method.
I Introduction
The linear deformable objects (DLOs), such as wires, cables, ropes, are highly deformable and exhibit many degrees of freedom (DoFs). The demand on manipulating DLOs is reflected in many applications. For example, sutures are manipulated in suturing to hold tissues together after surgery [1, 2]. In colonoscopy, the shape of the flexible endoscope is controlled to follow the curves of the colon [3]. In 3C manufacturing, USB wires with different colors are sorted to follow the desired color code [4]. Other applications in industry and daily life include inserting a wire [5], threading a needle [6], harnessing a cable [7] or knitting [8].
Different from rigid objects, it is usually difficult to obtain the exact model of deformable objects (and also DLOs), due to the highly deformable nature, in the sense that it is unknown how the motion of robot can affect the change of deformable objects. A review on modeling deformable objects can be found in [9] and [10]. In particular, the model of mass-damper-spring was proposed to describe the deformation of unknown rheological objects in [11]. In [12], the finite-element method was employed to model the soft objects in 3D space. An analytic formulation was proposed in [13, 14] to describe the shape of the DLO and then find its equilibrium configurations, by solving the optimal control problems. In [15, 16], physics engines were utilized to predict the change of the DLO under different sampled control commands then incorporated to sample-based motion planning algorithms. The computation complexity of modeling DLOs in the model-structure-based methods is usually high. Besides, they require the information of the DLO’s structure which is commonly unknown or difficult to describe in reality, and the modeling errors between analysis and reality may affect the manipulation performance.
Data-driven approaches have also been applied to approximate the deformation, without studying the complex dynamics of DLOs beforehand. A model-based reinforcement learning (RL) approach was proposed for robots to control the shape of the DLO in [17], with the current shape as the input and the manipulation policy as the output. In [18], a deep-neural-network-based dynamics model was trained to predict the future shape of the DLO given the current shape and the action. The aforementioned data-driven training methods were done offline before the formal manipulation, which was limited by the generalization ability to the DLO’s shape or motion never seen in the training dataset or the changes of the DLO’s physical properties. Several online data-driven approaches were also proposed to approximate the deformation model. The least squares estimation was used in [19, 20] to estimate the Jacobian matrix (i.e. the matrix relating the change of the DLO to the velocity inputs of the robot) online using only recent data. In [21, 22], the estimated Jacobian matrix was updated online by gradient descent of the approximation errors. In [23], a deep neural network with linear activation function was proposed to directly predict the required control velocity with online training. Compared to the offline methods, the approximation accuracy in the online ones is limited, and the results are only valid in a local sense without exploring the overall configuration of the DLO, and hence the re-approximation is usually required even when the same configuration of the DLO appears again during the manipulation.
This paper considers the problem of robotic manipulation of DLOs with unknown deformation models, where the unknown deformation model is estimated with both the offline and the online learning methods to combine the advantages. In the offline phase, a series of supervised NNs are trained to estimate the Jacobian matrix, by collecting the pairs of the velocity of the robot end effector and the current shape of the DLO. Such estimation model is further updated online during the manipulation with adaption techniques, to compensate the errors due to insufficient training in the offline phase or the changes of the DLO’s properties. The results obtained in the offline phase can be directly migrated to the online phase without any additional formatting. Hence, both complement each other. In addition, an adaptive controller is proposed to manipulate the feature along the DLO into the desired position, by referring to the estimated deformation model. With Lyapunov methods, it is rigorously shown that the convergence of the task errors to zero is guaranteed. Simulation studies are presented to illustrate the performance of the proposed scheme.
II Preliminaries
Consider an illustration of robotic manipulation of DLOs shown in Fig. 1, where the robot grasps and manipulates the DLO to achieve the desired task, by controlling the motion of its end effector. The end tip and also the overall shape of the DLO can be measured with sensors. In this paper, the manipulation task is simplified as moving the target point on the DLO to the desired position.

Then, the velocity of the target point on the DLO can be related to the velocity of the robot end effector using the Jacobian matrix. Compared to [19, 20, 23, 21, 22], the overall shape of the DLO is considered in the Jacobian matrix as
(1) |
where represents the overall shape of the DLO. It can be specifically represented as , where is the position of the feature along the DLO and is the number of features, is the position of the target point on the DLO, is the pose of the robot end effector, is the Jacobian matrix of the DLO with the shape , which is bounded.
Note that any point along the DLO can be set as the target point, and different points correspond to different Jacobian matrices. Equation (1) can be extended to features as where is the Jacobian matrix for the feature. For the sake of illustration, the target point in this paper is referred to as and the Jacobian matrix is referred to as . Note that the target point in specific manipulation tasks can be defined as one of the features (i.e. , ).
The Jacobian matrix is dependent on the deformation model of DLOs, which may involve many parameters [24, 25, 26]. Although the parameters can be experimentally calibrated, any modeling bias during the calibration compromises the accuracy of the model. Since the material and dimension vary significantly among different DLOs, and the length of the same DLO also changes when it is manipulated, the model-based calibration methods are not effective for accommodating variations in the material, dimension, and length of the DLO.
When the deformation model is unknown, the Jacobian matrix is also unknown. In this paper, the unknown Jacobian matrix will be estimated in both the offline (before manipulation) and online (during manipulation) manners. The estimated Jacobian matrix, denoted as , will be employed in the control law to relate the velocity of the robot end effector to the velocity of the target point.
The control input is set as the velocity of the robot end effector as [19, 20, 23, 21, 22]
(2) |
where denotes the input. The structure of the proposed scheme is shown in Fig. 2. In the phase of offline learning, the dataset can be collected by controlling the robot end effector to follow a set of time-varying paths in an open-loop manner, while recording the variations of features. In the phase of online learning, the robot end effector is controlled to manipulate the target point to the desired position, by keeping updating the previously learnt model.

III Offline Modeling of DLOs
Prior to the formal manipulation, a data-driven learning method is employed to obtain the initial model of DLOs. As the radial-basis-function neural network (RBFN) is commonly used in adaptive control and machine learning [27], the actual Jacobian matrix is represented with RBFN in this paper as
(3) |
where is the matrix of actual weights of the NN (which are unknown), represents the vector of activation functions. In addition, . An example of the activation function is the Gaussian radial function, that is
(4) |
where is the input vector of the NN.
Equation (3) can be decomposed as
(5) |
where is the column of the Jacobian matrix, and is the to rows of . Then (1) can be written as
(6) |
The estimated Jacobian matrix is represented as
(7) |
where is the matrix of estimated weights. The approximation error is specified as
(8) | ||||

In the offline learning phase, the robot end effector is controlled to move in an open-loop manner to collect the training dataset first, which contains . As these data can be obtained concurrently, NNs are trained for all the Jacobian matrices of and for the sake of efficiency. After all the Jacobian matrices are well estimated by the end of the offline phase, the target point can also be chosen as one of the other features, by replacing the Jacobian matrix with the corresponding one. The structure of the whole NNs is shown in Fig. 3.
Next, the RBF network is trained with the collected data. Considering the noise and the outliers in the data, the smooth loss is used for training, which is specified as
(9) |
where
(10) |
where is the element of .
The k-means clustering on sampled training data is used to calculate the initial value of and . Then, all parameters including , and are updated by the back propagation of the loss in (9). The Adam optimizer [28] is used for training. Note that the estimated parameters of the NN in the offline phase can be directly migrated to the online phase. In the online phase, the parameters will be further updated to meet the specific manipulation task.
IV Adaptive Control with Online Learning
Due to insufficient training data or changes of the parameters of DLOs, the approximation errors may still exist by the end of the offline learning. In this section, an adaptive control scheme is proposed for robotic manipulation of DLOs, by treating the estimated Jacobian matrix as an initial approximation then further updating it during manipulation.
The control input is specified as
(11) |
where is the Moore-Penrose pseudo-inverse of the estimated Jacobian matrix, and it is assumed that is full row rank and always exists. In addition, where specifies the desired position of the target point, and is the control gain, which is diagonal and positive definite.
The online updating law of the row of is specified as
(12) |
where is the element of the vector , and is a positive-definite matrix, and is a positive scalar.
The proposed control scheme by (11) and (12) has several advantages as
-
-
The well estimated weights of the NN in the offline phase can be directly migrated as the initial values in the online phase.
-
-
It allows the robot to manipulate the DLO by following the desired path (i.e. ) and also update the unknown deformation model concurrently.
-
-
The update is driven by both the approximation errors (i.e. ) and the task errors (i.e. ), ensuring the faster convergence of the weights of the NN.
Substituting (11) into (2), the closed-loop equation is obtained as
(13) |
Multiplying both sides of (13) with , we have
(14) |
Note that
(15) |
Substituting (15) into (14) and using (8) yields
(16) |
That is, the approximation errors are now expressed in terms of the task errors. Hence the convergence of to zero naturally guarantees the realization of manipulation task.
To prove the convergence, the Lyapunov-like candidate is given as
(17) |
Differentiating (17) with respect to time and substituting (16) into it, we have
(18) | ||||
Next substituting the update law (12) into (18) and using (8), we have
(19) | ||||
Since and , is bounded. The boundedness of ensures the boundedness of and . From (13), is also bounded. The boundedness of ensures the boundedness of from (1). Hence, is uniformly continuous. From (19), it can be shown that . Then, it follows [29] that as . Therefore, the manipulation task is achieved.
V Simulation Studies
Simulations are carried out to study the performance of the proposed method. The simulation environment is built in Unity [30], a 3D game development platform. The simulation of the DLO is based on Obi [31], a unified particle physics for Unity in which realistic deformable objects can be created, such as ropes, cloth, fluids and other softbodies. The ROS [32] and ROS# [33] are used for the communication between the physical simulation in Unity and the control program written in Python scripts. All the simulation and computation are done on a Ubuntu 18.04 desktop (CPU: Intel i7-10700, GPU: Nvidia GeForce RTX 3070, RAM: 16GB).
The simulation scene is shown in Fig. 5. The DLO is modeled with the rod blueprint in Obi Rope package, which is built by chaining oriented particles using stretch/shear and bend/twist constraints. Its length is about 0.5m and radius is about 5mm. The blue points represent the 10 features along the DLO, and the red point represents the target point. Note that one of the features is chosen as the target point for convenience, so the red point is also a feature. The virtual green point in the simulation scene represents the desired position of the target point. The left end of the DLO is grasped and fixed by one robot, and the right end of the DLO is grasped by another robot and the linear velocity of the robot end effector is treated as the control input. This paper considers the positions of features and target point in 3-D world coordinate system, where the parameters are set as in following simulations.
V-A Offline Learning
In the offline phase of modeling, the unknown Jacobian matrix was approximated with the proposed NN. First, the training data was collected by controlling the robot end effector to continuously move in the workspace. In each time period , a desired position was randomly set in the workspace at the beginning. The end effector was controlled to reach the desired position at the end of . The data of in the process were recorded for the subsequent training. The velocities were obtained by differentiating the corresponding positions. The NN trained with more data would have better modeling accuracy, but more time would be required to collect the data.
A RBFN with 256 neurons in the middle layer (i.e. ) was trained to model the Jacobian matrices of all the features along the DLO. The PyTorch [34] with CUDA support was used for the implementation of the offline training. The training data was adjusted to an appropriate range which would benefit the training of NN, and the in (10) was set as .


To test how the amount of training data would influence the performance of the NN, two NNs were trained with 5-minute data and 60-minute data separately. Fig. 4 shows the performance of the two trained NNs on the testset of another 1-minute data. In this figure, the target point was set as the fifth feature on the DLO. First, the comparison between the measured velocities of the target point (i.e. ) and the predicted velocities of it using the estimated Jacobian matrix (i.e. ) is shown. Then, the comparison between the velocities of the robot end effector (i.e. ) and the predicted velocities of it using the inverse of the estimated Jacobian matrix (i.e. ) is also shown. Notice that limited by the accuracy of the DLO simulator, the measured velocities of the target point obtained by differentiating its positions contained noise, which also made the calculated look unsmooth. It is illustrated that the estimated Jacobian matrix output by the NN trained with only 5-minute data can describe the relationship between the velocity of the target point and the velocity of robot end effector with sufficient accuracy, and the 60-minute training data can enable the NN to output a more accurate Jacobian matrix.
V-B Manipulation with Online Learning















In the phase of the manipulation, the robot end effector was controlled to move the target point on the DLO to the desired position. The robot was referring to the trained NN in the offline phase and updating it again in parallel to the manipulation task. Three manipulation tasks were designed to test the performance of the proposed adaptive control approach with online learning.
The first manipulation task is shown in Fig. 5. In this scenario, the target point was set as the fifth feature, which was manipulated to a fixed desired position. The NN trained with only 5-minute data in the offline phase was used. To show the effect of the online updating, the manipulation task was repeated twice, i.e. with or without the online updating. Fig. 6 shows the comparison of these two manipulation processes, where both of them achieved the task but the online updating of the NN enabled the target point to be manipulated to the desired position faster, since the NN was updated to better adapt to the specific task using the updating law (12). The parameters in (11) and (12) were set as , , .
In the second manipulation task, the target point was controlled to follow the desired path, which was planned manually beforehand. The manipulation task is shown in Fig. 7, in which the DLO was manipulated to encircle the cylinder. The target point was set as the sixth feature. The NN trained with 5-minute data in the offline phase was used. The manipulation task was also repeated twice, i.e. with or without the online updating. The comparison is shown in Fig. 9, where the position error of the manipulation with online updating was smaller. This was mainly because the online updating guaranteed the smaller model estimation error and hence led to the smaller manipulation error from (16). The parameters in (11) and (12) were set as , , . The results prove that the proposed control scheme can be used to achieve the relatively complicated manipulation task with a single target point under the proper planning.



In the third manipulation task, multiple target points along the DLO were manipulated sequentially. Each target point was assigned a desired position. When the first target point was located at the desired position, it was fixed by external forces (e.g. hammering a nail on it). Then, the next target point was activated, which was also manipulated then fixed at its desired position. Such process was repeated until all the target points were fixed at their desired positions. Noted that the overall length of the DLO would change when the previous target points were fixed. Thus, the deformation model of the DLO was changing, which made the task challenging. The manipulation task is shown in Fig. 8. The robot was controlled to manipulate the DLO to a overall shape like letter “U”. Since the DLO was on a table, the vertical direction of the control input was manually set as . Other settings were all the same as those in the previous tasks. The three target points were set as the second, sixth and ninth features. The NN trained with 60-minute data in the offline phase was used. Fig. 10 shows the manipulation error during the task. The parameters in (11) and (12) were set as , , .
Remark: The singular configurations of the estimated Jacobian matrix can be found by carrying out the singular value decomposition, i.e. . Hence, a small will result in the singularity and may lead to a large control input from (11). In actual implementations, those terms with small can be simply ignored in the summation to deal with the singular issues.
VI Conclusions
This paper considers the robotic manipulation of DLOs with unknown deformation model, where the unknown model has been estimated in both the offline and the online phases. Both phases complement each other. That is, the offline learning can well initiate the estimation for the manipulation task, and the online learning can further reduce the approximation errors during the manipulation. The adaptive control scheme is proposed to achieve the manipulation task in the presence of the unknown deformation model. The convergence of the task errors has been rigorously proved with Lyapunov methods, and simulation results in different scenarios have been presented. Future works will be devoted to the validation of the proposed method on a real robot.
References
- [1] G. J. Xeroulis, J. Park, C.-A. Moulton, R. K. Reznick, V. LeBlanc, and A. Dubrowski, “Teaching suturing and knot-tying skills to medical students: A randomized controlled study comparing computer-based video instruction and (concurrent and summary) expert feedback,” Surgery, vol. 141, no. 4, pp. 442–449, 2007.
- [2] L. Cao, X. Li, P. T. Phan, A. M. H. Tiong, H. L. Kaan, J. Liu, W. Lai, Y. Huang, H. M. Le, M. Miyasaka, K. Y. Ho, P. W. Y. Chiu, and S. J. Phee, “Sewing up the wounds: A robotic suturing system for flexible endoscopy,” IEEE Robotics Automation Magazine, vol. 27, no. 3, pp. 45–54, 2020.
- [3] A. Loeve, P. Breedveld, and J. Dankelman, “Scopes too flexible…and too stiff,” IEEE Pulse, vol. 1, no. 3, pp. 26–41, 2010.
- [4] X. Li, X. Su, Y. Gao, and Y. Liu, “Vision-based robotic grasping and manipulation of usb wires,” in 2018 IEEE International Conference on Robotics and Automation (ICRA), 2018, pp. 3482–3487.
- [5] F. Zhong, Y. Wang, Z. Wang, and Y. Liu, “Dual-arm robotic needle insertion with active tissue deformation for autonomous suturing,” IEEE Robotics and Automation Letters, vol. 4, no. 3, pp. 2669–2676, 2019.
- [6] Weifu Wang, D. Berenson, and D. Balkcom, “An online method for tight-tolerance insertion tasks for string and rope,” in 2015 IEEE International Conference on Robotics and Automation (ICRA), 2015, pp. 2488–2495.
- [7] T. Tang, C. Wang, and M. Tomizuka, “A framework for manipulating deformable linear objects by coherent point drift,” IEEE Robotics and Automation Letters, vol. 3, no. 4, pp. 3426–3433, 2018.
- [8] M. Jovanović, M. Vučić, B. Tepavčević, M. Raković, and J. Tasevski, “Robotic knitting in string art as a tool for creative design processes,” in Advances in Service and Industrial Robotics, K. Berns and D. Görges, Eds. Cham: Springer International Publishing, 2020, pp. 179–187.
- [9] P. Jiménez, “Survey on model-based manipulation planning of deformable objects,” Robotics and Computer-Integrated Manufacturing, vol. 28, no. 2, pp. 154–163, 2012.
- [10] J. Sanchez, J.-A. Corrales, B.-C. Bouzgarrou, and Y. Mezouar, “Robotic manipulation and sensing of deformable objects in domestic and industrial applications: a survey,” The International Journal of Robotics Research, vol. 37, no. 7, pp. 688–716, 2018.
- [11] M. Higashimori, K. Yoshimoto, and M. Kaneko, “Active shaping of an unknown rheological object based on deformation decomposition into elasticity and plasticity,” in 2010 IEEE International Conference on Robotics and Automation, 2010, pp. 5120–5126.
- [12] H. Lin, F. Guo, F. Wang, and Y.-B. Jia, “Picking up a soft 3d object by “feeling” the grip,” The International Journal of Robotics Research, vol. 34, no. 11, pp. 1361–1384, 2015.
- [13] T. Bretl and Z. McCarthy, “Mechanics and quasi-static manipulation of planar elastic kinematic chains,” IEEE Transactions on Robotics, vol. 29, no. 1, pp. 1–14, 2013.
- [14] T. Bretl and Z. McCarthy, “Quasi-static manipulation of a kirchhoff elastic rod based on a geometric analysis of equilibrium configurations,” The International Journal of Robotics Research, vol. 33, no. 1, pp. 48–68, 2014.
- [15] O. Roussel and M. Taïx, “Deformable linear object manipulation planning with contacts,” in Full day workshop at IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), 2014, p. 6.
- [16] N. Alvarez and K. Yamazaki, “An interactive simulator for deformable linear objects manipulation planning,” in 2016 IEEE International Conference on Simulation, Modeling, and Programming for Autonomous Robots (SIMPAR), 2016, pp. 259–267.
- [17] H. Han, G. Paul, and T. Matsubara, “Model-based reinforcement learning approach for deformable linear object manipulation,” in 2017 13th IEEE Conference on Automation Science and Engineering (CASE), 2017, pp. 750–755.
- [18] M. Yan, Y. Zhu, N. Jin, and J. Bohg, “Self-supervised learning of state estimation for manipulating deformable linear objects,” IEEE Robotics and Automation Letters, vol. 5, no. 2, pp. 2372–2379, 2020.
- [19] J. Zhu, B. Navarro, P. Fraisse, A. Crosnier, and A. Cherubini, “Dual-arm robotic manipulation of flexible cables,” in 2018 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), 2018, pp. 479–484.
- [20] R. Lagneau, A. Krupa, and M. Marchal, “Automatic shape control of deformable wires based on model-free visual servoing,” IEEE Robotics and Automation Letters, vol. 5, no. 4, pp. 5252–5259, 2020.
- [21] D. Navarro-Alarcon, H. M. Yip, Z. Wang, Y. Liu, F. Zhong, T. Zhang, and P. Li, “Automatic 3-d manipulation of soft objects by robotic arms with an adaptive deformation model,” IEEE Transactions on Robotics, vol. 32, no. 2, pp. 429–441, 2016.
- [22] D. Navarro-Alarcon and Y. Liu, “Fourier-based shape servoing: A new feedback method to actively deform soft objects into desired 2-d image contours,” IEEE Transactions on Robotics, vol. 34, no. 1, pp. 272–279, 2018.
- [23] Z. Hu, T. Han, P. Sun, J. Pan, and D. Manocha, “3-d deformable object manipulation using deep neural networks,” IEEE Robotics and Automation Letters, vol. 4, no. 4, pp. 4255–4261, 2019.
- [24] R. W. Ogden, Non-linear elastic deformations. Courier Corporation, 1997.
- [25] D. Henrich and H. Wörn, Robot manipulation of deformable objects. Springer Science & Business Media, 2012.
- [26] M. H. Sadd, Elasticity: theory, applications, and numerics. Academic Press, 2009.
- [27] X. Li and C. C. Cheah, “Adaptive neural network control of robot based on a unified objective bound,” IEEE Transactions on Control Systems Technology, vol. 22, no. 3, pp. 1032–1043, 2014.
- [28] D. P. Kingma and J. Ba, “Adam: A method for stochastic optimization,” arXiv preprint arXiv:1412.6980, 2014.
- [29] S. Arimoto, Control theory of nonlinear mechanical systems. Oxford University Press, 1996.
- [30] U. Technologies. (2021) Unity real-time development platform. [Online]. Available: https://unity.com/
- [31] V. M. Studio. (2019) Obi - Unified particle physics for Unity 3D. [Online]. Available: http://obi.virtualmethodstudio.com/
- [32] M. Quigley, K. Conley, B. Gerkey, J. Faust, T. Foote, J. Leibs, R. Wheeler, A. Y. Ng, et al., “ROS: an open-source robot operating system,” in ICRA workshop on open source software, vol. 3, no. 3.2. Kobe, Japan, 2009, p. 5.
- [33] M. Bischoff. (2021) ROS#. [Online]. Available: https://github.com/siemens/ros-sharp
- [34] A. Paszke, S. Gross, F. Massa, A. Lerer, J. Bradbury, G. Chanan, T. Killeen, Z. Lin, N. Gimelshein, L. Antiga, A. Desmaison, A. Kopf, E. Yang, Z. DeVito, M. Raison, A. Tejani, S. Chilamkurthy, B. Steiner, L. Fang, J. Bai, and S. Chintala, “Pytorch: An imperative style, high-performance deep learning library,” in Advances in Neural Information Processing Systems 32. Curran Associates, Inc., 2019, pp. 8024–8035.