A Gravity-Compensation Algorithm for the Haptic Device Based on
the Principle of Virtual Work and BP Neural Network
Shuo Wang, Zhiyuan Yan, Zhengxin Yang
and Zhijiang Du
*
State Key Laboratory of Robotics and System, Harbin Institute of Technology, Xidazhi Street, Harbin, China
*
hitwangshuo@foxmail.com
Keywords: Haptic device, Gravity-compensation, Principle of virtual work, BP neural network.
Abstract: The haptic device is the key facility in the master-slave minimally invasive surgery system, a gravity-
compensation algorithm is proposed for this device. The structure of this device mentioned in this paper is a
combination of serial and parallel structure, and it has 6 degrees of freedom. 3 motors are installed at 3 active
joints respectively. In order to establish the dynamic equation of the haptic device, the device is simplified
and the torque which is used to compensate the gravity is calculated by the principle of virtual work (Codourey
A, 1998). Then the whole process of gravity-compensation is simulated under the environment of a dynamic
software. After the comparison between the theoretical model and the simulation result, errors are shown and
compensated through BP neural network, the performance of the gravity-compensation is improved.
1 INTRODUCTION
The master-slave minimally invasive surgery system
has been widely used, it has numbers of advantages
and they are recognized by the public (Okamura A M,
2011). The haptic device is very important in the
whole system for the surgeon relies on it to feel the
feedback force. The haptic device should not only
meets the needs of high stiffness, low damping and
small inertia, but also be able to compensate its own
gravity (Wang and Gosselin, 1998). The methods
which can realize gravity-compensation can be
classified as mechanical method and dynamic
method. Mechanical methods mainly include
counterweight method, equivalent mass method and
spring compensation method (Zhang L N, 2013);
dynamic methods mainly contain Newton-Euler
method, virtual work method and Lagrange method
(You W, 2008).
In order to simplify the modelling process, the
principle of virtual work is used to establish the
dynamic model, it provides a theoretical basis for
gravity-compensation. Then the haptic device is
simulated by relative software and the simulation
torque is obtained. After comparing the theoretical
torque and simulation torque, errors are found. Then
BP neural network is used to compensate the errors
(Wu B, 2016).
2 HAPTIC DEVICE
The haptic device is made by the serial part and
parallel part, as shown in Figure 1. It has 6 degrees of
freedom, the parallel part has 3 degrees of freedom
which are used to control the position of the slave
device, the 3 degrees of freedom in the serial part
controls the posture of the slave device. The gravity-
compensation mentioned in this paper is carried out
by the parallel part, and the gravity-compensation of
the serial part is not discussed.
Figure 1: The haptic device.
The parallel part consists of 3 parts, namely
moving platform, static platform and 3 identical
branches, they are shown in Figure 2. Each branch has