Abstract
A numerical procedure based on the spectral Tau method to solve nonholonomic systems is provided. Nonholonomic systems are characterized as systems with constraints imposed on the motion. The dynamics is described by a system of differential equations involving control functions and several problems that arise from nonholonomic systems can be formulated as optimal control problems. Applying the Pontryagins maximum principle, the necessary optimality conditions along with the transversality condition, a boundary value problem is obtained. Finally, a numerical approach to tackle the boundary value problem is required. Here we propose the Lanczos spectral Tau method to obtain an approximate solution of these problems exploiting the Tau toolbox software library, which allows for ease of use as well as accurate results.
1. Introduction
Nonholonomic systems are a class of nonlinear systems that cannot be stabilized by a continuous time-invariant feedback, i.e., at a certain time or state there are constraints imposed on the motion (nonholonomic constraints). These systems are controllable but they cannot move instantaneously in certain directions. They belong to a class of nonlinear differential systems with nonintegrable constraints imposed on the motion [1].
Nonholonomic control systems, which result from formulations of nonholonomic systems that include control inputs, are nonlinear control problems requiring nonlinear treatment. There is ample literature on the formulation of the equations of motion and on the dynamics of nonholonomic systems, being [2] an excellent survey for examples. Nonholonomic control systems have been studied in the context of robot manipulation, mobile robots, wheeled vehicles, and space robotics, just to mention a few. In the case of wheeled vehicles, the kinematics and dynamics can be modeled based on the assumption that the wheels are ideally rolling. Typical constraints of wheeled vehicles are rolling contact, like rolling between the wheels and the ground without slipping, or sliding contact such the sliding of skates.
The solution of nonholonomic optimal control problems can be obtained following a standard procedure, which consists of applying Pontryagin’s maximum/minimum principle to obtain set of equations along with initial and terminal conditions resulting into a two-point boundary value problem (BVP) [3].
In this work we propose the use of the spectral Tau method to obtain approximate solutions of nonholonomic optimal control problems through the associated BVP.
The spectral Tau method produces a polynomial approximation of the solution of the differential problem. It is based on solving a system of linear algebraic equations, obtained by imposing that all conditions are verified exactly and the residual is orthogonal to the first elements of an orthogonal polynomial basis [4].
The paper is organized as follows. Section 2 describes the system model of the nonholonomic wheeled vehicle and Section 3 explains the optimal control formulation. A brief description of the Tau method is presented in Section 4. An illustrative example with numerical results is provided in Section 5 and some conclusions are drawn in Section 6.
2. Nonholonomic Wheeled Vehicle Model
Vehicle models are usually described by a set of ordinary differential equations that define the dynamics of the vehicle and the relationship between the state variables and control input. The kinematic model of a wheeled vehicle can be defined by the following differential equations
where is the robot’s position in space, is the angle with respect to the x-axis, is the steering wheel’s angle with respect to the robot’s longitudinal axis, and v is the velocity. (see Figure 1).
Figure 1.
Car-like robot model.
A nonholonomic car-like robot is a car model which rolls without slipping between the wheels and the ground. This constraint is expressed by the equation [5]
The simplest model corresponds to a robot with a single wheel: the unicycle model. In this model the wheel rolls on a plane while keeping its body vertical. It is an unrestricted model since it can rotate freely while standing in its position . Furthermore, the dynamics are characterized by
The kinematic model of a car-like robot has the same state variables as the unicycle model and its dynamic is represented by
where stands for the curvature and r for the turning radius of the robot that corresponds the maximum curvature [6].
3. Optimal Control Problems
An optimal control problem (OCP) can be formulated as
where J is the cost function, is the state vector representing the dynamics, is the control vector, is the initial configuration and is the final configuration.
The solution of the OCP can be obtained following a standard procedure, which consists in applying Pontryagin’s maximum principle and obtaining the necessary optimality conditions along with the transversality condition resulting into a two-point boundary value problem (BVP).
Pontryagin Maximum Principle
Considering the Hamiltonian function
where F and f are the functions described above and is a vector of co-state variables, and considering that is a controlled trajectory defined over the interval then is optimal, for all admissible controls , if the Pontryagin’s maximum principle holds, i.e.,
The Pontryagin maximum principle guarantees that if is an optimal pair, a solution of the problem (4), then the first order necessary conditions
together with the stationary conditions
satisfies the Hamiltonian maximization with transversality conditions given by [3]
This reduces the constrained problem (4) to an unconstrained differential equations system (6)–(8). Usually nonlinear, this system of differential equations can be approximately solved by a numerical method. The next section is devoted to introducing the Tau method, which will be used to numerically tackle the problem.
4. Tau Method
The spectral Tau method produces a polynomial approximation, , of the solution, , of a given differential problem , satisfying a set of conditions defined on an interval . Introduced by Lanczos in 1938 [7] to compute approximate solutions of linear differential problems with polynomial coefficients and right-hand side, the Tau method solves a tuned system of linear algebraic equations obtained by imposing that the conditions are verified exactly and that the residual is minimized in a quadrature sense, i.e, is orthogonal to the first elements of an orthogonal polynomial basis. It can be applied, indifferently, to initial, boundary or mixed value problems and it can be implemented with any orthogonal basis. We begin by introducing the method for the original case and then shed some light on how to extend it for the solution of nonlinear problems with non-polynomial coefficients.
4.1. Preliminaries and Notation
Let be the space of all algebraic polynomials and let be a linear differential operator of order with polynomial coefficients represented by
and y be the exact solution of the differential problem
where is a polynomial or a convenient polynomial approximation and are linear functionals, acting on , representing the (supplementary) conditions.
The main idea of the Tau method is to approximate y by the polynomial , solution of the perturbed problem
where is a polynomial perturbation close to zero in . Choosing an orthogonal polynomial basis , then the coefficients of are determined imposing that is orthogonal to .
The original idea of the Tau method [8] is based on the minimax property of Chebyshev polynomials and on the fact that the solution of (11) depends continuously on the residual . Later generalized to more general bases [4], the method looks for a residual that minimizes the weighted norm associated to the sequence . Indeed, is orthogonal with respect to the weight function on
where and is the Kronecker delta, and (11) is achieved by imposing
that is, .
Using suitable matrices, see for example [4,9,10], the differential problem (11) is translated into an algebraic problem. Such matrices must be computed with criteria in order to ensure stable computations [10].
4.2. Nonlinear Problems
Nonlinear differential problems are solved iteratively by first linearizing the problem and then applying the Tau method to the linear inner problem.
Let
be a differential equation, where F is a differential operator that could be nonlinear in y and on its derivatives.
From , an approximation of the exact solution y, we take the first order Taylor polynomial of F centered in to approximate F
Applying the Tau method to the linear differential Equation (14), an iterative process is implemented to get increasingly better approximations for the differential problem
For additional details on the use of the Tau method for nonlinear problems the reader is invited to read [11].
5. Numerical Experiments
The proposed example is based on the work of [12] and it will be tackled by the Tau method, described in Section 4.
The problem at hand is an optimal control problem of the form (4) with and where is the vector of state variables and Q is the weighting matrix.
5.1. System Model
Consider an automated vehicle that moves on a horizontal plane, the contact of each wheel with the floor is assumed to satisfy the rolling without slipping condition and the control inputs are the torque generated by two motors mounted on the wheels. For a fixed final time, it is desired to find the control inputs that minimizes the energy of the final state. This system can be modeled by
subject to
with nonholonomic constraint
where the position coordinates , and the heading angle , define the system configuration. The mass m, the inertia I, the wheels’ radius R, the half-length of the axis L, are parameters of the system and and are torques generated by the motors.
Defining the control inputs as
and the state variables as
Applying the Hamiltonian H, defined in (5),
with , and calculating the necessary conditions (6), the stationary conditions (7) and the transversality conditions (8), the following second order system of differential equations is obtained:
for , , and , with initial and transversality conditions given by
Since this is a nonlinear differential system, in order to implement the Tau method, differential equations need to be linearized. Expressions of the form and will be replaced, respectively, by
Thus, the differential system becomes
where and are approximations to and .
The matrix representation of the differential problem (21), together with the conditions (20), is of the form , where
with
where represents the action of boundary conditions (20) over the polynomial base elements and its derivatives. Matrix D represents the differential operator
Finally,
where
and M and N are matrices described in [4] representing, respectively, the multiplication and the differentiation operator.
5.2. Numerical Results
In this section we report the numerical results for the example described in Section 5.1 with initial positions and heading angle 0. The time interval is and the system parameters used in the simulation are kg, kg·m2, m and m. The weighting matrix is , where I stands for the identity matrix.
The simulation results were obtained using the Tau Toolbox with Chebyshev polynomials.
The state trajectories and and the optimal trajectory for the position are illustrated in Figure 2 and Figure 3. The trajectories were obtained with 5th order Chebyshev polynomials.
Figure 2.
State trajectories and .
Figure 3.
State trajectories and .
These approximate solutions only required iterations to satisfy the stopping criterion . For larger degree polynomials (10 and 15) machine precision can be achieved.
The residual produced by the Tau method in the iteration m is , where is the approximating solution of the system of homogeneous differential equations . Figure 4 plots the residual and produced by the Tau method for the state variables and , respectively.
Figure 4.
Residual, , produced by the Tau method for the state variables and .
Table 1 presents the values for the functional J defined in (16) using polynomials of degree and 15. Since , the integral and can be calculated using the the approximate solutions for the state variables and the co-state variable .
Table 1.
J values for several polynomial degree approximations.
As the polynomial multiplication and differentiation, the integration can be set into algebraic operation as well, using a suitable matrix [4].
6. Conclusions
The Lanczos spectral Tau method was used to compute approximate polynomial solutions for nonholonomic systems. A detailed illustration on the approximation procedure is offered. The Tau toolbox provides the appropriate environment to solve systems of ordinary differential problems while allowing for accurate solutions, whenever the sought solution is regular. Numerical results for this dynamical optimization problem confirm both aspects: ease of use and accuracy of approximation.
Author Contributions
A.G. and J.M.A.M. conceived and designed the experiments; J.M.A.M. and P.B.V. performed the experiments; A.G. and J.M.A.M. analyzed the data; A.G. and P.B.V. wrote the paper.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Fontes, F.A.C.C. Discontinuous feedbacks, discontinuous optimal controls, and continuous-time model predictive control. Int. J. Robust Nonlinear Control IFAC Affil. J. 2003, 13, 191–209. [Google Scholar] [CrossRef]
- Kolmanovsky, I.; McClamroch, N.H. Developments in nonholonomic control problems. IEEE Control Syst. Mag. 1995, 15, 20–36. [Google Scholar]
- Athans, M.; Falb, P.L. Optimal Control: An Introduction to the Theory and Its Applications; Courier Corporation: North Chelmsford, MA, USA, 2007. [Google Scholar]
- Ortiz, E.L.; Samara, H.J. An operational approach to the Tau method for the numerical solution of non-linear differential equations. Computing 1981, 27, 15–25. [Google Scholar] [CrossRef]
- Angeles, J.; Kecskemethy, A. Kinematics and Dynamics of Multi-Body Systems; Springer: Berlin, Germany, 2014. [Google Scholar]
- De Luca, A.; Oriolo, G.; Samson, C. Feedback control of a nonholonomic car-like robot. In Robot Motion Planning and Control; Springer: Berlin, Germany, 1998; pp. 171–253. [Google Scholar]
- Coleman, J. The Lanczos tau-method. IMA J. Appl. Math. 1976, 17, 85–97. [Google Scholar] [CrossRef]
- Lanczos, C. Trigonometric interpolation of empirical and analytical functions. J. Math. Phys. 1938, 17, 123–199. [Google Scholar] [CrossRef]
- Trindade, M.; Matos, J.; Vasconcelos, P.B. Towards a Lanczos’Tau-method toolkit for differential problems. Math. Comput. Sci. 2016, 10, 313–329. [Google Scholar] [CrossRef]
- Vasconcelos, P.; Matos, J.; Trindade, M. Spectral Lanczos’ Tau Method for Systems of Nonlinear Integro-Differential Equations. In Integral Methods in Science and Engineering; Constanda, C., Dalla Riva, M., Lamberti, P., Musolino, P., Eds.; Birkhäuser: Cham, Switzerland, 2017; Volume 1, pp. 305–314. [Google Scholar]
- Gavina, A.; Matos, J.; Vasconcelos, P.B. Improving the Accuracy of Chebyshev Tau Method for Nonlinear Differential Problems. Math. Comput. Sci. 2016, 10, 279–289. [Google Scholar] [CrossRef]
- Yih, C.C.; Ro, P.I. Near-optimal motion planning for nonholonomic systems using multi-point shooting method. In Proceedings of the IEEE International Conference on Robotics and Automation, Minneapolis, MN, USA, 22–28 April 1996; Volume 4, pp. 2943–2948. [Google Scholar]
© 2019 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).



