CN115827427A - Vehicle dispatching monotonicity system testing method and device - Google Patents

Vehicle dispatching monotonicity system testing method and device Download PDF

Info

Publication number
CN115827427A
CN115827427A CN202211165361.2A CN202211165361A CN115827427A CN 115827427 A CN115827427 A CN 115827427A CN 202211165361 A CN202211165361 A CN 202211165361A CN 115827427 A CN115827427 A CN 115827427A
Authority
CN
China
Prior art keywords
vehicle
virtual
monotonicity
order
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211165361.2A
Other languages
Chinese (zh)
Inventor
王宁
沈洪顺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Apollo Intelligent Technology Beijing Co Ltd
Original Assignee
Apollo Intelligent Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Apollo Intelligent Technology Beijing Co Ltd filed Critical Apollo Intelligent Technology Beijing Co Ltd
Priority to CN202211165361.2A priority Critical patent/CN115827427A/en
Publication of CN115827427A publication Critical patent/CN115827427A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/10Internal combustion engine [ICE] based vehicles
    • Y02T10/40Engine management systems

Abstract

The disclosure provides a vehicle dispatching monotonicity system testing method and device, and relates to the technical field of data processing, in particular to the technical field of automatic driving. The specific implementation scheme is as follows: responding to the test requirement, and constructing a virtual test scene according to an actual road scene, the number of vehicles and the number of users specified by the test requirement; simulating each virtual user to initiate a travel order in a virtual test scene; obtaining order information of each travel order and position information of an idle vehicle which is not ordered in the virtual vehicles on a virtual road; sending the obtained order information and the position information to a vehicle dispatching monotonicity system to be tested so that the vehicle dispatching monotonicity system distributes target vehicles for each travel order according to the obtained order information and the position information; and obtaining a test result of the vehicle dispatching monotonicity system according to the result of the target vehicle distributed by the vehicle dispatching monotonicity system. By applying the scheme provided by the embodiment of the disclosure, the vehicle dispatching monotonicity system can be tested.

Description

Vehicle dispatching monotonicity system testing method and device
Technical Field
The disclosure relates to the technical field of data processing, in particular to the technical field of automatic driving, and specifically relates to a vehicle dispatching monotonicity system testing method and device.
Background
The vehicle dispatching monotony system is used for distributing an order initiated by a user on the travel platform to a vehicle operated in the travel platform according to a preset dispatching strategy, so that the vehicle can take the user according to a starting place and a destination in the distributed order.
After the development of the vehicle dispatching monotonicity system is completed, the developed vehicle dispatching monotonicity system needs to be tested.
Disclosure of Invention
The disclosure provides a vehicle dispatching monotonicity system testing method and device.
According to an aspect of the present disclosure, a vehicle dispatch monotonicity system testing method is provided, including:
responding to a test demand, and constructing a virtual test scene according to an actual road scene, the number of vehicles and the number of users specified by the test demand, wherein virtual users, virtual vehicles and virtual roads constructed according to roads in the actual road scene are configured in the virtual test scene;
simulating each virtual user to initiate a travel order in the virtual test scene;
obtaining order information of each travel order and position information of an idle vehicle which is not ordered in the virtual vehicles on the virtual road;
sending the obtained order information and the position information to a vehicle dispatching monotonicity system to be tested, so that the vehicle dispatching monotonicity system distributes target vehicles for each travel order according to the obtained order information and the position information;
and obtaining a test result of the vehicle dispatching monotonicity system according to a result of the vehicle dispatching monotonicity system distributing target vehicles.
According to another aspect of the present disclosure, there is provided a vehicle dispatch monotonicity system testing apparatus, including: the system comprises a scene construction module, a virtual road construction module and a virtual road construction module, wherein the scene construction module is used for responding to a test requirement and constructing a virtual test scene according to an actual road scene, the number of vehicles and the number of users specified by the test requirement, and virtual users, virtual vehicles and virtual roads constructed according to roads in the actual road scene are configured in the virtual test scene;
the order simulation module is used for simulating each virtual user to initiate a travel order in the virtual test scene;
the information acquisition module is used for acquiring order information of each travel order and position information of an idle vehicle which is not ordered in the virtual vehicles on the virtual road;
the information sending module is used for sending the obtained order information and the position information to a vehicle dispatching monotonicity system to be tested so that the vehicle dispatching monotonicity system distributes target vehicles for each travel order according to the obtained order information and the position information;
and the result obtaining module is used for obtaining a test result of the vehicle dispatching monotonicity system according to the result of the target vehicle distributed by the vehicle dispatching monotonicity system.
According to another aspect of the present disclosure, there is provided an electronic device including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the vehicle dispatch engine test method described above.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to execute the vehicle dispatch monotonicity system testing method described above.
According to another aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the vehicle dispatch monotonicity system testing method described above.
Therefore, when the scheme provided by the embodiment of the disclosure is applied to testing the vehicle dispatching monotonicity system, the virtual user is simulated to initiate a trip order in the virtual test scene constructed according to the test requirement, order information of the trip order is obtained, and position information of an idle vehicle which does not receive orders in the virtual test scene is obtained, so that after the order information of the trip order and the position information of an operating vehicle which does not receive orders are sent to the vehicle dispatching monotonicity system, the vehicle dispatching monotonicity system can distribute a target vehicle for the trip order according to the order information and the position information, and therefore a test result can be obtained according to a distribution result of the vehicle dispatching monotonicity system, and the vehicle dispatching monotonicity system is tested.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a schematic flow chart illustrating a first method for testing a vehicle dispatch dimming system according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow chart illustrating a second method for testing a vehicle dispatching dimming system according to an embodiment of the present disclosure;
FIG. 3 is a schematic flow chart illustrating a third method for testing a vehicle dispatching dimming system according to an embodiment of the present disclosure;
FIG. 4a is a schematic flow chart illustrating a fourth method for testing a vehicle dispatching dimming system according to an embodiment of the present disclosure;
fig. 4b is a schematic view of a workflow of a virtual test scenario provided by an embodiment of the present disclosure;
FIG. 5 is a schematic flow chart illustrating a fifth method for testing a vehicle dispatching dimming system according to an embodiment of the present disclosure;
FIG. 6 is a schematic flow chart illustrating a sixth vehicle dispatching dimming system testing method according to an embodiment of the present disclosure;
FIG. 7 is a schematic structural diagram of a first vehicle dispatching dimming system testing device according to an embodiment of the present disclosure;
FIG. 8 is a schematic structural diagram of a second vehicle dispatching dimming system testing device according to an embodiment of the present disclosure;
FIG. 9 is a schematic structural diagram of a third vehicle dispatching dimming system testing device according to an embodiment of the present disclosure;
FIG. 10 is a schematic structural diagram of a fourth testing apparatus for a vehicle braking system according to an embodiment of the present disclosure;
FIG. 11 is a schematic structural diagram of a fifth vehicle dispatching dimming system testing device according to an embodiment of the present disclosure;
FIG. 12 is a block diagram of an electronic device for implementing a vehicle dispatch monotonicity system test method of an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
When a vehicle monotonicity dispatching system is tested, in an existing test scheme, an actual road scene is usually selected as a test scene, an actual vehicle is used as a vehicle for testing in the test scene, and a tester is used as a user for testing, however, the number of vehicles, users and orders in the test scheme is usually small, and in the actual application scene of the vehicle monotonicity dispatching system, the system needs to distribute vehicles for each order under the condition of large-scale vehicles, users and orders, so that the scheme is difficult to simulate the actual application scene of the vehicle monotonicity dispatching system, the functions and the order dispatching strategy of the vehicle monotonicity dispatching system are difficult to be tested fully, and the effectiveness and the optimality of the vehicle monotonicity dispatching system in the actual application process are difficult to be guaranteed.
To solve this problem, embodiments of the present disclosure provide a method and an apparatus for testing a vehicle dispatch uniformity system, which are described in detail below.
Referring to fig. 1, fig. 1 is a schematic flow chart of a first vehicle dispatching monotonicity system testing method provided in an embodiment of the present disclosure, where the method includes the following steps S101 to S105.
Step S101: and responding to the test requirement, and constructing a virtual test scene according to the actual road scene, the number of vehicles and the number of users specified by the test requirement.
The virtual test scene is provided with a virtual user, a virtual vehicle and a virtual road constructed according to the road in the actual road scene.
The actual road scene may be a road scene in an actual city, such as beijing, guangzhou, shanghai, and the like.
The virtual user may be understood as a virtual user obtained by simulating an actual user existing in an actual scene.
The virtual vehicle may be understood as a virtual vehicle that simulates an actual vehicle present in an actual scene.
Specifically, in response to the test demand, an actual road scene, the number of vehicles, and the number of users specified in the test demand may be determined, so that road information of the actual road scene may be obtained, a virtual road in the virtual test scene may be constructed according to the road information, and a number of virtual users and virtual vehicles specified in the demand may be configured in the virtual test scene according to the number of vehicles and the number of users specified in the test demand.
In addition, when the virtual test scenario is constructed, a plurality of initial test scenarios in which only virtual roads are arranged may be constructed based on road information of a plurality of different actual road scenarios, so that after an actual road scenario specified by a test requirement is determined, a test scenario corresponding to the actual road scenario specified by the test requirement may be selected from a plurality of pre-constructed initial test scenarios, and a number of virtual users and virtual vehicles specified by the requirement may be arranged in the test scenario to obtain the virtual test scenario.
Step S102: and simulating each virtual user to initiate a travel order in the virtual test scene.
Specifically, for each virtual user, one position may be selected as a starting point of the virtual user in a virtual road of a virtual test scene, another position may be selected as a destination of the virtual user, and a travel order is generated according to the two selected positions and is used as a travel order initiated by the virtual user in the virtual test scene.
In one embodiment of the present disclosure, the origin and destination of the virtual user may be selected by either of the following two implementations.
In the first implementation, two positions may be arbitrarily selected as the departure place and the destination in the virtual road.
In the second implementation manner, the departure place and the destination of the virtual user can also be selected according to step S502 in the embodiment shown in the following fig. 5, which will not be described in detail here.
Step S103: and obtaining order information of each travel order and position information of the idle vehicles which are not ordered in the virtual vehicles on the virtual road.
The order information of the travel order may include position information of a departure place and a destination in the travel order, order state information, and the like.
The free vehicle is a virtual vehicle to which an order is not assigned.
Specifically, when the position information of the idle vehicles is obtained, the order taking state of each virtual vehicle can be obtained, and the idle vehicles which are not ordered in the virtual vehicles are determined, so that the position information of the idle vehicles is obtained.
Step S104: and sending the obtained order information and the position information to a vehicle dispatching monotonicity system to be tested so that the vehicle dispatching monotonicity system distributes target vehicles for each trip order according to the obtained order information and the position information.
Specifically, after order information of a travel order generated in a simulation mode and position information of an idle vehicle are sent to the vehicle dispatching monotonicity system, a distribution result output by the vehicle dispatching monotonicity system can be obtained, wherein the distribution result is as follows: and the vehicle dispatching monotony system distributes the result of the target vehicle to each travel order according to the order information of the travel orders and the position information of the idle vehicle based on a preset dispatching strategy.
In one embodiment of the disclosure, the idle vehicle may be located at a preset idle position in the virtual test scene, or may be located at a randomly selected position on the virtual road, and the idle vehicle may further move according to a preset path.
The preset path may be set manually.
In the scheme, the state of the idle vehicle without receiving the order in the virtual test scene can be one of three states of being located at a preset idle position, being located at a random position and moving according to a preset path, so that the state of the actual vehicle when the order is not received can be simulated as much as possible, the virtual test scene is similar to the actual scene as much as possible, the vehicle dispatching monotonicity system is tested based on the real virtual test scene, the test accuracy can be improved, and the vehicle dispatching monotonicity system can be guaranteed to carry out order distribution correctly, effectively and stably in the actual application process. The position information of the idle vehicle is real-time position information of the idle vehicle in a virtual test scene, and when the idle vehicle moves according to a preset path, the position information of the idle vehicle is the position information of the vehicle in a real-time dynamic advancing process, so that the dynamic real-time distribution function of a vehicle dispatching monotonicity system can be tested.
Step S105: and obtaining a test result of the vehicle dispatching monotonicity system according to the result of the target vehicle distributed by the vehicle dispatching monotonicity system.
The result of the vehicle dispatching monotonicity system distributing the target vehicle has various representation modes, and the judgment modes for judging whether the vehicle dispatching monotonicity system passes the test are different for the distribution results in different representation modes.
Two expression modes of the distribution result are listed below, and a judgment mode for judging whether the vehicle dispatching uniformity system passes the test or not corresponding to the two expression modes is described, and the other expression modes of the distribution result and the judgment modes corresponding to the other expression modes are not described in detail here.
In the first case, when the vehicle dispatching monotonicity system allocates the target vehicles for the travel orders, it is necessary to allocate one target vehicle for each travel order, and if the same target vehicle is allocated for a plurality of travel orders or a plurality of target vehicles are allocated for one travel order, it is indicated that the vehicle dispatching monotonicity system is abnormal. In view of this, the distribution result may be expressed as a corresponding relationship between the travel orders and the target vehicles, and if each travel order corresponds to one target vehicle and the target vehicles corresponding to the travel orders are different, it may be determined that the test result of the vehicle dispatching monotonicity system is passed, whereas if there are one-to-many, many-to-one, or the target vehicles are not distributed for the travel orders between the travel orders and the target vehicles, it may be determined that the test result of the vehicle dispatching monotonicity system is not passed.
In the second case, after the vehicle dispatching system allocates the target vehicle to the travel order, the order status of the travel order may be changed, for example, before allocating the target vehicle, the order status of the travel order may be a waiting order receiving status, and after allocating the target vehicle, the order status of the travel order may be a going-to-pickup status. In view of this, the distribution result may represent order states of the travel orders after the vehicle dispatching monotonicity system distributes the target vehicle, if the order states of all the travel orders are the preset order states after the target vehicle is distributed, it may be determined that the test result of the vehicle dispatching monotonicity system is passed, otherwise, if the order states of the travel orders are not the preset order states after the target vehicle is distributed, it may be determined that the test result of the vehicle dispatching monotonicity system is not passed.
Therefore, when the scheme provided by the embodiment of the disclosure is applied to testing the vehicle dispatching monotonicity system, the virtual user is simulated to initiate a trip order in the virtual test scene constructed according to the test requirement, order information of the trip order is obtained, and position information of an idle vehicle which does not receive orders in the virtual test scene is obtained, so that after the order information of the trip order and the position information of an operating vehicle which does not receive orders are sent to the vehicle dispatching monotonicity system, the vehicle dispatching monotonicity system can distribute a target vehicle for the trip order according to the order information and the position information, and therefore a test result can be obtained according to a distribution result of the vehicle dispatching monotonicity system, and the vehicle dispatching monotonicity system is tested.
The scheme is realized based on virtual test scenes, and the test in actual scenes is not needed, so that the test cost of manpower, material resources and the like can be saved, different virtual test scenes can be constructed according to different actual road scenes, and thus different virtual test scenes can be utilized to test the vehicle dispatching monotonicity system, and the expandability of testing the vehicle dispatching monotonicity system is improved. The scene scale can be adjusted by specifying the number of vehicles and the number of users in the test requirements, so that the virtual test scenes with different scales can be used for testing, and the maximum order dispatching rule which can be borne by the vehicle order dispatching system is determined, namely the system capacity of the vehicle order dispatching system is determined.
In addition, in an actual application scenario, the vehicle dispatching monotonicity system generally needs to distribute vehicles for each travel order on the basis of large-scale travel orders and operation vehicles, and the scheme provided by the embodiment of the disclosure utilizes a virtual test scenario to perform testing, so that a large number of virtual users and virtual vehicles can be configured in the scenario, and a large number of travel orders are generated in a simulation manner, so that functions and dispatching strategies of the vehicle dispatching monotonicity system under the condition of large-scale vehicles and orders can be accurately tested, and the effectiveness and the optimality of the vehicle dispatching monotonicity system in the actual application process are guaranteed.
When the vehicle dispatching monotone system distributes the target vehicles for the travel orders, the target vehicles corresponding to the travel orders are determined in all the idle vehicles according to the order information of the travel orders and the position information of the idle vehicles, and the idle vehicles which do not receive the orders are converted into the target vehicles which receive the orders. In the order receiving process of the target vehicle, the order state of the travel order can be updated according to a preset updating rule, the position information of the target vehicle is updated according to the updated order state until the order is completed, and at the moment, the target vehicle which has received the order is converted into an idle vehicle which does not receive the order.
In one embodiment of the present disclosure, referring to fig. 2, a flowchart of a second method for testing a vehicle matching dimming system is provided, and in this embodiment, the method includes the following steps S201 to S206.
Step S201: and responding to the test requirement, and constructing a virtual test scene according to the actual road scene, the number of vehicles and the number of users specified by the test requirement.
Step S202: and simulating each virtual user to initiate a travel order in the virtual test scene.
Step S203: and obtaining order information of each travel order and position information of the idle vehicles which are not ordered in the virtual vehicles on the virtual road.
Step S204: and sending the obtained order information and the position information to a vehicle dispatching monotonicity system to be tested so that the vehicle dispatching monotonicity system distributes target vehicles for each trip order according to the obtained order information and the position information.
Step S205: and obtaining a test result of the vehicle dispatching monotonicity system according to the result of the target vehicle distributed by the vehicle dispatching monotonicity system.
The steps S201 to S205 are the same as the steps S101 to S105 in the embodiment shown in fig. 1, and are not described again here.
Step S206: and aiming at each unfinished travel order, according to the current state of the travel order and a predefined state change flow, performing state circulation, updating the state of the travel order, and according to the updated state, updating the position information of a target vehicle executing the travel order.
Each order state in the state change process can be a starting point arrival state, a driving delivery state and an ending point arrival state in sequence.
In addition to the three states, each order state in the state change process may further include at least one of an order creation state and a pickup state.
Specifically, for each unfinished travel order, the current state of the travel order may be obtained, and the order state of the travel order is updated to the next order state of the current state in the state change flow according to a preset circulation rule.
For example, the circulation rule may be that the order state of the travel order is updated to the next order state of the current order state at preset time intervals.
After the order state of the travel order is updated, the new position information of the target vehicle executing the travel order can be determined according to the updated order state and the relationship between the preset order state and the vehicle position, and the position information of the target vehicle is updated to be the determined new position information.
As can be seen from the above, by applying the scheme provided by the embodiment of the present disclosure to test the vehicle dispatching monotonicity system, when the target vehicle executes the trip order, the state can be circulated according to the predefined state change process to simulate the order state change process of the trip order in the actual scene, and after the order state is updated, the position information of the target vehicle executing the trip order is updated according to the updated order state, so that the order taking process of the virtual vehicle in the virtual test scene is closer to the order taking process of the actual vehicle, so that the virtual test scene is more similar to the actual scene, and thus the vehicle dispatching monotonicity system is tested by using the virtual test scene which is more similar to the actual scene, and the test accuracy can be improved.
In one embodiment of the present disclosure, the state change process sequentially includes a start-to-arrive state, a drive-sending state, and an end-to-arrive state.
After the position information of the target vehicle is updated, if the updated state is the arrival starting point state, the position information of the target vehicle executing the travel order is updated to be the position information of the departure place recorded in the travel order; if the updated state is the driving state, updating the position information of the target vehicle executing the travel order to be the position information of a predicted position, wherein the predicted position is obtained according to the path recorded in the travel order and the execution duration of the travel order in a prediction mode; and if the updated state is the arrival end state, updating the position information of the target vehicle executing the travel order to be the destination recorded in the travel order.
When the predicted position is calculated, the traveling speed of the target vehicle may be set in advance, and the traveling distance traveled by the target vehicle within the execution duration may be obtained by multiplying the traveling speed of the target vehicle by the execution duration of the travel order, so that a position where a path distance from the departure point is the traveling distance may be determined in a path recorded in the travel order, and the position information of the target vehicle executing the travel order may be updated to the position information of the determined position.
In addition, if the order status of the travel order is periodically updated, the travel speed may be calculated according to the path length and the update period recorded in the travel order.
In the scheme, in an actual scene, when an actual vehicle arrives at a departure place, the order state of a travel order is updated to an arrival starting point state, in the driving process of the actual vehicle, the position of the actual vehicle is determined according to a path recorded in the travel order and the order execution duration, and when the actual vehicle arrives at a destination, the order state of the travel order is updated to an arrival end point state.
In an actual scenario, different vehicles may be assigned to different user-initiated travel orders, for example, vehicles of different vehicle types may be assigned to different user-initiated travel orders of different grades.
Based on the above situation, in an embodiment of the present disclosure, referring to fig. 3, a flowchart of a third method for testing a vehicle dispatching schedule system is provided, and in this embodiment, the method includes the following steps S301 to S307.
Step S301: and responding to the test requirement, and constructing a virtual test scene according to the actual road scene, the number of vehicles and the number of users specified by the test requirement.
Step S302: and simulating each virtual user to initiate a travel order in the virtual test scene.
Step S303: and obtaining order information of each travel order and position information of the idle vehicles which are not ordered in the virtual vehicles on the virtual road.
The steps S301-S303 are the same as the steps S101-S103 in the embodiment shown in FIG. 1, and are not described again here.
Step S304: and obtaining the target user attribute of the virtual user initiating the travel order.
The user attributes are used for describing virtual users.
The target user attributes may include a preset level of the virtual user initiating the travel order, a corresponding preset user age group, and the like.
Specifically, when the virtual users are configured in the virtual test scenario, the user attribute of each virtual user to be configured may be set, so that after the simulated virtual user initiates a trip order, the user attribute of the virtual user corresponding to the trip order may be obtained and used as the target user attribute of the virtual user initiating the trip order.
Step S305: an idle vehicle attribute of the idle vehicle is obtained.
Wherein the vehicle attributes are used to describe a virtual vehicle.
The vehicle attribute may be a vehicle type, a vehicle color, a vehicle brand, and the like corresponding to the virtual vehicle.
Additionally, the vehicle attributes of the virtual vehicle may also include attributes of drivers assigned on the virtual vehicle, such as driver age, driver rating, driver quality of service score, and the like.
Specifically, when the virtual vehicles are configured in the virtual test scenario, the vehicle attributes of the virtual vehicles may be set for each virtual vehicle that needs to be configured, so that the free vehicle attributes of the free vehicles may be obtained after the free vehicles existing in the virtual test scenario are determined.
Step S306: and sending the obtained order information, the position information, the target user attribute and the idle vehicle attribute to a vehicle dispatching monotonicity system to be tested, so that the vehicle dispatching monotonicity system distributes a target vehicle for the trip order according to the obtained order information, the obtained position information, the obtained target user attribute and the obtained idle vehicle attribute.
Specifically, after the order information of the trip order, the position information of the idle vehicle, the target user attribute of the virtual user initiating the trip order and the idle vehicle attribute of the idle vehicle are sent to the vehicle dispatching monotonicity system, the vehicle dispatching monotonicity system can allocate target vehicles with different attributes to the trip orders initiated by the virtual users with different attributes according to the target user attribute and the idle vehicle attribute.
Step S307: and obtaining a test result of the vehicle dispatching monotonicity system according to the result of the target vehicle distributed by the vehicle dispatching monotonicity system.
This step is the same as step S105 in the embodiment shown in fig. 1, and is not repeated here.
As can be seen from the above, when the scheme provided by the embodiment of the disclosure is applied to test the vehicle dispatching monotonicity system, in addition to sending the order information of the trip order and the position information of the idle vehicle to the vehicle dispatching monotonicity system, the target user attribute of the virtual user initiating the trip order and the idle vehicle attribute of the idle vehicle are also sent to the vehicle dispatching monotonicity system, so that whether the allocation function and the allocation strategy of the vehicle dispatching monotonicity system are accurate and reliable in consideration of various information can be tested. Therefore, the vehicle dispatching monotonicity system test scheme provided by the embodiment of the disclosure can improve the test accuracy.
In an actual scene, the actual vehicle usually only receives orders within a preset time period, and stops receiving orders in other time periods, so as to prevent the vehicle from being damaged due to long-time running.
Based on the above situation, in an embodiment of the present disclosure, referring to fig. 4a, a flowchart of a fourth method for testing vehicle dispatch monotonicity system words is provided, and in this embodiment, the method includes the following steps S401 to S406.
Step S401: and obtaining the operation task of the virtual vehicle of the target vehicle attribute.
Wherein the target vehicle attribute is a vehicle attribute specified in the test requirements.
The operation tasks corresponding to the target vehicle attributes are used for: indicating the number of virtual vehicles of the target vehicle attribute configured in the virtual test scene in each preset time period.
The preset time period may be a time period within a day, a time period within a week, or other time periods.
The target vehicle attributes correspond to the operation tasks one by one, one target vehicle attribute corresponds to one operation task, and multiple target vehicle attributes correspond to multiple operation tasks.
Specifically, the operation task of the virtual vehicle of the target vehicle attribute may be obtained by any one of the following two implementations.
In a first implementation manner, the target vehicle attribute may belong to multiple preset initial vehicle attributes, and for each initial vehicle attribute, an operation task of the virtual vehicle of each initial vehicle attribute in the virtual test scene may be created in advance, so that after the test requirement is obtained, an operation task corresponding to the virtual vehicle of the target vehicle attribute in the test requirement may be selected from the created operation tasks of the multiple virtual vehicles.
In a second implementation manner, an operation task set for the virtual vehicle with the target vehicle attribute by the user according to the test scenario expected by the user can be obtained.
Step S402: and responding to the test requirement, and constructing a virtual test scene according to the actual road scene specified by the test requirement, the number of users and the obtained operation task.
Specifically, in response to the test requirement, the preset time period in which the current time is located may be determined, and the number of virtual vehicles of the target vehicle attribute that need to be configured in the virtual test scenario in the preset time period, which are recorded in the operation task, is determined, so that the virtual test scenario is constructed according to the actual road scenario, the number of users, and the number of virtual vehicles of the target vehicle attribute specified by the test requirement.
In addition, when there are a plurality of target vehicle attributes, the number of virtual vehicles having various target vehicle attributes can be determined, and thus, when constructing a virtual test scenario, the scenario construction can be performed according to the actual road scenario, the number of users, and the number of virtual vehicles having various target vehicle attributes, which are specified by the test requirements.
Step S403: and simulating each virtual user to initiate a travel order in the virtual test scene.
Step S404: and obtaining order information of each travel order and position information of the idle vehicles which are not ordered in the virtual vehicles on the virtual road.
Step S405: and sending the obtained order information and the position information to a vehicle dispatching monotonicity system to be tested so that the vehicle dispatching monotonicity system distributes target vehicles for each trip order according to the obtained order information and the position information.
Step S406: and obtaining a test result of the vehicle dispatching monotonicity system according to the result of the target vehicle distributed by the vehicle dispatching monotonicity system.
The steps S403 to S406 are the same as the steps S102 to S105 in the embodiment shown in fig. 1, and are not repeated here.
As can be seen from the above, when the scheme provided by the embodiment of the disclosure is applied to test a vehicle dispatching monotonicity system, the operation task of the virtual vehicle of the target vehicle attribute specified in the test requirement is obtained, and the virtual test scene is constructed according to the actual road scene, the number of users and the operation task specified in the test requirement, so that the real operation condition of the actual vehicle in the actual scene can be simulated, and thus the constructed virtual test scene is more similar to the actual scene, and the accuracy of testing the vehicle dispatching monotonicity system can be improved by using the virtual test scene which is more similar to the actual scene.
In an embodiment of the present disclosure, referring to fig. 4b, fig. 4b is a schematic workflow diagram of a virtual test scenario. In fig. 4b, user represents a User, AMIS represents a User configuration interface, autoingine represents an operating engine where a virtual test scenario is located, store represents a storage system for storing order information, order state change record information, operation task state information, task execution record information, and the like, schedule represents an order system for managing orders, record represents a capacity system for executing various test operations, and Harbor represents a real-time position system for monitoring a real-time position of a virtual vehicle in the virtual test scenario.
When the vehicle dispatch monotonicity system is tested, a user can select an actual road scene RegionID, a vehicle CarID and other Configuration information specified by a test requirement in the AMIS, the AMIS informs the AutoEngine to start the engine and sends the information selected by the user to the AutoEngine, the AutoEngine constructs a virtual test scene according to the information, and updates the task state of the operation task of the virtual vehicle stored in the Store into the starting state to start the operation task of the virtual vehicle. In the operation task initialization process, the AutoEngine firstly queries vehicle task information through the Recource, namely queries whether a planning task exists in the above-mentioned cariD type virtual vehicle, if so, the planning task is triggered, if not, vehicle task information is created, namely, the planning task of the type of virtual vehicle is created, after the planning task is created, the planning task is triggered, a driver information set is obtained, a safety worker is distributed to the vehicle task, namely, a driver is distributed to the virtual vehicle in the planning task, then the task state of the operation task of the virtual vehicle stored in the Store is updated to be started, an AMIS engine is notified that the starting is successful, and the AMIS notifies the user of the successful starting.
In the process of testing the vehicle dispatching monotonicity system by using the virtual test scene operated in the AutoEngine, the AutoEngine carries out engine automation processing and starts to operate the virtual test scene. In the running process of the virtual test scene, the AutoEngine reports a real-time position to the Harbor simulated vehicle, and sends information such as virtual vehicle starting order receiving, order obtaining, order state updating and the like to the Schedule, wherein the order state carries out state circulation according to an order state change flow recorded in a preset state machine, and the order state in the order state change process is as follows: the system comprises a received order state, a head-up receiving state, a starting point state, a head-up sending state and a terminal getting-off completion state. In the interaction process of the AutoEngine and the Schedule, the Store can also acquire and Store order information and state change records in the interaction process from the AutoEngine. In addition, the user may also send an inquiry instruction for inquiring the execution condition of the operation task to the AMIS, and after the AMIS obtains the instruction, the AMIS sends an inquiry instruction for inquiring the task to the autoingine. The AutoEngine queries the task execution record in the Store based on the query instruction, and feeds the queried task execution record back to the AMIS, so that the AMIS can show the task execution record to the user.
In an actual scenario, a plurality of location sites are usually arranged on a travel platform, so that when a user initiates a travel order, the user can select a departure place and a destination from the plurality of location sites, and thus the travel order is generated according to the selected departure place and destination. For example, the location site in the actual scene may be determined according to the location of a landmark place such as a school, a hospital, a park, and the like in the actual scene. In view of this, when testing the vehicle dispatching schedule system, a plurality of location sites may also be configured in the constructed virtual test scenario for simulating the actual user to initiate a travel order.
In an embodiment of the present disclosure, referring to fig. 5, a flowchart of a fifth vehicle dispatching scheduling system testing method is provided, in which in this embodiment, a virtual testing scenario is configured with a plurality of location sites.
The position sites can be randomly selected in the virtual test scene, or can be selected according to landmark places in the virtual test scene.
The above method includes the following steps S501 to S505.
Step S501: and responding to the test requirement, and constructing a virtual test scene according to the actual road scene, the number of vehicles and the number of users specified by the test requirement.
This step is the same as step S101 in the embodiment shown in fig. 1, and is not described again here.
Step S502: and for each virtual user, selecting one position station from the position stations as a starting place, selecting another position station as a destination, and simulating the virtual user to initiate a travel order.
Specifically, for each virtual user, the virtual user may be simulated to initiate a travel order through any one of the following two implementation manners.
In a first implementation manner, position information of the virtual user in a virtual test scenario may be obtained, a position station closest to the virtual user is determined among position stations according to the position information, and is used as a starting point, and one position station is selected from other position stations as a destination, so that the virtual user is simulated to initiate a travel order based on the selected starting point and destination.
In a second implementation manner, one of the location sites may be arbitrarily selected as a departure point, the location information of the virtual user is updated to the location information of the departure point, and another location site may be arbitrarily selected as a destination, so that the virtual generation of the travel order is simulated based on the selected departure point and destination.
Step S503: and obtaining order information of each travel order and position information of the idle vehicles which are not ordered in the virtual vehicles on the virtual road.
Step S504: and sending the obtained order information and the position information to a vehicle dispatching monotonicity system to be tested so that the vehicle dispatching monotonicity system distributes target vehicles for each trip order according to the obtained order information and the position information.
Step S505: and obtaining a test result of the vehicle dispatching monotonicity system according to the result of the target vehicle distributed by the vehicle dispatching monotonicity system.
The steps S503 to S505 are respectively the same as the steps S103 to S105 in the embodiment shown in FIG. 1, and are not described again here.
Therefore, when the scheme provided by the embodiment of the disclosure is applied to testing the vehicle dispatching monotonicity system, a plurality of position sites are configured in the virtual test scene, so that when a simulated virtual user initiates a trip order, the user initiating the trip order in the actual scene can be accurately simulated, the virtual test scene can be more similar to the actual scene, the vehicle dispatching monotonicity system is tested by using the virtual test scene which is more similar to the actual scene, and the test accuracy can be improved.
The vehicle number and the user number specified in the test requirements can reflect the test scale for testing the vehicle dispatching monotonicity system, and the vehicle dispatching monotonicity system can be tested in different test scales in response to the test requirements specified with different vehicle numbers and/or user numbers, so that the vehicle dispatching monotonicity system is optimized according to the performances of the vehicle dispatching monotonicity system in different test scales.
In one embodiment of the present disclosure, referring to fig. 6, a flowchart of a sixth vehicle dispatching uniformity system testing method is provided, and in this embodiment, the method includes the following steps S601-S606.
Step S601: and responding to the test requirement, and constructing a virtual test scene according to the actual road scene, the number of vehicles and the number of users specified by the test requirement.
Step S602: and simulating each virtual user to initiate a travel order in the virtual test scene.
Step S603: and obtaining order information of each travel order and position information of the idle vehicles which are not ordered in the virtual vehicles on the virtual road.
Step S604: and sending the obtained order information and the position information to a vehicle dispatching monotonicity system to be tested so that the vehicle dispatching monotonicity system distributes target vehicles for each trip order according to the obtained order information and the position information.
Step S605: and obtaining a test result of the vehicle dispatching monotonicity system according to the result of the target vehicle distributed by the vehicle dispatching monotonicity system.
The steps S601 to S605 are the same as the steps S101 to S105, and are not described herein again.
Step S606: and optimizing a vehicle dispatching monotonicity system according to the test result corresponding to each test requirement under the condition that a plurality of test requirements for specifying different vehicle quantities and/or user quantities exist.
Specifically, one test requirement corresponds to one test scale, i.e., a dispatch rule, and one test requirement corresponds to one test result. The test result corresponding to one test requirement can represent the test effect of testing the vehicle dispatching monotonicity system under the test scale corresponding to the test requirement, namely the dispatching effect of the vehicle dispatching monotonicity system under the dispatching rule corresponding to the test requirement, so that the test results corresponding to a plurality of different test requirements also represent the dispatching effect of the vehicle dispatching monotonicity system under a plurality of dispatching rules, and the vehicle dispatching monotonicity system can be optimized based on the dispatching effect of the vehicle dispatching monotonicity system under the plurality of dispatching rules according to the test result corresponding to each test requirement.
For example, if the vehicle dispatching monotonicity system is configured with different dispatching strategies for different dispatching models, the dispatching strategies under each configured dispatching model can be adjusted according to the dispatching effect of the vehicle dispatching monotonicity system under various dispatching models obtained through testing. For example, if the test result corresponding to the test requirement obtained by the test has a poor dispatch result, the dispatch strategy under the dispatch rule corresponding to the test requirement in the vehicle dispatch monotonicity system may be replaced, or parameters in the vehicle dispatch monotonicity system may be adjusted.
In addition, after the vehicle dispatching monotonicity system is optimized, the optimized system can be tested again, so that the test and the optimization are carried out continuously, and the dispatching accuracy of the vehicle dispatching monotonicity system can be improved.
As can be seen from the above, when the scheme provided by the embodiment of the present disclosure is applied to test the dispatching monotonicity system, under the condition that there are a plurality of test requirements that specify different vehicle quantities and/or user quantities, the vehicle dispatching monotonicity system can be optimized according to the test result corresponding to each test requirement, so that the vehicle dispatching monotonicity system can be accurately optimized based on the dispatching effect of the vehicle dispatching monotonicity system under various dispatching models, and the accuracy of dispatching the vehicle dispatching monotonicity system can be improved.
Corresponding to the vehicle dispatching monotonicity system testing method, the embodiment of the disclosure also provides a vehicle dispatching monotonicity system testing device.
In one embodiment of the present disclosure, referring to fig. 7, a schematic structural diagram of a first vehicle dispatching and dimming system testing device is provided, the device includes:
a scene construction module 701, configured to respond to a test demand, construct a virtual test scene according to an actual road scene, a number of vehicles, and a number of users specified by the test demand, where a virtual user, a virtual vehicle, and a virtual road constructed according to a road in the actual road scene are configured in the virtual test scene;
an order simulation module 702, configured to simulate each virtual user to initiate a travel order in the virtual test scenario;
an information obtaining module 703, configured to obtain order information of each trip order and position information of an idle vehicle on the virtual road, where the order is not placed, in the virtual vehicle;
an information sending module 704, configured to send the obtained order information and the position information to a vehicle dispatching monotonicity system to be tested, so that the vehicle dispatching monotonicity system allocates a target vehicle to each trip order according to the obtained order information and the position information;
the result obtaining module 705 is used for obtaining a test result of the vehicle dispatching monotonicity system according to a result of the vehicle dispatching monotonicity system distributing target vehicles.
Therefore, when the scheme provided by the embodiment of the disclosure is applied to testing the vehicle dispatching monotonicity system, the virtual user is simulated to initiate a trip order in the virtual test scene constructed according to the test requirement, order information of the trip order is obtained, and position information of an idle vehicle which does not receive orders in the virtual test scene is obtained, so that after the order information of the trip order and the position information of an operating vehicle which does not receive orders are sent to the vehicle dispatching monotonicity system, the vehicle dispatching monotonicity system can distribute a target vehicle for the trip order according to the order information and the position information, and therefore a test result can be obtained according to a distribution result of the vehicle dispatching monotonicity system, and the vehicle dispatching monotonicity system is tested.
The scheme is realized based on virtual test scenes, and the test in actual scenes is not needed, so that the test cost of manpower, material resources and the like can be saved, different virtual test scenes can be constructed according to different actual road scenes, and thus different virtual test scenes can be utilized to test the vehicle dispatching monotonicity system, and the expandability of testing the vehicle dispatching monotonicity system is improved. The scene scale can be adjusted by specifying the number of vehicles and the number of users in the test requirements, so that the virtual test scenes with different scales can be used for testing, and the maximum order dispatching rule which can be borne by the vehicle order dispatching system is determined, namely the system capacity of the vehicle order dispatching system is determined.
In addition, in an actual application scenario, the vehicle dispatching monotonicity system generally needs to allocate vehicles for each travel order on the basis of large-scale travel orders and operating vehicles, and the scheme provided by the embodiment of the disclosure utilizes a virtual test scenario to perform testing, so that a large number of virtual users and virtual vehicles can be configured in the scenario, and a large number of travel orders can be generated in a simulation manner, so that the functions and dispatching strategies of the vehicle dispatching monotonicity system under the condition of large-scale vehicles and orders can be accurately tested, and the effectiveness and the optimality of the vehicle dispatching monotonicity system in the actual application process are guaranteed.
In one embodiment of the present disclosure, referring to fig. 8, a schematic structural diagram of a second vehicle braking system testing apparatus is provided, the apparatus includes:
a scene construction module 801, configured to respond to a test demand, construct a virtual test scene according to an actual road scene, a number of vehicles, and a number of users specified by the test demand, where a virtual user, a virtual vehicle, and a virtual road constructed according to a road in the actual road scene are configured in the virtual test scene;
an order simulation module 802, configured to simulate each virtual user to initiate a travel order in the virtual test scenario;
an information obtaining module 803, configured to obtain order information of each trip order and position information of an idle vehicle on the virtual road, where the order is not placed, in the virtual vehicle;
the information sending module 804 is configured to send the obtained order information and the position information to a vehicle dispatching monotonicity system to be tested, so that the vehicle dispatching monotonicity system distributes a target vehicle to each trip order according to the obtained order information and the position information;
a result obtaining module 805, configured to obtain a test result of the vehicle dispatching monotonicity system according to a result of the vehicle dispatching monotonicity system distributing target vehicles;
the system optimization module 806 is configured to, in the presence of a plurality of test requirements that specify different numbers of vehicles and/or numbers of users, optimize the vehicle dispatching monotonicity system according to a test result corresponding to each test requirement after obtaining a result of the vehicle dispatching monotonicity system by distributing the target vehicle according to the vehicle dispatching monotonicity system.
As can be seen from the above, when the scheme provided by the embodiment of the disclosure is applied to test the monotonicity dispatching system, under the condition that there are a plurality of test requirements that specify different vehicle quantities and/or user quantities, the monotonicity dispatching system can be optimized according to the test results corresponding to the test requirements, so that the monotonicity dispatching system can be accurately optimized based on the dispatching effect of the monotonicity dispatching system under various dispatching models, and the accuracy of dispatching orders by the monotonicity dispatching system can be improved.
In one embodiment of the present disclosure, referring to fig. 9, a schematic structural diagram of a third vehicle sending cruise test apparatus is provided, the apparatus includes:
a scene construction module 901, configured to respond to a test demand, construct a virtual test scene according to an actual road scene, a number of vehicles, and a number of users specified by the test demand, where a virtual user, a virtual vehicle, and a virtual road constructed according to a road in the actual road scene are configured in the virtual test scene;
an order simulation module 902, configured to simulate each virtual user to initiate a travel order in the virtual test scenario;
an information obtaining module 903, configured to obtain order information of each trip order and position information of an idle vehicle on the virtual road, where the order is not placed, in the virtual vehicle;
an information sending module 904, configured to send the obtained order information and the position information to a vehicle dispatching monotonicity system to be tested, so that the vehicle dispatching monotonicity system distributes a target vehicle to each trip order according to the obtained order information and the position information;
a result obtaining module 905, configured to obtain a test result of the vehicle dispatching monotonicity system according to a result that the vehicle dispatching monotonicity system distributes target vehicles;
a state updating module 906, configured to perform state circulation according to a predefined state change flow and a current state of each unfinished travel order according to the travel order, update the state of the travel order, and update the position information of the target vehicle executing the travel order according to the updated state.
As can be seen from the above, by applying the scheme provided by the embodiment of the disclosure to test the vehicle dispatching monotonicity system, when the target vehicle executes the travel order, the state circulation can be performed according to the predefined state change process, so as to simulate the order state change process of the travel order in the actual scene, and after the order state is updated, the position information of the target vehicle executing the travel order is updated according to the updated order state, so that the order receiving process of the virtual vehicle in the virtual test scene is closer to the order receiving process of the actual vehicle, so that the virtual test scene is more similar to the actual scene, and thus, the vehicle dispatching monotonicity system is tested by using the virtual test scene which is more similar to the actual scene, and the test accuracy can be improved.
In an embodiment of the present disclosure, the status updating module 906 is specifically configured to:
for each unfinished travel order, according to the current state of the travel order and a predefined state change flow, performing state circulation, updating the state of the travel order, and if the updated state is the state of reaching a starting point, updating the position information of a target vehicle executing the travel order to be the position information of a departure place recorded in the travel order; if the updated state is the driving state, updating the position information of the target vehicle executing the travel order to be the position information of a predicted position, wherein the predicted position is obtained according to the path recorded in the travel order and the execution duration of the travel order in a prediction mode; and if the updated state is the arrival end state, updating the position information of the target vehicle executing the travel order to be the destination recorded in the travel order.
In the scheme, in an actual scene, when an actual vehicle arrives at a departure place, the order state of a travel order is updated to an arrival starting point state, in the driving process of the actual vehicle, the position of the actual vehicle is determined according to a path recorded in the travel order and the order execution duration, and when the actual vehicle arrives at a destination, the order state of the travel order is updated to an arrival end point state.
In one embodiment of the present disclosure, referring to fig. 10, a schematic structural diagram of a fourth vehicle dispatch trim system test apparatus is provided, the apparatus comprising:
the scene construction module 1001 is configured to respond to a test requirement, construct a virtual test scene according to an actual road scene, the number of vehicles, and the number of users specified by the test requirement, where a virtual user, a virtual vehicle, and a virtual road constructed according to a road in the actual road scene are configured in the virtual test scene;
the order simulation module 1002 is configured to simulate each virtual user to initiate a travel order in the virtual test scene;
an information obtaining module 1003, configured to obtain order information of each travel order and position information of an idle vehicle on the virtual road, where the travel order is not placed, in the virtual vehicle;
a user attribute obtaining module 1004, configured to obtain a target user attribute of the virtual user initiating the travel order;
a vehicle attribute obtaining module 1005 for obtaining an idle vehicle attribute of the idle vehicle;
an information sending module 1006, specifically configured to send the obtained order information, location information, target user attribute, and idle vehicle attribute to a vehicle sending monotonicity system to be tested, so that the vehicle sending monotonicity system allocates a target vehicle to the trip order according to the obtained order information, location information, target user attribute, and idle vehicle attribute;
and the result obtaining module 1007 is used for obtaining a test result of the vehicle dispatching monotonicity system according to the result of the target vehicle distributed by the vehicle dispatching monotonicity system.
As can be seen from the above, when the scheme provided by the embodiment of the disclosure is applied to test the vehicle dispatching monotonicity system, in addition to sending the order information of the trip order and the position information of the idle vehicle to the vehicle dispatching monotonicity system, the target user attribute of the virtual user initiating the trip order and the idle vehicle attribute of the idle vehicle are also sent to the vehicle dispatching monotonicity system, so that whether the allocation function and the allocation strategy of the vehicle dispatching monotonicity system are accurate and reliable in consideration of various information can be tested. Therefore, the vehicle dispatching monotonicity system test scheme provided by the embodiment of the disclosure can improve the test accuracy.
In one embodiment of the present disclosure, referring to fig. 11, a schematic structural diagram of a fifth vehicle braking system testing apparatus is provided, the apparatus includes:
a task obtaining module 1101, configured to obtain an operation task of a virtual vehicle of a target vehicle attribute before constructing a virtual test scenario according to an actual road scenario, a vehicle number, and a user number specified by the test requirement, where the target vehicle attribute is a vehicle attribute specified in the test requirement, and the operation task corresponding to the target vehicle attribute is used to: indicating the number of virtual vehicles of the target vehicle attribute configured in the virtual test scene in each preset time period;
the scene construction module 1102 is specifically configured to respond to a test requirement, and construct a virtual test scene according to an actual road scene specified by the test requirement, the number of users, and an obtained operation task;
an order simulation module 1103, configured to simulate each virtual user to initiate a travel order in the virtual test scenario;
an information obtaining module 1104, configured to obtain order information of each travel order and position information of an idle vehicle on the virtual road, where the travel order is not placed, in the virtual vehicle;
the information sending module 1105 is configured to send the obtained order information and the position information to a vehicle dispatching monotonicity system to be tested, so that the vehicle dispatching monotonicity system allocates a target vehicle to each trip order according to the obtained order information and the position information;
a result obtaining module 1106, configured to obtain a test result of the vehicle dispatching monotonicity system according to a result that the vehicle dispatching monotonicity system distributes target vehicles.
As can be seen from the above, when the scheme provided by the embodiment of the present disclosure is applied to test a vehicle dispatching monotonicity system, the operation task of the virtual vehicle of the target vehicle attribute specified in the test requirement is obtained, and the virtual test scenario is constructed according to the actual road scenario, the number of users, and the operation task specified in the test requirement, so that the actual operation situation of the actual vehicle in the actual scenario can be simulated, and thus the constructed virtual test scenario is more similar to the actual scenario, and the test is performed by using the virtual test scenario that is more similar to the actual scenario, so that the accuracy of the test performed on the vehicle dispatching monotonicity system can be improved.
In an embodiment of the present disclosure, a plurality of location sites are configured in the virtual test scenario;
the order simulation module 702 is specifically configured to:
and for each virtual user, selecting one position station from the position stations as a starting place, selecting another position station as a destination, and simulating the virtual user to initiate a travel order.
Therefore, when the scheme provided by the embodiment of the disclosure is applied to testing the vehicle dispatching monotonicity system, a plurality of position stations are configured in the virtual test scene, so that when a virtual user is simulated to initiate a travel order, the user can accurately simulate the user to initiate the travel order in the actual scene, and the virtual test scene can be more similar to the actual scene, so that the vehicle dispatching monotonicity system is tested by using the virtual test scene which is more similar to the actual scene, and the test accuracy can be improved.
In an embodiment of the present disclosure, the idle vehicle is located at a preset idle position in the virtual test scene, or at a randomly selected position on a virtual road, or moves according to a preset path.
In the scheme, the state of the idle vehicle without receiving the order in the virtual test scene can be one of three states of being located at a preset idle position, being located at a random position and moving according to a preset path, so that the state of the actual vehicle when the order is not received can be simulated as much as possible, the virtual test scene is similar to the actual scene as much as possible, the vehicle dispatching monotonicity system is tested based on the real virtual test scene, the test accuracy can be improved, and the vehicle dispatching monotonicity system can be guaranteed to carry out order distribution correctly, effectively and stably in the actual application process. The position information of the idle vehicle is real-time position information of the idle vehicle in a virtual test scene, and when the idle vehicle moves according to a preset path, the position information of the idle vehicle is the position information of the vehicle in a real-time dynamic advancing process, so that the dynamic real-time distribution function of a vehicle dispatching monotonicity system can be tested.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
In one embodiment of the present disclosure, there is provided an electronic device, as a server, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform any of the vehicle dispatch monotonicity system testing methods of the preceding method embodiments.
In one embodiment of the present disclosure, a non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform any of the vehicle dispatch engine test methods of the preceding method embodiments is provided.
In one embodiment of the disclosure, a computer program product is provided, comprising a computer program which, when executed by a processor, implements any of the vehicle dispatch monotonicity system testing methods of the preceding method embodiments.
FIG. 12 shows a schematic block diagram of an example electronic device 1200 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 12, the apparatus 1200 includes a computing unit 1201 which can perform various appropriate actions and processes in accordance with a computer program stored in a Read Only Memory (ROM) 1202 or a computer program loaded from a storage unit 1208 into a Random Access Memory (RAM) 1203. In the RAM 1203, various programs and data required for the operation of the device 1200 may also be stored. The computing unit 1201, the ROM 1202, and the RAM 1203 are connected to each other by a bus 1204. An input/output (I/O) interface 1205 is also connected to bus 1204.
Various components in the device 1200 are connected to the I/O interface 1205 including: an input unit 1206 such as a keyboard, a mouse, or the like; an output unit 1207 such as various types of displays, speakers, and the like; a storage unit 1208, such as a magnetic disk, optical disk, or the like; and a communication unit 1209 such as a network card, modem, wireless communication transceiver, etc. The communication unit 1209 allows the device 1200 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The computing unit 1201 may be a variety of general purpose and/or special purpose processing components having processing and computing capabilities. Some examples of the computing unit 1201 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The computing unit 1201 performs the various methods and processes described above, such as the vehicle dispatch policy system test method. For example, in some embodiments, the vehicle dispatch policy system test method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 1208. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 1200 via the ROM 1202 and/or the communication unit 1209. When the computer program is loaded into RAM 1203 and executed by computing unit 1201, one or more steps of the vehicle dispatch monotonicity system testing method described above may be performed. Alternatively, in other embodiments, the computing unit 1201 may be configured to perform the vehicle dispatch monotonicity system test method by any other suitable means (e.g., by way of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program code, when executed by the processor or controller, causes the functions/acts specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server combining a blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel or sequentially or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (19)

1. A vehicle dispatching monotonicity system testing method comprises the following steps:
responding to a test demand, and constructing a virtual test scene according to an actual road scene, the number of vehicles and the number of users specified by the test demand, wherein virtual users, virtual vehicles and virtual roads constructed according to roads in the actual road scene are configured in the virtual test scene;
simulating each virtual user to initiate a travel order in the virtual test scene;
obtaining order information of each travel order and position information of an idle vehicle which is not ordered in the virtual vehicles on the virtual road;
sending the obtained order information and the position information to a vehicle dispatching monotonicity system to be tested, so that the vehicle dispatching monotonicity system distributes target vehicles for each travel order according to the obtained order information and the position information;
and obtaining a test result of the vehicle dispatching monotonicity system according to a result of the vehicle dispatching monotonicity system distributing target vehicles.
2. The method of claim 1, further comprising, after the assigning a result of a target vehicle according to the vehicle dispatch monotonicity system obtaining a test result of the vehicle dispatch monotonicity system:
and optimizing the vehicle dispatching monotonicity system according to the test result corresponding to each test requirement under the condition that a plurality of test requirements for specifying different vehicle quantities and/or user quantities exist.
3. The method of claim 1 or 2, further comprising:
and aiming at each unfinished travel order, according to the current state of the travel order and a predefined state change flow, performing state circulation, updating the state of the travel order, and according to the updated state, updating the position information of a target vehicle executing the travel order.
4. The method of claim 3, wherein said updating the location information of the target vehicle executing the travel order comprises:
if the updated state is the arrival starting point state, updating the position information of the target vehicle executing the travel order to be the position information of the departure place recorded in the travel order;
if the updated state is the driving state, updating the position information of the target vehicle executing the travel order to be the position information of a predicted position, wherein the predicted position is obtained according to the path recorded in the travel order and the execution duration of the travel order in a prediction mode;
and if the updated state is the arrival end state, updating the position information of the target vehicle executing the travel order to be the destination recorded in the travel order.
5. The method of claim 1 or 2, further comprising:
obtaining target user attributes of the virtual user initiating the travel order;
obtaining an idle vehicle attribute of the idle vehicle;
the sending the obtained order information and the position information to the vehicle dispatching monotonicity system to be tested so that the vehicle dispatching monotonicity system distributes target vehicles for each trip order according to the obtained order information and the position information comprises the following steps:
and sending the obtained order information, the position information, the target user attribute and the idle vehicle attribute to a vehicle dispatching monotonicity system to be tested, so that the vehicle dispatching monotonicity system distributes a target vehicle for the trip order according to the obtained order information, the obtained position information, the obtained target user attribute and the obtained idle vehicle attribute.
6. The method of claim 5, before constructing a virtual test scenario from the actual road scenario, the number of vehicles, and the number of users specified by the test requirements, the method further comprising:
obtaining an operation task of a virtual vehicle of a target vehicle attribute, wherein the target vehicle attribute is a vehicle attribute specified in the test requirement, and the operation task corresponding to the target vehicle attribute is used for: indicating the number of virtual vehicles of the target vehicle attribute configured in the virtual test scene in each preset time period;
the method for constructing the virtual test scene according to the actual road scene, the number of vehicles and the number of users specified by the test requirement comprises the following steps:
and constructing a virtual test scene according to the actual road scene specified by the test requirement, the number of users and the obtained operation task.
7. The method according to claim 1 or 2, wherein a plurality of location sites are configured in the virtual test scenario;
the simulating each virtual user initiates a travel order in the virtual test scene, including:
and for each virtual user, selecting one position station from the position stations as a starting place, selecting another position station as a destination, and simulating the virtual user to initiate a travel order.
8. The method according to claim 1 or 2, wherein the idle vehicle is located in a preset idle position in the virtual test scenario or in a randomly selected position on a virtual road or moves according to a preset path.
9. A vehicle dispatch monotonicity system testing apparatus, comprising:
the system comprises a scene construction module, a virtual road construction module and a virtual road construction module, wherein the scene construction module is used for responding to a test requirement and constructing a virtual test scene according to an actual road scene, the number of vehicles and the number of users specified by the test requirement, and virtual users, virtual vehicles and virtual roads constructed according to roads in the actual road scene are configured in the virtual test scene;
the order simulation module is used for simulating each virtual user to initiate a travel order in the virtual test scene;
the information acquisition module is used for acquiring order information of each travel order and position information of an idle vehicle which is not ordered in the virtual vehicles on the virtual road;
the information sending module is used for sending the obtained order information and the position information to a vehicle dispatching monotonicity system to be tested so that the vehicle dispatching monotonicity system distributes target vehicles for each travel order according to the obtained order information and the position information;
and the result obtaining module is used for obtaining a test result of the vehicle dispatching monotonicity system according to the result of the target vehicle distributed by the vehicle dispatching monotonicity system.
10. The apparatus of claim 9, further comprising:
and the system optimization module is used for optimizing the vehicle dispatching monotonicity system according to the test result corresponding to each test requirement after the result of the vehicle dispatching monotonicity system distributing target vehicles is obtained according to the result of the vehicle dispatching monotonicity system distributing target vehicles under the condition that a plurality of test requirements for stipulating different vehicle quantities and/or user quantities exist.
11. The apparatus of claim 9 or 10, further comprising:
and the state updating module is used for performing state circulation according to the current state of each unfinished travel order and a predefined state change flow according to the current state of the travel order, updating the state of the travel order and updating the position information of the target vehicle executing the travel order according to the updated state.
12. The apparatus of claim 11, wherein the status update module is specifically configured to:
for each unfinished travel order, according to the current state of the travel order and a predefined state change flow, performing state circulation, updating the state of the travel order, and if the updated state is the state of reaching a starting point, updating the position information of a target vehicle executing the travel order to be the position information of a departure place recorded in the travel order; if the updated state is the driving state, updating the position information of the target vehicle executing the travel order to be the position information of a predicted position, wherein the predicted position is obtained according to the path recorded in the travel order and the execution duration of the travel order in a prediction mode; and if the updated state is the arrival end state, updating the position information of the target vehicle executing the travel order to be the destination recorded in the travel order.
13. The apparatus of claim 9 or 10, further comprising:
a user attribute obtaining module, configured to obtain a target user attribute of a virtual user initiating the travel order;
a vehicle attribute obtaining module for obtaining an idle vehicle attribute of the idle vehicle;
the information sending module is specifically configured to:
and sending the obtained order information, the position information, the target user attribute and the idle vehicle attribute to a vehicle dispatching monotonicity system to be tested, so that the vehicle dispatching monotonicity system distributes a target vehicle for the trip order according to the obtained order information, the obtained position information, the obtained target user attribute and the obtained idle vehicle attribute.
14. The apparatus of claim 13, wherein the apparatus further comprises:
a task obtaining module, configured to obtain an operation task of a virtual vehicle of a target vehicle attribute before constructing a virtual test scenario according to an actual road scenario, a vehicle number, and a user number specified by the test requirement, where the target vehicle attribute is a vehicle attribute specified in the test requirement, and the operation task corresponding to the target vehicle attribute is used to: indicating the number of virtual vehicles of the target vehicle attribute configured in the virtual test scene in each preset time period;
the scene construction module is specifically configured to:
and responding to a test requirement, and constructing a virtual test scene according to an actual road scene specified by the test requirement, the number of users and the obtained operation task.
15. The apparatus according to claim 9 or 10, wherein a plurality of location sites are configured in the virtual test scenario;
the order simulation module is specifically configured to:
and for each virtual user, selecting one position station from the position stations as a starting place, selecting another position station as a destination, and simulating the virtual user to initiate a travel order.
16. The apparatus of claim 9 or 10, wherein the idle vehicle is located at a preset idle position in the virtual test scenario or at a randomly selected position on a virtual road or moves according to a preset path.
17. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-8.
18. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-8.
19. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-8.
CN202211165361.2A 2022-09-23 2022-09-23 Vehicle dispatching monotonicity system testing method and device Pending CN115827427A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211165361.2A CN115827427A (en) 2022-09-23 2022-09-23 Vehicle dispatching monotonicity system testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211165361.2A CN115827427A (en) 2022-09-23 2022-09-23 Vehicle dispatching monotonicity system testing method and device

Publications (1)

Publication Number Publication Date
CN115827427A true CN115827427A (en) 2023-03-21

Family

ID=85523861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211165361.2A Pending CN115827427A (en) 2022-09-23 2022-09-23 Vehicle dispatching monotonicity system testing method and device

Country Status (1)

Country Link
CN (1) CN115827427A (en)

Similar Documents

Publication Publication Date Title
CN107464018B (en) Distribution path optimization method and device, computer equipment and storage medium
JP5961848B2 (en) Plan management system and plan management method
EP4009256A2 (en) Method and apparatus for unmanned vehicle dispatching management, device, storage medium and program
US20150356483A1 (en) Method and system for improving route assignment performance
CN104282140B (en) Extensive real-time traffic index method of servicing and system based on Distributed Architecture
CN109800937A (en) Robot cluster dispatches system
CN110768914B (en) Decentralized Internet of things gateway system based on semantic scene instance migration
CN110737849A (en) Travel scheme recommendation method, device, equipment and storage medium
CN115860300A (en) Battery replacement scheduling method and device for vehicle, electronic equipment and storage medium
CN114862209A (en) Transport capacity scheduling method and device, electronic equipment and storage medium
CN112988535A (en) Method, device, storage medium and program product for testing data push service
CN105786941A (en) Information mining method and device
CN114971205A (en) Order dispatching method and system
CN113032093A (en) Distributed computing method, device and platform
CN115827427A (en) Vehicle dispatching monotonicity system testing method and device
CN115952054A (en) Simulation task resource management method, device, equipment and medium
CN114298870A (en) Path planning method and device, electronic equipment and computer readable medium
CN114330807A (en) Route determination method and device and electronic equipment
CN112749822B (en) Method and device for generating route
CN113919734A (en) Order distribution method and device
CN113032092A (en) Distributed computing method, device and platform
CN112381590A (en) Cost accounting method, device, server and storage medium
CN116521199B (en) Component upgrading method, device, equipment and storage medium
CN116991084B (en) Unmanned simulation system, method and device and storage medium
CN112801601B (en) Method and device for allocating routes, storage medium and electronic 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