1 Introduction

With the rapid development of electric motors and electronic communications, there is a trend in the automotive industry towards the use of electrified propulsion systems together with electronic control systems to achieve fuel efficiency and to improve handling performance. Almost all automakers throughout the world have been studying and promoting electric vehicles (EVs) for energy and environmental considerations. Individual-wheel drive (IWD) is a promising technique for EVs in which all wheels are controlled independently by their own in-wheel/hub motors (Hori, 2004).

Because of the inherent characteristics of electric motors in which the torque can be negative, it is necessary for the global chassis control (GCC) system to coordinate the individual traction and braking actions of the four wheels. There are two main tasks in the GCC system (Johansen and Fossen, 2013). The first one is to compute a vector of virtual inputs to be applied to the vehicle so as to meet the motion control objectives of a given application. The other is to allocate these efforts to the individual actuators such that the total forces and moments generated by all actuators amount to the motion control efforts. In the design of the motion controller, the nonlinearity of the vehicle dynamics is usually handled by employing the sliding mode control (SMC) method (Mokhiamar and Abe, 2004; Li et al., 2008; Wang and Longoria, 2009). A terminal sliding mode control (TSMC) is a type of sliding control, in which the finite-time convergence and quick responsiveness can be achieved on the terminal sliding manifold (Liu and Wang, 2012). It has been successfully applied to applications of vehicle longitudinal (Kim et al., 2007) and lateral (Ren et al., 2011) control, but no study has been previously made regarding its effects on the combined motion control. In the matter of control allocation, different optimization methods have been proposed (Mokhiamar and Abe, 2004; Ono et al., 2006; Li et al., 2008; Wang and Longoria, 2009; Chen and Wang, 2011), although none of them are computationally efficient. An alternative plan is to employ the pseudo-inverse method to map the relationship between the motion control efforts and the actuator efforts (Weiskircher and Müller, 2012), but this does not consider the actuator saturation and consequently has limited practical utility.

In this paper, a novel torque distribution controller is developed for an IWD EV (Fig. 1). First, the bicycle model and the optimal preview acceleration (OPA) driver model is used to provide the steering wheel angles δ SW in the open- and closed-loop maneuvers to compute the desired vehicle states V xd, \(V_{x{\text{d}}},\psi _{\text{d}}\), and ψ d. Second, a terminal sliding mode controller (TSMCr) is designed to generate the motion control efforts, i.e., F xd, F yd, and M zd, to track the desired motion commands, in which the steady-state tracking errors can be eliminated in finite time. Third, while the longitudinal tire forces of the IWD vehicles can be controlled individually, for the trade-off between computational precision and real-time performance, this paper employs a simplified tire model to effectively calculate lateral tire forces with acceptable accuracy. Thus, nonlinear constraints of the tire adhesive limits can be determined accordingly. Last, by considering these constraints, a distributor effectively allocates the motion control efforts to each of the four wheels based on a novel strategy, which divides the task into several unconstrained distributions. It should be noted that for concerns of cost, maintenance and safety, no four wheel steering (4WS) or active front steering (AFS) system is involved and the only controlled variables are the four wheels’ traction/braking torques.

Fig. 1
figure 1

Structure of proposed torque distribution controller

The explanations of the variables are given in Section 2.1 as well as in Section 3

2 System modeling

2.1 Vehicle dynamics model

For the model-based controller design, the vehicle is modeled as a 3-DOF (three degrees of freedom) double track model. Its coordinate system is shown in Fig. 2.

Fig. 2
figure 2

Schematic of vehicle model

$$\left[ {\begin{array}{*{20}c} {\dot V_x } \\ {\dot V_y } \\ {\ddot \psi } \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} {V_y \dot \psi - \frac{{C_D A_f \rho V_x^2 }} {2}} \\ { - V_x \dot \psi } \\ 0 \\ \end{array} } \right] + \left[ {\begin{array}{*{20}c} {\frac{1} {m}} & 0 & 0 \\ 0 & {\frac{1} {m}} & 0 \\ 0 & 0 & {\frac{1} {{I_z }}} \\ \end{array} } \right]\left[ {\begin{array}{*{20}c} {F_{xd} } \\ {F_{yd} } \\ {M_{zd} } \\ \end{array} } \right],$$
((1))
$$[F_{xd} F_{yd} M_{zd} ]^T = B_x \times [F_{xlf} F_{xrf} F_{xlr} F_{xrr} ]^T + B_y \times [F_{ylf} F_{yrf} F_{ylr} F_{yrr} ]^T ,$$
((2))

where V x and V y are the longitudinal and lateral velocities of the vehicle at cog (center of gravity), respectively; ψ is the yaw angle, the first- and second-order time derivatives of which are the yaw rate and yaw angular acceleration, respectively; C D is the drag coefficient factor; A f is the vehicle front area; ρ is the air density; m is the vehicle mass; I z is the moment of inertia around the vertical axis; the motion control efforts F xd, F yd, and M zd are the desired longitudinal force, lateral force, and yaw moment, respectively; F xij is the tire longitudinal force, which is controlled timely (due to the fast response of the electric motor) and precisely (via an accurate measurement of the motor torque); F yij is the tire lateral force, which can be calculated by a tire model; the first subscript of (·)ij denotes the left (l) or right (r) side of the vehicle, and the second denotes the front (f) or rear (r) axle. The corresponding matrices are

$$B_x = \left[ {\begin{array}{*{20}c} {\cos \delta _{lf} } \\ {\sin \delta _{lf} } \\ {l_f \sin \delta _{lf} - \frac{{t_f }} {2}\cos \delta _{lf} } \\ \end{array} \begin{array}{*{20}c} {\cos \delta _{rf} } \\ {\sin \delta _{rf} } \\ {l_f \sin \delta _{rf} + \frac{{t_f }} {2}\cos \delta _{rf} } \\ \end{array} \begin{array}{*{20}c} 1 \\ 0 \\ { - \frac{{t_r }} {2}} \\ \end{array} \begin{array}{*{20}c} 1 \\ 0 \\ {\frac{{t_r }} {2}} \\ \end{array} } \right],$$
((3))
$$B_y = \left[ {\begin{array}{*{20}c} { - \sin \delta _{lf} } \\ {\cos \delta _{lf} } \\ {l_f \cos \delta _{lf} + \frac{{t_f }} {2}\sin \delta _{lf} } \\ \end{array} \begin{array}{*{20}c} { - \sin \delta _{rf} } \\ {\cos \delta _{rf} } \\ {l_f \cos \delta _{rf} - \frac{{t_f }} {2}\sin \delta _{rf} } \\ \end{array} \begin{array}{*{20}c} 0 \\ 1 \\ { - l_r } \\ \end{array} \begin{array}{*{20}c} 0 \\ 1 \\ { - l_r } \\ \end{array} } \right],$$
((4))

where l f and l r are the distances from cog to front and rear axles, respectively; t f and t r are the front and rear wheel treads, respectively; δ lf and δ rf are respectively the steering angles of the left-front and right-front wheels, where the Ackerman steering principle is applied, expressed as follows:

$$\tan \delta _{lf,lr} = \arctan \left( {\frac{{L\tan \delta _f }} {{L \mp t_f /2 \cdot \tan \delta _f }}} \right),$$
((5))

where the minus (plus) sign is for the left (right) wheel; L is the wheelbase of the vehicle, L=l f+l r; δ f is the front wheel steering angle.

A simple yet powerful tool to describe the vehicle lateral dynamics is the well-known bicycle model, as shown in Fig. 2. The matrix form of this model is expressed as Eq. (6), in which the left and right side wheels are combined to one wheel, and the lateral tire forces F yf and F yr are proportional to the tire sideslip angles α f and α r, respectively.

$$\left[ {\begin{array}{*{20}c} {\dot V_y } \\ {\ddot \psi } \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} {\frac{{C_{\alpha f} + C_{\alpha r} }} {{mV_x }}} & {\frac{{l_f C_{\alpha f} - l_r C_{\alpha r} }} {{mV_x }} - V_x } \\ {\frac{{l_f C_{\alpha f} - l_r C_{\alpha r} }} {{I_z V_x }}} & {\frac{{l_f^2 C_{\alpha f} + l_r^2 C_{\alpha r} }} {{I_z V_x }}} \\ \end{array} } \right]\left[ {\begin{array}{*{20}c} {V_y } \\ {\dot \psi } \\ \end{array} } \right] + \left[ {\begin{array}{*{20}c} { - \frac{{C_{\alpha f} }} {m}} \\ { - \frac{{l_f C_{\alpha f} }} {{I_z }}} \\ \end{array} } \right]\delta _f ,$$
((6))

where C αf and C αr are the tire cornering stiffnesses of the front and rear axles, respectively.

The relationship between the vehicle sideslip angle β and the lateral velocity can be expressed as

$$\beta = \arctan (V_y /V_x ).$$
((7))

2.2 Wheel model

With the use of electric motors to drive all the wheels, an IWD EV can control the longitudinal tire forces individually based on the following equation:

$$F_{xij} = \frac{{(T_{ij} - T_{bij} - J_{ij} \dot \omega _{ij} )}} {{R_{ij} }} - F_{zij} f_{ij} ,$$
((8))

where T ij is the traction/braking torque exerted by the electric motor; T bij is the friction torque of the braking system and is assumed to be known; J ij is the wheel spin inertia; \(\dot \omega _{{\text{ij}}}\) is the wheel spin acceleration; R ij is the wheel effective rolling radius; f ij is the rolling resistance coefficient; F zij is the tire vertical load, which can be expressed as follows:

$$\left\{ {\begin{array}{*{20}c} {F_{xlf,rf} = \frac{{mgl_r }} {{2L}} - \frac{{m_s a_x h_s }} {{2L}} \mp k_f \frac{{m_s a_y h_s }} {{t_f }},} \\ {F_{xlr,rr} = \frac{{mgl_f }} {{2L}} + \frac{{m_s a_x h_s }} {{2L}} \mp k_r \frac{{m_s a_y h_s }} {{t_r }},} \\ \end{array} } \right.$$
((9))

where the minus (plus) sign is for the left (right) tire; g is the gravitational constant (9.8 m/s2); m s is the sprung mass of the vehicle; k f and k r are the lateral weight-shift distribution ratios on the front and rear axles, respectively; h s is the sprung mass height; a x and a y are the longitudinal and lateral accelerations at cog, respectively, and are given by

$$\left\{ {\begin{array}{*{20}c} {a_x = \dot V_x - \dot \psi V_y ,} \\ {a_y = \dot V_y - \dot \psi V_x ,} \\ \end{array} } \right.$$
((10))

2.3 Tire model

A simple tire model proposed by Sakai et al. (2002) is used to depict the relationship between the lateral force and the sideslip angle in the tire stable and monotonic region. By using the arctangent function to fit the experimental curve, the tire model can be formulated as follows:

$$\left\{ {\begin{array}{*{20}c} {F_y = - C_\alpha \sqrt {1 - \left( {\frac{{F_x }} {{\mu F_z }}} \right)^2 } \frac{\mu } {k}arc \tan \left( {\frac{k} {\mu }\alpha } \right),} \\ {k = C_\alpha \frac{\pi } {p}\frac{1} {{F_z }}, p = 2,} \\ \end{array} } \right.$$
((11))

where μ is the tire-road friction coefficient; C α is the tire cornering stiffness; α is the tire sideslip angle, which is obtained by Eq. (12). Here, the value of the fitting constant i is changed to ‘2.9’ to improve the fitting accuracy at relatively large sideslip angles.

$$\left\{ {\begin{array}{*{20}c} {\alpha _{lf,rf} = \sigma _{lf,rf} - \delta _{lf,rf} ,} \\ {\alpha _{lr,rr} = \sigma _{lf,rf} ,} \\ \end{array} } \right.$$
((12))

where σ ij is the angle between the velocity of wheel center and the longitudinal axle of the vehicle body. They are given by

$$\left\{ {\begin{array}{*{20}c} {\alpha _{lf,rf} = \arctan \left( {\frac{{V_y + l_f \dot \psi }} {{V_x \mp t_f \dot \psi /2}}} \right),} \\ {\alpha _{lr,rr} = \arctan \left( {\frac{{V_y - l_r \dot \psi }} {{V_x \mp t_r \dot \psi /2}}} \right),} \\ \end{array} } \right.$$
((13))

where the minus (plus) sign is for the left (right) wheel.

3 Driver-vehicle system

3.1 Reference model

This study assumes that the driver’s task is only to keep the vehicle tracking at given speed profiles. So the desired longitudinal velocity is independent from the steering task:

$$\left\{ {\begin{array}{*{20}c} {V_{xd} = V_{x0} + \int_0^t {a_{xd} (\tau )d\tau } ,} \\ {V_{xr} = V_x - V_{xd} ,} \\ \end{array} } \right.$$
(14)

where V xd is the desired longitudinal velocity of the vehicle at cog; V xr is the longitudinal velocity error; V x0 is the initial longitudinal velocity of the vehicle at cog; a xd is the driver acceleration or deceleration command.

For stability consideration, the undesired vehicle sideslip motion that generates V y should be suppressed to the minimum level, which can be effectively controlled by systems such as 4WS and AFS. However, these complex systems increase the overall cost and require additional maintenance. Moreover, since the vehicle’s lateral dynamics are greatly influenced by the active intervention of the AFS system, non-cooperative behaviors may occur between the human driver and the AFS system when they hold different targets (Na and Cole, 2013). This can cause an inexperienced driver to get stressed and increase his/her risk of a serious road accident. Therefore, we study the IWD EV with a conventional front-wheel-steering configuration and use a torque distribution approach to control the vehicle’s motion.

The steady-state yaw rate response of the bicycle model in Eq. (6), i.e., steady-state yaw rate gain, \({{\dot \psi } \mathord{\left/ {\vphantom {{\dot \psi } {\delta _{\text{f}} }}} \right. \kern-\nulldelimiterspace} {\delta _{\text{f}} }}\), is obtained by

$$\left\{ {\begin{array}{*{20}c} {\frac{{\dot \psi }} {{\delta _f }} = \frac{{V_x /L}} {{1 + K_s V_x^2 }},} \\ {K_s = \frac{m} {{L^2 }}\left( {\frac{{l_f }} {{C_{\alpha r} }} - \frac{{l_r }} {{C_{\alpha f} }}} \right),} \\ \end{array} } \right.$$
((15))

where K s is defined as the understeer gradient, which usually has a negative value. It can be determined that the understeer gradient is actually a time-varying coefficient with the tire cornering stiffness varying at different vertical loads, road conditions, and slip ratios. Also, a non-zero K s makes \({{\dot \psi } \mathord{\left/ {\vphantom {{\dot \psi } {\delta _{\text{f}} }}} \right. \kern-\nulldelimiterspace} {\delta _{\text{f}} }}\) a nonlinear function of V x . Furthermore, the driver tends to maneuver the vehicle according to its linear response, so that hereafter the value of K s is set to be ‘0’, which implies that the steady-state yaw rate gain is V x /L.

3.2 Driver model

The experiments should contain the open-loop maneuvers in order to verify the tracking performance of the proposed controller. Nevertheless, the controller should also be tested in the closed-loop maneuvers, so that the driver’s reactions to the vehicle dynamic responses can be studied and analyzed. This study employs the OPA driver model to mimic the human driver behavior (Guo and Guan, 1993). By using the schematic representation of Fig. 3 and assuming the vehicle proceeds with the current longitudinal and lateral velocities, the previewed lateral error between the desired path and the actual vehicle position ε is defined by

$$\varepsilon = r(t + T_P ) - y(t) - T_P V_y (t),$$
((16))

where T p is the preview time; r (t+ T p) is the desired path after T p; y is the lateral offset of vehicle at cog.

Fig. 3
figure 3

Schematic of OPA driver model geometry

Fig. 4 shows the block diagram of this single-point preview model, which exerts the steering input in order to provide the optimal lateral acceleration \(2\varepsilon /T_{\text{P}}^2\) and to minimize the previewed lateral error. Eq. (17) indicates that the OPA driver model predicts the vehicle’s future position based on the dynamic response of the aforementioned bicycle model.

$$\left\{ {\begin{array}{*{20}c} {G_{ay} = V_x \frac{{\dot \psi }} {{\delta _f }} = \frac{{V_x^2 }} {L},} \\ {\delta _f^* = \frac{{2\varepsilon }} {{G_{ay} T_P^2 }},} \\ \end{array} } \right.$$
((17))

where G ay is the steady-state steering gain, which reflects the yaw dynamics of the internal model anticipated by the driver and is proportional to the aforementioned steady-state yaw rate gain; \(\delta _{\text{f}}^ *\) is the optimal front wheel steering angle. The driver’s actual input to the vehicle is the steering wheel angle δ SW, given by

$$\frac{{\delta _{SW} (s)}} {{\delta _f^* (s)}} = i_{SW} \frac{{1 + T_C s}} {{1 + T_N s}}e^{ - T_{D^s } } ,$$
((18))

where i SW is the steering system ratio; T C is the driver correction time; T N is the driver action delay; T D is the driver brain response delay; and s is the Laplace operator.

Fig. 4
figure 4

Block diagram of OPA driver model

For the lane-keeping task, the driver exerts steering effort not only to eliminate the deviation error, but also to minimize the orientation error with respect to the road. Moreover, it was discovered that accumulation of the yaw rate tracking error could cause the undesired vehicle yaw angle which greatly affects the vehicle heading and path-following accuracy (Wang and Longoria, 2009). Thus, a yaw angle control effort is considered to mitigate this effect. To sum up, the yaw error ψ r and the yaw rate error \(\dot \psi _{\text{r}}\) are given by

$$\left\{ {\begin{array}{*{20}c} {\psi _r = \psi _{rd} (t + T_P ) - \psi (t),} \\ {\dot \psi _r = \delta _f \cdot V_x /L - \dot \psi ,} \\ \end{array} } \right.$$
((19))

where ψ rd is the road path heading angle after T P, as shown in Fig. 3.

4 Terminal sliding mode control (TSMC)

The global fast TSMC proposed by Park and Tsuji (1999) is employed to design the sliding surfaces s 1 and s 2, while the nonsingular TSMC technique proposed by Feng et al. (2002) is applied to design the sliding surface s 3. The sliding surfaces are defined by

$$s_1 = \dot V_{xr} + \alpha _{1eq} V_{xr} + \beta _{1eq} V_{xr}^{q_1 /p_1 } ,$$
((20))
$$s_2 = \dot V_y + \alpha _{2eq} V_y + \beta _{2eq} V_y^{q_2 /p_2 } ,$$
((21))
$$s_3 = \alpha _{3eq} \psi _r + \beta _{3eq} \dot \psi _r^{p_3 /q_3 } ,$$
((22))

where α ieq and β ieq are the strictly positive constants of TSMC (i=1, 2, 3); p i and q i are the positive odd numbers and p i >q i . In particular, for i=3, we also have: 1<p 3/q3<2.

Because the longitudinal and lateral velocities follow the dynamics of the first-order system in Eq. (1), the control laws u 1 and u 2 are directly derived from the sliding surfaces by letting s 1 and s 2 be equal to ‘0’, expressed as Eq. (23). Meanwhile, the yaw motion follows the dynamics of a second-order system, thus the control law is obtained from the differential equation, given by Eq. (24).

$$s_i = 0, i \in \{ 1,2\} ,$$
((23))
$$\dot s_i = u_{in} , i = 3,$$
((24))

where u 3n is the approaching law for the sliding surface s 3. Here, the nonlinear reaching law u 3n proposed by Ren et al. (2011) rather than a linear one is adopted to achieve the finite-time convergence of \(\psi _{\text{r}}\) and \(\dot \psi _{\text{r}}\) when \(\dot s_{\text{3}} = 0,\) and thus allows us to have a better control performance.

$$u_{3n} = - \alpha _{3n} s_3 - \beta _{3n} s_3^{q_{3n} /p_{3n} } ,$$
((25))

where α 3n and β 3n are strictly positive constants; p 3n and q 3n are positive odd numbers and p 3n>q 3n.

To sum up, the control laws are given by

$$u_1 = F_{xd} = m\left( {a_{xd} - V_y \dot \psi + \frac{{C_D A_f \rho V_x^2 }} {{2m}} - \alpha _{1eq} V_{xr} - \beta _{1eq} V_{xr}^{q_1 /p_1 } } \right),$$
((26))
$$u_2 = F_{yd} = m\left( {V_x \dot \psi - \alpha _{2eq} V_y - \beta _{2eq} V_y^{q_2 /p_2 } } \right),$$
((27))
$$u_3 = M_{zd} = I_z \left( {\frac{{a_{xd} \delta _f }} {L} + \frac{{V_{xd} \dot \delta _f }} {L} - \frac{{\alpha _{3eq} q_3 }} {{\beta _{3eq} p_3 }}\dot \psi _r^{2 - p_3 /q_3 } - \alpha _{3n} s_3 - \beta _{3n} s_3^{q_{3n} /p_{3n} } } \right).$$
((28))

The global fast sliding surface for the controllers u 1 and u 2 is expressed as Eq. (29), of which the convergence time is t s when the initial state x (0)≠0 reaches x=0 which is given by Eq. (30).

$$s = \dot x + \alpha _{ieq} x + \beta _{ieq} x^{q_i /p_i } , i \in \{ 1,2\} ,$$
((29))
$$t_s = \frac{{p_i }} {{\alpha _{ieq} (p_i - q_i )}}\ln \frac{{\alpha _{ieq} x(0)^{(p_i - q_i )/p_i } + \beta _{ieq} }} {{\beta _{ieq} }}.$$
((30))

By analyzing the solutions of the differential equation, expressed as Eq. (31), the finite-time convergence for the nonsingular TSMCr u 3 occurs from the initial state s 3 (0)≠0 to s 3=0.

$$\dot s_3 + \alpha _{3n} s_3 + \beta _{3n} s_3^{q_{3n} /p_{3n} } = 0.$$
((31))

Hence, we have

$$\dot \psi _r = - \left( {\alpha _{3eq} /\beta _{3eq} } \right)^{q_3 /p_3 } \psi _r^{q_3 /p_3 } .$$
((32))

Then it is straightforward to determine that the yaw angle error ψ r will reach ‘0’ along the sliding mode in finite time (Liu and Wang, 2012).

For stability analysis, the Lyapunov functions are selected as

$$\left\{ {\begin{array}{*{20}c} {V_i = x_i^2 /2, i \in \{ 1,2\} ,} \\ {V_i = s_i^2 /2, i = 3.} \\ \end{array} } \right.$$
((33))

Then we have:

$$\dot V_1 = x_1 \dot x_1 = - \alpha _{1eq} V_x^2 - \beta _{1eq} \sqrt[{p_1 }]{{V_x^{q_1 + p_1 } }} \leqslant 0,$$
((34))
$$\dot V_2 = x_2 \dot x_2 = - \alpha _{2eq} V_y^2 - \beta _{2eq} \sqrt[{p_2 }]{{V_y^{q_2 + p_2 } }} \leqslant 0,$$
((35))
$$\dot V_3 = s_3 \dot s_3 = s_3 \left( { - \alpha _{3n} s_3 - \beta _{3n} s_3^{q_{3n} /p_{3n} } } \right) - \alpha _{3n} s_3^2 - \beta _{3n} \sqrt[{p_{3n} }]{{s_3^{q_{3n} /p_{3n} } }} \leqslant 0.$$
((36))

Then the sliding conditions are satisfied and the sliding surfaces are attractive. Note that if the desired forces and moment cannot be generated due to the friction circle limitations of the four wheels, the stability of the proposed TSMCrs cannot be guaranteed. The friction circle of each tire would directly affect the range of the control efforts. The inequality constraint of the motion control efforts is written as

$$\tau _u = \sqrt {\frac{{F_{xd}^2 + F_{yd}^2 + W_r^2 M_{zd}^2 }} {{\left( {F_{zlf} \mu _{lf} + F_{zrf} \mu _{rf} + F_{zlr} \mu _{lr} + F_{zrr} \mu _{rr} } \right)^2 }}} \leqslant 1,$$
((37))

where W r is a constant weight balancing forces/moment, which is chosen as the reciprocal of the typical length between cog and road wheels (Ono et al., 2006). When the control efforts are calculated to be greater than this constraint, the motion control efforts would be limited by a ratio of τ u. Note that this loose bound is to ensure that the desired motions are theoretically realizable before the efforts are distributed to the actuators, a precise limitation of the bound will be developed and handled in the torque distribution strategy, which will be illustrated in the next subsection.

5 Constrained torque distribution

The motion control efforts produced by TSMCr need to be distributed to the electric motors driving the four wheels. The functional relationship between the motion control efforts and the controlled variables can be compactly written as Eq. (38), which serves as a redundant linear constraint for the torque distribution problem.

$$\left\{ {\begin{array}{*{20}c} {F_{ud} = B \times u_{act} ,} \\ {F_{ud} = [F_{xd} F_{yd} M_{zd} ]^{ - T} ,} \\ {F_{act} = [F_{xlf} F_{xrf} F_{xlr} F_{xrr} ]^T ,} \\ \end{array} } \right.$$
((38))

where B is a 3×4 matrix representing the effectiveness of the actuators. There are 3 motion control objectives but only 4 controlled variables, which has limited potential for an optimal distribution. Furthermore, optimization approaches usually require large computational efforts and are not suitable for real-time applications. Thus, assuming that the pseudo-inverse B + exists, this study distributes the control efforts by calculating the torques with u act=B + F ud. The tire adhesive limit should also be considered as an additional constraint, which can be described by the friction ellipse concept

$$\left( {\frac{{F_{xij} }} {{C_{xij} }}} \right)^2 + \left( {\frac{{F_{yij} }} {{C_{yij} }}} \right)^2 = (\mu _{ij} F_{zij} )^2 ,$$
((39))

where the values of the coefficients C xij and C yij are set to ‘1’ due to the use of the simple tire model in Eq. (11), which defines the friction limitation as a circle rather than an ellipse. However, it is still difficult and time-consuming to distribute torques directly under these nonlinear constraints of four tires.

This study presents an efficient way to divide this problem into no more than 5 unconstrained distributions (Fig. 5). Note that for small lateral accelerations, all the 3 control efforts desired by TSMCr can be achieved; when F yd is large, this force should be ignored, where the sideslip motion is suppressed mainly by the driver’s steering effort rather than by the controller itself; when 3 out of 4 wheels reach their adhesive limits, F xd is also ignored and only M zd is left to be achieved, which is thought to be more critical to the vehicle’s handling stability.

Fig. 5
figure 5

Tire force distribution strategy

Here, for notation simplification, u act_i and F ud_j can be expressed as Eqs. (40) and (41), respectively; B ij is the corresponding matrices of u act_i and F ud_j . Particularly, B 1 is the corresponding matrix of u act and F ud_1. The superscript (∙)+ denotes the pseudo-inverse operator.

$$\left\{ {\begin{array}{*{20}c} {u_{act\_1} = \left[ {u_{act} (i) u_{act} (j) u_{act} (k)} \right]^T ,} \\ {u_{act\_2} = \left[ {u_{act} (i) u_{act} (j)} \right]^T ,} \\ {u_{act\_3} = \left[ {u_{act} (i) } \right],} \\ {i,j,k \in [1,2,3,4], i \ne j \ne k,} \\ \end{array} } \right.$$
((40))
$$\left\{ {\begin{array}{*{20}c} {F_{ud\_1} = [F_{ud} (1) F_{ud} (3)]^T ,} \\ {F_{ud\_2} = F_{ud} (3).} \\ \end{array} } \right.$$
((41))

Once the tire longitudinal forces are obtained, the traction/braking torque of each wheel is calculated by Eq. (7).

6 Results and discussion

The proposed torque distribution method is designed in the MATLAB/Simulink environment. As depicted in Fig. 1, an A-Class Hatchback full-car model built in CarSim is employed here for the controller validation. Some of the vehicle’s parameters are listed in Table 1. Three simulation cases including both open- and closed-loop maneuvers are conducted. The responses of the vehicles with TSMCr and the traditional sliding mode controller (SMCr) proposed by Wang et al. (2009) are compared with each other. The unconstrained distribution approaches are also added for comparison, which does not take into consideration the tire adhesive limits.

Table 1 Parameters of the vehicle model

6.1 Open-loop step-steer maneuver

In the open-loop simulation, the driver model is not involved, and the yaw error ψ r is thus neglected. The vehicle is subjected to a step-like steering input at 1.0 s, with a front steering angle δ f=2° (δ SW=32.8°). The speed remains constant at 80 km/h and the road friction coefficient is 0.85. The vehicle dynamic responses are shown in Figs. 6 and 7 and Table 2.

Fig. 6
figure 6

Yaw rate responses in step steer maneuver

Fig. 7
figure 7

Vehicle sideslip angle responses in step steer maneuver

Table 2 RMS of yaw rate error and sideslip angle

From Fig. 6, it can be seen that since the target yaw rate represents the neutral steering response, the conventional IWD vehicle without control tends to understeer and is not able to reach the yaw rate desired by the driver. For the vehicles using the unconstrained distribution methods, as soon as the steering commands are applied, their states oscillate in the time domain but can still be stabilized to the target values. This can be explained by the fact that in the high speed cornering case with a relatively large steering angle, the tire forces distributed by the unconstrained distribution method are beyond the tire adhesive limits, such that one or more tires are saturated and they cannot provide enough forces within the tire adhesive limits which can amount to the total yaw moment required by the motion controller. This problem can be effectively solved by the proposed constrained distribution strategy. Both vehicles with the constrained methods can accurately respond to the desired yaw rate, Table 2 shows that the constrained TSMCr provides the best control performance with the minimum error.

As shown in Fig. 7, the suppression of the vehicle sideslip angles by these distribution methods is restricted due to the limited impacts on the lateral motion by the longitudinal tire forces, thus each controller acts more like a joint system of cruise control (CC) and direct yaw control (DYC), which controls the longitudinal and yaw motions simultaneously. However, the vehicles with the unconstrained methods lose their stabilities, while the constrained ones can still control the vehicle sideslip motion to be stable, whereas their sideslip angles are slightly larger than that of the conventional vehicle. The root mean square (RMS) values of the sideslip angles can be found in Table 2. Note that the counter steering effect of the conventional vehicle is eliminated by the proposed method, which does not produce the reversed sideslip angle and has a faster lateral response than without control.

6.2 Closed-loop maneuver

To further evaluate the control effects, closed-loop simulations are conducted and performed as the handling tests, in which the OPA model provides the driver’s steering inputs for the lane-keeping tasks. Note that the road path heading angle ψ rd used to calculate the yaw error ψ r in Eq. (19) is obtained by some road information acquisition algorithm, which is not presented in this study.

6.2.1 Double-lane-change

The first closed-loop simulation is a double-lane-change (DLC) maneuver, with a constant longitudinal velocity of 100 km/h and a road friction coefficient of 0.5. The results are shown in Figs. 8 to 10.

Fig. 8
figure 8

Vehicle trajectories in a DLC maneuver

Fig. 9
figure 9

Driver-vehicle system responses in a DLC maneuver

Fig. 10
figure 10

Driver steering angles in a DLC maneuver

It is shown in Fig. 8 that in the attempt to control the conventional vehicle to track the given path accurately, the OPA driver model cannot provide the appropriate steering effort due to the mismatch between the characteristics of the neutral steer anticipated by the driver and the handling response of the vehicle without control, and this therefore causes large lateral deviations from the ideal path. However, vehicles with both the unconstrained approaches do not lose lateral stability as they do in the step-steer maneuver and show fairly good path-following performance. Despite that, the constrained approaches provide good path-tracking performance. This is primarily because the constrained distribution methods can generate the motion control efforts determined respectively by TSMCr and SMCr as much as possible (especially when the vehicles are cornering with large lateral acceleration) within the tire adhesive limits. The RMS value of the lateral offset of the constrained TSMCr is 0.1693 m, compared to that of the constrained SMCr which is 0.2023 m.

Fig. 9 shows the driver-vehicle system responses depicted in the phase plane, where the controller with the tighter trajectory but higher value of yaw rate response is supposed to maximize the stability margin and the vehicle responsiveness. It can be attributed to the aforementioned mismatch effect that the trajectory of the response of the vehicle without control appears much looser. Its maximum yaw rate and sideslip angle as well as those of the vehicles with unconstrained methods are located in the fourth quadrant of the plot, which indicates these vehicles tend to be less stable and perform poorly before entering into the second straight section of the DLC path. At the same time, the vehicle without control needs extra steering effort to be stabilized and is difficult for the driver to manipulate, as shown in Fig. 10. Both the constrained distribution methods attain good control performance, whereas the constrained TSMCr gives better handling performance (the tightest trajectory in Fig. 9) and increases maneuverability (the least steering effort in Fig. 10).

6.2.2 Hard braking through a μ-split surface

The second closed-loop simulation is the μ-split braking, which is mainly for the longitudinal dynamics validation. As shown in Fig. 11, the road is divided along a straight line with two different surfaces with μ=0.8 on the left side and μ=0.2 on the right side. The driver attempts to decelerate the vehicle from 120 km/h to 0 as quickly as possible and also steers the vehicle in order to stay in this straight lane.

Fig. 11
figure 11

Vehicle trajectories in μ-split maneuver (laterally-stable ABS vs. common ABS)

During the simulation testing, it was discovered that neither the two unconstrained methods nor the even torque distribution could stabilize the vehicle in this type of maneuver. Hence, the common and the laterally-stable anti-lock brake systems (ABS) are employed here to compare their control effects with each other (Mitschke and Wallentowitz, 1972). Figs. 11 and 12 show the results. It can be seen that although the maximum lateral offset of the laterally-stable ABS is only 0.0027 m, compared to that of the common one, which is 15.4727 m, it still takes 14.2 s for the former to stop the vehicle at 229.7168 m, more than twice as much braking time and distance as those of the common ABS. This is because, to avoid the additional yaw-moment when braking the vehicle, the laterally-stable ABS makes the longitudinal tire forces on both sides be equal to the lesser of the right side, and thus decreases its braking performance. For the common ABS, the vehicle drifts towards the μ-high side of the road, which causes shorter braking distance and time, meanwhile its maximum lateral velocity reaches up to 80 km/h. It can be concluded that both methods fail to balance the trade-off between the lateral stability and the braking efficiency.

Fig. 12
figure 12

Velocities in μ-split maneuver (laterally-stable ABS vs. common ABS)

The constrained methods with TSMCr and SMCr are validated in Figs. 13 to 15. Fig. 13 shows that the proposed distribution strategy can fully utilize the road adhesion capability and both controllers provide vehicles with good braking efficiency (the vehicle with TSMCr stops in 8.25 s at 142.0866 m and the one with SMCr stops in 8.35 s at 142.7459 m) by not losing lateral stability (the maximum lateral offsets of TSMCr and SMCr are 0.5049 m and 0.6074 m, respectively) while the latter yields a slightly worse performance. The reason can be explained that with the same initial conditions the state errors of longitudinal and lateral velocities of the TSMCr converge to 0 more rapidly than those of the SMCr do, as shown in Fig. 14. Therefore, the vehicle with TSMCr has a shorter braking time with less lateral deviations which hence results in a shorter braking distance. Fig. 15 also suggests that due to its faster convergence of the yaw rate error, TSMCr offers a better tracking performance than SMCr.

Fig. 13
figure 13

Vehicle trajectories in μ-split maneuver

Fig. 14
figure 14

Velocities in μ-split maneuver

Fig. 15
figure 15

Yaw rate responses in μ-split maneuver

7 Conclusions

In this paper, a novel torque distribution approach for an IWD vehicle is introduced in the design of the TSMC based controller to adjust and coordinate the torques from four electric motors. The proposed controller alters the handling characteristics of the vehicle from understeering to neutral steering so that the driver can manipulate the vehicle more easily without having his/her steering effort compensated for nonlinearities in vehicle yaw response. It also operates as a speed controller, which can accurately execute the driver’s acceleration and deceleration commands without degrading steering performance. Although no active steering system is used here, lateral stability is guaranteed and the sideslip motion is, to some extent, suppressed by the controller. Additionally, the constrained distribution methods deal with nonlinear constraints of the tire adhesive limit efficiently and effectively.

Simulation results indicate that due to its fast and finite time convergence, and high steady-state precision, TSMCr provides more improved control effects than SMCr does. Moreover, the constrained distribution approach also significantly improves vehicle stability and handling performance. On an overall evaluation, the constrained TSMC based controller meets the design requirements and shows the best performance among all schemes during our study.

Note that an IWD vehicle is a highly redundant system, which is more inclined to take the risk of actuator failure. Integrating fault tolerant control into this chassis control system will be performed in future work.