CN111381517A - Simulation method, system and storage medium - Google Patents

Simulation method, system and storage medium Download PDF

Info

Publication number
CN111381517A
CN111381517A CN202010199829.4A CN202010199829A CN111381517A CN 111381517 A CN111381517 A CN 111381517A CN 202010199829 A CN202010199829 A CN 202010199829A CN 111381517 A CN111381517 A CN 111381517A
Authority
CN
China
Prior art keywords
parking
simulation
simulation object
lane
module
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.)
Granted
Application number
CN202010199829.4A
Other languages
Chinese (zh)
Other versions
CN111381517B (en
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN202010199829.4A priority Critical patent/CN111381517B/en
Publication of CN111381517A publication Critical patent/CN111381517A/en
Application granted granted Critical
Publication of CN111381517B publication Critical patent/CN111381517B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B17/00Systems involving the use of models or simulators of said systems
    • G05B17/02Systems involving the use of models or simulators of said systems electric

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Traffic Control Systems (AREA)

Abstract

The embodiment of the invention provides a simulation method, a simulation system and a storage medium. The method comprises the following steps: decelerating to a prescribed threshold value according to an operation flag indicating an operation state of the simulation object and a current position of the simulation object; when the vehicle decelerates to a specified threshold value, a parking area meeting the specified space requirement is searched; moving to a parkable lane within the parking area; decelerating and stopping; and when the current time exceeds the preset parking ending time, the normal driving is recovered.

Description

Simulation method, system and storage medium
Technical Field
The present application relates to the field of simulation technologies, and in particular, to a simulation method, system and storage medium.
Background
When a large-scale event is held, a large number of people are concentrated in a specific time. Before the event begins, the persons participating in the event travel from place to place by means of vehicles, wherein one important way is by means of vehicles. Thus, large activities are often accompanied by a large number of vehicles arriving in a concentrated manner, which need to be stopped shortly after arrival and removed after the departure.
It should be noted that the above background description is only for the sake of clarity and complete description of the technical solutions of the present invention and for the understanding of those skilled in the art. Such solutions are not considered to be known to the person skilled in the art merely because they have been set forth in the background section of the invention.
Disclosure of Invention
The inventor finds that when a large-scale event is held, the centralized arrival of a large number of vehicles can cause the vehicles and people to be excessively centralized to generate confusion and potential safety hazards, and through simulation and analysis of the scene, the event schemes such as vehicle scheduling schemes, traffic facility schemes and the like can be assisted to be evaluated and improved. However, there is currently no known solution for this simulation.
In order to solve the above-described problems or the like, embodiments of the present invention provide a simulation method, system, and storage medium capable of simulating the entire process of stopping and leaving of a vehicle for relevant analysis and evaluation; the embodiment of the invention also provides a simulation method, a simulation system and a storage medium, which can simulate the whole process of stopping and leaving of any carrier for relevant analysis and evaluation.
According to a first aspect of embodiments of the present invention, there is provided a simulation method, including: decelerating to a specified threshold according to an operation mark indicating an operation state of the simulation object and a current position of the simulation object; when the vehicle decelerates to a specified threshold value, a parking area meeting the specified space requirement is searched; moving to a parkable lane within the parking area; decelerating and stopping; and when the current time exceeds the preset parking ending time, the normal driving is recovered.
According to a second aspect of the embodiments of the present invention, there is provided a simulation method, including: decelerating to a prescribed threshold value according to an operation flag indicating an operation state of the simulation object and a current position of the simulation object; when the speed is reduced to a specified threshold value, a stop area meeting the specified space requirement is searched; a stoppable lane that moves into the stoppable region; stopping running at a reduced speed; and when the current time exceeds the preset stop end time, the normal running is resumed.
According to a third aspect of embodiments of the present invention, there is provided a simulation system, including: a deceleration module that decelerates to a prescribed threshold value according to an operation flag indicating an operation state of the simulation object and a current position; the parking area searching module is used for searching a parking area meeting the requirement of a specified space when the speed is reduced to a specified threshold value; a moving module that moves to a parkable lane within the parking area; a parking module that decelerates to park; and the recovery module is used for recovering the normal running when the current time exceeds the preset parking ending time.
According to a fourth aspect of the embodiments of the present invention, there is provided a simulation system including: a deceleration module that decelerates to a prescribed threshold value based on an operation flag indicating an operation state of a simulation object and a current position of the simulation object; a search module that searches for a stop area that satisfies a prescribed space requirement when decelerating to a prescribed threshold; a moving module that moves to a stoppable lane within the stoppable region; a stop module that decelerates to stop; and the recovery module is used for recovering the normal running when the current time exceeds the preset stop running end time.
According to a fifth aspect of embodiments of the present invention, there is provided a storage medium storing a program readable by a processor, the program causing the processor to perform the method of the first or second aspect.
One advantage of embodiments of the present invention is that the entire process of stopping and leaving of a vehicle can be simulated for relevant analysis and evaluation. Another advantage of the embodiments of the present invention is that the whole process of the stay and the departure of the vehicle can be simulated for the related analysis and evaluation.
Specific embodiments of the present invention are disclosed in detail with reference to the following description and drawings, indicating the manner in which the principles of the invention may be employed. It should be understood that the embodiments of the invention are not so limited in scope. The embodiments of the invention include many variations, modifications and equivalents within the spirit and scope of the appended claims.
Features that are described and/or illustrated with respect to one embodiment may be used in the same way or in a similar way in one or more other embodiments, in combination with or instead of the features of the other embodiments.
It should be emphasized that the term "comprises/comprising" when used herein, is taken to specify the presence of stated features, integers, steps or components but does not preclude the presence or addition of one or more other features, integers, steps or components.
Drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
fig. 1 is a schematic diagram of a simulation method according to embodiment 1 of the present invention.
Fig. 2 is a schematic diagram of an implementation manner of step 105 in embodiment 1 of the present invention.
Fig. 3 is another schematic diagram of the simulation method of embodiment 1 of the present invention.
Fig. 4 is a schematic diagram of a simulation system according to embodiment 2 of the present invention.
Fig. 5 is a schematic diagram of a mobile module 403 according to embodiment 2 of the present invention.
Fig. 6 is another schematic diagram of the simulation system of embodiment 2 of the present invention.
Fig. 7 is a schematic view of an electronic device according to embodiment 3 of the present invention.
Detailed Description
The foregoing and other features of the invention will become apparent from the following description taken in conjunction with the accompanying drawings. In the description and drawings, particular embodiments of the invention have been disclosed in detail as being indicative of some of the embodiments in which the principles of the invention may be employed, it being understood that the invention is not limited to the embodiments described, but, on the contrary, is intended to cover all modifications, variations, and equivalents falling within the scope of the appended claims.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations as a sequential process, many of the operations can be performed in parallel, concurrently, or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
In the embodiments of the present invention, the terms "first", "second", and the like are used for distinguishing different elements by name, but do not denote a spatial arrangement, a temporal order, or the like of the elements, and the elements should not be limited by the terms. The term "and/or" includes any and all combinations of one or more of the associated listed terms.
In embodiments of the invention, the singular forms "a", "an", and the like include the plural forms and are to be construed broadly as "a" or "an" and not limited to the meaning of "a" or "an"; furthermore, the term "comprising" should be understood to include both the singular and the plural, unless the context clearly dictates otherwise. Further, the term "according to" should be understood as "at least partially according to … …," and the term "based on" should be understood as "based at least partially on … …," unless the context clearly dictates otherwise.
It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may be present. In contrast, when an element is referred to as being "directly connected" or "directly coupled" to another element, there are no intervening elements present. Other words used to describe the relationship between elements (e.g., "between" versus "directly between", "adjacent" versus "directly adjacent to", etc.) should be interpreted in a similar manner.
It should also be noted that, in some alternative implementations, the functions/acts noted may occur out of the order noted in the figures. For example, two figures shown in succession may, in fact, be executed substantially concurrently, or the figures may sometimes be executed in the reverse order, depending upon the functionality/acts involved.
Various embodiments of the present invention will be described below with reference to the drawings. These embodiments are merely exemplary and are not intended to limit embodiments of the present invention.
Example 1
This embodiment 1 provides a simulation method. The simulation method can be used for simulating the whole process of stopping and leaving of the vehicle.
Fig. 1 is a schematic diagram of the simulation method of the present embodiment. As shown in fig. 1, the method includes:
step 101, according to an operation mark indicating the operation state of a simulation object and the current position of the simulation object, decelerating to a specified threshold value;
103, when the speed is reduced to a specified threshold value, a parking area meeting the specified space requirement is searched;
step 105, moving to a parking lane in the parking area;
step 107, decelerating and stopping;
and step 109, when the current time exceeds the preset parking ending time, the normal driving is recovered.
By the simulation method, the whole process of stopping and leaving of the vehicle can be simulated, and thus the simulation can be used for analysis and evaluation under the scene relevant to the process.
For example, the simulation method can be used for simulating a scene in which a plurality of vehicles park in a concentrated manner for passengers during a large-scale activity, so as to evaluate whether the parking area is sufficient, whether the vehicle scheduling scheme is reasonable, and the like. However, the simulation method of the present embodiment is not limited to the use in this scenario, and may be used to simulate, for example, a scenario in which a plurality of vehicles collectively park and load/unload goods near a cargo collection/distribution area.
In this embodiment, a simulation object may be constructed for a vehicle, and the simulation object may simulate the operation of the vehicle. Specifically, one simulation object may be constructed for each vehicle, and the above-mentioned step 101 and step 109 may be executed for each simulation object, so that the behavior of each vehicle can be simulated by the behavior of each simulation object.
In the present embodiment, the vehicle includes: various vehicles such as a large, medium or small passenger car, a private car, a taxi, a motorcycle, a bicycle, an electric bicycle, etc., and the vehicle may be a manned vehicle or an unmanned vehicle.
In the present embodiment, the operation flag is a flag indicating the operation state of the simulation object. The operating state of the simulation object may include, for example: normal driving, parking already/not, finding a parking space, decelerating parking, parking/not, parking failure, and the like.
In step 101, the predetermined threshold may be set according to actual conditions. The predetermined threshold may be a fixed value set in advance, or may be calculated by multiplying a normal running speed of the simulation target by a preset coefficient.
In one embodiment, the operation flag may include a first flag indicating whether the simulation object has performed parking, and in this case, the step 101 may include:
when the first flag of the simulation object indicates that the simulation object has made a stop and the current position of the simulation object is within a legal stop area, decelerating to a prescribed threshold.
Since in large activities the vehicle usually brings the passenger to the event location once, near the event start time, it is not usually necessary to stop the vehicle again after the vehicle has stopped once. Therefore, in the present embodiment, the first flag of the simulation object is used as a part of the basis for whether to decelerate to the predetermined threshold, so that the simulation object which has already simulated the parking passenger can be distinguished, and the process of simulating the parking passenger for many times can be avoided.
The first flag may indicate, for example, that the simulation object has made and has not made a parking, using True and False, respectively. The present embodiment is not limited to this, and may be expressed in other ways.
In the present embodiment, the legal parking area is a predetermined area around the parking possible position, for example, a road where the parking possible position is located.
In one embodiment, a road model and road attributes of each road may also be set in the simulation environment, and whether the current position is in a legal parking area may be determined by the road attributes, that is, whether the current position is located in a parking available road is determined.
In this embodiment, the simulation method may further include:
after slowing down the parking, or after the current time exceeds the parking end time, the first flag is configured to indicate that the simulation object has made the parking.
In this way, in the subsequent step, the simulation object can detect that it has simulated the stay-and-leave process through the first flag, and thus, the process is not simulated again.
In step 103, when the vehicle decelerates to the predetermined threshold, a parking area satisfying the predetermined space requirement is searched. In other words, in step 103, when the vehicle decelerates to the predetermined threshold, the vehicle continues to travel at the speed corresponding to the speed threshold until a parking area satisfying the predetermined space requirement is found.
In this embodiment, the step 105 may include:
when the current position of the simulation object is located within the parking area, the simulation object is moved to a parking available lane within the parking area (i.e., a parking area satisfying a prescribed space requirement).
In other words, when the current position of the simulation object is located within a parking area satisfying the prescribed space requirement, it is determined that the simulation object has found the parking area.
Parking areas that meet the specified space requirements are areas in which: the parkable lane has enough space to accommodate the current simulation object (specification attributes, which may include, for example, length, width, height, etc., may be set in advance for the corresponding simulation object based on the specification of the vehicle), and there is a buffer space for implementing the movement from the current position of the simulation object to the parkable lane. In this way, when the current position of the simulation object is located within the parking area satisfying the predetermined space requirement, it is possible to move to the parking available lane in the parking area and decelerate the parking. In china, the parkable lane in the parking area may be set as the rightmost lane in the parking area.
Fig. 2 is a schematic diagram of an implementation manner of step 105 of the present embodiment. In this embodiment, the step 105 may include (specifically, when the current position of the simulation object is located in the parking area, moving to a parking available lane in the parking area may include):
step 201, judging whether the current position of the simulation object is positioned in a parking available lane in the parking area;
and step 203, changing the lane to the parking available lane when the current position of the simulation object is not located in the parking available lane in the parking area.
In this embodiment, the step 107 may include:
and decelerating until the speed of the simulation object is zero.
In this way, the fact that the vehicle is already in a stopped state is represented by the speed of the simulation object being zero, and it is possible to perform such actions as getting off, loading, and unloading.
In this embodiment, the parking end time may be set empirically, or may be set by the following steps:
recording the time when the speed of the simulation object is zero as the parking starting time;
determining a parking period;
and setting a parking ending time according to the starting parking time and the parking period.
The parking period may be set empirically or may be determined based on a random distribution function. The random distribution function may be a gaussian distribution function, but this embodiment does not limit this, and other random distribution functions may also be used. Therefore, the calculated parking period can accord with the random distribution function, so that the parking period accords with the real distribution rule, and the simulation result is closer to the actual situation.
In step 109, when the current time exceeds the parking end time, the normal running is resumed. And the current time exceeds the parking ending time, namely the current time is later than the parking ending time. And (4) recovering the normal running, namely running at a normal running speed which is set according to the actual condition. In this way, the process of stopping and leaving of the simulation object simulation ends.
In one embodiment, the running flag may further include a second flag indicating whether the simulation object is in a parking state, and at this time, the simulation object may further perform the following steps:
configuring a second flag of the simulated object to indicate a parking state when the speed of the simulated object is zero;
the simulated object prohibits changing lanes when the second flag of the simulated object indicates that the simulated object is in a stopped state.
In the present embodiment, the parked state means a state in which the vehicle is stopped.
In this way, it is possible to detect whether or not the simulation object is in a stopped state by the second flag, and since the vehicle should not move when the vehicle is in the stopped state and other related operations such as getting off a passenger, loading or unloading goods, etc. are normally performed, it is possible to make the simulation closer to the actual situation by prohibiting the simulation object from changing lanes when it is detected that the simulation object is in the stopped state.
The second flag may indicate that the simulation object is in a parked state and not in a parked state, for example, using True and False, respectively. The present embodiment is not limited to this, and may be expressed in other ways.
In this embodiment, the simulation method may further include:
the second flag is configured to indicate that the vehicle is not in the parking state when the current time exceeds the parking end time.
In this way, the second flag can be updated in time.
In this embodiment, the simulation object may also be caused to perform:
when the simulation object has moved to the destination and a parking area satisfying the specified space requirement is not found, the simulation object is recorded as a parking failure.
In this embodiment, the simulation object may be recorded as a parking failure in various ways. For example, a third flag indicating parking success/failure may be set for the simulation object, or an additional data record may be set in the simulation environment for recording whether the parking of each simulation object is successful. Also, the present embodiment is not limited in the above manner.
Fig. 3 is another schematic diagram of the simulation method of the present embodiment. As shown in fig. 3, the method may include:
step 301, determining whether the first flag is not True; if the first flag is not True (False), execute step 302, otherwise execute step 313;
step 302, judging whether the current position of the simulation object is in a legal parking area; if the current position is in the legal parking area, executing step 303, otherwise returning to step 302;
step 303, decelerating to a specified threshold;
step 304; determining whether the current position of the simulation object has reached the destination; if the current location has reached the destination, go to step 306, otherwise go to step 305;
step 305; judging whether the current position of the simulation object is located in a parking area meeting the requirement of a specified space; if the current position is located in the parking area, executing step 307, otherwise returning to step 303;
step 306, recording the simulation object as parking failure;
step 307, determining a parking period;
step 308, moving to a parking lane in the parking area;
step 309, decelerating;
step 310, judging whether the speed is zero or not; if the speed is zero, executing step 311, otherwise returning to step 309;
step 311, recording the current time as a parking start time, setting a parking end time according to the parking start time and the parking period, configuring the first flag to indicate True, and configuring the second flag to True;
step 312, determining whether the current time exceeds the parking end time; if the current time exceeds the parking end time, executing step 313, otherwise returning to step 312;
step 313, configuring the second flag as False;
and step 314, recovering the normal running.
In the above simulation method, the initial values of the first flag and the second flag may be both configured to False, that is, the initial state of the simulation object may be configured such that no parking is performed and lane change is allowed. In addition, during execution of the method, it may be periodically determined whether the second flag is True, and if the second flag is True, lane change is prohibited until lane change is permitted again when the second flag is False.
Fig. 3 shows a specific embodiment of the present embodiment, but it is not limited to the present embodiment.
Through the simulation method of the embodiment, the stopping and leaving processes of the vehicle can be simulated for relevant analysis and evaluation.
Example 2
This embodiment 2 provides a simulation method. The same contents of embodiment 2 as those of embodiment 1 are not repeated, and the following description will be directed to the differences between embodiment 2 and embodiment 1.
The simulation method of the embodiment comprises the following steps:
decelerating to a prescribed threshold value according to an operation flag indicating an operation state of the simulation object and a current position of the simulation object;
when the speed is reduced to a specified threshold value, a stop area meeting the specified space requirement is searched;
a stoppable lane that moves into the stoppable region;
stopping running at a reduced speed;
and when the current time exceeds the preset stop end time, the normal running is resumed.
The specific implementation manner of the above steps and the simulation method in this embodiment can refer to the implementation manner of the steps 101-109 and the simulation method in embodiment 1, and will not be described herein again. The only difference is that in the simulation method of embodiment 1, the simulation object is constructed for the vehicle, and the simulation object simulates the operation of the vehicle; in the simulation method of the present embodiment, the simulation object may be constructed for any vehicle, and the simulation object simulates the operation of the vehicle. The stop in the simulation method of the present embodiment means that the vehicle stops running.
In this embodiment, the vehicle may be any tool capable of traveling, including a vehicle, an airplane, a drone, a ship, and the like.
By the simulation method of the embodiment, the stay and departure processes of the carrier can be simulated for related analysis and evaluation.
Example 3
This embodiment 3 provides a simulation system. The same contents of this embodiment 3 as those of embodiments 1 and 2 are not repeated, and the following description will be made on the differences of this embodiment 3 from embodiments 1 and 2.
Fig. 4 is a schematic diagram of the simulation system of the present embodiment. As shown in fig. 4, the simulation system 400 includes a deceleration module 401, a seek module 402, a move module 403, a park module 404, and a restore module 405. The determining module 401 decelerates to a specified threshold according to an operation flag indicating an operation state of the simulation object and a current position of the simulation object; the searching module 402 searches for a parking area meeting a specified space requirement when the vehicle decelerates to a specified threshold; the moving module 403 moves to a parking lane in the parking area; the parking module 404 decelerates parking; the recovery module 405 recovers the normal driving when the current time exceeds a preset parking end time.
In this embodiment, the running flag of the simulation object may include a first flag indicating whether the simulation object has already performed parking, and the deceleration module 401 may decelerate to the prescribed threshold when the first flag indicates that the simulation object has already performed parking and the current location of the simulation object is within the legal parking area.
In this embodiment, the moving module 403 may move to a parkable lane within the parking area when the current position of the simulation object is within the parking area.
Fig. 5 is a schematic diagram of the moving module 403 in this embodiment. As shown in fig. 5, the moving module 403 may include a determining module 501 and a lane changing module 502. The determining module 501 determines whether the current position of the simulation object is located in a parking lane in the parking area; the lane-change module 502 changes lanes to a parkable lane when the current location of the simulated object is not within the parkable lane within the parking area.
In this embodiment, the parking module 404 may slow down until the speed of the simulation object is zero.
In this embodiment, the simulation system 400 may further include a parking end time setting module, which may record a time when the speed of the simulation object is zero as the parking start time, determine the parking period, and set the parking end time according to the parking start time and the parking period.
Wherein the parking end time setting module may determine the parking period based on a randomly distributed function.
Fig. 6 shows another schematic diagram of the simulation system of the present embodiment. The simulation system 600 includes a deceleration module 601, a seek module 602, a move module 603, a park module 604, a recovery module 605, and a configuration module 606. The deceleration module 601, the search module 602, the moving module 603, the parking module 604, and the recovery module 605 are the same as the deceleration module 401, the search module 402, the moving module 403, the parking module 404, and the recovery module 405, and the configuration module 606 configures the first flag to indicate that the simulation object has already parked after the deceleration parking or after the current time exceeds the parking end time. The configuration module 606 is an optional module.
In this embodiment, the running flag may further include a second flag indicating whether the simulation object is in a parking state, and the configuration module 606 may further configure the second flag to indicate that the simulation object is in the parking state when the speed of the simulation object is zero. Also, as shown in FIG. 6, the simulation system 600 may further include a control module 607, the control module 607 prohibiting a lane change when the second flag indicates a parking state. The control block 607 is an optional block.
In this embodiment, the configuration module 606 may further configure the second flag to indicate that the simulation object is not in the parking state when the current time exceeds the parking end time.
In this embodiment, as shown in fig. 6, the simulation system 600 may further include a recording module 608, and the recording module 608 records the simulation object as a parking failure when the simulation object has moved to the destination and no parking area is found. The recording module 608 is an optional module.
In addition, the simulation system 600 may also include the parking end time setting module described above.
In this embodiment, the simulation system 400 or 600 may further include a construction unit that constructs the above-described simulation object for the vehicle, so that the simulation object simulates the operation of the vehicle. The building unit may build one simulation object for each vehicle.
Through the simulation system of the embodiment, the stopping and leaving processes of the vehicle can be simulated for relevant analysis and evaluation.
Example 4
This embodiment 4 provides a simulation system. The same contents of this embodiment 4 as those of embodiments 1 to 3 are not repeated, and the following description will be directed to the differences between this embodiment 4 and embodiments 1 to 3.
The simulation system of the embodiment comprises a deceleration module, a searching module, a moving module, a stopping module and a recovering module. The deceleration module decelerates to a specified threshold according to an operation mark indicating the operation state of the simulation object and the current position of the simulation object; the searching module searches a stop area meeting the specified space requirement when the speed is reduced to the specified threshold value; the mobile module moves to a stoppable driving road in the stoppable area; the stop module decelerates and stops; the recovery module recovers normal driving when the current time exceeds a preset stop end time.
The specific implementation manner of each module and the simulation system in this embodiment may refer to the implementation manner of each module and the simulation system in embodiment 3, and details are not described here. The only difference is that in the simulation system of embodiment 3, the simulation object is constructed for the vehicle, and the simulation object simulates the operation of the vehicle; in the simulation system of the present embodiment, the simulation object may be constructed for any vehicle, and the simulation object simulates the operation of the vehicle. The stop in the simulation system of the present embodiment means that the vehicle stops running.
In this embodiment, the vehicle may be any tool capable of traveling, including a vehicle, an airplane, a drone, a ship, and the like.
Through the simulation system of the embodiment, the stay and departure processes of the carrier can be simulated for relevant analysis and evaluation.
Example 5
This embodiment 5 provides an electronic apparatus. The same contents of this embodiment 5 as those of embodiments 1 to 4 are not repeated, and the following description will be directed to the differences between this embodiment 5 and embodiments 1 to 4.
Fig. 7 is a schematic diagram of the electronic device of the present embodiment. As shown in fig. 7, the electronic device 700 may include: a processor 701 and a memory 702, the memory 702 being coupled to the processor 701.
Among them, the memory 702 may store a program for realizing a certain function, for example, a program for realizing the simulation method of embodiment 1 or 2, and the program is executed under the control of the processor 701; in addition, the memory 702 may also store various data such as operational flags, prescribed thresholds, prescribed space requirements, parking start times, parking periods, parking end times, and the like.
In one embodiment, the functions in the simulation system of embodiment 3 or 4 may be integrated into the processor 701 for execution.
In this embodiment, the processor 701 may be configured to:
according to an operation mark indicating the operation state of the simulation object and the current position of the simulation object, decelerating to a specified threshold value;
when the vehicle decelerates to a specified threshold value, a parking area meeting the specified space requirement is searched;
moving to a parkable lane within the parking area;
decelerating and stopping;
and when the current time exceeds the preset parking ending time, the normal driving is recovered.
In this embodiment, the processor 701 may be configured to:
when the first flag of the simulation object indicates that the simulation object has performed parking and the current position of the simulation object is within a legal parking area, decelerating to a prescribed threshold.
In this embodiment, the processor 701 may be configured to:
after decelerating the vehicle or after the current time exceeds the vehicle stop end time, configuring the first mark to indicate that the simulation object has performed the vehicle stop.
In this embodiment, the processor 701 may be configured to:
and when the current position of the simulation object is positioned in the parking area, moving to a parking lane in the parking area.
In this embodiment, the processor 701 may be configured to:
determining whether the current position of the simulation object is located in a parking available lane in the parking area;
and when the current position of the simulation object is not positioned in the parking lane in the parking area, changing the lane to the parking lane.
In this embodiment, the processor 701 may be configured to:
and decelerating until the speed of the simulation object is zero.
In this embodiment, the processor 701 may be configured to:
recording the time when the speed of the simulation object is zero as the parking starting time;
determining a parking period;
and setting the parking ending time according to the parking starting time and the parking period.
In this embodiment, the processor 701 may be configured to:
based on the randomly distributed function, a parking period is determined.
In this embodiment, the processor 701 may be configured to:
configuring a second flag to indicate that the simulated object is in a parked state when the speed of the simulated object is zero;
prohibiting a lane change when the second flag indicates that the simulated object is in a stopped state.
In this embodiment, the processor 701 may be configured to:
configuring the second flag to indicate that the simulation object is not in a parked state when the current time exceeds the parking end time.
In this embodiment, the processor 701 may be configured to:
recording the simulation object as a parking failure when the simulation object has moved to a destination and the parking area is not found.
In this embodiment, the processor 701 may be configured to:
and aiming at the vehicle, constructing the simulation object, and enabling the simulation object to simulate the operation of the vehicle.
In this embodiment, the process 701 may also be configured to:
according to an operation mark indicating the operation state of the simulation object and the current position of the simulation object, decelerating to a specified threshold value;
when the speed is reduced to a specified threshold value, a stop area meeting the specified space requirement is searched;
a stoppable lane that moves into the stoppable region;
stopping running at a reduced speed;
and when the current time exceeds the preset stop end time, the normal running is resumed.
As shown in fig. 7, the electronic device 700 may further include a communication unit 703, a display unit 704, and an operation unit 705, and the communication unit 703 may transmit or receive information, for example, may transmit or receive a simulation result, or the like, via the internet; the display unit 704 is used for displaying objects to be displayed such as images and characters under the control of the processor 701, and may display a simulation procedure, a simulation result, and the like, for example, and the display unit 704 may be a liquid crystal display or the like, for example; the operation unit 705 is operated by a user and provides operation information to the processor 701, for example, a control operation for a simulation is performed by the user, and the operation unit 705 may be, for example, a mouse, a button, a touch panel, or the like.
Note that the electronic apparatus 700 does not necessarily include all the components shown in fig. 7, and some components may be omitted as needed, for example, one or more of the communication section 703, the display section 704, and the operation section 705 may be omitted; furthermore, the electronic device 700 may also comprise components not shown in fig. 7, reference being made to the prior art.
In the embodiment of the present invention, the term "electronic device" includes user equipment and network equipment. Wherein the user equipment includes but is not limited to a smart phone, a tablet computer, a personal computer, etc.; the network device includes, but is not limited to, a single network server, a server group consisting of a plurality of network servers, or a Cloud Computing (Cloud Computing) based Cloud consisting of a large number of computers or network servers, wherein Cloud Computing is one of distributed Computing, a super virtual computer consisting of a collection of loosely coupled computers. The computer equipment can be independently operated to realize the application, and can also be accessed into a network to realize the application through the interactive operation with other computer equipment in the network. The network in which the computer device is located includes, but is not limited to, the internet, a wide area network, a metropolitan area network, a local area network, a VPN network, and the like.
It should be noted that the user equipment, the network device, the network, etc. are only examples, and other existing or future computer devices or networks may also be included in the scope of the present application, if applicable, and are included by reference.
Through the electronic device of the embodiment, the processes of stopping and leaving of the vehicle/carrier can be simulated for relevant analysis and evaluation.
The embodiment of the invention also provides a program readable by a processor, and the program enables the processor to execute the method in the embodiment of the invention.
The embodiment of the invention also provides a storage medium stored with a program readable by a processor, wherein the program enables the processor to execute the method in the embodiment of the invention.
The above methods/apparatuses of the present invention may be implemented by hardware, or may be implemented by hardware in combination with software. The present invention relates to a computer-readable program which, when executed by a logic section, enables the logic section to realize the above-described apparatus or constituent section, or to realize the above-described various methods or steps. Logic components such as field programmable logic components, microprocessors, processors used in computers, and the like. The present invention also relates to a storage medium such as a hard disk, a magnetic disk, an optical disk, a DVD, a flash memory, or the like, for storing the above program.
The methods/apparatus described in connection with the embodiments of the invention may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. For example, one or more of the functional block diagrams and/or one or more combinations of the functional block diagrams illustrated in fig. 4 may correspond to individual software modules of a computer program flow or may correspond to individual hardware modules. These software modules may correspond to the various steps shown in fig. 1, respectively. These hardware modules may be implemented, for example, by solidifying these software modules using a Field Programmable Gate Array (FPGA).
A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. A storage medium may be coupled to the processor such that the processor can read information from, and write information to, the storage medium; or the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The software module may be stored in the memory of the device or in a memory card that is insertable into the device. For example, if the apparatus employs a relatively large capacity MEGA-SIM card or a large capacity flash memory device, the software module may be stored in the MEGA-SIM card or the large capacity flash memory device.
One or more of the functional blocks and/or one or more combinations of the functional blocks described in the figures can be implemented as a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any suitable combination thereof designed to perform the functions described herein. One or more of the functional blocks and/or one or more combinations of the functional blocks described in connection with the figures may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP communication, or any other such configuration.
The present application has been described in conjunction with specific embodiments, but it should be understood by those skilled in the art that these descriptions are intended to be illustrative, and not limiting. Various modifications and adaptations of the present application may occur to those skilled in the art based on the teachings herein and are within the scope of the present application.

Claims (16)

1. A method of simulation, the method comprising:
according to an operation mark indicating the operation state of the simulation object and the current position of the simulation object, decelerating to a specified threshold value;
when the vehicle decelerates to a specified threshold value, a parking area meeting the specified space requirement is searched;
moving to a parkable lane within the parking area;
decelerating and stopping;
and when the current time exceeds the preset parking ending time, the normal driving is recovered.
2. The method of claim 1, wherein,
the operation flag includes a first flag indicating whether the simulation object has made a parking,
the decelerating to a prescribed threshold according to the operation mark of the simulation object and the current position of the simulation object comprises:
decelerating to a prescribed threshold when the first flag of the simulated object indicates that the simulated object has made a stop and the current location of the simulated object is within a legal stop area.
3. The method of claim 2, wherein the method further comprises:
after decelerating the vehicle or after the current time exceeds the vehicle stop end time, configuring the first mark to indicate that the simulation object has performed the vehicle stop.
4. The method of claim 1, wherein,
the movable parking lane to the parking area includes:
and when the current position of the simulation object is positioned in the parking area, moving to a parking lane in the parking area.
5. The method of claim 4, wherein,
when the current position of the simulation object is located in the parking area, moving to a parking lane in the parking area includes:
determining whether the current position of the simulation object is located in a parking available lane in the parking area;
and when the current position of the simulation object is not positioned in the parking lane in the parking area, changing the lane to the parking lane.
6. The method of claim 1, wherein,
the deceleration stop includes:
and decelerating until the speed of the simulation object is zero.
7. The method of claim 6, wherein,
the parking end time is set by:
recording the time when the speed of the simulation object is zero as the parking starting time;
determining a parking period;
and setting the parking ending time according to the parking starting time and the parking period.
8. The method of claim 7, wherein,
the parking period is determined based on a randomly distributed function.
9. The method of claim 6, wherein,
the operation flag includes a second flag indicating whether the simulation object is in a parking state,
the method further comprises the following steps:
configuring the second flag to indicate that the simulated object is in a parked state when the speed of the simulated object is zero;
prohibiting a lane change when the second flag indicates that the simulated object is in a stopped state.
10. The method of claim 9, wherein the method further comprises:
configuring the second flag to indicate that the simulation object is not in a parked state when the current time exceeds the parking end time.
11. The method of claim 1, wherein the method further comprises:
recording the simulation object as a parking failure when the simulation object has moved to a destination and the parking area is not found.
12. The method of any of claims 1 to 11, wherein the method further comprises:
and aiming at the vehicle, constructing the simulation object, and enabling the simulation object to simulate the operation of the vehicle.
13. A method of simulation, the method comprising:
according to an operation mark indicating the operation state of the simulation object and the current position of the simulation object, decelerating to a specified threshold value;
when the speed is reduced to a specified threshold value, a stop area meeting the specified space requirement is searched;
a stoppable lane that moves into the stoppable region;
stopping running at a reduced speed;
and when the current time exceeds the preset stop end time, the normal running is resumed.
14. A simulation system, the system comprising:
a deceleration module that decelerates to a prescribed threshold value according to an operation flag indicating an operation state of a simulation object and a current position of the simulation object;
the parking area searching module is used for searching a parking area meeting the requirement of a specified space when the speed is reduced to a specified threshold value;
a moving module that moves to a parkable lane within the parking area;
a parking module that decelerates to park;
and the recovery module is used for recovering the normal running when the current time exceeds the preset parking ending time.
15. A simulation system, the system comprising:
a deceleration module that decelerates to a prescribed threshold value according to an operation flag indicating an operation state of a simulation object and a current position of the simulation object;
a search module that searches for a stop area that satisfies a prescribed space requirement when decelerating to a prescribed threshold;
a moving module that moves to a stoppable lane within the stoppable region;
a stop module that decelerates to stop;
and the recovery module is used for recovering the normal running when the current time exceeds the preset stop running end time.
16. A storage medium storing a program readable by a processor, the program causing the processor to perform the method of any one of claims 1 to 13.
CN202010199829.4A 2020-03-20 2020-03-20 Simulation method, system and storage medium Active CN111381517B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010199829.4A CN111381517B (en) 2020-03-20 2020-03-20 Simulation method, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010199829.4A CN111381517B (en) 2020-03-20 2020-03-20 Simulation method, system and storage medium

Publications (2)

Publication Number Publication Date
CN111381517A true CN111381517A (en) 2020-07-07
CN111381517B CN111381517B (en) 2024-03-19

Family

ID=71217360

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010199829.4A Active CN111381517B (en) 2020-03-20 2020-03-20 Simulation method, system and storage medium

Country Status (1)

Country Link
CN (1) CN111381517B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102280027A (en) * 2011-07-29 2011-12-14 长安大学 Intersection semiphysical dynamic microcosmic simulation system and method
CN106548647A (en) * 2015-09-17 2017-03-29 阿里巴巴集团控股有限公司 Record parking information, the method for parking spot navigation, apparatus and system
EP3239955A1 (en) * 2015-01-19 2017-11-01 Huawei Technologies Co. Ltd. Parking position confirmation and navigation method, apparatus and system
CN108205312A (en) * 2018-03-19 2018-06-26 中南大学 Unmanned BRT vehicles automatic start-stop implementation method based on high-precision map and infrared beacon
US20190011931A1 (en) * 2017-07-10 2019-01-10 Lyft, Inc. Dynamic modeling and simulation of an autonomous vehicle fleet using real-time autonomous vehicle sensor input
CN109598066A (en) * 2018-12-05 2019-04-09 百度在线网络技术(北京)有限公司 Effect evaluation method, device, equipment and the storage medium of prediction module
CN109946995A (en) * 2019-03-26 2019-06-28 湖北亿咖通科技有限公司 Emulation test method, device and the intelligent terminal of automatic Pilot
CN110377006A (en) * 2019-07-17 2019-10-25 中国第一汽车股份有限公司 One kind is parked test macro and method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102280027A (en) * 2011-07-29 2011-12-14 长安大学 Intersection semiphysical dynamic microcosmic simulation system and method
EP3239955A1 (en) * 2015-01-19 2017-11-01 Huawei Technologies Co. Ltd. Parking position confirmation and navigation method, apparatus and system
CN106548647A (en) * 2015-09-17 2017-03-29 阿里巴巴集团控股有限公司 Record parking information, the method for parking spot navigation, apparatus and system
US20190011931A1 (en) * 2017-07-10 2019-01-10 Lyft, Inc. Dynamic modeling and simulation of an autonomous vehicle fleet using real-time autonomous vehicle sensor input
CN108205312A (en) * 2018-03-19 2018-06-26 中南大学 Unmanned BRT vehicles automatic start-stop implementation method based on high-precision map and infrared beacon
CN109598066A (en) * 2018-12-05 2019-04-09 百度在线网络技术(北京)有限公司 Effect evaluation method, device, equipment and the storage medium of prediction module
CN109946995A (en) * 2019-03-26 2019-06-28 湖北亿咖通科技有限公司 Emulation test method, device and the intelligent terminal of automatic Pilot
CN110377006A (en) * 2019-07-17 2019-10-25 中国第一汽车股份有限公司 One kind is parked test macro and method

Also Published As

Publication number Publication date
CN111381517B (en) 2024-03-19

Similar Documents

Publication Publication Date Title
JP6738932B2 (en) System and method for training machine learning models located on a simulation platform
JP6614464B6 (en) Vehicle scheduling method, apparatus, equipment, and storage medium
US10896122B2 (en) Using divergence to conduct log-based simulations
CN109739216B (en) Method and system for testing actual drive test of automatic driving system
CN109345829B (en) Unmanned vehicle monitoring method, device, equipment and storage medium
CN112346998B (en) Automatic driving simulation test method and device based on scene
CN109064763A (en) Test method, device, test equipment and the storage medium of automatic driving vehicle
US10795804B1 (en) Collision evaluation for log-based simulations
US10157543B1 (en) Smart parking system
CN112345272A (en) Automatic driving simulation test method and device for scene library
WO2018132088A1 (en) Picking up and dropping off passengers at an airport using an autonomous vehicle
CN106846819A (en) A kind of taking photo by plane based on small aircraft and realizes system at penalty note generation method
CN115402344A (en) Parking scene simulation method and device
JP2021528733A (en) Vehicle control methods and devices, vehicles, computer-readable storage media and computer programs
CN112527633B (en) Automatic driving simulation test method and device for scene library
US11222213B2 (en) Vehicle behavior detection system
CN107622666B (en) Balance car cruise law enforcement method and device
CN111381517B (en) Simulation method, system and storage medium
US11176824B2 (en) Identification and performance of an action related to a poorly parked vehicle
US20210012660A1 (en) Parking prediction
CN115454082A (en) Vehicle obstacle avoidance method and system, computer readable storage medium and electronic device
CN112527632B (en) Traffic test method and device
CN117152945A (en) Method and system for handling traffic accidents and storage medium
JP6986584B2 (en) Information processing device, information processing method, and information processing program, and vehicle arrival time estimation device
CN114692289A (en) Automatic driving algorithm testing 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
GR01 Patent grant
GR01 Patent grant