CN112885185A - Driving simulation method and device - Google Patents

Driving simulation method and device Download PDF

Info

Publication number
CN112885185A
CN112885185A CN202110093840.7A CN202110093840A CN112885185A CN 112885185 A CN112885185 A CN 112885185A CN 202110093840 A CN202110093840 A CN 202110093840A CN 112885185 A CN112885185 A CN 112885185A
Authority
CN
China
Prior art keywords
model
dimensional
vehicle
parking lot
driving
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
CN202110093840.7A
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.)
Inner Mongolia Juyu Surveying And Mapping Co ltd
Original Assignee
Inner Mongolia Juyu Surveying And Mapping Co ltd
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 Inner Mongolia Juyu Surveying And Mapping Co ltd filed Critical Inner Mongolia Juyu Surveying And Mapping Co ltd
Priority to CN202110093840.7A priority Critical patent/CN112885185A/en
Publication of CN112885185A publication Critical patent/CN112885185A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Educational Administration (AREA)
  • Educational Technology (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention provides a driving simulation method and device, and relates to the technical field of virtual driving. The method comprises the following steps: determining a target parking space and acquiring a three-dimensional parking lot model of a parking lot where the target parking space is located; acquiring parameters of a vehicle to be simulated, and establishing a corresponding three-dimensional vehicle model according to the parameters of the vehicle to be simulated; the scaling of the three-dimensional parking lot model and the scaling of the three-dimensional vehicle model relative to actual data are the same; acquiring an initial driving point, and placing a three-dimensional vehicle model in a three-dimensional parking lot model according to the initial driving point; and acquiring driving data input by a user, and moving the three-dimensional vehicle model according to the driving data. The method and the device can ensure that a user can simulate driving operation of the model which is zoomed according to actual data through the three-dimensional model, thereby ensuring that the parking space is accurately selected according to the driving simulation result.

Description

Driving simulation method and device
Technical Field
The invention relates to the technical field of virtual driving, in particular to a driving simulation method and device.
Background
With the continuous expansion of the urban scale, the quantity of motor vehicles kept is greatly increased, and more families purchase motor vehicles. The car owners all face the problem of buying the parking spaces after buying the cars, and when choosing the parking spaces, the car owners can generally choose the parking spaces only through the parameters of the cars and the parameters of the parking spaces or only through visual observation on site. The parking spaces selected by the method are suitable in size, but the positions of the parking spaces are inconvenient to pass in and out, a vehicle can be smoothly parked into the parking spaces by using a higher parking technology, and the parking spaces are also suitable in size, so that the space for opening the vehicle door is small, and the vehicle is easy to scratch and rub with vehicles in adjacent parking spaces.
The user can not accurately select the proper parking space when selecting the parking space by the mode.
Disclosure of Invention
The invention aims to provide a driving simulation method and a driving simulation device, which are used for solving the problem that a proper parking space cannot be accurately selected in the prior art.
In a first aspect, an embodiment of the present application provides a driving simulation method, where the method includes:
determining a target parking space and acquiring a three-dimensional parking lot model of a parking lot where the target parking space is located;
acquiring parameters of a vehicle to be simulated, and establishing a corresponding three-dimensional vehicle model according to the parameters of the vehicle to be simulated; the scaling of the three-dimensional parking lot model and the scaling of the three-dimensional vehicle model relative to actual data are the same;
acquiring an initial driving point, and placing a three-dimensional vehicle model in a three-dimensional parking lot model according to the initial driving point;
and acquiring driving data input by a user, and moving the three-dimensional vehicle model according to the driving data.
In the implementation process, the target parking space is determined firstly, and then the three-dimensional parking lot model of the parking lot where the target parking space is located is obtained. And then obtaining the vehicle parameters to be simulated, and establishing a three-dimensional vehicle model according to the vehicle parameters. And moving the three-dimensional vehicle model placed at the initial driving point of the three-dimensional parking lot according to the driving data input by the user. The method and the device can ensure that a user can simulate driving operation of the model which is zoomed according to actual data through the three-dimensional model, thereby ensuring that the parking space is accurately selected according to the driving simulation result.
In some embodiments of the present invention, before the step of determining the target parking space and obtaining the three-dimensional parking lot model of the parking lot in which the target parking space is located, the method further includes:
shooting a panoramic video of the parking lot at a fixed moving speed by using image acquisition equipment, wherein the shooting height of the image acquisition equipment in the shooting process is consistent with the height of eyes of a driver on a vehicle;
and establishing a sphere model in the virtual space, and pasting the panoramic video to the inner side of the sphere by editing a sphere model shader to obtain the three-dimensional parking lot model.
Above-mentioned in-process of realizing, shoot through image acquisition equipment in the parking area and obtain the panoramic video, in order to guarantee the accuracy of panoramic video and can gather the real picture in parking area, image acquisition equipment shoots with fixed translation rate in time to when shooing panoramic image, highly setting up the camera shooting of image acquisition equipment in with the driver when driving eyes the height is the same on the vehicle. Therefore, the user can more accurately simulate the driving experience when simulating the driving.
In some embodiments of the invention, after the steps of obtaining driving data input by a user and moving the three-dimensional vehicle model according to the driving data, the method comprises:
and acquiring a display image according to a pre-established relation between the panoramic video picture change speed and the simulated driving signal, driving data and the three-dimensional parking lot model.
In some embodiments of the present invention, before the step of obtaining the display image according to the relationship between the image change speed of the pre-established three-dimensional parking lot model and the simulated driving signal, the driving data, and the three-dimensional parking lot model, the method further includes:
calculating the average acceleration value of the vehicle according to the dynamic parameters of the vehicle;
calculating the acceleration of an accelerator, the acceleration of a brake and the current acceleration of the vehicle according to the simulated driving signal and the average acceleration value;
calculating the current speed of the vehicle according to the current acceleration:
and calculating a scene video playing rate coefficient according to the current speed and the attitude deflection angle so as to obtain the relation between the panoramic video picture change speed and the simulated driving signal.
In some embodiments of the present invention, after the step of obtaining driving data input by the user and moving the three-dimensional vehicle model according to the driving data, the method further comprises:
and generating a collision prompt according to the condition that the three-dimensional vehicle model moves in the three-dimensional parking lot model.
In some embodiments of the invention, the step of obtaining parameters of the vehicle to be simulated comprises:
acquiring a vehicle model input by a user;
searching whether a vehicle model exists in a database, and if so, acquiring a parameter corresponding to the vehicle model;
and if the vehicle model does not exist in the database, acquiring the vehicle model on the Internet.
In a second aspect, an embodiment of the present application provides a driving simulation apparatus, including:
the parking lot model determining module is used for determining a target parking space and acquiring a three-dimensional parking lot model of a parking lot where the target parking space is located;
the vehicle model determining module is used for acquiring parameters of a vehicle to be simulated and establishing a corresponding three-dimensional vehicle model according to the parameters of the vehicle to be simulated; the scaling of the three-dimensional parking lot model and the scaling of the three-dimensional vehicle model relative to actual data are the same;
the model initialization module is used for acquiring an initial driving point and placing the three-dimensional vehicle model in the three-dimensional parking lot model according to the initial driving point;
and the driving simulation module is used for acquiring driving data input by a user and moving the three-dimensional vehicle model according to the driving data.
In some embodiments of the invention, the apparatus further comprises:
the panoramic video acquisition module is used for shooting a panoramic video of the parking lot at a fixed moving speed by using the image acquisition equipment, and the shooting height of the image acquisition equipment in the shooting process is consistent with the height of eyes of a driver on a vehicle;
and the three-dimensional parking lot model establishing module is used for establishing a sphere model in the virtual space, and pasting the panoramic video to the inner side of the sphere through editing a sphere model coloring device so as to obtain the three-dimensional parking lot model.
In some embodiments of the invention, an apparatus comprises:
and the display image acquisition module is used for acquiring a display image according to the pre-established relation between the panoramic video picture change speed and the simulated driving signal, the driving data and the three-dimensional parking lot model.
In some embodiments of the invention, the apparatus further comprises:
the average acceleration value calculation module is used for calculating the average acceleration value of the vehicle according to the dynamic parameters of the vehicle;
the acceleration calculation module is used for calculating the acceleration of an accelerator, the acceleration of a brake and the current acceleration of the vehicle according to the simulated driving signal and the average acceleration value;
and the current speed calculation module is used for calculating the current speed of the vehicle according to the current acceleration:
and the picture change relation determining module is used for calculating a scene video playing rate coefficient according to the current speed and the attitude deflection angle so as to obtain the relation between the picture change speed of the panoramic video and the simulated driving signal.
In some embodiments of the invention, the apparatus further comprises:
and the collision prompt module is used for generating a collision prompt according to the condition that the three-dimensional vehicle model moves in the three-dimensional parking lot model.
In some embodiments of the invention, the vehicle model determination module comprises:
the vehicle model acquisition unit is used for acquiring the vehicle model input by a user;
the first parameter acquisition unit is used for searching whether the vehicle model exists in the database, and if so, acquiring a parameter corresponding to the vehicle model;
and the second parameter acquisition unit is used for acquiring the vehicle model on the Internet if the vehicle model does not exist in the database.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a memory for storing one or more programs; a processor. The program or programs, when executed by a processor, implement the method of any of the first aspects as described above.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the method according to any one of the first aspect described above.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
FIG. 1 is a flow chart of a method for simulating driving according to an embodiment of the present invention;
fig. 2 is a block diagram of a driving simulation apparatus according to an embodiment of the present invention;
fig. 3 is a block diagram of an electronic device according to an embodiment of the present invention.
Icon: 100-a simulated driving device; 110-a parking lot model determination module; 120-a vehicle model determination module; 130-a model initialization module; 140-simulated driving module; 101-a memory; 102-a processor; 103-communication interface.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the individual features of the embodiments can be combined with one another without conflict.
Referring to fig. 1, fig. 1 is a flowchart of a driving simulation method according to an embodiment of the present invention. The simulated driving method comprises the following steps:
step S110: and determining a target parking space and acquiring a three-dimensional parking lot model of a parking lot where the target parking space is located.
When the target parking space is determined, the parking space which best meets the requirements of the user can be matched for the user according to the requirements of the user to serve as the target parking space, and the parking space which is directly input and selected by the user can be obtained to serve as the target parking space.
And after the target parking space is determined, obtaining a model of a three-dimensional parking lot of the parking lot where the target parking space is located. The three-dimensional parking lot model can enable a user to intuitively feel whether the actual size of the parking lot is appropriate or not according to the three-dimensional parking lot model, and therefore the user can be guaranteed to accurately select an appropriate parking space in the parking lot.
Step S120: acquiring parameters of a vehicle to be simulated, and establishing a corresponding three-dimensional vehicle model according to the parameters of the vehicle to be simulated; wherein, the scaling of the three-dimensional parking lot model and the three-dimensional vehicle model relative to the actual data is the same.
With the diversification of the models of the vehicles in the market, the vehicle models selectable by users become various, and because the models of the vehicles owned by different users are different, the parameters of the vehicle to be simulated can be obtained firstly before the simulated driving is carried out, and then the three-dimensional vehicle model is established according to the parameters. When the parameters of the vehicle to be simulated are obtained, the model of the vehicle to be simulated input by a user can be obtained from a vehicle parameter database, and the vehicle parameter database is all parameters of vehicles of different brands and different models which are established in advance. The user can also directly input parameters of the parameters to be simulated, or adjust the acquired vehicle parameters according to the vehicle model, and the like. For example, if the vehicle width of a certain user a is 1.7 meters, but it is relatively easy for the user a to stop the vehicle, the user a may modify the vehicle model number in the acquired parameters to 1.8 meters after inputting the vehicle model number. If the vehicle parameters of a certain user B are 1.7 meters in width, the parking technology of the user B is good, and the user B is not allowed to select a larger parking space by money, so that the user B can input the model of the vehicle, and when a three-dimensional vehicle model is established, the vehicle model can be simulated and established according to the parameters acquired by the input vehicle model.
In some embodiments of the invention, the step of obtaining parameters of the vehicle to be simulated comprises: acquiring a vehicle model input by a user; searching whether a vehicle model exists in a database, and if so, acquiring a parameter corresponding to the vehicle model; and if the vehicle model does not exist in the database, acquiring the vehicle model on the Internet.
Step S130: and acquiring an initial driving point, and placing the three-dimensional vehicle model in the three-dimensional parking lot model according to the initial driving point.
The initial driving point can be set according to the input of the client, and the initial driving point can also be preset. The entrance of the parking lot can be generally set as a preset initial driving point. When there are a plurality of entrances, the main entrance may be set as a preset initial travel point. The requirement of a customer on simulated driving can be met by acquiring the initial driving point, and the three-dimensional vehicle model is placed in the three-dimensional parking lot model according to the initial driving point. For example, if a customer wants to simulate driving from an entrance of a parking lot to a selected target space, the entrance of the parking lot may be selected as the initial driving point, and if a certain customer wants to simulate only parking in the target space, a certain point on a lane near the target space may be selected as the initial driving point.
Step S140: and acquiring driving data input by a user, and moving the three-dimensional vehicle model according to the driving data.
When the user carries out the simulated driving, the driving data is obtained according to the operation of the simulated driving. And then moving the three-dimensional vehicle model according to the input simulated driving data so as to achieve the purpose of simulating and driving the three-dimensional vehicle model in the three-dimensional parking lot model. When moving the three-dimensional vehicle model according to the driving data, it is necessary to convert the driving data input by the user into driving data corresponding to the scaling of the three-dimensional vehicle model and the three-dimensional parking lot model.
In the implementation process, the target parking space is determined firstly, and then the three-dimensional parking lot model of the parking lot where the target parking space is located is obtained. And then obtaining the vehicle parameters to be simulated, and establishing a three-dimensional vehicle model according to the vehicle parameters. And moving the three-dimensional vehicle model placed at the initial driving point of the three-dimensional parking lot according to the driving data input by the user. The method and the device can ensure that a user can simulate driving operation of the model which is zoomed according to actual data through the three-dimensional model, thereby ensuring that the parking space is accurately selected according to the driving simulation result.
Before the target parking space is determined and the three-dimensional parking lot model of the parking lot where the target parking space is located is obtained, the three-dimensional parking lot model can be obtained in various different modes, and the following modes are simply introduced.
First, a three-dimensional parking lot model may be obtained by first obtaining various parameters of the parking lot, such as the scale size of the parking lot, layout data in the parking lot, and the like. The initial frame of the three-dimensional parking lot model can be established in equal proportion according to the scale and size of the parking lot, for example, if the parking lot is a double-layer parking lot, a double-layer parking lot model initial frame can be established, if the parking lot is a single-layer parking lot, a single-layer parking lot model initial frame can be established, and then the initial frame is further filled according to layout data in the parking lot to obtain the three-dimensional parking lot model. For example, the specific positions of the structures such as the load-bearing columns and the wall surfaces in the parking lot can be obtained according to the layout data, the load-bearing columns and the wall surfaces can be proportionally arranged in the three-dimensional parking lot model according to the layout data, and the parameters of the parking lot further include the positions of all parking spaces, the size of each parking space and the like. When various parameters of the parking lot are acquired, the parameters can be acquired by acquiring a blueprint and a design construction drawing before the parking lot is established. But also by means of field measurements.
The second mode of obtaining the three-dimensional parking lot model can be achieved by firstly using the image acquisition equipment to shoot the panoramic video of the parking lot at a fixed moving speed, and the shooting height of the image acquisition equipment in the shooting process is consistent with the eye height of a driver on a vehicle. And then establishing a sphere model in the virtual space, and pasting the panoramic video to the inner side of the sphere through an editing sphere model shader to obtain the three-dimensional parking lot model.
The image acquisition equipment can be a panoramic camera, a three-dimensional laser scanner and the like. The type of the image acquisition device can be determined according to actual requirements, and the type of the image acquisition device is not limited herein.
Above-mentioned in-process of realizing, shoot through image acquisition equipment in the parking area and obtain the panoramic video, in order to guarantee the accuracy of panoramic video and can gather the real picture in parking area, image acquisition equipment shoots with fixed translation rate in time to when shooing panoramic image, highly setting up the camera shooting of image acquisition equipment in with the driver when driving eyes the height is the same on the vehicle. Therefore, the user can more accurately simulate the driving experience when simulating the driving.
In some embodiments of the invention, after the steps of obtaining driving data input by a user and moving the three-dimensional vehicle model according to the driving data, the method comprises:
and acquiring a display image according to a pre-established relation between the panoramic video picture change speed and the simulated driving signal, driving data and the three-dimensional parking lot model. Therefore, the user can watch the real picture of the parking lot, the sense of reality of the simulated driving is enhanced, and the immersive simulated driving experience can be realized.
In some embodiments of the present invention, before the step of obtaining the display image according to the relationship between the image change speed of the pre-established three-dimensional parking lot model and the simulated driving signal, the driving data, and the three-dimensional parking lot model, the method further includes: calculating the average acceleration value of the vehicle according to the dynamic parameters of the vehicle; calculating the acceleration of an accelerator, the acceleration of a brake and the current acceleration of the vehicle according to the simulated driving signal and the average acceleration value; calculating the current speed of the vehicle according to the current acceleration: and calculating a scene video playing rate coefficient according to the current speed and the attitude deflection angle so as to obtain the relation between the panoramic video picture change speed and the simulated driving signal.
In some embodiments of the present invention, after the step of obtaining driving data input by the user and moving the three-dimensional vehicle model according to the driving data, the method further comprises: and generating a collision prompt according to the condition that the three-dimensional vehicle model moves in the three-dimensional parking lot model.
In order to improve the reality of the simulated driving, when the three-dimensional vehicle model is moved according to the driving data input by the user, the situation that the three-dimensional vehicle model collides with a non-space part in the three-dimensional parking lot model possibly occurs, namely the situation that the three-dimensional vehicle model collides and scratches occur in the driving process, and at the moment, a collision prompt can be generated to remind a client.
In addition, when the three-dimensional vehicle model is moved according to the driving data input by the user, if the three-dimensional vehicle model moves to a preset reminding point in the three-dimensional parking lot model, voice prompt or picture prompt can be started, so that the user can know the condition of the parking lot more conveniently.
For example, if the height of the limit at a certain place in the parking lot may be low, a warning point may be set at the place to warn the user whether the height of the vehicle exceeds the limit. In addition, if a scratch accident easily occurs at a certain place of the parking lot, the place can be set as a reminding point to remind a user of paying attention, and the place is a scratch multi-occurrence area, so that the user can conveniently determine whether a target parking space is a proper parking space.
Based on the same inventive concept, the present invention further provides a driving simulation apparatus 100, please refer to fig. 2, and fig. 2 is a block diagram of a driving simulation apparatus according to an embodiment of the present invention. The driving simulation apparatus 100 includes:
the parking lot model determining module 110 is configured to determine a target parking space and obtain a three-dimensional parking lot model of a parking lot where the target parking space is located;
the vehicle model determining module 120 is configured to obtain parameters of a vehicle to be simulated, and establish a corresponding three-dimensional vehicle model according to the parameters of the vehicle to be simulated; the scaling of the three-dimensional parking lot model and the scaling of the three-dimensional vehicle model relative to actual data are the same;
the model initialization module 130 is configured to obtain an initial driving point, and place the three-dimensional vehicle model in the three-dimensional parking lot model according to the initial driving point;
and the driving simulation module 140 is configured to obtain driving data input by a user, and move the three-dimensional vehicle model according to the driving data.
In some embodiments of the invention, the apparatus further comprises:
the panoramic video acquisition module is used for shooting a panoramic video of the parking lot at a fixed moving speed by using the image acquisition equipment, and the shooting height of the image acquisition equipment in the shooting process is consistent with the height of eyes of a driver on a vehicle;
and the three-dimensional parking lot model establishing module is used for establishing a sphere model in the virtual space, and pasting the panoramic video to the inner side of the sphere through editing a sphere model coloring device so as to obtain the three-dimensional parking lot model.
In some embodiments of the invention, an apparatus comprises:
and the display image acquisition module is used for acquiring a display image according to the pre-established relation between the panoramic video picture change speed and the simulated driving signal, the driving data and the three-dimensional parking lot model.
In some embodiments of the invention, the apparatus further comprises:
the average acceleration value calculation module is used for calculating the average acceleration value of the vehicle according to the dynamic parameters of the vehicle;
the acceleration calculation module is used for calculating the acceleration of an accelerator, the acceleration of a brake and the current acceleration of the vehicle according to the simulated driving signal and the average acceleration value;
and the current speed calculation module is used for calculating the current speed of the vehicle according to the current acceleration:
and the picture change relation determining module is used for calculating a scene video playing rate coefficient according to the current speed and the attitude deflection angle so as to obtain the relation between the picture change speed of the panoramic video and the simulated driving signal.
In some embodiments of the invention, the apparatus further comprises:
and the collision prompt module is used for generating a collision prompt according to the condition that the three-dimensional vehicle model moves in the three-dimensional parking lot model.
In some embodiments of the invention, the vehicle model determination module 120 comprises:
the vehicle model acquisition unit is used for acquiring the vehicle model input by a user;
the first parameter acquisition unit is used for searching whether the vehicle model exists in the database, and if so, acquiring a parameter corresponding to the vehicle model;
and the second parameter acquisition unit is used for acquiring the vehicle model on the Internet if the vehicle model does not exist in the database.
Referring to fig. 3, fig. 3 is a schematic structural block diagram of an electronic device according to an embodiment of the present disclosure. The electronic device comprises a memory 101, a processor 102 and a communication interface 103, wherein the memory 101, the processor 102 and the communication interface 103 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The memory 101 may be used to store software programs and modules, such as program instructions/modules corresponding to the driving simulation apparatus 100 provided in the embodiment of the present application, and the processor 102 executes the software programs and modules stored in the memory 101, so as to execute various functional applications and data processing. The communication interface 103 may be used for communicating signaling or data with other node devices.
The Memory 101 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
The processor 102 may be an integrated circuit chip having signal processing capabilities. The Processor 102 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
It will be appreciated that the configuration shown in fig. 3 is merely illustrative and that the electronic device may include more or fewer components than shown in fig. 3 or have a different configuration than shown in fig. 3. The components shown in fig. 3 may be implemented in hardware, software, or a combination thereof.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In summary, the driving simulation method and device provided by the embodiment of the application include: determining a target parking space and acquiring a three-dimensional parking lot model of a parking lot where the target parking space is located; acquiring parameters of a vehicle to be simulated, and establishing a corresponding three-dimensional vehicle model according to the parameters of the vehicle to be simulated; the scaling of the three-dimensional parking lot model and the scaling of the three-dimensional vehicle model relative to actual data are the same; acquiring an initial driving point, and placing a three-dimensional vehicle model in a three-dimensional parking lot model according to the initial driving point; and acquiring driving data input by a user, and moving the three-dimensional vehicle model according to the driving data. In the implementation process, the target parking space is determined firstly, and then the three-dimensional parking lot model of the parking lot where the target parking space is located is obtained. And then obtaining the vehicle parameters to be simulated, and establishing a three-dimensional vehicle model according to the vehicle parameters. And moving the three-dimensional vehicle model placed at the initial driving point of the three-dimensional parking lot according to the driving data input by the user. The method and the device can ensure that a user can simulate driving operation of the model which is zoomed according to actual data through the three-dimensional model, thereby ensuring that the parking space is accurately selected according to the driving simulation result.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (10)

1. A method of simulating driving, the method comprising:
determining a target parking space and acquiring a three-dimensional parking lot model of a parking lot where the target parking space is located;
acquiring parameters of a vehicle to be simulated, and establishing a corresponding three-dimensional vehicle model according to the parameters of the vehicle to be simulated; wherein the three-dimensional parking lot model and the three-dimensional vehicle model are scaled the same with respect to actual data;
acquiring an initial driving point, and placing the three-dimensional vehicle model in the three-dimensional parking lot model according to the initial driving point;
and acquiring driving data input by a user, and moving the three-dimensional vehicle model according to the driving data.
2. The method of claim 1, wherein the steps of determining a target space and obtaining a three-dimensional parking lot model of a parking lot in which the target space is located are preceded by the method further comprising:
shooting a panoramic video of the parking lot at a fixed moving speed by using image acquisition equipment, wherein the shooting height of the image acquisition equipment in the shooting process is consistent with the height of eyes of a driver on a vehicle;
and establishing a sphere model in the virtual space, and pasting the panoramic video to the inner side of the sphere through an editing sphere model shader to obtain the three-dimensional parking lot model.
3. The method of claim 2, wherein after the steps of obtaining user-entered driving data and moving the three-dimensional vehicle model according to the driving data, the method comprises:
and acquiring a display image according to a pre-established relation between the panoramic video picture change speed and the simulated driving signal, the driving data and the three-dimensional parking lot model.
4. The method of claim 3, wherein before the step of obtaining the display image according to the relationship between the image change speed of the three-dimensional parking lot model and the simulated driving signal, the driving data and the three-dimensional parking lot model, the method further comprises:
calculating the average acceleration value of the vehicle according to the dynamic parameters of the vehicle;
calculating the acceleration of the accelerator, the acceleration of the brake and the current acceleration of the vehicle according to the simulated driving signal and the average acceleration value;
calculating a current speed of the vehicle according to the current acceleration:
and calculating a scene video playing rate coefficient according to the current speed and the attitude deflection angle so as to obtain the relation between the panoramic video picture change speed and the simulated driving signal.
5. The method of claim 1, wherein after the steps of obtaining user-entered driving data and moving the three-dimensional vehicle model according to the driving data, the method further comprises:
and generating a collision prompt according to the condition that the three-dimensional vehicle model moves in the three-dimensional parking lot model.
6. The method of claim 1, wherein the step of obtaining parameters of the vehicle to be simulated comprises:
acquiring a vehicle model input by a user;
searching whether the vehicle model exists in a database, and if so, acquiring a parameter corresponding to the vehicle model;
and if the vehicle model does not exist in the database, acquiring the vehicle model on the Internet.
7. A simulated driving apparatus, said apparatus comprising:
the parking lot model determining module is used for determining a target parking space and acquiring a three-dimensional parking lot model of a parking lot where the target parking space is located;
the vehicle model determining module is used for acquiring parameters of a vehicle to be simulated and establishing a corresponding three-dimensional vehicle model according to the parameters of the vehicle to be simulated; wherein the three-dimensional parking lot model and the three-dimensional vehicle model are scaled the same with respect to actual data;
the model initialization module is used for acquiring an initial driving point and placing the three-dimensional vehicle model in the three-dimensional parking lot model according to the initial driving point;
and the driving simulation module is used for acquiring driving data input by a user and moving the three-dimensional vehicle model according to the driving data.
8. The apparatus of claim 7, wherein the apparatus further comprises:
the panoramic video acquisition module is used for shooting a panoramic video of the parking lot at a fixed moving speed by using image acquisition equipment, wherein the shooting height of the image acquisition equipment in the shooting process is consistent with the height of eyes of a driver on a vehicle;
and the three-dimensional parking lot model establishing module is used for establishing a sphere model in the virtual space, and pasting the panoramic video to the inner side of the sphere through an editing sphere model shader so as to obtain the three-dimensional parking lot model.
9. An electronic device, comprising:
a memory for storing one or more programs;
a processor;
the one or more programs, when executed by the processor, implement the method of any of claims 1-6.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-6.
CN202110093840.7A 2021-01-22 2021-01-22 Driving simulation method and device Pending CN112885185A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110093840.7A CN112885185A (en) 2021-01-22 2021-01-22 Driving simulation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110093840.7A CN112885185A (en) 2021-01-22 2021-01-22 Driving simulation method and device

Publications (1)

Publication Number Publication Date
CN112885185A true CN112885185A (en) 2021-06-01

Family

ID=76050640

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110093840.7A Pending CN112885185A (en) 2021-01-22 2021-01-22 Driving simulation method and device

Country Status (1)

Country Link
CN (1) CN112885185A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113947670A (en) * 2021-09-18 2022-01-18 北京城市网邻信息技术有限公司 Information display method and device, electronic equipment and readable medium
CN114779665A (en) * 2022-06-14 2022-07-22 小米汽车科技有限公司 Automatic parking simulation test method and device and readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102982703A (en) * 2012-12-12 2013-03-20 成都合纵连横数字科技有限公司 Interactive method of automobile driving simulator and virtual traffic environment simulation system
US20130238365A1 (en) * 2012-03-06 2013-09-12 State Farm Mutual Automobile Insurance Company Online system for training novice drivers and rating insurance products
CN104851330A (en) * 2015-05-19 2015-08-19 景晏铭 Parking-in-place simulated training method and system
CN106710360A (en) * 2016-02-03 2017-05-24 北京易驾佳信息科技有限公司 Intelligent driving training system and method based on augment virtual reality man-machine interaction
CN109887372A (en) * 2019-04-16 2019-06-14 北京中公高远汽车试验有限公司 Driving training analogy method, electronic equipment and storage medium
CN110109552A (en) * 2019-05-23 2019-08-09 重庆大学 Virtual driving scene modeling method based on true environment
CN111161563A (en) * 2020-01-06 2020-05-15 珠海丽亭智能科技有限公司 Method for guiding vehicle to stop
CN210955592U (en) * 2019-11-14 2020-07-07 苏州建设交通高等职业技术学校 Corridor parking training device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130238365A1 (en) * 2012-03-06 2013-09-12 State Farm Mutual Automobile Insurance Company Online system for training novice drivers and rating insurance products
CN102982703A (en) * 2012-12-12 2013-03-20 成都合纵连横数字科技有限公司 Interactive method of automobile driving simulator and virtual traffic environment simulation system
CN104851330A (en) * 2015-05-19 2015-08-19 景晏铭 Parking-in-place simulated training method and system
CN106710360A (en) * 2016-02-03 2017-05-24 北京易驾佳信息科技有限公司 Intelligent driving training system and method based on augment virtual reality man-machine interaction
CN109887372A (en) * 2019-04-16 2019-06-14 北京中公高远汽车试验有限公司 Driving training analogy method, electronic equipment and storage medium
CN110109552A (en) * 2019-05-23 2019-08-09 重庆大学 Virtual driving scene modeling method based on true environment
CN210955592U (en) * 2019-11-14 2020-07-07 苏州建设交通高等职业技术学校 Corridor parking training device
CN111161563A (en) * 2020-01-06 2020-05-15 珠海丽亭智能科技有限公司 Method for guiding vehicle to stop

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113947670A (en) * 2021-09-18 2022-01-18 北京城市网邻信息技术有限公司 Information display method and device, electronic equipment and readable medium
CN114779665A (en) * 2022-06-14 2022-07-22 小米汽车科技有限公司 Automatic parking simulation test method and device and readable storage medium

Similar Documents

Publication Publication Date Title
US9805505B2 (en) Estimation of object properties in 3D world
JP5436574B2 (en) System and method for linking real world objects and object representations by pointing
US20180144549A1 (en) Augmented Reality for Providing Vehicle Functionality through Virtual Features
US20210150807A1 (en) Generating realistic point clouds
CN112885185A (en) Driving simulation method and device
CN109849788B (en) Information providing method, device and system
CN113535569A (en) Control effect determination method for automatic driving
CN114913506A (en) 3D target detection method and device based on multi-view fusion
US20170158200A1 (en) Method and electronic device for safe-driving detection
CN112861833A (en) Vehicle lane level positioning method and device, electronic equipment and computer readable medium
CN116956554A (en) Traffic simulation processing method and device, electronic equipment and storage medium
CN114385005A (en) Personalized virtual test driving device, method and storage medium
EP4150466A1 (en) 3d multi-object simulation
US20230196673A1 (en) Method and system for providing automated 3d modeling for xr online platform
CN113468735B (en) Laser radar simulation method, device, system and storage medium
Gomes et al. A QoE evaluation of an immersive virtual reality autonomous driving experience
CN113946259A (en) Vehicle information processing method and device, electronic equipment and readable medium
JP6481596B2 (en) Evaluation support device for vehicle head-up display
Lungaro et al. DriverSense: a hyper-realistic testbed for the design and evaluation of novel user interfaces in self-driving vehicles
Brogan et al. Automatic generation and population of a graphics-based driving simulator: Use of mobile mapping data for behavioral testing of drivers
CN110456784A (en) Obtained from range sensor to sensory perceptual system while diagnosis and shape estimation
CN113200039B (en) Road generation method and device based on parking, vehicle and readable medium
CN114202654B (en) Entity target model construction method, storage medium and computer equipment
US20210270630A1 (en) Probe data generating system for simulator
CN116091575A (en) Physical characteristic determining method, motion mode determining method and related equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210601

RJ01 Rejection of invention patent application after publication