Scholarly article on topic 'Efficient Sequencing of Industrial Robots through Optimal Control'

Efficient Sequencing of Industrial Robots through Optimal Control Academic research paper on "Economics and business"

CC BY-NC-ND
0
0
Share paper
Academic journal
Procedia CIRP
OECD Field of science
Keywords
{Assembly / "Optimal Control" / Production / Robotics / Sequencing / Welding}

Abstract of research paper on Economics and business, author of scientific article — Staffan Björkenstam, Domenico Spensieri, Johan S. Carlson, Robert Bohlin, Daniel Gleeson

Abstract In a production plant for complex assembled products there could be up to several hundred robots used for handling and joining operations. Thus, improvements in robot motion can have a huge impact on equipment utilization and energy consumption. By combining recent algorithms for collision free numerical optimal control and for optimal sequencing, we are able to cut down on energy consumption without sacrificing cycle time. The algorithm has been successfully applied to several industrial cases demonstrating that the proposed method can be used effectively in practical applications to find fast and energy efficient solutions.

Academic research paper on topic "Efficient Sequencing of Industrial Robots through Optimal Control"

Available online at www.sciencedirect.com

ScienceDirect

Procedia CIRP 23 (2014) 194 - 199

Conferenceon Assembly TechnologiesandSystems

Efficient sequencing of industrial robots through optimal control

Staffan Bjorkenstam*, Domenico Spensieri, Johan S. Carlson, Robert Bohlin, Daniel Gleeson

Fraunhofer-Chalmers Centre, Chalmers Science Park, SE-412 88 Göteborg, Sweden

Abstract

In a production plant for complex assembled products there could be up to several hundred robots used for handling and joining operations. Thus, improvements in robot motion can have a huge impact on equipment utilization and energy consumption. By combining recent algorithms for collision free numerical optimal control and for optimal sequencing, we are able to cut down on energy consumption without sacrificing cycle time. The algorithm has been successfully applied to several industrial cases demonstrating that the proposed method can be used effectively in practical applications to find fast and energy efficient solutions.

© 2014 Published by Elsevier B.V. This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/3.0/).

Selection and peer-review under responsibility of the International Scientific Committee of 5th CATS 2014 in the person of the Conference Chair Prof. Dr. Matthias Putz matthias.putz@iwu.fraunhofer.de

Keywords: Assembly, Optimal Control, Production, Robotics, Sequencing, Welding

1. Introduction

By using Computer Aided Engineering (CAE), physical prototypes can be replaced by simulation, new products can be introduced faster, the efficiency of the production system can be optimized using mathematical methods and algorithms, and it can be done by simulation experts and production engineers in a safe and healthy environment.

The automotive industry is an example of an equipment and energy intensive manufacturing, where up to 28% of the vehicle life cycle energy is spent during production ([1]). For example, a typical automotive car body consists of about 300 sheet metal parts, joined by about 4000 welds. Typical joining methods are spot welding, arc welding, gluing and stud welding. In car body assembly plants, the welds are distributed to several hundred industrial welding robots, which are orga-

* Corresponding author Tel.: +46-31-772-4284, fax: +46-31-7724260, E-mail address: staffan.bjorkenstam@fcc.chalmers.se

nized in up to 100 stations. The body shop is indeed investment intense, with the robots as the main consumer of energy ([1]). In [2] it is highlighted how utilization affects different aspects of sustainable production, the link between utilization and productivity, as well as practical considerations when improving utilization in manufacturing industry. Therefore from a sustainability perspective it is highly motivated to develop new software methods and algorithms for further improvement of equipment utilization and energy efficiency of robotized manufacturing systems.

In [3] it is shown that the balancing of weld work load between the executing stations and robots has a significant influence on achievable production rate and equipment utilization. Robot line balancing is a complex problem, where a number of welding robots in a number of stations are available to execute an overall weld load. Each weld is to be assigned to a specific station and robot, such that the line cycle time is minimized. Line balancing efficiency depends on station load balancing, robot welding sequencing, path planning and

2212-8271 © 2014 Published by Elsevier B.V. This is an open access article under the CC BY-NC-ND license (http://creativecommons.Org/licenses/by-nc-nd/3.0/).

Selection and peer-review under responsibility of the International Scientific Committee of 5th CATS 2014 in the person of the Conference Chair Prof. Dr. Matthias Putz matthias.putz@iwu.fraunhofer.de doi: 10.1016/j .procir.2014.10.094

effectiveness of robot coordination for collision free execution within each other's working envelopes. Robot coordination impairs cycle time by inserting waiting positions and signals into the original paths. At Volvo Cars it has been proven that by using automatic path planning and line balancing instead of standard off-line programming the cycle time in welding lines can be improved by as much as 25%. The next step for improving the automatic path planning and line balancing is to include detailed optimization of motion profiles between welds. This choice is also from an energy efficiency aspect motivated. Meike and Ribickis [1] investigated different strategies to operate robots in an energy efficient way. Motion profile optimization was one of the strategies pointed out among others such as automatic shut-down and start-up, reusing braking energy, and brake management.

Global methods for optimal control are in general only applicable to systems of relatively few degrees of freedom or to problems with a special structure, see [4] for an example of such a problem. Most often one has to resort to local methods in order to handle more general problems. That is the path taken in this work where we will be using a direct transcription method called Discrete Mechanics and Optimal Control (DMOC), please refer to [5] for details on direct transcription methods in general and [6] for the DMOC method in particular. Direct transcription methods have been applied to solve optimal control problems for industrial robots before, for example by [7]. In this paper we combine recent advances in sequencing and collision free optimal control of industrial robots to create an efficient algorithm for automatic robotic path planning. In order to compute the travel cost between two locations our algorithm first uses a path planner to create an initial collision free path between the locations. The path is then refined using local numerical optimal control techniques to minimize our cost function. This minimum travel cost between nodes and the cost of visiting the nodes are then used by the sequencer in order to find the best possible sequence to complete the entire operation. Collision avoidance is incorporated into the optimal control problem, in the same way as in [8], by approximating the geometry in configuration space rather than R3 making the size of the resulting optimization problem independent of the complexity of the geometry which contrasts most existing methods, for example [9] and [10].

2. Method

Here we describe the main steps of our algorithm. The sequencing problem is described in 2.1. In sec-

tion 2.2 we describe how to formulate the optimal control problem associated with the costs used by the sequencer, section 2.3 shows how to discretize and solve this problem, and in section 2.4 we provide details on how to incorporate collision avoidance in the optimal control problem.

2.1. Sequencing

In automotive applications, robots are usually assigned a number M of tasks, consisting of welding and sealing operations, for example. Each task can be done in several ways, and they can be performed in different orders. Thus, minimizing the cycle time requires choosing a robot configuration for each task and deciding the order in which the robot performs the tasks. The problem can be modeled as a Generalized Traveling Salesman Problem (GTSP), which, in this work, is solved exactly for instances up to M = 20, and by efficient heuristics for larger problems. The exact algorithm is a straightforward generalization of the dynamic programming approach described in [11] for solving the TSP. When this approach is not suitable, an algorithm based on metaheuristics and local search techniques is used: tour improving operations include 3-opt exchanges, double bridge and others, see [12].

Moreover, it is necessary to find collision-free paths between the chosen configurations for consecutive tasks. This is the most expensive part from the computational point of view, therefore a lazy approach is adopted in order to minimize the number of path planning queries needed. The overall method starts by computing a lower bound for all the robot paths. Thereafter, it iteratively finds a minimum cost sequence of tasks, computes collision free motions, and updates the costs of these paths. The algorithm terminates when the time limit is reached or when the required optimality gap is achieved. This approach is very efficient and can be naturally extended in order to deal with other measures of optimality, as the ones considering energy and robot dynamics. However, a crucial issue for good performance is the tightness of the lower bounds. When the function to be minimized is the time, good lower bounds are easy to compute, for example by considering the maximum speed of the joints and paths computed by linear interpolation in the robot configuration space. In this work, anyway, extensions to minimum energy bounds are not straightforward, therefore we approximate the paths costs by providing estimations that take into account static energy consumptions at the start and end configurations for a given path. These costs are not necessarily strict lower bounds but lead to high convergence rate and good overall quality.

2.2. Optimal Control

The problem we want to solve can be formulated as an optimal control problem where we want to minimize a cost functional

J = $(x(ts), ts, x(tf ), tf) + L(x(t), u(t), t)dt (1a) while satisfying the constraints

X(t) = f (x(t), u(t), t) g(x(t), u(t), t) > 0 H(x(ts), ts, x(tf ), tf ) = 0

(1b) (1c) (1d)

for t e [ts, tf ].

Here the state vector is x(t) = [q(t)T, q(t)T]T e R2n where q(t) belongs to the configuration space i.e. in our robot case q is the vector of joint angles, and the control signal u(t) e Rn is the vector of actuator torques applied at the joints. The cost functional to be minimized in (1a) contains two terms, the function &(x(ts), ts, x(tf), tf) which accounts for costs associated with the initial and terminal state, and the integral of the cost Lagrangian L(x, u, t) which describes costs incurred along the trajectory. In our problems &(x(ts), ts, x(tf), tf) is typically just the duration, tf - ts, and the cost Lagrangian is a measure of the power consumption, modeled by a quadratic function L(x, u, t) = xTQx + uTRu where Q and R are symmetric positive semi definite matrices.

The differential equations (1b) are called the state equations and describe the dynamics of the system. The path constraints on the state and control to be fulfilled along the trajectory are included in (1c) while (1d) contains the boundary conditions. Note that (1c) can include both equality and inequality constraints.

Using the Lagrange-d'Alembert principle we can write our dynamics (1b) as the forced Euler-Lagrange equation

^ (q(t), q(t)) + d (q(t), q(t)) dq dt \ dq

+ fl(q(t), q(t), u(t)) = 0

where L is the Lagrangian of the mechanical system and fL is the external force acting on the system.

Using this we can write the optimal control problem in configuration variables as minimize

J = ®(q(ts), q(ts), ts, q(tf), q(tf ), tf )

L(q(t), q(t), u(t), t)dt

such that

^ (q(t), q(t)) + d (q(t), q(t)) dq dt \ dq )

+ fi(q(t), q(t), u(t)) = 0

g(q(t), q(t), u(t), t) > 0

H(q(ts), q(ts), ts, q(tf), q(tf), tf) = 0

for t e [ts, tf ].

2.3. Discrete Mechanics and Optimal Control

If we divide the time interval [ts, tf ] into N equidistant sub-intervals of duration h, we can formulate a corresponding discrete optimal control problem. Here we will define our discrete joint trajectory to lie on the N +1 grid points while our control is defined on the interval midpoints.

Following [13] we formulate a discrete Lagrangian for our system using the midpoint rule

Ld(qk, qk+i) = hL ^

qk + qk+i qk+i - q^

If we now apply the discrete Lagrange-d'Alembert principle to the action of the system we end up with the following forced discrete Euler Lagrange equations

D2 Ld (qk-1, qk) + D1 Ld (qk, qk+1)

+ fd(qk-u q^ uk- 2) + fd^ qk+u uk+p = 0

for k = 1 ...N - 1, where D1 Ld and D2Ld are the slot derivatives with respect to the first and second argument and fd+ and fd- are the left and right discrete forces defined as

fd+(qk,qk+l,uk+2) = fd (q^qk+l,uk+ 2) h I qk + qk+i qk+i - qk

= 2 fLV

k+ 2 I

please refer to [6] about different choices of discrete forces. Using the discrete Legendre transformation we get the boundary conditions

D2 L(qo, qo) + Di Ld(qo, qi) + f- (qo, qi, u i) = 0

- D2L(qN, qN) + D2Ld(qN-1, qN)

+ f+(qN-1, qN, un- 1) = 0

for the initial and final joint velocities, q0 and qN.

Now we can formulate our discrete optimal control problem as minimize

®(qo, qo, to, qN, qN, tN)

subject to

D2L(qo, qo) + DiLd(qo, qi) + fd ( D2 Ld(qk-i, qk) + Di Ld (qk, qk+l)

+ fd(qk-u qk, uk-1) + fd(qk - Di L(qN, qN ) + Di Ld (qN-i, qN)

+ fd+(qN-i, qN, Un- i) = o fqk + qk+i qk+i

+ q¿+i q¿+i - qi ti + ti+i —' Ui+i

ro, qi, u i) = o qk+i' uk+i) = o

qk tk + tk+i , uk+1,—i—) - o

2 h H(qo, qo, to, qN, qN, tN) = o tk+i = tk + h ho

In our application we will assume that we can control our joint torques directly, in this case the discrete forces are

f+(qk, qk+^ uk+1) = f- (q^ qk+l' uk+i) h, f qk + qk+i qk+i - qk = 2 fL\-

, uk+ il = i uk+1

for k = 0 ...N - 1.

In the discrete setting our bounds on the angles, velocities and torques become

qlower < qi < qupper, i= o.. .N

qlower < qo < qupper

qlower < qi+i-qi h < qupper, i=o.. .N - i

qlower < q N+i < qupper

ulower < u¡+ i i+ 2 < uupper, i=o.. .N - i

The variables in our NLP-problem are the initial and final joint velocities, qo, qthe joint trajectory q¡ and

times ti for i = 0 ...N, and u¡+1 for i = 0 ...N- 1. Note

that since we use equidistant time steps it suffices to use to and tN as time variables. In our implementation we use to, tN and for convenience also h.

To solve the resulting non-linear optimization problem we use the NLP-solver Ipopt (Interior Point OPTimizer) described in [14].

Figure 1. Collision avoiding trajectory and contours of the distance function in configuration space

2.4. Collision avoidance

The initial path given to our optimal control problem is collision free. In this section we describe how this property is maintained while the optimal control problem is solved.

Let us define the distance function as

<p(q) = min d(p)

peA(q)

where A(q) is the space occupied by the robot at configuration q and d(p) : R3 ^ R is the minimum distance to the surrounding geometry r c R3, i.e. d(p) =

m%er y P - y||2.

One way of keeping the solution collision free would be to add a minimum clearance constraint, i.e include

v(q(t)) - dc, Vt e [t„ tf ]

in (1c), where dc e R is the minimum allowed clearance along the path, this is illustrated in Fig. 1. But <p(q) is not generally in C1 so adding the constraint (4) to the optimal control problem would result in a programming problem which can not be solved using standard NLP-solvers. To overcome this we formulate an iterative method based on local sensitivity analysis.

In the discrete setting the approximate minimum clearance constraints, for iteration k, can be written as

„k+i

,k\\w(<ñ)

< <p(qk) - dc for i = o ...N

where n is the dimension of the configuration space, qk is a given feasible configuration, dc > 0 is the minimum clearance allowed, and || • |W(q) denotes a weighted norm with weight vector wi(q) = maxp ||dq-(q)||i for i = 1... n. These inequalities are simply box constraints

(a) Stage I

(b) Stage II

(c) Stage III

Figure 2. Three different stages in the iterative procedure. Using the collision free path from the previous iteration an improved path is found by optimization constrained to the trust regions. The iteration is initialized by a piecewise linear collision free path from a path planner (Stage I) and terminated when no progress is being made (Stage III).

on the optimization variables at each time step, as illustrated in Fig. 2, for details on the derivations please refer to [8]. Since we use an approximate clearance constraint we can not guarantee that the new configuration qk+1 is above our clearance threshold. Hence we need to check the new iterate and perform a backtracking step if necessary. We stop the iteration when the reduction in the objective is below some given threshold.

Starting with an initial collision free path from the path planner, Fig. 2 illustrates how the trajectory is iter-atively improved using the clearance constraints.

3. Results

In order to validate our method we have applied it to a virtual stud welding station. The case consists of a car body with 20 stud welding points to be welded by an ABB 6400 industrial robot, the setup can be seen in Figure 3. Each welding takes 2 seconds to perform. The welding points can be visited in any order and each welding point can be reached by the robot from several alternative joint configurations.

To evaluate the performance of our solutions we will use the composite cost function

ct + ceu(t)Tu(t) + cvq(t)T q(t)dt

i.e. a linear combination of the time, the control effort and a regularizing term to keeping the kinetic energy of the system low. In our test case we have used ct = 1.0, cv = 1.0 and ce = 10-6 which tend to give fast and smooth trajectories with low actuator torques.

The number of alternatives for each welding point and the range of the costs associated with each welding are given in Table 1, note the large variations in cost depending on the alternative joint configurations. The main difference between the method in this paper and

Figure 3. Welding station

Stud Alt. Cost

1 6 [41.16,41.44]

2 8 [79.11,80.73]

3 16 [110.8,223.3]

4 22 [95.69, 240.0]

5 27 [33.78, 330.0]

6 18 [58.36, 339.6]

7 10 [240.8, 350.8]

8 16 [176.9,448.6]

9 20 [89.64, 307.2]

10 30 [48.63, 282.2]

11 16 [35.49, 295.5]

12 36 [50.55,471.6]

13 16 [73.29, 228.7]

14 13 [140.1,447.8]

15 16 [44.07, 417.3]

16 9 [173.1,324.9]

17 9 [181.1,329.3]

18 7 [174.5, 181.5]

19 6 [241.5, 242.5]

20 6 [222.9, 223.3]

Table 1. Number of alternatives for each weld and the corresponding range of cost associated with performing each stud welding operation

Travel Welding Total

Old sequence 2212.5 4590.4 6802.9

New sequence 1560.9 2323.1 3884.0

Table 2. The cost of completing a cycle of the stud welding station using sequences computed with and without optimal control

our previous method, described in [8], is that we now incorporate optimal control already in the sequencing step. This also means that we can include the cost occurring while performing the welding operation, which increase the potential saving even further.

In Table 2 we compare a sequence computed using our old sequencer, based on approximate travel time minimization, to a sequence computed using our new optimal control based sequencer. In this particular case we see that by using the costs from the optimal control problem already when selecting the sequence we can reduce our cost with over 40 percent. It is particularly interesting to note that the greatest saving is made during the welding operation while the robot is standing still.

4. Conclusion

We have presented a method for efficient sequencing of industrial robots. The method extends our previous method, presented in [8], by incorporating the optimal control problem in the sequence optimization. Our optimal control solver has also been improved by using a discrete variational principle to derive the equations of motion. This gives our solver the nice characteristics, regarding conservation of momentum and energy, usually associated with variational integrators [15].

From our experiments we conclude that our method can indeed give considerable savings under realistic conditions and that the static poses are as important as the motions connecting them.

While this approach can be applied to any robot in a station, collisions among robots require geometrical and/or timing modifications of the paths, see [16] and [17]. This extension is to be included in future work.

References

[1] D. Meike, L. Ribickis, Analysis of the energy efficient usage methods of medium and high payload industrial robots in the automobile industry, 2011, 10th International Symposium on Topical Problems in the Field of Electrical and Power Engineering, Parnu, Estonia, January 10-15.

[2] P. Almstrom, C. Andersson, A. Muhammad, M. Win-roth, Achieving sustainable production through increased utilization of production resources, 2011, the 4th Swedish Production Symposium, Lund, May 3-5.

[3] J. Segeborn, D. Segerdahl, J. S. Carlson, F. Ekstedt, A. Carlsson, R. Soderberg, A generalized method for weld load balancing in multi station sheet metal assembly lines, 2011, proceedings of the ASME 2011 International Mechanical Engineering Congress & Exposition, Denver, Colorado, USA, November 11-17.

[4] S. Bjorkenstam, M. Ji, M. B. Egerstedt, C. F. Martin, Leader based multi-agent coordination through hybrid optimal control, in: 44th Allerton Conference on Communication, Control, and Computing, 2006, pp. 13521357.

[5] J. T. Betts, Practical methods for optimal control and estimation using nonlinear programming, 2nd Edition, Society for Industrial and Applied Mathematics, 2010.

[6] J. E. Marsden, M. West, Discrete mechanics and variational integrators, Acta Numerica 10 (1) (2001) 357514.

[7] O. von Stryk, M. Schlemmer, Optimal control of the industrial robot manutec r3, Computational optimal control, International series of Numerical Mathematics 115 (1994) 367-382.

[8] S. Bjorkenstam, D. Gleeson, R. Bohlin, J. S. Carlson, B. Lennartson, Energy efficient and collision free motion of industrial robots using optimal control, in: Automation Science and Engineering (CASE), 2013 IEEE International Conference on, 2013, pp. 510-515.

[9] A. Muller, Energy optimal control of serial manipulators avoiding collisions, in: Mechatronics, 2004. ICM'04. Proceedings of the IEEE International Conference on, IEEE, 2004, pp. 299-304.

[10] A. El Khoury, F. Lamiraux, M. Taix, Optimal motion planning for humanoid robots (2012).

URL hal.archives-ouvertes.fr

[11] M. Held, R. M. Karp, A dynamic programming approach to sequencing problems, in: Proceedings of the 1961 16th ACM National Meeting, ACM '61, ACM, New York, NY, USA, 1961, pp. 71.201-71.204.

[12] G. Gutin, D. Karapetyan, A memetic algorithm for the generalized traveling salesman problem 9(1) (2010) 4760.

[13] S. Ober-Blobaum, O. Junge, J. E. Marsden, Discrete mechanics and optimal control: an analysis, arXiv preprint arXiv:0810.1386.

[14] A. Wachter, L. T. Biegler, On the implementation of a primal-dual interior point filter line search algorithm for large-scale nonlinear programming, Mathematical Programming 106 (1) (2006) 25-57.

[15] E. Hairer, C. Lubich, G. Wanner, Geometric numerical integration: structure-preserving algorithms for ordinary differential equations, Springer, 2006.

[16] D. Spensieri, F. Ekstedt, J. Torstensson, R. Bohlin, J. S. Carlson, Throughput maximization by balancing, sequencing and coordinating motions of operations in multi-robot stations, in: Proceedings of the 8th International NordDesign Conference 2010,2010, pp. 455-465.

[17] D. Spensieri, R. Bohlin, J. S. Carlson, Coordination of robot paths for cycle time minimization, in: Automation Science and Engineering (CASE), 2013 IEEE International Conference on, 2013, pp. 522-527.