1. Introduction
In the manufacturing process of molds, aircraft panels, sculptures, etc., grinding and polishing are used to reduce the surface roughness and improve the machining accuracy [
1,
2]. However, most grinding and polishing operations are still performed manually, resulting in low manufacturing efficiency, poor workpiece surface quality, and worker health problems [
3,
4]. The automatic grinding and polishing processes represented by computer numerical control machine tools (CNCs) and industrial robots have become the main solutions [
5,
6]. CNCs not only have excellent stiffness and high precision positioning, but can also concurrently control trajectory, pose, and force [
7]. However, the grinding space of CNCs is small, they have poor flexibility, and the machine tools need to be designed individually for large-scale special-shaped surfaces, which limit the application [
8]. Robots have the advantages of a large working range, high flexibility, and have gradually become a research hot-spot in the field of grinding and polishing.
Robot grinding is a typical constrained operation. According to Preston’s law, the amount of workpieces removed increases monotonically with the increase in grinding force, tool speed, and residence time, the most important of which is the control of the grinding force [
9]. Therefore, controlling the robot end contact force is of great significance to improve the surface quality [
10,
11]. However, applying position-based industrial robots directly to grinding and polishing processes involving contact motion is not straightforward [
2,
12]. An accurate and smooth contact force control method is the key to realize high-quality automatic grinding and polishing of robots.
Robot end contact force control methods are mainly divided into passive force control [
13,
14] and active force control [
15,
16]. Passive force control is achieved through energy absorption or the storage of the auxiliary flexibility mechanism, and the robot is still in position control mode [
17,
18]. Typical force control devices mainly include voice coil motor actuators [
19,
20], parallel mechanism actuators [
21,
22], pneumatic actuators [
23,
24,
25], mechanically flexible structures [
26,
27,
28,
29], force control joints [
30], etc. Chen et al. [
31] adopted a dual force sensor to decouple the dynamics between the macro robot, micro robot, and workpiece to achieve high-precision force control. However, passive force control requires the installation of an actuator at the robot end, which puts forward higher requirements for the design of the end actuator in the case of a limited end load of the robots. Therefore, active force control is more feasible.
Active force control is the use of designed control strategies to actively control force through the feedback of contact force information [
32]. In the aspect of force control algorithms, the design of the force controller is the most important, and the common force control algorithms are impedance control [
33,
34] and hybrid position/force control [
35,
36]. For uncertain environments, that is, when the stiffness and position of the environment are unknown, it is difficult to obtain an accurate model, which makes it difficult to achieve high-precision force tracking. There are three main solutions: (1) Indirect adjustment of the reference trajectory: the basic method is to identify environmental information, including stiffness and position [
37,
38]. (2) Direct adjustment of the reference trajectory: the basic method is to update the reference trajectory with prior information [
39,
40]. However, this method ignores the dynamic physical characteristics of the robot and the environment and usually results in a large force tracking error. (3) Adaptive variable impedance control: this method adaptively adjusts the controller parameters according to force feedback information [
41,
42,
43]. To improve the accuracy of force tracking, the researchers combined the adaptive algorithm with other force control methods to obtain better force control results [
44]. Examples include fuzzy logic control [
45], robust force control [
46], optimal control [
47], etc. Therefore, the key to establish a force tracking controller is to compensate for environmental disturbance, which is oriented to practical applications, and the control method should not be too complicated.
Force overshoot usually occurs when the robot end effector touches the workpiece. Although this problem only occurs in a short time, it will lead to poor system stability and low surface quality. Therefore, it is extremely important to ensure the stability of the system [
15]. The nonlinear feedback control method is used to plan the trajectory and contact force simultaneously to reduce the force overshoot [
48]. Roveda et al. [
49] adopted an impedance shaping method to reduce the influence of force overshoot on system stability and achieve stable contact state transition. These methods usually require accurate estimates of the environmental position and stiffness, and this approach is difficult.
In this work, a dual PID adaptive impedance control method is proposed to achieve smooth, stable, and high-precision robot end contact force control. PD is used to compensate for the force error, and PID is used to update the damping parameters to compensate for the environmental uncertainty. A nonlinear tracking differentiator is used to reduce the impact of the transitional contact state. The interference term of the end 6-Dof force sensor is compensated using the least square method to ensure the accuracy of force control. The stability, convergence, and effectiveness of the force control algorithm are verified with theoretical analysis, simulations, and experiments. Furthermore, the thin-walled workpiece is used in a robot grinding experiment to verify the accuracy of force control.
The remainder of this paper is organized as follows: In
Section 2, a nonlinear tracking differentiator is used to stabilize the contact transition state. In
Section 3, a position-based dual PID adaptive impedance control method is established to compensate for the uncertainty of environment. In
Section 4, the interference term of the 6-Dof force sensor is compensated for. The proposed method is verified in MATLAB/Simulink in
Section 5. In
Section 6, the effectiveness of the method is verified via force control and grinding experiments.
2. Modeling of Grinding System and Suppression of Contact Force Overshoot
A grinding robot system is established, as shown in
Figure 1. A 7-Axis Franka Emika Panda robot is used; a Dynpick 6-Dof force sensor (Type: WEF-6A200-4-RC24, the force measurement range is ±200 N and the moment measurement range is ±4 Nm. Manufacturer: WACOH-TECH. City: Tokyo. Country: Japan.), an analog IO module (Type: NET6043-S, 8-Channel 0-10V analog input module with resolution of 16-Bit. Manufacturer: HKTECH. City: Zhengzhou. Country: China.) and a grinding tool are installed at the end of the robot.
As shown in
Figure 2, with the robot and the workpiece set as a spring-damp-mass system, the contact process between the robot and the workpiece can be divided into three stages [
50].
Figure 2a shows that the robot does not have contact with the workpiece, and
Figure 2b shows the critical point of contact between the robot and the workpiece; the contact force is 0 N, and
Figure 2c shows the full contact between the robot and the workpiece. In
Figure 2d, From 0 to
the contact force between the robot and the environment is 0. From
to
, after a collision process, the contact force tends to be stable, but the collision process is short and nonlinear.
From
Figure 2d, it can be found that the oscillation of the robot from the free state to the contact state is inevitable. Smooth adjustment of the robot grinding force will improve the stability and grinding quality. According to the design principle of ADRC, a nonlinear tracking differentiator (NTD) is used to smooth the step signal of the desired force signal in the transition stage. The control mode is shown in
Figure 3.
Consider a two-order integrator series system:
where
is the target transition signal,
is the differential signal of the transition signal,
r is the model parameter, and
. If the control rate of the control parameter
u is set as a nonlinear function, a nonlinear tracking differentiator can be obtained:
Considering that the control period of the grinding robot is 1 ms, NTD in discrete form is adopted:
where
is sampling time. The fhan function is as follows:
where
,
h is the filter factor, and
h is slightly larger than the sampling time
.
To verify the NTD smoothing effect, we set the parameters of the impedance controller to
and
. The external environment stiffness was set to
. In NTD,
, and the simulation time was 4 s. In
Figure 4a, the 0–2 s desired force is −3 N, and the 2–4 s desired force is −5 N. In
Figure 4b, after NTD smoothing, the overshoot of the force is significantly reduced. The overshoot is reduced from 18.57% to 0.25% in 0–2 s. The overshoot is reduced from 5% to 0.2% in 2–4 s. It is found that the response time is slightly increased, but the system stability is enhanced, which is of great significance for the improvement of workpiece processing quality and system stability. It is verified in the force control system shown in
Figure 1; the experimental results are basically consistent with the simulation results, as shown in
Figure 4c.
4. 6-Dof Force Sensor Gravity Compensation Strategy
The gravity of the grinding tool generates components of force and moment in the sensor coordinate system. The force and moment
measured with the 6-Dof force sensor include: The grinding force
between the grinding tool and the workpiece, the gravity of the grinding tool
, the inertial force
generated by the grinding tool because of the movement (since the feed speed of the grinding tool changes very little, so that
), and the sensor zero drift
:
where the superscript
indicates that the reference coordinate system of the force is in the sensor coordinate system
.
Figure 7 shows the relationship between the world coordinate system
, the robot base coordinate system
, the end flange coordinate system
, the force sensor coordinate system
, and the grinding tool coordinate system
. The barycenter of the grinding tool is represented as
in the
system. Using pins to maintain the parallel relationship between the axes of the
and
system, the homogeneous transformation matrix
from
to
is:
where
is the rotation matrix and
is the vector of the sensor origin in the
system.
When there is no contact between the grinding tool and the workpiece, the sensor output signal is composed of the tool gravity and the sensor zero drift:
where
and
are the force and moment signals of the 6-Dof force sensor, respectively.
Using the tool gravity and barycenter to obtain the torque that acts on the
system of the force sensor:
Rewriting Equation (
38) in matrix form:
where
,
Selecting
N different poses of the robot and using the least squares solution:
The coordinate value of tool barycenter and constant in system is obtained.
To obtain the component of the grinding tool in the
system, it is necessary to consider the relationship between the
system and the
system. When the
system rotates around the
z axis of the
system, there is no effect on the force sensor output. Consider that the
system rotates around the
x-axis and the
y-axis of the
system. Then, the rotation matrix
between the
system and the
system is:
where
and
are the angle around the
x-axis and
y-axis of the
system, respectively.
The component force of the grinding tool gravity
G in the
system can be represented by the robot homogeneous transformation matrix:
Let .
According to Equation (
37) and Equation (
42):
Rewriting Equation (
43) in matrix form:
Taking
N different poses, we use Equation (
44) to construct the equations and rewrite them as:
The least square solution of Equation (
45) can be obtained as:
Then, the constant value of
and
is solved and, combined with Equation (
39), the torque zero drift values
and
of the 6-Dof force sensor can be obtained.
The gravity of the grinding tool is as follows: .
The angle value between the system and the system is as follows: , .
The identification results in
Table 1 and
Table 2 were obtained by selecting 10 groups of poses. The true gravity of the grinding tool is 8.542 N, which is only 0.414 N different from the identification result. We selected a trajectory and performed real-time gravity compensation.
Figure 8 shows the compensation results; the maximum disturbance after compensation is less than 0.1 N and 0.03 N·m, which verifies the accuracy and effect of gravity compensation.
6. Experimental Study
To verify the performance of the proposed control strategy, a robot force control platform is established, as shown in
Figure 11. Programming is performed in a MATLAB/Simulink environment using Simulink S-function block. The robot control frequency is 1KHz. The HKTECH NET6043-S analog IO module is connected to the robot controller through cables, the grinding force is read through the Simulink UDP module of the Industrial Personal Computer, and the grinding force signal is fed back to the robot control algorithm. Multiple groups of force control experiments are carried out on a flat surface, slope surface, and large curvature surface, respectively, as shown in
Figure 12. Finally, the grinding experiment is carried out on a thin-wall aluminum alloy 7050-T6 workpiece. The results of CIC, AVIC, and DPAVIC on the end force tracking are discussed.
6.1. Flat Surface Constant Force Control
The force control experiment was carried out on a flat surface, as shown in
Figure 12a. The end of the robot moved 0.3 m in the
x direction, and the force control direction was in the
z direction of the end effector. The desired force was set as
N, and the running time was 10 s. The control parameters of CIC, AVIC, and DPAVIC were set as follows:
CIC: .
AVIC: .
DPAVIC: , .
Figure 13 shows the robot end contact force control and end compensation displacement. It can be found that when CIC and AVIC are adopted, the overshoot of the system is large, 34.31% and 13.54% respectively, the force control error is 0.409 N and 0.25 N, and the adjustment time is long. When the DPAVIC force control strategy is adopted, the overshoot is 1.35% and the force control error is within ±0.2 N.
6.2. Slope Surface Constant Force Control
The end contact force was controlled on the slope surface shown in
Figure 12b. The desired force was set as
N and the running time was 10 s. The control parameters of the CIC, AVIC, and DPAVIC methods were set as follows:
CIC: .
AVIC: .
DPAVIC: , .
Figure 14 shows the control response curves of the end compensation displacement and the end contact force. It can be found that when CIC and AVIC are used, the overshoot of the system is 29.46% and 12.45%, respectively, and the force control error is 0.331 N and 0.247 N. When the DPAVIC force control strategy is adopted, the overshoot is less than 1.02%, and the error is within ±0.2 N.
6.3. Large Curvature Surface Constant Force Control
To ensure the force control effectiveness of the force control algorithm for curved surface parts, the force control platform shown in
Figure 12c was adopted. The desired contact force was set as
N and the running time was 10 s. The control parameters of the CIC, AVIC, and DPAVIC methods were set as:
CIC: .
AVIC: .
DPAVIC: .
Figure 15 shows the response curves of the end compensation displacement and the contact force. It can be found that when CIC and AVIC are adopted, the overshoot of the system is large, 10.26% and 7.25%, respectively, and the force control error is 0.336 N and 0.252 N. However, the overshoot and force error of DPAVIC are 1.51%, within ±0.2 N, respectively. Although the system response is slow with the DPAVIC method, the adjustment time is shorter.
6.4. Constant Force Grinding Experiment
According to the geometric model of the workpiece surface, the Cartesian space trajectory is planned, the specific grinding pose of the robot end effector is deduced via interpolation with the given feed speed, and the grinding trajectory of the joint space is obtained online with the inverse differential kinematics of the robot. According to the on-site machining requirements, the surface quality of the workpiece should be below Ra 0.3
m, the reference grinding force is 5 N, and the force fluctuation is ±0.2 N.
Table 4 shows the grinding process parameters. The CIC, AVIC, and DPAVIC control parameters are set to the same as the flate force control parameters.
As can be seen from
Figure 16, the force error in the CIC force tracking control method is far more than ±0.2 N, and the force control result of AVIC is slightly better than that of CIC, while the error of the DPAVIC method stays within ±0.2 N. This proves the ability of the method to improve the precision of force control.
Figure 17 shows the robot grinding process and the surface quality of the workpiece after grinding. To verify the effectiveness of the proposed method for improving machining quality, a JiTai TR200S roughometer was used to measure the surface roughness of the workpiece, a Dino-Lite microscope was used to photograph the grinding surface morphology, and a Mitotoyo Roughness Meter SJ-210 was used to measure surface waviness. As shown in
Figure 17b, 10 points on the workpiece surface are selected and the average of three measurements is taken.
Figure 18 shows the measured roughness of the workpiece. Compared with the CIC method, the average surface quality of the workpiece is improved from Ra 0.5
m to Ra 0.218
m.
Figure 19 shows the influence of the three force control methods on the workpiece surface waviness.
Figure 19a shows that when using the CIC method, the workpiece surface waviness fluctuates with the grinding force oscillation.
Figure 19b shows a slight reduction in waviness with AVIC compared with the CIC method.
Figure 19c shows the ability of the DPAVIC method to reduce the workpiece surface waviness, which has the lowest waviness compared with the other two methods. Therefore, the proposed method has the ability to suppress the external disturbance and reduce the force tracking error and fluctuation.
7. Conclusions
Force control is an important problem in robot contact operation. In order to achieve high efficiency and high-quality robot grinding, a position-based dual PID adaptive variable impedance control method is proposed, PD is used to compensate for the force error, and PID is used to update the impedance parameters to compensate for the environmental disturbance. An overshoot suppression strategy using a nonlinear tracking differentiator is presented to smooth the desired force and reduce the contact force overshoot. The disturbance term of the end force signal is identified using the least square method, and the effect of gravity compensation is verified to reduce the influence of noise on the force control accuracy. The stability, convergence, and effectiveness of the force control algorithm are verified via theoretical analysis, simulations, and experiments. By comparing the results of CIC, AVIC, and DPAVIC with the robot end force control accuracy, the DPAVIC method can be maintained within ±0.2 N, and it has high anti-interference ability. The surface roughness of the thin-walled workpiece can be improved to Ra 0.218 m.
In future work, we will consider how to use force sensors to intelligently sense changes in workpiece surface curvature without geometric models and achieve compliant grinding of the workpiece.