Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

Surface Modeling of Workpiece and Tool Trajectory Planning for Spray Painting Robot

Abstract

Automated tool trajectory planning for spray-painting robots is still a challenging problem, especially for a large free-form surface. A grid approximation of a free-form surface is adopted in CAD modeling in this paper. A free-form surface model is approximated by a set of flat patches. We describe here an efficient and flexible tool trajectory optimization scheme using T-Bézier curves calculated in a new way from trigonometrical bases. The distance between the spray gun and the free-form surface along the normal vector is varied. Automotive body parts, which are large free-form surfaces, are used to test the scheme. The experimental results show that the trajectory planning algorithm achieves satisfactory performance. This algorithm can also be extended to other applications.

Introduction

Automated spray painting is an important process in the manufacturing of many products, such as automobiles, furniture, airplanes; etc.Surface modeling is the first step of trajectory optimization for spray painting robot. The shape of workpiece and the tool parameters can strongly influence the quality of painting [1]. In order to achieve the new spraying operation standards, new surfaces modeling of workpiece algorithms for spray painting robot are active research for many years. Surface modeling based on parametric surface in spray painting is presented by Antonio et al [2].For a product with a parametric surface; two basic approaches can be applied. The first one is called the section approach. Spray painting robot trajectories are generated by intersecting the target surface with a series of parallel equidistant section planes. The second is called the offset curve approach that generates a start curve on the target surface, and then constructs the subsequent paths by offsetting the start curve along a family of curves orthogonal to the start curve [34]. However, both the two basic approaches are too complicated to model large free-form workpiece surfaces for spray painting [5].

Now, achieving uniform paint thickness for free-form surfaces is still a challenging research topic due to the complex geometry of free-form surfaces[6].And automated trajectory planning has been widely studied.Chen et al. proposed a new optimization algorithm of the path planning for spray painting robot of workpiece surfaces[7]. But the algorithms are too complicated to optimize spray painting trajectory on large free-form surfaces in automobile manufacturing.Chen et al. developed a automatic tool path planning for a free-form surface, and the experimental results illustrate the feasibility and availability of the method[89].But their algorithms couldn’t resolve tool trajectory optimization problem.Yu et al. developed an automatic tool path planning for a free-form surface[1011].Li proposed a new trajectory optimization scheme and a model of paint deposition rate for a free-form surface was established[12]. Li proposed trajectory optimization of spray painting robot for a free-form surface based on adapted genetic algorithm [13].However, due to the process is complex and very time-consuming, their algorithms couldn’t resolve robot trajectory optimization problem in automotive spray painting. The paint thickness function for free-form surfaces is not considered, and the optimal time is not satisfying.

In this paper, a new trajectory optimization scheme for large free-form surfaces in automobile manufacturing is developed. And a free-form surface model is approximated by a set of flat patches. Each patch is treated individually to generate robot trajectories. And a new trajectory optimization scheme by T-Bézier curve is developed. Automotive body parts, which are large free-form surfaces, are used to test the scheme. The results of experiments have shown that the trajectories optimization algorithm achieves satisfactory performance.

The model of a large free-form surface

The paint deposition rate function on a plane according to the experiment data is considered. And assuming that the shape of spray painting from the gun is a cone and the distribution model of spray is shown in [14].

To obtain time-efficient spray painting robot trajectories and sufficiently utilize the workspace of the robot, a grid approximation of a free-form surface is adopted in CAD modeling. The CAD model of a free-form surface can be formulated as: (1) Where Tj is the jth grid on the free-form surface; M is the number of grids.

During spray painting, a free-form surface is only covered by a spray cone at each time instant. The patch forming method is based on minimizing the maximum deviation angle of spray cones. To optimize the paint thickness on a free-form surface, the maximum deviation angle of every spray cone has to be minimized. Assume that there are N grids which are covered by a spray cone and the spray cone is projected to a plane. The normal of the plane must be a vector which minimizes the inaxiniuin deviation angle of tile spray cone.

A flat patch is a collection of connected grids, which correspond to a certain area of continuous part surface and satisfy the constraint: the angle between the normal of any grid in the patch and the average normal of the patch is within certain threshold. The average normal of a patch is defined as follows: (2) Here sj is the area of grid Tj, and is the normal of Tj.

An area-weighted average is employed to calculate the average normal, which reflects the fact that bigger grids have more contribution to the average normal than smaller ones. The average normal is used to indicate the direction of a patch.

The maximum-area-direction of a flat patch is the direction that when the patch is orthographically projected along this direction, the image of the patch has the maximum area. The image area of a patch in orthographic projection with scaling factor m = 1 is: (3) Here is the direction of orthographic projection. To find such that S is maximum, we have: (4) The results means the maximum-area-direction is the same direction as the area-weighted “average normal”.

Assume that the material quantity on the flat surface is projected to a free-form surface and the maximum deviation angle of the free-form surface relative to the normal of the flat surface is βth. The maximum deviation angle is the maximum angle between the normal of the free-form surface and the flat surface. Then the material quantity qs of each point s on the free-from surface can satisfy the following inequality without considering the tool standoff variation: (5) Here are maximum and minimum material quantity. Then the material quantity of each point qs in the free-form surface satisfies the constraints: (6) Here qw are average material quantity and the maximum material thickness deviation.

Trajectory Optimization based on T-Bézier Curve

Bézier curves are widely used for constructing free-form curves and surfaces[15]. It is well known that the Bézier basis is a basis for the space of degree-n algebraic polynomials as:

(7)

However, since this basis is rational and polynomial, it would be complicated to use for the tool trajectory of a spray painting robot. This is because each point is associated with six parameters which define the position coordinates and the orientation vector of the spray. In particular, repeated differentiation of Eq 7 produces curves of very high degree[16]. In order to ensure computational efficiency, finding new bases of Bézier model in new spaces seems to be the only way.

In this paper, a new T-Bézier basis is presented in tool trajectory optimization problem of spray painting robot. We first give four initial functions: (8) Where For n>3,T-Bézier basis functions are defined as: (9) Where Bi,n(t) = 0 for i>n or i<0.

With this basis, the curves share most of the properties as those of the Bézier curves in polynomial space.The T-Bézier basis have the properties as follows:

  1. Partition of Unity:
(10)
  1. Positivity:
(11) So T-Bézier basis is a blending system.

  1. Properties at the endpoints:
(12)
  1. Linear independence: B0,n(t), B1,n(t),⋯,Bn,n(t) are linear independent.
  2. Symmetry:
(13)
  1. B-basis property: {B0,n(t), B1,n(t),⋯,Bn,n(t)} is the normalized B-basis of the space span{1, cost,⋯,cosnt}. By the properties 1) and 2), we have that T- Bézier Basis is a totally positives basis.

A T- Bézier curve p(t) of order n+1 is defined as follows: (14) Where is the T- Bézier basis, Vi is the control point.

The geometric properties at the endpoints of the T-Bézier curves are obvious from those of the T-Bézier basis: (15) Especially for n = 3, suppose and are two adjacent sets of T-Bézier control points. The condition of position continuity (C0 continuity) is , and the condition of target continuity (C1 continuity) is that and are collinear, containing C0 continuity.

The entire T-Bézier curve P(t) must lie inside its control polygon spanned by V0, V1Vn. This property is a consequence of the property of the T-Bézier basis about partition of unity.

The control points of opposite order define the same curve in a different parameterization, just the opposite direction: (16) which can be checked by comparing the coefficients of V0, V1Vn. on both sides of the equation. No plane intersects a T-Bézier curve more often than it intersects the corresponding control polygon.

The shape of a T-Bézier curve is independent of the choice of coordinates, i.e. satisfies the following two equations: (17) Here r is an arbitrary vector, and T is an arbitrary (n+1)*(n+1) matrix. If the control polygon is convex, then the corresponding T-Bézier curve is also convex.

Simulation

The algorithms are implemented in C++, and a free-form surface, shown in Fig 1, is used to test the trajectory optimization algorithm. The control points on the free-form surface are i = 212.The tool trajectory is formed through offsetting the distance between spray tool and the free-form surface along the normal vectors. Then the optimization trajectory is generated using T-Bézier curve. The generated tool trajectory is shown in Fig 2. Assuming that the shape of spray painting from the tool is a cone and the distribution model of spray is shown in [14]. Suppose the required average material thickness is qs = 50μm, and the max material thickness deviation is qw = 10μm.The spray radius is R = 60mm. The material deposition rate is:

(18)
thumbnail
Fig 2. The optimization trajectory on the free-form surface.

https://doi.org/10.1371/journal.pone.0127139.g002

The results for optimal tool trajectories planning are summarized in Table 1.

thumbnail
Table 1. The results for optimal trajectories planning of the simulation.

https://doi.org/10.1371/journal.pone.0127139.t001

Experimental verification

Automotive body parts from a car company are tested. And the spraying parameter settings in experiment are the same to the simulation.

The first step is surfaces modeling. And a free-form surface model is approximated by a set of flat patches. The second step is trajectory optimization. We first determined the optimal movement patterns and sweeping directions, according to which the final trajectories are generated. Then the optimization trajectory is generated using the T-Bézier curves by the control points. The optimal tool trajectories on the car roof is shown in Fig 3.The optimal tool trajectories on the car left body is shown in Fig 4 and Fig 5 shows the robotic spray painting experiment.

thumbnail
Fig 4. The optimal tool trajectories on the car left body.

https://doi.org/10.1371/journal.pone.0127139.g004

The thickness of the coating at randomly chosen points on the car body is measured using the Elcometer 456 automobile coating thickness gauge which resolution ratio is 1μm. Fig 6 shows the results for material thickness of 200 chosen points along the direction of spray painting trajectory on the car body. The results for optimal tool path planning are summarized in Table 2.

thumbnail
Fig 6. Material thickness of random chosen points on the car body.

https://doi.org/10.1371/journal.pone.0127139.g006

thumbnail
Table 2. The results for optimal trajectories planning of the experiment.

https://doi.org/10.1371/journal.pone.0127139.t002

Conclusion

A grid approximation of a free-form surface is adopted in CAD modeling. And a free-form surface model is approximated by a set of flat patches. Each patch is treated individually to generate robot trajectories. A new trajectory optimization scheme based on T- Bézier curve is developed. Automotive body parts, which are free-form surfaces, are used to test the scheme. And the results demonstrate the advantages of the optimal trajectories planning algorithm. This algorithm can also be extended to other applications such as optimal tool path for free-form surface of cleaning robot or grinding robot, etc.

Acknowledgments

This project is supported by National Natural Science Foundation of China (Grant no. 60875052), University Science Foundation of Jiangsu province in China (Grant no. 14KJB510008), Doctoral Scientific Research Foundation of Jiangsu University of science and technology (Grant No. 635031306) and National Natural Science Foundation Advance Research Project for Jiangsu University of science and technology (Grant No. 633031306)

Author Contributions

Conceived and designed the experiments: YT WC. Performed the experiments: WC. Analyzed the data: YT. Contributed reagents/materials/analysis tools: YT. Wrote the paper: YT WC. Revised the manuscript: WC.

References

  1. 1. Conner DC, Greenfield A, Atkar PN, Rizzi AA,Choset H. Paint deposition modeling for trajectory planning on automotive surfaces[C].IEEE Transactions on Aautomation Science and Engineering,2005,2(4):381–392.
  2. 2. Antonio JK, Ramabhadran R.Ling TL.A framework for trajectory planning for automated spray coating[J]. International Journal of Robotics and Automation, 1997, 12(4): 124–134.
  3. 3. Chen HP, Xi N, Sheng WH.,Dahl J.Optimizing material distribution for tool trajectory generation in surface manufacturing[C].Proceedings of the 2005 IEEE/ASME International Conference on Advanced Intelligent Mechatronics,2005:1389–1394
  4. 4. Xia W, Wei CH, Liao XP. Surface segmentation based intelligent trajectory planning and control modeling for spray painting[C].Proceeding of the 2009 IEEE international Conference on Mechatronics and Automation,2009,China,Changchun:4958–4963.
  5. 5. From PJ, Gunnar J, Gravdahl JT. Optimal paint gun orientation in spray paint applications—experimental results [J].IEEE Transaction on Automation Science and Engineering, 2011, 8(2):438–442.
  6. 6. Chen HP, Fuhlbrigge T.Automated industrial robot path planning for spray painting process:a review[C].4th IEEE Conference on Automation Science and Engineering,2008,USA,Washington DC:522–527.
  7. 7. Chen W, Zhao DA. Path planning for spray painting robot of workpiece surfaces. Mathematical Problems in Engineering,2013(8),
  8. 8. Chen HP,Sheng WH.Transformative industrial robot programming in surface manufacturing[C].2011 IEEE International Conference on Robots and Automation,2011,China,Shanghai:6059–6064.
  9. 9. Sheng WH, Chen HP, Xi N, Tan JD.Optimal tool path planning for compound surfaces in spray forming processes[C].IEEE International Conference on Robotics and Automation, USA: New Orleans, 2004:45–50.
  10. 10. Yu SR,Cao LG.Modeling and prediction of paint film deposition rate for robotic spray painting[C].Proceedings of the 2011 IEEE International Cconference on Macaronis and Automation,2011,China,Beijing:1445–1450.
  11. 11. Gasparetto A.Automatic path and trajectory planning for robotic spray painting[C]. 7th German Conference on Robotics, 2012, German, Munich: 211–216.
  12. 12. Li XZ, Landsnes OA, Chen HP.Automatic trajectory generation for robotic painting application[C]. 41st International Symposium on Robotics and 2010 6th German Conference on Robotics, 2010, German, Berlin: 1–6.
  13. 13. Li FA, Zhao DA, Xie GH.Trajectory optimization of spray painting robot based on adapted genetic algorithm[C]. International Conference on Measuring Technology and Mechatronics Automation, ICMTMA 2009, China, Changsha: 907–910.
  14. 14. Chen W, Zhao DA. Tool trajectory optimization of robotic spray painting. IEEE International Conference on Intelligent Computation Technology and Automation.China: ChangSha, 2009:419–422.
  15. 15. Juhász M, Ágoston R: A class of generalized B-spline curves. Computer Aided Geometric Design30(1)2013:85–115.
  16. 16. Mainar E, Peña JM.A basis of C-Bézier splines with optimal properties[J].Computer Aided Geometric Design, 2002,19(10):291–295.