Next Article in Journal
Research on Multi-Mode Control of Electro-Hydraulic Variable Displacement Pump Driven by Servo Motor
Previous Article in Journal
Decentralized Output-Feedback Adaptive Event-Triggered Control for Interconnected Nonlinear Delay Systems with Actuator Failures
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Sequential Optimal Trajectory Planning Scheme for Robotic Manipulators along Specified Path Based on Direct Collocation Method

School of Mechanical Science & Engineering, Huazhong University of Science and Technology, Wuhan 430070, China
*
Author to whom correspondence should be addressed.
Actuators 2024, 13(5), 189; https://doi.org/10.3390/act13050189
Submission received: 31 March 2024 / Revised: 7 May 2024 / Accepted: 14 May 2024 / Published: 15 May 2024
(This article belongs to the Section Actuators for Robotics)

Abstract

:
Robotic manipulators play a pivotal role in modern intelligent manufacturing and unmanned production systems, often tasked with executing specific paths accurately. However, the input of the robotic manipulators is trajectory which is a path with time information. The resulting core technology is trajectory planning methods which are broadly classified into two categories: maximum velocity curve (MVC) methods and multiphase direct collocation (MPDC) methods. This paper concentrates on addressing challenges associated with the latter methods. In MPDC methods, the solving efficiency and accuracy are greatly influenced by the number of discretization nodes. When dealing with systems with complex dynamics, such as robotic manipulators, striking a balance between solving time and path discretization errors becomes crucial. We use a mesh refinement (MR) algorithm to find a suitable number of nodes under the premise of ensuring the path discretization error. So, the actual device can effectively implement the planned solutions. Nonetheless, the conventional application of the MR algorithm requires solving the original problem in each iteration; these processes are extremely time-consuming and may fail to solve when dealing with a complex dynamic system. As a result, we propose a sequential optimal trajectory planning scheme to solve the problem efficiently by dividing the original optimal control (OC) problem into two stages: path planning (PP) and trajectory planning (TP). In the PP stage, we employ a DC method based on arc length and an MR algorithm to identify key nodes along the specified path. This aims to minimize the approximation error introduced during discretization. In the TP stage, the identified key nodes serve as boundary conditions for an MPDC method based on time. This facilitates the generation of an optimal trajectory that maximizes motion performance, considering constant velocity in Cartesian space and dynamic constraints while keeping the path discretization error. Simulation and experiment are conducted with a six-axis robotic manipulator, ROCR6, and show significant potential for a wide range of applications in robotics.

1. Introduction

Robotic manipulators are advanced modern equipment supporting intelligent manufacturing and unmanned production. They play an important role in smart manufacturing in Industry 5.0 [1]. The end effector (EE) is the most flexible component of robotic manipulators, enabling a diverse range of industrial application possibilities which include, but are not limited to, point-to-point (PTP) movements such as stacking [2,3,4], as well as movements along specific paths, such as laser cutting, spraying, etc. [5,6,7].
As industrial environments gradually advance towards intelligence and precision in development, the key technology of robotic manipulators can be cast as the trajectory planning (TP) problem of the EE along specific paths, where an optimal time law of the specific geometric path followed by the EE can be solved with a series of complex constraints including robot dynamics. It is noticed that the trajectory can be viewed as a path subject to a time law [8].
Due to the high nonlinearity and coupling of robot dynamics, the TP problem is divided into two part. The first part is about the design of a high-level planner generating an optimal path or trajectory, and the other part is about the design of a lower-level controller supporting the implementation of tracking the optimal path or trajectory [9]. When it comes to TP along specific paths, the related research mainly focuses on the design of the high-level planner. In this situation, the lower-level controller is used as a discrete data receiver and enables actuators in the tracking mission, so that the specific path data from the planner can be executed.
Related research frames the above optimal trajectory planning (OTP) problem as an optimal control (OC) problem, which accounts for kinematic and dynamic constraints to achieve the most optimal performance index [10].
OC problems can be typically solved by indirect and direct methods. On the one hand, the Pontryagin Minimum Principle serves as the core technology of the indirect methods, providing optimal necessary conditions for OC problems and the derivation of an explicit solution. However, the indirect methods are often challenging to reconcile with complex engineering systems due to difficulties in formulating state–space equations. On the other hand, the direct methods, leveraging the progress in computers and numerical techniques, can discretize the OC problem and convert it into a Nonlinear Programming (NLP) problem. This transformation enables the application of a general NLP solver, effectively addressing the aforementioned challenge. Consequently, the direct collocation (DC) method which belongs to the latter direct methods finds widespread application in the industrial field [11].
Nonetheless, general DC methods are time-consuming and unstable when applied to solve the TP problem of robotic manipulators along a specified path due to the ‘curse of dimensionality’. Therefore, researchers are actively investigating this issue. The related research began in 1985. J. E. Bobrow et al. solved the minimum-time manipulator control problem along a specified path by constructing the maximum velocity curve (MVC) in the phase plane [12]. This method utilizes the so-called Frenet–Serret Frames [13] where the time-independent variable arc length is used to describe the entire path. As a result, the number of states is streamlined from twice the degree of freedom (DOF) to just two variables including arc length and arc velocity, so that the problem can be simplified to find the MVC in the phase plane consisting of arc length and arc velocity. Finally, a type of numerical integration method is proposed to solve the specified path TP problem of three-axis manipulators. For simplicity, we refer to this kind of method as MVC methods.
Meanwhile, O. V. Stryk et al. studied the optimization problem of PTP motion for three-axis manipulators with several performance indices based on OC methods, and provided a numerical solution for the OC problem using a combination of a DC method and an indirect multiple shooting method in 1994 [14].
The above studies constitute prototypes of two main methods for solving OC problems. They are MVC methods and DC methods. A series of methods based on these two prototypes have evolved to the present day.
For the former, P. Shen et al. provide a summary of three time-optimal methods for TP along a specified path, which include Dynamic Programming (DP), Numerical Integration (NI), and Convex Optimization (CO) [15]. A classical DP approach presented by K. G. Shin et al. [9] was developed to solve the TP problem for three-axis robotic manipulators. This method includes discretizing the phase plane of MVC into separate grids and calculating the cost of forward movement between adjacent grids, facilitating the consideration of multiple performance indices. However, its demand for substantial data storage space is incredibly huge due to the ‘curse of dimensionality’. Then, the method proposed by J. E. Bobrow et al. in 1985, as mentioned earlier, is an original NI approach. This method seeks the limit of the motion performance and possesses a bang–bang structure of torque inputs, but it can only focus on the time-optimal problem. Furthermore, Q. C. Pham [16] provides a general, fast, and robust implementation for time-optimal trajectory planning (TOTP) using the NI method, improving algorithm robustness by addressing dynamic singularities [17]. In a related context, E. Barnett and C. Gosselin [18] propose a simpler and faster bisection algorithm to modify constraint violations during the NI process. Finally, the CO methods concentrate more on mathematical derivation. The convexity of the time-optimal path tracking problem should be explicitly studied to find the global optimal solution. D. Verscheure and F. Debrouwere [19,20] conducted related research. However, the CO methods may not be suitable for a general solver due to the necessity for unique mathematical derivations for each problem.
For the latter, since O. V. Stryk et al. proposed a numerical solution framework for OC problems, numerous methods have been derived. Z. Xiong et al. integrated the framework with a Functional Mock-up Unit (FMU), accomplishing optimal PTP TP for six-axis robotic manipulators [21]. However, the above technology is limited to solve the PTP TP problem. In response to this situation, J. T. Betts et al. published a path-constrained trajectory optimization method based on DC methods in 1993 [22], which may provide a way to solve the specified path TP problem. Furthermore, Betts summarized a general technology framework for solving OC problems in a book in 2010 [23]. Simultaneously, Victor M. Becerra implemented the program PSOPT based on the book and published it in the open-source community [24]. Afterwards, M. Kelly published an introduction in 2016 to assist others in solving TP problems using DC methods, including the utilization of multiphase direct collocation (MPDC) methods [10]. As a result, a brand-new method inspired by Kelly for solving the specified path trajectory planning problem came out; Y. Wen improved this MPDC method and successively accomplished a novel 3D path following a control framework for a robot [11] and a path-constrained and collision-free OTP scheme [25]. A simple literature review is shown in Figure 1.
At the same time, there are some other studies altogether. F. Vesentini adapts a velocity obstacle algorithm for planning collision-free trajectories for anthropomorphic arms [26]. J. Chen presents a convex TOTP method for industrial robotic manipulators with jerk constraints and achieves smooth and efficient trajectories enabling contour following and pick-and-place tasks to validate the proposed method [27]. A. Tika works on the online TOTP of cooperative robotic manipulators based on a model predictive control algorithm and realizes synchronous pick-and-place tasks [28]. JG Batista develops a TP method to avoid collisions for collaborative robotics [29]. G. Wu gives a jerk–continuous TP method for robotic manipulators by using the fourth-order S-curve to smooth the motion [30].
In summary, MVC methods and MPDC methods are two ways proven to have the ability to solve the TP problem along a specified path at present. They have different features. On the one hand, MVC methods simplify the problem but demand additional solver design, which can be categorized into NI, DP, and CO. Among them, NI is a simple and effective method but is limited to solving TOTP problems. DP can accommodate more performance indices but faces the curse of dimensionality. CO lacks universality due to the need for unique mathematical skills to transform the original problem into a convex one. On the other hand, MPDC methods support solving the target problem by a general NLP solver, and is more direct and general than MVC methods. When we use MPDC methods, the complex transformation in CO is skipped, the performance indices are not limited, the calculation storage requirement is reduced, and a local optimal solution can be provided. As we can see, the MPDC method has greater compatibility which supports its utilization in a general industrial environment.
What is more, the DC method enables the transition from OC problems to NLP problems, where each continuous variable is segmented into numerous nodes. It is evident that the quantity of these nodes significantly influences both solution accuracy and computation time. In essence, a higher number of nodes leads to increased computation time and a more accurate solution, while fewer nodes result in shorter computation time and a less accurate solution. Hence, we can find it is crucial to identify an appropriate number of nodes to strike a balance between solution accuracy and acceptable computation time. In light of the above issues, several approaches have been proposed. In 1998, John T. Betts studied a mesh refinement (MR) algorithm, which outlines a technique for changing the discretization to enhance the accuracy of the approximation [31]. This allows the nodes to start with a small quantity and gradually increase until the desired solution accuracy is achieved. However, each MR iteration happens after an entire NLP solving process. When the OC problem involves a complex system dynamics, such as a six-axis robotic manipulator, a single NLP solving process takes too much time, making the MR algorithm unsuitable for application in this scenario. In 2021, Y. Wen proposed a combined method that applies a small quantity of nodes to ensure the efficiency of the solving process and utilizes a self-designed controller to manage experimental accuracy [11].
In this paper, we present a novel sequential optimization scheme for TP problems. This scheme divides the complex specified path TP problem into two parts. In the first part, the TP problem is simplified into a path planning (PP) problem. This PP problem is designed to find a series of key nodes in the joint space to represent the specified path in Cartesian space. In this regard, a time-independent geometry optimization method is proposed based on the DC method and the MR algorithm for solving this problem. As a result, the path discretization error between the ideal path and the continuous approximate path that passes through these nodes can be minimized. What is more, the solving time is significantly reduced compared to the traditional use of the MR algorithm, and the minimum number and distribution of nodes along the specified path can be found to minimize the path discretization error. In the second part, a general MPDC method can be enabled by setting the key nodes produced in the first part as the bound conditions. In this way, we can get the time nodes corresponding to the path nodes, and the resulting continuous approximate trajectory not only minimizes the path discretization error, but also maximizes the motion performance. To sum up, a novel sequential specified path OTP scheme considering the complex system dynamics comes out.
The rest of the paper is organized as follows. Section 2 provides the problem description of the PP process, and gives the presentation of the MR algorithm to control the path discretization error. Section 3 utilizes the key nodes produced in last section to enable a MPDC method; the uniform arc-velocity condition is presented to estimate the path discretization error without another mesh optimization. Finally Section 4 and Section 5 show solutions to verify the validity of the method. The technical roadmap is given in Figure 2.

2. Path Planning

In the general application of robotic manipulators, the TP problem along the specified path is typically solved by direct methods, and the resulting solution is discrete. At the same time, the general controller of robotic manipulators periodically receives the discrete desired states (referring to joint positions and joint velocities) as input and adjusts the controls (referring to joint torques and actuator currents) to achieve the trajectory tracking mission. In conclusion, we have to reduce the path discretization error in Cartesian space by applying a series of discrete nodes in joint space. It is obvious that both the discretization process and the transformation from Cartesian space to joint space introduce the path discretization error. Therefore, we can propose an optimization method that utilizes the fewest nodes possible to achieve the desired path accuracy. In this section, we regard the above optimization problem as a PP problem, and present the problem based on DC methods and the MR algorithm.

2.1. Problem Presentation

In this part, we want to present the PP problem as an OC problem. The general OC problem presentation is given as follows referring to [10,21,23].
Minimize the performance index:
J = Φ ( x ( t 0 ) , t 0 , x ( t f ) , t f ) + t 0 t f L ( x ( t ) , u ( t ) , t ) d t ,
subject to the following:
the system dynamics:
x ˙ ( t ) = f ( x , u , t ) , t [ t 0 , t f ] ,
boundary conditions:
Œ ( x ( t 0 ) , t 0 , x ( t f ) , t f ) = 0 ,
constraints:
C ( x ( t ) , u ( t ) , t ) 0 ,
where J is the performance index. Φ and L are two constituents, referring to boundary cost and process cost, respectively. f is the system dynamics. Œ is the boundary condition. C is the general constraint. t 0 and t f are the start time and the end time in most situations [23], but it is noted that we replace them with the arc length s in the following path planning problem presentation. u refers to the system control variable. x refers to the system state variable. x ˙ refers to the system differential states.
According to the above problem formulation, the path planning problem can be given as follows.
Minimize the performance index:
J = s 0 s f R ( s ) R ( s ) d s ,
subject to the following:
the system dynamics:
q ˙ ( s ) = u ( s ) ,
path constraints:
R ( s ) = fKine [ q ( s ) ] = R ( s )
boundary conditions:
q ( s 0 ) = q 0 ,
q ( s f ) = q f ,
constant constraints:
| u ( s ) | u m a x ,
| q ( s ) | q m a x .
This problem description involves finding an approximate path in the joint space, aiming to execute the path in Cartesian space as closely as possible to the ideal path through forward kinematics. Thus, we consider setting joint positions as the states and the differentials of joint positions with respect to the arc length as the controls. In this way, the performance index J refers to the integration of the path discretization error along the ideal path in Cartesian space. R and R refer to positions of the executed path and the ideal path in Cartesian space, respectively. s refers to the arc length. q refers to the joint position. q ˙  refers to the differential of joint positions with respect to the arc length, and is set as the control variable u at the same time. fKine refers to the forward kinematic function, which takes joint positions as inputs and takes positions in Cartesian space as outputs. q 0 and q f refer to the initial and the final joint position, respectively. u m a x and q m a x refer to the constant constraints of q ˙ and q , respectively.
As a result, DC methods can be applied to discretize the OC problem into an NLP problem. The Hermite–Simpson (H-S) collocation method is used here, and the NLP problem presentation after discretization referring to [10,21,23] is given as below.
Minimize the performance index:
J = k = 0 N 1 h k 6 ( ω k + 4 ω k + 1 2 + ω k + 1 ) ,
ω k = R ( s k ) R ( s k ) ,
subject to the following:
the system dynamics:
q k + 1 q k = h k 6 ( u k + 4 u k + 1 2 + u k + 1 ) ,
q k + 1 2 = 1 2 ( q k + q k + 1 ) + h k 8 ( u k u k + 1 ) ,
path constraints:
R ( s m ) = fKine [ q ( s m ) ] , m = k k + 1 2 k + 1 ,
boundary conditions:
q ( s 0 ) = q 0 ,
q ( s N ) = q f ,
constant constraints:
max ( | u ( s k ) | , | u ( s k + 1 2 ) | , | u ( s k + 1 ) | ) u m a x ,
max ( | q ( s k ) | , | q ( s k + 1 2 ) | , | q ( s k + 1 ) | ) q m a x .
A series of nodes are used to discretize the original problem, with a total number of nodes represented by N + 1 . Here, k denotes the serial number of the interval between nodes. s k indicates the arc length at node k, while h k represents the single step length between s k and s k + 1 . Additionally, q k and u k denote the states and the controls at node k, respectively. q k + 1 2 and u k + 1 2 denote the state and the control at the midpoint between nodes k and k + 1 . It is worth noting that the differential constraint is substituted by a number of algebraic constraints. Consequently, the original OCP transforms into an NLP, allowing for the utilization of general NLP solvers.

2.2. Mesh Refinement Algorithm

After outlining and resolving the PP problem, we consider the discrete solution nodes as a mesh. The MR algorithm can construct a new mesh by introducing a specified number of new nodes to diminish the path discretization error until it reaches an acceptable level. The execution of the MR algorithm involves adding a node to the interval with the largest path discretization error in each iteration, repeating this process until the path discretization error is deemed acceptable.
In the first step, we need to evaluate the discretization error for each interval. Thus, the ideal path and the execution path in the joint space should be given. Because the ideal path in the Cartesian space is given as a prior, a suitable inverse kinematic solution can be derived conveniently. We denote the ideal path in the joint space as x ¯ and the inverse kinematic function as iKine , where inputs and outputs are opposite to those of the forward kinematic function fKine . Then, we have the following:
q ¯ ( s ) = iKine [ R ( s ) ] .
According to the H-S collocation method [10], a continuous execution path based on the NLP solution can be derived as follows.
q ˜ ˙ ( s ) = 2 h k 2 ( τ h k 2 ) ( τ h k ) u k 4 h k 2 τ ( τ h k ) u k + 1 2 + 2 h k 2 τ ( τ h k 2 ) u k + 1 ,
q ˜ ( s ) = q ˜ ˙ d s = q k + u k ( τ h k ) + 1 2 ( 3 u k + 4 u k + 1 2 u k + 1 ) ( τ h k ) 2 + 1 3 ( 2 u k 4 u k + 1 2 + 2 u k + 1 ) ( τ h k ) 3 ,
τ = s s k .
Then, the local path discretization error in interval k, denoted as ϵ k , is given by the following:
ϵ k = s k s k + h k q ˜ ( s ) q ¯ ( s ) d s .
Furthermore, for ordinary differential equations (ODEs), the global error is O ( h p ) and the local error is O ( h p + 1 ) , where p refers to the order of accuracy. The H-S discretization is of order p = 4 . As a result, the alternative representation of the local path discretization error is of the form
ϵ k c k h k p + 1 ,
where the coefficient c k can be solved. Then, when we insert new nodes into interval k evenly, the estimation of the local discretization path discretization error of the new mesh, denoted as η k , is given by the following:
η k = c k ( h k 1 + I k ) p + 1 = ϵ k ( 1 1 + I k ) p + 1 ,
where I k refers to the total number of new nodes added in interval k. Consequently, an MR algorithm is designed to reduce the discretization path discretization error until it is acceptable (the tolerance error in the joint space is denoted as δ 1 ; the tolerance error in the Cartesian space is denoted as δ 2 ). Here we show the procedure of Algorithm 1.
Algorithm 1 Mesh Refinement Algorithm
1:
start
2:
    Solve NLP (12)–(20);
3:
    Estimate path discretization error from (25);
4:
    Set η = max k ϵ k , I k = 0 ;
5:
    while  ( η > δ 1 | | J > δ 2 )
6:
      Add a new node to interval k, I k I k + 1 ;
7:
      Refresh error from (27), η η ( 1 1 + I k ) p + 1 ;
8:
    if  ( I k > 0 )
9:
      Sort nodes and return to step 2;
10:
    Output the mesh;
11:
end
In conclusion, the PP gives an improved mesh making the discretization path discretization error acceptable.

3. Trajectory Planning

In the previous section, we obtained a mesh that minimizes the path discretization error between the ideal path and the continuous approximate path passing through these mesh nodes. In this section, we utilize the MPDC method with these key mesh nodes to achieve the trajectory planning task.

3.1. Problem Presentation

In this part, our objective is to find the time law of the key mesh nodes. We assume each pair of adjacent mesh nodes as a phase and solve the time law by incorporating the mesh nodes as boundary conditions for each phase within the MPDC method framework. Here, we present the problem formulation.
Minimize the performance index:
J = j = 1 N p [ Φ ( j ) ( x ( j ) ( t 0 ( j ) ) , t 0 ( j ) , x ( j ) ( t f ( j ) ) , t f ( j ) ) + t 0 ( j ) t f ( j ) L ( j ) ( x ( j ) ( t ) , u ( j ) ( t ) , t ) d t ] ,
subject to the following:
the system dynamics:
x ˙ ( j ) ( t ) = f ( x ( j ) , u ( j ) , t ) , t [ t 0 ( j ) , t f ( j ) ] ,
boundary conditions:
Œ ( j ) ( x ( j ) ( t 0 ( j ) ) , t 0 ( j ) , x ( j ) ( t f ( j ) ) , t f ( j ) ) = 0 ,
constraints:
C ( j ) ( x ( j ) ( t ) , u ( j ) ( t ) , t ) 0 , t [ t 0 ( j ) , t f ( j ) ] ,
where the superscript ( j ) refers to the phase number, N p denotes the total phase number, and other variable definitions are identical to those in (1)–(4). It is noticed that the TP problem is time-dependent, where t denotes time. t 0 ( j ) and t f ( j ) refer to the start time and the end time in phase j, respectively.
Then, the TP problem along specified path can be presented as below. To distinguish MVC methods and demonstrate their broader applicability, a comprehensive performance index including both time and energy is taken into consideration.
Minimize performance index:
J = j = 1 N p t f ( j ) t 0 ( j ) + t 0 ( j ) t f ( j ) [ u ( j ) ] 2 d t ,
subject to the following:
the system dynamics:
x ˙ ( j ) = q ˙ ( j ) q ¨ ( j ) = q ˙ ( j ) f F M U ( q ( j ) , q ˙ ( j ) , u ( j ) , t ( j ) ) ,
path constraints:
R ( s ( j ) ) = fKine [ q ( j ) ] = R ( s ( j ) ) ,
s ( j ) = s 0 ( j ) + t 0 ( j ) t ( i ) s ˙ ( j ) d t ,
boundary conditions:
q ( t 0 ( j ) ) = q 0 ( j ) ,
q ( t f ( j ) ) = q f ( j ) ,
q ˙ ( t 0 ( 1 ) ) = q ˙ ( t f ( N p ) ) = 0 ,
continuity conditions:
q ˙ ( t f ( j ) ) = q ˙ ( t 0 ( j + 1 ) ) , j N p ,
constant constraints:
u ( t ) u m a x ,
x ( t ) = | q ( t ) | | q ˙ ( t ) | q m a x q ˙ m a x .
where the superscript ( j ) , N p , t 0 ( j ) , and t f ( j ) have the same definitions as provided in (28). u denotes the system controls which refers to the torque of the joint actuator. x denotes the system states which refers to the joint position q and the joint velocity q ˙ in the system of robotic manipulators. x ˙ denotes the differential of the system states which refers to the joint velocity q ˙ and the joint acceleration q ¨ . f F M U is a black box function constructed by MWorks and denotes the forward dynamics of the robotic system [21]. Functional Mock-up Unit (FMU) is used to name the black box function. s ( j ) is the arc length in phase j, s ˙ ( j ) is the arc velocity in phase j. s 0 ( j ) and s f ( j ) are the initial and the end arc length in phase j. R ˙ ( s ( j ) ) denotes the velocities of the end effector in Cartesian space and can be derived by the FMU. t 0 ( 1 ) and t f N p refer to the initial and final time of the whole multiphase problem. As a result, (35) facilitates executing a uniform motion along the specified path. q 0 ( j ) and q f ( j ) are the initial joint positions and the final joint positions of phase j, respectively. Furthermore, the mesh nodes solved in the previous section are introduced here as the boundary constraints. u m a x , q m a x , and q ˙ m a x denote the max torques, positions, and velocities, respectively.
Finally, the H-S collocation method is used to represent the NLP problem shown as below.
Minimize performance index:
J = j = 1 N p { t f ( j ) t 0 ( j ) + k = 0 N 1 h k 6 ( u k ( j ) ) 2 + 4 ( u k + 1 2 ( j ) ) 2 + ( u k + 1 ( j ) ) 2 } ,
subject to the following:
the system dynamics:
q k + 1 ( j ) q k ( j ) q ˙ k + 1 ( j ) q ˙ k ( j ) = h k 6 q ˙ k ( j ) + 4 q ˙ k + 1 2 ( j ) + q ˙ k + 1 ( j ) f F M U , k ( j ) + 4 f F M U , k + 1 2 ( j ) + f F M U , k + 1 ( j )
q k + 1 2 ( j ) q ˙ k + 1 2 ( j ) = 1 2 q k ( j ) + q k + 1 ( j ) q ˙ k ( j ) + q ˙ k + 1 ( j ) + h k 8 q ˙ k ( j ) q ˙ k + 1 ( j ) f F M U , k ( j ) f F M U , k + 1 ( j )
path constraints:
R ( s m ( j ) ) = fKine [ q m ( j ) ] , m = k k + 1 2 k + 1 ,
s k + 1 2 ( j ) = s k + 1 ( j ) s k ( j ) 2 ,
boundary conditions:
q ( t 0 ( j ) ) = q 0 ( j ) ,
q ( t N ( j ) ) = q f ( j ) ,
q ˙ ( t 0 ( 1 ) ) = q ˙ ( t N ( N p ) ) = 0 ,
continuity conditions:
q ˙ ( t N ( j ) ) = q ˙ ( t 0 ( j + 1 ) ) ,   j N p ,
constant constraints:
max ( | u k ( j ) | , | u k + 1 2 ( j ) | , | u k + 1 ( j ) | ) u m a x ,
max | q k ( j ) | | q ˙ k ( j ) | , | q k + 1 2 ( j ) | | q ˙ k + 1 2 ( j ) | , | q k + 1 ( j ) | | q ˙ k + 1 ( j ) | q m a x q ˙ m a x .
where the superscript j denotes the phase number and N p is the total number of phases. The subscript k denotes the nodes number, N + 1 is the total number of nodes in the phase. And other variables follow the previous definitions. It should be noted that we set N = 3 when the H-S collocation method is applied. It is noticed that a key variable s is introduced to build a relationship with the path planning problem. Because the independent variable of the PP problem is arc length s, while in the TP problem it is time t, a function of s t should be constructed. For estimating the path discretization error in the next part, uniform motion is required. So we have (46) and the following equation:
s ( t ( j ) ) = s ˙ ( j ) ( t ( j ) t 0 ( j ) ) + s 0 ( j ) = s f ( N p ) s 0 ( 1 ) t f ( N p ) t 0 ( 1 ) ( t ( j ) t 0 ( j ) ) + s 0 ( j ) .
In this way, the original trajectory planning problem is transformed into two simplified NLP problems, and can be solved effectively. Furthermore, the PP stage can guarantee the path discretization error in the TP stage; the derivation process is given in the next section.

3.2. Path Discretization Error Estimation

This part derives the relationship of the path discretization error between the procedures of PP and TP, and proposes the key constraints in the above TP problem presentation.
The path discretization error is set as the difference between the path integrals. The ideal path integral Q i d e a l , k + 1 and the approximate path integral Q a p p r x , k + 1 in interval k are shown as below:
Q i d e a l , k + 1 = Q i d e a l , k + s k s k + 1 q ¯ ( s ) d s ,
Q a p p r x , k + 1 = Q a p p r x , k + s k s k + 1 q ˜ ( s ) d s ,
then, we can derive the path discretization error in interval k:
ϵ k = Q a p p r x , k + 1 Q i d e a l , k + 1 = Q a p p r x , k Q i d e a l , k + s k s k + 1 q ˜ ( s ) d s s k s k + 1 q ¯ ( s ) d s ,
we ignore the error at the beginning of the interval and set Q a p p r x , k = Q i d e a l , k , which leads to the following:
ϵ k = s k s k + 1 q ˜ ( s ) d s s k s k + 1 q ¯ ( s ) d s , s k s k + 1 q ˜ ( s ) q ¯ ( s ) d s .
As a result, we get the general formula of the path discretization error. In addition, the solution path discretization error at interval k in the PP process is mentioned in (25). For the consistence of notions, we set the following:
ϵ p a t h , k = s k s k + 1 q ˜ ( s ) q ¯ ( s ) d s ,
in addition, the path discretization error at phase j in the TP problem can be written as follows:
ϵ t r a j , j = t 0 ( j ) t f ( j ) q ˜ ( t ) q ¯ ( t ) d t .
The boundary conditions at phase j are based on the states at interval k; we set the following:
s k = s ( t 0 ( j ) ) , s k + 1 = s ( t f ( j ) ) ,
then, we have the following:
q ˜ ( s k ) = q ¯ ( s k ) = q ˜ ( t 0 ( j ) ) = q ¯ ( t 0 ( j ) ) ,
q ˜ ( s k + 1 ) = q ¯ ( s k + 1 ) = q ˜ ( t f ( j ) ) = q ¯ ( t f ( j ) ) .
Moreover, (58) can be rewritten as follows:
ϵ p a t h , j = t 0 ( j ) t f ( j ) q ˜ ( t ) q ¯ ( t ) s ˙ d t ,
For uniform motion, we have s ˙ a v r g ( j ) = ( s f ( N p ) s 0 ( 1 ) ) / ( t f ( N p ) t 0 ( 1 ) ) . Finally, (59) can be rewritten as follows:
ϵ t r a j , j = ϵ p a t h , j β s ˙ a v r g ( j ) ,
where β denotes the scaling parameters, and belongs to the interval ( 0 , 1 ] . This parameter is used to estimate the error that occurs in the arc-velocity transformation between adjacent phases. We set β = 0.9 here. In this way, a linear dependence between ϵ t r a j , j and ϵ p a t h , j can be established by giving a suitable value of s ˙ a v r g ( j ) , which can be estimated through a preliminary TP process.
In conclusion, the path discretization error of the TP process can be estimated and adjusted during the process of PP. This enables the MR algorithm to be positioned at the forefront of the entire planning process, avoiding significant computation time for mesh optimization in the TP process.

4. Numerical Simulation

This section contains a complete simulation planning process for executing a specified circular path using a six-axis robotic manipulator ROCR6 manufactured by Si Vally, China. The simulation environment is a personal computer with an AMD Ryzen 7 5800H processor with 8 cores (3.20 GHz). The device information can be found in the official website or in the research [21].
The specified circular path in the PP process is shown in Figure 3. The coordinates of the circle center are [ 250 , 350 , 300 ] , the radius is 100, and the starting coordinates are [ 350 , 350 , 300 ] . The length unit used in this paper is mm; the joint position unit is rad. The ideal path functions can be written as follows:
R ( s ) = x ( s ) y ( s ) z ( s ) = 250 + 100 c o s ( s / 100 ) 350 + 100 s i n ( s / 100 ) 300 ,
so that the path constraints (7) can be given with the forward kinematics.
The boundary and inequality conditions are set as follows:
s 0 = 0 , s f = 200 π ,
q 0 = q f = [ 2.61 , 0.47 , 0.96 , 0.14 , 1.57 , 2.61 ] T ,
u m a x = inf 6 × 1 ,
q m a x = [ 3.12 , 2.55 , 2.55 , 3.12 , 3.12 , 3.12 ] T .
The initial total number of intervals is set as N = 19 . The initial guesses of decision variables at node k [ 0 , 19 ] are given as below:
s k = s 0 + k N ( s f s 0 ) ,
u k = 0 ,
q k = 0 .
Then, a software for large-scale nonlinear optimization named Interior Point OPTimizer (IPOPT) can be applied to solve (12)–(20). In addition, δ 1 and δ 2 have to be set to enable Algorithm 1. It is known that the location accuracy of ROCR6 is 0.02 mm. Furthermore, we can find a linear relationship between the path discretization error in the PP process and that in the TP process, as indicated by (64). A rough optimization without constant arc velocity is used to define s ˙ a v r g ( j ) = 0.1256 m/s. Then, we have the following:
ϵ t r a j , j = 8.85 ϵ p a t h , j 10 ϵ p a t h , j .
Therefore, let δ 2 be 2 × 10 3 mm and δ 1 be 1 × 10 3 rad according to experiment experience. Finally, the solutions are presented in Figure 4, where the position function with respect to the arc length of each joint is given. In addition, the MR algorithm produces a heterogeneous mesh to minimize the path discretization error.
The PP process includes six iterations where the MR algorithm introduces 8, 11, 15, 21, and 7 nodes into the mesh, respectively. The maximum path discretization error in each iteration is presented in Table 1, where we can find that the path discretization error is gradually reduced with the introduction of nodes in each iteration. In addition, the path discretization error reduction in each iteration is shown in Figure 5. The different color blocks refer to the path discretization error at different iterations, and we observe a consistent reduction in the path discretization error across iterations. So far, the PP process is finished.
Next, the above solution mesh is used as boundary conditions for the TP process, where the aim is to find the time law tied to the solution mesh from the PP process. And this process solves the average arc velocity along the specified path and gives the optimal time as the result, which can be set as the input of the experimental device ROCR6. The solution is shown in Figure 6.

5. Experiment

In the above section, we proposed an efficient scheme for simplifying the original TP problem along the specified path for robotic manipulators by splitting the complex OC problem into two simple NLP problems. Thus, an optimal trajectory with achievable maximum constant arc velocity can be derived by using an open source C++ NLP solver called IPOPT. In this section, we design three groups of control experiments using different arc velocities to validate the improvement of the proposed method compared to the traditional MPDC method. The advantages of the optimal trajectory can be analyzed from two aspects: the accuracy of path following in the Cartesian space and the ranges of joint currents.
The solutions of these three groups come from the traditional MPDC method, the proposed method, and manual setting. The traditional MPDC method solutions are unstable because of the small quantity of the modes. We set t 2 s as the average approximate solution produced by the traditional MPDC method with less than 20 evenly spaced nodes. t o p t is the solution of proposed method. t 10 s is a manual control group with longer time. The experimental solutions of controlled groups with different arc velocities are presented in Figure 7, where t 2 s , t o p t , and t 10 s refer to the solutions finished in 2 s, 5.494 s, and 10 s, respectively. It is obvious that t o p t and t 10 s can keep a stable tracking performance. They have the same error in Z axis varying in the interval between 300 mm and 301.5 mm, and track the Ideal Path (IP) well in plane X-Y. However, t 2 s is not allowed because of the dynamic constraints. We can find that the error in Z axis jumps up to 303 mm, and the IP cannot be tracked well. The currents in joint 1 to 3 are also presented in Figure 8 to validate the optimal trajectory. It is noticed that the faster the arc velocity, the more rapid the current changes. In addition, faster arc velocity also introduces wilder current boundary which might not be acceptable. In summary, we find the optimal trajectory can be executed well, and the efficiency of the scheme is validated.

6. Conclusions

In this paper, we have proposed a sequential OTP scheme for robotic manipulators along a specified path, utilizing DC methods. This scheme demands a predefined Cartesian path expressed explicitly in terms of arc length and aims to optimize the motion performance of robotic manipulators to accurately track the specified path. For complex systems like six-axis robotic manipulators, maintaining desired accuracy post-discretization with DC methods can be time consuming. To address this challenge and enhance solution efficiency, we divide the original OC problem into two stages: PP and TP. In the PP stage, we employ a DC method based on arc length and an MR algorithm to identify key nodes along the specified path. This aims to minimize the approximation error introduced during discretization. In the TP stage, the identified key nodes serve as boundary conditions for an MPDC method based on time. This facilitates the generation of an optimal trajectory that maximizes motion performance, considering constant velocity in Cartesian space and dynamic constraints while keeping the path discretization error.
In summary, the proposed method has two advantages compared to the traditional MPDC method. The first one is advancing the MR iterations into the PP process. This can greatly improve the solving efficiency by avoiding the iterative calculation of the TP process. The second one is the MR algorithm design in the PP process, which helps us to identify key nodes along the specified path while minimizing the path discretization error. Therefore, the solution is guaranteed to be achieved in reality. Simulation and experimental results are presented to validate the efficiency of the optimal trajectory, demonstrating its successful execution. In the future, this planning technology can combine with the control technology to achieve model predictive control and real-time force control. This approach holds significant potential for a wide range of applications in robotics.

Author Contributions

Conceptualization, Z.X. and J.D.; methodology, J.D. and Z.X.; software, Z.X.; validation, J.D. and Z.X.; formal analysis, Z.X., Y.C. and D.Y.; investigation, Z.X., Y.C. and D.Y.; resources, L.C. and J.D.; data curation, Z.X.; writing—original draft preparation, Z.X.; writing—review and editing, J.D.; visualization, Z.X.; supervision, L.C.; project administration, L.C. and J.D.; funding acquisition, L.C. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Key R&D Program of Hubei Province under grant number 2021AAB001.

Data Availability Statement

Data are contained within the article. The data presented in this study can be requested from the authors.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Noor-A-Rahim, M.; Firyaguna, F.; John, J.; Khyam, M.O.; Pesch, D.; Armstrong, E.; Claussen, H.; Poor, H.V. Toward Industry 5.0: Intelligent Reflecting Surface in Smart Manufacturing. IEEE Commun. Mag. 2022, 60, 72–78. [Google Scholar] [CrossRef]
  2. Domínguez, D.C.; Iannotta, M.; Stork, J.A.; Schaffernicht, E.; Stoyanov, T. A Stack-of-Tasks Approach Combined with Behavior Trees: A New Framework for Robot Control. IEEE Robot. Autom. Lett. 2022, 7, 12110–12117. [Google Scholar] [CrossRef]
  3. Dong, X.; Jiang, Y.; Zhao, F.; Xia, J. A Practical Multi-Stage Grasp Detection Method for Kinova Robot in Stacked Environments. Micromachines 2023, 14, 117. [Google Scholar] [CrossRef]
  4. Liu, C.; Jiang, D.; Lin, W.; Gomes, L. Robot Grasping Based on Stacked Object Classification Network and Grasping Order Planning. Electronics 2022, 11, 706. [Google Scholar] [CrossRef]
  5. Franz, D.; Yang, Y.; Michel, L.; Esen, C.; Hellmann, R. Evaluation of an ultrashort pulsed laser robot system for flexible and large-area micromachining. J. Laser Appl. 2023, 35, 042057. [Google Scholar] [CrossRef]
  6. Honigmann, P.; Hofer, M.; Hirsch, S.; Morawska, M.; Müller-Gerbl, M.; Thieringer, F.M.; Coppo, E. Cold ablation robot-guided laser osteotomy in hand, wrist and forearm surgery—A feasibility study. Int. J. Med. Robot. 2022, 18, e2438. [Google Scholar] [CrossRef]
  7. Kumar, V.; Kalita, K.; Chatterjee, P.; Zavadskas, E.K.; Shankar, C. A SWARA-CoCoSo-Based Approach for Spray Painting Robot Selection. Informatica 2021, 33, 35–54. [Google Scholar] [CrossRef]
  8. Olofsson, B.; Nielsen, L. Path-tracking velocity control for robot manipulators with actuator constraints. Mechatronics 2017, 45, 82–99. [Google Scholar] [CrossRef]
  9. Shin, K.; McKay, N. A dynamic programming approach to trajectory planning of robotic manipulators. IEEE Trans. Autom. Control 1986, 31, 491–500. [Google Scholar] [CrossRef]
  10. Kelly, M. An Introduction to Trajectory Optimization: How to Do Your Own Direct Collocation. SIAM Rev. 2017, 59, 849–904. [Google Scholar] [CrossRef]
  11. Wen, Y.; Prabhakar, R.P. A novel 3D path following control framework for robots performing surface finishing tasks. Mechatronics 2021, 76, 102540. [Google Scholar] [CrossRef]
  12. Bobrow, J.E.; Dubowsky, S.; Gibson, J.S. Time-Optimal Control of Robotic Manipulators along Specified Paths. Int. J. Robot. Res. 1985, 4, 3–17. [Google Scholar] [CrossRef]
  13. Lapierre, L.; Soetanto, D.; Pascoal, A. Nonsingular path following control of a unicycle in the presence of parametric modelling uncertainties. Int. Robust Nonlinear Control 2006, 16, 485–503. [Google Scholar] [CrossRef]
  14. von Stryk, O.; Schlemmer, M. Optimal Control of the Industrial Robot Manutec r3. In Computational Optimal Control. ISNM International Series of Numerical Mathematics; Bulirsch, R., Kraft, D., Eds.; Birkhäuser: Basel, Switzerland; Geneva, Switzerland, 1994; Volume 115. [Google Scholar] [CrossRef]
  15. Shen, P.; Zhang, X.; Fang, Y. Essential Properties of Numerical Integration for Time-Optimal Path-Constrained Trajectory Planning. IEEE Robot. Autom. Lett. 2017, 2, 888–895. [Google Scholar] [CrossRef]
  16. Pham, Q.-C. A General, Fast, and Robust Implementation of the Time-Optimal Path Parameterization Algorithm. IEEE Trans. Robot. 2014, 30, 1533–1540. [Google Scholar] [CrossRef]
  17. Pham, Q.-C. Characterizing and addressing dynamic singularities in the time-optimal path parameterization algorithm. In Proceedings of the 2013 IEEE/RSJ International Conference on Intelligent Robots and Systems, Tokyo, Japan, 3–7 November 2013; pp. 2357–2363. [Google Scholar] [CrossRef]
  18. Barnett, E.; Gosselin, C. A Bisection Algorithm for Time-Optimal Trajectory Planning Along Fully Specified Paths. IEEE Trans. Robot. 2021, 37, 131–145. [Google Scholar] [CrossRef]
  19. Debrouwere, F.; Van Loock, W.; Pipeleers, G.; Dinh, Q.T.; Diehl, M.; De Schutter, J.; Swevers, J. Time-Optimal Path Following for Robots With Convex–Concave Constraints Using Sequential Convex Programming. IEEE Trans. Robot. 2013, 29, 1485–1495. [Google Scholar] [CrossRef]
  20. Verscheure, D.; Demeulenaere, B.; Swevers, J.; De Schutter, J.; Diehl, M. Time-Optimal Path Tracking for Robots: A Convex Optimization Approach. IEEE Trans. Autom. Control 2009, 54, 2318–2327. [Google Scholar] [CrossRef]
  21. Xiong, Z.; Ding, J.; Chen, L. Time-Optimal Trajectory Planning of Six-Axis Manipulators Based on the Improved Direct Collocation Method with FMU. Appl. Sci. 2022, 12, 6741. [Google Scholar] [CrossRef]
  22. Betts, J.T.; Huffman, W.P. Path-constrained trajectory optimization using sparse sequential quadratic programming. J. Guid. Control Dyn. 1993, 16, 59–68. [Google Scholar] [CrossRef]
  23. Betts, J.T. Society for Industrial and Applied Mathematics. Practical Methods for Optimal Control and Estimation Using Nonlinear Programming, 2nd ed.; Society for Industrial and Applied Mathematics: Philadelphia, PA, USA, 2010. [Google Scholar]
  24. Becerra, V.M. Solving complex optimal control problems at no cost with PSOPT. In Proceedings of the 2010 IEEE International Symposium on Computer-Aided Control System Design, Yokohama, Japan, 8–10 September 2010; pp. 1391–1396. [Google Scholar] [CrossRef]
  25. Wen, Y.; Pagilla, P. Path-Constrained and Collision-Free Optimal Trajectory Planning for Robot Manipulators. IEEE Trans. Autom. Sci. Eng. 2023, 20, 763–774. [Google Scholar] [CrossRef]
  26. Vesentini, F.; Piccinelli, N.; Muradore, R. Velocity obstacle-based trajectory planner for anthropomorphic arms. Eur. J. Control 2023, 75, 100901. [Google Scholar] [CrossRef]
  27. Ji, C.; Zhang, Z.; Cheng, G.; Kong, M.; Li, R. A Convex Optimization Method to Time-Optimal Trajectory Planning with Jerk Constraint for Industrial Robotic Manipulators. IEEE Trans. Autom. Sci. Eng. 2023, 1–18. [Google Scholar] [CrossRef]
  28. Tika, A.; Bajcinca, N. Predictive Control of Cooperative Robots Sharing Common Workspace. IEEE Trans. Control Syst. Technol. 2024, 32, 456–471. [Google Scholar] [CrossRef]
  29. Batista, J.G.; Ramalho, G.L.B.; Torres, M.A.; Oliveira, A.L.; Ferreira, D.S. Collision Avoidance for a Selective Compliance Assembly Robot Arm Manipulator Using Topological Path Planning. Appl. Sci. 2023, 13, 11642. [Google Scholar] [CrossRef]
  30. Wu, G.; Zhang, N. Kinematically Constrained Jerk–Continuous S-Curve Trajectory Planning in Joint Space for Industrial Robots. Electronics 2023, 12, 1135. [Google Scholar] [CrossRef]
  31. Betts, J.T.; Huffman, W.P. Mesh refinement in direct transcription methods for optimal control. Optim. Control Appl. Meth. 1998, 19, 1–21. [Google Scholar] [CrossRef]
Figure 1. The literature [11,12,14,15,23] review.
Figure 1. The literature [11,12,14,15,23] review.
Actuators 13 00189 g001
Figure 2. Technical roadmap.
Figure 2. Technical roadmap.
Actuators 13 00189 g002
Figure 3. The device and the task path.
Figure 3. The device and the task path.
Actuators 13 00189 g003
Figure 4. Path planning solutions.
Figure 4. Path planning solutions.
Actuators 13 00189 g004
Figure 5. Path discretization error reduction in each iteration.
Figure 5. Path discretization error reduction in each iteration.
Actuators 13 00189 g005
Figure 6. Trajectory planning solutions.
Figure 6. Trajectory planning solutions.
Actuators 13 00189 g006
Figure 7. The experimental Cartesian paths.
Figure 7. The experimental Cartesian paths.
Actuators 13 00189 g007
Figure 8. The experimental currents.
Figure 8. The experimental currents.
Actuators 13 00189 g008
Table 1. Path discretization error in each iteration.
Table 1. Path discretization error in each iteration.
IterationNodes δ 1  (rad) δ 2  (m)
120 6.326 × 10 2 3.533804 × 10 7
228 1.423 × 10 2 7.247751 × 10 8
339 5.426 × 10 3 3.885858 × 10 8
454 2.509 × 10 3 1.193616 × 10 8
575 1.248 × 10 3 5.273560 × 10 9
682 9.342 × 10 4 4.087400 × 10 9
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Xiong, Z.; Ding, J.; Chen, L.; Chen, Y.; Yan, D. Sequential Optimal Trajectory Planning Scheme for Robotic Manipulators along Specified Path Based on Direct Collocation Method. Actuators 2024, 13, 189. https://doi.org/10.3390/act13050189

AMA Style

Xiong Z, Ding J, Chen L, Chen Y, Yan D. Sequential Optimal Trajectory Planning Scheme for Robotic Manipulators along Specified Path Based on Direct Collocation Method. Actuators. 2024; 13(5):189. https://doi.org/10.3390/act13050189

Chicago/Turabian Style

Xiong, Ziyao, Jianwan Ding, Liping Chen, Yu Chen, and Dong Yan. 2024. "Sequential Optimal Trajectory Planning Scheme for Robotic Manipulators along Specified Path Based on Direct Collocation Method" Actuators 13, no. 5: 189. https://doi.org/10.3390/act13050189

APA Style

Xiong, Z., Ding, J., Chen, L., Chen, Y., & Yan, D. (2024). Sequential Optimal Trajectory Planning Scheme for Robotic Manipulators along Specified Path Based on Direct Collocation Method. Actuators, 13(5), 189. https://doi.org/10.3390/act13050189

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop