CN116204977A - A vehicle simulation model modeling method and examination judgment method - Google Patents

A vehicle simulation model modeling method and examination judgment method Download PDF

Info

Publication number
CN116204977A
CN116204977A CN202310065067.2A CN202310065067A CN116204977A CN 116204977 A CN116204977 A CN 116204977A CN 202310065067 A CN202310065067 A CN 202310065067A CN 116204977 A CN116204977 A CN 116204977A
Authority
CN
China
Prior art keywords
vehicle
speed
model
gear
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310065067.2A
Other languages
Chinese (zh)
Inventor
彭玉元
彭玉宝
詹可生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guilin University of Electronic Technology
Original Assignee
Guilin University of Electronic Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guilin University of Electronic Technology filed Critical Guilin University of Electronic Technology
Priority to CN202310065067.2A priority Critical patent/CN116204977A/en
Publication of CN116204977A publication Critical patent/CN116204977A/en
Priority to US18/517,142 priority patent/US20240242621A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/15Vehicle, aircraft or watercraft design
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B9/00Simulators for teaching or training purposes
    • G09B9/02Simulators for teaching or training purposes for teaching control of vehicles or other craft
    • G09B9/04Simulators for teaching or training purposes for teaching control of vehicles or other craft for teaching control of land vehicles
    • G09B9/042Simulators for teaching or training purposes for teaching control of vehicles or other craft for teaching control of land vehicles providing simulation in a real vehicle
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W40/00Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models
    • B60W40/10Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models related to vehicle motion
    • B60W40/105Speed
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W2710/00Output or target parameters relating to a particular sub-units
    • B60W2710/10Change speed gearings
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2119/00Details relating to the type or aim of the analysis or the optimisation
    • G06F2119/14Force analysis or force optimisation, e.g. static or dynamic forces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T90/00Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Business, Economics & Management (AREA)
  • Educational Administration (AREA)
  • Educational Technology (AREA)
  • Automation & Control Theory (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Mechanical Engineering (AREA)
  • Transportation (AREA)
  • Mathematical Physics (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a vehicle simulation model modeling method, namely an examination judging method, which comprises the following steps: acquiring actual parameters of the test vehicle, and modeling according to the actual data; importing the modeled vehicle model into a Unity3D project, and adding an automobile component to the model; setting automobile starting parameters, gear parameters, power system parameters, automobile state parameters, engine parameters, wind resistance calculation parameters and input coefficients for a vehicle model added with automobile components, simultaneously rewriting the applied drive and CarSpeed methods of the Unity3D to calculate the torque and the speed of the vehicle model, and then obtaining an examination vehicle simulation model. Compared with the prior art, the simulation method and the simulation device for the test vehicle realize the simulation of the test vehicle by establishing the simulation model of the test vehicle and setting corresponding parameters for the simulation model according to the specific data of the actual test vehicle, and the generated model is finer, so that the simulation result obtained by the simulation test is more accurate and the simulation effect is better.

Description

一种车辆模拟模型建模方法及考试判断方法A vehicle simulation model modeling method and examination judgment method

技术领域technical field

本发明涉及车辆模拟考试领域,更具体地,涉及一种车辆模拟模型建模方法及考试判断方法。The invention relates to the field of vehicle simulation examinations, and more specifically, to a vehicle simulation model modeling method and a test judgment method.

背景技术Background technique

随着科技的发展和网络的进步,人们可以通过网络来获取非常多的信息,但是还有很多技术性的知识需要人们实际操作来掌握,其中包括有汽车驾驶技术。对于汽车驾驶执照考试,虽然科目一等理论知识可以通过网络来进行学习,然而对于科目二和科目三等实操考试需要到考试场地实际操作来进行训练,导致不能随时随地的进行训练,同时非常浪费时间。现在,虽然也有很多线上的模拟考试的模拟训练设备,然而现在很多线上模拟考试训练的设备系统中,对于考试的车辆的建模以及车辆行驶的模拟不够精确,同时对于考试的场地的模拟也不够精准,并且考试的判定也很不准确,导致即使经过线上设备训练后在实际的操作时还是会出现很多的问题。With the development of science and technology and the advancement of the Internet, people can obtain a lot of information through the Internet, but there are still many technical knowledge that people need to master by actual operation, including car driving technology. For the driving license test, although the first-class theoretical knowledge of the subject can be learned through the Internet, but for the second-class and third-class practical exams, it is necessary to go to the test site for practical training, which makes it impossible to train anytime and anywhere. waste time. Now, although there are many online mock test simulation training equipment, but in many online mock test training equipment systems, the modeling of the test vehicle and the simulation of vehicle driving are not accurate enough, and the simulation of the test site is not accurate enough. It is not accurate enough, and the judgment of the test is also very inaccurate, resulting in many problems in actual operation even after online equipment training.

发明内容Contents of the invention

本发明旨在克服上述现有技术的至少一种缺陷,提供一种车辆模拟模型建模方法及考试判断方法,用于解决线上模拟考试训练模型不够精确以及考试判定不够精确的问题。The present invention aims to overcome at least one defect of the above-mentioned prior art, and provides a vehicle simulation model modeling method and a test judgment method, which are used to solve the problems of inaccurate online simulation test training model and inaccurate test judgment.

本发明采取的技术方案是:The technical scheme that the present invention takes is:

提供一种车辆模拟模型建模方法,所述建模方法包括:A vehicle simulation model modeling method is provided, the modeling method comprising:

S1:获取考试车辆的实际参数,并根据该实际数据进行建模;S1: Obtain the actual parameters of the test vehicle, and perform modeling according to the actual data;

S2:将建模好的车辆模型导入到Unity3D项目中,并为其添加汽车组件;S2: Import the modeled vehicle model into the Unity3D project, and add car components to it;

S3:为添加了汽车组件的车辆模型设置汽车启动参数、档位参数、动力系统参数、汽车状态参数、引擎参数和输入系数;S3: Set the vehicle start parameters, gear parameters, power system parameters, vehicle state parameters, engine parameters and input coefficients for the vehicle model with the vehicle components added;

S4:根据步骤S3中设置的参数为车辆模型设置速度计算相关方法,获得考试车辆模拟模型。S4: Set a speed calculation related method for the vehicle model according to the parameters set in step S3, and obtain a test vehicle simulation model.

通过获取考试车辆的实际数据来进行建模,并在Unity3D中为该模型设定各种详细的参数,使建立的考试车辆模拟模型更精细,使通过该考试车辆模拟模型进行模拟行驶时获取到的行驶数据更加精确。Modeling is carried out by obtaining the actual data of the test vehicle, and various detailed parameters are set for the model in Unity3D to make the established test vehicle simulation model more refined, so that the test vehicle simulation model can be used to simulate driving. The driving data is more accurate.

进一步的,所述步骤S2中汽车组件包括:车轮碰撞器、普通碰撞器和刚体组件;Further, the vehicle components in the step S2 include: wheel colliders, common colliders and rigid body components;

添加车轮碰撞器具体包括:在Unity3D中为车辆模型的车轮分别添加WheelCollider车轮碰撞组件;Adding a wheel collider specifically includes: adding WheelCollider wheel collision components to the wheels of the vehicle model in Unity3D;

添加普通碰撞器具体包括:在Unity3D中为车辆模型添加车头、车尾、车左、车右四个球形碰撞器,以及添加车身方形碰撞器;Adding a common collider specifically includes: adding four spherical colliders of the front, rear, left and right of the car to the vehicle model in Unity3D, and adding a square collider of the body;

添加刚体组件具体包括:在Unity3D中为车辆模型添加Rigidbody刚体组件,并根据考试车辆的实际参数数据设置质量Mass参数数值,勾选Rigidbody刚体组件的UseGravity应用重力选项。Adding a rigid body component specifically includes: adding a Rigidbody rigid body component to the vehicle model in Unity3D, setting the value of the mass Mass parameter according to the actual parameter data of the test vehicle, and checking the UseGravity application gravity option of the Rigidbody rigid body component.

为车辆模型添加对应部位碰撞器来对车辆进行模拟,使车辆的模拟更加的精细。同时添加刚体组件并以实际考试车辆的实际参数,具体为车重来设置质量Mass参数数值,并应用重力选项来模拟车辆的重量,进一步的提高车辆模拟的精细程度,使模拟的数据更精确和真实。Add corresponding part colliders to the vehicle model to simulate the vehicle, making the vehicle simulation more refined. At the same time, add rigid body components and use the actual parameters of the actual test vehicle, specifically the vehicle weight to set the value of the Mass parameter, and use the gravity option to simulate the weight of the vehicle, further improving the fineness of the vehicle simulation, making the simulated data more accurate and reality.

进一步的,所述步骤S3中的所述汽车启动参数包括:电源未接通状态、电源接通状态和启动汽车状态;Further, the vehicle starting parameters in the step S3 include: power off state, power on state and starting car state;

和/或,所述档位参数包括:手动档位参数和自动档位参数;And/or, the gear parameters include: manual gear parameters and automatic gear parameters;

其中,手动档位参数包括:空挡、一档、二档、三档、四档、五档和倒挡,所述自动档参数包括:停车档、前进档和倒车档;Wherein, the manual gear parameters include: neutral gear, first gear, second gear, third gear, fourth gear, fifth gear and reverse gear, and the automatic gear parameters include: parking gear, forward gear and reverse gear;

和/或,所述动力系统参数包括:车轮最大偏移角度、传动效率、制动踏板扭矩和制动曲线;And/or, the power system parameters include: maximum wheel deviation angle, transmission efficiency, brake pedal torque and braking curve;

和/或,所述汽车状态参数包括:各档位齿轮比、车轮扭矩、车辆各档位最小速度和最大速度、车辆各档位怠速和脚刹制动扭矩;And/or, the vehicle state parameters include: gear ratio of each gear, wheel torque, minimum speed and maximum speed of each gear of the vehicle, idle speed of each gear of the vehicle and foot brake torque;

和/或,所述汽车引擎参数包括:引擎最大转速、引擎最低转速、转速与输出功率关系曲线、曲线转速比例、怠速扭矩大小、转速提升极限、转速下降极限、降档减速加速度、引擎到车轮扭矩转换系数;And/or, the car engine parameters include: maximum engine speed, minimum engine speed, relationship curve between speed and output power, curve speed ratio, idling torque, speed increase limit, speed drop limit, downshift deceleration acceleration, engine to wheel Torque conversion factor;

和/或,所述输入系数包括:方向盘输入、离合输入、刹车输入、油门输入和手刹开关。And/or, the input coefficients include: steering wheel input, clutch input, brake input, accelerator input and handbrake switch.

为各个需要进行计算的部分都详细设置具体的参数对应,通过这些详细参数,使车辆的运动的计算更加精准,使模拟出的车辆更真实。其中汽车启动参数、档位参数和输入系数等是需要与外部设备进行匹配获得,动力系统参数、汽车状态参数和汽车引擎参数等是根据车辆的实际数据获得的。For each part that needs to be calculated, specific parameters are set in detail. Through these detailed parameters, the calculation of vehicle motion is more accurate, and the simulated vehicle is more realistic. Among them, the vehicle starting parameters, gear parameters and input coefficients need to be obtained by matching with external equipment, and the power system parameters, vehicle state parameters and vehicle engine parameters are obtained based on the actual data of the vehicle.

进一步的,所述步骤S3中的速度计算相关方法包括ApplyDrive方法;Further, the speed calculation related method in the step S3 includes the ApplyDrive method;

所述ApplyDrive方法具体为:The ApplyDrive method is specifically:

当当前车辆速度小于当前档位最小速度,计算车辆当前扭矩,将车辆当前扭矩平均分配给驱动车轮得到每个驱动车轮的前进扭矩,根据前进扭矩计算得到车辆刚体速度;When the current vehicle speed is less than the minimum speed of the current gear, the current torque of the vehicle is calculated, the current torque of the vehicle is evenly distributed to the driving wheels to obtain the forward torque of each driving wheel, and the rigid body speed of the vehicle is calculated according to the forward torque;

所述驱动车轮为车辆实际驱动车辆前进的车轮;The driving wheels are the wheels that the vehicle actually drives the vehicle forward;

所述车辆刚体速度为所述车辆模型的理论速度。The vehicle rigid body velocity is the theoretical velocity of the vehicle model.

进一步的,所述计算车辆当前扭矩具体为:Further, the calculation of the current torque of the vehicle is specifically:

车辆当前扭矩=怠速扭矩大小*当前档位齿轮比*传动效率*离合输入+当前引擎转速下的扭矩*油门输入*离合输入*传动效率;The current torque of the vehicle = idling torque * current gear ratio * transmission efficiency * clutch input + torque at the current engine speed * throttle input * clutch input * transmission efficiency;

所述当前引擎转速下的扭矩为根据汽车引擎参数计算得到。The torque at the current engine speed is calculated according to the vehicle engine parameters.

当前车辆速度初始以及车辆模型未启动时设置为0;The current vehicle speed is initially set to 0 when the vehicle model is not started;

在具体计算中的怠速扭矩大小和当前档位齿轮比,传动效率等为根据考试车辆的实际参数获取得到,在具体计算的时候能够考虑到实际车辆的具体情况,达到更真实的模拟的效果。车辆刚体速度为车辆模型的理论速度,在车辆未启动时,需要根据车轮的扭矩来进行计算,获得初始的车辆刚体速度,也就是车辆的起步速度,然后在逐渐提升的过程中也会同步的更新该车辆刚体速度。The idling torque, current gear ratio, transmission efficiency, etc. in the specific calculation are obtained according to the actual parameters of the test vehicle, and the specific conditions of the actual vehicle can be considered in the specific calculation to achieve a more realistic simulation effect. The vehicle rigid body speed is the theoretical speed of the vehicle model. When the vehicle is not started, it needs to be calculated according to the torque of the wheels to obtain the initial vehicle rigid body speed, which is the starting speed of the vehicle, and then it will be synchronized during the gradual increase. Update the vehicle rigidbody velocity.

进一步的,所述步骤S3中的速度计算相关方法还包括CarSpeed方法;Further, the speed calculation related method in the step S3 also includes the CarSpeed method;

所述CarSpeed方法具体为:The CarSpeed method is specifically:

获取车辆刚体速度的归一化;Obtain the normalization of the vehicle rigid body velocity;

计算当前档位最低限速,所述当前档位最低限速=(当前档位最大速度-当前档位最低速度)*油门输入+当前档位怠速;Calculating the minimum speed limit of the current gear position, the minimum speed limit of the current gear position=(maximum speed of the current gear position-minimum speed of the current gear position)*throttle input+idle speed of the current gear position;

当所述车辆刚体速度的数值大于当前档位最大速度时,计算当前车辆速度,具体为:When the value of the rigid body speed of the vehicle is greater than the maximum speed of the current gear, the current vehicle speed is calculated, specifically:

当前车辆速度=当前档位最大速度*车辆刚体速度的归一化;并更新车辆刚体速度为当前车辆速度;The current vehicle speed = the maximum speed of the current gear * the normalization of the vehicle rigid body speed; and update the vehicle rigid body speed to the current vehicle speed;

当所述车辆刚体速度的数值大于当前档位最低限速且小于当前档位最大速度时,定义中间速度speedVal,所述speedVal的计算公式为:车辆刚体速度数值-降档减速加速度*时间;所述时间为最后一帧到当前帧的间隔,单位为秒;当前车辆速度=speedVal大于0时的值*车辆刚体速度的归一化;并更新车辆刚体速度为当前车辆速度;When the value of the rigid body speed of the vehicle is greater than the minimum speed limit of the current gear and less than the maximum speed of the current gear, the intermediate speed speedVal is defined, and the calculation formula of the speedVal is: vehicle rigid body speed value-downshift deceleration acceleration*time; Said time is the interval from the last frame to the current frame, and the unit is second; the current vehicle speed=value when speedVal is greater than 0*the normalization of the vehicle rigid body speed; and update the vehicle rigid body speed to be the current vehicle speed;

然后计算车辆当前标准化速度,具体为,车辆标准化速度车辆当前速度*3.6,将车辆当前速度标准化为单位km/h。获取车辆刚体速度的归一化方法为使用Unity3D中的normalized方法,将车辆刚体速度的归一化为一个带有方向的向量,则以车辆刚体速度的归一化进行计算获得到的当前车辆速度与车辆刚体速度的方向相同。同时由于之前的时间计算单位为秒,而车辆的速度单位通常以km/h为主,所以在计算后需要对当前车辆速度进行标准化处理,将当前车辆速度的单位转换为km/h,得到车辆当前标准化速度。另外,为了模拟车辆的行驶过程,定义了一个当前档位最低限速,当前档位最低限速的计算公式为:当前档位最低限速=(当前档位最大速度-当前档位最低速度)*油门输入+当前档位怠速,也就是说,当没有油门输入时,车辆模型的刚体速度会减少,但是受到当前档位最低限速限制,会被限制为当前档位怠速,而当有油门输入时,即使车辆模型减速,刚体速度减少,也会被限制到最低为:(当前档位最大速度-当前档位最低速度)*油门输入+当前档位怠速。Then calculate the current normalized speed of the vehicle, specifically, the normalized speed of the vehicle*3.6, and normalize the current speed of the vehicle into a unit of km/h. The normalized method to obtain the vehicle rigid body speed is to use the normalized method in Unity3D to normalize the vehicle rigid body speed into a vector with direction, then calculate the current vehicle speed obtained by normalizing the vehicle rigid body speed Same direction as the vehicle rigid body velocity. At the same time, since the previous time calculation unit is seconds, and the vehicle speed unit is usually km/h, it is necessary to standardize the current vehicle speed after calculation, and convert the current vehicle speed unit to km/h to obtain the vehicle The current normalized velocity. In addition, in order to simulate the driving process of the vehicle, a minimum speed limit of the current gear is defined, and the calculation formula of the minimum speed limit of the current gear is: minimum speed limit of the current gear = (maximum speed of the current gear - minimum speed of the current gear) *Throttle input + current gear idle speed, that is to say, when there is no throttle input, the rigid body speed of the vehicle model will decrease, but it will be limited to the current gear idle speed due to the minimum speed limit of the current gear, and when there is throttle When inputting, even if the vehicle model decelerates, the speed of the rigid body decreases, and it will be limited to the minimum: (maximum speed of the current gear - minimum speed of the current gear) * throttle input + idle speed of the current gear.

本发明还提供一种车辆模拟考试判断方法,使用上述所述的一种车辆模拟模型建模方法建立的考试车辆模拟模型,所述方法包括:The present invention also provides a method for judging a vehicle simulation test, using the test vehicle simulation model established by the above-mentioned vehicle simulation model modeling method, the method comprising:

A1:根据真实的考试场景来建立初始考试场景模型并导入到Unity3D中;A1: Create an initial test scene model based on the real test scene and import it into Unity3D;

A2:使用所述车辆模拟模型建模方法根据考试车辆的信息建立考试车辆模拟模型;A2: use the vehicle simulation model modeling method to establish a test vehicle simulation model according to the information of the test vehicle;

A3:根据不同的考试项目,设置考试项目的规则;A3: According to different test items, set the rules of the test items;

A4:根据考试项目的规则来为初始考试场景模型设置规则触发器和判定规则,生成模拟考试场景模型;A4: Set rule triggers and judgment rules for the initial test scenario model according to the rules of the test item, and generate a simulated test scenario model;

A5:将设置好规则触发器和判定规则的模拟考试场景模型和考试车辆模拟模型导入到外部的汽车模拟设备的系统中,并使考试车辆模拟模型与汽车模拟设备中的操作设备进行匹配,建立所述操作设备的操作数据和考试车辆模拟模型的模拟数据的转换规则;A5: Import the simulated test scene model and the test vehicle simulation model with set rule triggers and judgment rules into the external car simulation equipment system, and match the test vehicle simulation model with the operating equipment in the car simulation device to establish The conversion rules of the operation data of the operation equipment and the simulation data of the test vehicle simulation model;

A6:终端用户通过所述操作设备输入操作数据,汽车模拟设备根据所述转换规则将操作数据转换为考试车辆模拟模型的模拟数据;A6: The terminal user inputs the operation data through the operation device, and the vehicle simulation device converts the operation data into the simulation data of the test vehicle simulation model according to the conversion rule;

A7:汽车模拟设备根据所述模拟数据驱动考试车辆模拟模型在模拟考试场景模型中运行,并依据规则触发器和判定规则来判定成绩。A7: The car simulation device drives the test vehicle simulation model to run in the simulated test scene model according to the simulated data, and judges the result according to the rule trigger and the judgment rule.

通过采用真实的考试场景来建立初始场景模型,使模拟考试能够尽量还原现实的考试环境,获得更真实的现场感与真实感。并根据考试的项目来对初始场景模型设置规则触发器和判定规则获得模拟场景模型,同时导入设置好的考试车辆模拟模型到汽车模拟设备上,车辆模拟模型中已经设置好各种参数,汽车模拟设备上对应设置有模拟驾驶需要的各种操作设备,如方向盘和油门等,将这些操作设备与车辆模拟模型进行匹配,并为操作设备输入的操作数据和考试车辆模拟模型的模拟数据建立转换规则,如操作设备的方向盘的旋转角度与考试车辆模拟模型的方向盘输入转换规则;建立好规则后,可以通过操作操作设备,向汽车模拟设备发送操作数据,然后汽车模拟设备根据操作数据来转换为考试车辆模拟模型的模拟数据,考试车辆模拟模型根据模拟数据在模拟考试场景模型中进行模拟行驶,然后在行驶过程中通过规则触发器反馈的数据根据判断规则来对终端用户判定成绩。通过详细设置各种参数的考试车辆模拟模型,并为其设置一套与汽车模拟设备的转换规则,使模拟考试的判断标准更详细,获得的结果也更精确。By using the real test scene to establish the initial scene model, the simulated test can restore the realistic test environment as much as possible, and obtain a more realistic sense of presence and reality. And according to the test items, set rule triggers and judgment rules for the initial scene model to obtain the simulation scene model, and import the set test vehicle simulation model to the car simulation device at the same time. Various parameters have been set in the car simulation model. Car simulation The equipment is equipped with various operating equipment required for driving simulation, such as steering wheel and accelerator, etc. These operating equipment are matched with the vehicle simulation model, and conversion rules are established for the operation data input by the operating equipment and the simulation data of the test vehicle simulation model , such as the rotation angle of the steering wheel of the operating device and the steering wheel input conversion rules of the test vehicle simulation model; after the rules are established, the operation data can be sent to the vehicle simulation device by operating the operation device, and then the vehicle simulation device converts the test data according to the operation data. The simulation data of the vehicle simulation model, the test vehicle simulation model performs simulated driving in the simulated test scene model according to the simulated data, and then judges the score of the end user according to the judgment rules based on the data fed back by the rule trigger during the driving process. By setting the test vehicle simulation model with various parameters in detail, and setting a set of conversion rules with the vehicle simulation equipment, the judgment standard of the simulation test is more detailed and the obtained results are more accurate.

进一步的,所述根据真实的考试场景来建立初始考试场景模型具体为:Further, the establishment of the initial test scene model according to the real test scene is specifically:

通过航拍建模或倾斜摄影技术对现实的考试场景进行采样,并利用Maya3D对采样结果进行处理和优化,获得与实际场景环境布局一致的初始考试场景模型。Sampling the actual test scene through aerial photography modeling or oblique photography technology, and using Maya3D to process and optimize the sampling results to obtain the initial test scene model consistent with the actual scene environment layout.

采用现实考场进行真实环境采样,同时建立与实际场景环境布局一致的模型,使建立的模型更真实,让考试的判定更精确。The actual test room is used to sample the real environment, and a model consistent with the layout of the actual scene environment is established at the same time, so that the established model is more realistic and the judgment of the test is more accurate.

进一步的,所述设置规则触发器具体步骤包括:Further, the specific steps of setting a rule trigger include:

A41:在Unity3D中使用Cube来建立立方体模型;A41: Use Cube in Unity3D to build a cube model;

A42:为所建立的立方体模型添加碰撞器组件;A42: Add collider components to the created cube model;

A43:在Unity3D中设置立方体模型属性为触发器,使立方体模型形成标准触发器;A43: Set the cube model property as a trigger in Unity3D, so that the cube model forms a standard trigger;

A44:将初始考试场景模型中需要进行规则判定的位置标记为触发点;A44: Mark the position in the initial test scenario model that requires rule judgment as a trigger point;

A45:在每个触发点通过A41-A43的步骤分别设置多个所述标准触发器;A45: setting multiple standard triggers respectively through the steps of A41-A43 at each trigger point;

A46:根据考试项目的规则和初始考试场景模型中的场景为每个标准触发器设置参数和规则,使标准触发器形成规则触发器。A46: Set parameters and rules for each standard trigger according to the rules of the test item and the scenarios in the initial test scenario model, so that the standard triggers form rule triggers.

进一步的,所述分别设置多个所述标准触发器具体包括:在模拟考试场景模型中的每个触发点处,在触发点进行规则判定的开始、过程和结束位置分别设置所述标准触发器;Further, said respectively setting a plurality of said standard triggers specifically includes: at each trigger point in the simulated test scenario model, respectively setting said standard triggers at the start, process and end positions of the rule judgment at the trigger point ;

其中在开始处和结束处分别设置一个标准触发器,在过程处设置一个或若干个标准触发器。One standard trigger is set at the beginning and the end respectively, and one or several standard triggers are set at the process.

在模拟考试场景模型上,每个需要进行规则判定的位置的开始、过程和结束位置设置标准触发器,设置在开始位置的标准触发器用于判断判定项目的开始,设置在结束位置的标准触发器用于判断判定项目的结束,设置在过程处的标准触发器用于设置具体的规则,并根据实际情况设置一个或多个来进行规则的判定。详细到每一个需要进行判定的位置,并根据位置设置具体的规则,使判定更加精细,进一步提高判定结果。On the simulated test scene model, standard triggers are set at the start, process and end positions of each position that needs to be ruled. The standard trigger set at the start position is used to judge the start of the judgment item, and the standard trigger set at the end position is used At the end of the judging and judging project, the standard triggers set at the process are used to set specific rules, and one or more are set according to the actual situation to judge the rules. It is detailed to each location that needs to be judged, and specific rules are set according to the location to make the judgment more refined and further improve the judgment result.

为每个标准触发器设置参数包括位置Position数据和缩放Scale数据。依据位置Position数据和缩放Scale数据可以设置标准触发器的位置、高度和大小。Setting parameters for each standard trigger includes Position data and Scale data. The position, height and size of the standard trigger can be set according to the Position data and the Scale data.

其中所述判定规则包括预设判定规则;Wherein the determination rules include preset determination rules;

所述预设判定规则包括:限速规则、车灯规则、压线规则和熄火规则。The preset judgment rules include: speed limit rules, vehicle light rules, line pressure rules and flameout rules.

另外,所述判定规则还包括考试判断规则;In addition, the judgment rules also include examination judgment rules;

所述考试判定规则包括根据考试项目设置的规则。The examination determination rules include rules set according to examination items.

与现有技术相比,本发明的有益效果为:Compared with prior art, the beneficial effect of the present invention is:

1.本发明通过对考试车辆进行数据的采集,以此来进行建模,并对模型进一步的设置各种详细的参数,实现对考试车辆的更精细的仿真模拟,以达到提高模拟测试的精度的效果。1. The present invention carries out modeling by collecting the data of the test vehicle, and further sets various detailed parameters to the model, so as to realize a finer simulation of the test vehicle, so as to improve the accuracy of the simulation test Effect.

2.本发明通过实拍考试场景建模,对每一个需要进行判定的位置设置规则触发器,并且根据判定开始、过程和结束分别设置规则触发器进行判断,同时在过程的规则触发器中设置判断的详细规则,进一步的提高了判断精准度。2. The present invention sets rule triggers for each location that needs to be judged by modeling real-time exam scenes, and sets rule triggers for judgment according to the start, process, and end of the judgment, and sets the rule triggers in the process at the same time. The detailed rules of judgment further improve the accuracy of judgment.

3.本发明将显示的汽车模拟设备的操作设备与考试车辆模拟模型之间建立转换规则,能够获取到考试车辆模型的更详细的数据信息,进一步的提高判断的准确度和扩大判断的范围。3. The present invention establishes conversion rules between the operating equipment of the displayed automobile simulation equipment and the test vehicle simulation model, can obtain more detailed data information of the test vehicle model, further improve the accuracy of judgment and expand the scope of judgment.

附图说明Description of drawings

图1为本发明的实施例1的步骤流程图。Fig. 1 is a flowchart of the steps of Embodiment 1 of the present invention.

图2为本发明的实施例2的步骤流程图1。Fig. 2 is a flow chart 1 of the steps of Embodiment 2 of the present invention.

图3为本发明的实施例3的步骤流程图2。FIG. 3 is a flow chart 2 of the steps of Embodiment 3 of the present invention.

具体实施方式Detailed ways

本发明附图仅用于示例性说明,不能理解为对本发明的限制。为了更好说明以下实施例,附图某些部件会有省略、放大或缩小,并不代表实际产品的尺寸;对于本领域技术人员来说,附图中某些公知结构及其说明可能省略是可以理解的。The accompanying drawings of the present invention are only for illustrative purposes, and should not be construed as limiting the present invention. In order to better illustrate the following embodiments, some components in the drawings will be omitted, enlarged or reduced, and do not represent the size of the actual product; for those skilled in the art, some known structures and their descriptions in the drawings may be omitted. understandable.

实施例1Example 1

如图1所示,本实施例提供一种车辆模拟模型建模方法,所述建模方法包括:As shown in Figure 1, this embodiment provides a vehicle simulation model modeling method, the modeling method includes:

S1:获取考试车辆的实际数据,并根据该实际数据进行建模;S1: Obtain the actual data of the test vehicle, and perform modeling based on the actual data;

S2:将建模好的车辆模型导入到Unity3D项目中,并为其添加汽车组件;S2: Import the modeled vehicle model into the Unity3D project, and add car components to it;

在本步骤中添加的汽车组件中包括:车轮碰撞器、普通碰撞器和刚体组件;The car components added in this step include: wheel collider, common collider and rigid body component;

其中添加车轮碰撞器具体为,在Unity3D中为车辆模型的车轮分别添加WheelCollider车轮碰撞组件,达到模仿车轮运动的效果;同时,为车辆模型添加了车轮碰撞器还使每个车车轮具体化,可以通过调用Unity3D的WheelCollider API来为车轮设置具体的变量和参数,如motorTorque变量、steerAngle变量、breakTorque变量和rpm变量;motorTorque变量为车轮的轮轴上的电机扭矩,即前进扭矩,用于调整车轮的转动;steerAngle为车轮的转向角度,用于调整车轮的转向,具体需要与输入进行匹配;breakTorque变量为制动扭矩,用于车辆模型的刹车;rpm变量为车轮的每分钟转速,该参数可以用来计算车辆模型的速度。Adding a wheel collider is specifically adding WheelCollider wheel collision components to the wheels of the vehicle model in Unity3D to achieve the effect of simulating wheel movement; at the same time, adding a wheel collider to the vehicle model also makes each car wheel concrete, which can Set specific variables and parameters for the wheels by calling the WheelCollider API of Unity3D, such as motorTorque variables, steerAngle variables, breakTorque variables and rpm variables; the motorTorque variable is the motor torque on the axle of the wheel, that is, the forward torque, which is used to adjust the rotation of the wheel ;steerAngle is the steering angle of the wheel, which is used to adjust the steering of the wheel, and it needs to be matched with the input; the variable breakTorque is the braking torque, which is used for the braking of the vehicle model; the variable rpm is the rotational speed of the wheel, which can be used to Calculate the velocity of the vehicle model.

添加普通碰撞器具体为,在Unity3D中为车辆模型添加车头、车尾、车左和车右四个球形碰撞器,以及为车身添加方形碰撞器,为车辆模型添加物理碰撞判定基础;Adding a common collider is specifically adding four spherical colliders of the front, rear, left and right of the vehicle to the vehicle model in Unity3D, and adding a square collider to the body to add a physical collision judgment basis for the vehicle model;

添加刚体组件具体为,在Unity3D中为车辆模型添加Rigidbody刚体组件,并根据考试车辆的实际参数数据设置质量Mass参数数值,保持其余参数不变,同时勾选Rigidbody刚体组件的Use Gravity应用重力选项,模拟车辆的重量,使其在运行中具有更好的物理效果,进而获得更好的模拟仿真效果。To add a rigid body component is to add a Rigidbody rigid body component to the vehicle model in Unity3D, and set the mass Mass parameter value according to the actual parameter data of the test vehicle, keep the other parameters unchanged, and check the Use Gravity application gravity option of the Rigidbody rigid body component, Simulate the weight of the vehicle so that it has better physics in operation for better simulation results.

S3:为添加了汽车组件的车辆模型设置汽车启动参数、档位参数、动力系统参数、汽车状态参数、引擎参数和输入系数;S3: Set the vehicle start parameters, gear parameters, power system parameters, vehicle state parameters, engine parameters and input coefficients for the vehicle model with the vehicle components added;

在本步骤中,为车辆模型设置了很多参数,其中:In this step, many parameters are set for the vehicle model, among which:

汽车启动参数包括:电源未接通状态、电源接通状态和启动汽车状态,模拟汽车启动的过程状态作为考试判定的依据。The starting parameters of the car include: the power off state, the power on state and the starting car state, and the simulated car starting process state is used as the basis for the test judgment.

和/或,所述档位参数包括:手动档位参数和自动档位参数;And/or, the gear parameters include: manual gear parameters and automatic gear parameters;

其中,手动档位参数包括:空挡、一档、二档、三档、四档、五档和倒挡,所述自动档参数包括:停车档、前进档和倒车档;Wherein, the manual gear parameters include: neutral gear, first gear, second gear, third gear, fourth gear, fifth gear and reverse gear, and the automatic gear parameters include: parking gear, forward gear and reverse gear;

具体的,上述参数需要从外部设备中获取实际的参数并对其赋值,如外部设备中是否接通电源,来为电源未接通状态和电源接通状态赋值,在电源接通后是否启动车辆来为启动汽车状态赋值,然后在启动过程中外部设备的挂挡情况,分别为手动档参数中的对应档位或自动档参数中的对应档位进行赋值。值得注意的是,在本实施例中,所述外部设备为现有技术中任一种,具备完整的模拟车辆操作过程以及支持Unity3D的操作系统的外部模拟设备。Specifically, the above parameters need to obtain actual parameters from external devices and assign values to them, such as whether the external device is powered on to assign values for the power off state and the power on state, and whether to start the vehicle after the power is turned on To assign a value to the starting state of the car, and then to assign a value to the corresponding gear in the manual gear parameter or the corresponding gear in the automatic gear parameter in the gearing situation of the external device during the starting process. It should be noted that, in this embodiment, the external device is any one in the prior art, which has a complete simulated vehicle operation process and an external simulation device that supports the Unity3D operating system.

和/或,所述动力系统参数包括:车轮最大偏移角度、传动效率、制动踏板扭矩和制动曲线;具体的,车轮最大偏移角度每台车辆都不一样,需要根据考试车辆的实际参数数据进行设置,结合上述中的steerAngle变量进行使用,控制车辆的转向。传动效率参数主要为模拟实际车辆的变速箱的传动效率,所以需要根据考试车辆得到实际参数来进行设置;制动踏板扭矩和制动曲线主要用于模拟车辆的刹车,需要与具体的输入结合,但是本身需要根据考试车辆的实际参数数据进行设置,制动曲线则反映了车辆的制动能力。And/or, the power system parameters include: the maximum wheel deviation angle, transmission efficiency, brake pedal torque and braking curve; specifically, the maximum wheel deviation angle is different for each vehicle, and needs to be determined according to the actual situation of the test vehicle. Set the parameter data and use it in conjunction with the above-mentioned steerAngle variable to control the steering of the vehicle. The transmission efficiency parameter is mainly to simulate the transmission efficiency of the gearbox of the actual vehicle, so it needs to be set according to the actual parameters obtained from the test vehicle; the brake pedal torque and braking curve are mainly used to simulate the braking of the vehicle and need to be combined with specific inputs. But it needs to be set according to the actual parameter data of the test vehicle, and the braking curve reflects the braking ability of the vehicle.

和/或,所述汽车状态参数包括:各档位齿轮比、车辆当前扭矩、车辆各档位最小速度和最大速度、车辆各档位怠速和脚刹制动扭矩;And/or, the vehicle state parameters include: the gear ratio of each gear, the current torque of the vehicle, the minimum speed and the maximum speed of each gear of the vehicle, the idle speed of each gear of the vehicle, and the foot brake torque;

和/或,所述汽车引擎参数包括:引擎最大转速、引擎最低转速、转速与输出功率关系曲线、曲线转速比例、怠速扭矩大小、转速提升极限、转速下降极限、降档减速加速度、引擎到车轮扭矩转换系数;其中曲线转速比例包括功率与RPM曲线Rpm比例和功率与PRM曲线扭矩比例;汽车状态参数与汽车引擎参数用于计算车辆在各个档位下的速度或制动情况,采用详细的计算数据,使采用本实施例模拟的车辆进行模拟考试获得的结果更真实。And/or, the car engine parameters include: maximum engine speed, minimum engine speed, relationship curve between speed and output power, curve speed ratio, idling torque, speed increase limit, speed drop limit, downshift deceleration acceleration, engine to wheel Torque conversion coefficient; the speed ratio of the curve includes the Rpm ratio of the power and RPM curve and the torque ratio of the power and PRM curve; the vehicle state parameters and vehicle engine parameters are used to calculate the speed or braking of the vehicle in each gear, using detailed calculations data, so that the results obtained by using the simulated vehicle of this embodiment to carry out the simulated test are more realistic.

和/或,所述输入系数包括:方向盘输入、离合输入、刹车输入、油门输入和手刹开关。And/or, the input coefficients include: steering wheel input, clutch input, brake input, accelerator input and handbrake switch.

具体的,终端用户通过操作外部设备上对应的操作设备,如方向盘,离合和刹车等,外部设备将操作转换为操作数据,为了方便理解,简单的将操作数据以简单数值的方式表现,如将方向盘旋转角度转换为(-1,1),将方向盘向左打满为-1,向右打满为1;离合的输入转换为(0,1),离合没有踩为0,离合踩满为1;刹车的输入范围转换为(0,1),刹车没有踩为0,刹车踩满为1;油门的输入转换为(0,1),油门没有踩为0,油门踩满为1;手刹开关关闭为0,手刹开关打开为1;并将数值范围与考试车辆模拟模型中的输入系数中对应参数进行匹配。在本实施例中,当接收到外部设备输入的操作数据后,根据操作数据获得对应的输入系数。Specifically, the end user operates the corresponding operating device on the external device, such as the steering wheel, clutch and brake, etc., and the external device converts the operation into operation data. In order to facilitate understanding, the operation data is simply expressed in the form of simple values, such as The rotation angle of the steering wheel is converted to (-1, 1). Turning the steering wheel fully to the left is -1, and fully turning the steering wheel to the right is 1; the input of the clutch is converted to (0,1). 1; The input range of the brake is converted to (0,1), the brake is not stepped on to 0, the brake is fully stepped on is 1; the accelerator input is converted to (0,1), the accelerator is not stepped on to 0, and the accelerator is fully stepped to 1; handbrake When the switch is off, it is 0, and when the handbrake switch is on, it is 1; and the value range is matched with the corresponding parameters in the input coefficients in the test vehicle simulation model. In this embodiment, after receiving the operation data input by the external device, the corresponding input coefficient is obtained according to the operation data.

在设置好参数后,进行下一步骤的操作:After setting the parameters, proceed to the next step:

S4:根据步骤S3中设置的参数为车辆模型设置速度计算相关方法,获得考试车辆模拟模型。S4: Set a speed calculation related method for the vehicle model according to the parameters set in step S3, and obtain a test vehicle simulation model.

速度计算相关方法包括ApplyDrive方法和CarSpeed方法。Methods related to speed calculation include an ApplyDrive method and a CarSpeed method.

其中ApplyDrive方法具体为:The ApplyDrive method is specifically:

首先获取当前车辆速度,当前车辆速度初始和当车辆模型未启动时设置为0,然后与车辆模型的当前档位最小速度进行比较,当当前车辆速度小于当前档位最小速度时,计算车辆当前扭矩,该情况一般发生在车辆启动或提档时;之后将车辆当前扭矩平均分配给驱动车轮得到每个驱动车轮的前进扭矩,车辆一般分为前驱、后驱和四驱,此处根据考试车辆的实际类型将车辆当前扭矩均分给具体的驱动车轮,当为前驱时则将车辆当前扭矩除以2后分配给前轮的motorTorque参数,即前进扭矩,当为后驱是则将车辆当前扭矩除以2后分配给后轮的前进扭矩,当为四驱时则将车辆当前扭矩除以4后分配给各个车轮的前进扭矩;再根据前进扭矩计算得到车辆刚体速度;First obtain the current vehicle speed, the current vehicle speed is initially set to 0 when the vehicle model is not started, and then compared with the minimum speed of the current gear of the vehicle model, when the current vehicle speed is less than the minimum speed of the current gear, calculate the current torque of the vehicle , this situation generally occurs when the vehicle starts or shifts up; then the current torque of the vehicle is evenly distributed to the driving wheels to obtain the forward torque of each driving wheel. Vehicles are generally divided into front-wheel drive, rear-wheel drive and four-wheel drive. The actual type distributes the current torque of the vehicle equally to the specific driving wheels. When it is a front drive, divide the current torque of the vehicle by 2 and distribute it to the motorTorque parameter of the front wheels, that is, the forward torque. When it is a rear drive, divide the current torque of the vehicle by The forward torque distributed to the rear wheels after 2, when it is four-wheel drive, divide the current torque of the vehicle by 4 and distribute the forward torque to each wheel; then calculate the rigid body speed of the vehicle according to the forward torque;

其中计算车辆当前扭矩具体为:The calculation of the current torque of the vehicle is specifically:

车辆当前扭矩=怠速扭矩大小*当前档位齿轮比*传动效率*离合输入+当前引擎转速下的扭矩*油门输入*离合输入*传动效率;The current torque of the vehicle = idling torque * current gear ratio * transmission efficiency * clutch input + torque at the current engine speed * throttle input * clutch input * transmission efficiency;

上述参数中,怠速扭矩大小、当前档位齿轮比、传动效率为根据考试车辆的实际参数数据设置可得,离合输入和油门输入为外部设备的操作数据转换得到,当前引擎转速下的扭矩需要进行具体的计算,具体的计算方式为:Among the above parameters, the idle torque, the current gear ratio, and the transmission efficiency can be set according to the actual parameter data of the test vehicle. The clutch input and throttle input are converted from the operation data of the external equipment. The torque at the current engine speed needs to be adjusted. The specific calculation, the specific calculation method is:

当前引擎转速下的扭矩为:将当前引擎转速除以功率与转速曲线Rpm的比例数值,将得到的结果带入到转速与输出功率曲线中,在将得到的数值乘功率与转速曲线扭矩比例,再乘引擎到车轮扭矩转换系数,最终的到当前引擎转速下的扭矩。当前引擎转速在车辆模型未启动时为0,而在车辆模型刚启动时被赋予初始值,在本实施例中赋予初始值为1000,然后会通过ApplyDrive方法来获得新数值。The torque at the current engine speed is: divide the current engine speed by the ratio value of the power and speed curve Rpm, bring the result into the speed and output power curve, multiply the obtained value by the torque ratio of the power and speed curve, Multiply this by the engine-to-wheel torque conversion factor to get the torque at the current engine speed. The current engine speed is 0 when the vehicle model is not started, and is given an initial value when the vehicle model is just started, in this embodiment, the initial value is 1000, and then a new value will be obtained through the ApplyDrive method.

另外,在车辆当前扭矩的计算中,当车辆模型的档位参数为自动档时,其中的离合输入的数值固定位1,当车辆模型的档位参数为手动档时,其中的离合输入根据外部设备的离合踏板转换而成的(0,1)之间的数值进行计算。In addition, in the calculation of the current torque of the vehicle, when the gear parameter of the vehicle model is automatic, the value of the clutch input is fixed at 1; when the gear parameter of the vehicle model is manual, the clutch input is based on the external The value between (0,1) converted from the clutch pedal of the device is calculated.

在获得车辆当前扭矩后,可以根据当前的扭矩获得车轮的转速,进而获得车辆刚体速度。After obtaining the current torque of the vehicle, the rotation speed of the wheel can be obtained according to the current torque, and then the vehicle rigid body velocity can be obtained.

另外,在ApplyDrive方法中,还会获取到车辆模型的刹车输入和手刹开关的状态,来实现刹车的模拟,具体的,当外部设备踩下脚刹时,ApplyDrive方法获取到外部设备的脚刹踏板的制动踏板扭矩(操作数据),根据制动踏板扭矩来计算脚刹制动扭矩,脚刹制动扭矩=制动踏板扭矩*刹车输入,再将脚刹制动扭矩数值赋给每个车轮碰撞器的brakeTorque参数上,使车辆减速或停止;而手刹开关与刹车输入类似,手刹开关为开和关两个状态,将脚刹制动扭矩的最大值乘手刹开关状态值(0或1),再将得到的数值赋给每个车轮碰撞器的brakeTorque参数上,使车辆停止。In addition, in the ApplyDrive method, the brake input of the vehicle model and the state of the handbrake switch are also obtained to realize the simulation of the brake. Specifically, when the external device steps on the foot brake, the ApplyDrive method obtains the foot brake pedal of the external device. Brake pedal torque (operation data), calculate the foot brake torque according to the brake pedal torque, foot brake torque = brake pedal torque * brake input, and then assign the foot brake torque value to each wheel collision The brakeTorque parameter of the foot brake is used to slow down or stop the vehicle; the handbrake switch is similar to the brake input, the handbrake switch is in two states of on and off, and the maximum value of the brake torque of the foot brake is multiplied by the state value of the handbrake switch (0 or 1). Then assign the obtained value to the brakeTorque parameter of each wheel collider to stop the vehicle.

进一步的,ApplyDrive方法中还能获取到车辆模型的方向盘输入,来实现转向的模拟,具体的,当外部设备操作方向盘时,将现在方向盘的旋转角度与最大旋转角度的比值*方向盘输入,在将得到的结果赋给每个车轮碰撞器的steerTorque参数,是汽车实现转向。Furthermore, the ApplyDrive method can also obtain the steering wheel input of the vehicle model to realize the steering simulation. Specifically, when the external device operates the steering wheel, the ratio of the current steering wheel rotation angle to the maximum rotation angle*steering wheel input is used in the future The obtained result is assigned to the steerTorque parameter of each wheel collider, which is the steering of the car.

除了设置ApplyDrive方法外,本实施例还设置了CarSpeed方法,具体为:In addition to setting the ApplyDrive method, this embodiment also sets the CarSpeed method, specifically:

首先获取车辆刚体速度的归一化;具体使用Unity3D中的normalized方法,将车辆刚体速度归一化为一个具有方向的向量,之后以该车辆刚体速度的归一化进行计算所得到的速度方向与车辆刚体速度相同;First obtain the normalization of the vehicle rigid body velocity; specifically use the normalized method in Unity3D to normalize the vehicle rigid body velocity into a vector with direction, and then calculate the speed direction obtained by normalizing the vehicle rigid body velocity and The speed of the rigid body of the vehicle is the same;

然后再定义一个当前档位最低限速,当前档位最低限速用于限制车辆模型在运行时在当前档位的最低限速,当前档位最低限速的计算具体为:当前档位最低限速=(当前档位最大速度-当前档位最低速度)*油门输入+当前档位怠速;当前档位最低限速受油门输入的影响。Then define a minimum speed limit for the current gear. The minimum speed limit for the current gear is used to limit the minimum speed limit of the vehicle model in the current gear during operation. The calculation of the minimum speed limit for the current gear is specifically: the minimum speed limit for the current gear Speed = (maximum speed of the current gear - minimum speed of the current gear) * throttle input + idle speed of the current gear; the minimum speed of the current gear is affected by the throttle input.

当所述车辆刚体速度的数值大于当前档位最大速度时,计算当前车辆速度,具体为:When the value of the rigid body speed of the vehicle is greater than the maximum speed of the current gear, the current vehicle speed is calculated, specifically:

当前车辆速度=当前档位最大速度*车辆刚体速度的归一化;并更新车辆刚体速度为当前车辆速度;相当于当前车辆速度不能超过当前档位的最大速度。The current vehicle speed = the maximum speed of the current gear * the normalization of the vehicle rigid body speed; and update the vehicle rigid body speed to the current vehicle speed; it is equivalent to the current vehicle speed cannot exceed the maximum speed of the current gear.

当所述车辆刚体速度的数值大于当前档位最低限速且小于当前档位最大速度时,定义中间速度speedVal,所述speedVal的计算公式为:车辆刚体速度-降档减速加速度*时间;所述时间为最后一帧到当前帧的间隔,单位为秒;当前车辆速度=speedVal大于0时的值*车辆刚体速度的归一化;并更新车辆刚体速度为当前车辆速度;根据上述的设置的ApplyDrive方法的计算,当油门输入降低时,车辆当前扭矩减小,车辆刚体速度降低,即车辆模型在当前档位的速度受油门输入的影响,所以定义speedVal来模拟车辆在这一阶段减速的过程;但是当车辆运行时,即使没有油门输入,车辆也是不会直接停止运行的,为了进一步模拟车辆的真实运行情况,使用当前档位最低限速来限制车辆模型在当前档位运行的最低速度;根据当前档位最低限速的计算公式,当没有油门输入时,当前档位最低限速为当前档位怠速,即当没有油门输入时,车辆刚体速度会降低,但是最低降至当前档位最低怠速;当有油门输入时,即使车辆刚体速度降低,最低也只能降至当前档位最低限速=当前档位最大速度-当前档位最低速度)*油门输入+当前档位怠速;When the value of the rigid body speed of the vehicle is greater than the minimum speed limit of the current gear and less than the maximum speed of the current gear, the intermediate speed speedVal is defined, and the calculation formula of the speedVal is: vehicle rigid body speed-downshift deceleration acceleration*time; The time is the interval from the last frame to the current frame, in seconds; the current vehicle speed = the value when speedVal is greater than 0 * the normalization of the vehicle rigid body speed; and update the vehicle rigid body speed to the current vehicle speed; ApplyDrive according to the above settings Calculation of the method, when the accelerator input is reduced, the current torque of the vehicle decreases, and the speed of the rigid body of the vehicle decreases, that is, the speed of the vehicle model in the current gear is affected by the accelerator input, so define speedVal to simulate the process of decelerating the vehicle at this stage; But when the vehicle is running, even if there is no accelerator input, the vehicle will not stop running directly. In order to further simulate the real running situation of the vehicle, the minimum speed limit of the current gear is used to limit the minimum speed of the vehicle model running in the current gear; according to The calculation formula for the minimum speed limit of the current gear, when there is no throttle input, the minimum speed limit of the current gear is the idle speed of the current gear, that is, when there is no throttle input, the speed of the rigid body of the vehicle will decrease, but the minimum speed will be reduced to the minimum idle speed of the current gear ;When there is throttle input, even if the speed of the rigid body of the vehicle decreases, the minimum speed can only be reduced to the minimum speed of the current gear=the maximum speed of the current gear-the minimum speed of the current gear)*throttle input+idle speed of the current gear;

然后计算车辆当前标准化速度,具体为,车辆标准化速度车辆当前速度*3.6,将车辆当前速度标准化为单位km/h。同时由于之前的时间计算单位为秒,而车辆的速度单位通常以km/h为主,所以在计算后需要对当前车辆速度进行标准化处理,将当前车辆速度的单位转换为km/h,得到车辆当前标准化速度。Then calculate the current normalized speed of the vehicle, specifically, the normalized speed of the vehicle*3.6, and normalize the current speed of the vehicle into a unit of km/h. At the same time, since the previous time calculation unit is seconds, and the vehicle speed unit is usually km/h, it is necessary to standardize the current vehicle speed after calculation, and convert the current vehicle speed unit to km/h to obtain the vehicle The current normalized velocity.

实施例2Example 2

如图2所示,本实施例提供一种车辆模拟考试判断方法,使用实施例1的一种车辆模拟模型建模方法建立的考试车辆模拟模型,所述方法包括:As shown in Figure 2, the present embodiment provides a method for judging a vehicle simulation test, using the test vehicle simulation model established by the vehicle simulation model modeling method of Embodiment 1, the method comprising:

A1:根据真实的考试场景来建立初始考试场景模型并导入到Unity3D中;A1: Create an initial test scene model based on the real test scene and import it into Unity3D;

在本步骤中,通过航拍建模或倾斜摄影技术对现实的考试场景进行采样,并利用Maya3D对采样结果进行处理和优化,获得与实际场景一比一的场初始考试场景模型。In this step, the actual test scene is sampled through aerial photography modeling or oblique photography technology, and the sampling results are processed and optimized by Maya3D to obtain an initial test scene model that is one-to-one with the actual scene.

A2:使用所述车辆模拟模型建模方法根据考试车辆的信息建立考试车辆模拟模型;A2: use the vehicle simulation model modeling method to establish a test vehicle simulation model according to the information of the test vehicle;

A3:根据不同的考试项目,设置考试项目的规则;A3: According to different test items, set the rules of the test items;

A4:根据考试项目的规则来为初始考试场景模型设置规则触发器和判定规则,生成模拟考试场景模型;A4: Set rule triggers and judgment rules for the initial test scenario model according to the rules of the test item, and generate a simulated test scenario model;

具体的,如图3所示,设置触发器包括以下步骤:Specifically, as shown in Figure 3, setting the trigger includes the following steps:

A41:在Unity3D中使用Cube来建立立方体模型;A41: Use Cube in Unity3D to build a cube model;

A42:为所建立的立方体模型添加碰撞器组件;A42: Add collider components to the created cube model;

A43:在Unity3D中设置立方体模型属性为触发器,使立方体模型形成标准触发器;A43: Set the cube model property as a trigger in Unity3D, so that the cube model forms a standard trigger;

A44:将初始考试场景模型中需要进行规则判定的位置标记为触发点;A44: Mark the position in the initial test scenario model that requires rule judgment as a trigger point;

A45:在每个触发点通过A41-A43的步骤分别设置多个所述标准触发器,其中在触发点进行规则判定的开始和结束位置分别设置一个标准触发器,在规则判定结束的位置设置一个或多个标准触发器,根据实际需要进行判定的规则来设定需要设置的标准触发器的数量;A45: Set multiple standard triggers at each trigger point through the steps of A41-A43, wherein one standard trigger is set at the start and end positions of the rule judgment at the trigger point, and one standard trigger is set at the end position of the rule judgment or multiple standard triggers, and set the number of standard triggers that need to be set according to the rules that actually need to be judged;

A46:根据考试项目的规则和模拟考试场景模型中的场景为每个标准触发器设置参数和规则,使标准触发器形成规则触发器,其中参数规则包括位置Position数据和缩放Scale数据,用于设置触发器的大小和位置,确定考试车辆模拟模型能够碰到规则触发器进行规则判断。A46: Set parameters and rules for each standard trigger according to the rules of the test item and the scenarios in the simulated test scenario model, so that the standard triggers form rule triggers, where the parameter rules include Position data and scaling Scale data for setting The size and position of the trigger determine that the test vehicle simulation model can meet the rule trigger for rule judgment.

在具体的实施方式中,例如直角转弯的项目中,需要利用初始考试场景模型中的直角弯道。在一个直角弯道的转弯开始位置上设定一个规则触发器作为直角转弯项目的开始触发器,并设置该开始触发器的参数,其中Position数据为:x=-46.9,y=1.77,z=5.89,缩放Scale数据为:x=1.84,y=4.96,z=11.22,同时为其设置触发规则:判定是否开启转向灯;在转弯结束位置上设定一个规则触发器作为直角转弯项目的结束触发器,并设置该结束触发器的参数,其中Position数据为:x=3.6,y=4.4,z=30.2,缩放Scale数据为:x=16.11,y=7.82,z=1.8,同时为其设置触发规则:判定是否关闭转向灯;当考试车辆模拟模型经过该直角弯道时,与开始触发器碰撞,系统触发回调OnTrggerEnter(Collidercollider)方法,将开始触发器的判定结果进行反馈;当考试车辆模拟模型离开直角弯道时,与结束触发器碰撞,系统触发回调OnTrggerEnter(Collider collider)方法,将结束触发器的判定结果进行反馈。每个规则触发器摆放在初始考试场景模型的理想位置,该理想位置根据实际要进行判定的内容确定,确保考试车辆模拟模型能够碰到规则触发器触发判定。In a specific implementation, for example, in the project of a right-angle turn, the right-angle turn in the initial test scene model needs to be used. Set a rule trigger on the turning start position of a right-angled curve as the start trigger of the right-angled turn project, and set the parameters of the start trigger, where the Position data is: x=-46.9, y=1.77, z= 5.89, the zoom Scale data is: x=1.84, y=4.96, z=11.22, and set trigger rules for it at the same time: determine whether to turn on the turn signal; set a rule trigger at the end position of the turn as the end trigger of the right-angle turn project , and set the parameters of the end trigger, where the Position data is: x=3.6, y=4.4, z=30.2, the scaling Scale data is: x=16.11, y=7.82, z=1.8, and set the trigger for it at the same time Rules: Determine whether to turn off the turn signal; when the test vehicle simulation model passes through the right-angled curve, it collides with the start trigger, and the system triggers the callback OnTrggerEnter(Collidercollider) method to feed back the judgment result of the start trigger; when the test vehicle simulation model When leaving a right-angled curve, it collides with the end trigger, and the system triggers the callback OnTrggerEnter(Collider collider) method to feed back the judgment result of the end trigger. Each rule trigger is placed in an ideal position of the initial test scene model, and the ideal position is determined according to the actual content to be judged, so as to ensure that the test vehicle simulation model can meet the rule trigger to trigger the judgment.

A5:将设置好规则触发器和判定规则的模拟考试场景模型和考试车辆模拟模型导入到外部的汽车模拟设备的系统中,并使考试车辆模拟模型与汽车模拟设备中的操作设备进行匹配,建立所述操作设备的操作数据和考试车辆模拟模型的模拟数据的转换规则;A5: Import the simulated test scene model and the test vehicle simulation model with set rule triggers and judgment rules into the external car simulation equipment system, and match the test vehicle simulation model with the operating equipment in the car simulation device to establish The conversion rules of the operation data of the operation equipment and the simulation data of the test vehicle simulation model;

A6:终端用户通过所述操作设备输入操作数据,汽车模拟设备根据所述转换规则将操作数据转换为考试车辆模拟模型的模拟数据;A6: The terminal user inputs the operation data through the operation device, and the vehicle simulation device converts the operation data into the simulation data of the test vehicle simulation model according to the conversion rule;

在实施例1中已经描述,将考试车辆模拟模型导入到汽车模拟设备中后,通过操作外设的汽车模拟设备的操作设备,可以将操作数据转换为与考试车辆模拟模型参数对应的模拟数据,当考试车辆获取到对应的模拟数据后调用控制函数来驱动其运行。值得注意的是,在本实施例中,汽车模拟设备为现有技术中任一种,具备完整的模拟车辆操作过程以及支持Unity3D的操作系统的汽车模拟设备。It has been described in Embodiment 1 that after the test vehicle simulation model is imported into the vehicle simulation device, the operation data can be converted into simulation data corresponding to the test vehicle simulation model parameters by operating the operating device of the peripheral vehicle simulation device, When the test vehicle obtains the corresponding simulation data, the control function is called to drive its operation. It is worth noting that, in this embodiment, the car simulation device is any one of the prior art, which has a complete simulated vehicle operation process and a car simulation device supporting an operating system of Unity3D.

A7:汽车模拟设备根据所述模拟数据驱动考试车辆模拟模型在模拟考试场景模型中运行,并依据规则触发器和判定规则来判定成绩。A7: The car simulation device drives the test vehicle simulation model to run in the simulated test scene model according to the simulated data, and judges the result according to the rule trigger and the judgment rule.

具体的,判定规则包括预设判定规则和考试判定规则;Specifically, the determination rules include preset determination rules and examination determination rules;

预设判定规则包括如下规则:The default judgment rules include the following rules:

限速规则,限速规则具体为车速不能超过规定的速度;Speed limit rules, the specific speed limit rules are that the speed of the vehicle cannot exceed the specified speed;

车灯规则,在转弯、掉头和变道时的转向灯使用情况,根据考试车辆模拟模型的TurnSignal反馈是否为true判断;Car light rules, the use of turn signals when turning, turning around and changing lanes, judge according to whether the TurnSignal feedback of the test vehicle simulation model is true;

压线规则,设置规则触发器为考试车辆模拟模型上的碰撞器是否碰到该规则触发器或越过该规则触发器,当碰到或越过时反馈考试车辆模拟模型压线;Line pressure rule, set the rule trigger as whether the collider on the test vehicle simulation model touches the rule trigger or crosses the rule trigger, and feedbacks the test vehicle simulation model pressure line when it touches or crosses;

熄火规则,在考试过程中考试车辆模拟模型不能熄火,判定依据为考试车辆模拟模型的汽车启动参数反馈为启动汽车状态且车辆当前速度反馈大于0。Flame-off rules, the test vehicle simulation model cannot be turned off during the test, and the judgment is based on the fact that the vehicle start-up parameter feedback of the test vehicle simulation model is the state of starting the car and the current speed feedback of the vehicle is greater than 0.

在本实施例中,还包括其他的预设的判定规则用于判定考试或车辆是否正常且符合规则运行。In this embodiment, other preset judgment rules are also included for judging whether the test or the vehicle is running normally and in accordance with the rules.

考试判定规则包括根据考试项目设置的具体规则。The examination determination rules include specific rules set according to examination items.

在具体的实施方式中,如科目三的考试内容中包括经过学校路段项目,项目合格的判断标准为,需要轻点刹车两次,且车速不能超过20km/h。为了实现这两个规则的判定。项目一开始,即碰到该项目判断的开始触发器,就每一帧的去获取模拟车的车辆当前速度,判定速度是否超过了20km/h,如果超过了,则弹出提示并且扣除相应的分数。同时,还应记录刹车踏板在每一帧中的踩下的深度数据,具体为,在项目开始时,建立一个临时数组并将数据都写入其中,在项目结束事件触发后,即碰到该项目判断的结束触发器,分析该临时数组内的数据,判断数据的值是否出现从大变小的趋势两次,如果未出现,则弹出提示并扣除相应分数。在本实施例中,还包括其他考试相关项目的判断,具体需要根据实际的考试的判定内容进行设置。In a specific implementation mode, if the test content of subject three includes the project of passing through the school road section, the criteria for judging whether the project is qualified is that the brakes need to be tapped twice, and the speed of the vehicle cannot exceed 20km/h. In order to realize the determination of these two rules. At the beginning of the project, when the start trigger of the project judgment is encountered, the current speed of the simulated car is obtained every frame to determine whether the speed exceeds 20km/h. If it exceeds, a prompt will pop up and the corresponding points will be deducted. . At the same time, the depth data of the brake pedal should also be recorded in each frame. Specifically, at the beginning of the project, a temporary array is created and the data is written into it. After the project end event is triggered, the The end trigger of project judgment analyzes the data in the temporary array to judge whether the value of the data has a trend of changing from large to small twice. If not, a prompt will pop up and the corresponding points will be deducted. In this embodiment, the determination of other examination-related items is also included, which needs to be set according to the determination content of the actual examination.

显然,本发明的上述实施例仅仅是为清楚地说明本发明技术方案所作的举例,而并非是对本发明的具体实施方式的限定。凡在本发明权利要求书的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明权利要求的保护范围之内。Apparently, the above-mentioned embodiments of the present invention are only examples for clearly illustrating the technical solution of the present invention, rather than limiting the specific implementation manner of the present invention. Any modification, equivalent replacement and improvement made within the spirit and principle of the claims of the present invention shall be included in the protection scope of the claims of the present invention.

Claims (10)

1. A vehicle simulation model modeling method, characterized in that the modeling method comprises:
s1: acquiring actual parameters of the test vehicle, and modeling according to the actual data;
s2: importing the modeled vehicle model into a Unity3D project, and adding an automobile component to the model;
s3: setting automobile starting parameters, gear parameters, power system parameters, automobile state parameters, engine parameters and input coefficients for a vehicle model added with automobile components;
s4: and (3) setting a speed calculation related method for the vehicle model according to the parameters set in the step (S3) to obtain the test vehicle simulation model.
2. The method according to claim 1, wherein the vehicle component in step S2 comprises: wheel collider, common collider and rigid body assembly;
the addition of the wheel impactor specifically includes: wheel collision assemblies are respectively added for wheels of the vehicle model in the Unity 3D;
adding a common impactor specifically includes: adding four spherical colliders of a head, a tail, a left and a right of a vehicle and a square vehicle body collider for a vehicle model in Unity 3D;
the adding of the rigid body component specifically comprises: and adding a Rigidbody rigid body component to the vehicle model in the Unity3D, setting a quality Mass parameter value according to actual parameter data of the test vehicle, and checking a Use grade application Gravity option of the Rigidbody rigid body component.
3. The vehicle simulation model modeling method according to claim 1, wherein the vehicle start-up parameters in the step S3 include: a power-off state, a power-on state, and a start-up vehicle state;
and/or, the gear parameters include: manual gear parameters and automatic gear parameters;
wherein, manual gear parameters include: neutral, first gear, second gear, third gear, fourth gear, fifth gear and reverse gear, the automatic gear parameters include: a parking gear, a forward gear and a reverse gear;
and/or, the powertrain parameters include: maximum wheel offset angle, transmission efficiency, brake pedal torque, and brake profile;
and/or, the vehicle state parameters include: gear ratio of each gear, wheel torque, minimum speed and maximum speed of each gear of the vehicle, idle speed of each gear of the vehicle and foot brake torque;
and/or, the automobile engine parameters include: maximum engine speed, minimum engine speed, speed-to-output power relationship curve, curve speed ratio, idle torque magnitude, speed-up limit, speed-down acceleration, engine-to-wheel torque conversion coefficient;
and/or, the input coefficients comprise: steering wheel input, clutch input, brake input, throttle input, and hand brake switch.
4. A vehicle simulation model modeling method according to claim 3, wherein the speed calculation-related method in step S3 includes an ApplyDrive method;
the ApplyDrive method specifically comprises the following steps:
when the current vehicle speed is smaller than the minimum speed of the current gear, calculating the current torque of the vehicle, and equally distributing the current torque of the vehicle to driving wheels to obtain the forward torque of each driving wheel, and calculating according to the forward torque to obtain the rigid body speed of the vehicle;
the driving wheels are wheels for the vehicle to actually drive the vehicle to advance;
the vehicle rigid body speed is a theoretical speed of the vehicle model.
5. The method for modeling a vehicle simulation model according to claim 4, wherein the calculating the current torque of the vehicle is specifically:
vehicle current torque = idle torque magnitude current gear ratio transmission efficiency clutch input + torque at current engine speed clutch input transmission efficiency;
the torque at the current engine speed is calculated according to the parameters of the automobile engine.
6. The modeling method of a vehicle simulation model according to claim 5, wherein the velocity calculation-related method in step S3 further includes a carteed method;
the CarSpeed method specifically comprises the following steps:
obtaining normalization of the rigid body speed of the vehicle;
calculating the lowest speed limit of the current gear, wherein the lowest speed limit of the current gear is = (the maximum speed of the current gear-the lowest speed of the current gear) is the throttle input plus the idle speed of the current gear;
when the value of the rigid body speed of the vehicle is larger than the maximum speed of the current gear, the current vehicle speed is calculated, specifically:
current vehicle speed = current gear maximum speed x vehicle rigid body speed normalization; and updating the vehicle rigid body speed to the current vehicle speed;
when the value of the rigid body speed of the vehicle is larger than the lowest speed limit of the current gear and smaller than the maximum speed of the current gear, defining an intermediate speed speedVal, wherein the calculation formula of the speedVal is as follows: numerical value of vehicle rigid body speed-downshift deceleration acceleration time; the time is the interval from the last frame to the current frame, and the unit is seconds; normalizing the vehicle rigid body speed by a value when the current vehicle speed = speedVal is greater than 0; and updating the vehicle rigid body speed to the current vehicle speed;
then, calculating the current standardized speed of the vehicle, specifically, the current speed of the vehicle is 3.6, and the current speed of the vehicle is standardized to be the unit km/h.
7. A vehicle simulation test judgment method, characterized in that a test vehicle simulation model established using a vehicle simulation model modeling method according to any one of claims 1 to 6, the method comprising:
a1: establishing an initial examination scene model according to a real examination scene and importing the initial examination scene model into Unity 3D;
a2: establishing an examination vehicle simulation model according to the information of the examination vehicle by using the vehicle simulation model modeling method;
a3: setting rules of the test items according to different test items;
a4: setting a rule trigger and a judging rule for the initial examination scene model according to the rule of the examination item, and generating a simulated examination scene model;
a5: the method comprises the steps of importing a simulated examination scene model and an examination vehicle simulation model with set rule triggers and judging rules into a system of external automobile simulation equipment, matching the examination vehicle simulation model with operation equipment in the automobile simulation equipment, and establishing operation data of the operation equipment and conversion rules of simulation data of the examination vehicle simulation model;
a6: the terminal user inputs operation data through the operation device, and the automobile simulation device converts the operation data into simulation data of an examination vehicle simulation model according to the conversion rule;
a7: the automobile simulation equipment drives the test vehicle simulation model to run in the test scene simulation model according to the simulation data, and judges the achievement according to the rule trigger and the judging rule.
8. The method for determining a simulated test of a vehicle according to claim 7, wherein the establishing an initial test scene model based on a real test scene is specifically as follows:
sampling a real examination scene by using aerial modeling or oblique photography technology, and processing and optimizing a sampling result by using Maya3D to obtain an initial examination scene model consistent with the environment layout of the actual scene.
9. The method for determining a vehicle simulation test according to claim 7, wherein the setting rule trigger comprises the steps of:
a41: cube models are built in Unity3D using Cube;
a42: adding a collider component to the established cube model;
a43: setting a cube model attribute as a trigger in the Unity3D, so that the cube model forms a standard trigger;
a44: marking a position needing rule judgment in the initial examination scene model as a trigger point;
a45: setting a plurality of standard triggers through the steps of A41-A43 at each trigger point;
a46: parameters and rules are set for each standard trigger according to the rules of the test items and the scenes in the initial test scene model, so that the standard triggers form rule triggers.
10. The vehicle simulation test judgment method according to claim 6, wherein the setting of the plurality of standard triggers respectively includes: at each trigger point in the simulated examination scene model, setting the standard trigger at the starting, process and ending positions of rule judgment at the trigger point;
wherein a standard trigger is set at the beginning and the end, respectively, and one or several standard triggers are set at the process.
CN202310065067.2A 2023-01-13 2023-01-13 A vehicle simulation model modeling method and examination judgment method Pending CN116204977A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202310065067.2A CN116204977A (en) 2023-01-13 2023-01-13 A vehicle simulation model modeling method and examination judgment method
US18/517,142 US20240242621A1 (en) 2023-01-13 2023-11-22 Vehicle simulation model modeling method and examination judgment method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310065067.2A CN116204977A (en) 2023-01-13 2023-01-13 A vehicle simulation model modeling method and examination judgment method

Publications (1)

Publication Number Publication Date
CN116204977A true CN116204977A (en) 2023-06-02

Family

ID=86512311

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310065067.2A Pending CN116204977A (en) 2023-01-13 2023-01-13 A vehicle simulation model modeling method and examination judgment method

Country Status (2)

Country Link
US (1) US20240242621A1 (en)
CN (1) CN116204977A (en)

Also Published As

Publication number Publication date
US20240242621A1 (en) 2024-07-18

Similar Documents

Publication Publication Date Title
CN105426638A (en) Driver behavior characteristic identification device
CN110046833A (en) A kind of traffic congestion auxiliary system virtual test system
CN114296424B (en) Simulation test system and method
Allen et al. A low cost PC based driving simulator for prototyping and hardware-in-the-loop applications
DE102009058491A1 (en) Method for presentation and / or simulation of at least one functionality of at least one driver assistance system for a motor vehicle with respect to a customer and associated feed device
CN113919082B (en) Train longitudinal dynamics modeling method and system
CN202352127U (en) Three-dimensional automobile driving training simulator
CN110599850A (en) Driving test simulation method and system based on VR driving simulator
CN106128208B (en) Research type automobile driving simulator with rotatable cabin
CN103234749A (en) Automobile clutch control comfort evaluation method based on artificial neural network
CN116204977A (en) A vehicle simulation model modeling method and examination judgment method
CN112158128B (en) Pedestrian warning sound simulation sounding device for low-speed running of electric automobile
CN206411909U (en) A kind of improved automotive driving simulator
CN113487936A (en) Simulation driving judgment method based on multi-dimensional continuous signal analysis
JP2018072303A (en) Driving force map creation method
LU502944B1 (en) Driving simulation system based on vr
Lee Virtual test track
KR102597812B1 (en) Miniature Model of the Personal Type Simulator for the Electric Multiple Unit
US20250196640A1 (en) Vehicle management system and battery electric vehicle
Liu et al. Development of virtual drive HILS system based on VR and CarSim
Poitschke et al. A multifunctional VR-simulator platform for the evaluation of automotive user interfaces
US20250157454A1 (en) Sound control method, sound control device, and battery electric vehicle
EP4528693A1 (en) A road trip recording and reproduction method and system for a vehicle
CN202534192U (en) Automatic cruise test stand for automobile
CN119225202A (en) A human-machine parallel in-the-loop testing method for intelligent vehicles

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination