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

Simulation method, system and storage medium Download PDF

Info

Publication number
CN111381517B
CN111381517B CN202010199829.4A CN202010199829A CN111381517B CN 111381517 B CN111381517 B CN 111381517B CN 202010199829 A CN202010199829 A CN 202010199829A CN 111381517 B CN111381517 B CN 111381517B
Authority
CN
China
Prior art keywords
simulation object
parking
simulation
decelerating
current position
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.)
Active
Application number
CN202010199829.4A
Other languages
Chinese (zh)
Other versions
CN111381517A (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

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: according to the running mark indicating the running state of the simulation object and the current position of the simulation object, decelerating to a specified threshold value; searching a parking area meeting the requirement of a specified space when decelerating to a specified threshold value; moving to a parkable lane within the parking area; decelerating and stopping; and when the current time exceeds the preset stopping end time, the normal running is resumed.

Description

Simulation method, system and storage medium
Technical Field
The present disclosure relates to the field of simulation technologies, and in particular, to a simulation method, a system, and a storage medium.
Background
When large activities are held, a situation in which a large number of people are concentrated in a specific time often occurs. Before the start of the event, the person engaged in the event goes from the riding vehicle to the event location, wherein one important way is to ride the vehicle. Therefore, large-scale activities are often accompanied by concentrated arrival of a large number of vehicles, which need to stay briefly after arrival and leave after getting off.
It should be noted that the foregoing description of the background art is only for the purpose of providing a clear and complete description of the technical solution of the present invention and is presented for the convenience of understanding by those skilled in the art. The above-described solutions are not considered to be known to the person skilled in the art simply because they are set forth in the background of the invention section.
Disclosure of Invention
The inventor finds that when large-scale activities are held, the concentrated arrival of a large number of vehicles can cause the excessive concentration of vehicles and crowds to generate confusion and potential safety hazards, and by simulating and analyzing such scenes, the activity schemes such as a vehicle scheduling scheme, a traffic facility scheme and the like can be evaluated and improved in an assisted manner. However, no solution for this simulation is known at present.
In order to solve the above-mentioned problems or similar problems, embodiments of the present invention provide a simulation method, system, and storage medium capable of simulating the whole process of stay and leave of a vehicle for relevant analysis and evaluation; the embodiment of the invention also provides a simulation method, a system and a storage medium, which can simulate the whole process of stay and leave of any carrier for relevant analysis and evaluation.
According to a first aspect of an embodiment of the present invention, there is provided a simulation method, including: decelerating 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; searching a parking area meeting the requirement of a specified space when decelerating to a specified threshold value; moving to a parkable lane within the parking area; decelerating and stopping; and when the current time exceeds the preset stopping end time, the normal running is resumed.
According to a second aspect of an embodiment of the present invention, there is provided a simulation method, including: according to the running mark indicating the running state of the simulation object and the current position of the simulation object, decelerating to a specified threshold value; searching a stopping area meeting the requirement of a specified space when decelerating to a specified threshold value; a stoppable driving lane moving to the stoppable region; decelerating and stopping; and when the current time exceeds the preset stopping end time, the normal running is resumed.
According to a third aspect of an embodiment 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 the simulation object and a current position; a searching module for searching a parking area meeting a predetermined space requirement when decelerating to a predetermined threshold; a moving module that moves to a parkable lane within the parking area; a parking module which decelerates to park; and the recovery module is used for recovering normal running when the current time exceeds the preset stopping end time.
According to a fourth aspect of an embodiment 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 the simulation object and a current position of the simulation object; a searching module for searching a stopping area meeting a specified space requirement when the speed is reduced to a specified threshold value; a moving module that moves to a travelator within the travelator area; a stopping module which decelerates and stops running; and the recovery module is used for recovering normal running when the current time exceeds the preset stopping end time.
According to a fifth aspect of embodiments of the present invention, there is provided a storage medium storing a processor-readable program, the program causing a processor to execute the method of the first or second aspect.
One advantage of the embodiments of the present invention is that the overall process of vehicle stay and exit can be simulated for relevant analysis and evaluation. The embodiment of the invention has the further beneficial effect that the whole process of stay and leave of the carrier can be simulated for relevant analysis and evaluation.
Specific embodiments of the invention are disclosed in detail below 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 limited in scope thereby. 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 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 evident that the drawings in the following description are only some embodiments of the present invention and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art. In the drawings:
fig. 1 is a schematic diagram of the simulation method of embodiment 1 of the present invention.
Fig. 2 is a schematic diagram of an implementation of step 105 of 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 in 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 diagram 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 specification and drawings, there have been specifically disclosed specific embodiments of the invention that are indicative of some of the ways in which the principles of the invention may be employed, it being understood that the invention is not limited to the specific embodiments described, but, on the contrary, the invention includes all modifications, variations and equivalents falling within the scope of the appended claims.
Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts operations as a sequential process, many of the operations can be performed in parallel, concurrently, or at the same time. Furthermore, the order of the operations may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figures. 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 to distinguish between different elements from each other by name, but do not indicate spatial arrangement or time sequence 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 present invention, the singular forms "a," an, "and" the "include plural referents and should be construed broadly to mean" one "or" one type "and not limited to" one "or" another; furthermore, the term "comprising" is to be interpreted as including both the singular and the plural, unless the context clearly dictates otherwise. Furthermore, 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 indicates 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 relationships between units (e.g., "between" versus "directly between," "adjacent to" 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 implementations of embodiments of the present invention are described below with reference to the accompanying drawings. These implementations are merely illustrative and not limiting of the embodiments of the present invention.
Example 1
The present embodiment 1 provides a simulation method. The simulation method can be used for simulating the whole process of stopping and leaving the vehicle.
Fig. 1 is a schematic diagram of a simulation method of the present embodiment. As shown in fig. 1, the method includes:
step 101, decelerating 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;
step 103, searching a parking area meeting the requirement of a specified space when the speed is reduced to a specified threshold value;
step 105, moving to a parkable lane in the parking area;
step 107, decelerating and stopping;
and 109, when the current time exceeds the preset stopping end time, the normal running is resumed.
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 in a scene related to the process.
For example, the simulation method can be used for simulating a scene that a plurality of vehicles are parked and alight in a concentrated manner during large-scale activities so as to evaluate whether parking areas are sufficient, whether a vehicle scheduling scheme is reasonable and the like in the scene. However, the simulation method of the present embodiment is not limited to this scenario, and may be used to simulate a scenario in which a plurality of vehicles are parked and loaded and unloaded in a lump in the vicinity of a cargo distribution area, for example.
In this embodiment, a simulation object may be constructed for a vehicle such that the simulation object simulates the operation of the vehicle. Specifically, one simulation object may be built for each vehicle, and the above steps 101-109 are performed 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, a vehicle includes: various vehicles such as large, medium or small buses, private cars, taxis, motorcycles, bicycles, electric bicycles, and the like, and the vehicle may be a manned vehicle or an unmanned vehicle.
In the present embodiment, the running flag is a flag indicating the running state of the simulation object. The running state of the simulation object may include, for example: normal travel, park/no park, find parking space, slow down park, park/no park, park miss, etc.
In step 101, a predetermined threshold may be set according to the actual situation. The predetermined threshold value may be a fixed value set in advance, or may be calculated by multiplying the normal running speed of the simulation target by a predetermined coefficient.
In one embodiment, the running flag may include a first flag indicating whether the simulation object has been parked, and the step 101 may include:
the method includes decelerating to a prescribed threshold when a first flag of a simulated object indicates that the simulated object has been parked and a current location of the simulated object is within a legal parking area.
Since in large-scale campaigns, a vehicle typically brings passengers to a campaigns site at a time near the start time of the campaigns, it is not generally necessary to park the vehicle again for a pick-up after the vehicle has been parked for a pick-up. Thus, in this embodiment, by taking the first flag of the simulation object as a part of the basis of whether to decelerate to the prescribed threshold, it is possible to distinguish the simulation object that has already simulated a parking deposit, avoiding the process of simulating a parking deposit multiple times.
The first flag may indicate that the simulation object has been parked and not parked, respectively, using True and False, for example. The present embodiment is not limited thereto, and may be expressed in other ways.
In the present embodiment, the legal parking area is a predetermined area around the parkable position, for example, a road on which the parkable position is located.
In one embodiment, the road model and the road attribute of each road may also be set in the simulation environment, and whether the current position is in the legal parking area may be determined by the road attribute, that is, whether the current position is in the parkable road may be determined.
In this embodiment, the above simulation method may further include:
after the deceleration parking, or after the current time exceeds the parking end time, a first flag is configured to indicate that the simulation object has been parked.
In this way, in a subsequent step, the simulation object can detect that it has simulated the stay and leave process by the first flag, so that the process is not simulated again.
In step 103, when the vehicle is decelerated to a predetermined threshold, a parking area satisfying a predetermined space requirement is searched for. In other words, in step 103, when decelerating to the predetermined threshold, the vehicle continues to travel at a 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 in the parking area, the simulation object moves to a parkable lane in the parking area (namely, the parking area meeting the specified space requirement).
In other words, when the current position of the simulation object is located within the parking area satisfying the predetermined space requirement, it is determined that the simulation object has found the parking area.
The parking area satisfying the prescribed space requirement is such an area: the stoppable lane has enough space to accommodate the current simulation object (specification attributes may be set in advance for the corresponding simulation object based on the specification of the vehicle, which may include, for example, length, width, height, etc.), and there is a buffer space for implementing movement from the current position of the simulation object to the stoppable lane. In this way, when the current position of the simulation object is located in the parking area satisfying the predetermined space requirement, the vehicle can move to the parkable lane in the parking area and can be parked at a reduced speed. 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 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 parkable lane in the parking area may include:
step 201, judging whether the current position of the simulation object is positioned in a stoppable lane in the stoppable area;
step 203, changing the road to the stoppable lane when the current position of the simulation object is not located in the stoppable lane in the stoppable area.
In this embodiment, the step 107 may include:
and decelerating until the speed of the simulation object is zero.
In this way, by characterizing that the vehicle is already in a stopped state by the speed of the simulation object being zero, such actions as downloading and loading can be performed.
In this embodiment, the above-described 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 start time;
determining a parking period;
a parking end time is set based on the start parking time and the parking period.
The parking period may be empirically set or may be determined based on a random distribution function. The random distribution function may be a gaussian distribution function, but the present embodiment is not limited thereto, and other random distribution functions may be used. Therefore, the calculated parking period accords with the random distribution function, and therefore accords with the distribution rule in reality, and the simulation result is closer to the actual situation.
In step 109, when the current time exceeds the stop end time, normal running is resumed. The current time exceeds the parking end time, namely, the current time is later than the parking end time. The normal running is resumed, that is, the running is performed at a normal running speed, which is set according to the actual situation. Thus, the process of stopping and leaving the simulation object is ended.
In one embodiment, the running flag may further include a second flag indicating whether the simulation object is in a stopped state, and at this time, the simulation object may further perform the steps of:
configuring a second flag of the simulated object to indicate a stopped 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, being in a stopped state means that the vehicle has stopped.
In this way, by the second flag, it is possible to detect whether or not the simulation object is in the stopped state, and since the vehicle is normally performing other related operations such as a passenger, loading and unloading, and the like while in the stopped state, the vehicle should not move, and therefore, when it is detected that the simulation object is in the stopped state, the simulation object is prohibited from changing lanes, and thus, the simulation can be made closer to the actual situation.
The second flag may indicate that the simulation object is in a parked state and not in a parked state, respectively, using True and False, for example. The present embodiment is not limited thereto, and may be expressed in other ways.
In this embodiment, the above simulation method may further include:
the second flag is configured to indicate that the vehicle is not parked 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 execute:
when the simulation object has moved to the destination and a parking area satisfying the prescribed 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 success/failure of parking may be set for the simulation objects, or additional data records may be set in the simulation environment for recording whether each simulation object is successful in parking. 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 (i.e., false), then step 302 is performed, otherwise step 313 is performed;
step 302, judging whether the current position of the simulation object is in a legal parking area; if the current position is within the legal parking area, executing step 303, otherwise returning to step 302;
step 303, decelerating to a prescribed threshold value;
step 304; determining whether a current position of the simulation object has reached a destination; if the current location has reached the destination, step 306 is performed, otherwise step 305 is performed;
step 305; judging whether the current position of the simulation object is positioned in a parking area meeting the requirement of a specified space; if the current location is within the parking area, then step 307 is performed, otherwise step 303 is returned;
step 306, recording the simulation object as a parking failure;
step 307, determining a parking period;
step 308, moving to the parking area in the parking lane;
step 309, decelerating;
step 310, determining whether the speed is zero; if the speed is zero, go to step 311, otherwise return 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 a first sign to indicate True, and configuring a second sign 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;
step 314, resume normal running.
In the above simulation method, the initial values of the first flag and the second flag may both be configured as False, that is, the initial state of the simulation object may be configured to be that no parking has been performed and that the lane change is allowed. In addition, during the 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 the second flag is False, and lane change is again permitted.
Fig. 3 shows a specific implementation of the present embodiment, but this is not a limitation of the present embodiment.
By the simulation method of the embodiment, the stay and leave process of the vehicle can be simulated for relevant analysis and evaluation.
Example 2
The present 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 given for the different contents of embodiment 2 and embodiment 1.
The simulation method of the embodiment comprises the following steps:
according to the running mark indicating the running state of the simulation object and the current position of the simulation object, decelerating to a specified threshold value;
searching a stopping area meeting the requirement of a specified space when decelerating to a specified threshold value;
a stoppable driving lane moving to the stoppable region;
decelerating and stopping;
and when the current time exceeds the preset stopping end time, the normal running is resumed.
The specific implementation manner of each step and the simulation method in this embodiment may refer to the implementation manner of steps 101 to 109 and the simulation method in embodiment 1, and will not be described herein. The only difference is that in the simulation method of embodiment 1, a simulation object is constructed for a vehicle, the simulation object simulating the operation of the vehicle; in the above simulation method of the present embodiment, the simulation object may be constructed for any carrier, and the simulation object simulates the operation of the carrier. The stopping in the simulation method of the present embodiment refers to stopping the vehicle.
In this embodiment, the vehicle may be any tool capable of traveling, including a vehicle, an airplane, an unmanned aerial vehicle, a ship, and the like.
By the simulation method of the embodiment, the stay and leave processes of the carrier can be simulated for relevant analysis and evaluation.
Example 3
Embodiment 3 provides a simulation system. The same contents of embodiment 3 as those of embodiments 1 and 2 are not repeated, and the description of the different contents of embodiment 3 from those of embodiments 1 and 2 is provided below.
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 finding module 402, a moving module 403, a parking module 404, and a recovery module 405. Wherein, the determining module 401 decelerates to a specified threshold according to the running mark indicating the running state of the simulation object and the current position of the simulation object; the find module 402 finds a parking area that meets a specified space requirement when decelerating to a specified threshold; the movement module 403 moves to a parkable lane within the parking area; the parking module 404 decelerates and parks; the recovery module 405 resumes normal driving when the current time exceeds the preset stop end time.
In this embodiment, the running flag of the simulation object may include a first flag indicating whether the simulation object has been parked, and the speed reduction module 401 may reduce the speed to a prescribed threshold value when the first flag indicates that the simulation object has been parked and the current position of the simulation object is within the legal parking area.
In this embodiment, the moving module 403 may move to a parkable lane in a parking area when the current position of the simulation object is located in the parking area.
Fig. 5 is a schematic diagram of the mobile module 403 of the present embodiment. As shown in fig. 5, the movement module 403 may include a decision module 501 and a lane change module 502. Wherein, the determining module 501 determines whether the current position of the simulation object is located in a parkable lane in the parking area; the lane changing module 502 changes lanes to the parkable lane when the current position of the simulation object is not located in the parkable lane in the parking area.
In this embodiment, the parking module 404 may slow down until the speed of the simulated object is zero.
In this embodiment, the simulation system 400 may further include a parking end time setting module that may record a time when the speed of the simulation object is zero as a parking start time, determine a parking period, and set a parking end time according to the start parking time and the parking period.
Wherein the parking end time setting module may determine the parking period based on a random distribution function.
Fig. 6 shows another schematic diagram of the simulation system of the present embodiment. Simulation system 600 includes a deceleration module 601, a find module 602, a move module 603, a park module 604, a restore module 605, and a configure module 606. The deceleration module 601, the finding module 602, the moving module 603, the parking module 604, and the recovering module 605 are the same as the deceleration module 401, the finding module 402, the moving module 403, the parking module 404, and the recovering module 405, and the configuration module 606 configures the first flag to indicate that the simulation object has been parked after decelerating and parking, or after the current time exceeds the parking end time. 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 stopped state, and the configuration module 606 may further configure the second flag to indicate that the simulation object is in a stopped 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 that it is in the stopped state. The control module 607 is an optional module.
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, where the recording module 608 records the simulation object as a parking failure when the simulation object has moved to a destination and no parking area is found. Recording module 608 is an optional module.
In addition, the simulation system 600 may also include the above-described parking end time setting module.
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 such that the simulation object simulates the operation of the vehicle. The construction unit may construct one simulation object for each vehicle.
By the simulation system of the present embodiment, the stay and leave process of the vehicle can be simulated for relevant analysis and evaluation.
Example 4
Embodiment 4 provides a simulation system. The same contents as those of embodiments 1 to 3 in embodiment 4 will not be described in detail, and the description will be made below for the different contents of embodiment 4 and embodiments 1 to 3.
The simulation system of the embodiment comprises a speed reduction module, a searching module, a moving module, a stopping module and a recovering module. The speed reduction module reduces the speed 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 for a stopping area meeting the requirement of a specified space when decelerating to a specified threshold value; the mobile module moves to a stoppable driving road in the stoppable area; the stopping module decelerates and stops running; and the recovery module recovers normal running when the current time exceeds the preset stopping 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, which is not described herein. The only difference is that in the simulation system of embodiment 3, a simulation object is constructed for a vehicle, the simulation object simulating the operation of the vehicle; in the simulation system of the present embodiment, the simulation object may be constructed for any carrier, and the simulation object simulates the operation of the carrier. The stopping 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, an unmanned aerial vehicle, a ship, and the like.
By the simulation system of the embodiment, the stay and leave process of the carrier can be simulated for relevant analysis and evaluation.
Example 5
This embodiment 5 provides an electronic apparatus. The same contents as those of embodiments 1 to 4 in embodiment 5 are not repeated, and the different contents of embodiment 5 and embodiments 1 to 4 are described below.
Fig. 7 is a schematic diagram of the electronic device of the present embodiment. As shown in fig. 7, an electronic device 700 may include: a processor 701, and a memory 702, the memory 702 being coupled to the processor 701.
Wherein 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 a running flag, a specified threshold, a specified space requirement, a parking start time, a parking period, a parking end time, and the like.
In one embodiment, the functions in the simulation system of example 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;
searching a parking area meeting the requirement of a specified space when decelerating to a specified threshold value;
moving to a parkable lane within the parking area;
decelerating and stopping;
and when the current time exceeds the preset stopping end time, the normal running is resumed.
In this embodiment, the processor 701 may be configured to:
and decelerating to a specified threshold when the first mark of the simulation object indicates that the simulation object is parked and the current position of the simulation object is in a legal parking area.
In this embodiment, the processor 701 may be configured to:
after a deceleration parking, or after the current time exceeds the parking end time, the first flag is configured to indicate that the simulation object has been parked.
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 parkable lane in the parking area.
In this embodiment, the processor 701 may be configured to:
judging whether the current position of the simulation object is positioned in a parkable lane in the parking area or not;
and changing the road to the stoppable lane when the current position of the simulation object is not positioned in the stoppable lane in the stoppable area.
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 start time;
determining a parking period;
and setting the parking ending time according to the starting parking time and the parking period.
In this embodiment, the processor 701 may be configured to:
the parking period is determined based on the random distribution function.
In this embodiment, the processor 701 may be configured to:
configuring a second flag to indicate that the simulated object is in a stopped state when the speed of the simulated object is zero;
and prohibiting lane change when the second mark indicates that the simulation object is in a parking state.
In this embodiment, the processor 701 may be configured to:
and when the current time exceeds the parking end time, configuring the second mark to indicate that the simulation object is not in a parking state.
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;
searching a stopping area meeting the requirement of a specified space when decelerating to a specified threshold value;
a stoppable driving lane moving to the stoppable region;
decelerating and stopping;
and when the current time exceeds the preset stopping end time, the normal running is resumed.
As shown in fig. 7, the electronic apparatus 700 may further include a communication section 703, a display section 704, and an operation section 705, the communication section 703 may transmit or receive information via the internet, for example, may transmit or receive a simulation result or the like; the display unit 704 is configured to display a display object such as an image or a text under the control of the processor 701, and may display a simulation process, a simulation result, or the like, and the display unit 704 may be a liquid crystal display, for example; the operation unit 705 is for a user to perform an operation and provide operation information to the processor 701, and for example, the operation unit 705 may be a mouse, a key, a touch panel, or the like for a user to perform a control operation for simulation.
Note that the electronic apparatus 700 does not necessarily include all the components shown in fig. 7, and some of the 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; in addition, the electronic device 700 may further include components not shown in fig. 7, to which reference is made to the related art.
In embodiments of the present invention, the term "electronic device" includes both user devices and network devices. Wherein the user equipment includes, but is not limited to, smart phones, tablet computers, personal computers, etc.; the network device includes, but is not limited to, a single network server, a server group of multiple network servers, or a Cloud based Cloud Computing (Cloud Computing) consisting of a large number of computers or network servers, where Cloud Computing is one of distributed Computing, and is a super virtual computer consisting of a group of loosely coupled computer sets. The computer device can be independently operated to realize the application, and can also be accessed to a network and realize the application through interaction with other computer devices in the network. Wherein the network where 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 device, the network, etc. are only examples, and other computer devices or networks that may be present in the present application or in the future are applicable to the present application, and are also included in the scope of the present application and are incorporated herein by reference.
By the electronic device of the present embodiment, the process of stay and departure of the vehicle/carrier can be simulated for relevant analysis and evaluation.
The embodiment of the invention also provides a processor readable program, which enables a processor to execute the method of the embodiment of the invention.
The embodiment of the invention also provides a storage medium storing a program readable by a processor, the program causing the processor to execute the method according to the embodiment of the invention.
The above method/apparatus 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 means, enables the logic means to carry out the apparatus or constituent means described above, or enables the logic means to carry out the various methods or steps described above. Logic such as field programmable logic, 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 blocks shown in FIG. 4 and/or one or more combinations of the functional blocks may correspond to individual software modules or individual hardware modules of a computer program flow. These software modules may correspond to the individual steps shown in fig. 1, respectively. These hardware modules may be implemented, for example, by solidifying the 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 modules 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 MEGA-SIM card of a large capacity or a flash memory device of a large capacity, the software module may be stored in the MEGA-SIM card or the flash memory device of a large capacity.
One or more of the functional blocks described in the figures and/or one or more combinations of functional blocks may 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 for use in performing the functions described herein. One or more of the functional blocks described with respect to the figures and/or one or more combinations of functional blocks 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 connection with specific embodiments, but it should be apparent to those skilled in the art that these descriptions are intended to be illustrative and not limiting. Various modifications and adaptations of the disclosure may occur to those skilled in the art and are within the scope of the disclosure.

Claims (15)

1. A simulation method, 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;
searching a parking area meeting the requirement of a specified space when decelerating to a specified threshold value;
moving to a parkable lane within the parking area;
decelerating and stopping;
when the current time exceeds the preset stopping end time, normal running is resumed;
the running flag includes a first flag indicating whether the simulation object has been parked, and the decelerating to a prescribed threshold value according to the running flag of the simulation object and the current position of the simulation object includes: and decelerating to a specified threshold when the first mark of the simulation object indicates that the simulation object is not parked and the current position of the simulation object is in a legal parking area.
2. The method of claim 1, wherein the method further comprises:
after a deceleration parking, or after the current time exceeds the parking end time, the first flag is configured to indicate that the simulation object has been parked.
3. The method of claim 1, wherein,
the moving to the parkable lane in the parking area comprises the following steps:
and when the current position of the simulation object is positioned in the parking area, moving to a parkable lane in the parking area.
4. The method of claim 3, wherein,
and when the current position of the simulation object is positioned in the parking area, moving to a parkable lane in the parking area, wherein the method comprises the following steps of:
judging whether the current position of the simulation object is positioned in a parkable lane in the parking area or not;
and changing the road to the stoppable lane when the current position of the simulation object is not positioned in the stoppable lane in the stoppable area.
5. The method of claim 1, wherein,
the deceleration parking includes:
and decelerating until the speed of the simulation object is zero.
6. The method of claim 5, wherein,
the parking end time is set by the steps of:
recording the time when the speed of the simulation object is zero as the parking start time;
determining a parking period;
and setting the parking ending time according to the starting parking time and the parking period.
7. The method of claim 6, wherein,
the parking period is determined based on a random distribution function.
8. The method of claim 5, wherein,
the run flag includes a second flag indicating whether the simulation object is in a stopped state,
the method further comprises the steps of:
configuring the second flag to indicate that the simulated object is in a stopped state when the speed of the simulated object is zero;
and prohibiting lane change when the second mark indicates that the simulation object is in a parking state.
9. The method of claim 8, wherein the method further comprises:
and when the current time exceeds the parking end time, configuring the second mark to indicate that the simulation object is not in a parking state.
10. 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.
11. The method of any one of claims 1 to 10, 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.
12. A simulation method, 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;
searching a stopping area meeting the requirement of a specified space when decelerating to a specified threshold value;
a stoppable driving lane moving to the stoppable region;
decelerating and stopping;
when the current time exceeds the preset stopping end time, normal running is resumed;
the running flag includes a first flag indicating whether the simulation object has been stopped, and the decelerating to a prescribed threshold value according to the running flag of the simulation object and the current position of the simulation object includes: and decelerating to a specified threshold when the first mark of the simulation object indicates that the simulation object is not stopped and the current position of the simulation object is in a legal stopping area.
13. 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 searching module for searching a parking area meeting a predetermined space requirement when decelerating to a predetermined threshold;
a moving module that moves to a parkable lane within the parking area;
a parking module which decelerates to park;
the recovery module is used for recovering normal running when the current time exceeds the preset stopping end time;
the running flag includes a first flag indicating whether the simulation object has been parked, and the decelerating to a prescribed threshold value according to the running flag of the simulation object and the current position of the simulation object includes: and decelerating to a specified threshold when the first mark of the simulation object indicates that the simulation object is not parked and the current position of the simulation object is in a legal parking area.
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;
a searching module for searching a stopping area meeting a specified space requirement when the speed is reduced to a specified threshold value;
a moving module that moves to a travelator within the travelator area;
a stopping module which decelerates and stops running;
the recovery module is used for recovering normal running when the current time exceeds the preset stopping end time;
the running flag includes a first flag indicating whether the simulation object has been stopped, and the decelerating to a prescribed threshold value according to the running flag of the simulation object and the current position of the simulation object includes: and decelerating to a specified threshold when the first mark of the simulation object indicates that the simulation object is not stopped and the current position of the simulation object is in a legal stopping area.
15. A storage medium storing a processor-readable program that causes a processor to perform the method of any one of claims 1 to 12.
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 CN111381517A (en) 2020-07-07
CN111381517B true 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 (7)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10438486B2 (en) * 2017-07-10 2019-10-08 Lyft, Inc. Dynamic modeling and simulation of an autonomous vehicle fleet using real-time autonomous vehicle sensor input

Patent Citations (7)

* 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
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
CN111381517A (en) 2020-07-07

Similar Documents

Publication Publication Date Title
US10896122B2 (en) Using divergence to conduct log-based simulations
CN109345829B (en) Unmanned vehicle monitoring method, device, equipment and storage medium
US11385991B1 (en) Collision evaluation for log-based simulations
CN112346998B (en) Automatic driving simulation test method and device based on scene
Rummelhard et al. Probabilistic grid-based collision risk prediction for driving application
CN111932881A (en) Traffic intersection management method and device, terminal device and storage medium
US10745010B2 (en) Detecting anomalous vehicle behavior through automatic voting
CN115402344A (en) Parking scene simulation method and device
US11580856B2 (en) Identification of a poorly parked vehicle and performance of a first group of actions to cause one or more other devices to perform a second group of actions
CN114802251A (en) Control method and device for automatic driving vehicle, electronic device and storage medium
CN114444208A (en) Method, device, equipment and medium for determining reliability of automatic driving system
CN112527633B (en) Automatic driving simulation test method and device for scene library
CN111381517B (en) Simulation method, system and storage medium
CN107622666B (en) Balance car cruise law enforcement method and device
US11222213B2 (en) Vehicle behavior detection system
US20230294736A1 (en) Offline Tracking System for Autonomous Vehicle Control Systems
US11654938B1 (en) Methods and apparatus for disengaging an autonomous mode based on lateral error of an autonomous vehicle
CN115454082A (en) Vehicle obstacle avoidance method and system, computer readable storage medium and electronic device
US11580336B1 (en) Leveraging machine vision and artificial intelligence in assisting emergency agencies
CN113962107A (en) Method and device for simulating driving road section, electronic equipment and storage medium
CN114692289A (en) Automatic driving algorithm testing method and related equipment
US20230192092A1 (en) Interaction Auto-Labeling Using Spatial Overlap of Track Footprints For Mining Interactions
US20240051574A1 (en) Simulation scenario generation based on autonomous vehicle driving data
CN117496476B (en) Road network generation method, readable storage medium and intelligent device
CN115139999B (en) Vehicle and pedestrian anti-collision control method and device, electronic equipment and storage medium

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