Vehicle dispatching method, device, electronic device and storage medium
By setting the working mode of the intelligent driving car to the automatic mode and turning on the vehicle control thread, the gap in the dispatch of the intelligent driving car is solved, and the passenger pick-up and drop-off operation tasks are realized to meet the passenger's car needs.
Patent Information
- Application Number
- CN202111602356.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-24
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2041-12-24
AI Technical Summary
The prior art lacks a scheduling method suitable for intelligent driving cars, and it is impossible to effectively dispatch intelligent driving cars to meet passengers' car use needs.
A vehicle scheduling method is provided, by obtaining vehicle scheduling configuration information, setting the working mode of the target vehicle to an automatic mode, and turning on the vehicle control thread to control the vehicle, realizing the pick-up and drop-off operation task to passengers.
The dispatch and control of intelligent driving vehicles are realized to meet the needs of passengers for vehicle use and to make up for the gap in the scheduling methods of intelligent driving vehicles or unmanned vehicles in the prior art.
Smart Images

Figure CN114282810B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of intelligent driving technology, and in particular to a vehicle dispatching method, device, electronic device and storage medium. Background Art
[0002] Intelligent driving technology (such as enhanced driving, automatic driving technology, etc.) relies on the collaborative cooperation of artificial intelligence, sensors and global positioning systems to achieve automatic driving of cars without driver intervention. During the driving process, the driver does not need to operate manually, and the computer system implements vehicle driving control based on the recognition and detection of the current driving environment by sensors, radars, etc., which brings convenience to modern vehicle drivers to a certain extent.
[0003] At present, there are many methods for dispatching taxis, express trains, etc. These methods can meet the passengers' car needs by effectively communicating with drivers and passengers to pick up and drop off passengers. However, there is no dispatching method suitable for smart driving cars. Therefore, how to dispatch smart driving cars to pick up and drop off passengers to meet the passengers' car needs has become an urgent problem to be solved. Summary of the invention
[0004] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a vehicle dispatching method, device, electronic device and storage medium.
[0005] In a first aspect, the present disclosure provides a vehicle dispatching method, characterized in that at least one vehicle is dispatched, and for each dispatched vehicle, a corresponding vehicle control thread is started; the method comprises:
[0006] Acquire vehicle dispatch configuration information, wherein the vehicle dispatch configuration information includes a vehicle identification and a first working mode, wherein the first working mode is an automatic mode;
[0007] Setting the operating mode of the target vehicle corresponding to the vehicle identifier to the first operating mode;
[0008] Start a first vehicle control thread under the first working mode;
[0009] The first vehicle control thread is associated with the vehicle identifier, and the target vehicle is controlled under the first vehicle control thread.
[0010] In a second aspect, the present disclosure further provides a vehicle dispatching device, which dispatches at least one vehicle and starts a corresponding vehicle control thread for each dispatched vehicle; the device comprises:
[0011] An acquisition module, used for acquiring vehicle dispatch configuration information, wherein the vehicle dispatch configuration information includes a vehicle identification and a first working mode, wherein the first working mode is an automatic mode;
[0012] A setting module, used to set the working mode of the target vehicle corresponding to the vehicle identifier to the first working mode;
[0013] An opening module, used for opening a first vehicle control thread under the first working mode;
[0014] A control module is used to associate the first vehicle control thread with the vehicle identifier and control the target vehicle under the first vehicle control thread.
[0015] In a third aspect, the present disclosure further provides an electronic device, including: a processor and a memory;
[0016] The processor is used to execute the steps of any of the above methods by calling the program or instruction stored in the memory.
[0017] In a fourth aspect, the present disclosure further provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores a program or instruction, wherein the program or instruction enables a computer to execute the steps of any of the above methods.
[0018] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:
[0019] In the technical solution provided by the embodiment of the present disclosure, the first working mode is the automatic mode. The dispatch server can issue dispatch instructions to the vehicle in the first working mode under the first vehicle control thread to control the vehicle so that it can complete the operational task of picking up and dropping off passengers, meet the passengers' vehicle needs, and make up for the current lack of methods for dispatching intelligent driving vehicles or unmanned vehicles. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0022] Figure 1 A flow chart of a vehicle dispatching method provided by an embodiment of the present disclosure;
[0023] Figure 2 A flowchart of a method for implementing S120 provided in an embodiment of the present disclosure;
[0024] Figure 3 A flow chart of another vehicle dispatching method provided by an embodiment of the present disclosure;
[0025] Figure 4 A flow chart of another vehicle dispatching method provided by an embodiment of the present disclosure;
[0026] Figure 5 A flow chart of another vehicle dispatching method provided by an embodiment of the present disclosure;
[0027] Figure 6 A flow chart of another vehicle dispatching method provided by an embodiment of the present disclosure;
[0028] Figure 7 A flow chart of another vehicle dispatching method provided by an embodiment of the present disclosure;
[0029] Figure 8 A flow chart of another vehicle dispatching method provided by an embodiment of the present disclosure;
[0030] Fig. 9 A schematic diagram of a vehicle cruising route provided in an embodiment of the present disclosure;
[0031] Fig.10 A flow chart of another vehicle dispatching method provided by an embodiment of the present disclosure;
[0032] Fig.11 A structural block diagram of a vehicle dispatching device provided in an embodiment of the present disclosure;
[0033] Fig.12 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0034] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0035] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0036] Figure 1A flow chart of a vehicle dispatching method provided by an embodiment of the present disclosure. This method can be applied to a dispatching server dispatching an intelligent driving vehicle or an unmanned vehicle. This method can be executed by a dispatching server that is in communication with the intelligent driving vehicle or the unmanned vehicle. The execution subject of this method is the operating system of the dispatching server. This vehicle dispatching method can dispatch at least one vehicle, and for each dispatched vehicle, a corresponding vehicle control thread is started. Specifically, this method includes the following steps:
[0037] S110. Acquire vehicle dispatch configuration information, where the vehicle dispatch configuration information includes a vehicle identification and a first working mode, where the first working mode is an automatic mode.
[0038] The vehicle identification is used to distinguish it from other vehicles, and may specifically be the vehicle number, vehicle name, vehicle identification number (VIN), etc.
[0039] The vehicle identification in the vehicle dispatch configuration information refers to the vehicle identification of the target vehicle. The target vehicle refers to the vehicle that needs to be dispatched.
[0040] In practice, the vehicle operation mode can be divided into automatic mode and non-automatic mode. The non-automatic mode refers to the mode that requires the driver to participate in the operation of the vehicle. The automatic mode refers to the mode that does not require the driver to participate. In the automatic mode, the vehicle interacts with the dispatch server, receives the control instructions sent by the dispatch server, controls the vehicle to start, stop, move, etc., and realizes the purpose of picking up and dropping off passengers.
[0041] Furthermore, the automatic mode may be set to include a first bus mode, a car-hailing mode, and a second bus mode. The first bus mode is a stop-at-every-station mode. Specifically, a cruise route is set in advance according to the map feature information of the area to be cruised, and the cruise route includes multiple fixed stops. In this mode, the vehicle is controlled to travel along the cruise route, and each stop is sequentially passed. Regardless of whether there are passengers getting on or off at each stop, the target vehicle stops and waits at each stop to complete the passenger pick-up and drop-off. The car-hailing mode means that the cruise route is not set according to the map feature information of the area to be cruised, and no fixed stops are set. In this mode, the stop of the vehicle is temporarily determined according to the passengers' boarding and alighting needs, so that passengers can get on or off the vehicle to complete the passenger pick-up and drop-off. The second bus mode is an on-demand scheduling mode. Specifically, a cruise route is set in advance according to the map feature information of the area to be cruised, and the cruise route includes multiple fixed stops. In this mode, the vehicle is controlled to travel along the cruise route, and each stop is sequentially passed. The target vehicle stops and waits only at stops where there are passengers getting on or off to complete the passenger pick-up and drop-off.
[0042] The first working mode in the vehicle dispatch configuration information also includes configuration parameters in the first working mode, such as one or more of the automatic mode number, the cruise route, the location of the stop, the operating time, and the power threshold required for the operation.
[0043] The first working mode is the mode in which the vehicle to be dispatched wishes to operate. Here, the first working mode refers to the automatic mode. In practice, the first working mode specifically refers to the first bus mode, the ride-hailing mode, and the second bus mode. This application does not limit this and can be determined based on actual needs (such as the size of passenger demand for vehicles or the level of vehicle operating costs, etc.).
[0044] S120. Set the working mode of the target vehicle corresponding to the vehicle identification to the first working mode.
[0045] The essence of this step is to adjust the working mode of the vehicle to be dispatched and match it to the desired operating mode.
[0046] S130: Start a first vehicle control thread in the first working mode.
[0047] S140: Associating the first vehicle control thread with the vehicle identifier, and controlling the target vehicle under the first vehicle control thread.
[0048] There are multiple specific implementation methods for this step. Exemplarily, the first vehicle control thread controls the target vehicle including: the first vehicle control thread obtains the second state information of the target vehicle, generates a dispatch instruction based on the second state information of the target vehicle, and sends the dispatch instruction to the target vehicle.
[0049] Here, the second state information of the target vehicle refers to the information used as a basis for judging whether the current vehicle has completed the previous dispatch instruction and determining which dispatch instruction or which type of dispatch instruction should be used as the next dispatch instruction at the current moment when the vehicle is running in the first working mode. Exemplarily, the second state information of the target vehicle includes at least one of the following: whether the vehicle is currently in a default berth, whether the power of the current target vehicle meets the basic operation requirements, whether the current target vehicle is within the operation period, the opening and closing status of the door of the current target vehicle, the current passenger demand for the vehicle, and whether the current vehicle is moving.
[0050] Exemplarily, if the status information of the target vehicle indicates that the target vehicle is currently in a non-default berth, a dispatch instruction to return is issued to the target vehicle.
[0051] Optionally, in practice, multiple dispatch instructions are pre-set for the first working mode, such as a return instruction, a door opening instruction, a door closing instruction, a next station selection instruction, a start instruction, and a parking instruction. And different trigger conditions are set for different dispatch instructions. For example, the trigger condition for the door closing instruction is set to that the current vehicle is not closed and the vehicle is unloaded. In practice, multiple trigger conditions can be set for the same dispatch instruction. When executing "generating a dispatch instruction based on the second state information of the target vehicle", it is determined according to the second state information of the target vehicle whether the target vehicle meets a certain trigger condition of a dispatch instruction. If so, a dispatch instruction for the target vehicle is generated.
[0052] The essence of the above technical solution is that the first working mode is an automatic mode. The dispatch server can issue dispatch instructions to the vehicle in the first working mode based on the first vehicle control thread to control the vehicle so that it can complete the operational task of automatically picking up and dropping off passengers, meet the passengers' car needs, and make up for the current lack of methods for dispatching intelligent driving vehicles or unmanned vehicles.
[0053] Based on the above technical solution, there are multiple specific implementation methods of S120. Exemplarily, the specific implementation method of S120 may include directly modifying the parameters of the vehicle characterizing the current working mode to parameters corresponding to the first working mode.
[0054] For example, Figure 2 This is a flow chart of a method for implementing S120 provided in an embodiment of the present disclosure. Figure 2 , the method for implementing S120 includes:
[0055] S121. Detect a current operating mode of a target vehicle, a switchable state of the current operating mode, and first state information of the target vehicle.
[0056] Exemplarily, if the vehicle's operating modes include a non-automatic mode, a first bus mode, a ride-hailing mode, and a second bus mode (wherein the first bus mode, the ride-hailing mode, and the second bus mode are all automatic modes), then the current operating mode of the target vehicle may be any one of the non-automatic mode, the first bus mode, the ride-hailing mode, and the second bus mode.
[0057] The switchable state of the current working mode refers to whether the current working mode is allowed to be switched.
[0058] Optionally, the switchable state of the current working mode is set only for the non-automatic mode. This is because in the non-automatic mode, the operation of the vehicle requires the participation of the driver. The driver controls the vehicle to stop at the stop and pick up passengers. In this mode, the dispatch server cannot know the number of passengers on the current target vehicle and the destination of the passengers. If the operation mode of the vehicle is suddenly switched to the automatic mode, it may cause the passengers already in the vehicle to be unable to reach the destination, or the time for the passengers to arrive at the destination to be delayed.
[0059] By setting the parameter of switchable state for non-automatic mode, the working mode of the target vehicle can be switched from non-automatic mode to automatic mode only when the switch is allowed. In this way, if the current working mode is non-automatic mode and there are no passengers in the vehicle, the switchable state of the current working mode is set to the state of allowing switching; if the current working mode is non-automatic mode and there are passengers in the vehicle, the switchable state of the current working mode is set to the state of not allowing switching. This can avoid the undesirable phenomenon that when there are already passengers in the vehicle, the vehicle's operating mode is suddenly switched, making it impossible for the passengers to reach their destination, or the time it takes for the passengers to arrive at their destination is delayed.
[0060] The first state information of the target vehicle is information used to evaluate whether the vehicle can operate normally and safely after switching to the first working mode. Exemplarily, the first state information of the target vehicle includes at least one of the following: whether the current vehicle can correctly report door information, whether the current vehicle is in a stationary state, and whether the current vehicle is on a road network.
[0061] Furthermore, an evaluation standard, i.e., a preset working mode switching condition, can be set for the first state information of the target vehicle. Only when the first state information of the target vehicle meets the preset working mode switching condition, it is considered that the target vehicle can operate normally and safely after the working mode is switched, otherwise it is considered that the target vehicle cannot operate normally and safely after the working mode is switched.
[0062] There may be multiple preset working mode switching conditions, which are not limited in this application. For example, the preset working mode switching conditions may include one or more of the following: the vehicle is able to report door information; the vehicle remains stationary; and the vehicle is on a road network.
[0063] S122: Based on the current working mode, the switchable state being the state of the switchable automatic mode, and the first state information of the target vehicle satisfying the preset working mode switching condition, the working mode of the target vehicle corresponding to the vehicle identification is set to the first working mode.
[0064] As before, the first working mode is one of the first bus mode, the car-hailing mode and the second bus mode. If the current working mode is the same as the first working mode, the parameters representing the vehicle working mode may not be adjusted. If the current working mode is different from the first working mode, the parameters representing the vehicle working mode need to be adjusted.
[0065] Further, based on the above technical solution, it can also be set that if the current working mode is the second working mode, and the second working mode is the automatic mode, the second working mode is switched to the first working mode, and the second vehicle control thread is closed, and the second vehicle control thread is the vehicle control thread associated with the vehicle identification opened in the second working mode. The purpose of this setting is to reduce the load of the scheduling server and recycle memory in time.
[0066] Based on the above technical solution, the vehicle scheduling configuration information in S110 also includes a first map identifier; before S130, the method also includes: obtaining a second map identifier of the target vehicle; determining whether the first map identifier matches the second map identifier; if they match, starting a first vehicle control thread in the first working mode.
[0067] The first map identifier refers to the identifier of the map corresponding to the area where the target vehicle is expected to cruise in the first working mode. The second map identifier refers to the identifier of the map corresponding to the area where the target vehicle is currently located. Determining whether the first map identifier matches the second map identifier is essentially determining whether the current target vehicle is in the area where it is expected to cruise. Obviously, if the current target vehicle is not in the area where it is expected to cruise, even if the working mode of the target vehicle is switched to the first working mode, the target vehicle cannot be immediately operated in the first working mode.
[0068] Optionally, the vehicle dispatching method further includes: starting a monitoring thread in advance; the monitoring thread monitors whether the working mode of each dispatched vehicle is a non-automatic mode, and deletes the vehicle identification corresponding to the working mode being the non-automatic mode. This setting can reduce the load of the dispatching server.
[0069] Figure 3 A flow chart of another vehicle dispatching method provided by an embodiment of the present disclosure. Figure 3, the vehicle dispatching method is used to dispatch a specific target vehicle. The method includes: first, obtaining vehicle dispatching configuration information, the vehicle dispatching configuration information includes the target vehicle identification number, the map information of the area where the target vehicle is expected to cruise in the first working mode, the first stop address, the last stop address, the default berth address and the operating time period information of the cruise route in the first working mode. Secondly, judging whether the target vehicle meets the preset working mode switching conditions (such as the vehicle can report the door information; the vehicle maintains a stationary state; and the vehicle is on the road network). If not, return the alarm information of the vehicle error; if so, switch the working mode of the target vehicle to the first working mode. Thirdly, judge whether the working mode switching is successful. If not, return the alarm information of the vehicle switching mode failure; if so, further judge whether the map information of the area where the target vehicle is expected to cruise in the first working mode matches the vehicle-side map information. If not, return the alarm information of the map mismatch; if it matches, load the map of the area where the target vehicle is expected to cruise in the first working mode in the dispatching server, start a first vehicle control thread in the first working mode, and control the target vehicle under the first vehicle control thread.
[0070] Figure 4 A flowchart of another vehicle dispatching method provided in an embodiment of the present disclosure. Figure 4 For Figure 1 Detailed description of S140 in Figure 4 In the represented embodiment, the first working mode is the first bus mode. The first bus mode means that a cruise route is set in advance according to the map feature information of the area to be cruised, and the cruise route includes multiple fixed stops. In this mode, the vehicle is controlled to travel along the cruise route, passing through each stop in sequence, and regardless of whether there are passengers getting on or off at each stop, the target vehicle stops and waits at each stop to complete the passenger pick-up and drop-off. The vehicle scheduling configuration information also includes the route start station, the route end station and the default berth. The route start station is the first stop of the cruise route, and the route end station is the last stop of the cruise route. The default berth refers to a pre-set berth associated with the cruise route of the first working mode. It should be noted that in the first working mode, multiple berths can be set, and only one or several of them can be set as the default berth.
[0071] See also Figure 4 , controlling the target vehicle under the first vehicle control thread includes:
[0072] S210: Obtain the initial position of the target vehicle.
[0073] The initial position is the position when the vehicle is in a stationary state and in an unloaded state after switching to the first working mode.
[0074] S220: Determine whether the initial position is a default berth.
[0075] When determining whether the initial position is a default berth, the coordinate information of the initial position in the map may be compared with the coordinate information of the default berth to determine whether the initial position is the default berth.
[0076] S230, generating an instruction for selecting a next stop. If the initial position is a default berth, the instruction specifies the next stop as the first stop of the route; otherwise, the instruction specifies the next stop as the stop on the route closest to the initial position.
[0077] S240: Send the command to the target vehicle.
[0078] The essence of the above technical solution is to determine the first stop after switching to the first bus mode according to the initial position of the vehicle, and then instruct the vehicle to arrive at the first stop to enter the operating state, thereby completing the operating task under the first bus mode. This method has simple calculation logic and is easy to implement.
[0079] Optionally, controlling the target vehicle under the first vehicle control thread further includes: obtaining the door state of the target vehicle at the initial position; and sending a door closing command to the target vehicle based on the door state being open, so that the target vehicle closes the door after receiving the door closing command and waits for a preset time before starting. This can ensure that the vehicle has a high operating safety.
[0080] Further, after the target vehicle reaches the first stop of the route or the stop closest to the initial position in the route, the following steps are repeatedly performed until the vehicle ends operating in the first bus mode: the instruction for selecting the next stop is updated, and the updated instruction is sent to the target vehicle so that the target vehicle reaches the next stop. In the updated instruction, the next stop selected is determined according to the order of the stops on the vehicle's cruising route and the stop at which the vehicle is currently located.
[0081] Optionally, controlling the target vehicle under the first vehicle control thread also includes: when the vehicle is cruising in the first bus mode, after the vehicle arrives at each stop, controlling the vehicle to stop, automatically open the door, and wait for passengers to get on and off. When the door opening time reaches the first preset time, a door closing command is sent to the target vehicle, so that the target vehicle closes the door after receiving the door closing command, and starts after waiting for the second preset time, and goes to the next stop on the operating route. Among them, the first preset time and the second preset time can be equal or unequal, and their specific values are not limited in this application. In this way, the vehicle can be ensured to have a high operating safety.
[0082] Alternatively, a timing starting point is set. When the vehicle is cruising in the first bus mode, after the vehicle arrives at each stop, the vehicle is controlled to detect the time when the passenger passes through the door. Each time a passenger is detected to get on or off the bus through the door, the timing starting point is updated so that at the stop, the timing starting point is the time when the last passenger is detected to get on or off the bus through the door. If the timing reaches the set threshold, it is considered that all passengers who need to get on and off the bus have completed getting on and off at the stop, and a door closing command is sent to the target vehicle, so that the target vehicle closes the door after receiving the door closing command, and waits for the second preset time to start and go to the next stop on the operating route.
[0083] Based on the above technical solution, optionally, in the first public transportation mode, constraints can be set to further ensure the driving safety of the vehicle, complete the operation task or reduce the operation cost of the vehicle. Optionally, the constraints can include power constraints and / or operation time constraints.
[0084] If the power constraint condition is considered, exemplarily, based on the above technical solution, before S230, the control of the target vehicle under the first vehicle control thread also includes: obtaining the power information of the target vehicle at the initial position; judging whether the power information is lower than the first power threshold; if it is lower than the first power threshold and the initial position is the default berth, sending an end notification to the target vehicle; if it is lower than the first power threshold and the initial position is not the default berth, sending a return notification to the target vehicle, and sending an end notification to the target vehicle after the target vehicle returns to the default berth. The first power threshold refers to the power that can ensure that the vehicle completes this operation task. Exemplarily, the operation task is planned to cruise twice along the preset cruise route. At this time, the first power threshold refers to the power required to ensure that the vehicle cruises twice along the preset cruise route. "End notification" is used to indicate the end of this operation. The essence of this setting is that after switching to the first bus mode, the power information is detected first, and it is judged whether the power information can meet the basic conditions for safe operation and completion of the operation task to ensure the safety of driving.
[0085] Optionally, if the power information of the target vehicle at the initial position is lower than the first power threshold, a low power notification is first sent to the target vehicle, and then it is determined whether the initial position of the target vehicle is a default berth. If the initial position is a default berth, an end notification is sent to the target vehicle; if the initial position is a non-default berth, a return notification is sent to the target vehicle, and after the target vehicle returns to the default berth, an end notification is sent to the target vehicle. This setting makes it easy for operators to inquire about the reason for the end of the operation.
[0086] Furthermore, controlling the target vehicle under the first vehicle control thread also includes: receiving power information sent by the target vehicle before selecting the next station; judging whether the power information is lower than a second power threshold, the second power threshold is less than or equal to the first power threshold; if it is lower than the second power threshold, sending a return notification to the target vehicle, and after the target vehicle returns to the default berth, sending an end notification to the target vehicle. The second power threshold can be a power level that can ensure that the vehicle completes this cruise. Alternatively, the second power threshold can be a power level that can ensure that the vehicle arrives at the next stop. The essence of this setting is that before selecting the next station, the power information is preferentially detected, and it is judged whether the power information can meet the basic conditions for safe operation to ensure the safety of driving.
[0087] Optionally, if the power information of the target vehicle before selecting the next stop is lower than the second power threshold, a low power notification and a return notification are sent to the target vehicle, and after the target vehicle returns to the default berth, an end notification is sent to the target vehicle. This setting makes it easy for the operator to inquire about the reason for the end of the operation.
[0088] If setting the operating time constraint is considered, illustratively, based on the above technical solution, before S230, it can be set that controlling the target vehicle under the first vehicle control thread also includes: judging whether the target vehicle is in the working time period of the first working mode at the moment of the initial position; if it is not in the working time period, and the initial position is the default berth, sending an end notification to the target vehicle; if it is not in the working time period, and the initial position is a non-default berth, sending a return notification to the target vehicle, and sending an end notification to the target vehicle after the target vehicle returns to the default berth. The working time period of the first working mode is the operating time period of the first bus mode. In practice, the passenger demand for cars in different time periods on the same route is different. Therefore, according to the passenger demand for cars in different time periods, a day can be divided into multiple stages, and different stages correspond to different working modes. After switching to the first bus mode, it is preferred to judge whether the vehicle is in the working time period of the first bus mode at the moment of the initial position. If it is in the working time period, the vehicle operation is allowed to be dispatched in the first bus mode. In this way, the operating cost of the vehicle can be fully reduced under the premise of meeting the user's car demand.
[0089] Optionally, if the target vehicle is not in the working time period of the first working mode at the time of the initial position, first send an over-operation notification to the target vehicle, and then determine whether the target vehicle is in a default berth at the initial position. If the initial position is a default berth, send an end notification to the target vehicle; if the initial position is a non-default berth, send a return notification to the target vehicle, and after the target vehicle returns to the default berth, send an end notification to the target vehicle. This setting makes it easy for operators to inquire about the reason for the end of the operation.
[0090] Furthermore, it can be set that controlling the target vehicle under the first vehicle control thread also includes: judging whether the moment when the target vehicle arrives at the end of the route is within the working time period of the first working mode; if it is not within the working time period, sending a return notification to the target vehicle, and sending an end notification to the target vehicle after the target vehicle returns to the default berth. Since it is not within the working time period, if the operation is still carried out in the first working mode, the operating cost will increase. Such a setting is conducive to controlling the operating cost.
[0091] Optionally, if the target vehicle arrives at the end of the route at a time that is not within the working time period of the first working mode, an overrun notification and a return notification are sent to the target vehicle, and after the target vehicle returns to the default berth, an end notification is sent to the target vehicle. This setting makes it easy for operators to inquire about the reason for the end of the operation.
[0092] Furthermore, when both the power constraint and the operation time constraint are set for the first bus mode, the power constraint is set with a higher priority than the operation time constraint. For example, if the target vehicle's initial position is a default berth, and the power information of the target vehicle at the initial position is lower than the first power threshold, then even if the target vehicle is in the working time period of the first working mode at the initial position, an end notification needs to be sent to the target vehicle.
[0093] Figure 5 A flowchart of another vehicle dispatching method provided in an embodiment of the present disclosure. Figure 5 for Figure 4 A specific example of this is shown in Figure 1. Figure 5 In the example, the vehicle switches to the first public transport mode at the default berth, that is, the initial position of the vehicle is the default berth.
[0094] See also Figure 5, determine whether the power information of the target vehicle at the initial position is higher than the first power threshold. If not, keep the vehicle parked at the initial position; if so, further determine whether the target vehicle is in the working time period of the first bus mode at the initial position. If not in the working time period of the first bus mode, keep the vehicle parked at the initial position. If it is in the working time period of the first bus mode, generate an instruction to select the next stop. Relative to the default berth, the next stop is the first stop on the vehicle operation route (i.e., the first stop on the route). Continuously detect whether the door status of the target vehicle is closed. If the door status of the target vehicle is open, send a door closing instruction to the target vehicle so that the target vehicle closes the door after receiving the door closing instruction. If the door status of the target vehicle is closed, wait for a preset time and then control the vehicle to start. Detect whether the target vehicle arrives at the next stop. If the target vehicle arrives at the next stop (i.e., the first stop on the route), control the target vehicle to stop, open the door automatically, wait for passengers to get on and off, and determine whether the power information of the target vehicle is greater than the second power threshold. If the target vehicle's power information is less than or equal to the second power threshold, a return notification is sent to the target vehicle, and the target vehicle returns to the default berth. If the target vehicle's power information is greater than the second power threshold, determine whether the stop where the target vehicle is currently parked is the last stop on the operating route. Since this is the first stop, not the last stop, update the instruction to select the next stop. Relative to the first stop, the next stop is the second stop on the vehicle's operating route. Continuously check whether the target vehicle's door status is closed. If the target vehicle's door status is closed, wait for a preset time and then control the vehicle to start. Check whether the target vehicle has arrived at the second stop. Repeat this process until the vehicle reaches the end of the route.
[0095] At the last stop, determine whether the current time is within the working time period of the first bus mode. If it is within the working time period of the first bus mode, update the instruction to select the next stop. Relative to the last stop, the next stop is the first stop on the vehicle operation route, that is, restarting a new round of operation along the cruise route. If it is not within the working time period of the first bus mode, send a return notification to the target vehicle to return the target vehicle to the default berth.
[0096] The above technical solution provides an overall dispatching method for vehicles under the first bus mode. This method can complete the operational task of picking up and dropping off passengers, meet the passengers' vehicle needs, and make up for the current lack of methods for dispatching intelligent driving vehicles or unmanned vehicles.
[0097] Figure 6 A flowchart of another vehicle dispatching method provided in an embodiment of the present disclosure. Figure 6 For Figure 1 Detailed description of S140 in Figure 6In the represented embodiment, the first working mode is the car-hailing mode. The car-hailing mode means that the cruise route is not set according to the map feature information of the area to be cruised, nor is a fixed stop set. In this mode, the vehicle's stop is temporarily determined according to the passengers' boarding and alighting needs, so that passengers can get on or off the vehicle to complete the passenger pick-up and drop-off. The vehicle dispatch configuration information also includes a default berth. The default berth refers to a pre-set berth associated with the first working mode. It should be noted that in the first working mode, multiple berths can be set, and only one or several of them can be set as the default berth. Optionally, the default berth can be set in a place with dense traffic.
[0098] See also Figure 6 , controlling the target vehicle under the first vehicle control thread includes:
[0099] S310, obtaining the initial position of the target vehicle;
[0100] S320, based on the initial position as the default berth, waiting for a ride order;
[0101] S330: Based on the initial position being a non-default berth, wait for a preset time at the initial position. If no ride order is received within the preset time, send a return notification to the target vehicle.
[0102] The ride order is generated based on the passenger's ride demand, which includes the passenger's boarding point information and alighting point information. For example, an application for collecting user ride demands can be developed in advance. The user sends his ride demand to the dispatch server by operating the application. The dispatch server converts the ride demand into a ride order.
[0103] The initial position is the position of the target vehicle when the vehicle is stationary and has no pending or ongoing ride-hailing orders after switching to the first working mode. Optionally, the initial position includes the position of the target vehicle at the time when the action of "switching to the first working mode" occurs.
[0104] It should be noted that before executing S320 or S330, it is necessary to determine whether the initial position is a default berth. Specifically, the coordinate information of the initial position in the map may be compared with the coordinate information of the default berth to determine whether the initial position is the default berth.
[0105] In practice, it is possible that although the initial position of the vehicle is a non-default berth, the distance between the non-default berth and the passenger boarding point is closer than the distance between the default berth and the passenger boarding point. By setting the initial position to be a non-default berth, the vehicle will wait for a preset time at the initial position. If no ride order is received within the preset time, a return notification will be sent to the target vehicle. This can reduce the empty driving time of the vehicle and reduce operating costs to a certain extent.
[0106] In the ride-hailing mode, when a vehicle is waiting for a ride-hailing order, the dispatch server can assign a ride-hailing order to the vehicle. Optionally, when assigning ride-hailing orders, only when the vehicle is in an idle state (i.e., the vehicle has no pending or in-progress ride-hailing orders) can a ride-hailing order be assigned to the vehicle. In other words, the vehicle only accepts one order at a time and does not accept group orders. This can reduce the complexity of the calculation.
[0107] Optionally, when allocating ride-hailing orders, the ride-hailing orders may be allocated based on the current location of the vehicle and the location of the passenger boarding point in the ride-hailing order.
[0108] The essence of the above technical solution is to control the vehicle to choose to wait for orders or return according to the initial position of the vehicle, so as to improve the operating efficiency of the vehicle.
[0109] Optionally, controlling the target vehicle under the first vehicle control thread also includes: after the target vehicle accepts the ride order and opens the door at the drop-off point, performing door opening timing under the first vehicle control thread; sending a door closing command to the target vehicle after the door opening timing reaches a first preset time; confirming that the ride order is completed after the door opening timing reaches a second preset time; wherein the second preset time is greater than or equal to the first preset time. Among them, "ride order completed" means that the passenger who initiated the ride order has arrived at the destination. "Confirmation of ride order completed" indicates that the vehicle has switched to an idle state again and can wait for order allocation again.
[0110] Furthermore, after confirming that the ride-hailing order is completed, controlling the target vehicle under the first vehicle control thread also includes: waiting for a preset time at the drop-off point, and if no ride-hailing order is received within the preset time, a return notification is sent to the target vehicle. In practice, there are relatively few vehicles that can be called in remote areas. If the last passenger's drop-off point is relatively remote, by setting the vehicle to wait for a preset time at the drop-off point, it is actually temporarily increasing the number of vehicles that can be called in remote areas and shortening the waiting time for passengers with remote boarding points. In addition, the length of time that the vehicle runs empty can be reduced, and the vehicle's operating efficiency can be improved. If no ride-hailing order is received within the preset time, it indicates that there is very little demand for passengers at the drop-off point. Controlling the target vehicle to return in time can also improve the vehicle's operating efficiency.
[0111] Based on the above technical solution, optionally, controlling the target vehicle under the first vehicle control thread further includes: obtaining the door state of the target vehicle at the initial position; and sending a door closing instruction to the target vehicle based on the door state being open and the target vehicle being unloaded. This arrangement can ensure that the vehicle has a high operating safety.
[0112] On the basis of the above technical solution, optionally, in the car-hailing mode, constraints can be set to determine whether an order can be assigned based on the constraints, so as to further ensure the driving safety of the vehicle, the completion of the operation task or reduce the operation cost of the vehicle. Optionally, the constraints can include power constraints and / or operation time constraints.
[0113] If the power constraint condition is considered, for example, on the basis of the above technical solution, it can be set that the control of the target vehicle under the first vehicle control thread also includes: obtaining the power information of the target vehicle at the initial position; judging whether the power information is lower than the first power threshold; if it is lower than the first power threshold and the initial position is the default berth, sending an end notification to the target vehicle; if it is lower than the first power threshold and the initial position is a non-default berth, sending a return notification to the target vehicle, and after the target vehicle returns to the default berth, sending an end notification to the target vehicle. The first power threshold refers to the power that can ensure that the vehicle completes this operation task. For example, the operation task is planned to complete 5 car-hailing orders. At this time, the first power threshold refers to the average or maximum value of the power required for the vehicle to complete 5 car-hailing orders. "End notification" is used to indicate the end of this operation. The essence of this setting is that after switching to the car-hailing mode, the power information is detected first, and it is judged whether the power information can meet the basic conditions for safe operation and completion of the operation task to ensure the safety of driving.
[0114] Optionally, if the power information of the target vehicle at the initial position is lower than the first power threshold, a low power notification is first sent to the target vehicle, and then it is determined whether the target vehicle is in a default berth at the initial position. If the initial position is a default berth, an end notification is sent to the target vehicle; if the initial position is a non-default berth, a return notification is sent to the target vehicle, and after the target vehicle returns to the default berth, an end notification is sent to the target vehicle. This setting makes it easy for operators to inquire about the reason for the end of the operation.
[0115] Furthermore, controlling the target vehicle under the first vehicle control thread also includes: obtaining the power information of the target vehicle before each allocation of a ride-hailing order; determining whether the power information is lower than a second power threshold, the second power threshold being less than or equal to the first power threshold; if lower than the second power threshold, sending a return notification to the target vehicle, and sending an end notification to the target vehicle after the target vehicle returns to the default berth. The second power threshold can be an average or maximum value that can ensure that the vehicle completes one ride-hailing order. The essence of this setting is that before allocating a ride-hailing order, the power information is preferentially detected, and it is determined whether the power information can meet the basic conditions for safe operation and the completion of the next ride-hailing order, to ensure driving safety.
[0116] Optionally, if the power information of the target vehicle is lower than the second power threshold before each car-hailing order is allocated, a low power notification and a return notification are sent to the target vehicle, and after the target vehicle returns to the default berth, an end notification is sent to the target vehicle. This setting makes it easy for operators to inquire about the reason for the end of the operation.
[0117] If setting the operating time constraint is considered, illustratively, based on the above technical solution, it can be optionally set that the control of the target vehicle under the first vehicle control thread also includes: judging whether the target vehicle is in the working time period of the first working mode at the moment of the initial position; if it is not in the working time period, and the initial position is the default berth, sending an end notification to the target vehicle; if it is not in the working time period, and the initial position is a non-default berth, sending a return notification to the target vehicle, and after the target vehicle returns to the default berth, sending an end notification to the target vehicle. The working time period in the car-hailing mode is the operating time period of the car-hailing mode. In practice, the demand for cars by passengers in different time periods on the same route is different. Therefore, according to the demand for cars by passengers in different time periods, a day can be divided into multiple stages, and different stages correspond to different working modes. After switching to the car-hailing mode, it is preferred to judge whether the vehicle is in the working time period of the car-hailing mode at the moment of the initial position. If it is within the working time period, the vehicle operation is allowed to be dispatched in the car-hailing mode. In this way, the operating cost of the vehicle can be fully reduced while meeting the user's car demand.
[0118] Optionally, if the target vehicle is not in the working time period of the first working mode at the time of the initial position, first send an over-operation notification to the target vehicle, and then determine whether the target vehicle is in a default berth at the initial position. If the initial position is a default berth, send an end notification to the target vehicle; if the initial position is a non-default berth, send a return notification to the target vehicle, and after the target vehicle returns to the default berth, send an end notification to the target vehicle. This setting makes it easy for operators to inquire about the reason for the end of the operation.
[0119] Furthermore, it can be set that the control of the target vehicle under the first vehicle control thread also includes: each time a car-hailing order is allocated, it is determined whether the current moment is in the working time period of the first working mode; if it is not in the working time period, a return notification is sent to the target vehicle, and after the target vehicle returns to the default berth, an end notification is sent to the target vehicle. Since the current moment is not in the working time period, if the operation is still carried out in the first working mode, the operating cost will increase. This setting is conducive to controlling operating costs.
[0120] Optionally, if the current time is not within the working time period, an over-operation notification and a return notification are sent to the target vehicle, and after the target vehicle returns to the default berth, an end notification is sent to the target vehicle. This setting makes it easy for the operator to inquire about the reason for the end of the operation.
[0121] Furthermore, when both the power constraint and the operating time constraint are set for the ride-hailing mode, the power constraint is set with a higher priority than the operating time constraint. For example, if the target vehicle's initial position is a default berth, and the power information of the target vehicle at the initial position is lower than the first power threshold, then even if the target vehicle is in the working time period of the ride-hailing mode at the initial position, an end notification needs to be sent to the target vehicle.
[0122] Figure 7 A flowchart of another vehicle dispatching method provided in an embodiment of the present disclosure. Figure 7 for Figure 6 A specific example of this is shown in Figure 1. Figure 7 In , the initial position of the target vehicle is the default parking space. Figure 7 , after the target vehicle switches to the ride-hailing mode, it is at the initial position. Determine whether the target vehicle's power information is higher than the first power threshold. If it is higher than the first power threshold, further determine whether it is currently in the working time period of the ride-hailing mode; if so, determine whether the target vehicle's power information is higher than the second power threshold. If it is higher than the second power threshold, allocate a ride-hailing order to the target vehicle.
[0123] Detect whether the target vehicle is assigned an order. If no order is assigned, keep the vehicle parked at the initial position. If an order is assigned, according to the ride order information, the pick-up point in the ride order is used as the first stop of the target vehicle, and continuously detect whether the door status of the target vehicle is closed. If the door status of the target vehicle is open, send a door closing command to the target vehicle so that the target vehicle closes the door after receiving the door closing command. If the door status of the target vehicle is closed, wait for a preset time and then control the vehicle to start. Detect whether the target vehicle arrives at the first stop (i.e., the pick-up point in the ride order). If the target vehicle arrives at the first stop (i.e., the pick-up point in the ride order), according to the ride order information, the drop-off point in the ride order is used as the second stop of the target vehicle. At the same time, control the target vehicle to stop, open the door automatically, and wait for passengers to get on the vehicle. After the passengers get on the vehicle, control the door of the target vehicle to close, and wait for the preset time and then control the vehicle to start. Detect whether the target vehicle arrives at the second stop (i.e., the drop-off point in the ride order). If the target vehicle arrives at the second stop (i.e., the drop-off point in the ride-hailing order), the target vehicle is controlled to stop, open the door automatically, and wait for the passenger to get off. After detecting that the passenger has gotten off, the door status of the target vehicle is continuously detected to see if it is closed. If the door is not closed, a door closing command is sent to the target vehicle so that the target vehicle closes the door after receiving the door closing command. If the door is closed, the target vehicle is kept parked at the drop-off point (i.e., the second stop), and it is determined again whether the target vehicle's power information is higher than the second power threshold. If it is higher than the second power threshold, it is further determined whether it is currently in the working time period of the ride-hailing mode; if it is currently in the working time period of the ride-hailing mode, it is allowed to allocate a ride-hailing order to the target vehicle. At the same time, the time is counted from the time the vehicle arrives at the drop-off point. If the vehicle is parked at the drop-off point for less than the preset waiting time, an order is allocated, and the first stop of the target vehicle is re-determined based on the information of the new ride-hailing order allocated. If the vehicle is parked at the drop-off point for more than the preset waiting time and no order is allocated, a return notification is sent to the target vehicle.
[0124] Furthermore, if the target vehicle receives a ride-hailing order on its way back, the target vehicle is controlled to stop returning and execute the new ride-hailing order received.
[0125] Furthermore, in the above technical solution, the vehicle can also be set to control the opening or closing of the vehicle door by interacting with the passengers at the boarding point and the alighting point. For example, if the vehicle arrives at the boarding point, the passenger opens the door by scanning the QR code on the vehicle body, and closes the door manually after boarding or by clicking the virtual door closing button on the vehicle display screen.
[0126] Optionally, in practice, the passenger opens the application for booking a ride through the smart terminal held by the passenger, and enters relevant information that can reflect his or her riding needs, such as the boarding point, the alighting point, and the booking time.
[0127] The intelligent terminal sends the relevant information of the passenger's ride demand to the dispatch server. The dispatch server converts the ride demand into a ride order. The newly generated ride order is added to the server's ride order queue for queuing. The dispatch server assigns each ride order to each available vehicle according to the order in which each ride order is generated in the ride order queue. An available vehicle means a vehicle that is idle, has a battery level greater than the threshold for receiving orders, and the current time is within the operating hours. An idle vehicle means a vehicle that is located in a default berth or an initial non-default berth and has no orders assigned to it.
[0128] When there is an available vehicle, the dispatch server assigns the ride order to the available vehicle and reports the relevant information of the assigned available vehicle to the ride-hailing application on the user's terminal so that the passenger can understand the relevant information of the assigned vehicle. When there is no available vehicle, the ride-hailing application on the user's terminal will always show that the vehicle is in the queue.
[0129] Furthermore, in practice, it is possible that the dispatch server has already assigned the ride order to an available vehicle, but the dispatch server has not sent the relevant information of the assigned available vehicle to the ride-hailing application on the user's terminal. In response to this situation, it can be set that if the ride-hailing application sends the relevant information of the passenger's ride demand to the dispatch server, but does not receive the relevant information of the assigned available vehicle within a preset time period, then a request message is sent to the dispatch server at a preset time interval to request the dispatch server to send the relevant information of the assigned available vehicle to the ride-hailing application.
[0130] Optionally, the application for hailing a car can display the current map and the estimated waiting time if the user chooses to hail a car before the user enters relevant information that reflects his or her ride demand.
[0131] Furthermore, passengers can be given the right to cancel ride-hailing orders. Specifically, users can be allowed to cancel ride-hailing orders before boarding the vehicle through the ride-hailing application. “Before boarding the vehicle” includes the process of queuing before the ride-hailing order is assigned, and the situation where the passenger does not board the vehicle after the ride-hailing order is assigned to the vehicle (corresponding to Figure 7 Each link in the dotted box).
[0132] Optionally, it can be set that the passenger cannot cancel the ride order after getting on the car, but can get off the car midway and end the ride order in advance. In this case, for example, the user can click a virtual button for getting off in the ride-hailing application, or click a virtual button for getting off on the display screen in the vehicle to trigger the generation of an instruction indicating that the customer needs to get off in advance. Based on the instruction, the dispatch server controls the vehicle to stop, open the door, and wait for the passenger to get off.
[0133] The above technical solution provides an overall dispatching method for vehicles in the ride-hailing mode. This method does not stop at fixed stops, but selects temporary stops based on passenger needs to complete the operational tasks of picking up and dropping off passengers and meet the passengers' vehicle needs. It can make up for the current lack of methods for dispatching smart driving vehicles or unmanned vehicles.
[0134] Figure 8 A flowchart of another vehicle dispatching method provided in an embodiment of the present disclosure. Figure 8 For Figure 1 Detailed description of S140 in Figure 8 In the represented embodiment, the first working mode is the second bus mode. The second bus mode means that a cruise route is set in advance according to the map feature information of the area to be cruised, and the cruise route includes multiple fixed stops. In this mode, the vehicle is controlled to travel along the cruise route, passing through each stop in sequence, and only stops and waits at the stops where passengers need to get on and off to complete the passenger pick-up and drop-off. The vehicle scheduling configuration information also includes the first stop of the route, the last stop of the route, and the default berth. The first stop of the route is the first stop of the cruise route, and the last stop of the route is the last stop of the cruise route. The default berth refers to a pre-set berth associated with the cruise route of the first working mode. It should be noted that in the first working mode, multiple berths can be set, and only one or several of them can be set as the default berth.
[0135] See also Figure 8 , controlling the target vehicle under the first vehicle control thread includes:
[0136] S410: Obtain the initial position of the target vehicle.
[0137] S420: Based on the initial position, the default berth is used to wait for passenger requests.
[0138] S430: based on the initial position being a non-default berth, waiting for a preset time at the initial position, and if no passenger request is received within the preset time, sending a return notification to the target vehicle.
[0139] In this embodiment, the initial position is the position after switching to the first working mode, when the vehicle is stationary, unloaded, has not started cruising, or has just completed a cruise.
[0140] The essence of the above technical solution is to determine whether the vehicle starts cruising according to whether a passenger request is received. Here, when there is no passenger request, the vehicle can be controlled to stop cruising, which can reduce operating costs.
[0141] For example, a QR code of each stop can be posted at each stop, and passengers can scan the code with their terminals to call a vehicle and indicate that they will get on the vehicle at this stop. After the passenger calls the vehicle, the dispatch server will assign the passenger request to the vehicle that arrives at the boarding point first based on the current positions of the vehicles it controls.
[0142] The vehicle display screen displays virtual buttons that represent the stops where the vehicle can stop. After the passenger gets on the vehicle, he or she clicks the virtual button of the stop where the passenger needs to get off, generating a passenger get-off request. When the vehicle arrives at the stop where the passenger needs to get off, it stops, automatically opens the door, and waits for the passenger to get off.
[0143] Further, after sending the return notification to the target vehicle, controlling the target vehicle under the first vehicle control thread also includes: if a passenger request is received when the target vehicle has not returned to the default berth, the passenger request is sent to the target vehicle after waiting for the target vehicle to return to the default berth. The essence of such a setting is that the passenger request is not allocated to the vehicle on the way back. Because under normal circumstances, returning means that the vehicle is low on power, exceeds the operating time, or has just cruised along the preset cruise route. If the return is caused by insufficient power and / or exceeding the operating time of the vehicle, the vehicle needs to rest at the default berth before it can set off. If the return is caused by just cruising along the preset cruise route, the vehicle must first cruise from the default berth to the first stop when starting a new cruise. After waiting for the target vehicle to return to the default berth, the passenger request is sent to the target vehicle, which will not delay the execution of the passenger request and is conducive to reducing the complexity of the algorithm.
[0144] Furthermore, controlling the target vehicle under the first vehicle control thread also includes: after receiving a passenger request, generating an instruction to select the next stop, if the target vehicle is at the initial position, and the initial position is a default berth, then the next stop specified in the instruction is the first stop of the route; if the target vehicle is at the initial position, and the initial position is not a default berth, then the next stop specified in the instruction is the stop closest to the initial position in the route; the instruction is sent to the target vehicle. Here, "passenger request" should be understood as a passenger request to use a stop on the vehicle's cruising route as a boarding point or alighting point. The boarding point (or alighting point) in the passenger request can be any stop on the vehicle's cruising route.
[0145] When the target vehicle is at the initial position, after receiving the passenger request, the vehicle is triggered to start cruising along the cruising route. At this time, "generating an instruction to select the next stop" means determining the first stop for the current cruise.
[0146] Fig. 9 A schematic diagram of a vehicle cruising route provided by an embodiment of the present disclosure. Fig. 9, for example, stops are sequentially arranged along the cruise route, namely, stop a, stop b, stop c, ... After receiving a passenger request, the vehicle cruises along the cruise route. If the vehicle departs from the default berth, stop a (i.e., the first stop of the route) is determined as the first stop for this cruise, that is, an instruction to select the next stop is generated, and the instruction specifies that the next stop is the first stop of the route (i.e., stop a). After receiving a passenger request, the vehicle cruises along the cruise route. If the vehicle departs from a non-default berth, stop c, which is the first stop passed, is determined as the first stop for this cruise, that is, an instruction to select the next stop is generated, and the instruction specifies that the next stop is stop c.
[0147] Furthermore, controlling the target vehicle under the first vehicle control thread also includes: before the target vehicle arrives at the designated stop, if no passenger request for the designated stop is received, generating an instruction to select the next stop, wherein the instruction specifies the next stop as the next stop of the designated stop; and sending the instruction to the target vehicle.
[0148] Exemplarily, a reference time node is set for each stop, at which the vehicle has not arrived at the corresponding stop, but is about to arrive at the corresponding stop. Exemplarily, the reference time node can be set to the distance of 30 meters between the vehicle and the corresponding stop. Alternatively, the reference time node is 1 minute before the vehicle arrives at the corresponding stop.
[0149] Continue to see Fig. 9 , for example, the reference time node of stop b is b0. Vehicle A cruises along the cruise route and passes through each stop on the cruise route in sequence. If the dispatch server does not receive a passenger request to use stop b as a boarding point or alighting point before vehicle A arrives at the reference time node b0 of stop b, it directly generates an instruction to arrive at stop c, and controls vehicle A to go directly to stop c without stopping at stop b.
[0150] Furthermore, controlling the target vehicle under the first vehicle control thread also includes: after modifying the designated stop of the target vehicle to the next stop of the designated stop, if a passenger request for the designated stop is received, the passenger request is sent to a vehicle traveling on the same route and not reaching the designated stop; or, after waiting for the target vehicle to return to the default berth, the passenger request is sent to the target vehicle.
[0151] For example, before vehicle A arrives at the reference time node b0 of stop b, the dispatch server does not receive a passenger request to use stop b as a boarding point or alighting point, and directly generates an instruction to arrive at stop c. After that, if vehicle A receives a passenger request to use stop b as a boarding point or alighting point at a certain time between the reference time node of stop b and the arrival at stop b, vehicle A in this cruise ignores the passenger request, does not stop at stop b, and directly goes to stop c. The passenger request will be sent to the next vehicle after vehicle A on the same cruise route. Alternatively, the passenger request will be sent to vehicle A when vehicle A performs the next round of cruise.
[0152] Furthermore, controlling the target vehicle under the first vehicle control thread further includes: after the target vehicle arrives at the designated stop, generating an instruction to select the next stop, wherein the instruction specifies the next stop as the next stop of the designated stop; and sending the instruction to the target vehicle. Fig. 9 , the reference time node of stop b is b0. Vehicle A cruises along the cruise route and passes through each stop on the cruise route in sequence. If the dispatch server receives a passenger request to use stop b as a boarding point or alighting point before vehicle A arrives at the reference time node b0 of stop b, the vehicle stops after arriving at stop b and generates an instruction to select the next stop, in which the next stop is specified as stop c.
[0153] If the designated stop is stop a, after the target vehicle arrives at the designated stop a, the instruction to select the next stop is updated, and the updated designated stop is designated stop b. In this case, the instruction to update the next stop is no longer the reference time node associated with the stop, but the time of arrival at the stop.
[0154] Furthermore, controlling the target vehicle under the first vehicle control thread also includes: after the target vehicle arrives at the designated stop, if no passenger request is sent to the target vehicle at consecutive preset stops, then after the target vehicle arrives at the end of the route, a return notification is sent to the target vehicle.
[0155] For example, see Fig. 9 , assuming that the cruise route includes only 5 stops. The vehicle receives a passenger request for stop b, and the vehicle stops at stop b. Since no passenger request is received for the two stops after stop b (i.e., stop c and stop d), the vehicle will pass through two stops in succession without stopping at any of the two stops. In this case, it can be considered that there is little demand for the vehicle on the cruise route, so after the target vehicle arrives at the end of the route, a return notification is sent to the target vehicle. This can reduce operating costs.
[0156] Furthermore, the passenger request may include a boarding request, and the cruise route may include the qth stop. The vehicle cruises along the same fixed cruise route multiple times. If the target vehicle arrives at the designated stop, if no passenger request is sent to the target vehicle for the consecutive q-1 stops, a return notification is sent to the target vehicle. For example, see Fig. 9 , the cruise route only includes 5 stops. The vehicle cruises along the cruise route for many times. After the last cruise, the vehicle returns from the last stop of the route to the first stop of the route and starts a new round of cruise. That is, the vehicle passes a, b, c, d, e, a, b, c, d, e, ... in sequence. Since the alighting point requested by any passenger is one of the 5 stops. Assume that the designated stop is determined to be stop b according to a passenger's boarding request, and then the vehicle passes c, d, e in sequence and arrives at a. In this process, all passengers who boarded at stop b have gotten off. If the vehicle does not receive a passenger boarding request at c, d, e, and a during this process, it means that the vehicle is empty when it arrives at stop a. There are very few passenger-carrying vehicles on this cruise route. Sending a return notification to the target vehicle and stopping the vehicle operation can reduce operating costs.
[0157] Based on the above technical solution, optionally, in the second public transportation mode, it is also possible to set constraints and determine whether a passenger request can be assigned based on the constraints, so as to further ensure the driving safety of the vehicle, complete the operation task or reduce the operation cost of the vehicle. Optionally, the constraints may include power constraints and / or operation time constraints.
[0158] If the power constraint condition is considered, for example, based on the above technical solution, it can be set that the control of the target vehicle under the first vehicle control thread also includes: obtaining the power information of the target vehicle at the initial position; judging whether the power information is lower than the first power threshold; if it is lower than the first power threshold and the initial position is the default berth, sending an end notification to the target vehicle; if it is lower than the first power threshold and the initial position is not the default berth, sending a return notification to the target vehicle, and after the target vehicle returns to the default berth, sending an end notification to the target vehicle. The first power threshold refers to the power that can ensure that the vehicle completes this operation task. For example, the operation task is planned to cruise twice along the preset cruise route. At this time, the first power threshold refers to the power required to ensure that the vehicle cruises twice along the preset cruise route. "End notification" is used to indicate the end of this operation. The essence of this setting is that after switching to the second bus mode, the power information is detected first, and it is judged whether the power information can meet the basic conditions for safe operation and completion of the operation task to ensure the safety of driving.
[0159] Optionally, if the power information of the target vehicle at the initial position is lower than the first power threshold, a low power notification is first sent to the target vehicle, and then it is determined whether the target vehicle is in a default berth at the initial position. If the initial position is a default berth, an end notification is sent to the target vehicle; if the initial position is a non-default berth, a return notification is sent to the target vehicle, and after the target vehicle returns to the default berth, an end notification is sent to the target vehicle. This setting makes it easy for operators to inquire about the reason for the end of the operation.
[0160] Furthermore, controlling the target vehicle under the first vehicle control thread also includes: receiving power information sent by the target vehicle each time it returns to the default berth; determining whether the power information is lower than a second power threshold, the second power threshold being less than or equal to the first power threshold; if lower than the second power threshold, sending an end notification to the target vehicle. At this time, the second power threshold may be a power level that can ensure that the vehicle completes this cruise. The essence of this setting is that before starting each round of cruise, the power information is preferentially detected, and it is determined whether the power information can meet the basic conditions for safe operation to ensure driving safety.
[0161] Optionally, if the target vehicle returns to the default parking space and the power information is lower than the second power threshold, a low power notification and an end notification are sent to the target vehicle. This arrangement facilitates the operator to inquire about the reason for the end of the operation.
[0162] Furthermore, controlling the target vehicle under the first vehicle control thread also includes: obtaining the power information of the target vehicle before sending an instruction to select the next stop to the target vehicle each time; judging whether the power information is lower than a second power threshold, the second power threshold is less than or equal to the first power threshold; if it is lower than the second power threshold, after the target vehicle stops, a return notification is sent to the target vehicle, and after the target vehicle returns to the default berth, an end notification is sent to the target vehicle. At this time, the second power threshold can be a power level that can ensure that the vehicle arrives at the next stop. The essence of this setting is that before controlling the vehicle to go to the next stop, the power information is preferentially detected, and it is judged whether the power information can meet the basic conditions for safe operation to ensure the safety of driving.
[0163] Optionally, controlling the target vehicle under the first vehicle control thread also includes: obtaining power information of the target vehicle before sending an instruction to select the next stop to the target vehicle each time; determining whether the power information is lower than a second power threshold, the second power threshold being less than or equal to the first power threshold; if it is lower than the second power threshold, controlling the vehicle to no longer receive new passenger boarding requests and passenger disembarking requests.
[0164] Specifically, each time before sending an instruction to select the next stop to the target vehicle, the power information of the target vehicle is obtained; it is determined whether the power information is lower than the second power threshold, and the second power threshold is less than or equal to the first power threshold. If it is lower than the second power threshold and the vehicle is moving, the vehicle is controlled to stop at the current destination. After the vehicle stops, a low power notification is sent to the target vehicle, and passengers are waiting to get off. After all passengers have gotten off, a return notification is sent to the target vehicle, and after the target vehicle returns to the default berth, an end notification is sent to the target vehicle. If it is lower than the second power threshold, the vehicle is in a stopped state, a low power notification is sent to the target vehicle, and passengers are waiting to get off. After all passengers have gotten off, a return notification is sent to the target vehicle, and after the target vehicle returns to the default berth, an end notification is sent to the target vehicle. This setting makes it easy for operators to inquire about the reason for the end of the operation.
[0165] If setting operating time constraints is considered, illustratively, based on the above technical solution, it can be optionally set that the control of the target vehicle under the first vehicle control thread also includes: judging whether the target vehicle is in the working time period of the first working mode at the moment of the initial position; if it is not in the working time period, and the initial position is the default berth, sending an end notification to the target vehicle; if it is not in the working time period, and the initial position is a non-default berth, sending a return notification to the target vehicle, and after the target vehicle returns to the default berth, sending an end notification to the target vehicle. The working time period in the second bus mode is the operating time period of the second bus mode. "Sending an end notification" means that the vehicle ends operation in the first working mode and no longer receives new passenger boarding and alighting requests.
[0166] In practice, on the same route, the demand for cars by passengers varies in different time periods. Therefore, a day can be divided into multiple stages according to the demand for cars by passengers in different time periods, and different stages correspond to different working modes. After switching to the second bus mode, it is first determined whether the vehicle is in the working time period of the second bus mode at the time of the initial position. Only if it is in the working time period, the vehicle is allowed to be dispatched in the second bus mode. In this way, the operating cost of the vehicle can be fully reduced while meeting the user's car demand.
[0167] Optionally, if the target vehicle is not in the working time period of the first working mode at the time of the initial position, first send an over-operation notification to the target vehicle, and then determine whether the target vehicle is in a default berth at the initial position. If the initial position is a default berth, send an end notification to the target vehicle; if the initial position is a non-default berth, send a return notification to the target vehicle, and after the target vehicle returns to the default berth, send an end notification to the target vehicle. This setting makes it easy for operators to inquire about the reason for the end of the operation.
[0168] Furthermore, the control of the target vehicle under the first vehicle control thread may further include: determining whether the target vehicle is within the working time period of the first working mode each time it returns to the default parking space; if it is not within the working time period, sending an end notification to the target vehicle. This can also achieve the goal of fully reducing the operating cost of the vehicle while meeting the user's vehicle use needs.
[0169] Optionally, it is determined whether the target vehicle is within the working time period of the first working mode each time it returns to the default parking space; if it is not within the working time period, an over-operation notification and an end notification are sent to the target vehicle. This arrangement makes it easy for operators to inquire about the reasons for the end of the operation.
[0170] Furthermore, it can be set that the control of the target vehicle under the first vehicle control thread also includes: before generating the instruction to select the next station each time, judging whether the current moment is in the working time period of the first working mode; if it is not in the working time period, after the target vehicle travels to a preset station, sending a return notification to the target vehicle, and after the target vehicle returns to the default berth, sending an end notification to the target vehicle. Exemplarily, the preset station can be the end of the route. In this way, the operating cost of the vehicle can be fully reduced while meeting the user's vehicle needs.
[0171] It should be noted that each time before generating an instruction to select the next stop, it is determined whether the current moment is within the working time period of the first working mode; if it is not within the working time period, the vehicle can be set to allow the vehicle to accept get-off requests but not to accept get-on requests, so as to ensure that the existing passengers on the vehicle can reach their respective destinations.
[0172] Furthermore, before each instruction to select the next stop is generated, it is determined whether the current moment is in the working time period of the first working mode. If it is not in the working time period and the vehicle is stationary, starting from the current stop, after all stops on the cruise route have been passed once, a return notification is sent to the target vehicle, and after the target vehicle returns to the default berth, an end notification is sent to the target vehicle. If it is not in the working time period and the vehicle is in a moving state, starting from the most recently passed stop, after all stops on the cruise route have been passed once, a return notification is sent to the target vehicle, and after the target vehicle returns to the default berth, an end notification is sent to the target vehicle. This setting can ensure that the existing passengers on the vehicle can reach their respective destinations.
[0173] For example, see Fig. 9, if the current time is time f, and the vehicle is stationary at stop b, it is determined whether the current time is within the working time period of the first working mode. If it is not within the working time period, starting from stop c, the vehicle is allowed to accept the request to get off, but not to accept the request to get on. After departing from stop b, the vehicle cruises along the cruising route in sequence, passing c, d, and e, and after arriving at stop a, a return notification is sent to the target vehicle, and after the target vehicle returns to the default berth, an end notification is sent to the target vehicle.
[0174] If the current moment is b0, the vehicle is traveling toward stop b. At the time node associated with stop b, it is determined whether the current moment is within the working time period of the first working mode. If it is not within the working time period, starting from stop b, the vehicle is allowed to accept alighting requests, but not allowed to accept boarding requests. After departing from stop b, the vehicle cruises along the cruising route in sequence, passing c and d, and after arriving at stop e, a return notification is sent to the target vehicle, and after the target vehicle returns to the default berth, an end notification is sent to the target vehicle.
[0175] Furthermore, when both the power constraint and the operation time constraint are set for the second bus mode, the power constraint is set with a higher priority than the operation time constraint. For example, if the target vehicle's initial position is a default berth, and the power information of the target vehicle at the initial position is lower than the first power threshold, then even if the target vehicle is in the working time period of the first working mode at the initial position, an end notification needs to be sent to the target vehicle.
[0176] On the basis of the above technical solutions, optionally, controlling the target vehicle under the first vehicle control thread also includes: obtaining the door state of the target vehicle at the initial position; based on the door state being open and receiving a passenger request, judging whether the duration of the door opening is less than or equal to the preset duration; if it is less than or equal to the preset duration, sending the passenger request to the target vehicle; otherwise, sending a door closing instruction to the target vehicle. The essence of such a setting is that, for the vehicle at the initial position, which is also a stop in the cruise route, and the boarding point in the passenger request is also at the initial position, the time when the door is in the open state is monitored, and according to the duration of the door being in the open state, it is determined whether to accept the passenger request and wait for the passenger to board the vehicle. In practice, there are often multiple vehicles cruising in the same cruise route. Such a setting can ensure that a single vehicle will not stay at a stop for a long time due to a passenger request, which is conducive to making the time interval between two adjacent vehicles arriving at the same stop in the entire cruise route consistent, which is conducive to realizing a virtuous cycle of vehicle scheduling and improving passenger satisfaction.
[0177] Further, controlling the target vehicle under the first vehicle control thread also includes: before the target vehicle arrives at the designated stop, if no passenger request for the designated stop is received, and it is detected that the target vehicle is changing lanes, the door of the target vehicle is set to manual door opening. If in practice, if the target vehicle is changing lanes, the length of the entire distance it completes the lane change is uncertain. This may result in passing a stop during the lane change. In other words, in practice, there may be a situation where the vehicle misses a stop due to lane change. In this case, since the vehicle cannot stop at the stop, if the vehicle is set to open the door automatically, when the system detects that the vehicle is near the stop, it will control the vehicle to open the door automatically, which is likely to cause safety hazards. By setting the door of the target vehicle to be set to manual door opening, the automatic door opening program will be invalidated, which is conducive to ensuring the safety of driving.
[0178] Fig.10 A flowchart of another vehicle dispatching method provided in an embodiment of the present disclosure. Fig.10 for Figure 8 A specific example of this is shown in Figure 1. Fig.10 In , the initial position of the target vehicle can be a default parking space or a non-default parking space. Fig.10 , at the initial position, determine whether the target vehicle's power information is higher than the first power threshold. If it is lower than the first power threshold, keep the vehicle stationary at the initial position. If it is higher than the first power threshold, further determine whether it is currently in the working time period of the second bus mode; if so, determine whether the target vehicle's power information is higher than the second power threshold. If it is lower than the second power threshold, keep the vehicle stationary at the initial position. If it is higher than the second power threshold, determine whether the target vehicle has received a passenger request. If no passenger request is received, keep the vehicle stationary at the initial position.
[0179] If a passenger request is received, an instruction to select the next stop is generated. If the initial position is a default stop, the next stop is the first stop on the vehicle's operating route (i.e., the first stop on the route), and n=1. If the initial position is a non-default stop, the next stop is the stop closest to the initial position on the vehicle's operating route. For example, see Fig. 9 , if the initial position is a non-default berth, the next stop is the third stop in the vehicle operation route, that is, n=3.
[0180] Continuously detect whether the door status of the target vehicle is closed. If the door status of the target vehicle is open, send a door closing command to the target vehicle so that the target vehicle closes the door after receiving the door closing command. If the door status of the target vehicle is closed, control the vehicle to start after waiting for a preset time. At the time node associated with the nth stop, determine whether there is a passenger request for the nth stop.
[0181] If there is a passenger request for the nth stop, check whether the target vehicle has arrived at the nth stop. If the target vehicle has arrived at the nth stop, regenerate the instruction to select the next stop, and the "next stop" in the regenerated "instruction to select the next stop" refers to the n+1th stop. At the same time, control the target vehicle to stop and open the door automatically to wait for passengers to get on and off. After the passengers get on and off, control the door of the target vehicle to close, and continuously check whether the door status of the target vehicle is closed.
[0182] If there is no passenger request for the nth stop, determine whether no passenger request has been received for m consecutive stops up to the current moment, where m is less than or equal to the total number of stops set on the operating route. Here, "m consecutive stops" refers to the m stops obtained by counting from the nth stop in the reverse direction of the cruise route. Optionally, "passenger request" only includes passenger boarding requests. If no passenger request has been received for m consecutive stops up to the current moment, it indicates that there is less passenger demand for the vehicle on the operating route. Further determine whether the nth stop is the end of the route; if so, control the vehicle to return to the default berth; if not, modify the instruction to select the next stop, and the "next stop" in the modified "instruction to select the next stop" refers to the n+1th stop. If, up to the current moment, at least one of the m consecutive stops has received a passenger request, the instruction for selecting the next stop is modified, and the "next stop" in the modified "instruction for selecting the next stop" refers to the n+1th stop.
[0183] The above technical solution provides an overall dispatching method for vehicles under the second bus mode. This method does not stop at every stop, but selects stops individually according to passenger needs to complete the operational task of picking up and dropping off passengers and meet the passengers' vehicle needs. This can make up for the current lack of methods for dispatching intelligent driving vehicles or unmanned vehicles.
[0184] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described order of actions, because according to the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0185] Fig.11 The structure block diagram of a vehicle dispatching device provided by an embodiment of the present disclosure. The vehicle dispatching device can dispatch at least one vehicle, and for each dispatched vehicle, a corresponding vehicle control thread is started. Fig.11 As shown, the device comprises:
[0186] An acquisition module 510 is used to acquire vehicle dispatch configuration information, wherein the vehicle dispatch configuration information includes a vehicle identification and a first working mode, wherein the first working mode is an automatic mode;
[0187] A setting module 520, configured to set the working mode of the target vehicle corresponding to the vehicle identifier to the first working mode;
[0188] An opening module 530 is used to open a first vehicle control thread in the first working mode;
[0189] The control module 540 is used to associate the first vehicle control thread with the vehicle identifier, and control the target vehicle under the first vehicle control thread.
[0190] The essence of the above technical solution is that the first working mode is an automatic mode. The vehicle dispatching device can issue dispatching instructions to the vehicle in the first working mode under the first vehicle control thread to control the vehicle so that it can complete the operational task of picking up and dropping off passengers, meet the passengers' vehicle needs, and make up for the current lack of methods for dispatching intelligent driving vehicles or unmanned vehicles.
[0191] Furthermore, the automatic mode is one of a first public transportation mode, a car-hailing mode and a second public transportation mode.
[0192] Furthermore, the module is configured to:
[0193] Detecting a current operating mode of the target vehicle, a switchable state of the current operating mode, and first state information of the target vehicle;
[0194] Based on the current working mode, the switchable state being a switchable automatic mode and the first state information of the target vehicle satisfying a preset working mode switching condition, the working mode of the target vehicle corresponding to the vehicle identifier is set to the first working mode.
[0195] Furthermore, the module is configured to:
[0196] If the current working mode is a non-automatic mode, and the switchable state is configured as a state in which the automatic mode can be switched, the working mode of the target vehicle is set to the first working mode. Furthermore, the setting module is further used to:
[0197] Before switching the second working mode to the first working mode, obtaining the state information of the target vehicle;
[0198] Determining whether the status information satisfies a preset working mode switching condition;
[0199] If so, the second working mode is switched to the first working mode.
[0200] Furthermore, the preset working mode switching condition includes one or more of the following:
[0201] Vehicles can report door information;
[0202] The vehicle remains stationary;
[0203] Vehicles on the road network.
[0204] Furthermore, the vehicle dispatch configuration information also includes a first map identifier;
[0205] Enable modules for:
[0206] Before starting a first vehicle control thread in the first working mode, obtaining a second map identifier of the target vehicle;
[0207] Determining whether the first map identifier matches the second map identifier;
[0208] If they match, a first vehicle control thread in the first working mode is started.
[0209] Furthermore, the vehicle dispatching device also includes a monitoring module, which is used to:
[0210] Start a monitoring thread in advance;
[0211] The monitoring thread monitors whether the working mode of each dispatched vehicle is a non-automatic mode, and deletes the vehicle identification corresponding to the working mode being the non-automatic mode.
[0212] Furthermore, the control module is used to:
[0213] The second state information of the target vehicle is obtained in the first vehicle control thread, a dispatch instruction is generated based on the second state information of the target vehicle, and the dispatch instruction is issued to the target vehicle.
[0214] Furthermore, the first working mode is a first public transportation mode;
[0215] The vehicle dispatch configuration information also includes the first stop of the route, the last stop of the route and the default berth;
[0216] Furthermore, the control module is used to:
[0217] Obtaining an initial position of the target vehicle;
[0218] Determining whether the initial position is the default berth;
[0219] Generate an instruction for selecting a next stop, if the initial position is the default berth, the next stop specified in the instruction is the first stop of the route; otherwise, the next stop specified in the instruction is the stop on the route closest to the initial position;
[0220] The command is sent to the target vehicle.
[0221] Furthermore, the control module is used to:
[0222] Before generating an instruction to select a next stop, obtaining power information of the target vehicle at the initial position;
[0223] Determining whether the power information is lower than a first power threshold;
[0224] If the power level is lower than the first power threshold and the initial position is the default parking space, sending an end notification to the target vehicle;
[0225] If it is lower than the first power threshold and the initial position is not the default berth, a return notification is sent to the target vehicle, and after the target vehicle returns to the default berth, an end notification is sent to the target vehicle.
[0226] Furthermore, the control module is used to: receive power information sent by the target vehicle before selecting the next station; determine whether the power information is lower than a second power threshold, the second power threshold is less than or equal to the first power threshold; if it is lower than the second power threshold, send a return notification to the target vehicle, and send an end notification to the target vehicle after the target vehicle returns to the default berth.
[0227] Furthermore, the control module is used to: before generating an instruction to select the next station, determine whether the target vehicle is in the working time period of the first working mode at the moment of the initial position; if it is not in the working time period and the initial position is the default berth, send an end notification to the target vehicle; if it is not in the working time period and the initial position is not the default berth, send a return notification to the target vehicle, and send an end notification to the target vehicle after the target vehicle returns to the default berth.
[0228] Furthermore, the control module is used to: determine whether the moment when the target vehicle arrives at the end of the route is within the working time period of the first working mode; if it is not within the working time period, send a return notification to the target vehicle, and send an end notification to the target vehicle after the target vehicle returns to the default berth.
[0229] Furthermore, the control module is used to: obtain the door state of the target vehicle when it is in the initial position; based on the door state being open, send a door closing command to the target vehicle, so that the target vehicle closes the door after receiving the door closing command, and starts after waiting for a preset time.
[0230] Furthermore, the first working mode is a car booking mode; the vehicle dispatch configuration information also includes a default berth;
[0231] Furthermore, the control module is used to: obtain the initial position of the target vehicle; based on the initial position being the default berth, wait for a ride order; based on the initial position being a non-default berth, wait for a preset time at the initial position, and if no ride order is received within the preset time, send a return notification to the target vehicle.
[0232] Furthermore, the control module is used for: after the target vehicle accepts the ride-hailing order and opens the door at the get-off point, the first vehicle control thread performs door opening timing; after the door opening timing reaches a first preset time, a door closing command is sent to the target vehicle; after the door opening timing reaches a second preset time, confirmation that the ride-hailing order is completed; wherein the second preset time is greater than or equal to the first preset time.
[0233] Furthermore, the control module is used to: after confirming that the ride-hailing order is completed, wait for a preset time at the disembarkation point; if no ride-hailing order is received within the preset time, send a return notification to the target vehicle.
[0234] Furthermore, the control module is used to: obtain the power information of the target vehicle when it is at the initial position; determine whether the power information is lower than a first power threshold; if it is lower than the first power threshold and the initial position is the default berth, send an end notification to the target vehicle; if it is lower than the first power threshold and the initial position is not the default berth, send a return notification to the target vehicle, and send an end notification to the target vehicle after the target vehicle returns to the default berth.
[0235] Furthermore, the control module is used to: obtain the power information of the target vehicle before allocating each ride-hailing order; determine whether the power information is lower than a second power threshold, and the second power threshold is less than or equal to the first power threshold; if it is lower than the second power threshold, send a return notification to the target vehicle, and send an end notification to the target vehicle after the target vehicle returns to the default berth.
[0236] Furthermore, the control module is used to: determine whether the target vehicle is within the working time period of the first working mode at the moment of the initial position; if it is not within the working time period and the initial position is the default berth, send an end notification to the target vehicle; if it is not within the working time period and the initial position is not the default berth, send a return notification to the target vehicle, and send an end notification to the target vehicle after the target vehicle returns to the default berth.
[0237] Furthermore, the control module is used to: each time a ride-hailing order is allocated, determine whether the current moment is within the working time period of the first working mode; if it is not within the working time period, send a return notification to the target vehicle, and after the target vehicle returns to the default berth, send an end notification to the target vehicle.
[0238] Furthermore, the control module is used to: obtain the door state of the target vehicle when it is at the initial position; and send a door closing command to the target vehicle based on the door state being open and the target vehicle being unloaded.
[0239] Further, the first working mode is a second public transportation mode;
[0240] The vehicle dispatch configuration information also includes the first stop of the route, the last stop of the route and the default berth;
[0241] The control module is used to: obtain the initial position of the target vehicle; wait for a passenger request based on the initial position being the default berth; wait for a preset time at the initial position based on the initial position being a non-default berth, and send a return notification to the target vehicle if no passenger request is received within the preset time.
[0242] Furthermore, the control module is used to: after sending a return notification to the target vehicle, if a passenger request is received when the target vehicle has not returned to the default berth, wait for the target vehicle to return to the default berth and then send the passenger request to the target vehicle.
[0243] Furthermore, the control module is used to: after receiving a passenger request, generate an instruction for selecting the next stop; if the target vehicle is located at an initial position, and the initial position is the default berth, then the next stop specified in the instruction is the first stop of the route; if the target vehicle is located at an initial position, and the initial position is not the default berth, then the next stop specified in the instruction is the stop on the route closest to the initial position; and send the instruction to the target vehicle.
[0244] Furthermore, the control module is used to: before the target vehicle arrives at the designated stop, if no passenger request for the designated stop is received, generate an instruction to select the next stop, wherein the instruction specifies the next stop as the next stop of the designated stop; and send the instruction to the target vehicle.
[0245] Furthermore, the control module is used to: after modifying the designated stop of the target vehicle to the next stop of the designated stop, if a passenger request for the designated stop is received, send the passenger request to a vehicle traveling on the same route and not reaching the designated stop; or, after waiting for the target vehicle to return to the default berth, send the passenger request to the target vehicle.
[0246] Furthermore, the control module is used to: after the target vehicle arrives at the designated stop, generate an instruction for selecting a next stop, wherein the instruction specifies the next stop as the next stop of the designated stop; and send the instruction to the target vehicle.
[0247] Furthermore, the control module is used to: after the target vehicle arrives at the designated stop, if no passenger request is sent to the target vehicle at consecutive preset stops, then after the target vehicle arrives at the last stop of the route, send a return notification to the target vehicle.
[0248] Furthermore, the control module is used to: obtain the power information of the target vehicle when it is at the initial position; determine whether the power information is lower than a first power threshold; if it is lower than the first power threshold and the initial position is the default berth, send an end notification to the target vehicle; if it is lower than the first power threshold and the initial position is not the default berth, send a return notification to the target vehicle, and send an end notification to the target vehicle after the target vehicle returns to the default berth.
[0249] Furthermore, the control module is used to: receive the power information sent by the target vehicle each time it returns to the default berth; determine whether the power information is lower than a second power threshold, the second power threshold is less than or equal to the first power threshold; if it is lower than the second power threshold, send an end notification to the target vehicle.
[0250] Furthermore, the control module is used to: obtain the power information of the target vehicle before sending an instruction to select the next stop to the target vehicle each time; determine whether the power information is lower than a second power threshold, and the second power threshold is less than or equal to the first power threshold; if it is lower than the second power threshold, send a return notification to the target vehicle after the target vehicle stops, and send an end notification to the target vehicle after the target vehicle returns to the default berth.
[0251] Furthermore, the control module is used to: determine whether the target vehicle is within the working time period of the first working mode at the moment of the initial position; if it is not within the working time period and the initial position is the default berth, send an end notification to the target vehicle; if it is not within the working time period and the initial position is not the default berth, send a return notification to the target vehicle, and send an end notification to the target vehicle after the target vehicle returns to the default berth.
[0252] Furthermore, the control module is used to: determine whether the moment when the target vehicle returns to the default berth each time is within the working time period of the first working mode; if it is not within the working time period, send an end notification to the target vehicle.
[0253] Furthermore, the control module is used to: before generating an instruction to select the next station each time, determine whether the current moment is within the working time period of the first working mode; if it is not within the working time period, send a return notification to the target vehicle after the target vehicle travels through a preset number of stations, and send an end notification to the target vehicle after the target vehicle returns to the default berth.
[0254] Furthermore, the control module is used to: obtain the door state of the target vehicle when it is in the initial position; based on the door state being open and receiving a passenger request, determine whether the door opening time is less than or equal to a preset time; if it is less than or equal to the preset time, send the passenger request to the target vehicle; otherwise, send a door closing command to the target vehicle.
[0255] Furthermore, the control module is used to: before the target vehicle arrives at the designated stop, if no passenger request for the designated stop is received and it is detected that the target vehicle is changing lanes, set the door of the target vehicle to manual opening.
[0256] The device disclosed in the above embodiments can implement the process of the method disclosed in the above method embodiments, and has the same or corresponding beneficial effects. To avoid repetition, it will not be described here.
[0257] Fig.12 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure is shown in FIG. Fig.12 As shown, the electronic device includes:
[0258] One or more processors 1001, Fig.12 A processor 1001 is taken as an example;
[0259] Memory 1002;
[0260] The electronic device may further include: an input device 1003 and an output device 1004 .
[0261] The processor 1001, memory 1002, input device 1003 and output device 1004 in the electronic device may be connected via a bus or other means. Fig.12 The example of connecting through bus is taken in the following.
[0262] The memory 1002 is a non-transitory computer-readable storage medium that can be used to store software programs, computer executable programs, and modules, such as program instructions / modules corresponding to the vehicle dispatching method in the embodiment of the present disclosure (for example, the attached Fig.11 The processor 1001 executes various functional applications and data processing of the server by running the software programs, instructions and modules stored in the memory 1002, that is, the vehicle dispatching method of the above method embodiment is realized.
[0263] The memory 1002 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 1002 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 1002 may optionally include a memory remotely arranged relative to the processor 1001, and these remote memories may be connected to the terminal device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0264] The input device 1003 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the electronic device. The output device 1004 may include a display device such as a display screen.
[0265] The embodiment of the present disclosure also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a program or instruction, and the program or instruction enables a computer to execute a vehicle dispatching method when executed, the method comprising:
[0266] Acquire vehicle dispatch configuration information, the vehicle dispatch configuration information including a vehicle identification and a first working mode, the first working mode being an automatic mode; set the working mode of a target vehicle corresponding to the vehicle identification to the first working mode; start a first vehicle control thread under the first working mode; associate the first vehicle control thread with the vehicle identification, and control the target vehicle under the first vehicle control thread.
[0267] Optionally, the computer executable instructions, when executed by a computer processor, can also be used to execute the technical solution of the vehicle scheduling method provided in any embodiment of the present disclosure.
[0268] Through the above description of the implementation methods, the technical personnel in the relevant field can clearly understand that the present disclosure can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present disclosure can be essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present disclosure.
[0269] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0270] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A vehicle dispatching method, characterized in that: Dispatching at least one vehicle, and starting a corresponding vehicle control thread for each dispatched vehicle; the method comprises: Acquire vehicle dispatch configuration information, the vehicle dispatch configuration information including a vehicle identification and a first working mode, the first working mode being an automatic mode; the automatic mode being one of a first public transportation mode, a car booking mode, and a second public transportation mode; wherein the first public transportation mode is a stop-at-every-station mode, and the second public transportation mode is an on-demand dispatch mode; Setting the operating mode of the target vehicle corresponding to the vehicle identifier to the first operating mode; Start a first vehicle control thread under the first working mode; Associating the first vehicle control thread with the vehicle identifier, and controlling the target vehicle under the first vehicle control thread; Wherein, if the first working mode is the first public transportation mode; the vehicle dispatch configuration information also includes the first stop of the route, the last stop of the route and the default berth; Controlling the target vehicle in the first vehicle control thread includes: Obtaining an initial position of the target vehicle; Determining whether the initial position is the default berth; Generate an instruction for selecting a next stop, if the initial position is the default berth, the next stop specified in the instruction is the first stop of the route; otherwise, the next stop specified in the instruction is the stop on the route closest to the initial position; Sending the command to the target vehicle; Alternatively, if the first working mode is a car booking mode; the vehicle dispatch configuration information also includes a default berth; Controlling the target vehicle under the first vehicle control thread includes: Obtaining an initial position of the target vehicle; Based on the initial position being the default parking space, waiting for a ride order; Based on the initial position being not the default berth, waiting for a preset time at the initial position, and if no car booking order is received within the preset time, sending a return notification to the target vehicle; Alternatively, if the first working mode is the second public transportation mode; the vehicle dispatch configuration information further includes the first stop of the route, the last stop of the route and the default berth; Controlling the target vehicle under the first vehicle control thread includes: Obtaining an initial position of the target vehicle; Waiting for a passenger request based on the initial position being the default berth; Based on the fact that the initial position is not the default berth, a preset time period is waited at the initial position, and if no passenger request is received within the preset time period, a return notification is sent to the target vehicle.
2. The method according to claim 1, characterized in that The step of setting the working mode of the target vehicle corresponding to the vehicle identifier to the first working mode comprises: Detecting a current operating mode of the target vehicle, a switchable state of the current operating mode, and first state information of the target vehicle; Based on the current working mode, the switchable state being a switchable automatic mode and the first state information of the target vehicle satisfying a preset working mode switching condition, the working mode of the target vehicle corresponding to the vehicle identifier is set to the first working mode.
3. The method according to claim 2, characterized in that The step of setting the operating mode of the target vehicle to the first operating mode based on the current operating mode includes: If the current working mode is a non-automatic mode, and the switchable state is configured as a state in which the automatic mode can be switched, the working mode of the target vehicle is set to the first working mode.
4. The method according to claim 2, characterized in that: The step of setting the operating mode of the target vehicle to the first operating mode based on the current operating mode includes: If the current working mode is the second working mode and the second working mode is the automatic mode, the second working mode is switched to the first working mode and the second vehicle control thread is closed. The second vehicle control thread is the vehicle control thread associated with the vehicle identification that is opened in the second working mode.
5. The method according to claim 2, characterized in that: The preset working mode switching conditions include one or more of the following: Vehicles can report door information; The vehicle remains stationary; Vehicles on the road network.
6. The method according to claim 1, characterized in that The vehicle dispatch configuration information also includes a first map identifier; Before starting a first vehicle control thread in the first working mode, the method further includes: Obtaining a second map identifier of the target vehicle; Determining whether the first map identifier matches the second map identifier; If they match, a first vehicle control thread in the first working mode is started.
7. The method according to claim 1, characterized in that The method further comprises: starting a monitoring thread in advance; The monitoring thread monitors whether the working mode of each dispatched vehicle is a non-automatic mode, and deletes the vehicle identification corresponding to the working mode being the non-automatic mode.
8. The method according to any one of claim 1, characterized in that: Controlling the target vehicle under the first vehicle control thread includes: The second state information of the target vehicle is obtained in the first vehicle control thread, a dispatch instruction is generated based on the second state information of the target vehicle, and the dispatch instruction is issued to the target vehicle.
9. The method according to claim 1, characterized in that: Before generating the instruction for selecting the next station, controlling the target vehicle under the first vehicle control thread further includes: Acquire the power information of the target vehicle at the initial position; Determining whether the power information is lower than a first power threshold; If the power level is lower than the first power threshold and the initial position is the default parking space, sending an end notification to the target vehicle; If it is lower than the first power threshold and the initial position is not the default berth, a return notification is sent to the target vehicle, and after the target vehicle returns to the default berth, an end notification is sent to the target vehicle.
10. The method according to claim 9, characterized in that Controlling the target vehicle under the first vehicle control thread further includes: Receiving power information sent by the target vehicle before selecting the next station; Determine whether the power information is lower than a second power threshold, where the second power threshold is less than or equal to the first power threshold; If the power level is lower than the second power threshold, a return notification is sent to the target vehicle, and after the target vehicle returns to the default berth, an end notification is sent to the target vehicle.
11. The method according to claim 1, characterized in that: Before generating the instruction for selecting the next station, controlling the target vehicle under the first vehicle control thread further includes: Determining whether the target vehicle is in a working time period of the first working mode at the time of the initial position; If it is not within the working time period and the initial position is the default berth, sending an end notification to the target vehicle; If it is not within the working time period and the initial position is not the default berth, a return notification is sent to the target vehicle, and after the target vehicle returns to the default berth, an end notification is sent to the target vehicle.
12. The method according to claim 1, characterized in that Controlling the target vehicle under the first vehicle control thread further includes: Determining whether the moment when the target vehicle arrives at the last stop of the route is within the working time period of the first working mode; If it is not within the working time period, a return notification is sent to the target vehicle, and after the target vehicle returns to the default berth, an end notification is sent to the target vehicle.
13. The method according to claim 1, characterized in that Controlling the target vehicle under the first vehicle control thread further includes: Acquire the door state of the target vehicle at the initial position; Based on the door state being open, a door closing command is sent to the target vehicle, so that the target vehicle closes the door after receiving the door closing command and starts after waiting for a preset time.
14. The method according to claim 1, characterized in that Controlling the target vehicle under the first vehicle control thread further includes: After the target vehicle accepts the ride order and opens the door at the drop-off point, the door opening timing is performed in the first vehicle control thread; After the door opening timing reaches a first preset time, a door closing command is sent to the target vehicle; after the door opening timing reaches a second preset time, the car booking order is confirmed to be completed; wherein, the second preset time is greater than or equal to the first preset time.
15. The method according to claim 14, characterized in that After the confirmation of the car booking order is completed, controlling the target vehicle in the first vehicle control thread further includes: Wait for a preset time at the drop-off point. If no ride order is received within the preset time, a return notification is sent to the target vehicle.
16. The method according to claim 1, characterized in that Controlling the target vehicle under the first vehicle control thread further includes: Acquire the power information of the target vehicle at the initial position; Determining whether the power information is lower than a first power threshold; If the power level is lower than the first power threshold and the initial position is the default parking space, sending an end notification to the target vehicle; If it is lower than the first power threshold and the initial position is not the default berth, a return notification is sent to the target vehicle, and after the target vehicle returns to the default berth, an end notification is sent to the target vehicle.
17. The method according to claim 16, characterized in that Controlling the target vehicle under the first vehicle control thread further includes: Before allocating a ride-hailing order each time, obtaining the power information of the target vehicle; Determine whether the power information is lower than a second power threshold, where the second power threshold is less than or equal to the first power threshold; If the power level is lower than the second power threshold, a return notification is sent to the target vehicle, and after the target vehicle returns to the default berth, an end notification is sent to the target vehicle.
18. The method according to claim 1, characterized in that Controlling the target vehicle under the first vehicle control thread further includes: Determining whether the target vehicle is in a working time period of the first working mode at the time of the initial position; If it is not within the working time period and the initial position is the default berth, sending an end notification to the target vehicle; If it is not within the working time period and the initial position is not the default berth, a return notification is sent to the target vehicle, and after the target vehicle returns to the default berth, an end notification is sent to the target vehicle.
19. The method according to claim 1, characterized in that Controlling the target vehicle under the first vehicle control thread further includes: Each time a ride order is allocated, determining whether the current moment is within the working time period of the first working mode; If it is not within the working time period, a return notification is sent to the target vehicle, and after the target vehicle returns to the default berth, an end notification is sent to the target vehicle.
20. The method according to claim 1, characterized in that Controlling the target vehicle under the first vehicle control thread further includes: Acquire the door state of the target vehicle at the initial position; Based on the door state being open and the target vehicle being unloaded, a door closing command is sent to the target vehicle.
21. The method according to claim 1, characterized in that After sending the return notification to the target vehicle, controlling the target vehicle in the first vehicle control thread further includes: If a passenger request is received when the target vehicle has not returned to the default berth, the passenger request is sent to the target vehicle after waiting for the target vehicle to return to the default berth.
22. The method according to claim 1, characterized in that Controlling the target vehicle under the first vehicle control thread further includes: After receiving the passenger request, an instruction for selecting the next stop is generated. If the target vehicle is located at the initial position and the initial position is the default berth, the next stop specified in the instruction is the first stop of the route; if the target vehicle is located at the initial position and the initial position is not the default berth, the next stop specified in the instruction is the stop on the route closest to the initial position; The command is sent to the target vehicle.
23. The method according to claim 22, characterized in that Controlling the target vehicle under the first vehicle control thread further includes: Before the target vehicle arrives at the designated stop, if no passenger request for the designated stop is received, generating an instruction to select a next stop, wherein the instruction specifies the next stop as the stop next to the designated stop; The command is sent to the target vehicle.
24. The method according to claim 22, characterized in that Controlling the target vehicle under the first vehicle control thread further includes: After the designated stop of the target vehicle is modified to be the next stop of the designated stop, if a passenger request for the designated stop is received, the passenger request is sent to a vehicle traveling on the same route and not reaching the designated stop; or, after waiting for the target vehicle to return to the default berth, the passenger request is sent to the target vehicle.
25. The method according to claim 22, characterized in that Controlling the target vehicle under the first vehicle control thread further includes: After the target vehicle arrives at the designated stop, generating an instruction for selecting a next stop, wherein the instruction specifies the next stop as the stop next to the designated stop; The command is sent to the target vehicle.
26. The method according to claim 22, characterized in that Controlling the target vehicle under the first vehicle control thread further includes: After the target vehicle arrives at the designated stop, if no passenger request is sent to the target vehicle at consecutive preset stops, a return notification is sent to the target vehicle after the target vehicle arrives at the last stop of the route.
27. The method according to claim 1, characterized in that Controlling the target vehicle under the first vehicle control thread further includes: Acquire the power information of the target vehicle at the initial position; Determining whether the power information is lower than a first power threshold; If the power level is lower than the first power threshold and the initial position is the default parking space, sending an end notification to the target vehicle; If it is lower than the first power threshold and the initial position is not the default berth, a return notification is sent to the target vehicle, and after the target vehicle returns to the default berth, an end notification is sent to the target vehicle.
28. The method according to claim 27, characterized in that Controlling the target vehicle under the first vehicle control thread further includes: Receiving power information sent by the target vehicle each time after returning to the default berth; Determine whether the power information is lower than a second power threshold, where the second power threshold is less than or equal to the first power threshold; If the power level is lower than the second power threshold, an end notification is sent to the target vehicle.
29. The method according to claim 27, characterized in that Controlling the target vehicle under the first vehicle control thread further includes: Before sending an instruction to select a next stop to the target vehicle each time, obtaining power information of the target vehicle; Determine whether the power information is lower than a second power threshold, where the second power threshold is less than or equal to the first power threshold; If the power level is lower than the second power threshold, a return notification is sent to the target vehicle after the target vehicle stops, and an end notification is sent to the target vehicle after the target vehicle returns to the default parking space.
30. The method according to claim 1, characterized in that Controlling the target vehicle under the first vehicle control thread further includes: Determining whether the target vehicle is in a working time period of the first working mode at the time of the initial position; If it is not within the working time period and the initial position is the default berth, sending an end notification to the target vehicle; If it is not within the working time period and the initial position is not the default berth, a return notification is sent to the target vehicle, and after the target vehicle returns to the default berth, an end notification is sent to the target vehicle.
31. The method according to claim 1, characterized in that Controlling the target vehicle under the first vehicle control thread further includes: Determining whether the moment when the target vehicle returns to the default berth each time is within the working time period of the first working mode; If it is not within the working time period, an end notification is sent to the target vehicle.
32. The method according to claim 22, characterized in that Controlling the target vehicle under the first vehicle control thread further includes: Before generating an instruction for selecting the next station each time, determining whether the current moment is within the working time period of the first working mode; If it is not within the working time period, a return notification is sent to the target vehicle after the target vehicle travels to a preset number of stations, and an end notification is sent to the target vehicle after the target vehicle returns to the default berth.
33. The method according to claim 1, characterized in that Controlling the target vehicle under the first vehicle control thread further includes: Acquire the door state of the target vehicle at the initial position; Based on the door state being open and receiving a passenger request, determining whether the door opening duration is less than or equal to a preset duration; If it is less than or equal to the preset time length, the passenger request is sent to the target vehicle; otherwise, a door closing instruction is sent to the target vehicle.
34. The method according to claim 23, characterized in that Controlling the target vehicle under the first vehicle control thread further includes: Before the target vehicle arrives at the designated stop, if no passenger request for the designated stop is received and it is detected that the target vehicle is changing lanes, the door of the target vehicle is set to manual door opening.
35. A vehicle dispatching device, characterized in that: The vehicle dispatching device dispatches at least one vehicle and starts a corresponding vehicle control thread for each dispatched vehicle; the device comprises: An acquisition module is used to acquire vehicle dispatch configuration information, wherein the vehicle dispatch configuration information includes a vehicle identification and a first working mode, wherein the first working mode is an automatic mode; the automatic mode is one of a first public transportation mode, a car booking mode, and a second public transportation mode; wherein the first public transportation mode is a stop-at-every-station mode, and the second public transportation mode is an on-demand dispatch mode; A setting module, used to set the working mode of the target vehicle corresponding to the vehicle identifier to the first working mode; An opening module, used for opening a first vehicle control thread under the first working mode; A control module, used for associating the first vehicle control thread with the vehicle identifier, and controlling the target vehicle under the first vehicle control thread; Wherein, if the first working mode is the first public transportation mode; the vehicle dispatch configuration information also includes the first stop of the route, the last stop of the route and the default berth; The control module controls the target vehicle under the first vehicle control thread including: Obtaining an initial position of the target vehicle; Determining whether the initial position is the default berth; Generate an instruction for selecting a next stop, if the initial position is the default berth, the next stop specified in the instruction is the first stop of the route; otherwise, the next stop specified in the instruction is the stop on the route closest to the initial position; Sending the command to the target vehicle; Alternatively, if the first working mode is a car booking mode; the vehicle dispatch configuration information also includes a default berth; The control module controls the target vehicle under the first vehicle control thread including: Obtaining an initial position of the target vehicle; Based on the initial position being the default parking space, waiting for a ride order; Based on the initial position being not the default berth, waiting for a preset time at the initial position, and if no car booking order is received within the preset time, sending a return notification to the target vehicle; Alternatively, if the first working mode is the second public transportation mode; the vehicle dispatch configuration information further includes the first stop of the route, the last stop of the route and the default berth; The control module controls the target vehicle under the first vehicle control thread including: Obtaining an initial position of the target vehicle; Waiting for a passenger request based on the initial position being the default berth; Based on the fact that the initial position is not the default berth, a preset time period is waited at the initial position, and if no passenger request is received within the preset time period, a return notification is sent to the target vehicle.
36. An electronic device, characterized in that: include: Processor and memory; The processor is used to execute the steps of the method according to any one of claims 1 to 34 by calling the program or instructions stored in the memory.
37. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium stores a program or instruction that enables a computer to execute the steps of the method according to any one of claims 1 to 34.
