Control method, device, storage medium and computer equipment of driving simulation system
By simulating vehicle driving behavior in a virtual coordinate system, it solves the problems of high real vehicle verification cost and low efficiency in traditional automobile research and development, achieves rapid verification of the driving behavior of different models, and reduces verification costs.
Patent Information
- Application Number
- CN202210216091.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-07
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2042-03-07
AI Technical Summary
In the traditional automobile research and development process, ergonomics verification requires a real vehicle, which results in a long production cycle and high cost. Only a single model can be verified, and the verification speed is slow, resulting in high research and development costs and a waste of human resources.
A control method for the driving simulation system is proposed. By adjusting the platform and movable parts, the driving behavior is simulated in the virtual coordinate system, the reference coordinate system and the relative coordinate system are obtained, and the driver's joint and optical point coordinates are mapped to realize the vehicle driving process. virtual simulation.
Restore real driving behavior under the virtual coordinate system and quickly verify different models, reducing verification costs and improving verification efficiency.
Smart Images

Figure CN115219227B
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle technology, and in particular to a control method for a driving simulation system, a control device for a driving simulation system, a computer-readable storage medium, and a computer device. Background Technology
[0002] With the rapid development of automotive technology, the pace of automotive R&D is accelerating. In the traditional automotive R&D process, human factors engineering verification requires a real vehicle. However, producing a real vehicle is time-consuming and expensive, and can only verify a single model, resulting in slow verification speed. Moreover, verification usually occurs in the later stages of vehicle development, and if problems are discovered and need to be rectified, it leads to high R&D costs and a waste of human resources. Summary of the Invention
[0003] This invention aims to solve the technical problems in related technologies. Therefore, the first objective of this invention is to propose a control method for a driving simulation system that can reproduce realistic driving behavior in a virtual coordinate system, facilitating rapid verification of different vehicle models and reducing verification costs.
[0004] The second objective of this invention is to provide a control device for a driving simulation system.
[0005] A third objective of this invention is to provide a computer-readable storage medium.
[0006] The fourth objective of this invention is to provide a computer device.
[0007] To achieve the above objectives, a first aspect of the present invention provides a control method for a driving simulation system. The driving simulation system includes: an adjustment platform on which multiple movable parts are disposed; the method includes: acquiring a reference coordinate system of the adjustment platform, acquiring a virtual coordinate system of the adjustment platform based on the reference coordinate system, and establishing multiple relative coordinate systems under the reference coordinate system with each movable part as a base point; acquiring the actual coordinates of multiple optical points on each movable part under the reference coordinate system and their relative coordinates in the corresponding relative coordinate systems, and acquiring the joint coordinates of a driver's joint optical point under the reference coordinate system; when operating the multiple movable parts, mapping the actual coordinates of the multiple optical points on the multiple movable parts, the relative coordinates of the multiple optical points, and the joint coordinates of the driver into the virtual coordinate system, so as to simulate and present the driver's driving posture and vehicle driving changes during vehicle driving under the virtual coordinate system.
[0008] According to the control method of the driving simulation system of the present invention, after adjusting the positions of multiple moving parts according to the current vehicle setting parameters via an adjustment platform, a reference coordinate system of the adjustment platform is obtained, and a virtual coordinate system of the adjustment platform is obtained based on the reference coordinate system; the actual coordinates of multiple optical points on the multiple moving parts in the reference coordinate system and their relative coordinates in the relative coordinate system are obtained, as well as the joint coordinates of the driver's joint optical points in the reference coordinate system are obtained; when operating the multiple moving parts on the adjustment platform, the actual coordinates of the multiple optical points on the multiple moving parts, the relative coordinates of the multiple optical points, and the driver's joint coordinates are mapped onto the virtual coordinate system to simulate and present the driver's driving posture and vehicle driving changes during vehicle driving in the virtual coordinate system. This simulation facilitates rapid verification of different vehicle models and reduces verification costs.
[0009] In addition, the control method of the driving simulation system according to the above embodiments of the present invention may also have the following additional technical features:
[0010] According to one embodiment of the present invention, determining the virtual coordinate system of the adjustment platform based on the reference coordinate system of the adjustment platform includes: obtaining an initial virtual coordinate system of the adjustment platform based on the reference coordinate system of the adjustment platform, and correcting the z-axis angle of the initial virtual coordinate system, specifically: selecting a first feature point and a second feature point distributed along the y-axis direction on the adjustment platform under the reference coordinate system; obtaining the absolute value of the difference between the x-axis coordinates of the first feature point and the second feature point under the initial virtual coordinate system and the absolute value of the difference between their y-axis coordinates under the reference coordinate system, respectively denoted as LAx and LAy; and determining the z-axis correction rotation angle of the initial virtual coordinate system by calculating the z-axis correction rotation angle RDz = Arctan(LAx / LAy) to obtain the z-axis of the virtual coordinate system.
[0011] According to one embodiment of the present invention, an initial virtual coordinate system of the adjustment platform is obtained based on the reference coordinate system of the adjustment platform. The y-axis angle of the initial virtual coordinate system is corrected. A third feature point on the adjustment platform, distributed along the x-axis direction with the first feature point in the reference coordinate system, is selected. The absolute values of the differences between the z-axis coordinates of the first feature point and the third feature point in the initial virtual coordinate system and the absolute values of the differences between their x-axis coordinates in the reference coordinate system are obtained and denoted as LABz and LAB, respectively. The y-axis correction rotation angle of the initial virtual coordinate system is determined by calculating the y-axis correction rotation angle RDy = Arctan(LABz / LAB) to obtain the y-axis of the virtual coordinate system. The reference coordinate system takes the first feature point as its origin, and the first feature point, the second feature point, and the third feature point are on the same horizontal plane.
[0012] According to an embodiment of the present invention, obtaining a virtual coordinate system of the adjustment platform based on the reference coordinate system of the adjustment platform further includes: correcting the spatial dimensions of the initial virtual coordinate system, specifically: selecting a fifth feature point and a sixth feature point on the adjustment platform distributed along the z-axis direction with the first feature point in the reference coordinate system; obtaining the absolute values of the differences between the z-axis coordinates of the first feature point and the fifth feature point in the initial virtual coordinate system and the reference coordinate system, respectively denoted as LACz and LAC; obtaining the absolute values of the differences between the z-axis coordinates of the third feature point and the sixth feature point in the initial virtual coordinate system and the reference coordinate system, respectively denoted as LBDz and LBD; selecting the spatial dimensions of the adjustment platform in the reference coordinate system... The fourth feature point is distributed along the x-axis direction with the second feature point. The x-axis coordinates of the second feature point and the fourth feature point in the initial virtual coordinate system and the reference coordinate system are obtained respectively, and are denoted as LABx and LAB. The spatial size scaling factor of the initial virtual coordinate system is determined by calculating the scaling factor Sd = ∑(LACz,LBDz,LABx,LAx) / ∑(LAC,LBD,LAB,LA). The first feature point, the second feature point, the third feature point and the fourth feature point are all located in the xoy plane, the first feature point, the third feature point, the fifth feature point and the sixth feature point are all located in the xoz plane, and the first feature point and the third feature point are located on the x-axis.
[0013] According to an embodiment of the present invention, obtaining the joint coordinates of the driver's joint optical points in the reference coordinate system includes: obtaining the length of the driver's human skeleton based on the coordinates of multiple optical points on the driver's joint; comparing the obtained length of the driver's human skeleton with a preset skeleton length, and determining the optical point coordinates that conform to the preset skeleton length as the joint coordinates of the driver in the reference coordinate system.
[0014] According to an embodiment of the present invention, the control method of the driving simulation system further includes: acquiring the optical point coordinates of the driver's helmet glasses in the reference coordinate system, and mapping the optical point coordinates in the virtual coordinate system to obtain the position of the driver's eyes; acquiring the z-axis rotation angle of the gyroscope on the helmet to determine the driver's field of vision rotation angle; and obtaining the driver's head posture information and viewing angle information based on the position of the driver's eyes and the driver's field of vision rotation angle.
[0015] To achieve the above objectives, a second aspect of the present invention provides a control device for a driving simulation system. The driving simulation system includes: an adjustment platform with multiple movable parts disposed on it, each movable part having multiple optical points. The device includes: a first coordinate system module for acquiring a reference coordinate system of the adjustment platform; a second coordinate system module for acquiring and determining a virtual coordinate system of the adjustment platform based on the reference coordinate system; a third coordinate system module for establishing multiple relative coordinate systems with each movable part as a base point under the reference coordinate system; an acquisition module for acquiring the actual coordinates of the multiple optical points on the multiple movable parts under the reference coordinate system, acquiring the relative coordinates of the multiple optical points on each movable part in the corresponding relative coordinate system, and acquiring the joint coordinates of the driver's joint optical points under the reference coordinate system; and a control module for mapping the actual coordinates of the multiple optical points on the multiple movable parts, the relative coordinates of the multiple optical points, and the joint coordinates of the driver into the virtual coordinate system when the multiple movable parts on the adjustment platform are operated, so as to simulate and present the driver's driving posture and vehicle driving changes during vehicle driving under the virtual coordinate system.
[0016] According to an embodiment of the present invention, the control device of the driving simulation system adjusts the positions of multiple moving parts according to the current vehicle settings parameters via an adjustment platform. It then obtains the reference coordinate system of the adjustment platform through a first coordinate system module, determines a virtual coordinate system of the adjustment platform based on the reference coordinate system through a second coordinate system module, and establishes multiple relative coordinate systems with each moving part as a base point in the reference coordinate system through a third coordinate system module. The device acquires the actual coordinates of multiple optical points on the multiple moving parts in the reference coordinate system and their relative coordinates in the relative coordinate systems, as well as the joint coordinates of the driver's joint optical points in the reference coordinate system, through an acquisition module. When operating the multiple moving parts on the adjustment platform, the control module maps the actual coordinates of the multiple optical points on the multiple moving parts, the relative coordinates of the multiple optical points, and the driver's joint coordinates onto the virtual coordinate system to simulate the driver's driving posture and vehicle driving changes during vehicle driving in the virtual coordinate system. Therefore, this device can reproduce realistic driving behavior in the virtual coordinate system, facilitating rapid verification of different vehicle models and reducing verification costs.
[0017] To achieve the above objectives, a third aspect of the present invention provides a computer-readable storage medium storing a control program for a driving simulation system thereon, which, when executed by a processor, implements the aforementioned control method for the driving simulation system.
[0018] According to the computer-readable storage medium of the present invention, by executing the control method of the driving simulation system described above, the real driving situation can be reproduced in a virtual coordinate system, which facilitates rapid verification of different vehicle models and reduces verification costs.
[0019] To achieve the above objectives, a fourth aspect of the present invention provides a computer device, including a memory, a processor, and a control program for a driving simulation system stored in the memory and executable on the processor. When the processor executes the control program for the driving simulation system, it implements the above-described control method for the driving simulation system.
[0020] The computer device according to the embodiments of the present invention, by executing the control method of the driving simulation system described above, can reproduce the real driving situation in a virtual coordinate system, which facilitates rapid verification of different vehicle models and reduces verification costs.
[0021] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description
[0022] Figure 1 A flowchart of a control method for a driving simulation system according to an embodiment of the present invention;
[0023] Figure 2 This is a schematic diagram of an adjustment platform according to an embodiment of the present invention;
[0024] Figure 3 This is a block diagram of the control device of a driving simulation system according to an embodiment of the present invention;
[0025] Figure 4 This is a block diagram of a computer device according to an embodiment of the present invention. Detailed Implementation
[0026] Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain the present invention, and should not be construed as limiting the present invention.
[0027] The following description, with reference to the accompanying drawings, outlines the control method, control device, computer-readable storage medium, and computer equipment for a driving simulation system according to embodiments of the present invention.
[0028] Figure 1 This is a flowchart of a control method for a driving simulation system according to an embodiment of the present invention.
[0029] In one embodiment of the present invention, the driving simulation system includes: an adjustment platform on which multiple movable parts are disposed, each movable part having multiple optical points, the adjustment platform being used to adjust the positions of the multiple movable parts according to the current vehicle setting parameters.
[0030] Specifically, all adjustable components on the vehicle are mounted on an adjustment platform. This platform can be moved as a whole as needed, or the positions of individual components can be adjusted according to the settings parameters of different vehicle models to simulate the driving conditions of various vehicles. For example, based on the settings parameters of the vehicle model to be verified, the platform can be used to adjust the overall vehicle posture, steering wheel position, seat position, brake pedal position, accelerator pedal position, clutch pedal position, and ground clearance (the distance between the vehicle and the ground) to simulate the operation and driving of a real vehicle. Each movable component has multiple optical points. By collecting the coordinates of these optical points, the actual coordinates of the movable component in the reference coordinate system can be determined. See the detailed explanation below.
[0031] like Figure 1 As shown, the control method of the driving simulation system in this embodiment of the invention includes:
[0032] S10, obtain the reference coordinate system of the adjustment platform, determine the virtual coordinate system of the adjustment platform based on the reference coordinate system of the adjustment platform, and establish multiple relative coordinate systems with each moving part as the base point under the reference coordinate system.
[0033] Specifically, the reference coordinate system of the adjustment platform is obtained, and the virtual coordinate system of the adjustment platform is determined based on the reference coordinate system. The reference coordinate system of the adjustment platform refers to the coordinate system of the adjustment platform in the actual environment. First, the adjustment platform is placed horizontally, and then a coordinate system is established based on some feature points on the adjustment platform. A specially made right-angle tool is placed at a designated position on the platform (which can be determined based on the position of the feature points). The major axis of the specially made right-angle tool is the x-axis, the minor axis is the y-axis, and the z-axis can be determined using the right-hand coordinate system principle. The origin of the right-angle coordinate system is at the point where the three axes intersect. Thus, the reference coordinate system of the adjustment platform can be determined. After the reference coordinate system of the adjustment platform is determined, the actual coordinates of multiple moving parts of the vehicle on the adjustment platform in the reference coordinate system can be determined.
[0034] Then, the space through which the calibration tool sweeps is used to determine the space in which the reference coordinate system can be captured. An initial virtual coordinate system is generated in the virtual space by capturing the space through an optical camera. Since the dimensions of the x-axis, y-axis and z-axis of the captured reference coordinate system of the adjustment platform are not completely linear in the virtual space, the initial virtual coordinate system needs to be calibrated so that the virtual coordinate system can correspond to the actual reference coordinate system, so that the virtual scene and the actual scene can achieve a 1:1 effect in the future.
[0035] Specifically: Multiple feature points are selected, with their coordinates in both the reference coordinate system and the initial virtual coordinate system, to correct the spatial angles and dimensions of the initial virtual coordinate system, thereby obtaining the virtual coordinate system of the adjustment platform. The correction of the spatial angles is as follows:
[0036] Select a first feature point and a second feature point distributed along the y-axis in the reference coordinate system on the adjustment platform; obtain the absolute value of the difference between the x-axis coordinates of the first feature point and the second feature point in the initial virtual coordinate system and the absolute value of the difference between their y-axis coordinates in the reference coordinate system, denoted as LAx and LAy respectively; determine the z-axis correction rotation angle of the initial virtual coordinate system by calculating the z-axis correction rotation angle RDz = Arctan(LAx / LAy) to obtain the z-axis of the virtual coordinate system.
[0037] A third feature point is selected on the adjustment platform, distributed along the x-axis direction with the first feature point in the reference coordinate system. The absolute values of the differences between the z-axis coordinates of the first feature point and the third feature point in the initial virtual coordinate system, and the absolute values of the differences between their x-axis coordinates in the reference coordinate system, are obtained and denoted as LABz and LAB, respectively. The y-axis correction rotation angle of the initial virtual coordinate system is determined by calculating the formula RDy = Arctan(LABz / LAB) to obtain the y-axis of the virtual coordinate system. The reference coordinate system uses the first feature point as its origin, and the first, second, and third feature points are on the same horizontal plane.
[0038] Specifically, such as Figure 2 As shown, feature points A1 (first feature point), A2 (second feature point), B1 (third feature point), and B2 (fourth feature point) are located on the same horizontal plane xoy; feature points C1 (fifth feature point), C2 (not used in this embodiment), D1 (sixth feature point), and D2 (not used in this embodiment) are located on the same horizontal plane xoy; feature points A1, B1, C1, and D1 are located on the same horizontal plane xoz; and feature points A1, A2, C1, and C2 are located on the same horizontal plane xoy.
[0039] Calculate the z-axis screw in the initial virtual coordinate system: Take the x-axis coordinates of feature points A1 and A2 in the initial virtual coordinate system, denoted as A1x and A2x respectively, and obtain the absolute value of the difference between the x-axis coordinates of feature points A1 and A2, denoted as LAx = |A1x - A2x|. Then obtain the absolute value of the difference between the y-axis coordinates of feature points A1 and A2 in the reference coordinate system, denoted as LAy. Based on LAx and LAy, the z-axis screw RDz can be obtained. Using the formula RDz = arctan(LAx / LAy), the z-axis rotation can be obtained.
[0040] Calculate the y-axis rotation in the initial virtual coordinate system: Take the z-axis coordinates of feature points A1 and B1 in the initial virtual coordinate system, denoted as A1z and B1z respectively, and obtain the absolute value of the difference between the z-axis coordinates of feature points A1 and B1, denoted as LABz = |A1z - B1z|. Then obtain the absolute value of the difference between the x-axis coordinates of feature points A1 and B1 in the reference coordinate system, denoted as LAB. Based on LABz and LAB, the y-axis rotation RDy can be obtained. Using the formula RDy = arctan(LABz / LAB), the y-axis rotation can be calculated.
[0041] Then, in the initial virtual coordinate system, rotate the z-axis and y-axis by rotation amounts RDz and RDy to align their directions. Since the x-axis, y-axis, and z-axis are perpendicular to each other, the x-axis coordinate is also corrected after the y-axis and z-axis rotation is corrected.
[0042] In the above embodiments, the spatial angle of the initial virtual coordinate system has been corrected. Since the size of the virtual space differs from that of the real environment, it is necessary to correct the scaling of the initial virtual coordinate system in the virtual environment, that is, to correct the spatial size of the initial virtual coordinate system. The specific processing is as follows:
[0043] Select the fifth and sixth feature points on the adjustment platform, which are distributed along the z-axis direction with the first feature point in the reference coordinate system. Obtain the absolute values of the differences between the z-axis coordinates of the first and fifth feature points in the initial virtual coordinate system and the reference coordinate system, respectively, and denote them as LACz and LAC. Obtain the absolute values of the differences between the z-axis coordinates of the third and sixth feature points in the initial virtual coordinate system and the reference coordinate system, respectively, and denote them as LBDz and LBD. Select the fourth feature point on the adjustment platform, which is distributed along the x-axis direction with the second feature point in the reference coordinate system. Obtain the absolute values of the differences between the z-axis coordinates of the first and sixth feature points in the initial virtual coordinate system and the reference coordinate system, respectively, and denote them as LBDz and LBD. The four feature points have x-axis coordinates in the initial virtual coordinate system and the reference coordinate system, respectively denoted as LABx and LAB. The spatial scaling factor of the initial virtual coordinate system is determined by calculating the scaling factor Sd = ∑(LACz,LBDz,LABx,LAx) / ∑(LAC,LBD,LAB,LA). The first, second, third, and fourth feature points are all located in the xoy plane, the first, third, fifth, and sixth feature points are all located in the xoz plane, and the first and third feature points are located on the x-axis.
[0044] Specific reference Figure 2 As shown, the z-axis coordinates of feature points A1, C1, B1, and D1 in the initial virtual coordinate system and the reference coordinate system are obtained, respectively. The x-axis coordinates of A2, B2, A1, and A2 in the initial virtual coordinate system and the reference coordinate system are also obtained, respectively. The absolute value of the difference between the z-axis coordinates of feature points A1 and C1 in the initial virtual coordinate system is denoted as LACz = |A1z - C1z|. The absolute value of the difference between the z-axis coordinates of feature points B1 and D1 in the initial virtual coordinate system is denoted as LBDz = |B1z - D1z|. The absolute value of the difference between the x-axis coordinates of feature points A2 and B2 in the initial virtual coordinate system is denoted as LABx = |A2x - B2x|. The absolute value of the difference between the x-axis coordinates of feature points A1 and A2 in the initial virtual coordinate system is denoted as LAx = |A1x - A2x|. Then, obtain the absolute value of the difference between the z-axis coordinates of feature points A1 and C1 in the reference coordinate system (LAC), the absolute value of the difference between the z-axis coordinates of feature points B1 and D1 in the reference coordinate system (LBD), the absolute value of the difference between the x-axis coordinates of feature points A2 and B2 in the reference coordinate system (LAB), and the absolute value of the difference between the x-axis coordinates of feature points A1 and A2 in the reference coordinate system (LA).
[0045] Then, based on LACz, LBDz, LABx, LAx, LAC, LBD, LAB, and LA, the scaling factor Sd of the spatial dimensions can be obtained using the formula Sd = ∑(LACz, LBDz, LABx, LAx) / ∑(LAC, LBD, LAB, LA). The initial virtual coordinate system dimensions are then corrected based on the scaling factor Sd. Finally, through the correction of the spatial angles and spatial dimensions in the above embodiments, the virtual coordinate system can be obtained. After correcting the virtual coordinate system through the above embodiments, the coordinate system of the adjustment platform and moving parts in both the actual and virtual environments is finally unified.
[0046] In addition, multiple optical points are set on each moving part so that the optical camera can determine whether the moving part has moved by capturing these optical points. Since some moving parts may also rotate, the rotation angle or opening / closing angle cannot be determined solely by the actual coordinates of the optical points in the reference coordinate system. For example, a steering wheel may have multiple optical points, but the actual coordinates of these optical points are disordered when mapped to the virtual coordinate system, so the rotation angle and direction cannot be represented. Therefore, a relative coordinate system needs to be set for some moving parts. Based on the relative coordinate system, the relative coordinate transformation of each optical point in the reference coordinate system can be determined, and then the rotation direction and angle of the moving part can be determined based on the relative coordinate transformation.
[0047] Establishing multiple relative coordinate systems with each moving part as a base point under the aforementioned reference coordinate system is illustrated as follows: Taking one moving part as a base point to establish a corresponding relative coordinate system, a specially designed coordinate tool is used. This tool has a horizontal axis representing the X-axis and a vertical axis representing the Y-axis. The horizontal and vertical axes intersect perpendicularly, with the intersection point being the reference point O. The coordinate tool is set on the moving part, and one of the multiple optical points on the moving part is selected and aligned with the reference point O of the coordinate tool to establish a relative coordinate system corresponding to that moving part. The coordinate tool can also be set on other different moving parts, and in the same manner, multiple relative coordinate systems corresponding to each moving part can be established with each moving part as a base point.
[0048] S20: Obtain the actual coordinates of multiple optical points on multiple moving parts in the reference coordinate system, obtain the coordinates of multiple optical points on each moving part in the relative coordinate system, and obtain the joint coordinates of the driver joint optical points in the reference coordinate system.
[0049] Furthermore, according to one embodiment of the present invention, the joint coordinates include multiple joint optical point coordinates. Obtaining the joint coordinates of the driver's joint optical points in the reference coordinate system includes: obtaining the length of the driver's human skeleton based on the multiple optical point coordinates; and processing the multiple optical point coordinates based on the length of the human skeleton and a preset skeleton length to obtain the joint coordinates of the driver in the reference coordinate system.
[0050] Specifically, multiple joint optical points are installed on the driver's body. Optical cameras capture the coordinates of these joint optical points, and real-time joint motion information is determined based on these coordinates and mapped to a virtual coordinate system. Since the joint optical points are prone to intersecting in spatial coordinates, and human or finger data can easily overlap, leading to distortion of the human limbs, a human skeleton blurring algorithm is needed to remove unsuitable joint optical point coordinates. The specific algorithm is as follows: Based on an established human database, the human skeleton is reconstructed in the software, with specific dimensions for each skeleton defined. The acquired joint optical point coordinates are associated with the human skeleton to reconstruct it. Then, the length of each bone is determined based on the coordinates of two adjacent joint optical points. If a bone is significantly elongated or shortened, its coordinates are discarded, and the next joint optical point is used for compensation. In this way, the joint optical point coordinates that conform to the length of the human skeleton are determined as the driver's joint coordinates in the aforementioned reference coordinate system.
[0051] S30, when operating multiple movable parts on the adjustment platform, the actual coordinates of multiple optical points on the multiple movable parts, the relative coordinates of the multiple optical points and the joint coordinates of the driver are mapped into the virtual coordinate system, so as to simulate and present the driver's driving posture and vehicle driving changes during the vehicle driving process in the virtual coordinate system.
[0052] Specifically, when the driver operates the moving parts, the actual coordinates of multiple optical points on the moving parts in the reference coordinate system are mapped to the virtual coordinate system. The actual coordinates of these optical points change simultaneously in the virtual coordinate system as the driver operates, thus simulating the spatial position changes of the moving parts when operated. Similarly, the relative coordinates of each moving part in its corresponding relative coordinate system are mapped to the virtual coordinate system. The relative coordinates of the optical points on these moving parts change simultaneously in the virtual coordinate system as the driver operates, thus simulating the spatial angle changes of the moving parts when operated. Furthermore, the joint coordinates of the driver in the reference coordinate system are mapped to the virtual coordinate system. The actual coordinates of the driver's joints change simultaneously in the virtual coordinate system as the driver operates, thus simulating the driver's posture changes in the virtual coordinate system when operating the moving parts. Therefore, the overall simulation presents the driver's driving posture and vehicle driving changes during the driving process.
[0053] According to one embodiment of the present invention, the control method of the driving simulation system described above further includes: acquiring the driver's head posture information; and simulating the driver's driving posture based on the driver's head posture information.
[0054] Furthermore, according to one embodiment of the present invention, obtaining the driver's head posture information includes: obtaining the optical point coordinates of the driver's helmet glasses in a reference coordinate system, and mapping the optical point coordinates to a virtual coordinate system to obtain the position of the driver's eyes; obtaining the z-axis rotation angle of the gyroscope on the helmet to determine the driver's field of vision rotation angle; and obtaining the driver's head posture information and viewing angle information based on the position of the driver's eyes and the driver's field of vision rotation angle.
[0055] Specifically, to facilitate observation of the surrounding environment during simulated driving, the optical coordinates of the driver's helmet glasses are collected and mapped onto a virtual coordinate system to determine the driver's eye position. Since the virtual coordinate system is modified, the exact position of the driver's eyes within it can be accurately determined.
[0056] Similar to moving parts like steering wheels, the rotation angle of the head is difficult to determine. Therefore, by installing a gyroscope on the helmet, which has its own coordinate system, the z-axis rotation angle represents the driver's field of vision rotation angle. Because the gyroscope has accumulated rotation angle errors due to time convolution, the spatial rotation angle needs to be corrected at regular intervals. This allows the driver's head posture information, including coordinates and field of vision rotation angle, to be obtained.
[0057] In summary, this application restores the information of the adjustment platform and the real-time movement of human joints in the VR system, achieving a 1:1 correspondence between the virtual scene and the real scene. This allows drivers to experience a realistic riding experience on the adjustment platform, while also having a 1:1 mapping of the virtual scene, enabling real and accurate vehicle model evaluation.
[0058] In summary, the control method of the driving simulation system according to embodiments of the present invention, after adjusting the positions of multiple moving parts according to the current vehicle setting parameters via an adjustment platform, obtains the reference coordinate system of the adjustment platform and obtains a virtual coordinate system of the adjustment platform based on the reference coordinate system; obtains the actual coordinates of multiple optical points on multiple moving parts in the reference coordinate system, obtains the relative coordinates of multiple optical points on each moving part in the relative coordinate system, and obtains the joint coordinates of the driver's joint optical points in the reference coordinate system; when operating multiple moving parts on the adjustment platform, the actual coordinates of multiple optical points on multiple moving parts, the relative coordinates of multiple optical points, and the driver's joint coordinates are mapped onto the virtual coordinate system to simulate and present the driver's driving posture and vehicle driving changes during vehicle driving in the virtual coordinate system. This simulation facilitates rapid verification of different vehicle models and reduces verification costs.
[0059] Corresponding to the above embodiments, the present invention also proposes a control device for a driving simulation system.
[0060] Figure 3 This is a block diagram of the control device of a driving simulation system according to an embodiment of the present invention.
[0061] In one embodiment of the present invention, the driving simulation system includes: an adjustment platform on which multiple movable parts are disposed, each movable part having multiple optical points.
[0062] like Figure 3 As shown, the control device of the driving simulation system in this embodiment of the invention includes: a first coordinate system module 10, a second coordinate system module 20, a third coordinate system module 30, an acquisition module 40, and a control module 50.
[0063] The first coordinate system module 10 is used to obtain the reference coordinate system of the adjustment platform;
[0064] The second coordinate system module 20 is used to obtain and determine the virtual coordinate system of the adjustment platform based on the reference coordinate system of the adjustment platform;
[0065] According to one embodiment of the present invention, the second coordinate system module 20 obtains a virtual coordinate system of the adjustment platform based on the reference coordinate system obtained by the first coordinate system module 10, including: determining an initial virtual coordinate system of the adjustment platform based on the reference coordinate system of the adjustment platform, and correcting the angle of the initial virtual coordinate system, specifically:
[0066] Select a first feature point and a second feature point distributed along the y-axis in the reference coordinate system on the adjustment platform; obtain the absolute value of the difference between the x-axis coordinates of the first feature point and the second feature point in the initial virtual coordinate system and the absolute value of the difference between their y-axis coordinates in the reference coordinate system, denoted as LAx and LAy respectively; determine the z-axis correction rotation angle of the initial virtual coordinate system by calculating the z-axis correction rotation angle RDz = Arctan(LAx / LAy) to obtain the z-axis of the virtual coordinate system.
[0067] A third feature point is selected on the adjustment platform and distributed along the x-axis direction with the first feature point in the reference coordinate system. The absolute values of the differences between the z-axis coordinates of the first feature point and the third feature point in the initial virtual coordinate system and the absolute values of the differences between their x-axis coordinates in the reference coordinate system are obtained and denoted as LABz and LAB, respectively. The y-axis correction rotation angle of the initial virtual coordinate system is determined by calculating the y-axis correction rotation angle RDy = Arctan(LABz / LAB) to obtain the y-axis of the virtual coordinate system. The reference coordinate system takes the first feature point as its origin, and the first feature point, the second feature point, and the third feature point are on the same horizontal plane.
[0068] And select the fifth and sixth feature points on the adjustment platform, which are distributed along the z-axis direction with the first feature point in the reference coordinate system, and obtain the absolute values of the differences between the z-axis coordinates of the first feature point and the fifth feature point in the initial virtual coordinate system and the reference coordinate system, respectively denoted as LACz and LAC; obtain the absolute values of the differences between the z-axis coordinates of the third feature point and the sixth feature point in the initial virtual coordinate system and the reference coordinate system, respectively denoted as LBDz and LBD; select the fourth feature point on the adjustment platform, which is distributed along the x-axis direction with the second feature point in the reference coordinate system, and obtain the absolute values of the differences between the z-axis coordinates of the first feature point and the fifth feature point in the initial virtual coordinate system and the reference coordinate system, respectively denoted as LBDz and LBD; The x-axis coordinates of the fourth feature point in the initial virtual coordinate system and the reference coordinate system are denoted as LABx and LAB, respectively. The spatial scaling factor of the initial virtual coordinate system is determined by calculating the scaling factor Sd = ∑(LACz,LBDz,LABx,LAx) / ∑(LAC,LBD,LAB,LA). The first feature point, the second feature point, the third feature point, and the fourth feature point are all located in the xoy plane, the first feature point, the third feature point, the fifth feature point, and the sixth feature point are all located in the xoz plane, and the first feature point and the third feature point are located on the x-axis.
[0069] According to one embodiment of the present invention, the joint coordinates include multiple joint optical point coordinates. The third acquisition module 30 acquires the joint coordinates of the driver's joint optical points in the reference coordinate system, specifically for: acquiring the length of the driver's human skeleton based on the multiple joint optical point coordinates; and processing the multiple joint optical point coordinates based on the length of the human skeleton and a preset skeleton length to obtain the joint coordinates.
[0070] The third coordinate system module 30 is used to establish multiple relative coordinate systems based on each moving part as a base point under the reference coordinate system. To illustrate establishing a corresponding relative coordinate system based on one moving part as a base point, a specially designed coordinate tool is used. This tool has a horizontal axis representing the X-axis and a vertical axis representing the Y-axis. The horizontal and vertical axes intersect perpendicularly, with the intersection point being the reference point O. The coordinate tool is set on the moving part, and one of the multiple optical points on the moving part is selected and aligned with the reference point O of the coordinate tool to establish a relative coordinate system corresponding to that moving part. The coordinate tool can also be set on other different moving parts, and in the same manner, multiple relative coordinate systems corresponding to each moving part are established based on each moving part as a base point.
[0071] The acquisition module 40 is used to acquire the actual coordinates of multiple optical points on multiple moving parts in the reference coordinate system, acquire the relative coordinates of multiple optical points on each moving part in the corresponding relative coordinate system, and acquire the joint coordinates of the driver joint optical points in the reference coordinate system.
[0072] According to one embodiment of the present invention, the acquisition module 40 is further configured to: acquire the optical point coordinates of the driver's helmet glasses in the reference coordinate system to obtain the position of the driver's eyes; acquire the z-axis rotation angle of the gyroscope on the helmet to determine the driver's field of vision rotation angle; and further configured to obtain the driver's head posture information and viewing angle information based on the position of the driver's eyes and the driver's field of vision rotation angle.
[0073] The control module 50 is used to map the actual coordinates of multiple optical points on multiple moving parts, the relative coordinates of multiple optical points, the joint coordinates of the driver, and the driver's head posture and viewing angle information into the virtual coordinate system when operating multiple moving parts on the adjustment platform, so as to simulate and present the driver's driving posture and vehicle driving changes during vehicle driving in the virtual coordinate system.
[0074] It should be noted that for details not disclosed in the control device of the driving simulation system in this embodiment of the invention, please refer to the details disclosed in the control method of the driving simulation system in this embodiment of the invention, which will not be repeated here.
[0075] According to an embodiment of the present invention, the control device of the driving simulation system adjusts the positions of multiple moving parts according to the current vehicle settings parameters via an adjustment platform. It then obtains the reference coordinate system of the adjustment platform through a first coordinate system module, and obtains a virtual coordinate system of the adjustment platform based on the reference coordinate system through a second coordinate system module. Finally, it establishes multiple relative coordinate systems in the reference coordinate system with each moving part as a base point through a third coordinate system module. The device acquires the actual coordinates of multiple optical points on the multiple moving parts in the reference coordinate system, the relative coordinates of the multiple optical points on each moving part in the relative coordinate systems, and the joint coordinates of the driver's joint optical points in the reference coordinate system. When operating the multiple moving parts on the adjustment platform, the control module maps the actual coordinates of the multiple optical points on the multiple moving parts, the relative coordinates of the multiple optical points, and the driver's joint coordinates onto the virtual coordinate system to simulate the driver's driving posture and vehicle driving changes during vehicle driving in the virtual coordinate system. Therefore, the device can reproduce realistic driving behavior in the virtual coordinate system, facilitating rapid verification of different vehicle models and reducing verification costs.
[0076] Corresponding to the above embodiments, the present invention also proposes a computer-readable storage medium.
[0077] The computer-readable storage medium of this invention stores a control program for a driving simulation system, which, when executed by a processor, implements the aforementioned control method for the driving simulation system.
[0078] According to the computer-readable storage medium of the present invention, by executing the control method of the driving simulation system described above, the real driving situation can be reproduced in a virtual coordinate system, which facilitates rapid verification of different vehicle models and reduces verification costs.
[0079] Corresponding to the above embodiments, the present invention also proposes a computer device.
[0080] like Figure 4 As shown, the computer device 100 of this embodiment may include: a memory 110, a processor 120, and a control program for a driving simulation system stored in the memory 110 and executable on the processor 120. When the processor 120 executes the control program for the driving simulation system, it implements the above-described control method for the driving simulation system.
[0081] The computer device according to the embodiments of the present invention, by executing the control method of the driving simulation system described above, can reproduce the real driving situation in a virtual coordinate system, which facilitates rapid verification of different vehicle models and reduces verification costs.
[0082] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.
[0083] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0084] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0085] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this invention, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0086] In this invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," "linking," and "fixing," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components, unless otherwise explicitly limited. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0087] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.
Claims
1. A control method for a driving simulation system, characterized in that: The driving simulation system comprises: an adjustment platform, on which a plurality of movable parts are arranged, and the method comprises: Acquire a reference coordinate system of the adjustment platform, acquire a virtual coordinate system of the adjustment platform according to the reference coordinate system, and establish a plurality of relative coordinate systems with each movable component as a base point under the reference coordinate system; Acquire the actual coordinates of a plurality of optical points on each of the movable parts in the reference coordinate system and the relative coordinates in the corresponding relative coordinate system, and acquire the joint coordinates of the optical points of the driver's joints in the reference coordinate system; When operating the plurality of movable parts, the actual coordinates of the plurality of optical points on the plurality of movable parts, the relative coordinates of the plurality of optical points and the joint coordinates of the driver are mapped into the virtual coordinate system, so as to simulate and present the driving posture of the driver and the vehicle driving changes during the vehicle driving process in the virtual coordinate system.
2. The control method of the driving simulation system according to claim 1, characterized in that: Acquiring a virtual coordinate system of the adjustment platform according to the reference coordinate system of the adjustment platform includes: The initial virtual coordinate system of the adjustment platform is acquired according to the reference coordinate system of the adjustment platform, and the z-axis angle of the initial virtual coordinate system is corrected, specifically, the first feature point and the second feature point on the adjustment platform distributed along the y-axis direction in the reference coordinate system are selected; Obtaining the absolute value of the difference between the x-axis coordinates of the first feature point and the second feature point in the initial virtual coordinate system and the absolute value of the difference between the y-axis coordinates of the first feature point and the second feature point in the reference coordinate system, which are respectively recorded as LAx and LAy; The z-axis correction rotation angle of the initial virtual coordinate system is determined by calculating the formula of z-axis correction rotation angle RDz=Arctan(LAx / LAy) to obtain the z-axis of the virtual coordinate system.
3. The control method of the driving simulation system according to claim 2, characterized in that: Acquiring a virtual coordinate system of the adjustment platform according to the reference coordinate system of the adjustment platform includes: The initial virtual coordinate system of the adjustment platform is obtained according to the reference coordinate system of the adjustment platform, and the y-axis rotation angle of the initial virtual coordinate system is corrected, specifically: a third feature point on the adjustment platform that is distributed along the x-axis direction with the first feature point in the reference coordinate system is selected, and the absolute value of the difference between the z-axis coordinates of the first feature point and the third feature point in the initial virtual coordinate system and the absolute value of the difference between the x-axis coordinates in the reference coordinate system are obtained, which are respectively recorded as LABz and LAB; The y-axis correction rotation angle of the initial virtual coordinate system is determined by calculating the y-axis correction rotation angle RDy=Arctan(LABz / LAB) to obtain the y-axis of the virtual coordinate system. The reference coordinate system takes the first feature point as its origin, and the first feature point, the second feature point and the third feature point are on the same horizontal plane.
4. The control method of the driving simulation system according to claim 3, characterized in that: The method further comprises: obtaining the virtual coordinate system of the adjustment platform according to the reference coordinate system of the adjustment platform, and correcting the spatial size of the initial virtual coordinate system, specifically: Selecting a fifth feature point and a sixth feature point on the adjustment platform that are distributed along the z-axis direction with the first feature point in the reference coordinate system, and obtaining the absolute values of the differences between the z-axis coordinates of the first feature point and the fifth feature point in the initial virtual coordinate system and the reference coordinate system, respectively, which are recorded as LACz and LAC; Obtaining absolute values of differences between the z-axis coordinates of the third feature point and the sixth feature point in the initial virtual coordinate system and the reference coordinate system, respectively, which are recorded as LBDz and LBD; Selecting a fourth feature point on the adjustment platform that is distributed along the x-axis direction with the second feature point in the reference coordinate system, and obtaining the x-axis coordinates of the second feature point and the fourth feature point in the initial virtual coordinate system and the reference coordinate system, respectively, which are recorded as LABx and LAB; The spatial size scaling ratio of the initial virtual coordinate system is determined by calculating the scaling ratio Sd=∑(LACz, LBDz, LABx, LAx) / ∑(LAC, LBD, LAB, LA), wherein the first feature point, the second feature point, the third feature point and the fourth feature point are all in the xoy plane, the first feature point, the third feature point, the fifth feature point and the sixth feature point are all in the xoz plane, and the first feature point and the third feature point are located on the x-axis.
5. The control method of the driving simulation system according to claim 1, characterized in that: The step of obtaining the joint coordinates of the driver's joint optical points in the reference coordinate system includes: Acquiring the human skeleton length of the driver according to the coordinates of a plurality of optical points on the joints of the driver; The acquired human bone length of the driver is compared with the preset bone length, and the optical point coordinates that meet the preset bone length are determined as the joint coordinates of the driver in the reference coordinate system.
6. The control method of the driving simulation system according to claim 1, characterized in that: Also includes: Obtaining the optical point coordinates of the driver's helmet glasses in the reference coordinate system, and mapping the optical point coordinates in the virtual coordinate system to obtain the position of the driver's eyes; Obtaining the z-axis rotation angle of the gyroscope on the helmet to determine the rotation angle of the driver's field of view; The driver's head posture information and viewing angle information are obtained according to the position of the driver's eyes and the driver's field of view rotation angle.
7. A control device for a driving simulation system, characterized in that: The driving simulation system comprises: an adjustment platform, on which a plurality of movable parts are arranged, each of which has a plurality of optical points, and the device comprises: A first coordinate system module, used for acquiring a reference coordinate system of the adjustment platform; A second coordinate system module, used for acquiring a virtual coordinate system of the adjustment platform according to the reference coordinate system of the adjustment platform; A third coordinate system module, used to establish multiple relative coordinate systems with each movable component as a base point in the reference coordinate system; An acquisition module, used for acquiring the actual coordinates of multiple optical points on multiple movable parts in the reference coordinate system, acquiring the relative coordinates of multiple optical points on each movable part in the corresponding relative coordinate system, and acquiring the joint coordinates of the optical points of the driver's joints in the reference coordinate system; The control module is used to map the actual coordinates of multiple optical points on the multiple movable parts, the relative coordinates of the multiple optical points and the joint coordinates of the driver into the virtual coordinate system when operating the multiple movable parts on the adjustment platform, so as to simulate and present the driving posture of the driver and the driving changes of the vehicle during the vehicle driving process in the virtual coordinate system.
8. A computer-readable storage medium, characterized in that: A control program of a driving simulation system is stored thereon, and when the control program of the driving simulation system is executed by a processor, a control method of a driving simulation system according to any one of claims 1 to 6 is implemented.
9. A computer device, characterized in that: The invention comprises a memory, a processor and a control program of a driving simulation system which is stored in the memory and can be run on the processor. When the processor executes the control program of the driving simulation system, the control method of the driving simulation system according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Motorist kinematics and kinetic parameter testing system
CN103105302A
Visual servo positioning and grabbing method
CN107234625A
