원시데이터 수집 시스템
선정목록으로

On the Benefits of Using Object-Oriented Programming for the Objective Evaluation of Vehicle Dynamic Performance in Concurrent Simulations

간접 관련 모빌리티 소재 · (3) 자동차 인테리어 소재 (4) 카시트 모듈

기본 정보

저자
  1. Michele Perrelli — Department of Mechanical, Energy and Management, University of Calabria, 87036 Rende, Italy
  2. Francesco Cosco — Department of Mechanical, Energy and Management, University of Calabria, 87036 Rende, Italy
  3. Giuseppe Carbone — Department of Mechanical, Energy and Management, University of Calabria, 87036 Rende, Italy
  4. Basilio Lenzo — Department of Engineering and Mathematics, Sheffield Hallam University, Sheffield S1 1WB, UK
  5. Domenico Mundo — Department of Mechanical, Energy and Management, University of Calabria, 87036 Rende, Italy
DOI
10.3390/machines9020041
저널
Machines
발행년도
2021
발행기관
Multidisciplinary Digital Publishing Institute
피인용수
7
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.3390/machines9020041
토픽
Electric and Hybrid Vehicle Technologies
OpenAlex ID
W3129216352

평가 내용

관련도
간접 관련
사업분야
모빌리티 소재 · (3) 자동차 인테리어 소재
부 분야
(4) 카시트 모듈
R&D 측면
분석·모델링
확신도
0.70
근거 용어
vehicle dynamic performance, simulation software, numerical vehicle models, tyres, suspension
판단 근거
논문은 차량 동역학 성능 평가를 위한 객체 지향 프로그래밍 기반 시뮬레이션 프레임워크를 다루고 있습니다. 이는 코오롱인더스트리의 자동차 인테리어 및 카시트 모듈 사업에서 요구되는 차량 거동 및 승차감(comfort) 평가 시스템 연구에 간접적으로 활용될 수 있습니다.
R&D 활용 포인트
차량 시트 및 인테리어 소재가 차량 전체의 동역학적 성능 및 승차감에 미치는 영향을 가상 시뮬레이션 환경에서 평가하는 모델링 기술로 응용 가능합니다.
평가 입력
초록 2,225자

초록

Assessing passenger cars’ dynamic performance is a critical aspect for car industries, due to its impact on the overall vehicle safety evaluation and the subjective nature of the involved handling and comfort metrics. Accordingly, ISO standards, such as ISO 4138 and ISO 3888, define several specific driving tests to assess vehicle dynamics performance objectively. Consequently, proper evaluation of the dynamic behaviour requires measuring several physical quantities, including accelerations, speed, and linear and angular displacements obtained after instrumenting a vehicle with multiple sensors. This experimental activity is highly demanding in terms of hardware costs, and it is also significantly time-consuming. Several approaches can be considered for reducing vehicle development time. In particular, simulation software can be exploited to predict the approximate behaviour of a vehicle using virtual scenarios. Moreover, motion platforms and detail-scalable numerical vehicle models are widely implemented for the purpose. This paper focuses on a customized simulation environment developed in C++, which exploits the advantages of object-oriented programming. The presented framework strives to perform concurrent simulations of vehicles with different characteristics such as mass, tyres, engine, suspension, and transmission systems. Within the proposed simulation framework, we adopted a hierarchical and modular representation. Vehicles are modelled by a 14 degree-of-freedom (DOF) full-vehicle model, capable of capturing the dynamics and complemented by a set of scalable-detail models for the remaining sub-systems such as tyre, engine, and steering system. Furthermore, this paper proposes the usage of autonomous virtual drivers for a more objective evaluation of vehicle dynamic performances. Moreover, to further evaluate our simulator architecture’s efficiency and assess the achieved level of concurrency, we designed a benchmark able to analyse the scaling of the performances with respect to the number of different vehicles during the same simulation. Finally, the paper reports the proposed simulation environment’s scalability resulting from a set of different and varying driving scenarios.

본문 38,013자

본문 펼치기
Assessing passenger cars' dynamic performance is a critical aspect for car industries, due to its impact on the overall vehicle safety evaluation and the subjective nature of the involved handling and comfort metrics. Accordingly, ISO standards, such as ISO 4138 and ISO 3888, define several specific driving tests to assess vehicle dynamics performance objectively. Consequently, proper evaluation of the dynamic behaviour requires measuring several physical quantities, including accelerations, speed, and linear and angular displacements obtained after instrumenting a vehicle with multiple sensors. This experimental activity is highly demanding in terms of hardware costs, and it is also significantly time-consuming. Several approaches can be considered for reducing vehicle development time. In particular, simulation software can be exploited to predict the approximate behaviour of a vehicle using virtual scenarios. Moreover, motion platforms and detail-scalable numerical vehicle models are widely implemented for the purpose. This paper focuses on a customized simulation environment developed in C++, which exploits the advantages of object-oriented programming. The presented framework strives to perform concurrent simulations of vehicles with different characteristics such as mass, tyres, engine, suspension, and transmission systems. Within the proposed simulation framework, we adopted a hierarchical and modular representation. Vehicles are modelled by a 14 degree-of-freedom (DOF) full-vehicle model, capable of capturing the dynamics and complemented by a set of scalable-detail models for the remaining sub-systems such as tyre, engine, and steering system. Furthermore, this paper proposes the usage of autonomous virtual drivers for a more objective evaluation of vehicle dynamic performances. Moreover, to further evaluate our simulator architecture's efficiency and assess the achieved level of concurrency, we designed a benchmark able to analyse the scaling of the performances with respect to the number of different vehicles during the same simulation. Finally, the paper reports the proposed simulation environment's scalability resulting from a set of different and varying driving scenarios. Citation: Perrelli, M.; Cosco, F.; Carbone, G.; Lenzo, B.; Mundo, D. On the Benefits of Using Object-Oriented Programming for the Objective Evaluation of Vehicle Dynamic Performance in Concurrent Simulations. Machines 2021, 9, 41. Introduction Over the last decades, automotive original equipment manufacturers (OEM) aimed to make their cars increasingly smarter, more autonomous, and safer by widening the use of efficient electronic control units (ECUs) and active systems to improve both vehicle performance and passengers' safety. Since the anti-lock braking system (ABS) was introduced for serial production, several advanced driver-assistance systems (ADASs) have been developed for vehicle longitudinal, lateral, and vertical stability control [1][2][3]. As a result, modern cars, even those belonging to the city car segment, feature a plethora of ADAS functions. Besides the older longitudinal dynamics controllers, such as the ABS [4], the adaptive cruise control (ACC) [5], and the traction control system (TCS) [6][7][8][9], other functionalities recently arose targeting the lateral stability enhancement, such as the electronic stability program (ESP) [10,11], the active front steering (AFS) [12][13][14] and the direct yaw moment controller (DYC) for torque vectoring (TV) transmission control [15]. Even if less common than the former systems, vertical dynamics control systems, such as the active suspension control (ASC) [16] and the active body control (ABC) [17], are being introduced in top-end passenger cars to improve safety and ride comfort. As a result, the complexity of modern vehicle control systems is reaching hardly sustainable levels, with up to over 100 million lines of source code distributed on board among over 100 ECUs [18]. Introduction ADASs generally improve vehicle safety and stability, but their effectiveness relies on the accurate estimation of the instantaneous vehicle dynamic states [19], enabled by a variety of onboard sensors, such as inertial navigation sensors (INS), global navigation satellite systems (GNSS), and wheel speed and orientation sensors [20,21]. Besides estimation, ADASs rely on model predictive control strategies to correctly perform their safety actions, thus requiring the embedding of a numerical vehicle dynamic (VD) model on the ECU. Introduction In the literature, different dynamic models and formulations estimate vehicle performance in terms of longitudinal, vertical, and lateral dynamics. Advanced simulations delivering high-accuracy predictions rely on high-fidelity rigid multibody (MB) models [22,23], which can be eventually enriched by vehicle body concept models to account for the body flexibility as well [24,25]. However, the MB modelling approach is quite complex and demands high computational effort. It may lead to MB models with more than 100 bodies, each of which needs an accurate definition of constraints, geometry, and mass properties. Although new efficient ECUs have been developed and recent studies tried to achieve realtime (RT) MB simulation of vehicle dynamics in embedded applications [26][27][28], the computation is often too expensive with respect to the limited amount of computational resources of an embedded platform, and it is not always compatible with hard RT constraints. Introduction The use of concept models, consisting of lumped-parameter models commonly used during the early-stage design phases, emerged for targeting RT embedded applications. Concept models represent a computationally more affordable alternative to the corresponding high-fidelity MB models, enabling an accurate and reliable RT prediction of the vehicle dynamic behaviour as required by ADASs [29]. The lumped-parameter vehicle models (LPVMs) consist of a few bodies and a limited number of degrees of freedom (DOFs) with associated relatively low computational cost. Their complexity ranges from simple 2 DOF quarter-car or bicycle models, which can capture only the basic vertical and either the longitudinal or the lateral behaviour of a vehicle, up to 15-18 DOF full-vehicle models (FVMs) [30][31][32]. Offering a good compromise between predictive accuracy and computational efficiency, FVMs already proved their effectiveness in supporting the vehicle dynamic simulation for RT driver-in-the-loop (DiL) testing [33,34]. A human driver immersed into a virtual-reality scenario acts on a virtual vehicle, enabling the assessment both subjectively and objectively of the influence of multiple design choices related, but not limited to, VD performances. Furthermore, FVMs are also enabling the development of more recent control strategies aiming for autonomous driving, such as fuzzy controllers [35] and/or proportional-integral-derivative (PID) controllers [36,37]. Introduction This work's contribution builds on the verge of extending the above-mentioned DiL approach, including some of the more basic autonomous driving functions, such as steering and throttle control, leading to the concept of virtual-driver-in-the-loop (vDiL) simulations. The proposed vDiL approach enables comparative vehicle design assessments on different driving scenarios while achieving a more objective benchmark than the human driver-in-the-Loop (hDiL) alternative. In practice, a replica of the virtual driver program is used in different simulations, while varying the design parameters under investigation. Introduction In particular, this paper describes the main components and the overall architecture of a simulation environment required to evaluate the vehicle dynamic performances using vDiL. The presented simulation environment enables the validation of the vDiL results, while investigating more complex scenarios where the impact of the ADAS or even of the autonomous driving functions can be assessed [38,39]. Introduction The presented research originates from the need for simulating several independently controlled actors, while allowing to choose among several vehicle variants, with different types of models or different control strategies. This motivation led us to design a new simulation environment, which was deeply inspired from a predecessor simulator [34]. The new architecture relies on the benefits of the object-oriented programming paradigm and exploits a hierarchical evaluation of the vehicle sub-modules, which is also more representative of the hierarchical organization of the plethora of different ECUs used in modern cars . Introduction Within the proposed simulation framework and for the sake of describing a first proof-of-concept validation, we adopted a 14 DOF FVM that exchanges information with scalable-detail models of the remaining core vehicle sub-systems such as tyre, engine, and steering system. Moreover, a vDiL agent module was programmed. In particular, our testing scenarios exemplify how the proposed simulation platform enabled the comparison of the lateral dynamics of two vehicles with identical physical characteristics, but with two different strategies for driving torque distribution, i.e., a simplified mechanical differential model [40,41] and a DYC-based torque vectoring (TV) system [42]. Introduction The paper is organized as follows. Section 2 describes the concurrent software architecture of the simulator. Section 3 explains the implemented driving tests. Section 4 discusses the computational efficiency of the proposed simulator and presents the achieved level of concurrency. Moreover, it discusses the numerical results achieved during constant steer (CS) and constant radius (CR) tests according to ISO 4138, along with a severe lane change (SLC) manoeuvre as defined by ISO 3888 standard. Section 5 provides concluding remarks and an overview of future developments. Architecture of the Simulation Environment A new simulation environment was designed and implemented using modern C++ (ISO 17), although we were inspired by an existing simulator [34]. Thanks to the modern object-oriented programming (OOP) paradigm, the proposed simulator offers a modular infrastructure, where code procedures and data are hierarchically grouped and systematically encapsulated into objects [27]. This allows a more effective representation of the increasing level of complexity required from the vehicle industry market. Architecture of the Simulation Environment In fact, the OOP paradigm is based on the concept of "objects", which can contain data, in the form of fields or attributes or properties, but also embed specific functionalities, in the form of procedures or methods able to process the known data and produce new objects. Exploiting OOP, the design of the environment was more natural, as it allowed to focus on expressing the interactions and hierarchies between objects, more than on the data transactions and the corresponding procedures typical of the older procedural programming approach. Moreover, we exploited polymorphism to effectively capture the modular but also hierarchical variety of objects necessary for the dynamic simulation of several variants of a vehicle. In fact, the proposed software architecture more naturally supports the implementation of a multitude of alternatives for each sub-component of the vehicle, while it captures the interfaces between them at a more abstract level. Thanks to OOP and modern C++ (ISO 17), the vehicle simulation manager class was programmed to be thread-safe: several variants of a vehicle can be simulated concurrently. Figure 1 depicts the proposed modular architecture. The simulation starts by instantiating one or more vehicle objects. Each vehicle is created as an independent instance of the same abstract object class, which relies on several interacting sub-objects such as the car, tyre, powertrain, or driver sub-modules. Each vehicle instance retrieves the infor-mation required for its own construction, using a set of specific configuration files. Different configuration files define the required vehicle properties such as car geometry, inertial parameters, masses, steering system, engine, tyres, and suspension characteristics. Each of the input files must obey a prescribed syntax format, although OOP would also allow the easy implementation of the possibility of supporting different input file syntaxes. Architecture of the Simulation Environment The number and type of the input files depend on the type of object used to define the simulation: if the user sets a driving torque distribution strategy based on a DYC for TV, two more configuration files are required to provide the reference yaw rate lookup table (LUT) defined as explained in [42]. Architecture of the Simulation Environment At least two more additional configuration files are used to define road profiles and trajectories that vehicles must follow during the same prescribed ride simulation. Architecture of the Simulation Environment After the file-based initialization stage, the proposed simulation environment enables the concurrent simulation of different vehicles, each encapsulating its characteristics and control strategies. A dedicated graphical user interface (GUI) was instrumental for editing at runtime the different PID parameters, allowing for a better and more efficient fine-tuning of the dedicated PID-based virtual driver's behaviour. Architecture of the Simulation Environment The RT vehicle simulations, in response to the virtual driver's actions, are computed using a very efficient numerical model for vehicle dynamic simulation based on a lumpedparameter formulation with 14 DOFs. A set of output signals, such as car position, forces, and torques, are sent to the GUI enabling RT data visualization, in addition to their storage for post-processing purposes. Architecture of the Simulation Environment To prevent slowing down the simulation execution, the communication towards the GUI application was delegated within a lower-priority thread using a client-Server User Datagram Protocol (UDP). Architecture of the Simulation Environment The vehicle simulation is based on a modular architecture relying on four sub-moduels: car, powertrain, tyre, and virtual driver. Each of the sub-module classes was defined allowing its evaluation to run in a separated thread, with no dependencies either on the states of the other sub-modules or on the communication towards the external GUI. To prevent concurrency issues such as race condition and deadlock and achieve threadsafety, we used the shared-memory paradigm, enriched by the usage of a set of dedicated memory mutexes. All the above-mentioned concurrent programming features are supported natively by modern C++ since the 2011 revision, making the current version of the code immediately portable towards different platforms, including the embedded ones. Car Sub-Module The car sub-module represents the core of the system implementing the lumped-parameter FVM. It is an explicit solver for the set of ordinary differential equations (ODEs) governing the dynamic equilibrium of the vehicle chassis (three translational and three rotational equilibrium conditions) and of each of the wheels (translational equilibrium in the vertical direction and rotational equilibrium around the spindle axis). The 14 DOFs of the model are as follows: Car Sub-Module • the 3 rigid-body rotations (pitch, roll, and yaw) of the vehicle body; • the 3 rigid-body translations of the vehicle body; • the vertical displacement of each wheel centre w.r.t. to the vehicle body; • the rotation of each wheel around the spindle axis. Powertrain Sub-Module The powertrain sub-module is responsible for computing the angular velocity of the engine, from which the engine torque, Td, is derived by interpolating the specified maximum torque-velocity curve and scaling it by the throttle command. The torque distribution to the driving wheels is considered even for a vehicle equipped with a conventional mechanical differential, while the following uneven distribution is implemented for a vehicle equipped with DYC for TV: Powertrain Sub-Module where Trdw and Tldw are the torque values delivered to the right and left wheel, respectively, while Rw is the wheel radius, d the vehicle half-track width, and Mz is the yaw moment required by the desired understeer correction calculated as described in [43]. For the vehicles used in the proposed simulation, we used Rw = 0.3135 m and d = 1.4673 m. Tyre Sub-Module The tyre sub-model is responsible for simulating the road-tyre interaction and computing the vertical, longitudinal, and lateral forces, along with the longitudinal and lateral slip coefficients. At each simulation step, vertical forces are estimated by a simple springdamper model. Longitudinal and lateral forces are computed using a simplified version of Pacejka Magic Formula, as explained in detail in [41]. Virtual Driver The driver sub-module of the simulation software is used to control the throttle position, the steering wheel angle, and the Mz correction factor using three nested PID regulators as described in [40,41] and depicted in Figure 2. A kinematic model is implemented to derive the steering angle at wheels, based on the actual value of the steering input given by the virtual driver and on the steering ratio. Three independent PID controllers are used to calculate the values of the steering wheel angle (δ), the throttle command (th), and, in the case of a vehicle with DYC, the desired yaw moment, Mz, input. Virtual Driver Considering the discrete-time nature of the simulation, all the implemented PID regulators rely on a classical formulation as follows: Virtual Driver where e ct is the current cross-track error determined as the distance of the current vehicle position from the reference trajectory; e s represents the error between the target speed and the current vehicle speed; and e yr is the error between the current vehicle yaw rate and the desired yaw rate. The index, k, is the number of the current iteration timestep in a range from 1 to N, with N representing the total number of simulation timesteps. The integration time, dt, represents the time interval between two consecutive iteration steps. It is worth noting than the duration of dt has a remarkable influence on the overall quality and stability of simulation. On the one hand, an extremely low value of dt corresponds to a very dense time discretization, thus assuring a high dynamic accuracy of the simulation results. However, this can lead to numerical instabilities when using discrete derivatives, such as in Equations (3)-(5), in presence of numerical noise [40]. On the other hand, higher values of dt generally reduce the dynamic accuracy, leading to information loss and potentially instability and divergency when simulating highly dynamic problems. In the scope of this paper, we used values of the integration time, dt, between 0.001 and 0.005 s, assuring a good compromise between accuracy and stability corresponding to these values. Kp δ , Ki δ , and Kd δ are the proportional, integral, and derivative gains, respectively, for the steer regulator; Kpth, Kith, and Kdth are the proportional, integral, and derivative gains for the throttle regulator; K pM z , K iM z , and K dM z are the proportional, integral, and derivative gains for the throttle regulator. Virtual Driving Tests Several driving tests were carried out based on ISO standard manoeuvres to assess the effectiveness of the implemented simulator. The most relevant tests carried out were those concerning the evaluation of lateral behaviour of the vehicles by simulating the CS, CR, and SLC manoeuvre. Virtual Driving Tests The first two tests are defined by the ISO 4138 standard for the characterization of understeering characteristics of the vehicle, and the last one is defined by ISO 3888 standard. The ISO 4138 defines a standardization of the driving manoeuvres to evaluate the understeer gradient of a vehicle. It consists in varying a specific feature of the vehicle motion, while measuring and keeping constant other motion features. Table 1 summarizes the constant, varied, and measured features for each of the two tests. [43], in dynamic conditions, the steering angle δ is given by Virtual Driving Tests where L is the wheelbase length of the vehicle; R, the turning radius; and ay, the lateral acceleration. The understeer gradient, K, can be derived as follows: Virtual Driving Tests The lateral acceleration depends on the longitudinal velocity, s, and the turning radius, being a y = s 2 R Virtual Driving Tests In real driving scenarios, vehicles are equipped with specific sensors to measure δ, s, and ay from which the understeer gradient, K, is derived, while in the virtual tests proposed in this work, those values are estimated by the implemented 14 DOF FVM. Virtual Driving Tests CR and CS manoeuvres can be used alternatively, being the steady-state equilibrium independent of the actual testing method. The values of speed, steering wheel angle, or turning radius can be obtained holding constant any of the three, while varying the second in a controlled way and measuring the third one. Virtual Driving Tests In the implemented CR manoeuvre, the two vehicles are driven by virtual PID-controlled drivers at different speeds along the trajectory shown in Figure 3, consisting of a clothoid, along which the vehicles are accelerated until reaching a speed of 30 km/h, followed by a circular trajectory of standard constant radius, R, equal to 100 m. At that point, the steering angle is increased up to the value of the Ackerman angle, which is calculated, for the test vehicles with a wheelbase L = 2.73 m, as = 180 ≅ 1.56° (9) Once the vehicles are on the circular path, the virtual drivers accelerate from 30 to 100 km/h following a stepwise constant law, with a step of 5 km/h, while ensuring that the lateral acceleration increases by a rate not exceeding 0.1 m/s 2 /s, as ISO 4138 suggests. At each step, the speed is kept constant to ensure that steady-state conditions are maintained for at least 3 s. The understeer gradient is then calculated using Equation (7). Virtual Driving Tests In addition to the CR test, a CS manoeuvre is implemented as well, during which the steering wheel angle is kept fixed and equal to the Ackerman value δAck, and the speed, s, of the vehicles is steadily increased from 50 to 160 km/h, again with a step of 5 km/h. With the imposed steering wheel angle, as the longitudinal speed increases, the car travels along circular trajectories with decreasing or increasing radii for an oversteering and an understeering behaviour, respectively. Virtual Driving Tests When the car reaches steady-state conditions for a given speed value, s, the actual turning radius is calculated as follows: Virtual Driving Tests The understeer gradient, K, is finally derived from Equation (7). A third driving test has been implemented as well, consisting of an SLC manoeuvre defined according to the ISO 3888 standard. The latter defines the geometry of a test track, with a total length of 61 m, designed to enable the assessment of obstacle avoidance performance and road-holding capability of a vehicle. The test track, which is depicted in Figure 4 and defined by the dimensional specifications listed in Table 2, is marked by cones that are placed as shown in the schematic of Figure 5. To perform this manoeuvre, the virtual driver strives to follow as closely as possible the specific test trajectory that follows the middle line of the test track, as shown in Figure 5. In particular, the virtual vehicle is expected to enter Section 1 with the highest gear position that allows guaranteeing a minimum engine speed of 2000 RPM during the manoeuvre, and after 2 m the driver must release the throttle and drive up to the end of Section 5. The test is considered faultless if the vehicle never crosses the track borders as defined by the cones. Virtual Driving Tests As explained in Table 3, these manoeuvres must be executed using a different combination of the available PID regulators. To perform these tests at the same time, it is possible to instantiate several driver and vehicle objects with different characteristics. Specifically, three different drivers and two vehicles were instantiated. Each driver was assigned one of the above manoeuvres to be executed with two different vehicles. The following table shows the assigned manoeuvres and the activation status of the regulators for steer and throttle control in each test. If the vehicle is configured to use the TV strategies, the DYC PID-controller is also activated in any of the three driver cases. Virtual Driving Tests The two vehicles instantiated are identical, except for the driving torque distribution system: vehicle 1 is equipped with a simplified mechanical differential that performs an even torque distribution, while vehicle 2 exploits uneven driving torque distribution, controlled by a DYC approach. This further clarifies the advantages of OOP and the high flexibility of the proposed simulator that can simulate different driving scenarios concurrently. The advantages of concurrent simulation and the results of these driving tests are illustrated, respectively, in Sections 4.1 and 4.2. Results and Discussion This section describes the numerical assessments conducted to highlight the benefits of the concurrent simulation architecture introduced using OOP (as discussed in Section 2) and to validate the proposed vDiL approach's usability. All results presented in this section have been achieved through simulations executed on a workstation featuring an Intel ® Core™ i7-6700HQ 2.60 GHz quad-core eight-thread processor, and 16 GB of DDR4 RAM, running on Windows 10 Enterprise operating system and assigning to the correspondent process higher execution priority. At first, tests assessed the level of concurrency with an increasing number of independent vehicles' simulation. Afterwards, we demonstrated the potential of the platform and the presented virtual driver approach by simulating a set of comparative standard driving tests, which are typically adopted for performing vehicle dynamics objective evaluations on test tracks. Assessment of the Concurrency Level As described in Section 2, this paper deals with the advantages of a concurrent simulation architecture, which allows multiple-and potentially although not necessarily different-car simulations to run concurrently. Assessment of the Concurrency Level In other words, the proposed concurrent software architecture is a necessary but not sufficient condition to achieve parallel RT execution of different car simulations. Concurrency refers just to the possibility of having various simulations to be launched independently. In contrast, achieving RT parallel simulation demands additional complexity levels: considering the time variable, mechanisms for enforcing time-related deadlines, and implementing dedicated constructs for coordinating and orchestrating the operations among all the parallel threads. Assessment of the Concurrency Level The proposed concurrent architecture can achieve real-time execution for all the simultaneously executed jobs provided that the available computing resources can meet the computational demands at any time. Therefore, it is interesting to consider a benchmark focusing on the scaling of the computational performances for an increasing number of concurrently simulated vehicles. Moreover, it not only allows the further evaluation of the efficiency of the proposed architecture but also assess the achieved level of concurrency. Assessment of the Concurrency Level We performed 10 different simulations with an increasing number of identical vehicles, during a path-following scenario. This context represents the more computationally demanding simulation case, because virtual drivers use all the regulators illustrated in Figure 2. Figure 6a shows the trend of minimum and maximum computation times required when issuing an increasing number of parallel simulations. The almost constant value of the minimum curve tells us that there is always at least one thread, thus at least one parallel simulation, able to conclude the job with a performance comparable to the singlevehicle simulation case. Conversely, a sever degradation of the slowest thread performances happens only from above six concurrently simulated vehicles. This suggests that the computational resources within the used workstation are saturated only when we launch more than six concurrent threads: in all those cases, only a subset of the threads are able to stay resident on the CPU, while the remaining threads' operations start to be scheduled asynchronously. Although the computational efficiency is out of the scope of this paper, it is worth noticing also that all the simulations were completed within the real-time barrier, showing great potential for achieving parallel real-time simulation of several vehicles. Figure 6b depicts the results of the same benchmark, in terms of the achieved speedup levels, computed as the ratio between the time required to complete all the simulations sequentially and the time required from the slowest thread simulation. This chart highlights more clearly that our architecture achieves almost perfect parallelism (slope of the blue curve is lower than that of the dash-dotted line) with a linear scaling up to 6 simulations. Above this value, the speed-up tends to saturate to a value of 4×, which indicates how our implementation can fully saturate all the CPU cores (dashed line). Fluctuations of the speed-up above 4× are achieved due to the Intel hyperthreading functionality, which allows the scheduling of the execution of more threads on the same physical core. Figure 7 further clarifies the implication of concurrent execution of six identical vehicles, all performing the same CR driving test task for 10 s, showing the evolution of the time ratio between the software execution time, (texec), and the vehicle time, tsim, calculated as follows: Assessment of the Concurrency Level As illustrated, the simulation of each vehicle is not synchronized with the simulation of the other vehicles, but it is performed asynchronously. The different simulations execute at a variable computing speed and the virtual vehicles are substantially free to race. It is worth mentioning that, with the simulations running on a pre-emptive multitasking operative system, with other programs running, the execution is not deterministic as it may be greatly influenced by several other factors suddenly changing the amount of available computing power, such as graphics drivers interrupts, other programs possibly running in the background, or system updates. At the very beginning, all the simulating threads are warming-up, which is consistent with the fact that the CPU frequency is rising and transitioning from lower energy-saving states to its maximum power. After few iterations, we can appreciate that vehicles 3 and 4 start being the slowest threads, but they were allocated more resources than the others, becoming the first two threads to complete. Similarly, simulations of vehicles 5 and 6 advanced with a degrading performance, asymptotically converging towards a time ratio threshold of about 0.27 s. As reported also in Figure 6a, for the six simulations case, the total execution time ranged between 2.357 and 2.693 s, which is also reported at the rightmost side of the chart in Figure 7. It is also worth noting that all the simulations were executed maintaining a large margin from the real-time barrier, corresponding to a time ratio equal to 1. Results of the Virtual Driving Tests This section illustrates an example of the simulation output for the CR, CS, and SLC driving tests. As mentioned in Section 3, we used three drivers and two vehicles, with identical characteristics but with different torque distribution strategies. Each driver was assigned a specific manoeuvre, as indicated in Table 3, to be done with the two different vehicles. In particular, vehicle 1 was supposed to be equipped with a simplified mechanical differential, providing an even torque distribution to the driving wheels. Vehicle 2 was designed to have a driving torque distribution based on two different TV strategies, to be used in two different driving modes. In the two modes, indicated as mode 1 and mode 2, the implemented TV-based DYC allows, respectively, to reduce and to increase the understeer gradient in comparison to vehicle 1 (corresponding to the baseline in Figure 8). shows an oversteering behaviour up to 6.5 m/s 2 of lateral acceleration, while an understeering behaviour is achieved by vehicle 2 in mode 2 in the entire range of lateral acceleration. The implemented DYC allows following the desired δ dyn * a y * curve, for each driving mode of vehicle 2, with a maximum error of ± 0.5°, as shown in Figures 9 and 10, where the achieved trend of understeer gradient for vehicle 1 and vehicle 2 is calculated with the CR and CS tests, respectively. As mentioned in the previous section, in steady-state conditions the two test methods are equivalent, as confirmed by the substantially identical results achieved in the simulated manoeuvres executed by driver 1 and driver 2. Results of the Virtual Driving Tests As expected, using the driving mode 1 with driver 1, the understeer gradient of vehicle 2 is always lower than that of vehicle 1, while it is higher in driving mode 2 in the full range of lateral acceleration. Figure 11 shows the turning radius as a function of the longitudinal speed, measured in steady-state conditions during the CS test conducted by driver 2, which further clarifies the differences in the lateral behaviour of two test vehicles. Results of the Virtual Driving Tests (a) (b) Figure 11. Turning radius as a function of the longitudinal speed for vehicle 2 in both driving mode 1 (a) and in driving mode 2 (b), as compared to vehicle 1. Results of the Virtual Driving Tests As expected, for a given value of the longitudinal velocity controlled by driver 2 as indicated in Section 3, due to the higher oversteering in driving mode 1, vehicle 2 travels along circular paths with a radius that is lower than the one exhibited by vehicle 1. Instead, when driving mode 2 is selected, the DYC forces vehicle 2 to travel along higher-radius circular trajectories as compared to vehicle 1. Results of the Virtual Driving Tests The effects of TV on the lateral dynamic response of the two vehicles are evaluated also using driver 3 to perform the SLC testing manoeuvre. In this test, driver 3 drives the vehicle until Section 1 of the test track by achieving a longitudinal speed of 14 m/s. With this entry speed value, driver 3 on vehicle 1 fails to complete the manoeuvre. Instead, due to the effects of DYC on the lateral dynamics, which enhances the oversteering performances, vehicle 2 is able to complete the driving test faultlessly. Figure 12 shows the paths followed by the centres of gravity (CGs) of vehicle 1 and vehicle 2, along with the desired path during the manoeuvre. Considering the track dimensions defined in Table 2 and a vehicle width of 1.4673 m for Sections 3 and 5 of the test track, the maximum allowed absolute values of the position error are 0.5 and 0.76 m, respectively. Vehicle 2, subject to DYC in driving mode 1, proves able to correctly complete the manoeuvre, with a maximum position error of about 0.12 m. This is due to the higher level of oversteer that makes vehicle 2 more responsive to the driver's steering input, allowing it to travel on a path with a lower-curvature radius than vehicle 1 at the same speed. Conclusions This paper proposed a C++ simulation platform for multiple and concurrent vDiL simulations of road vehicles. In the proposed scheme, a software driver, replacing the human driver interaction, calculates all the possible control signals such as throttle, brake, and steering angle, based on the asked manoeuvre and relying on a set of nested PID controllers. The preliminary evaluations of the simulator showed great potential for achieving the concurrent simulation of several vehicles. Conclusions Several variants of a vehicle can be simulated with different characteristics such as geometry, mass properties, tyres, and transmission. The simulation environment relies on a modular and hierarchical architecture, which can more naturally be further expanded in several ways: additional modules could be dedicated to perform other dynamic tests; other modules could create an interface with more advanced virtual driving scenario software; yet other modules could expand the current functionality implementing more complex hardware interfaces such as a motion platform. In this latter scenario, our simulator could be instrumental for comparing human-in-the-loop (HiL) with vDiL during closedloop manoeuvres, similar to those presented in this study or even more complex driving scenarios on virtual tracks. Future works are planned to add modular and scalable-detail sub-system models and more advanced control strategies, such as fuzzy or predictive control models. Conclusions The advantages of using the vDiL approach have been illustrated. The reported test results demonstrate the capabilities of the proposed simulator and its effectiveness in evaluating the dynamic performance of multiple passenger cars with low computational impact. The possibility of instantiating several vehicles, even different variants of a vehicle, joined to the possibility of different virtual drivers has been achieved using the OOP paradigm. The resulting software environment represents a flexible tool for simulating different driving scenarios, enabling several research activities in line with the recent automotive industry demands.

섹션 본문 52문단 · 36,677자

(제목 없음)

1Assessing passenger cars' dynamic performance is a critical aspect for car industries, due to its impact on the overall vehicle safety evaluation and the subjective nature of the involved handling and comfort metrics. Accordingly, ISO standards, such as ISO 4138 and ISO 3888, define several specific driving tests to assess vehicle dynamics performance objectively. Consequently, proper evaluation of the dynamic behaviour requires measuring several physical quantities, including accelerations, speed, and linear and angular displacements obtained after instrumenting a vehicle with multiple sensors. This experimental activity is highly demanding in terms of hardware costs, and it is also significantly time-consuming. Several approaches can be considered for reducing vehicle development time. In particular, simulation software can be exploited to predict the approximate behaviour of a vehicle using virtual scenarios. Moreover, motion platforms and detail-scalable numerical vehicle models are widely implemented for the purpose. This paper focuses on a customized simulation environment developed in C++, which exploits the advantages of object-oriented programming. The presented framework strives to perform concurrent simulations of vehicles with different characteristics such as mass, tyres, engine, suspension, and transmission systems. Within the proposed simulation framework, we adopted a hierarchical and modular representation. Vehicles are modelled by a 14 degree-of-freedom (DOF) full-vehicle model, capable of capturing the dynamics and complemented by a set of scalable-detail models for the remaining sub-systems such as tyre, engine, and steering system. Furthermore, this paper proposes the usage of autonomous virtual drivers for a more objective evaluation of vehicle dynamic performances. Moreover, to further evaluate our simulator architecture's efficiency and assess the achieved level of concurrency, we designed a benchmark able to analyse the scaling of the performances with respect to the number of different vehicles during the same simulation. Finally, the paper reports the proposed simulation environment's scalability resulting from a set of different and varying driving scenarios. Citation: Perrelli, M.; Cosco, F.; Carbone, G.; Lenzo, B.; Mundo, D. On the Benefits of Using Object-Oriented Programming for the Objective Evaluation of Vehicle Dynamic Performance in Concurrent Simulations. Machines 2021, 9, 41.

Introduction

2Over the last decades, automotive original equipment manufacturers (OEM) aimed to make their cars increasingly smarter, more autonomous, and safer by widening the use of efficient electronic control units (ECUs) and active systems to improve both vehicle performance and passengers' safety. Since the anti-lock braking system (ABS) was introduced for serial production, several advanced driver-assistance systems (ADASs) have been developed for vehicle longitudinal, lateral, and vertical stability control [1][2][3]. As a result, modern cars, even those belonging to the city car segment, feature a plethora of ADAS functions. Besides the older longitudinal dynamics controllers, such as the ABS [4], the adaptive cruise control (ACC) [5], and the traction control system (TCS) [6][7][8][9], other functionalities recently arose targeting the lateral stability enhancement, such as the electronic stability program (ESP) [10,11], the active front steering (AFS) [12][13][14] and the direct yaw moment controller (DYC) for torque vectoring (TV) transmission control [15]. Even if less common than the former systems, vertical dynamics control systems, such as the active suspension control (ASC) [16] and the active body control (ABC) [17], are being introduced in top-end passenger cars to improve safety and ride comfort. As a result, the complexity of modern vehicle control systems is reaching hardly sustainable levels, with up to over 100 million lines of source code distributed on board among over 100 ECUs [18].

3ADASs generally improve vehicle safety and stability, but their effectiveness relies on the accurate estimation of the instantaneous vehicle dynamic states [19], enabled by a variety of onboard sensors, such as inertial navigation sensors (INS), global navigation satellite systems (GNSS), and wheel speed and orientation sensors [20,21]. Besides estimation, ADASs rely on model predictive control strategies to correctly perform their safety actions, thus requiring the embedding of a numerical vehicle dynamic (VD) model on the ECU.

4In the literature, different dynamic models and formulations estimate vehicle performance in terms of longitudinal, vertical, and lateral dynamics. Advanced simulations delivering high-accuracy predictions rely on high-fidelity rigid multibody (MB) models [22,23], which can be eventually enriched by vehicle body concept models to account for the body flexibility as well [24,25]. However, the MB modelling approach is quite complex and demands high computational effort. It may lead to MB models with more than 100 bodies, each of which needs an accurate definition of constraints, geometry, and mass properties. Although new efficient ECUs have been developed and recent studies tried to achieve realtime (RT) MB simulation of vehicle dynamics in embedded applications [26][27][28], the computation is often too expensive with respect to the limited amount of computational resources of an embedded platform, and it is not always compatible with hard RT constraints.

5The use of concept models, consisting of lumped-parameter models commonly used during the early-stage design phases, emerged for targeting RT embedded applications. Concept models represent a computationally more affordable alternative to the corresponding high-fidelity MB models, enabling an accurate and reliable RT prediction of the vehicle dynamic behaviour as required by ADASs [29]. The lumped-parameter vehicle models (LPVMs) consist of a few bodies and a limited number of degrees of freedom (DOFs) with associated relatively low computational cost. Their complexity ranges from simple 2 DOF quarter-car or bicycle models, which can capture only the basic vertical and either the longitudinal or the lateral behaviour of a vehicle, up to 15-18 DOF full-vehicle models (FVMs) [30][31][32]. Offering a good compromise between predictive accuracy and computational efficiency, FVMs already proved their effectiveness in supporting the vehicle dynamic simulation for RT driver-in-the-loop (DiL) testing [33,34]. A human driver immersed into a virtual-reality scenario acts on a virtual vehicle, enabling the assessment both subjectively and objectively of the influence of multiple design choices related, but not limited to, VD performances. Furthermore, FVMs are also enabling the development of more recent control strategies aiming for autonomous driving, such as fuzzy controllers [35] and/or proportional-integral-derivative (PID) controllers [36,37].

6This work's contribution builds on the verge of extending the above-mentioned DiL approach, including some of the more basic autonomous driving functions, such as steering and throttle control, leading to the concept of virtual-driver-in-the-loop (vDiL) simulations. The proposed vDiL approach enables comparative vehicle design assessments on different driving scenarios while achieving a more objective benchmark than the human driver-in-the-Loop (hDiL) alternative. In practice, a replica of the virtual driver program is used in different simulations, while varying the design parameters under investigation.

7In particular, this paper describes the main components and the overall architecture of a simulation environment required to evaluate the vehicle dynamic performances using vDiL. The presented simulation environment enables the validation of the vDiL results, while investigating more complex scenarios where the impact of the ADAS or even of the autonomous driving functions can be assessed [38,39].

8The presented research originates from the need for simulating several independently controlled actors, while allowing to choose among several vehicle variants, with different types of models or different control strategies. This motivation led us to design a new simulation environment, which was deeply inspired from a predecessor simulator [34]. The new architecture relies on the benefits of the object-oriented programming paradigm and exploits a hierarchical evaluation of the vehicle sub-modules, which is also more representative of the hierarchical organization of the plethora of different ECUs used in modern cars .

9Within the proposed simulation framework and for the sake of describing a first proof-of-concept validation, we adopted a 14 DOF FVM that exchanges information with scalable-detail models of the remaining core vehicle sub-systems such as tyre, engine, and steering system. Moreover, a vDiL agent module was programmed. In particular, our testing scenarios exemplify how the proposed simulation platform enabled the comparison of the lateral dynamics of two vehicles with identical physical characteristics, but with two different strategies for driving torque distribution, i.e., a simplified mechanical differential model [40,41] and a DYC-based torque vectoring (TV) system [42].

10The paper is organized as follows. Section 2 describes the concurrent software architecture of the simulator. Section 3 explains the implemented driving tests. Section 4 discusses the computational efficiency of the proposed simulator and presents the achieved level of concurrency. Moreover, it discusses the numerical results achieved during constant steer (CS) and constant radius (CR) tests according to ISO 4138, along with a severe lane change (SLC) manoeuvre as defined by ISO 3888 standard. Section 5 provides concluding remarks and an overview of future developments.

Architecture of the Simulation Environment

11A new simulation environment was designed and implemented using modern C++ (ISO 17), although we were inspired by an existing simulator [34]. Thanks to the modern object-oriented programming (OOP) paradigm, the proposed simulator offers a modular infrastructure, where code procedures and data are hierarchically grouped and systematically encapsulated into objects [27]. This allows a more effective representation of the increasing level of complexity required from the vehicle industry market.

12In fact, the OOP paradigm is based on the concept of "objects", which can contain data, in the form of fields or attributes or properties, but also embed specific functionalities, in the form of procedures or methods able to process the known data and produce new objects. Exploiting OOP, the design of the environment was more natural, as it allowed to focus on expressing the interactions and hierarchies between objects, more than on the data transactions and the corresponding procedures typical of the older procedural programming approach. Moreover, we exploited polymorphism to effectively capture the modular but also hierarchical variety of objects necessary for the dynamic simulation of several variants of a vehicle. In fact, the proposed software architecture more naturally supports the implementation of a multitude of alternatives for each sub-component of the vehicle, while it captures the interfaces between them at a more abstract level. Thanks to OOP and modern C++ (ISO 17), the vehicle simulation manager class was programmed to be thread-safe: several variants of a vehicle can be simulated concurrently. Figure 1 depicts the proposed modular architecture. The simulation starts by instantiating one or more vehicle objects. Each vehicle is created as an independent instance of the same abstract object class, which relies on several interacting sub-objects such as the car, tyre, powertrain, or driver sub-modules. Each vehicle instance retrieves the infor-mation required for its own construction, using a set of specific configuration files. Different configuration files define the required vehicle properties such as car geometry, inertial parameters, masses, steering system, engine, tyres, and suspension characteristics. Each of the input files must obey a prescribed syntax format, although OOP would also allow the easy implementation of the possibility of supporting different input file syntaxes.

13The number and type of the input files depend on the type of object used to define the simulation: if the user sets a driving torque distribution strategy based on a DYC for TV, two more configuration files are required to provide the reference yaw rate lookup table (LUT) defined as explained in [42].

14At least two more additional configuration files are used to define road profiles and trajectories that vehicles must follow during the same prescribed ride simulation.

15After the file-based initialization stage, the proposed simulation environment enables the concurrent simulation of different vehicles, each encapsulating its characteristics and control strategies. A dedicated graphical user interface (GUI) was instrumental for editing at runtime the different PID parameters, allowing for a better and more efficient fine-tuning of the dedicated PID-based virtual driver's behaviour.

16The RT vehicle simulations, in response to the virtual driver's actions, are computed using a very efficient numerical model for vehicle dynamic simulation based on a lumpedparameter formulation with 14 DOFs. A set of output signals, such as car position, forces, and torques, are sent to the GUI enabling RT data visualization, in addition to their storage for post-processing purposes.

17To prevent slowing down the simulation execution, the communication towards the GUI application was delegated within a lower-priority thread using a client-Server User Datagram Protocol (UDP).

18The vehicle simulation is based on a modular architecture relying on four sub-moduels: car, powertrain, tyre, and virtual driver. Each of the sub-module classes was defined allowing its evaluation to run in a separated thread, with no dependencies either on the states of the other sub-modules or on the communication towards the external GUI. To prevent concurrency issues such as race condition and deadlock and achieve threadsafety, we used the shared-memory paradigm, enriched by the usage of a set of dedicated memory mutexes. All the above-mentioned concurrent programming features are supported natively by modern C++ since the 2011 revision, making the current version of the code immediately portable towards different platforms, including the embedded ones.

Car Sub-Module

19The car sub-module represents the core of the system implementing the lumped-parameter FVM. It is an explicit solver for the set of ordinary differential equations (ODEs) governing the dynamic equilibrium of the vehicle chassis (three translational and three rotational equilibrium conditions) and of each of the wheels (translational equilibrium in the vertical direction and rotational equilibrium around the spindle axis). The 14 DOFs of the model are as follows:

20• the 3 rigid-body rotations (pitch, roll, and yaw) of the vehicle body; • the 3 rigid-body translations of the vehicle body; • the vertical displacement of each wheel centre w.r.t. to the vehicle body; • the rotation of each wheel around the spindle axis.

Powertrain Sub-Module

21The powertrain sub-module is responsible for computing the angular velocity of the engine, from which the engine torque, Td, is derived by interpolating the specified maximum torque-velocity curve and scaling it by the throttle command. The torque distribution to the driving wheels is considered even for a vehicle equipped with a conventional mechanical differential, while the following uneven distribution is implemented for a vehicle equipped with DYC for TV:

22where Trdw and Tldw are the torque values delivered to the right and left wheel, respectively, while Rw is the wheel radius, d the vehicle half-track width, and Mz is the yaw moment required by the desired understeer correction calculated as described in [43]. For the vehicles used in the proposed simulation, we used Rw = 0.3135 m and d = 1.4673 m.

Tyre Sub-Module

23The tyre sub-model is responsible for simulating the road-tyre interaction and computing the vertical, longitudinal, and lateral forces, along with the longitudinal and lateral slip coefficients. At each simulation step, vertical forces are estimated by a simple springdamper model. Longitudinal and lateral forces are computed using a simplified version of Pacejka Magic Formula, as explained in detail in [41].

Virtual Driver

24The driver sub-module of the simulation software is used to control the throttle position, the steering wheel angle, and the Mz correction factor using three nested PID regulators as described in [40,41] and depicted in Figure 2. A kinematic model is implemented to derive the steering angle at wheels, based on the actual value of the steering input given by the virtual driver and on the steering ratio. Three independent PID controllers are used to calculate the values of the steering wheel angle (δ), the throttle command (th), and, in the case of a vehicle with DYC, the desired yaw moment, Mz, input.

25Considering the discrete-time nature of the simulation, all the implemented PID regulators rely on a classical formulation as follows:

26where e ct is the current cross-track error determined as the distance of the current vehicle position from the reference trajectory; e s represents the error between the target speed and the current vehicle speed; and e yr is the error between the current vehicle yaw rate and the desired yaw rate. The index, k, is the number of the current iteration timestep in a range from 1 to N, with N representing the total number of simulation timesteps. The integration time, dt, represents the time interval between two consecutive iteration steps. It is worth noting than the duration of dt has a remarkable influence on the overall quality and stability of simulation. On the one hand, an extremely low value of dt corresponds to a very dense time discretization, thus assuring a high dynamic accuracy of the simulation results. However, this can lead to numerical instabilities when using discrete derivatives, such as in Equations (3)-(5), in presence of numerical noise [40]. On the other hand, higher values of dt generally reduce the dynamic accuracy, leading to information loss and potentially instability and divergency when simulating highly dynamic problems. In the scope of this paper, we used values of the integration time, dt, between 0.001 and 0.005 s, assuring a good compromise between accuracy and stability corresponding to these values. Kp δ , Ki δ , and Kd δ are the proportional, integral, and derivative gains, respectively, for the steer regulator; Kpth, Kith, and Kdth are the proportional, integral, and derivative gains for the throttle regulator; K pM z , K iM z , and K dM z are the proportional, integral, and derivative gains for the throttle regulator.

Virtual Driving Tests

27Several driving tests were carried out based on ISO standard manoeuvres to assess the effectiveness of the implemented simulator. The most relevant tests carried out were those concerning the evaluation of lateral behaviour of the vehicles by simulating the CS, CR, and SLC manoeuvre.

28The first two tests are defined by the ISO 4138 standard for the characterization of understeering characteristics of the vehicle, and the last one is defined by ISO 3888 standard. The ISO 4138 defines a standardization of the driving manoeuvres to evaluate the understeer gradient of a vehicle. It consists in varying a specific feature of the vehicle motion, while measuring and keeping constant other motion features. Table 1 summarizes the constant, varied, and measured features for each of the two tests. [43], in dynamic conditions, the steering angle δ is given by

29where L is the wheelbase length of the vehicle; R, the turning radius; and ay, the lateral acceleration. The understeer gradient, K, can be derived as follows:

30The lateral acceleration depends on the longitudinal velocity, s, and the turning radius, being a y = s 2 R

31In real driving scenarios, vehicles are equipped with specific sensors to measure δ, s, and ay from which the understeer gradient, K, is derived, while in the virtual tests proposed in this work, those values are estimated by the implemented 14 DOF FVM.

32CR and CS manoeuvres can be used alternatively, being the steady-state equilibrium independent of the actual testing method. The values of speed, steering wheel angle, or turning radius can be obtained holding constant any of the three, while varying the second in a controlled way and measuring the third one.

33In the implemented CR manoeuvre, the two vehicles are driven by virtual PID-controlled drivers at different speeds along the trajectory shown in Figure 3, consisting of a clothoid, along which the vehicles are accelerated until reaching a speed of 30 km/h, followed by a circular trajectory of standard constant radius, R, equal to 100 m. At that point, the steering angle is increased up to the value of the Ackerman angle, which is calculated, for the test vehicles with a wheelbase L = 2.73 m, as = 180 ≅ 1.56° (9) Once the vehicles are on the circular path, the virtual drivers accelerate from 30 to 100 km/h following a stepwise constant law, with a step of 5 km/h, while ensuring that the lateral acceleration increases by a rate not exceeding 0.1 m/s 2 /s, as ISO 4138 suggests. At each step, the speed is kept constant to ensure that steady-state conditions are maintained for at least 3 s. The understeer gradient is then calculated using Equation (7).

34In addition to the CR test, a CS manoeuvre is implemented as well, during which the steering wheel angle is kept fixed and equal to the Ackerman value δAck, and the speed, s, of the vehicles is steadily increased from 50 to 160 km/h, again with a step of 5 km/h. With the imposed steering wheel angle, as the longitudinal speed increases, the car travels along circular trajectories with decreasing or increasing radii for an oversteering and an understeering behaviour, respectively.

35When the car reaches steady-state conditions for a given speed value, s, the actual turning radius is calculated as follows:

36The understeer gradient, K, is finally derived from Equation (7). A third driving test has been implemented as well, consisting of an SLC manoeuvre defined according to the ISO 3888 standard. The latter defines the geometry of a test track, with a total length of 61 m, designed to enable the assessment of obstacle avoidance performance and road-holding capability of a vehicle. The test track, which is depicted in Figure 4 and defined by the dimensional specifications listed in Table 2, is marked by cones that are placed as shown in the schematic of Figure 5. To perform this manoeuvre, the virtual driver strives to follow as closely as possible the specific test trajectory that follows the middle line of the test track, as shown in Figure 5. In particular, the virtual vehicle is expected to enter Section 1 with the highest gear position that allows guaranteeing a minimum engine speed of 2000 RPM during the manoeuvre, and after 2 m the driver must release the throttle and drive up to the end of Section 5. The test is considered faultless if the vehicle never crosses the track borders as defined by the cones.

37As explained in Table 3, these manoeuvres must be executed using a different combination of the available PID regulators. To perform these tests at the same time, it is possible to instantiate several driver and vehicle objects with different characteristics. Specifically, three different drivers and two vehicles were instantiated. Each driver was assigned one of the above manoeuvres to be executed with two different vehicles. The following table shows the assigned manoeuvres and the activation status of the regulators for steer and throttle control in each test. If the vehicle is configured to use the TV strategies, the DYC PID-controller is also activated in any of the three driver cases.

38The two vehicles instantiated are identical, except for the driving torque distribution system: vehicle 1 is equipped with a simplified mechanical differential that performs an even torque distribution, while vehicle 2 exploits uneven driving torque distribution, controlled by a DYC approach. This further clarifies the advantages of OOP and the high flexibility of the proposed simulator that can simulate different driving scenarios concurrently. The advantages of concurrent simulation and the results of these driving tests are illustrated, respectively, in Sections 4.1 and 4.2.

Results and Discussion

39This section describes the numerical assessments conducted to highlight the benefits of the concurrent simulation architecture introduced using OOP (as discussed in Section 2) and to validate the proposed vDiL approach's usability. All results presented in this section have been achieved through simulations executed on a workstation featuring an Intel ® Core™ i7-6700HQ 2.60 GHz quad-core eight-thread processor, and 16 GB of DDR4 RAM, running on Windows 10 Enterprise operating system and assigning to the correspondent process higher execution priority. At first, tests assessed the level of concurrency with an increasing number of independent vehicles' simulation. Afterwards, we demonstrated the potential of the platform and the presented virtual driver approach by simulating a set of comparative standard driving tests, which are typically adopted for performing vehicle dynamics objective evaluations on test tracks.

Assessment of the Concurrency Level

40As described in Section 2, this paper deals with the advantages of a concurrent simulation architecture, which allows multiple-and potentially although not necessarily different-car simulations to run concurrently.

41In other words, the proposed concurrent software architecture is a necessary but not sufficient condition to achieve parallel RT execution of different car simulations. Concurrency refers just to the possibility of having various simulations to be launched independently. In contrast, achieving RT parallel simulation demands additional complexity levels: considering the time variable, mechanisms for enforcing time-related deadlines, and implementing dedicated constructs for coordinating and orchestrating the operations among all the parallel threads.

42The proposed concurrent architecture can achieve real-time execution for all the simultaneously executed jobs provided that the available computing resources can meet the computational demands at any time. Therefore, it is interesting to consider a benchmark focusing on the scaling of the computational performances for an increasing number of concurrently simulated vehicles. Moreover, it not only allows the further evaluation of the efficiency of the proposed architecture but also assess the achieved level of concurrency.

43We performed 10 different simulations with an increasing number of identical vehicles, during a path-following scenario. This context represents the more computationally demanding simulation case, because virtual drivers use all the regulators illustrated in Figure 2. Figure 6a shows the trend of minimum and maximum computation times required when issuing an increasing number of parallel simulations. The almost constant value of the minimum curve tells us that there is always at least one thread, thus at least one parallel simulation, able to conclude the job with a performance comparable to the singlevehicle simulation case. Conversely, a sever degradation of the slowest thread performances happens only from above six concurrently simulated vehicles. This suggests that the computational resources within the used workstation are saturated only when we launch more than six concurrent threads: in all those cases, only a subset of the threads are able to stay resident on the CPU, while the remaining threads' operations start to be scheduled asynchronously. Although the computational efficiency is out of the scope of this paper, it is worth noticing also that all the simulations were completed within the real-time barrier, showing great potential for achieving parallel real-time simulation of several vehicles. Figure 6b depicts the results of the same benchmark, in terms of the achieved speedup levels, computed as the ratio between the time required to complete all the simulations sequentially and the time required from the slowest thread simulation. This chart highlights more clearly that our architecture achieves almost perfect parallelism (slope of the blue curve is lower than that of the dash-dotted line) with a linear scaling up to 6 simulations. Above this value, the speed-up tends to saturate to a value of 4×, which indicates how our implementation can fully saturate all the CPU cores (dashed line). Fluctuations of the speed-up above 4× are achieved due to the Intel hyperthreading functionality, which allows the scheduling of the execution of more threads on the same physical core. Figure 7 further clarifies the implication of concurrent execution of six identical vehicles, all performing the same CR driving test task for 10 s, showing the evolution of the time ratio between the software execution time, (texec), and the vehicle time, tsim, calculated as follows:

44As illustrated, the simulation of each vehicle is not synchronized with the simulation of the other vehicles, but it is performed asynchronously. The different simulations execute at a variable computing speed and the virtual vehicles are substantially free to race. It is worth mentioning that, with the simulations running on a pre-emptive multitasking operative system, with other programs running, the execution is not deterministic as it may be greatly influenced by several other factors suddenly changing the amount of available computing power, such as graphics drivers interrupts, other programs possibly running in the background, or system updates. At the very beginning, all the simulating threads are warming-up, which is consistent with the fact that the CPU frequency is rising and transitioning from lower energy-saving states to its maximum power. After few iterations, we can appreciate that vehicles 3 and 4 start being the slowest threads, but they were allocated more resources than the others, becoming the first two threads to complete. Similarly, simulations of vehicles 5 and 6 advanced with a degrading performance, asymptotically converging towards a time ratio threshold of about 0.27 s. As reported also in Figure 6a, for the six simulations case, the total execution time ranged between 2.357 and 2.693 s, which is also reported at the rightmost side of the chart in Figure 7. It is also worth noting that all the simulations were executed maintaining a large margin from the real-time barrier, corresponding to a time ratio equal to 1.

Results of the Virtual Driving Tests

45This section illustrates an example of the simulation output for the CR, CS, and SLC driving tests. As mentioned in Section 3, we used three drivers and two vehicles, with identical characteristics but with different torque distribution strategies. Each driver was assigned a specific manoeuvre, as indicated in Table 3, to be done with the two different vehicles. In particular, vehicle 1 was supposed to be equipped with a simplified mechanical differential, providing an even torque distribution to the driving wheels. Vehicle 2 was designed to have a driving torque distribution based on two different TV strategies, to be used in two different driving modes. In the two modes, indicated as mode 1 and mode 2, the implemented TV-based DYC allows, respectively, to reduce and to increase the understeer gradient in comparison to vehicle 1 (corresponding to the baseline in Figure 8). shows an oversteering behaviour up to 6.5 m/s 2 of lateral acceleration, while an understeering behaviour is achieved by vehicle 2 in mode 2 in the entire range of lateral acceleration. The implemented DYC allows following the desired δ dyn * a y * curve, for each driving mode of vehicle 2, with a maximum error of ± 0.5°, as shown in Figures 9 and 10, where the achieved trend of understeer gradient for vehicle 1 and vehicle 2 is calculated with the CR and CS tests, respectively. As mentioned in the previous section, in steady-state conditions the two test methods are equivalent, as confirmed by the substantially identical results achieved in the simulated manoeuvres executed by driver 1 and driver 2.

46As expected, using the driving mode 1 with driver 1, the understeer gradient of vehicle 2 is always lower than that of vehicle 1, while it is higher in driving mode 2 in the full range of lateral acceleration. Figure 11 shows the turning radius as a function of the longitudinal speed, measured in steady-state conditions during the CS test conducted by driver 2, which further clarifies the differences in the lateral behaviour of two test vehicles.

47(a) (b) Figure 11. Turning radius as a function of the longitudinal speed for vehicle 2 in both driving mode 1 (a) and in driving mode 2 (b), as compared to vehicle 1.

48As expected, for a given value of the longitudinal velocity controlled by driver 2 as indicated in Section 3, due to the higher oversteering in driving mode 1, vehicle 2 travels along circular paths with a radius that is lower than the one exhibited by vehicle 1. Instead, when driving mode 2 is selected, the DYC forces vehicle 2 to travel along higher-radius circular trajectories as compared to vehicle 1.

49The effects of TV on the lateral dynamic response of the two vehicles are evaluated also using driver 3 to perform the SLC testing manoeuvre. In this test, driver 3 drives the vehicle until Section 1 of the test track by achieving a longitudinal speed of 14 m/s. With this entry speed value, driver 3 on vehicle 1 fails to complete the manoeuvre. Instead, due to the effects of DYC on the lateral dynamics, which enhances the oversteering performances, vehicle 2 is able to complete the driving test faultlessly. Figure 12 shows the paths followed by the centres of gravity (CGs) of vehicle 1 and vehicle 2, along with the desired path during the manoeuvre. Considering the track dimensions defined in Table 2 and a vehicle width of 1.4673 m for Sections 3 and 5 of the test track, the maximum allowed absolute values of the position error are 0.5 and 0.76 m, respectively. Vehicle 2, subject to DYC in driving mode 1, proves able to correctly complete the manoeuvre, with a maximum position error of about 0.12 m. This is due to the higher level of oversteer that makes vehicle 2 more responsive to the driver's steering input, allowing it to travel on a path with a lower-curvature radius than vehicle 1 at the same speed.

Conclusions

50This paper proposed a C++ simulation platform for multiple and concurrent vDiL simulations of road vehicles. In the proposed scheme, a software driver, replacing the human driver interaction, calculates all the possible control signals such as throttle, brake, and steering angle, based on the asked manoeuvre and relying on a set of nested PID controllers. The preliminary evaluations of the simulator showed great potential for achieving the concurrent simulation of several vehicles.

51Several variants of a vehicle can be simulated with different characteristics such as geometry, mass properties, tyres, and transmission. The simulation environment relies on a modular and hierarchical architecture, which can more naturally be further expanded in several ways: additional modules could be dedicated to perform other dynamic tests; other modules could create an interface with more advanced virtual driving scenario software; yet other modules could expand the current functionality implementing more complex hardware interfaces such as a motion platform. In this latter scenario, our simulator could be instrumental for comparing human-in-the-loop (HiL) with vDiL during closedloop manoeuvres, similar to those presented in this study or even more complex driving scenarios on virtual tracks. Future works are planned to add modular and scalable-detail sub-system models and more advanced control strategies, such as fuzzy or predictive control models.

52The advantages of using the vDiL approach have been illustrated. The reported test results demonstrate the capabilities of the proposed simulator and its effectiveness in evaluating the dynamic performance of multiple passenger cars with low computational impact. The possibility of instantiating several vehicles, even different variants of a vehicle, joined to the possibility of different virtual drivers has been achieved using the OOP paradigm. The resulting software environment represents a flexible tool for simulating different driving scenarios, enabling several research activities in line with the recent automotive industry demands.

참고문헌 46건

  1. Active Body Control (ABC) The DaimlerChrysler Active Suspension and Damping System 2002
  2. Safety and Performance Enhancement: The Bosch Electronic Stability Control (ESP) Proceedings of the 19th International Technical Conference on the Enhanced Safety of Vehicles (ESV) · 2005
  3. Fundamentals of Vehicle Dynamics SAE International eBooks · SAE International · 2021 10.4271/9781468601770
  4. Kinematic and dynamic vehicle models for autonomous driving control design 2022 IEEE Intelligent Vehicles Symposium (IV) · 2015 10.1109/ivs.2015.7225830
  5. Electronic Stability Program (ESP) Springer eBooks · Springer Nature · 2014 10.1007/978-3-658-03975-2_16
  6. State of the art survey: active and semi-active suspension control Vehicle System Dynamics · Taylor & Francis · 2015 10.1080/00423114.2015.1037313
  7. Vehicle Lateral Dynamics Control Through AFS/DYC and Robust Gain-Scheduling Approach IEEE Transactions on Vehicular Technology · Institute of Electrical and Electronics Engineers · 2015 10.1109/tvt.2015.2391184
  8. Modeling, simulation and validation of 14 DOF full vehicle model 2009 10.1109/icici-bme.2009.5417285
  9. PID Control with Adaptive Feedback Compensation for Electronic Throttle IFAC Proceedings Volumes · Elsevier BV · 2012 10.3182/20121023-3-fr-4025.00010
  10. Nested PID steering control for lane keeping in autonomous vehicles Control Engineering Practice · Elsevier BV · 2011 10.1016/j.conengprac.2011.08.005
  11. A wave-based substructuring approach for concept modeling of vehicle joints Computers & Structures · Elsevier BV · 2011 10.1016/j.compstruc.2011.06.011
  12. Three Decades of Driver Assistance Systems: Review and Future Perspectives IEEE Intelligent Transportation Systems Magazine · Institute of Electrical and Electronics Engineers · 2014 10.1109/mits.2014.2336271
  13. Automated independent coordinates’ switching for the solution of stiff DAEs with the linearly implicit Euler method Multibody System Dynamics · Springer Science+Business Media · 2015 10.1007/s11044-015-9455-x
  14. Adaptive vehicle traction control: combined longitudinal and lateral motion International Journal of Dynamics and Control · Springer Science+Business Media · 2013 10.1007/s40435-013-0022-0
  15. A survey of technical trend of ADAS and autonomous driving 2014 10.1109/vlsi-dat.2014.6834940
  16. A Survey of Traction Control and Antilock Braking Systems of Full Electric Vehicles With Individually Controlled Electric Motors IEEE Transactions on Vehicular Technology · Institute of Electrical and Electronics Engineers · 2014 10.1109/tvt.2014.2361860
  17. Multi-agent traffic simulation for human-in-the-loop cooperative drive systems testing 2014 10.5555/2615731.2616128
  18. Hard real-time multibody simulations using ARM-based embedded systems Multibody System Dynamics · Springer Science+Business Media · 2016 10.1007/s11044-016-9504-0
  19. Mathematical modelling and simulation quarter car vehicle suspension 2014
  20. Mathematical modelling and simulation quartercar vehicle suspension International Journal of Innovative Research in Science Engineering and Technology · Ess And Ess Research Publications · 2014
  21. A Study of Coordinated Vehicle Traction Control System Based on Optimal Slip Ratio Algorithm Mathematical Problems in Engineering · Hindawi Publishing Corporation · 2016 10.1155/2016/3413624
  22. Advanced Vehicle Body Concept Modeling Approach Using Reduced Models of Beams and Joints 2010
  23. Use of concept modelling for online input force estimation 2014
  24. Chassis integrated control for active suspension, active front steering and direct yaw moment systems using hierarchical strategy Vehicle System Dynamics · Taylor & Francis · 2016 10.1080/00423114.2016.1245424
  25. On the Use of Driver-in-the-Loop (DIL) Systems in Commercial Vehicle Chassis Development SAE International journal of vehicle dynamics, stability, and NVH · 2017 10.4271/2017-26-0242
  26. Vehicle dynamic state estimation: state of the art schemes and perspectives IEEE/CAA Journal of Automatica Sinica · Institute of Electrical and Electronics Engineers · 2018 10.1109/jas.2017.7510811
  27. Torque based lane change assistance with active front steering 2022 IEEE 25th International Conference on Intelligent Transportation Systems (ITSC) · 2017 10.1109/itsc.2017.8317624
  28. Fuzzy logic controller for autonomous vehicle path tracking 2017 10.1109/sta.2017.8314969
  29. Advanced Driver-Assistance Systems: A Path Toward Autonomous Vehicles IEEE Consumer Electronics Magazine · Institute of Electrical and Electronics Engineers · 2018 10.1109/mce.2018.2828440
  30. Towards Co-simulation of Embedded Platforms and Physics-Based Models 2018 10.1109/seaa.2018.00025
  31. Keeping the driver in the loop: Dynamic feedback to support appropriate use of imperfect vehicle control automation International Journal of Human-Computer Studies · Elsevier BV · 2018 10.1016/j.ijhcs.2018.12.009
  32. A survey of Automotive Driving Assistance Systems technologies 2018 10.1109/idap.2018.8620826
  33. Efficient Neural Network Implementations on Parallel Embedded Platforms Applied to Real-Time Torque-Vectoring Optimization Using Predictions for Multi-Motor Electric Vehicles Electronics · Multidisciplinary Digital Publishing Institute · 2019 10.3390/electronics8020250
  34. Direct Yaw Moment Control for Enhancing Handling Quality of Lightweight Electric Vehicles with Large Load-To-Curb Weight Ratio Applied Sciences · Multidisciplinary Digital Publishing Institute · 2019 10.3390/app9061151
  35. Active steering control for autonomous vehicles based on a driver-in-the-loop platform: A case study of collision avoidance Proceedings of the Institution of Mechanical Engineers Part I Journal of Systems and Control Engineering · SAGE Publishing · 2019 10.1177/0959651819847005
  36. A Comprehensive Survey of Driving Monitoring and Assistance Systems Sensors · Multidisciplinary Digital Publishing Institute · 2019 10.3390/s19112574
  37. Adaptive Cruise Control Strategies Implemented on Experimental Vehicles: A Review IFAC-PapersOnLine · Elsevier BV · 2019 10.1016/j.ifacol.2019.09.004
  38. A Review Paper on Anti-Lock Braking System (ABS) and its Future Scope International Journal for Research in Applied Science and Engineering Technology · International Journal for Research in Applied Science and Engineering Technology (IJRASET) · 2019 10.22214/ijraset.2019.8053
  39. Hardware acceleration of multibody simulations for real-time embedded applications Multibody System Dynamics · Springer Science+Business Media · 2020 10.1007/s11044-020-09738-w
  40. Analysis of Tire Temperature Influence on Vehicle Dynamic Behaviour Using a 15 DOF Lumped-Parameter Full-Car Model Mechanisms and machine science · Springer Nature (Netherlands) · 2020 10.1007/978-3-030-48989-2_29
  41. Electronic Stability Control of Vehicles ITM Web of Conferences · EDP Sciences · 2020 10.1051/itmconf/20203201009
  42. Design of Understeer Characteristics Through Torque Vectoring on a Lumped-Parameter Full Vehicle Model Mechanisms and machine science · Springer Nature (Netherlands) · 2020 10.1007/978-3-030-55807-9_85
  43. EVALUATION OF VEHICLE LATERAL DYNAMIC BEHAVIOUR ACCORDING TO ISO-4138 TESTS BY IMPLEMENTING A 15-DOF VEHICLE MODEL AND AN AUTONOMOUS VIRTUAL DRIVER 2019
  44. Electronic stability program (ESP) Springer eBooks · Springer Nature · 2014 10.1007/978-3-658-03978-3_8
  45. Deleted Work 1955
  46. Fundamentals of Vehicle Dynamics SAE International eBooks · SAE International · 1992 10.4271/r-114