AlgorithmLateralDriver
This module is responsible for the control of the vehicle’s lateral dynamics.
It receives the command variables from a driver behaviour model like Implementation Architecture and generates the steering wheel angle of the driver to match these command variables. The steering wheel angle has than to be send to a vehicle dynamics module like DynamicsRegularDriving.
Overview of the module’s functionalities
AlgorithmLateralDriver models human lateral guidance according to the two-level-model of vehicle guidance from Donges. It is the original form of his later three-level-model of vehicle guidance, which is expressing driver behaviour in a more phenomenological context, and was developed as part of Donges’ Ph.D. thesis. The model takes two overlapping mechanisms of human behaviour in human-machine-interactions into account:
Anticipatory open-loop control on guidance level: Every driver has knowledge about how his vehicle works, which is based on driving experience and familiarity with the vehicle. This can be expressed as a mental model representation about the vehicle. If the driver approaches a curve on the road, he visually perceives the road’s curvature and can use his knowledge about the vehicle to estimate, how much he has to turn the steering wheel, so the vehicle describes a curve of the same curvature. This is a typically open-loop control process, where the mental representation of the vehicle represents a feedforward control, which generates a steering wheel angle according to a needed curvature, but the actual curvature, which is produced by the vehicle, is not monitored. The better the mental model of the vehicle is, the better is this feedforward control, but even the best mental model cannot take into account external disturbances like cross slope or side wind. For influences like this, a second underlying control mechanism is needed.
Compensatory closed-loop control on stabilization level: As already mentioned above, the guidance level cannot take into account any external disturbance, because an open-loop control does not monitor the difference between command variable and its corresponding system state. For this reason (and to compensate the driver’s necessarily imperfect mental model about his vehicle), an underlying closed-loop control is needed. For instance, a driver is driving on a straight road, which means that the required curvature is equal zero. In this case, the guidance level will also produce a steering wheel angle equal zero. If an external disturbance like side wind occurs, the states of the anticipatory level will not change, because the curvature of the road is still zero. The vehicle will of cause start to deviate from its lane, which must be counter-steered by a closed-loop control that monitors the actual guidance errors towards the wished trajectory. In case of lateral guidance, the error in heading angle and the lateral deviation from the trajectory are addressed in this model.
Lateral guidance values of the vehicle in the road coordinate system illustrates the above mentioned lateral guidance values of the vehicle in the road coordinate system for lane keeping. For a specific trajectory (i.e. a lane change), these values has to be expressed according to this trajectory, which means that the command variables are no longer equal zero.
Visual perception of lateral guidance errors according to Donges is taken from Donges Ph.D. thesis and illustrates, how a human driver is able to visually perceive the guidance errors.
Detailed description of the module’s features
AlgorithmLateralDriver receives its command variables from a driver behaviour model like Implementation Architecture and generates the steering wheel angle of the driver to match these command variables. The steering wheel angle parts of all controllers are summed up to the overall steering wheel angle of the driver, which is then sent to a vehicle dynamics module like DynamicsRegularDriving. The control loop is closed by the movement of the vehicle in the world, which is again monitored by the driver behaviour model. This overall control loop of vehicle lateral guidance involving AlgorithmLateralDriver is illustrated in Fig. 50 with the following variables:
is the actual curvature of the vehicle
Four variables containing the information needed for the open-loop controller:
is the curvature at the front center (i.e. center of the front of the bounding box) of the ego vehicle To enable small turn radiuses e.g. for cornering in city scenarios the driver has to anticipate the road geometry. This is achieved using a mechanism akin to the Salvucci controler. It uses the vectors:
containing the curvatures of several segments starting at the front center up to 2m in front of the vehicles leading edge
containing the curvatures of several segments starting 2m in front of the vehicle and ending 8m in front of it When the driver is actively trying not to follow its lanes geometry e.g. when changing lanes another component:
containing the curvature of the planned trajectory relative to the road
Other variables shown in Fig. 50:
is the actual lateral position of the vehicle in the road coordinate system
w is the lateral deviation
is the actual heading angle of the vehicle in the road coordinate system
is the heading error
is the steering wheel angle from the curvature controller
is the steering wheel angle from the lateral deviation controller
is the steering wheel angle from the heading error controller
is the overall steering wheel angle of the driver
The following subsections describe the theoretical background and the transfer functions of the different controllers.
Anticipatory control on guidance level
As described in the overview section, the driver’s controls on guidance level are characterized by anticipatory mechanisms regarding the expected vehicle’s behaviour. In terms of control theory and lateral guidance, this is modelled as an open-loop feedforward controller, which generates an estimated steering wheel angle that fits a required curvature from the driver behaviour model. This model-predictive controller is modelled as an inverted Ackermann model. The Ackermann model is a simple geometric expression for the relationship between the steering angle at the front wheels and the curvature the vehicle produces from it. It has several simplifications, where the most notable is the reduction of the wheels of one axle to a single surrogate wheel. This is suitable under the consideration that the steering angles of the front wheels are rather small and do not differ much between the left and the right front wheel. The first simplification may not hold up in city traffic with high curvatures. Therefore the closed-loop-controller must have increased gains in these situations. , and are smoothed and weighted before adding to form .
The Ackermann model is illustrated in Fig. 51 with the following variables:
is the wheelbase of the vehicle
is the surrogate steering angle at the front wheels towards the vehicle’s longitudinal axes
is the instantaneous centre of rotation, around which the vehicle is driving on a curve
is the radius of the curve, which the vehicle is driving around M
is the curvature of this curve, which is simply the inverse of r
In accordance to the current definitions of coordinate systems, the coordinate reference point of the vehicle is considered to be the rear axle. Therefore, the curvature of the vehicle is also expressed towards the rear axle and not to the centre of gravity, which is why the centre of gravity is not depicted in Fig. 51.
The equation derived from the Ackermann model in Fig. 51 states the following relation between the surrogate steering angle of the front wheels and the curvature described by the rear axle around the instantaneous centre of rotation :
This equation can be inverted to express a required steering angle to adjust a specific curvature :
To convert this into the required steering wheel angle , the ratio of the steering gear must be applied:
The vehicle parameters and are received from the module ParametersAgent.
Compensatory control on stabilization level
As described in the overview section, the driver’s controls on stabilization level are characterized by compensatory mechanisms regarding imperfect anticipation of the vehicle’s behaviour and external disturbances on the real vehicle. In terms of control theory and lateral guidance, this is modelled as two closed-loop controllers, which generate steering wheel angles and that compensate the lateral guidance errors (heading error) and w (lateral deviation). These controllers are derived from the kinematical relations between the lateral guidance values curvature , heading angle , and lateral position w, according to the plane driving kinematics of Kramer, and are described below.
Heading controller
Similar to Donges’ two-level-model of vehicle guidance, the heading controller is designed as a simple proportional controller. The general transfer function of a P-controller with the input signal heading error and the output signal steering wheel angle is described as:
The controller amplification is therefore described as the ratio between input signal and output signal:
The controller amplification therefore expresses, how many degrees of steering wheel angle are generated by one degree heading error. The design of this controller amplification uses some considerations about plane driving kinematics of Kramer. First of all, the heading error is derived from the current curvature of the vehicle over the change of distance along the road’s longitudinal coordinate in one time step:
Under the consideration of small angular changes in one time step, this equation can be linearized to:
The curvature of the vehicle can be substituted by an Ackermann model (see here for further information about that):
This equation can also be linearized under the consideration of small angles:
The connection to the steering wheel angle can be applied by the ratio of the vehicle’s steering gear:
This equation can be transformed to a similar form as the controller’s transfer function above:
The usage of the incremental difference in this equation is problematic, because the controller amplification becomes dependent from the simulation step size. Because of this, the absolute change ds of the longitudinal road coordinate is substituted by the vehicle’s absolute velocity as a simplification, which is the change of travelled distance with respect to time:
To tune the absolute influence of the heading controller in the overall control loop, an additional gain factor is applied to this transfer function, which allows a situation dependent amplification of the heading controller by the driver behaviour model:
The vehicle parameters and are received from the module ParametersAgent, the vehicle’s absolute velocity is received from the module SensorDriver, and the additional controller gain is received from a driver behaviour model like Implementation Architecture.
Lateral deviation controller
Similar to Donges’ two-level-model of vehicle guidance, the lateral deviation controller is designed as a simple proportional controller. The general transfer function of a P-controller with the input signal lateral deviation w and the output signal steering wheel angle is described as:
The controller amplification is therefore described as the ratio between input signal and output signal:
The controller amplification therefore expresses, how many degrees of steering wheel angle are generated by one metre of lateral deviation. The design of this controller amplification uses some considerations about plane driving kinematics of Kramer. First of all, the lateral deviation w is derived from the current heading error over the change of distance along the road’s longitudinal coordinate in one time step:
The current heading error can further be substituted by an expression of and the current curvature of the vehicle (see Heading controller for that matter):
Under the consideration of small angular changes in one time step, this equation can be linearized to:
The curvature of the vehicle can be substituted by an Ackermann model (see here for further information about that):
This equation can also be linearized under the consideration of small angles:
The connection to the steering wheel angle can be applied by the ratio of the vehicle’s steering gear:
This equation can be transformed to a similar form as the controller’s transfer function above:
The usage of the incremental difference ds in this equation is problematic, because the controller amplification becomes dependent from the simulation step size. Because of this, the absolute change of the longitudinal road coordinate is substituted by the vehicle’s absolute velocity as a simplification, which is the change of travelled distance with respect to time:
To tune the absolute influence of the lateral deviation controller in the overall control loop, an additional gain factor is applied to this transfer function, which allows a situation dependent amplification of the lateral deviation controller by the driver behaviour model:
The vehicle parameters and are received from the module ParametersAgent, the vehicle’s absolute velocity is received from the module SensorDriver, and the additional controller gain is received from a driver behaviour model like Implementation Architecture.