WO2021184756A1 - Elevator scheduling method and apparatus, and electronic device and storage medium - Google Patents

Elevator scheduling method and apparatus, and electronic device and storage medium Download PDF

Info

Publication number
WO2021184756A1
WO2021184756A1 PCT/CN2020/123314 CN2020123314W WO2021184756A1 WO 2021184756 A1 WO2021184756 A1 WO 2021184756A1 CN 2020123314 W CN2020123314 W CN 2020123314W WO 2021184756 A1 WO2021184756 A1 WO 2021184756A1
Authority
WO
WIPO (PCT)
Prior art keywords
task request
floor
elevator
task
request
Prior art date
Application number
PCT/CN2020/123314
Other languages
French (fr)
Chinese (zh)
Inventor
陈锋
伍嘉文
王军
Original Assignee
广东博智林机器人有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广东博智林机器人有限公司 filed Critical 广东博智林机器人有限公司
Publication of WO2021184756A1 publication Critical patent/WO2021184756A1/en

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B66HOISTING; LIFTING; HAULING
    • B66BELEVATORS; ESCALATORS OR MOVING WALKWAYS
    • B66B1/00Control systems of elevators in general
    • B66B1/02Control systems without regulation, i.e. without retroactive action
    • B66B1/06Control systems without regulation, i.e. without retroactive action electric
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B66HOISTING; LIFTING; HAULING
    • B66BELEVATORS; ESCALATORS OR MOVING WALKWAYS
    • B66B1/00Control systems of elevators in general
    • B66B1/34Details, e.g. call counting devices, data transmission from car to control system, devices giving information to the control system
    • B66B1/3415Control system configuration and the data transmission or communication within the control system
    • B66B1/3446Data transmission or communication within the control system
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B66HOISTING; LIFTING; HAULING
    • B66BELEVATORS; ESCALATORS OR MOVING WALKWAYS
    • B66B1/00Control systems of elevators in general
    • B66B1/34Details, e.g. call counting devices, data transmission from car to control system, devices giving information to the control system
    • B66B1/3476Load weighing or car passenger counting devices
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B66HOISTING; LIFTING; HAULING
    • B66BELEVATORS; ESCALATORS OR MOVING WALKWAYS
    • B66B2201/00Aspects of control systems of elevators
    • B66B2201/20Details of the evaluation method for the allocation of a call to an elevator car
    • B66B2201/242Parking control
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B66HOISTING; LIFTING; HAULING
    • B66BELEVATORS; ESCALATORS OR MOVING WALKWAYS
    • B66B2201/00Aspects of control systems of elevators
    • B66B2201/30Details of the elevator system configuration
    • B66B2201/304Transit control

Definitions

  • This application relates to the field of computer technology, and more specifically, to an elevator scheduling method, device, electronic equipment, and storage medium.
  • elevators as a vertical transportation tool, can quickly reach all floors of high-rise buildings.
  • robots in addition to transporting people and goods, elevators can also transport various robots, such as construction robots and delivery robots.
  • This application proposes an elevator dispatching method, device, electronic equipment and storage medium to improve the above-mentioned problems.
  • an embodiment of the present application provides an elevator scheduling method.
  • the method includes: when a first task request is executed, according to the first task request, controlling the elevator from the first starting floor to the first Target floor movement, the first task request includes the first starting floor and the first target floor; in the process of moving to the first target floor, the task from the elevator dispatching direction is the same as the current moving direction
  • a second task request is obtained according to the first target floor, and the second task request includes a second starting floor and a second target floor; according to the first target floor, the second starting floor, and The second target floor controls the stopping of the elevator.
  • an embodiment of the present application provides an elevator scheduling device, which includes: when executing a first task request, according to the first task request, controlling the elevator from the first starting floor to the first Target floor movement, the first task request includes the first starting floor and the first target floor; in the process of moving to the first target floor, the task from the elevator dispatching direction is the same as the current moving direction
  • a second task request is obtained according to the first target floor, and the second task request includes a second starting floor and a second target floor; according to the first target floor, the second starting floor, and The second target floor controls the stopping of the elevator.
  • an embodiment of the present application provides an electronic device that includes one or more processors; a memory; one or more application programs, wherein the one or more application programs are stored in the memory And configured to be executed by the one or more processors, and the one or more programs are configured to execute the method applied to the electronic device as described above.
  • an embodiment of the present application provides a computer-readable storage medium in which a program code is stored, wherein the above-mentioned method is executed when the program code is running.
  • Fig. 1 shows a flowchart of an elevator dispatching method provided by an embodiment of the present application.
  • Fig. 2 shows a flowchart of an elevator dispatching method provided by another embodiment of the present application.
  • Fig. 3 shows a flowchart of an elevator dispatching method provided by another embodiment of the present application.
  • Fig. 4 shows a schematic diagram of a robot point in an elevator provided by an embodiment of the present application.
  • Fig. 5 shows a flowchart of an elevator dispatching method provided by still another embodiment of the present application.
  • Fig. 6 shows a flow chart of an elevator dispatching method provided by still another embodiment of the present application.
  • Fig. 7 shows a functional block diagram of an elevator dispatching device provided by an embodiment of the present application.
  • Fig. 8 shows a structural block diagram of an electronic device proposed by an embodiment of the present application for executing the elevator scheduling method according to the embodiment of the present application.
  • Fig. 9 shows a storage medium provided by an embodiment of the present application for storing or carrying program code for implementing the elevator scheduling method according to the embodiment of the present application.
  • An elevator is a device used to transport objects or people in a vertical direction.
  • the elevator can be a construction elevator, a passenger elevator, a freight elevator, etc.
  • robots need to be carried to assist building construction.
  • the elevator scheduling algorithms mainly include the first-come, first-served algorithm, the shortest floor-finding time priority algorithm, and the LOOK algorithm. If the first-come, first-served algorithm is used when the load is large, the performance will be severely degraded and the efficiency is extremely low. If the algorithm is used for the shortest floor search with limited time, the first-arrival task request may not be responded to for a long time due to the location relationship; if it is used The LOOK algorithm, when carrying more than one robot, avoiding each other between robots takes a lot of time and is inefficient.
  • the inventor proposed the elevator scheduling algorithm of the present application.
  • the elevator is controlled to move from the first starting floor to the first target floor according to the first task request;
  • the second task request is obtained according to the first target floor from the task requests whose dispatching direction of the elevator is the same as the current moving direction; according to the first target floor, the second starting floor, and the second target floor Control the parking of the elevator.
  • the elevator performs the first task request, make full use of the space in the elevator to find the second task request that can be executed at the same time, so as to maximize the transportation efficiency of the elevator.
  • an embodiment of the present application provides an elevator dispatching method, which can be applied to electronic equipment, and the electronic equipment includes a smart device and a server.
  • the method may include:
  • step S110 when the first task request is executed, according to the first task request, the elevator is controlled to move from the first starting floor to the first target floor.
  • the elevator can move in the vertical direction for transportation in the vertical direction.
  • the elevator can be connected with electronic equipment, and usually the electronic equipment has a data processing function, so that the elevator can be controlled to stop at different floors.
  • the electronic equipment of the elevator may be a controller integrated on the elevator, or may be a smart device communicatively connected with the elevator that can realize a dispatch function, or a server.
  • the electronic device can receive the task request, and control the movement and parking of the elevator according to the task request.
  • the task request may include a starting floor and a target floor, indicating that the elevator needs to stop at the starting floor and then move to the target floor to stop, so as to transport robots, people, or other objects from the starting floor to the target floor.
  • only an elevator transport robot is taken as an example for detailed explanation.
  • the elevator can also transport people or other objects, which is not specifically limited here.
  • the electronic device can control the movement of the elevator according to the first task request, wherein the first task request can include the first starting floor and the first target floor, so that the electronic device The elevator can be controlled to move from the first starting floor to the first target floor to execute the first task request.
  • the first task request is defined as the task request being executed by the elevator.
  • the elevator can stop at a preset floor. If the preset floor is inconsistent with the first starting floor, the elevator can be controlled to move from the preset floor to the first floor.
  • Starting floor movement when controlling the elevator to stop at the first starting floor, according to the first task request, controlling the movement of the elevator from the first starting floor to the first target floor, To execute the first task request.
  • an elevator needs to transport robots. If the first starting floor is 2, the first target floor is 7, and the preset floor is 1, that is, the elevator is parked on the first floor, and the elevator can be controlled from 1. The floor moves to the 2nd floor to pick up the robot, and then the elevator is controlled to move from the 2nd floor to the 7th floor to execute the first task request.
  • Step S120 in the process of moving to the first target floor, obtain a second task request according to the first target floor from the task requests in which the dispatching direction of the elevator is the same as the current moving direction.
  • the elevator In the process of controlling the movement of the elevator to the first target floor, if the elevator is not in a fully loaded state, in order to improve the efficiency of the elevator transportation robot, other robots can be taken during the movement to improve The efficiency of the elevator transportation robot.
  • the demand of each robot can be considered as a task request. Therefore, in the process of moving to the first target floor, the dispatching direction of the elevator and the current moving direction of the task request can be determined according to the first target floor. Obtain the second task request. If the elevator is in a fully loaded state during the movement to the first target floor, it cannot take other robots and move directly to the first target floor until the elevator is moving towards the first target floor. When the target floor is not in a fully loaded state during the movement of the target floor, the step S120 is executed.
  • the elevator is in the process of moving a robot from the first starting floor to the first target floor. Since the actual size of the robot is large and the movement is not flexible enough, in order not to affect the up and down of the robot being transported, you can Obtain a second task request according to the first target floor from task requests in which the dispatching direction of the elevator is the same as the current movement direction.
  • the scheduling direction of the elevator is the movement direction when other task requests are executed. For example, the movement direction of the first task request is upward, and the movement direction of task request A is also upward. If the elevator also executes the task request A, the elevator dispatch direction is upward; if there is a task request B, the movement direction is downward, and if the elevator executes the task request B, the elevator dispatch direction is downward.
  • the electronic device can receive multiple task requests.
  • the received task request can be stored in the request list.
  • the request is traversed. List, determine that the task request whose scheduling direction is the same as the current movement direction is the task request to be executed, and then according to the first target floor, the task request that meets the preset conditions among the task requests to be executed is used as the second task request .
  • Step S130 controlling the stopping of the elevator according to the first target floor, the second starting floor, and the second target floor.
  • the second starting floor and the second target floor included in the second task request can be obtained. That is to say, the elevator needs to stop at the second starting floor while performing the first task request, and after receiving the robot on the second starting floor, it will move to the first target floor and the second target floor respectively. And respectively stop at the first target floor and the second target floor to transport multiple robots at the same time.
  • the elevator may regard the task request being executed as the first task request.
  • a task request and continue to obtain the second task request according to step S120, until all the received task requests are executed. If the elevator can take up to two robots, when the elevator is performing the first task request and the second task request, all task requests are ignored until the task request is completed.
  • the elevator scheduling method proposed in the present application when the first task request is executed, the elevator is controlled to move from the first starting floor to the first target floor according to the first task request; when the elevator is controlled to move to the first target floor
  • the second task request is obtained according to the first target floor from the task requests whose dispatching direction of the elevator is the same as the current direction of movement; according to the first target floor, the second starting floor, and the second target floor control The docking of the elevator.
  • the elevator performs the first task request make full use of the space in the elevator to find the second task request that can be executed at the same time, so as to maximize the transportation efficiency of the elevator.
  • FIG. 2 another embodiment of the present application provides an elevator scheduling method.
  • the method may include:
  • step S210 when the first task request is executed, according to the first task request, the elevator is controlled to move from the first starting floor to the first target floor.
  • step S210 reference may be made to the corresponding part of the foregoing embodiment, which will not be repeated here.
  • Step S220 In the process of moving to the first target floor, the request list is traversed, and a task request whose scheduling direction is the same as the current movement direction is determined as a task request to be executed.
  • the electronic device may receive multiple task requests, and each task request includes a corresponding starting floor and a target floor.
  • the electronic device may establish a request list in advance to store the received task request.
  • the request list may be traversed to determine that a task request whose scheduling direction is the same as the current movement direction is a task request to be executed.
  • the scheduling direction is the direction of moving to the target floor according to the starting floor in the task request.
  • the scheduling direction of the task request is downward; if the starting floor in the task request It is smaller than the target floor, indicating that the elevator needs to move from a low floor to a high floor, and it can be determined that the scheduling direction of the task request is upward.
  • the received task request includes task request A, task request B, and task request C.
  • These three task requests are stored in the request list, where the starting floor of the task request A is 2, and the target floor It is 5; the starting floor of the task request B is 3 and the target floor is 6; the starting floor of the task request C is 9, and the target floor is 2.
  • the scheduling direction of task request A is upward
  • the scheduling direction of task request B is upward
  • the scheduling direction of task request C is downward. Therefore, it can be determined from the request list that a task request whose scheduling direction is the same as the current movement direction is a task request to be executed.
  • the elevator Before traversing the request list and determining that the task request whose scheduling direction is the same as the current movement direction is the task request to be executed, it can be determined whether the elevator is in a fully loaded state during the movement to the first target floor; When the elevator is not in a fully loaded state, traverse the request list, and determine that the task request whose scheduling direction is the same as the current movement direction is the task request to be executed; if the elevator is in a fully loaded state, move directly to the first target floor to pick up and drop off The robot in the elevator determines the task request to be executed until there is a robot in the elevator and it is not in a fully loaded state.
  • an execution list can be established in advance, and it is determined whether the execution list reaches the maximum length of the execution list. Specifically, it may be that the received task request is stored in the request list, indicating that there is a robot that needs to be transported, and when the task request in the request list is executed, the task request being executed can be removed from the request list, And added to the execution list. Therefore, when the number of task requests in the execution list reaches the maximum length of the execution list, it is determined that the elevator is in a fully loaded state.
  • judging whether the elevator is in a fully loaded state may be judging whether the status indicator of the elevator is a full-load indicator.
  • multiple points can be set in the elevator, and each point can carry a robot.
  • a full load indicator can be generated to indicate the elevator
  • the status flag of the elevator can be updated to the full load flag at this time.
  • an under-load indicator can be generated. At this time, the status indicator of the elevator can be updated to an under-load indicator.
  • an idling indicator can be generated, and the status indicator of the elevator can be updated to an idling indicator. Therefore, when the status indicator of the elevator is a full load indicator, it can be considered that the elevator is in a fully loaded state.
  • step S230 according to the first target floor, a task request that satisfies a preset condition among the to-be-executed task requests is used as the second task request.
  • the task to be executed After traversing the request list and determining the task request whose scheduling direction is the same as the current movement direction, that is, the task request to be executed, the task to be executed can be further determined from the task request to be executed according to the first target floor. Request as the second task request.
  • it may be based on the first target floor to determine the starting floor in the task request to be executed and the relationship between the target floor and the first target floor, and further determine the second target floor from the task request to be executed. Task request.
  • the door opening direction of the elevator on different floors is the same, that is, the door opening direction of the elevator on all floors is the same side. Open the door on the left when the floor is parked.
  • the elevator has different door opening directions on different floors, that is, the door opening directions of the elevator on different floors may be different. Open the door on the right when the floor is parked.
  • the door opening direction of the elevator is different, and the corresponding preset condition is different, so that the task request meeting the corresponding preset condition can be determined as the second task request according to the first target floor.
  • the elevator can ride on two robots, that is to say, it can execute at most two task requests at the same time, that is, the first task request and the second task request.
  • step S230 can be executed cyclically. To determine the next second task request that can be executed at the same time.
  • Step S240 controlling the stopping of the elevator according to the first target floor, the second starting floor, and the second target floor.
  • step S240 reference may be made to the corresponding part of the foregoing embodiment, and details are not described herein again.
  • the elevator scheduling method proposed in the present application when the first task request is executed, the elevator is controlled to move from the first starting floor to the first target floor according to the first task request; when the elevator is controlled to move to the first target floor In the process of traversing the request list, it is determined that the task request whose scheduling direction is the same as the current direction of motion is the task request to be executed; according to the first target floor, the task request that meets the preset condition is selected from the task request to be executed The request is used as a second task request; the parking of the elevator is controlled according to the first target floor, the second starting floor, and the second target floor.
  • FIG. 3 another embodiment of the present application provides an elevator scheduling method.
  • the elevator obtains the request of the second task under the condition that the door opening direction of different floors is the same. process.
  • the method may include:
  • Step S310 When the first task request is executed, according to the first task request, the elevator is controlled to move from the first starting floor to the first target floor.
  • Step S320 In the process of moving to the first target floor, traverse the request list, and determine that a task request whose scheduling direction is the same as the current movement direction is a task request to be executed.
  • step S310 to step S320 reference may be made to the corresponding part of the foregoing embodiment, which will not be repeated here.
  • Step S330 Obtain the first target floor and the current floor of the elevator.
  • the elevator Since the elevator is moving from the first starting floor to the first target floor requested by the first task, the elevator is moving toward the first target floor, so that the first target floor can be acquired, And the floor where the elevator is currently located for subsequent use.
  • Step S340 For the task request to be executed, determine whether the difference between the current floor and the starting floor of the task request to be executed is greater than or equal to a preset value; if yes, go to step S350; if not, go to step S330 .
  • the scheduling direction of the task request to be executed is the same as the moving direction of the elevator. Because the elevator has inertia during movement, it needs to be decelerated to a stop in advance.
  • the current floor of the elevator is the 4th floor
  • one of the task requests to be executed has a starting floor that is also a task request for the 4th floor.
  • the elevator is not decelerated to a stop in advance and cannot be stopped immediately on the 4th floor. In order to have enough time for the elevator to decelerate, it can be determined whether the difference between the current floor of the elevator and the starting floor of the task request to be executed is greater than or equal to the preset value.
  • the current floor of the elevator is 4, the starting floor of the task request D to be executed is 5, the starting floor of the task request E to be executed is 6, and the preset value is 2.
  • the difference between the current floor and its starting floor is 1; for task request E, the difference between the current floor and its starting floor is 2, so the elevator has enough time to decelerate and stop on the 6th floor.
  • the preset value can be set according to the actual deceleration situation of the elevator, which is not specifically limited here.
  • the difference between the current floor and the starting floor of the to-be-executed task request is greater than or equal to the preset value, indicating that it is possible to stop at the starting floor of the to-be-executed task request, and step S350 can be continued; if all The difference between the current floor and the starting floor of the to-be-executed task request is less than the preset value, indicating that the elevator does not have enough time to decelerate and stop at the starting floor of the to-be-executed task request, and the steps can be executed S330.
  • Step S350 Determine whether the target floor of the task request to be executed arrives at the first target floor earlier or at the same time; if yes, execute step S360; if not, execute step S330.
  • the elevator can take two robots at most. Considering the inflexible movement of the robots, the difference between the current floor and the starting floor requested by the task to be executed can be greater than or equal to the expected value. When setting the value, continue to determine whether the target floor requested by the task to be executed reaches the first target floor earlier or at the same time.
  • the elevator there are at most two robots in the elevator, and there is already one robot in the elevator. Assuming that the moving direction of the elevator is upward, the first starting floor in the first task request is 2, and the first target The floor is 7. If there is a task to be executed, the starting floor is 4 and the target floor is 6. When the elevator moves upwards, it will first reach the 6th floor and then reach the 7th floor. The task to be performed requests to meet this condition.
  • the door opening direction of the elevator is on the same side, in order to avoid the robots avoiding each other and wasting more time, if the first robot enters the elevator and moves to the side where the door is not open, then the other robot will take the elevator It is necessary to get out of the elevator before the first robot, so that mutual avoidance between the two robots can be avoided. Then, if the first task request is from the 2nd floor to the 7th floor, and the other task request is from the 4th floor to the 6th floor, the mutual avoidance between robots can be avoided, and the efficient transportation of robots can be realized.
  • step S360 can be performed; if it is determined that the target floor of the task request to be executed is later than the first target floor, it indicates that the elevator will pick up the second robot and the first robot in the elevator. An avoidance situation occurs occasionally, and the robot cannot be accessed, so step S330 can be executed.
  • Step S360 Determine that the task request to be executed is the second task request.
  • Step S370 Control the parking of the elevator according to the first target floor, the second starting floor, and the second target floor.
  • the elevator can stop at the starting floor of the task request to be executed and pick up the second robot . It can be determined that the task request to be executed is the second task request, so that the elevator can be controlled to stop at the second starting floor, pick up the second robot, and then stop at the second target floor in turn.
  • step S330 to step S360 can be executed cyclically to continue searching for task requests that can be executed at the same time, and if the above conditions are met, continue to pick up other robots.
  • the request list can be traversed to determine whether there is a task request with the same scheduling direction in the current direction of motion. If there is, the task request with the same scheduling direction and the direction of motion is executed; if there is no scheduling in the current direction of motion For task requests with the same direction, the direction of motion can be switched, and the above steps can be executed in a loop to execute other task requests.
  • the elevator can be controlled to turn to change the movement direction to downward to execute the scheduling direction as Downward task request.
  • the elevator when the elevator reaches the top floor or the first floor, if it is determined that there is no task request with the same scheduling direction in the current movement direction, the elevator is controlled to perform the task request with the opposite scheduling direction; If there are task requests with the same scheduling direction in the movement direction, the elevator is controlled to turn to execute the task requests with the same scheduling direction.
  • the elevator is at the top level.
  • there are only task requests whose scheduling direction is downward in the request list and then the task request whose scheduling direction is downward is switched to be executed. If there is a task request whose scheduling direction is upward in the request list at this time, the task request whose scheduling direction is upward is continued to be executed.
  • the first starting floor is the 2nd floor and the first target floor is the 7th floor.
  • the second starting floor is the 4th floor and the second target floor is the 6th floor.
  • Fig. 4 shows a schematic diagram of the position of the robot in the elevator.
  • the elevator 100 is docked to the robot 200 on the 2nd floor.
  • the elevator moves from the 2nd floor to the 4th floor and picks up the robot B.
  • the robot 200 can be moved from the first point 101 through the robot scheduling algorithm. Move to the second point 102, so that robot B can be picked up smoothly when docked on the 4th floor.
  • robot B leaves the elevator.
  • the robot 200 is moved to the first point 101. Since the first point 101 is close to the door opening side 103, when the elevator reaches the 7th floor, the robot 200 can leave directly Lifts to improve the efficiency of transport robots.
  • the elevator scheduling method when the first task request is executed, the elevator is controlled to move from the first starting floor to the first target floor according to the first task request; when the elevator is controlled to move to the first target floor
  • the first target floor and the current floor of the elevator are obtained, the task request to be executed is determined, and the current Whether the difference between the floor and the starting floor of the to-be-executed task request is greater than or equal to the preset value, if so, continue to determine whether the target floor of the to-be-executed task request is earlier than or equal to the first target floor If it is, it can be determined that the task request is a second task request; and then the parking of the elevator is controlled according to the first target floor, the second starting floor, and the second target floor.
  • FIG. 5 another embodiment of the present application provides an elevator scheduling method.
  • the elevator obtains the request of the second task under the condition that the door opening directions of different floors are different. process.
  • the method may include:
  • Step S410 When the first task request is executed, according to the first task request, the elevator is controlled to move from the first starting floor to the first target floor.
  • Step S420 In the process of moving to the first target floor, traverse the request list, and determine that a task request whose scheduling direction is the same as the current movement direction is a task request to be executed.
  • Step S430 Obtain the first target floor and the current floor of the elevator.
  • Step S440 For the task request to be executed, it is determined whether the difference between the current floor and the starting floor of the task request to be executed is greater than or equal to a preset value; if yes, execute step S450; if not, execute step S430 .
  • Steps S410 to S440 can refer to the corresponding parts of the foregoing embodiment, and details are not described herein again.
  • Step S450 Determine the second task request according to the starting floor of the task request to be executed, the target floor of the task request to be executed, the first target floor, and the corresponding door opening direction.
  • the second task request may be determined according to the starting floor of the task request to be executed, the target floor of the task request to be executed, the first target floor, and the corresponding door opening direction. Specifically, since the door opening direction of the elevator on different floors may be different, the electronic device may pre-store the corresponding relationship between each floor and the door opening direction.
  • the corresponding relationship can be searched to determine the starting floor and the door opening direction of the target floor in the task request to be executed. In the same way, the corresponding relationship can be searched to determine the door opening direction of the first target floor.
  • a task request to be executed is selected as the first target floor. The second task is required.
  • the first target floor is 7, the door opening direction of the elevator on the 7th floor is the left side, the starting floor in the task request to be executed is 3, the target floor is 8, and the elevator is on the 3rd and 8th floors.
  • the direction of opening the door is to the right. It indicates that the first robot wants to leave the elevator from the left, and the second robot goes up and down the elevator from the right, and then the two robots will not need to avoid the situation. Therefore, in the task request to be executed that meets the aforementioned conditions, the door opening of the starting floor and the target floor are the same, and different from the first target floor, can be used as the second task request, and one of them can be selected as the second task request That's it.
  • the door opening directions of the starting floor and the target floor in the task request to be executed are different, and the door opening directions of the target floor and the first target floor in the task request to be executed are different same. It shows that the first robot and the second robot need to leave the elevator on the same side, and the second robot enters the elevator from the other side.
  • the elevator opens the left door on the starting floor, and opens the right door on the target floor and the first target floor. Then, after the first robot enters the elevator, it needs to stop on the right side of the elevator, so that the second robot can enter the elevator from the left and stop on the left side of the elevator. At this time, there are already two robots in the elevator. Because the two robots leave the elevator from the right side, and the first robot stops on the right side of the elevator at this time, the first robot needs to leave first After the elevator, the second robot can leave the elevator from the right side. Then the elevator needs to reach the first target floor first, and then reach the target floor, in order to avoid avoidance between robots.
  • Step S460 Control the parking of the elevator according to the first target floor, the second starting floor, and the second target floor.
  • step S460 reference may be made to the corresponding part of the foregoing embodiment, and details are not described herein again.
  • the elevator scheduling method when the first task request is executed, the elevator is controlled to move from the first starting floor to the first target floor according to the first task request; when the elevator is controlled to move to the first target floor
  • the first target floor and the current floor of the elevator are obtained, the task request to be executed is determined, and the current Whether the difference between the floor and the starting floor of the task request to be executed is greater than or equal to the preset value, if so, according to the starting floor of the task request to be executed, the target floor of the task request to be executed, and the first target floor And the corresponding door opening direction determines the second task; and then controls the parking of the elevator according to the first target floor, the second starting floor, and the second target floor.
  • FIG. 6 another embodiment of the present application provides an elevator scheduling method.
  • this embodiment focuses on the process before executing the first task request.
  • the method may include:
  • Step S510 Store the received task request in a request list, and determine the first task request from the request list.
  • the electronic device can receive multiple task requests, and upon receiving the task request, the task request can be stored in a pre-established request list.
  • the elevator can be parked on a preset floor in advance, where the preset floor can be set according to needs. For example, the elevator transports robots during construction, and the preset floor can be parked on the floor with the largest workload, indoors. When the robot is transported vertically, it can be parked on the first floor, which is not specifically limited here.
  • the electronic device When the electronic device receives the first task request, it can store the first task request in the request list. At this time, it can obtain the starting floor and the target floor in the received task request. If the starting floor is different from the preset floor, the elevator needs to be controlled to move from the elevator from the preset floor to the starting floor; during the movement, the request list is traversed to It is determined that the task request for which the scheduling direction is the same as the current direction and the difference between the starting floor and the current floor is greater than or equal to the preset value is the first task request.
  • the request list can be traversed, and the first task request can be determined according to the condition. If there is no first task request meeting the condition in the request list, Then, you can move to the starting floor, and use the received task request as the first task request.
  • the electronic device may receive other task requests, and the received task requests can be stored in the request list.
  • the task request in the request list needs to meet the same direction as the dispatching direction and the moving direction of the elevator, and the difference between the starting floor and the current floor of the elevator is greater than or equal to the preset value . If there is a task request that meets the condition in the request list, it can be determined that the task request is the first task request, and if there is no task request that meets the conditions, it can be determined that the received task request is the first task request.
  • the preset floor is the first floor
  • the starting floor in the received task request F is the 6th floor
  • the elevator needs to run upwards from the 1st floor to the 6th floor.
  • the request list has the start of the task request G If the floor is 5, the target floor is 3, and the task request G is opposite to the current movement direction of the elevator, it can be determined that the task request F is the first task request. Thereby improving the efficiency of the elevator transportation robot.
  • Step S520 While the first task request is being executed, the first task request is removed from the request list, and the first task request is added to the execution list.
  • the first task request can be executed, and the electronic device can create an execution list in advance. While executing the first task request, the task request can be selected from the request list. Remove and add the first task request to the execution list. After the first task request is executed, the first task request may be removed from the execution list.
  • step S530 when the first task request is executed, according to the first task request, the elevator is controlled to move from the first starting floor to the first target floor.
  • Step S540 in the process of moving to the first target floor, obtain a second task request according to the first target floor from among the task requests in which the dispatching direction of the elevator is the same as the current moving direction.
  • Step S550 controlling the stopping of the elevator according to the first target floor, the second starting floor, and the second target floor.
  • step S530 to step S550 refer to the corresponding part of the foregoing embodiment, which will not be repeated here.
  • the scheduling directions of the first task request and the second task request are the same, and the starting floors are different. If at this time there are two task requests in the request list with the same starting floor, and when the elevator moves to the starting floor, it needs to execute two task requests at the same time, then the first task request and the second task are determined at the same time ask.
  • the target floors corresponding to the two task requests can be obtained, and the task request corresponding to the target floor reached after determination is the first task request, that is, the target floor of the task request.
  • the robot needs to enter the elevator first.
  • the starting floor of task request A is 2, the target floor is 7, the starting floor of task request B is 2, and the target floor is 5.
  • the target floor is 5.
  • the task request that the door opening direction of the target floor is different from the door opening direction of the starting direction is determined It is the first task request; if the door opening direction of the target floor in the two task requests is the same and is different from the door opening direction of the starting floor, the task request corresponding to the target floor that arrives first is determined as the first task request.
  • the starting floor of task request A is 2, the target floor is 7, the starting floor of task request B is 2, and the target floor is 5, the door opening direction of the elevator on the second floor is the left side, and the door opening direction of the elevator on the second floor is the left side.
  • the door opening direction is the left side, and the door opening direction on the 5th floor is the right side, it can be determined that the task request A is the first task request, and the task request B is the second task request.
  • the door opening direction of the elevator on the 2nd floor is the left side
  • the door opening direction on the 7th floor is the right side
  • the door opening direction on the 5th floor is the right side
  • the request list is used to store received task requests, and the execution list is used to store task requests that are being executed.
  • the second task request can be removed from the request list, and the second task request can be added to the execution list.
  • the length of the execution list can be the same as the maximum number of robots that can be carried in the elevator. For example, if the maximum number of robots that can be carried in the elevator is 2, then the execution list can store at most two
  • the task request being executed specifically, the length of the execution list and the maximum number of robots that can be carried in the elevator can be set as required, and there is no limitation here.
  • step 540 and step S550 are cyclically executed to determine a new second task request until the request list and execution list are empty, and the elevator is controlled to stop at a preset floor.
  • the received task request is stored in a request list, and the first task request is determined from the request list; while the first task request is executed, the The first task request is removed from the request list, and the first task request is added to the execution list; when the first task request is executed, the elevator is controlled from the first starting floor to the first task request according to the first task request.
  • the first target floor moves; in the process of moving to the first target floor, the second task request is obtained according to the first target floor from among the task requests in which the dispatching direction of the elevator is the same as the current moving direction; according to the The first target floor, the second starting floor, and the second target floor control the stopping of the elevator.
  • the first task request is determined from the request list to improve the efficiency of the elevator transportation robot.
  • FIG. 7 shows an elevator scheduling device 600 provided by an embodiment of the present application.
  • the elevator scheduling device 600 includes a first execution module 610, an acquisition module 620, and a second execution module 630.
  • the first execution module 610 is configured to control the movement of the elevator from the first starting floor to the first target floor according to the first task request when the first task request is executed, and the first task request includes The first starting floor and the first target floor;
  • the acquisition module 620 is used to obtain task requests in which the dispatching direction of the elevator is the same as the current moving direction in the process of moving to the first target floor, Acquire a second task request according to the first target floor, the second task request includes a second starting floor and a second target floor;
  • the second execution module 630 is used to obtain a second task request according to the first target floor, The second starting floor and the second target floor control the stopping of the elevator.
  • the received task request is stored in the request list, and the acquisition module 620 is further configured to traverse the request list during the movement to the first target floor, and determine the task whose scheduling direction is the same as the current movement direction
  • the request is a task request to be executed; according to the first target floor, a task request meeting a preset condition among the task requests to be executed is used as the second task request.
  • the acquisition module 620 is also used to acquire the first target floor and the current floor of the elevator; for the task request to be executed, determine Whether the difference between the current floor and the starting floor of the task request is greater than or equal to the preset value; if so, it is determined whether the target floor of the task request arrives before or at the same time as the first target floor; if so, it is determined The task request is the second task request.
  • the acquisition module 620 is also used to acquire the first target floor and the current floor of the elevator; for the task request to be executed, determine Whether the difference between the current floor and the starting floor of the task request is greater than or equal to the preset value; if so, the first floor is determined according to the starting floor, the target floor, the first target floor and the corresponding door opening direction of the task request 2. Task request.
  • the acquiring module 620 is further configured to select a task request as the second task if the door opening direction of the starting floor and the target floor are the same and different from the door opening direction of the first target floor Request; if the door opening directions of the starting floor and the target floor are different, and the door opening directions of the target floor and the first target floor are the same, it is determined that arriving at the target floor is equal to or equal to reaching the first target floor
  • the task request of is the second task request.
  • the first execution module 610 is further configured to store the received task request in a request list, and determine the first task request from the request list; the execution At the same time as the first task request, the first task request is removed from the request list, and the first task request is added to the execution list.
  • the first execution module 610 is also used to control the movement of the elevator from a preset floor to the starting floor in the received task request; during the movement, the request list is traversed to It is determined that the task request for which the scheduling direction is the same as the current movement direction and the difference between the starting floor and the current floor is greater than or equal to the preset value is the first task request.
  • the acquisition module 620 is also used to determine whether the elevator is in a fully loaded state during the movement to the first target floor; if not, execute the dispatching direction of the elevator from the same direction as the current movement direction. In the task request, the step of obtaining the second task request according to the first target floor.
  • the elevator scheduling method controls the movement of the elevator from the first starting floor to the first target floor according to the first task request when executing the first task request;
  • the second task request is obtained according to the first target floor from the task requests whose dispatching direction of the elevator is the same as the current moving direction; according to the first target floor, the second starting floor, and
  • the second target floor controls the stopping of the elevator.
  • the coupling or direct coupling or communication connection between the displayed or discussed modules may be through some interfaces, and the indirect coupling or communication connection between the devices or modules may be electrical, Mechanical or other forms.
  • the functional modules in the various embodiments of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules.
  • the electronic device 700 may be an electronic device capable of running application programs, such as a smart phone or a tablet computer, or a server.
  • the electronic device 700 in this application may include one or more of the following components: a processor 710, a memory 720, and one or more application programs, where one or more application programs may be stored in the memory 720 and configured to be configured by One or more processors 710 execute, and one or more programs are configured to execute the methods described in the foregoing method embodiments.
  • the processor 710 may include one or more processing cores.
  • the processor 710 uses various interfaces and lines to connect various parts of the entire electronic device 700, and executes by running or executing instructions, programs, code sets, or instruction sets stored in the memory 720, and calling data stored in the memory 720.
  • the processor 710 may use at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA) Realize in the form of hardware.
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PDA Programmable Logic Array
  • the processor 710 may be integrated with one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like.
  • the CPU mainly processes the operating system, user interface, and application programs; the GPU is used for rendering and drawing of display content; the modem is used for processing wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 710, but may be implemented by a communication chip alone.
  • the memory 720 may include random access memory (RAM) or read-only memory (Read-Only Memory).
  • the memory 720 may be used to store instructions, programs, codes, code sets or instruction sets.
  • the memory 720 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing the operating system and instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.) , Instructions used to implement the following various method embodiments, etc.
  • the storage data area can also store data created by the electronic device 700 during use (such as phone book, audio and video data, chat record data) and the like.
  • FIG. 9 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • the computer-readable storage medium 800 stores program code, and the program code can be invoked by a processor to execute the method described in the foregoing method embodiment.
  • the computer-readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium.
  • the computer-readable storage medium 800 has storage space for the program code 810 for executing any method steps in the above-mentioned methods. These program codes can be read from or written into one or more computer program products.
  • the program code 810 may be compressed in a suitable form, for example.

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Mechanical Engineering (AREA)
  • Elevator Control (AREA)

Abstract

An elevator scheduling method and apparatus, and an electronic device and a storage medium. The method comprises: when executing a first task request, controlling, according to the first task request, an elevator to move from a first starting floor to a first target floor, the first task request comprising the first starting floor and the first target floor; in a process of moving to the first target floor, obtaining, according to the first target floor and door opening directions of the elevator in different floors, a second task request from task requests in which a scheduling direction of the elevator is the same as the current movement direction, the second task request comprising a second starting floor and a second target floor; and controlling the stopping of the elevator according to the first target floor, the second starting floor, and the second target floor. When the elevator executes the first task request, the space in the elevator is sufficiently used, and the second task request that can be simultaneously executed is searched, so as to improve transport efficiency of the elevator to the greatest extent.

Description

升降梯调度方法、装置、电子设备及存储介质Lift dispatching method, device, electronic equipment and storage medium
专利申请文件的交叉引用Cross-reference of patent application documents
本申请要求于2020年3月19日提交的申请号为202010194475.4的中国申请的优先权,其在此出于所有目的通过引用将其全部内容并入本文。This application claims the priority of the Chinese application with the application number 202010194475.4 filed on March 19, 2020, which is hereby incorporated by reference in its entirety for all purposes.
技术领域Technical field
本申请涉及计算机技术领域,更具体地,涉及一种升降梯调度方法、装置、电子设备及存储介质。This application relates to the field of computer technology, and more specifically, to an elevator scheduling method, device, electronic equipment, and storage medium.
背景技术Background technique
随着经济的发展和城市建设的进程不断加快,高层建筑不断增加,在高层建筑中,升降梯作为垂直运输工具,可以实现快速的到达高层建筑的各个楼层。随着人工智能和机器人的发展,升降梯除了运输人和货物之外,还可以运输各种机器人,例如建筑施工机器人,送货机器人等。With economic development and the continuous acceleration of urban construction, high-rise buildings continue to increase. In high-rise buildings, elevators, as a vertical transportation tool, can quickly reach all floors of high-rise buildings. With the development of artificial intelligence and robots, in addition to transporting people and goods, elevators can also transport various robots, such as construction robots and delivery robots.
发明内容Summary of the invention
本申请提出了一种升降梯调度方法、装置、电子设备及存储介质,以改善上述问题。This application proposes an elevator dispatching method, device, electronic equipment and storage medium to improve the above-mentioned problems.
第一方面,本申请实施例提供了一种升降梯调度方法,该方法包括:在执行第一任务请求时,根据所述第一任务请求,控制所述升降梯从第一起始楼层向第一目标楼层运动,所述第一任务请求包括所述第一起始楼层以及所述第一目标楼层;在向所述第一目标楼层运动过程中,从升降梯的调度方向与当前运动方向相同的任务请求中,根据所述第一目标楼层获取第二任务请求,所述第二任务请求包括第二起始楼层以及第二目标楼层;根据所述第一目标楼层、所述第二起始楼层以及所述第二目标楼层控制所述升降梯的停靠。In a first aspect, an embodiment of the present application provides an elevator scheduling method. The method includes: when a first task request is executed, according to the first task request, controlling the elevator from the first starting floor to the first Target floor movement, the first task request includes the first starting floor and the first target floor; in the process of moving to the first target floor, the task from the elevator dispatching direction is the same as the current moving direction In the request, a second task request is obtained according to the first target floor, and the second task request includes a second starting floor and a second target floor; according to the first target floor, the second starting floor, and The second target floor controls the stopping of the elevator.
第二方面,本申请实施例提供了一种升降梯调度装置,该装置包括:在执行第一任务请求时,根据所述第一任务请求,控制所述升降梯从第一起始楼层向第一目标楼层运动,所述第一任务请求包括所述第一起始楼层以及所述第一目标楼层;在向所述第一目标楼层运动过程中,从升降梯的调度方向与当前运动方向相同的任务请求中,根据所述第一目标楼层获取第二任务请求,所述第二任务请求包括第二起始楼层以及第二目标楼层;根据所述第一目标楼层、所述第二起始楼层以及所述第二目标楼层控制所述升降梯的停靠。In a second aspect, an embodiment of the present application provides an elevator scheduling device, which includes: when executing a first task request, according to the first task request, controlling the elevator from the first starting floor to the first Target floor movement, the first task request includes the first starting floor and the first target floor; in the process of moving to the first target floor, the task from the elevator dispatching direction is the same as the current moving direction In the request, a second task request is obtained according to the first target floor, and the second task request includes a second starting floor and a second target floor; according to the first target floor, the second starting floor, and The second target floor controls the stopping of the elevator.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括一个或多个处理器;存储器;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行如上述应用于电子设备的方法。In a third aspect, an embodiment of the present application provides an electronic device that includes one or more processors; a memory; one or more application programs, wherein the one or more application programs are stored in the memory And configured to be executed by the one or more processors, and the one or more programs are configured to execute the method applied to the electronic device as described above.
第四方面,本申请实施列提供一种计算机可读存储介质,所述计算机可读存储介质中存储有程序代码,其中,在所述程序代码运行时执行上述的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium in which a program code is stored, wherein the above-mentioned method is executed when the program code is running.
本申请的这些方面或其他方面在以下实施例的描述中会更加简明易懂。These and other aspects of the application will be more concise and understandable in the description of the following embodiments.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
图1示出了本申请一个实施例提供的升降梯调度方法的流程图。Fig. 1 shows a flowchart of an elevator dispatching method provided by an embodiment of the present application.
图2示出了本申请另一个实施例提供的升降梯调度方法的流程图。Fig. 2 shows a flowchart of an elevator dispatching method provided by another embodiment of the present application.
图3示出了本申请又一个实施例提供的升降梯调度方法的流程图。Fig. 3 shows a flowchart of an elevator dispatching method provided by another embodiment of the present application.
图4示出了本申请一个实施例提供的升降梯内机器人点位的示意图。Fig. 4 shows a schematic diagram of a robot point in an elevator provided by an embodiment of the present application.
图5示出了本申请再一个实施例提供的升降梯调度方法的流程图。Fig. 5 shows a flowchart of an elevator dispatching method provided by still another embodiment of the present application.
图6示出了本申请还一个实施例提供的升降梯调度方法的流程图。Fig. 6 shows a flow chart of an elevator dispatching method provided by still another embodiment of the present application.
图7示出了本申请一个实施例提供的升降梯调度装置的功能模块图。Fig. 7 shows a functional block diagram of an elevator dispatching device provided by an embodiment of the present application.
图8示出了本申请实施例提出的用于执行根据本申请实施例的升降梯调度方法的电子设备的结构框图。Fig. 8 shows a structural block diagram of an electronic device proposed by an embodiment of the present application for executing the elevator scheduling method according to the embodiment of the present application.
图9示出了本申请实施例提供的用于保存或者携带实现根据本申请实施例的升降梯调度方法的程序代码的存储介质。Fig. 9 shows a storage medium provided by an embodiment of the present application for storing or carrying program code for implementing the elevator scheduling method according to the embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application.
升降梯,是用于在垂直方向上运输物体或人的装置,其中,升降梯可以是建筑施工升降梯,也可以是载人电梯,货梯等。目前,存在一些电梯算法,例如LOOK算法,其适用的升降梯的承载对象主要是人。而在建筑施工升降梯中,需要承载机器人来辅助建筑施工。An elevator is a device used to transport objects or people in a vertical direction. The elevator can be a construction elevator, a passenger elevator, a freight elevator, etc. At present, there are some elevator algorithms, such as the LOOK algorithm, and the applicable elevators are mainly people. In building construction elevators, robots need to be carried to assist building construction.
由于机器人实际尺寸较大,且运动不够灵活,若一个升降梯需要承载两个机器人时,则容易出现机器人之间的碰撞冲突。因此,在通过升降梯运输机器人时,只允许一个升降梯承载一个机器人。然而,采用这种方法,机器人的运输效率低下,影响整个建筑施工的进度。Since the actual size of the robot is large and the movement is not flexible enough, if an elevator needs to carry two robots, collisions between robots are prone to occur. Therefore, when transporting the robot by elevator, only one elevator is allowed to carry one robot. However, with this method, the transportation efficiency of the robot is low, which affects the progress of the entire building construction.
发明人在研究中发现,升降梯的调度算法主要有先来先服务算法,最短寻找楼层时间优先算法以及LOOK算法。若使用先来先服务算法在载荷较大时,性能会严重下降,效率极低,若使用最短寻找楼层时间有限算法,可能出现先达到的任务请求因为位置关系长时间得不到响应;若使用LOOK算法,承载一个以上的机器人时,机器人之间的相互避让需要耗费大量的时间,效率低下。The inventor found in the research that the elevator scheduling algorithms mainly include the first-come, first-served algorithm, the shortest floor-finding time priority algorithm, and the LOOK algorithm. If the first-come, first-served algorithm is used when the load is large, the performance will be severely degraded and the efficiency is extremely low. If the algorithm is used for the shortest floor search with limited time, the first-arrival task request may not be responded to for a long time due to the location relationship; if it is used The LOOK algorithm, when carrying more than one robot, avoiding each other between robots takes a lot of time and is inefficient.
因此,发明人提出了本申请的升降梯调度算法,在执行第一任务请求时,根据第一任务请求,控制升降梯从第一起始楼层向第一目标楼层运动;在向所述第一目标楼层运动过程中,从升降梯的调度方向与当前运动方向相同的任务请求中,根据所述第一目标楼层获取第二任务请求;根据第一目标楼层、第二起始楼层以及第二目标楼层控制所述升降梯的停靠。在升降梯执行第一任务请求时,充分利用升降梯内的空间,寻找可同时执行的第二任务请求,从而最大限度的提升升降梯的运输效率。Therefore, the inventor proposed the elevator scheduling algorithm of the present application. When the first task request is executed, the elevator is controlled to move from the first starting floor to the first target floor according to the first task request; During the floor movement process, the second task request is obtained according to the first target floor from the task requests whose dispatching direction of the elevator is the same as the current moving direction; according to the first target floor, the second starting floor, and the second target floor Control the parking of the elevator. When the elevator performs the first task request, make full use of the space in the elevator to find the second task request that can be executed at the same time, so as to maximize the transportation efficiency of the elevator.
下面将对本申请实施例进行详细的说明。The embodiments of the present application will be described in detail below.
请参阅图1,本申请实施例提供了一种升降梯调度方法,可以应用于电子设备,所述电子设备包括智能设备以及服务器,具体的该方法可以包括:Referring to FIG. 1, an embodiment of the present application provides an elevator dispatching method, which can be applied to electronic equipment, and the electronic equipment includes a smart device and a server. Specifically, the method may include:
步骤S110,在执行第一任务请求时,根据第一任务请求,控制所述升降梯从第一起始楼层向第一目标楼层运动。In step S110, when the first task request is executed, according to the first task request, the elevator is controlled to move from the first starting floor to the first target floor.
升降梯可以在垂直方向上进行运动,以在垂直方向上进行运输。升降梯可以与电子设备连接,通常电子设备具备数据处理功能,从而可以控制升降梯在不同的楼层进行停靠。其中,所述升降梯的电子设备可以是集成在所述升降梯上的控制器,也可以是与升降梯通信连接的可以实现调度功能的智能设备,或是服务器等。The elevator can move in the vertical direction for transportation in the vertical direction. The elevator can be connected with electronic equipment, and usually the electronic equipment has a data processing function, so that the elevator can be controlled to stop at different floors. Wherein, the electronic equipment of the elevator may be a controller integrated on the elevator, or may be a smart device communicatively connected with the elevator that can realize a dispatch function, or a server.
其中,电子设备可以接收到任务请求,并根据任务请求控制所述升降梯的运动以及停靠。所述任务请求可以包括起始楼层以及目标楼层,表示升降梯需要在起始楼层停靠后,再运动到目标楼层进行停靠,以将机器人、人、或其他物品从起始楼层运输到目标楼层。在本申请实施例中,仅以升降梯运输机器人为例进行详细的解释,当然,升降梯也可以运输人或其他物品,在此不做具体限定。Wherein, the electronic device can receive the task request, and control the movement and parking of the elevator according to the task request. The task request may include a starting floor and a target floor, indicating that the elevator needs to stop at the starting floor and then move to the target floor to stop, so as to transport robots, people, or other objects from the starting floor to the target floor. In the embodiments of the present application, only an elevator transport robot is taken as an example for detailed explanation. Of course, the elevator can also transport people or other objects, which is not specifically limited here.
电子设备在接收到第一任务请求时,可以根据所述第一任务请求,控制所述升降梯的运动,其中,第一任务请求中可以包括第一起始楼层以及第一目标楼层,从而电子设备可以控制所述升降梯从所述第一起始楼层向所述第一目标楼层运动,以执行所述第一任务请求。其中,所述第一任务请求定义为所述升降梯正在执行的任务请求。When receiving the first task request, the electronic device can control the movement of the elevator according to the first task request, wherein the first task request can include the first starting floor and the first target floor, so that the electronic device The elevator can be controlled to move from the first starting floor to the first target floor to execute the first task request. Wherein, the first task request is defined as the task request being executed by the elevator.
在一些实施方式中,所述升降梯可以停靠在预设楼层,若所述预设楼层与所述第一起始楼层不一致,可以先控制所述升降梯从所述预设楼层向所述第一起始楼层运动,在控制所述升降梯停靠在所述第一起始楼层时,再根据所述第一任务请求,控制所述升降梯从所述第一起始楼层向所述第一目标楼层运动,以执行所述第一任务请求。In some embodiments, the elevator can stop at a preset floor. If the preset floor is inconsistent with the first starting floor, the elevator can be controlled to move from the preset floor to the first floor. Starting floor movement, when controlling the elevator to stop at the first starting floor, according to the first task request, controlling the movement of the elevator from the first starting floor to the first target floor, To execute the first task request.
例如,升降梯需要运输机器人,若所述第一起始楼层为2,第一目标楼层为7,预设楼层为1,即所述升降梯停靠在1楼,可以先控制所述升降梯从1楼运动到2楼以接取机器人,再控制升降梯从2楼运动到7楼,以执行所述第一任务请求。For example, an elevator needs to transport robots. If the first starting floor is 2, the first target floor is 7, and the preset floor is 1, that is, the elevator is parked on the first floor, and the elevator can be controlled from 1. The floor moves to the 2nd floor to pick up the robot, and then the elevator is controlled to move from the 2nd floor to the 7th floor to execute the first task request.
步骤S120,在向所述第一目标楼层运动过程中,从升降梯的调度方向与当前运动方向相同的任务请求中,根据所述第一目标楼层获取第二任务请求。Step S120, in the process of moving to the first target floor, obtain a second task request according to the first target floor from the task requests in which the dispatching direction of the elevator is the same as the current moving direction.
在控制所述升降梯向所述第一目标楼层运动的过程中,若升降梯不处于满载状态,为了提高升降梯运输机器人的效率,可以在该运动过程中,接取其他的机器人,以提升升降梯运输机器人的效率。每个机器人的需求可以认为是一个任务请求,从而,在向所述第一目标楼层运动过程中,可以从升降梯的调度方向与当前运动方向相同的任务请求中,根据所述第一目标楼层获取第二任务请求。若升降梯在向所述第一目标楼层运动的过程中,升降梯已经处于满载状态,则不能再接取其他机器人,直接运动到第一目标楼层,直到所述升降梯在向所述第一目标楼层运动的过程中,不处于满载状态时,执行步骤S120的步骤。In the process of controlling the movement of the elevator to the first target floor, if the elevator is not in a fully loaded state, in order to improve the efficiency of the elevator transportation robot, other robots can be taken during the movement to improve The efficiency of the elevator transportation robot. The demand of each robot can be considered as a task request. Therefore, in the process of moving to the first target floor, the dispatching direction of the elevator and the current moving direction of the task request can be determined according to the first target floor. Obtain the second task request. If the elevator is in a fully loaded state during the movement to the first target floor, it cannot take other robots and move directly to the first target floor until the elevator is moving towards the first target floor. When the target floor is not in a fully loaded state during the movement of the target floor, the step S120 is executed.
升降梯正在将一个机器人从所述第一起始楼层运动到所述第一目标楼层的过程中,由于机器人实际尺寸较大,且运动不够灵活,因此,为了不影响正在运输的机器人的上下,可以从升降梯的调度方向与当前运动方向相同的任务请求中,根据所述第一目标楼层获取第二任务请求。The elevator is in the process of moving a robot from the first starting floor to the first target floor. Since the actual size of the robot is large and the movement is not flexible enough, in order not to affect the up and down of the robot being transported, you can Obtain a second task request according to the first target floor from task requests in which the dispatching direction of the elevator is the same as the current movement direction.
其中所述升降梯的调度方向为执行其他任务请求时的运动方向,例如,第一任务请求运动方向为向上,此时有任务请求A的运动方向也为向上,若升降梯也要执行任务请求A,则升降梯调度方向为向上;若此时有任务请求B的运动方向为向下,升降梯若执行任务请求B,则升降梯的调度方向为向下。The scheduling direction of the elevator is the movement direction when other task requests are executed. For example, the movement direction of the first task request is upward, and the movement direction of task request A is also upward. If the elevator also executes the task request A, the elevator dispatch direction is upward; if there is a task request B, the movement direction is downward, and if the elevator executes the task request B, the elevator dispatch direction is downward.
电子设备可以接收到多个任务请求,在接收任务请求时,可以将接收到的任务请求存入请求列表,在控制所述升降梯向所述第一目标楼层运动的过程中,遍历所述请求列表,确定调度方向与当前运动方向相同的任务请求为待执行的任务请求,再跟据所述第一目标楼层将待执行的任务请求中满足预设条件的任务请求作为所述第二任务请求。The electronic device can receive multiple task requests. When receiving the task request, the received task request can be stored in the request list. In the process of controlling the movement of the elevator to the first target floor, the request is traversed. List, determine that the task request whose scheduling direction is the same as the current movement direction is the task request to be executed, and then according to the first target floor, the task request that meets the preset conditions among the task requests to be executed is used as the second task request .
步骤S130,根据所述第一目标楼层、所述第二起始楼层以及所述第二目标楼层控制所述升降梯的停靠。Step S130, controlling the stopping of the elevator according to the first target floor, the second starting floor, and the second target floor.
在获取到所述第二任务请求时,可以获取到所述第二任务请求中包括的第二起始楼层以及第二目标楼层。也就是说,升降梯在执行第一任务请求的同时,需要在第二起始楼层停靠,接取在第二起始楼层的机器人后,再分别运动到第一目标楼层,第二目标楼层,并分别在第一目标楼层以及第二目标楼层停靠,以同时运输多个机器人。When the second task request is obtained, the second starting floor and the second target floor included in the second task request can be obtained. That is to say, the elevator needs to stop at the second starting floor while performing the first task request, and after receiving the robot on the second starting floor, it will move to the first target floor and the second target floor respectively. And respectively stop at the first target floor and the second target floor to transport multiple robots at the same time.
可以理解的是,在所述升降梯同时执行所述第一任务请求以及第二任务请求时,其中,任意一个任务请求执行完毕后,所述升降梯可以将正在执行的任务请求作为所述第一任务请求,并按照步骤S120继续获取第二任务请求,直到接收到的任务请求全部执行完毕。若升降梯最多可搭乘两个机器人,在所述升降梯正在执行第一任务请求和第二任务请求时,则忽略所有的任务请求,直到有任务请求执行完毕。It is understandable that when the elevator executes the first task request and the second task request at the same time, after any one of the task requests is executed, the elevator may regard the task request being executed as the first task request. A task request, and continue to obtain the second task request according to step S120, until all the received task requests are executed. If the elevator can take up to two robots, when the elevator is performing the first task request and the second task request, all task requests are ignored until the task request is completed.
本申请提出的升降梯调度方法,在执行第一任务请求时,根据第一任务请求,控制升降梯从第一起始楼层向第一目标楼层运动;在控制所述升降梯向第一目标楼层运动的过程中,从升降梯的调度方向与当前运动方向相同的任务请求中,根据所述第一目标楼层获取第二任务请求;根据第一目标楼层、第二起始楼层以及第二目标楼层控制所述升降梯的停靠。在升降梯执行第一任务请求时,充分利用升降梯内的空间,寻找可同时执行的第二任务请求,从而最大限度的提升升降梯的运输效率。In the elevator scheduling method proposed in the present application, when the first task request is executed, the elevator is controlled to move from the first starting floor to the first target floor according to the first task request; when the elevator is controlled to move to the first target floor In the process, the second task request is obtained according to the first target floor from the task requests whose dispatching direction of the elevator is the same as the current direction of movement; according to the first target floor, the second starting floor, and the second target floor control The docking of the elevator. When the elevator performs the first task request, make full use of the space in the elevator to find the second task request that can be executed at the same time, so as to maximize the transportation efficiency of the elevator.
请参阅图2,本申请另一实施例提供了一种升降梯调度方法,在上一实施例的基础上重点描述了从升降梯的调度方向与当前运动方向相同的任务请求中,根据所述第一目标楼层获取第二任务请求的过程。具体的,该方法可以包括:Referring to Figure 2, another embodiment of the present application provides an elevator scheduling method. On the basis of the previous embodiment, it focuses on describing the task request from the elevator scheduling direction that is the same as the current movement direction. The process in which the first target floor obtains the second task request. Specifically, the method may include:
步骤S210,在执行第一任务请求时,根据所述第一任务请求,控制所述升降梯从第一起始楼层向第一目标楼层运动。In step S210, when the first task request is executed, according to the first task request, the elevator is controlled to move from the first starting floor to the first target floor.
步骤S210可参照前述实施例对应部分,在此不再赘述。For step S210, reference may be made to the corresponding part of the foregoing embodiment, which will not be repeated here.
步骤S220,在向所述第一目标楼层运动过程中,遍历请求列表,确定调度方向与当前运动方向相同的任务请求为待执行的任务请求。Step S220: In the process of moving to the first target floor, the request list is traversed, and a task request whose scheduling direction is the same as the current movement direction is determined as a task request to be executed.
其中,电子设备可以接收到多个任务请求,每个任务请求包括对应的起始楼层以及目标楼层。电子设备可以预先建立请求列表,用于存储接收到的任务请求。在控制所述升降梯向所述第一目标楼层运动的过程中,可以遍历所述请求列表,确定调度方向与当前运动方向相同的任务请求为待执行的任务请求。所述调度方向为根据所述任务请求中的起始楼层运动到目标楼层的方向。Among them, the electronic device may receive multiple task requests, and each task request includes a corresponding starting floor and a target floor. The electronic device may establish a request list in advance to store the received task request. In the process of controlling the movement of the elevator to the first target floor, the request list may be traversed to determine that a task request whose scheduling direction is the same as the current movement direction is a task request to be executed. The scheduling direction is the direction of moving to the target floor according to the starting floor in the task request.
若所述任务请求中的起始楼层大于所述目标楼层,表明升降梯需要从高楼层向低楼层运动,可以确定该任务请求的调度方向为向下;若所述任务请求中的起始楼层小于所述目标楼层,表明所述升降梯需要从低楼层向高楼层运动,可以确定该任务请求的调度方向为向上。If the starting floor in the task request is greater than the target floor, indicating that the elevator needs to move from a high floor to a low floor, it can be determined that the scheduling direction of the task request is downward; if the starting floor in the task request It is smaller than the target floor, indicating that the elevator needs to move from a low floor to a high floor, and it can be determined that the scheduling direction of the task request is upward.
例如,接收到的任务请求有任务请求A,任务请求B以及任务请求C,将这三个任务请求存入所述请求列表中,其中,所述任务请求A的起始楼层为2,目标楼层为5;所述任务请求B的起始楼层为3,目标楼层为6;任务请求C的起始楼层为9,目标楼层为2。由此,任务请求A的调度方向为向上,任务请求B的调度方向为向上,任务请求C的调度方向为向下。由此,可以从所述请求列表中确定调度方向与当前运动方向相同的任务请求为待执行的任务请求。For example, the received task request includes task request A, task request B, and task request C. These three task requests are stored in the request list, where the starting floor of the task request A is 2, and the target floor It is 5; the starting floor of the task request B is 3 and the target floor is 6; the starting floor of the task request C is 9, and the target floor is 2. Thus, the scheduling direction of task request A is upward, the scheduling direction of task request B is upward, and the scheduling direction of task request C is downward. Therefore, it can be determined from the request list that a task request whose scheduling direction is the same as the current movement direction is a task request to be executed.
在遍历请求列表,确定调度方向与当前运动方向相同的任务请求为待执行的任务请求之前,可以在向所述第一目标楼层运动的过程中判断所述升降梯是否处于满载状态;在所述升降梯不处于满载状态时,遍历请求列表,确定调度方向与当前运动方向相同的任务请求为待执行的任务请求;若所述升降梯处于满载状态,直接运动到所述第一目标楼层接送升降梯内的机器人,直到所述升降梯内存在机器人且不为满载状态时,确定待执行的任务请求。Before traversing the request list and determining that the task request whose scheduling direction is the same as the current movement direction is the task request to be executed, it can be determined whether the elevator is in a fully loaded state during the movement to the first target floor; When the elevator is not in a fully loaded state, traverse the request list, and determine that the task request whose scheduling direction is the same as the current movement direction is the task request to be executed; if the elevator is in a fully loaded state, move directly to the first target floor to pick up and drop off The robot in the elevator determines the task request to be executed until there is a robot in the elevator and it is not in a fully loaded state.
在一些实施方式中,判断所述升降梯是否处于满载状态可以预先建立执行列表,判断所述执行列表是否达到该执行列表的最大长度。具体的,可以是将接收到的任务请求存入请求列表,表明有机器人需要运输,在执行所述请求列表中的任务请求时,可以将正在执行的任务请求从所述请求列表中移除,并添加至所述执行列表。从而,在所述执行列表中的任务请求数量达到所述执行列表的最大长度时,判定所述升降梯处于满载状态。In some embodiments, to determine whether the elevator is in a fully loaded state, an execution list can be established in advance, and it is determined whether the execution list reaches the maximum length of the execution list. Specifically, it may be that the received task request is stored in the request list, indicating that there is a robot that needs to be transported, and when the task request in the request list is executed, the task request being executed can be removed from the request list, And added to the execution list. Therefore, when the number of task requests in the execution list reaches the maximum length of the execution list, it is determined that the elevator is in a fully loaded state.
在另一些实施方式中,判断所述升降梯是否处于满载状态可以是判断所述升降梯的状态标识是否为满载标识。具体的,升降梯内可以设置有多个点位,每个点位上可以承载一个机器人,在检测到所述升降梯内的点位上都有机器人时,可以生成一个满载标识,表明升降梯内不能搭载其余的机器人,此时升降梯的状态标识可以更新为满载标识。若检测到在所述升降梯内有剩余点位可以承载机器人时,可以生成未满载标识,此时,升降梯的状态标识可以更新为未满载标识。若检测到在所述升降梯内的所有点位均没有机器人时,可以生成空载标识,则所述升降梯的状态标识可以更新为空载标识。因此,在所述升降梯的状态标识为满载标识时,则可以认为所述升降梯处于满载状态。In other embodiments, judging whether the elevator is in a fully loaded state may be judging whether the status indicator of the elevator is a full-load indicator. Specifically, multiple points can be set in the elevator, and each point can carry a robot. When it is detected that there is a robot at the point in the elevator, a full load indicator can be generated to indicate the elevator The rest of the robots cannot be carried inside, and the status flag of the elevator can be updated to the full load flag at this time. If it is detected that there are remaining points in the elevator that can carry the robot, an under-load indicator can be generated. At this time, the status indicator of the elevator can be updated to an under-load indicator. If it is detected that there are no robots at all points in the elevator, an idling indicator can be generated, and the status indicator of the elevator can be updated to an idling indicator. Therefore, when the status indicator of the elevator is a full load indicator, it can be considered that the elevator is in a fully loaded state.
步骤S230,根据所述第一目标楼层将所述待执行的任务请求中满足预设条件的任务请求作为所述第二任务请求。In step S230, according to the first target floor, a task request that satisfies a preset condition among the to-be-executed task requests is used as the second task request.
在遍历所述请求列表,确定调度方向与当前运动方向相同的任务请求即待执行的任务请求后,可以根据第一目标楼层,从所述待执行的任务请求中进一步确定满足预设条件的任务请求,作为所述第二任务请求。After traversing the request list and determining the task request whose scheduling direction is the same as the current movement direction, that is, the task request to be executed, the task to be executed can be further determined from the task request to be executed according to the first target floor. Request as the second task request.
具体的,可以是依据所述第一目标楼层,确定待执行的任务请求中的起始楼层以及目标楼层与所述第一目标楼层的关系,进一步从所述待执行的任务请求中确定第二任务请求。Specifically, it may be based on the first target floor to determine the starting floor in the task request to be executed and the relationship between the target floor and the first target floor, and further determine the second target floor from the task request to be executed. Task request.
在一些实施方式中,升降梯在不同的楼层的开门方向相同,也就是说,升降梯在所有楼层的开门方向均为同侧,例如,在第一层停靠时开启左侧门,在第二层停靠时也开启左侧门。在另一些实施方式中,升降梯在不同的楼层的开门方向不同,也就是说,升降梯在不同的楼层的开门方向可能不同,例如,在第一层停靠时开启左侧门,在第二层停靠时开启右侧门。其中,升降梯的开门方向的不同,对应的预设条件不同,从而可以根据所述第一目标楼层确定满足对应的预设条件的任务请求为第二任务请求。In some embodiments, the door opening direction of the elevator on different floors is the same, that is, the door opening direction of the elevator on all floors is the same side. Open the door on the left when the floor is parked. In other embodiments, the elevator has different door opening directions on different floors, that is, the door opening directions of the elevator on different floors may be different. Open the door on the right when the floor is parked. Wherein, the door opening direction of the elevator is different, and the corresponding preset condition is different, so that the task request meeting the corresponding preset condition can be determined as the second task request according to the first target floor.
例如,所述升降梯可搭乘两个机器人,也就是说最多可以同时执行两个任务请求,即第一任务请求和第二任务请求,在其中一个任务请求执行完毕时,可以循环执行步骤S230,以确定下一个可 同时执行的第二任务请求。For example, the elevator can ride on two robots, that is to say, it can execute at most two task requests at the same time, that is, the first task request and the second task request. When one of the task requests is completed, step S230 can be executed cyclically. To determine the next second task request that can be executed at the same time.
步骤S240,根据所述第一目标楼层、所述第二起始楼层以及所述第二目标楼层控制所述升降梯的停靠。Step S240, controlling the stopping of the elevator according to the first target floor, the second starting floor, and the second target floor.
步骤S240可参照前述实施例对应部分,在此不再赘述。本申请提出的升降梯调度方法,在执行第一任务请求时,根据第一任务请求,控制升降梯从第一起始楼层向第一目标楼层运动;在控制所述升降梯向第一目标楼层运动的过程中,遍历所述请求列表,确定调度方向与当前运动方向相同的任务请求为待执行的任务请求;根据所述第一目标楼层将所述待执行的任务请求中满足预设条件的任务请求作为第二任务请求;根据第一目标楼层、第二起始楼层以及第二目标楼层控制所述升降梯的停靠。在升降梯执行第一任务请求时,充分利用升降梯内的空间,并考虑升降梯的不同开门方向,按照不同的预设条件寻找可同时执行的第二任务请求,从而满足在多种情况下可以最大限度的提升升降梯运输机器人的效率。For step S240, reference may be made to the corresponding part of the foregoing embodiment, and details are not described herein again. In the elevator scheduling method proposed in the present application, when the first task request is executed, the elevator is controlled to move from the first starting floor to the first target floor according to the first task request; when the elevator is controlled to move to the first target floor In the process of traversing the request list, it is determined that the task request whose scheduling direction is the same as the current direction of motion is the task request to be executed; according to the first target floor, the task request that meets the preset condition is selected from the task request to be executed The request is used as a second task request; the parking of the elevator is controlled according to the first target floor, the second starting floor, and the second target floor. When the elevator performs the first task request, make full use of the space inside the elevator, and consider the different door opening directions of the elevator, and search for the second task request that can be executed at the same time according to different preset conditions, so as to meet the requirements in various situations It can maximize the efficiency of the elevator transportation robot.
请参阅图3,本申请又一实施例提供了一种升降梯调度方法,在上一实施例的基础上重点描述了升降梯在不同楼层的开门方向相同的条件下,获取第二任务请求的过程。具体的,该方法可以包括:Referring to Figure 3, another embodiment of the present application provides an elevator scheduling method. On the basis of the previous embodiment, it focuses on describing that the elevator obtains the request of the second task under the condition that the door opening direction of different floors is the same. process. Specifically, the method may include:
步骤S310:在执行第一任务请求时,根据所述第一任务请求,控制所述升降梯从第一起始楼层向第一目标楼层运动。Step S310: When the first task request is executed, according to the first task request, the elevator is controlled to move from the first starting floor to the first target floor.
步骤S320:在向所述第一目标楼层运动过程中,遍历所述请求列表,确定调度方向与当前运动方向相同的任务请求为待执行的任务请求。Step S320: In the process of moving to the first target floor, traverse the request list, and determine that a task request whose scheduling direction is the same as the current movement direction is a task request to be executed.
步骤S310至步骤S320可参照前述实施例对应部分,在此不再赘述。For step S310 to step S320, reference may be made to the corresponding part of the foregoing embodiment, which will not be repeated here.
步骤S330:获取所述第一目标楼层以及所述升降梯的当前楼层。Step S330: Obtain the first target floor and the current floor of the elevator.
由于所述升降梯正从第一任务请求的第一起始楼层运动到第一目标楼层,因此,所述升降梯正朝向所述第一目标楼层运动,从而可以获取到所述第一目标楼层,以及所述升降梯当前所在的楼层,以供后续使用。Since the elevator is moving from the first starting floor to the first target floor requested by the first task, the elevator is moving toward the first target floor, so that the first target floor can be acquired, And the floor where the elevator is currently located for subsequent use.
步骤S340:对于待执行的任务请求,判断所述当前楼层与所述待执行的任务请求的起始楼层的差值是否大于或等于预设值;若是,执行步骤S350;若否,执行步骤S330。Step S340: For the task request to be executed, determine whether the difference between the current floor and the starting floor of the task request to be executed is greater than or equal to a preset value; if yes, go to step S350; if not, go to step S330 .
其中,所述待执行的任务请求的调度方向为与所述升降梯的运动方向相同。由于升降梯在运动过程中具有惯性,需要预先减速到停止,例如,升降梯的当前楼层为4楼,待执行的任务请求中有一个起始楼层也为4楼的任务请求,此时,所述升降梯没有预先减速到停止,不能马上在4楼停止。为了升降梯有足够的时间进行减速,可以判断升降梯的当前楼层与待执行的任务请求的起始楼层的差值是否大于或等于预设值。Wherein, the scheduling direction of the task request to be executed is the same as the moving direction of the elevator. Because the elevator has inertia during movement, it needs to be decelerated to a stop in advance. For example, the current floor of the elevator is the 4th floor, and one of the task requests to be executed has a starting floor that is also a task request for the 4th floor. The elevator is not decelerated to a stop in advance and cannot be stopped immediately on the 4th floor. In order to have enough time for the elevator to decelerate, it can be determined whether the difference between the current floor of the elevator and the starting floor of the task request to be executed is greater than or equal to the preset value.
例如,升降梯的当前楼层为4,有待执行的任务请求D的起始楼层为5,有待执行的任务请求E的起始楼层为6,预设值为2。对于任务请求D,当前楼层与其起始楼层的差值为1;对于任务请求E,当前楼层与其起始楼层的差值为2,那么升降梯有足够的时间进行减速停在6楼。其中,所述预设值,可以根据升降梯实际减速情况进行设置,在此不做具体限定。For example, the current floor of the elevator is 4, the starting floor of the task request D to be executed is 5, the starting floor of the task request E to be executed is 6, and the preset value is 2. For task request D, the difference between the current floor and its starting floor is 1; for task request E, the difference between the current floor and its starting floor is 2, so the elevator has enough time to decelerate and stop on the 6th floor. Wherein, the preset value can be set according to the actual deceleration situation of the elevator, which is not specifically limited here.
所述当前楼层与所述待执行的任务请求的起始楼层的差值大于或等于预设值,表明可以在所述待执行的任务请求的起始楼层停靠,可以继续执行步骤S350;若所述当前楼层与所述待执行的任务请求的起始楼层的差值小于所述预设值,表明升降梯没有足够的时间减速停止在所述待执行的任务请求的起始楼层,可以执行步骤S330。The difference between the current floor and the starting floor of the to-be-executed task request is greater than or equal to the preset value, indicating that it is possible to stop at the starting floor of the to-be-executed task request, and step S350 can be continued; if all The difference between the current floor and the starting floor of the to-be-executed task request is less than the preset value, indicating that the elevator does not have enough time to decelerate and stop at the starting floor of the to-be-executed task request, and the steps can be executed S330.
步骤S350:判断到达所述待执行的任务请求的目标楼层是否先于或同时到达所述第一目标楼层;若是,执行步骤S360;若否,执行步骤S330。Step S350: Determine whether the target floor of the task request to be executed arrives at the first target floor earlier or at the same time; if yes, execute step S360; if not, execute step S330.
由于所述升降梯运输机器人,假设所述升降梯最多搭乘两个机器人,考虑到机器人的运动不灵活,可以在当前楼层与所述待执行的任务请求的起始楼层的差值大于或等于预设值时,继续判断所述待执行的任务请求的目标楼层是否先于或同时达到所述第一目标楼层。Due to the elevator transportation robot, it is assumed that the elevator can take two robots at most. Considering the inflexible movement of the robots, the difference between the current floor and the starting floor requested by the task to be executed can be greater than or equal to the expected value. When setting the value, continue to determine whether the target floor requested by the task to be executed reaches the first target floor earlier or at the same time.
例如,升降梯内最多搭乘两个机器人,此时升降梯内已经有了一个机器人,假设所述升降梯的运动方向向上,所述第一任务请求中的第一起始楼层为2,第一目标楼层为7,若此时有一个待执行的任务请求的起始楼层为4,目标楼层为6。升降梯向上运动,则先到达6楼,再到达7楼,该 待执行的任务请求满足该条件。For example, there are at most two robots in the elevator, and there is already one robot in the elevator. Assuming that the moving direction of the elevator is upward, the first starting floor in the first task request is 2, and the first target The floor is 7. If there is a task to be executed, the starting floor is 4 and the target floor is 6. When the elevator moves upwards, it will first reach the 6th floor and then reach the 7th floor. The task to be performed requests to meet this condition.
由于升降梯的开门方向为同侧,为了避免机器人之间的相互避让浪费更多的时间,因此,若第一机器人进入升降梯后,移动到非开门侧的位置,那么另一个机器人搭乘升降梯则需要比第一个机器人先出升降梯,从而,才可以避免两个机器人之间的相互避让。那么,第一任务请求为从2楼到7楼,另一个任务请求为从4楼到6楼,则可以避免机器人之间的相互避让,实现机器人的高效率运输。Since the door opening direction of the elevator is on the same side, in order to avoid the robots avoiding each other and wasting more time, if the first robot enters the elevator and moves to the side where the door is not open, then the other robot will take the elevator It is necessary to get out of the elevator before the first robot, so that mutual avoidance between the two robots can be avoided. Then, if the first task request is from the 2nd floor to the 7th floor, and the other task request is from the 4th floor to the 6th floor, the mutual avoidance between robots can be avoided, and the efficient transportation of robots can be realized.
当然,若第一目标楼层与待执行的任务请求的目标楼层相同,升降梯内的两个机器人可以依次走出升降梯,也不会出现避让的情况。若判定到达所述待执行的任务请求的目标楼层先于或同时到达所述第一目标楼层时,表明升降梯可以在该待执行的任务请求的起始楼层停靠,接取第二个机器人,则可以执行步骤S360;若判定到达所述待执行的任务请求的目标楼层晚于到达所述第一目标楼层时,表明升降梯接取第二个机器人会和升降梯内的第一个机器人之间出现避让情况,不能接取该机器人,从而可以执行步骤S330。Of course, if the first target floor is the same as the target floor requested by the task to be executed, the two robots in the elevator can step out of the elevator one by one without avoiding the situation. If it is determined that the target floor of the task request to be executed arrives before or at the same time as the first target floor, it indicates that the elevator can stop at the starting floor of the task request to be executed and pick up the second robot, Then step S360 can be performed; if it is determined that the target floor of the task request to be executed is later than the first target floor, it indicates that the elevator will pick up the second robot and the first robot in the elevator. An avoidance situation occurs occasionally, and the robot cannot be accessed, so step S330 can be executed.
步骤S360:确定所述待执行的任务请求为所述第二任务请求。Step S360: Determine that the task request to be executed is the second task request.
步骤S370:根据所述第一目标楼层、所述第二起始楼层以及所述第二目标楼层控制所述升降梯的停靠。Step S370: Control the parking of the elevator according to the first target floor, the second starting floor, and the second target floor.
若判定到达所述待执行的任务请求的目标楼层先于或同时到达所述第一目标楼层时,表明升降梯可以在所述待执行的任务请求的起始楼层停靠,接取第二个机器人,可以确定该待执行的任务请求为第二任务请求,从而可以控制所述升降梯先在所述第二起始楼层停靠,接取第二个机器人,再依次停靠在第二目标楼层,第一目标楼层,以实现机器人的高效率运输。If it is determined to arrive at the target floor of the task request to be executed before or at the same time as the first target floor, it indicates that the elevator can stop at the starting floor of the task request to be executed and pick up the second robot , It can be determined that the task request to be executed is the second task request, so that the elevator can be controlled to stop at the second starting floor, pick up the second robot, and then stop at the second target floor in turn. A target floor to realize the high-efficiency transportation of the robot.
若所述升降梯在第二目标楼层停靠之后,可以循环执行步骤S330至步骤S360,继续寻找可以同时执行的任务请求,在满足上述条件的情况下,继续接取其他机器人。If the elevator stops at the second target floor, step S330 to step S360 can be executed cyclically to continue searching for task requests that can be executed at the same time, and if the above conditions are met, continue to pick up other robots.
作为一种实施方式,可以遍历请求列表,确定在当前运动方向上是否存在调度方向相同的任务请求,若存在,则执行调度方向与运动方向相同的任务请求;若在当前运动方向上不存在调度方向相同的任务请求,可以转换运动方向,循环执行上述步骤,以执行其他的任务请求。As an implementation manner, the request list can be traversed to determine whether there is a task request with the same scheduling direction in the current direction of motion. If there is, the task request with the same scheduling direction and the direction of motion is executed; if there is no scheduling in the current direction of motion For task requests with the same direction, the direction of motion can be switched, and the above steps can be executed in a loop to execute other task requests.
例如,当前运动方向为向上,此时所述请求列表中仅存在调度方向为向下的任务请求,此时,可以控制所述升降梯转向,将运动方向变为向下,以执行调度方向为向下的任务请求。For example, if the current movement direction is upward, there are only task requests whose scheduling direction is downward in the request list. At this time, the elevator can be controlled to turn to change the movement direction to downward to execute the scheduling direction as Downward task request.
作为另一种实施方式,在所述升降梯到达顶层或首层时,若确定当前运动方向上不存在调度方向相同的任务请求,则控制升降梯转向执行调度方向相反的任务请求;若确定当前运动方向上存在调度方向相同的任务请求,则控制升降梯转向执行调度方向相同的任务请求。As another implementation manner, when the elevator reaches the top floor or the first floor, if it is determined that there is no task request with the same scheduling direction in the current movement direction, the elevator is controlled to perform the task request with the opposite scheduling direction; If there are task requests with the same scheduling direction in the movement direction, the elevator is controlled to turn to execute the task requests with the same scheduling direction.
例如,当前运动方向上,升降梯在顶层,此时所述请求列表中仅存在调度方向为向下的任务请求,则转向执行调度方向为向下的任务请求。若此时所述请求列表中存在调度方向为向上的任务请求,则继续执行调度方向为向上的任务请求。For example, in the current movement direction, the elevator is at the top level. At this time, there are only task requests whose scheduling direction is downward in the request list, and then the task request whose scheduling direction is downward is switched to be executed. If there is a task request whose scheduling direction is upward in the request list at this time, the task request whose scheduling direction is upward is continued to be executed.
可以理解的是,在升降梯的运行中,需要配合控制机器人的移动,避免机器人之间的碰撞和避让以实现更高效率的运输。例如,在第一任务请求中,第一起始楼层为2楼,第一目标楼层为7楼,在第二任务请求中,第二起始楼层为4楼,第二目标楼层为6楼。升降梯内存在第一点位和第二点位,第一点位在开门侧。It is understandable that during the operation of the elevator, it is necessary to coordinate the movement of the robots to avoid collision and avoidance between the robots to achieve more efficient transportation. For example, in the first task request, the first starting floor is the 2nd floor and the first target floor is the 7th floor. In the second task request, the second starting floor is the 4th floor and the second target floor is the 6th floor. There are a first point and a second point in the elevator, and the first point is on the door opening side.
具体的,可参阅图4,示出了升降梯内机器人点位示意图。升降梯100在2楼停靠接到机器人200,此时,升降梯从2楼运动到4楼停靠,接取机器人B,在该过程中,可以通过机器人调度算法使机器人200从第一点位101运动到第二点位102,从而在4楼停靠时可以顺利接取到机器人B,在到达6楼时,机器人B离开升降梯,此时可以继续判断是否还可以接取其他机器人,若不能,则在升降梯从6楼运动到7楼的过程中,使机器人200运动到第一点位101,由于第一点位101靠近开门侧103,在升降梯到达7楼时,机器人200可以直接离开升降梯,以提升运输机器人的效率。Specifically, refer to Fig. 4, which shows a schematic diagram of the position of the robot in the elevator. The elevator 100 is docked to the robot 200 on the 2nd floor. At this time, the elevator moves from the 2nd floor to the 4th floor and picks up the robot B. In this process, the robot 200 can be moved from the first point 101 through the robot scheduling algorithm. Move to the second point 102, so that robot B can be picked up smoothly when docked on the 4th floor. When it reaches the 6th floor, robot B leaves the elevator. At this time, it can continue to judge whether it can pick up other robots. If not, When the elevator moves from the 6th floor to the 7th floor, the robot 200 is moved to the first point 101. Since the first point 101 is close to the door opening side 103, when the elevator reaches the 7th floor, the robot 200 can leave directly Lifts to improve the efficiency of transport robots.
本申请提出的升降梯调度方法,在执行第一任务请求时,根据第一任务请求,控制升降梯从第一起始楼层向第一目标楼层运动;在控制所述升降梯向第一目标楼层运动的过程中,遍历所述请求列表,确定调度方向与当前运动方向相同的任务请求为待执行的任务请求;获取第一目标楼层以及升降梯的当前楼层,对待执行的任务请求,判断所述当前楼层与所述待执行的任务请求的起始楼层 的差值是否大于或等于预设值,若是,继续判断到达所述待执行的任务请求的目标楼层是否先于或等于所述第一目标楼层,若是,则可以确定该任务请求为第二任务请求;再根据所述第一目标楼层、所述第二起始楼层以及所述第二目标楼层控制所述升降梯的停靠。在升降梯执行第一任务请求时,充分利用升降梯内的空间,考虑升降梯在不同楼层的开门方向,并配合机器人的运动,避免机器人之间的避让以及碰撞,从而提升升降梯运输机器人的效率。In the elevator scheduling method proposed in the present application, when the first task request is executed, the elevator is controlled to move from the first starting floor to the first target floor according to the first task request; when the elevator is controlled to move to the first target floor In the process of traversing the request list, it is determined that the task request whose scheduling direction is the same as the current movement direction is the task request to be executed; the first target floor and the current floor of the elevator are obtained, the task request to be executed is determined, and the current Whether the difference between the floor and the starting floor of the to-be-executed task request is greater than or equal to the preset value, if so, continue to determine whether the target floor of the to-be-executed task request is earlier than or equal to the first target floor If it is, it can be determined that the task request is a second task request; and then the parking of the elevator is controlled according to the first target floor, the second starting floor, and the second target floor. When the elevator performs the first task request, make full use of the space in the elevator, consider the door opening direction of the elevator on different floors, and cooperate with the movement of the robot to avoid avoidance and collision between the robots, so as to improve the transportation of the elevator robot. efficient.
请参阅图5,本申请再一实施例提供了一种升降梯调度方法,在上一实施例的基础上重点描述了升降梯在不同楼层的开门方向不同的条件下,获取第二任务请求的过程。如图5所示,该方法可以包括:Referring to FIG. 5, another embodiment of the present application provides an elevator scheduling method. On the basis of the previous embodiment, it focuses on describing that the elevator obtains the request of the second task under the condition that the door opening directions of different floors are different. process. As shown in Figure 5, the method may include:
步骤S410:在执行第一任务请求时,根据所述第一任务请求,控制所述升降梯从第一起始楼层向第一目标楼层运动。Step S410: When the first task request is executed, according to the first task request, the elevator is controlled to move from the first starting floor to the first target floor.
步骤S420:在向所述第一目标楼层运动过程中,遍历所述请求列表,确定调度方向与当前运动方向相同的任务请求为待执行的任务请求。Step S420: In the process of moving to the first target floor, traverse the request list, and determine that a task request whose scheduling direction is the same as the current movement direction is a task request to be executed.
步骤S430:获取所述第一目标楼层以及所述升降梯的当前楼层。Step S430: Obtain the first target floor and the current floor of the elevator.
步骤S440:对于待执行的任务请求,判断所述当前楼层与所述待执行的任务请求的起始楼层的差值是否大于或等于预设值;若是,执行步骤S450;若否,执行步骤S430。Step S440: For the task request to be executed, it is determined whether the difference between the current floor and the starting floor of the task request to be executed is greater than or equal to a preset value; if yes, execute step S450; if not, execute step S430 .
步骤S410至步骤S440可参照前述实施例对应部分,在此不再赘述。Steps S410 to S440 can refer to the corresponding parts of the foregoing embodiment, and details are not described herein again.
步骤S450:根据所述待执行的任务请求的起始楼层、所述待执行的任务请求的目标楼层、第一目标楼层以及对应的开门方向确定所述第二任务请求。Step S450: Determine the second task request according to the starting floor of the task request to be executed, the target floor of the task request to be executed, the first target floor, and the corresponding door opening direction.
对于满足上述条件的任务请求,可以根据所述待执行的任务请求的起始楼层、所述待执行的任务请求的目标楼层、第一目标楼层以及对应的开门方向确定第二任务请求。具体的,由于升降梯在不同的楼层的开门方向可能不同,电子设备可以预先存储有各个楼层以及开门方向的对应关系。For the task request meeting the above conditions, the second task request may be determined according to the starting floor of the task request to be executed, the target floor of the task request to be executed, the first target floor, and the corresponding door opening direction. Specifically, since the door opening direction of the elevator on different floors may be different, the electronic device may pre-store the corresponding relationship between each floor and the door opening direction.
在获取到待执行的任务请求中的起始楼层,目标楼层时,可以查找该对应关系,确定待执行的任务请求中的起始楼层以及目标楼层的开门方向。同理,可以查找该对应关系,确定第一目标楼层的开门方向。When the starting floor and target floor in the task request to be executed are obtained, the corresponding relationship can be searched to determine the starting floor and the door opening direction of the target floor in the task request to be executed. In the same way, the corresponding relationship can be searched to determine the door opening direction of the first target floor.
在一些实施方式中,若所述待执行任务请求中的起始楼层以及所述目标楼层的开门方向相同,且与所述第一目标楼层的开门方向不同,选取一个待执行的任务请求作为第二任务请求即可。In some embodiments, if the door opening direction of the starting floor and the target floor in the task request to be executed is the same and different from the door opening direction of the first target floor, a task request to be executed is selected as the first target floor. The second task is required.
例如,第一目标楼层为7,升降梯在第7层的开门方向为左侧,待执行的任务请求中的起始楼层为3,目标楼层为8,升降梯在第3层以及第8层的开门方向都为右侧。表明第一个机器人要从左侧离开升降梯,第二个机器人从右边上升降梯,并从右边下升降梯,那么两个机器人不会出现需要避让的情况。因此,在满足前述条件的待执行的任务请求,其起始楼层与目标楼层的开门相同,且与第一目标楼层不同,都可以作为所述第二任务请求,选取其中一个作为第二任务请求即可。For example, the first target floor is 7, the door opening direction of the elevator on the 7th floor is the left side, the starting floor in the task request to be executed is 3, the target floor is 8, and the elevator is on the 3rd and 8th floors. The direction of opening the door is to the right. It indicates that the first robot wants to leave the elevator from the left, and the second robot goes up and down the elevator from the right, and then the two robots will not need to avoid the situation. Therefore, in the task request to be executed that meets the aforementioned conditions, the door opening of the starting floor and the target floor are the same, and different from the first target floor, can be used as the second task request, and one of them can be selected as the second task request That's it.
在另一些实施方式中,若所述待执行的任务请求中的起始楼层以及所述目标楼层的开门方向不同,且待执行的任务请求中的目标楼层与所述第一目标楼层的开门方向相同。表明第一个机器人和第二机器人需要在同侧离开升降梯,并且,第二机器人从另一侧进入升降梯。In other embodiments, if the door opening directions of the starting floor and the target floor in the task request to be executed are different, and the door opening directions of the target floor and the first target floor in the task request to be executed are different same. It shows that the first robot and the second robot need to leave the elevator on the same side, and the second robot enters the elevator from the other side.
例如,升降梯在起始楼层开左侧门,在目标楼层和第一目标楼层开右侧门。那么,第一机器人在进入升降梯后,需要停在升降梯的右侧,从而,第二个机器人可以从左侧进入升降梯,并停在升降梯的左侧。此时,升降梯内已经搭乘了两个机器人,由于该两个机器人都从右侧离开升降梯,而此时第一个机器人停在升降梯内的右侧,则需要第一个机器人先离开升降梯后,第二机器人才能从右侧离开升降梯。那么升降梯需要先达到第一目标楼层,再达到目标楼层,才能避免机器人之间的避让。For example, the elevator opens the left door on the starting floor, and opens the right door on the target floor and the first target floor. Then, after the first robot enters the elevator, it needs to stop on the right side of the elevator, so that the second robot can enter the elevator from the left and stop on the left side of the elevator. At this time, there are already two robots in the elevator. Because the two robots leave the elevator from the right side, and the first robot stops on the right side of the elevator at this time, the first robot needs to leave first After the elevator, the second robot can leave the elevator from the right side. Then the elevator needs to reach the first target floor first, and then reach the target floor, in order to avoid avoidance between robots.
因此,在所述待执行的任务请求中的起始楼层与目标楼层的开门方向不同,且所述待执行的任务请求的目标楼层与第一目标楼层的开门方向相同时,可以确定到达所述目标楼层后于或等于到达所述第一目标楼层的待执行的任务请求为第二任务请求。Therefore, when the door opening directions of the starting floor and the target floor in the task request to be executed are different, and the door opening direction of the target floor of the task request to be executed is the same as the door opening direction of the first target floor, it can be determined to arrive at the The task request to be executed after the target floor is equal to or equal to the first target floor is the second task request.
步骤S460:根据所述第一目标楼层、所述第二起始楼层以及所述第二目标楼层控制所述升降梯的停靠。Step S460: Control the parking of the elevator according to the first target floor, the second starting floor, and the second target floor.
步骤S460可参照前述实施例对应部分,在此不再赘述。同样的,在升降梯的运行中,需要配 合控制机器人的移动,避免机器人之间的碰撞和避让以实现更高效率的运输。For step S460, reference may be made to the corresponding part of the foregoing embodiment, and details are not described herein again. Similarly, in the operation of elevators, it is necessary to coordinate the movement of robots to avoid collision and avoidance between robots to achieve more efficient transportation.
本申请提出的升降梯调度方法,在执行第一任务请求时,根据第一任务请求,控制升降梯从第一起始楼层向第一目标楼层运动;在控制所述升降梯向第一目标楼层运动的过程中,遍历所述请求列表,确定调度方向与当前运动方向相同的任务请求为待执行的任务请求;获取第一目标楼层以及升降梯的当前楼层,对待执行的任务请求,判断所述当前楼层与待执行的任务请求的起始楼层的差值是否大于或等于预设值,若是,根据所述待执行的任务请求的起始楼层、待执行的任务请求的目标楼层、第一目标楼层以及对应的开门方向确定第二任务;再根据所述第一目标楼层、所述第二起始楼层以及所述第二目标楼层控制所述升降梯的停靠。在升降梯执行第一任务请求时,充分利用升降梯内的空间,考虑升降梯在不同楼层的开门方向,并配合机器人的运动,避免机器人之间的避让以及碰撞,从而提升升降梯运输机器人的效率。In the elevator scheduling method proposed in the present application, when the first task request is executed, the elevator is controlled to move from the first starting floor to the first target floor according to the first task request; when the elevator is controlled to move to the first target floor In the process of traversing the request list, it is determined that the task request whose scheduling direction is the same as the current movement direction is the task request to be executed; the first target floor and the current floor of the elevator are obtained, the task request to be executed is determined, and the current Whether the difference between the floor and the starting floor of the task request to be executed is greater than or equal to the preset value, if so, according to the starting floor of the task request to be executed, the target floor of the task request to be executed, and the first target floor And the corresponding door opening direction determines the second task; and then controls the parking of the elevator according to the first target floor, the second starting floor, and the second target floor. When the elevator performs the first task request, make full use of the space in the elevator, consider the door opening direction of the elevator on different floors, and cooperate with the movement of the robot to avoid avoidance and collision between the robots, so as to improve the transportation of the elevator robot. efficient.
请参阅图6,本申请还一实施例提供了一种升降梯调度方法,本实施例在前述实施例的基础上,重点描述了执行第一任务请求之前的过程。如图6所示,该方法可以包括:Referring to FIG. 6, another embodiment of the present application provides an elevator scheduling method. On the basis of the foregoing embodiment, this embodiment focuses on the process before executing the first task request. As shown in Figure 6, the method may include:
步骤S510,将接收到的任务请求存入请求列表中,从所述请求列表中确定所述第一任务请求。Step S510: Store the received task request in a request list, and determine the first task request from the request list.
电子设备可以接收到多个任务请求,在接收到任务请求时,可以将所述任务请求存入预先建立的请求列表中。升降梯可以预先停靠在预设楼层,其中,所述预设楼层可以是根据需要设置,例如,升降梯在建筑施工中运输机器人,可以将预设楼层停靠在工作量最大的一层,在室内垂直运输机器人时,可以是停靠在首层,在此不做具体限定。The electronic device can receive multiple task requests, and upon receiving the task request, the task request can be stored in a pre-established request list. The elevator can be parked on a preset floor in advance, where the preset floor can be set according to needs. For example, the elevator transports robots during construction, and the preset floor can be parked on the floor with the largest workload, indoors. When the robot is transported vertically, it can be parked on the first floor, which is not specifically limited here.
电子设备在接收到第一个任务请求时,可以将第一个任务请求存入所述请求列表中,此时,可以获取到接收到的所述任务请求中的起始楼层和目标楼层,若所述起始楼层与所述预设楼层不相同,则需要控制所述升降梯从所述升降梯从预设楼层向所述起始楼层运动;在运动的过程中,遍历所述请求列表以确定调度方向与当前方向相同,且起始楼层与当前楼层的差值大于或等于预设值的任务请求为所述第一任务请求。When the electronic device receives the first task request, it can store the first task request in the request list. At this time, it can obtain the starting floor and the target floor in the received task request. If the starting floor is different from the preset floor, the elevator needs to be controlled to move from the elevator from the preset floor to the starting floor; during the movement, the request list is traversed to It is determined that the task request for which the scheduling direction is the same as the current direction and the difference between the starting floor and the current floor is greater than or equal to the preset value is the first task request.
也就是说,在升降梯在从预设楼层运动到起始楼层的过程中,可以遍历请求列表,根据条件确定第一任务请求,若在所述请求列表中没有满足条件的第一任务请求,则可以运动到所述起始楼层,将接收到的所述任务请求作为第一任务请求。That is to say, in the process of the elevator moving from the preset floor to the starting floor, the request list can be traversed, and the first task request can be determined according to the condition. If there is no first task request meeting the condition in the request list, Then, you can move to the starting floor, and use the received task request as the first task request.
升降梯从预设楼层运动到起始楼层的过程中,电子设备可能会接收到其他的任务请求,则可以将接收的任务请求存入请求列表。为了满足同向运行以及减速的要求,在请求列表中的任务请求需要同时满足调度方向与升降梯的运动方向同向,且起始楼层与升降梯的当前楼层的差值大于或等于预设值。若在所述请求列表中存在满足条件的任务请求,则可以确定该任务请求为第一任务请求,若不存在满足条件的任务请求,则可以确定接收到任务请求为第一任务请求。During the movement of the elevator from the preset floor to the starting floor, the electronic device may receive other task requests, and the received task requests can be stored in the request list. In order to meet the requirements of running in the same direction and deceleration, the task request in the request list needs to meet the same direction as the dispatching direction and the moving direction of the elevator, and the difference between the starting floor and the current floor of the elevator is greater than or equal to the preset value . If there is a task request that meets the condition in the request list, it can be determined that the task request is the first task request, and if there is no task request that meets the conditions, it can be determined that the received task request is the first task request.
例如,预设楼层为1楼,接收到的任务请求F中的起始楼层为6楼,那么升降梯需要向上运行,从1楼到6楼,此时请求列表中有任务请求G的起始楼层为5,目标楼层为3,任务请求G与升降梯的当前运动方向相反,则可以确定任务请求F为第一任务请求。从而提升升降梯运输机器人的效率。For example, the preset floor is the first floor, and the starting floor in the received task request F is the 6th floor, then the elevator needs to run upwards from the 1st floor to the 6th floor. At this time, the request list has the start of the task request G If the floor is 5, the target floor is 3, and the task request G is opposite to the current movement direction of the elevator, it can be determined that the task request F is the first task request. Thereby improving the efficiency of the elevator transportation robot.
步骤S520,所述执行所述第一任务请求的同时,将所述第一任务请求从所述请求列表中移除,并将所述第一任务请求添加进执行列表中。Step S520: While the first task request is being executed, the first task request is removed from the request list, and the first task request is added to the execution list.
在确定所述第一任务请求后,可以执行所述第一任务请求,电子设备可以预先建立执行列表,在执行所述第一任务请求的同时,可以将所述任务请求从所述请求列表中移除,并将所述第一任务请求添加进所述执行列表中。在执行完所述第一任务请求时,则可以将所述第一任务请求从所述执行列表中移除。After the first task request is determined, the first task request can be executed, and the electronic device can create an execution list in advance. While executing the first task request, the task request can be selected from the request list. Remove and add the first task request to the execution list. After the first task request is executed, the first task request may be removed from the execution list.
步骤S530,在执行第一任务请求时,根据所述第一任务请求,控制所述升降梯从第一起始楼层向第一目标楼层运动。In step S530, when the first task request is executed, according to the first task request, the elevator is controlled to move from the first starting floor to the first target floor.
步骤S540,在向所述第一目标楼层运动过程中,从升降梯的调度方向与当前运动方向相同的任务请求中,根据所述第一目标楼层获取第二任务请求。Step S540, in the process of moving to the first target floor, obtain a second task request according to the first target floor from among the task requests in which the dispatching direction of the elevator is the same as the current moving direction.
步骤S550,根据所述第一目标楼层、所述第二起始楼层以及所述第二目标楼层控制所述升降梯的停靠。Step S550, controlling the stopping of the elevator according to the first target floor, the second starting floor, and the second target floor.
步骤S530至步骤S550可参照前述实施例对应部分,在此不再赘述。For step S530 to step S550, refer to the corresponding part of the foregoing embodiment, which will not be repeated here.
可以理解的是,上述第一任务请求和第二任务请求的调度方向相同,且起始楼层不同。若此时在所述请求列表中存在两个任务请求的起始楼层相同,升降梯在运动到该起始楼层时,需要同时执行两个任务请求,则同时确定第一任务请求和第二任务请求。It can be understood that the scheduling directions of the first task request and the second task request are the same, and the starting floors are different. If at this time there are two task requests in the request list with the same starting floor, and when the elevator moves to the starting floor, it needs to execute two task requests at the same time, then the first task request and the second task are determined at the same time ask.
作为一种实施方式,若升降梯在所有楼层的开门方向相同,可以获取两个任务请求的对应的目标楼层,确定后到达的目标楼层对应的任务请求为第一任务请求,即该任务请求的机器人需要先进入所述升降梯。As an implementation manner, if the elevator has the same door opening direction on all floors, the target floors corresponding to the two task requests can be obtained, and the task request corresponding to the target floor reached after determination is the first task request, that is, the target floor of the task request. The robot needs to enter the elevator first.
例如,任务请求A的起始楼层为2,目标楼层为7,任务请求B的起始楼层为2,目标楼层为5,此时升降梯内没有机器人,在运动到第2层时,停靠接取两个机器人,则确定任务请求A为第一任务请求,任务请求B为第二任务请求,从而可以避免两个机器人之间的碰撞。For example, the starting floor of task request A is 2, the target floor is 7, the starting floor of task request B is 2, and the target floor is 5. At this time, there is no robot in the elevator. Taking two robots, it is determined that the task request A is the first task request, and the task request B is the second task request, so that the collision between the two robots can be avoided.
作为另一种实施方式,若升降梯在所有楼层的开门方向不同,且两个任务请求中的目标楼层的开门方向不同,则确定目标楼层的开门方向与起始方向的开门方向不同的任务请求为第一任务请求;若两个任务请求中的目标楼层的开门方向相同,且与起始楼层的开门方向不同,则确定先到达的目标楼层对应的任务请求为第一任务请求。As another embodiment, if the elevator has different door opening directions on all floors, and the door opening directions of the target floors in the two task requests are different, the task request that the door opening direction of the target floor is different from the door opening direction of the starting direction is determined It is the first task request; if the door opening direction of the target floor in the two task requests is the same and is different from the door opening direction of the starting floor, the task request corresponding to the target floor that arrives first is determined as the first task request.
例如,任务请求A的起始楼层为2,目标楼层为7,任务请求B的起始楼层为2,目标楼层为5,升降梯在第2层的开门方向为左侧,在第7层的开门方向为左侧,在第5层的开门方向为右侧,则可以确定任务请求A为第一任务请求,任务请求B为第二任务请求。For example, the starting floor of task request A is 2, the target floor is 7, the starting floor of task request B is 2, and the target floor is 5, the door opening direction of the elevator on the second floor is the left side, and the door opening direction of the elevator on the second floor is the left side. The door opening direction is the left side, and the door opening direction on the 5th floor is the right side, it can be determined that the task request A is the first task request, and the task request B is the second task request.
若升降梯在第2层的开门方向为左侧,在第7层的开门方向为右侧,在第5层的开门方向为右侧,则可以确定任务请求B为第一任务请求,任务请求A为第二任务请求。If the door opening direction of the elevator on the 2nd floor is the left side, the door opening direction on the 7th floor is the right side, and the door opening direction on the 5th floor is the right side, it can be determined that the task request B is the first task request, and the task request A is the second task request.
综上,在数据处理的过程中存在请求列表和执行列表,请求列表用于存储接收到的任务请求,执行列表用于存储正在执行的任务请求。在确定所述第二任务请求之后,可以将所述第二任务请求从所述请求列表中移除,并将所述第二任务请求添加进所述执行列表。可以理解的是,执行列表的长度可以与升降梯内可承载的机器人的最大数量相同,例如,升降梯内可承载的机器人的最大数量为2,那么,所述执行列表中最多可存储两个正在执行的任务请求,具体的,该执行列表的长度以及升降梯内可承载机器人的最大数量可以根据需要进行设置,在此不做限定。在所述执行列表中的任务请求为执行列表的长度时,忽略接收到的任务请求,仅将接收到的任务请求存入请求列表,直到有任务请求执行完毕,将正在执行的任务请求作为重新作为第一任务请求,循环执行步骤540和步骤S550,以确定新的第二任务请求,直到所述请求列表和执行列表都为空,控制所述升降梯停靠在预设楼层。In summary, there are a request list and an execution list in the process of data processing. The request list is used to store received task requests, and the execution list is used to store task requests that are being executed. After the second task request is determined, the second task request can be removed from the request list, and the second task request can be added to the execution list. It is understandable that the length of the execution list can be the same as the maximum number of robots that can be carried in the elevator. For example, if the maximum number of robots that can be carried in the elevator is 2, then the execution list can store at most two The task request being executed, specifically, the length of the execution list and the maximum number of robots that can be carried in the elevator can be set as required, and there is no limitation here. When the task request in the execution list is the length of the execution list, the received task request is ignored, and only the received task request is stored in the request list. Until the task request is completed, the task request being executed is regarded as a new task request. As the first task request, step 540 and step S550 are cyclically executed to determine a new second task request until the request list and execution list are empty, and the elevator is controlled to stop at a preset floor.
本申请提出的升降梯调度方法,将接收到的任务请求存入请求列表中,从所述请求列表中确定所述第一任务请求;所述执行所述第一任务请求的同时,将所述第一任务请求从所述请求列表中移除,并将所述第一任务请求添加进执行列表中;在执行第一任务请求时,根据第一任务请求,控制升降梯从第一起始楼层向第一目标楼层运动;在向所述第一目标楼层运动过程中,从升降梯的调度方向与当前运动方向相同的任务请求中,根据所述第一目标楼层获取第二任务请求;根据所述第一目标楼层、所述第二起始楼层以及所述第二目标楼层控制所述升降梯的停靠。在升降梯执行第一任务请求之前,从所述请求列表中确定第一任务请求,以提升升降梯运输机器人的效率。In the elevator scheduling method proposed in this application, the received task request is stored in a request list, and the first task request is determined from the request list; while the first task request is executed, the The first task request is removed from the request list, and the first task request is added to the execution list; when the first task request is executed, the elevator is controlled from the first starting floor to the first task request according to the first task request. The first target floor moves; in the process of moving to the first target floor, the second task request is obtained according to the first target floor from among the task requests in which the dispatching direction of the elevator is the same as the current moving direction; according to the The first target floor, the second starting floor, and the second target floor control the stopping of the elevator. Before the elevator executes the first task request, the first task request is determined from the request list to improve the efficiency of the elevator transportation robot.
请参阅图7,其示出了本申请实施例提供的一种升降梯调度装置600,所述升降梯调度装置600包括第一执行模块610、获取模块620、第二执行模块630。Please refer to FIG. 7, which shows an elevator scheduling device 600 provided by an embodiment of the present application. The elevator scheduling device 600 includes a first execution module 610, an acquisition module 620, and a second execution module 630.
所述第一执行模块610,用于在执行第一任务请求时,根据所述第一任务请求,控制所述升降梯从第一起始楼层向第一目标楼层运动,所述第一任务请求包括所述第一起始楼层以及所述第一目标楼层;所述获取模块620,用于在向所述第一目标楼层运动过程中,从升降梯的调度方向与当前运动方向相同的任务请求中,根据所述第一目标楼层获取第二任务请求,所述第二任务请求包括第二起始楼层以及第二目标楼层;所述第二执行模块630,用于根据所述第一目标楼层、所述第二起始楼层以及所述第二目标楼层控制所述升降梯的停靠。The first execution module 610 is configured to control the movement of the elevator from the first starting floor to the first target floor according to the first task request when the first task request is executed, and the first task request includes The first starting floor and the first target floor; the acquisition module 620 is used to obtain task requests in which the dispatching direction of the elevator is the same as the current moving direction in the process of moving to the first target floor, Acquire a second task request according to the first target floor, the second task request includes a second starting floor and a second target floor; the second execution module 630 is used to obtain a second task request according to the first target floor, The second starting floor and the second target floor control the stopping of the elevator.
进一步的,将接收到任务请求存入请求列表中,所述获取模块620还用于在向所述第一目标楼层运动过程中,遍历所述请求列表,确定调度方向与当前运动方向相同的任务请求为待执行的任务 请求;根据所述第一目标楼层将待执行的任务请求中满足预设条件的任务请求作为所述第二任务请求。Further, the received task request is stored in the request list, and the acquisition module 620 is further configured to traverse the request list during the movement to the first target floor, and determine the task whose scheduling direction is the same as the current movement direction The request is a task request to be executed; according to the first target floor, a task request meeting a preset condition among the task requests to be executed is used as the second task request.
进一步的,若所述升降梯在不同楼层的开门方向相同,所述获取模块620还用于获取所述第一目标楼层以及所述升降梯的当前楼层;对于所述待执行的任务请求,判断所述当前楼层与任务请求的起始楼层的差值是否大于或等于预设值;若是,判断到达所述任务请求的目标楼层是否先于或同时到达所述第一目标楼层;若是,确定所述任务请求为所述第二任务请求。Further, if the door opening directions of the elevators on different floors are the same, the acquisition module 620 is also used to acquire the first target floor and the current floor of the elevator; for the task request to be executed, determine Whether the difference between the current floor and the starting floor of the task request is greater than or equal to the preset value; if so, it is determined whether the target floor of the task request arrives before or at the same time as the first target floor; if so, it is determined The task request is the second task request.
进一步的,若所述升降梯在不同楼层的开门方向不同,所述获取模块620还用于获取所述第一目标楼层以及所述升降梯的当前楼层;对于所述待执行的任务请求,判断所述当前楼层与任务请求的起始楼层的差值是否大于或等于预设值;若是,根据所述任务请求的起始楼层、目标楼层、第一目标楼层以及对应的开门方向确定所述第二任务请求。Further, if the door opening directions of the elevator are different on different floors, the acquisition module 620 is also used to acquire the first target floor and the current floor of the elevator; for the task request to be executed, determine Whether the difference between the current floor and the starting floor of the task request is greater than or equal to the preset value; if so, the first floor is determined according to the starting floor, the target floor, the first target floor and the corresponding door opening direction of the task request 2. Task request.
进一步的,所述获取模块620还用于若所述起始楼层与所述目标楼层的开门方向相同,且与所述第一目标楼层的开门方向不同,选取一个任务请求为所述第二任务请求;若所述起始楼层与所述目标楼层的开门方向不同,且目标楼层与所述第一目标楼层的开门方向相同,确定到达所述目标楼层后于或等于到达所述第一目标楼层的任务请求为所述第二任务请求。Further, the acquiring module 620 is further configured to select a task request as the second task if the door opening direction of the starting floor and the target floor are the same and different from the door opening direction of the first target floor Request; if the door opening directions of the starting floor and the target floor are different, and the door opening directions of the target floor and the first target floor are the same, it is determined that arriving at the target floor is equal to or equal to reaching the first target floor The task request of is the second task request.
进一步的,在执行第一任务请求之前,所述第一执行模块610还用于将接收到的任务请求存入请求列表中,从所述请求列表中确定所述第一任务请求;所述执行所述第一任务请求的同时,将所述第一任务请求从所述请求列表中移除,并将所述第一任务请求添加进执行列表中。Further, before executing the first task request, the first execution module 610 is further configured to store the received task request in a request list, and determine the first task request from the request list; the execution At the same time as the first task request, the first task request is removed from the request list, and the first task request is added to the execution list.
进一步的,所述第一执行模块610还用于控制所述升降梯从预设楼层向所述接收到的任务请求中的起始楼层运动;在所述运动过程中,遍历所述请求列表以确定调度方向与当前运动方向相同,且起始楼层与当前楼层的差值大于或等于预设值的任务请求为所述第一任务请求。Further, the first execution module 610 is also used to control the movement of the elevator from a preset floor to the starting floor in the received task request; during the movement, the request list is traversed to It is determined that the task request for which the scheduling direction is the same as the current movement direction and the difference between the starting floor and the current floor is greater than or equal to the preset value is the first task request.
进一步的,所述获取模块620还用于在向所述第一目标楼层的运动过程中,判断所述升降梯是否处于满载状态;若否,执行从升降梯的调度方向与当前运动方向相同的任务请求中,根据所述第一目标楼层获取第二任务请求的步骤。Further, the acquisition module 620 is also used to determine whether the elevator is in a fully loaded state during the movement to the first target floor; if not, execute the dispatching direction of the elevator from the same direction as the current movement direction. In the task request, the step of obtaining the second task request according to the first target floor.
需要说明的是,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。It should be noted that those skilled in the art can clearly understand that, for the convenience and conciseness of description, the specific working process of the device and module described above can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
综上所述,本申请提供的升降梯调度方法,在执行第一任务请求时,根据第一任务请求,控制升降梯从第一起始楼层向第一目标楼层运动;在控制所述升降梯向第一目标楼层运动的过程中,从升降梯的调度方向与当前运动方向相同的任务请求中,根据所述第一目标楼层获取第二任务请求;根据第一目标楼层、第二起始楼层以及第二目标楼层控制所述升降梯的停靠。在升降梯执行第一任务请求时,充分利用升降梯内的空间,寻找可同时执行的第二任务请求,从而最大限度的提升升降梯的运输效率。In summary, the elevator scheduling method provided by the present application controls the movement of the elevator from the first starting floor to the first target floor according to the first task request when executing the first task request; During the movement of the first target floor, the second task request is obtained according to the first target floor from the task requests whose dispatching direction of the elevator is the same as the current moving direction; according to the first target floor, the second starting floor, and The second target floor controls the stopping of the elevator. When the elevator performs the first task request, make full use of the space in the elevator to find the second task request that can be executed at the same time, so as to maximize the transportation efficiency of the elevator.
在本申请所提供的几个实施例中,所显示或讨论的模块相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, the coupling or direct coupling or communication connection between the displayed or discussed modules may be through some interfaces, and the indirect coupling or communication connection between the devices or modules may be electrical, Mechanical or other forms.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, the functional modules in the various embodiments of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or software functional modules.
请参考图8,其示出了本申请实施例提供的一种电子设备的结构框图。该电子设备700可以是智能手机、平板电脑等能够运行应用程序的电子设备,或是服务器。本申请中的电子设备700可以包括一个或多个如下部件:处理器710、存储器720、以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器720中并被配置为由一个或多个处理器710执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。Please refer to FIG. 8, which shows a structural block diagram of an electronic device provided by an embodiment of the present application. The electronic device 700 may be an electronic device capable of running application programs, such as a smart phone or a tablet computer, or a server. The electronic device 700 in this application may include one or more of the following components: a processor 710, a memory 720, and one or more application programs, where one or more application programs may be stored in the memory 720 and configured to be configured by One or more processors 710 execute, and one or more programs are configured to execute the methods described in the foregoing method embodiments.
处理器710可以包括一个或者多个处理核。处理器710利用各种接口和线路连接整个电子设备700内的各个部分,通过运行或执行存储在存储器720内的指令、程序、代码集或指令集,以及调用存储在存储器720内的数据,执行电子设备600的各种功能和处理数据。可选地,处理器710可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable LogicArray,PLA)中的至少一种硬件形式 来实现。处理器710可集成中央处理器(CentralProcessing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器710中,单独通过一块通信芯片进行实现。The processor 710 may include one or more processing cores. The processor 710 uses various interfaces and lines to connect various parts of the entire electronic device 700, and executes by running or executing instructions, programs, code sets, or instruction sets stored in the memory 720, and calling data stored in the memory 720. Various functions and processing data of the electronic device 600. Optionally, the processor 710 may use at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA) Realize in the form of hardware. The processor 710 may be integrated with one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is used for rendering and drawing of display content; the modem is used for processing wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 710, but may be implemented by a communication chip alone.
存储器720可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器720可用于存储指令、程序、代码、代码集或指令集。存储器720可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储电子设备700在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 720 may include random access memory (RAM) or read-only memory (Read-Only Memory). The memory 720 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 720 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing the operating system and instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.) , Instructions used to implement the following various method embodiments, etc. The storage data area can also store data created by the electronic device 700 during use (such as phone book, audio and video data, chat record data) and the like.
请参考图9,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读存储介质800中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 9, which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. The computer-readable storage medium 800 stores program code, and the program code can be invoked by a processor to execute the method described in the foregoing method embodiment.
计算机可读存储介质800可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质800包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质800具有执行上述方法中的任何方法步骤的程序代码810的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码810可以例如以适当形式进行压缩。The computer-readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 800 has storage space for the program code 810 for executing any method steps in the above-mentioned methods. These program codes can be read from or written into one or more computer program products. The program code 810 may be compressed in a suitable form, for example.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the application, not to limit them; although the application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions recorded in the foregoing embodiments are modified, or some of the technical features thereof are equivalently replaced; these modifications or replacements do not drive the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (20)

  1. 一种升降梯调度方法,其特征在于,所述方法包括:An elevator dispatching method, characterized in that the method includes:
    在执行第一任务请求时,根据所述第一任务请求,控制所述升降梯从第一起始楼层向第一目标楼层运动,所述第一任务请求包括所述第一起始楼层以及所述第一目标楼层;When executing the first task request, according to the first task request, the elevator is controlled to move from the first starting floor to the first target floor, and the first task request includes the first starting floor and the first target floor. A target floor;
    在向所述第一目标楼层运动过程中,从升降梯的调度方向与当前运动方向相同的任务请求中,根据所述第一目标楼层以及升降梯在不同楼层的开门方向获取第二任务请求,所述第二任务请求包括第二起始楼层以及第二目标楼层;In the process of moving to the first target floor, from the task requests in which the dispatching direction of the elevator is the same as the current movement direction, the second task request is obtained according to the first target floor and the door opening direction of the elevator on a different floor, The second task request includes a second starting floor and a second target floor;
    根据所述第一目标楼层、所述第二起始楼层以及所述第二目标楼层控制所述升降梯的停靠。The stopping of the elevator is controlled according to the first target floor, the second starting floor, and the second target floor.
  2. 根据权利要求1所述的方法,其特征在于,还包括将接收到的任务请求存入请求列表中;其中,所述在向所述第一目标楼层运动过程中,从升降梯的调度方向与当前运动方向相同的任务请求中,根据所述第一目标楼层以及升降梯在不同楼层的开门方向获取第二任务请求,包括:The method according to claim 1, further comprising storing the received task request in a request list; wherein, in the process of moving to the first target floor, the dispatching direction of the elevator and Among the task requests with the same current movement direction, acquiring the second task request according to the first target floor and the door opening direction of the elevator on a different floor includes:
    在向所述第一目标楼层运动过程中,遍历所述请求列表,确定调度方向与当前运动方向相同的任务请求为待执行的任务请求;During the movement to the first target floor, traverse the request list, and determine that a task request whose scheduling direction is the same as the current movement direction is a task request to be executed;
    根据所述第一目标楼层以及升降梯在不同楼层的开门方向将待执行的任务请求中满足预设条件的任务请求作为所述第二任务请求。According to the first target floor and the door opening directions of the elevator on different floors, a task request meeting a preset condition among the task requests to be executed is used as the second task request.
  3. 根据权利要求2所述的方法,其特征在于,若所述升降梯在不同楼层的开门方向相同,所述根据所述第一目标楼层以及升降梯在不同楼层的开门方向将待执行的任务请求中满足预设条件的任务请求作为所述第二任务请求,包括:The method according to claim 2, wherein if the door opening directions of the elevators on different floors are the same, the task to be executed is requested according to the first target floor and the door opening directions of the elevators on different floors. As the second task request, the task request meeting the preset condition in the above includes:
    获取所述第一目标楼层以及所述升降梯的当前楼层;Acquiring the first target floor and the current floor of the elevator;
    对于所述待执行的任务请求,判断所述当前楼层与所述待执行的任务请求的起始楼层的差值是否大于或等于预设值;For the task request to be executed, determining whether the difference between the current floor and the starting floor of the task request to be executed is greater than or equal to a preset value;
    若是,判断到达所述待执行的任务请求的目标楼层是否先于或同时到达所述第一目标楼层;If yes, determine whether the target floor requested by the task to be executed arrives at the first target floor earlier or at the same time;
    若是,确定所述待执行的任务请求为所述第二任务请求。If yes, it is determined that the task request to be executed is the second task request.
  4. 根据权利要求2所述的方法,其特征在于,若所述升降梯在不同楼层的开门方向不同,根据所述第一目标楼层以及升降梯在不同楼层的开门方向将待执行的任务请求中满足预设条件的任务请求作为所述第二任务请求,包括:The method according to claim 2, wherein if the elevator has different door opening directions on different floors, the task request to be executed is satisfied according to the first target floor and the door opening directions of the elevator on different floors The task request with preset conditions as the second task request includes:
    若是,根据所述待执行的任务请求的起始楼层、所述待执行的任务请求的目标楼层、第一目标楼层以及对应的开门方向确定所述第二任务请求。If so, the second task request is determined according to the starting floor of the task request to be executed, the target floor of the task request to be executed, the first target floor, and the corresponding door opening direction.
  5. 根据权利要求4所述的方法,其特征在于,所述根据所述待执行的任务请求的起始楼层、所述待执行的任务请求的目标楼层、第一目标楼层以及对应的开门方向确定所述第二任务请求,包括:The method according to claim 4, characterized in that the determination of the location is based on the starting floor of the task request to be executed, the target floor of the task request to be executed, the first target floor, and the corresponding door opening direction. The second task request includes:
    若所述待执行的任务请求的起始楼层与所述待执行的任务请求的目标楼层的开门方向相同,且与所述第一目标楼层的开门方向不同,选取一个待执行的任务请求为所述第二任务请求;If the door opening direction of the starting floor of the task request to be executed is the same as the door opening direction of the target floor of the task request to be executed, and is different from the door opening direction of the first target floor, a task request to be executed is selected as the door opening direction. The second task request;
    若所述待执行的任务请求的起始楼层与所述待执行的任务请求的目标楼层的开门方向不同,且所述待执行的任务请求的目标楼层与所述第一目标楼层的开门方向相同,确定到达所述目标楼层后于或等于到达所述第一目标楼层的待执行的任务请求为所述第二任务请求。If the door opening direction of the starting floor of the task request to be executed is different from the door opening direction of the target floor of the task request to be executed, and the door opening direction of the target floor of the task request to be executed is the same as the door opening direction of the first target floor , Determining that a task request to be executed that arrives at the first target floor after arriving at the target floor is the second task request.
  6. 根据权利要求1-5中任一项所述的方法,其特征在于,预先存储有各个楼层以及开门方向的对应关系;所述根据所述待执行的任务请求的起始楼层、所述待执行的任务请求的目标楼层、第一目标楼层以及对应的开门方向确定所述第二任务请求之前,还包括:The method according to any one of claims 1 to 5, wherein the corresponding relationship between each floor and door opening direction is pre-stored; the starting floor requested according to the task to be executed, the task to be executed Before determining the second task request on the target floor, the first target floor, and the corresponding door opening direction of the task request, the method further includes:
    根据所述对应关系,获取起始楼层、待执行的任务请求的目标楼层、第一目标楼层以及对应的开门方向。According to the corresponding relationship, the starting floor, the target floor requested by the task to be executed, the first target floor, and the corresponding door opening direction are obtained.
  7. 根据权利要求1所述的方法,其特征在于,在执行所述第一任务请求之前,还包括:The method according to claim 1, wherein before executing the first task request, the method further comprises:
    将接收到的任务请求存入请求列表中,从所述请求列表中确定所述第一任务请求;Store the received task request in a request list, and determine the first task request from the request list;
    在执行所述第一任务请求的同时,将所述第一任务请求从所述请求列表中移除,并将所述第一任务请求添加进执行列表中。While executing the first task request, the first task request is removed from the request list, and the first task request is added to the execution list.
  8. 根据权利要求7所述的方法,其特征在于,所述从所述请求列表中确定所述第一任务请求,包括:The method according to claim 7, wherein the determining the first task request from the request list comprises:
    控制所述升降梯从预设楼层向所述接收到的任务请求中的起始楼层运动;Controlling the movement of the elevator from a preset floor to the starting floor in the received task request;
    在所述运动过程中,遍历所述请求列表以确定调度方向与当前运动方向相同,且起始楼层与当前楼层的差值大于或等于预设值的任务请求为所述第一任务请求。During the movement, the request list is traversed to determine that a task request whose scheduling direction is the same as the current movement direction and whose difference between the starting floor and the current floor is greater than or equal to a preset value is the first task request.
  9. 根据权利要求8所述的方法,其特征在于,所述在所述运动过程中,遍历所述请求列表以确定调度方向与当前运动方向相同,且起始楼层与当前楼层的差值大于或等于预设值的任务请求为所述第一任务请求,包括:The method according to claim 8, characterized in that, in the movement process, the request list is traversed to determine that the scheduling direction is the same as the current movement direction, and the difference between the starting floor and the current floor is greater than or equal to The preset task request is the first task request, including:
    在所述运动过程中,遍历所述请求列表根据所述任务请求确定起始楼层和目标楼层;During the movement process, traverse the request list to determine the starting floor and the target floor according to the task request;
    根据所述起始楼层与所述目标楼层得到所述调度方向;Obtaining the dispatch direction according to the starting floor and the target floor;
    确定所述调度方向与所述当前运动方向相同,且所述起始楼层与所述当前楼层的差值大于或等于预设值的任务请求为所述第一任务请求。It is determined that the task request in which the scheduling direction is the same as the current movement direction and the difference between the starting floor and the current floor is greater than or equal to a preset value is the first task request.
  10. 根据权利要求1所述的方法,其特征在于,若所述升降梯在不同楼层的开门方向相同,且所述请求列表中存在两个任务请求的起始楼层相同时,在执行第一任务请求之前,还包括:The method according to claim 1, wherein if the elevator has the same door opening direction on different floors, and there are two task requests in the request list whose starting floors are the same, the first task request is executed Before, it also included:
    获取两个任务请求各自对应的目标楼层,确定后到达的目标楼层对应的任务请求为第一任务请求。The target floor corresponding to each of the two task requests is obtained, and the task request corresponding to the target floor reached after determination is the first task request.
  11. 根据权利要求1所述的方法,其特征在于,若两个任务请求中的目标楼层的开门方向不同,在执行第一任务请求之前,还包括:The method according to claim 1, wherein if the door opening directions of the target floors in the two task requests are different, before the first task request is executed, the method further comprises:
    确定目标楼层的开门方向与起始方向的开门方向不同的任务请求为第一任务请求。It is determined that the task request in which the door opening direction of the target floor is different from the door opening direction of the starting direction is the first task request.
  12. 根据权利要求1所述的方法,其特征在于,在执行所述第一任务请求之前,还包括:The method according to claim 1, wherein before executing the first task request, the method further comprises:
    遍历所述请求列表,确定所述请求列表不存在运动方向与调度方向相同的请求任务时,将所述调度方向调整为与所述运动方向相同的方向。Traversing the request list, and when it is determined that there is no request task with the same movement direction as the scheduling direction in the request list, adjusting the scheduling direction to the same direction as the movement direction.
  13. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    在向所述第一目标楼层的运动过程中,判断所述升降梯是否处于满载状态;During the movement to the first target floor, judging whether the elevator is in a fully loaded state;
    若否,执行从升降梯的调度方向与当前运动方向相同的任务请求中,根据所述第一目标楼层获取第二任务请求的步骤。If not, execute the step of obtaining the second task request according to the first target floor from the task requests in which the dispatching direction of the elevator is the same as the current movement direction.
  14. 根据权利要求13所述的方法,其特征在于,还包括:The method according to claim 13, further comprising:
    将接收到的任务请求存入请求列表中;Store the received task request in the request list;
    在执行所述请求列表中所述任务请求时,将所述任务请求添加至执行列表;When executing the task request in the request list, adding the task request to the execution list;
    所述在向所述第一目标楼层的运动过程中,判断所述升降梯是否处于满载状态,包括:The judging whether the elevator is in a fully loaded state during the movement to the first target floor includes:
    在向所述第一目标楼层的运动过程中,获取所述执行列表的长度,并判断所述长度是否等于最大长度;During the movement to the first target floor, obtain the length of the execution list, and determine whether the length is equal to the maximum length;
    若所述长度等于所述最大长度,则确定所述升降电梯处于满载状态;If the length is equal to the maximum length, it is determined that the elevator is in a fully loaded state;
    若所述长度不等于所述最大长度,则确定所述升降电梯不处于满载状态。If the length is not equal to the maximum length, it is determined that the elevator is not in a fully loaded state.
  15. 根据权利要求13所述的方法,其特征在于,所述在向所述第一目标楼层的运动过程中,判断所述升降梯是否处于满载状态,包括:The method according to claim 13, wherein the judging whether the elevator is in a fully loaded state during the movement to the first target floor comprises:
    获取所述升降梯的标识;Acquiring the identifier of the elevator;
    在向所述第一目标楼层的运动过程中,判断所述升降梯的标识是否为满载标识。During the movement to the first target floor, it is determined whether the identifier of the elevator is a full load identifier.
  16. 根据权利要求15所述的方法,其特征在于,所述升降梯内包括多个点位,每个点位上承载一个机器人;所述方法还包括:The method according to claim 15, wherein the elevator includes a plurality of points, and each point carries a robot; the method further comprises:
    在检测到所述升降梯内的多个点位上均承载有机器人时,获取所述升降梯的标识为满载标识。When it is detected that a robot is carried on a plurality of points in the elevator, the identification of the elevator is acquired as a full-load identification.
  17. 根据权利要求13-16中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 13-16, wherein the method further comprises:
    若所述升降电梯处于满载状态,控制所述升降梯运动到所述第一目标层。If the elevator is in a fully loaded state, control the elevator to move to the first target floor.
  18. 一种升降梯调度装置,其特征在于,所述装置包括:An elevator dispatching device, characterized in that the device comprises:
    第一执行模块,用于在执行第一任务请求时,根据所述第一任务请求,控制所述升降梯从第一起始楼层向第一目标楼层运动,所述第一任务请求包括所述第一起始楼层以及所述第一目标楼层;The first execution module is used to control the movement of the elevator from the first starting floor to the first target floor according to the first task request when the first task request is executed, and the first task request includes the first task request. A starting floor and the first target floor;
    获取模块,用于在向所述第一目标楼层运动过程中,从升降梯的调度方向与当前运动方向相同的任务请求中,根据所述第一目标楼层以及升降梯在不同楼层的开门方向获取第二任务请求,所述第二任务请求包括第二起始楼层以及第二目标楼层;The acquisition module is used to obtain the task request from the task request in which the dispatching direction of the elevator is the same as the current movement direction in the process of moving to the first target floor, according to the first target floor and the door opening direction of the elevator on different floors. A second task request, where the second task request includes a second starting floor and a second target floor;
    第二执行模块,用于根据所述第一目标楼层、所述第二起始楼层以及所述第二目标楼层控制所述升降梯的停靠。The second execution module is used for controlling the parking of the elevator according to the first target floor, the second starting floor, and the second target floor.
  19. 一种电子设备,其特征在于,所述电子设备包括:An electronic device, characterized in that, the electronic device includes:
    一个或多个处理器;One or more processors;
    存储器,与所述一个或多个处理器电连接;A memory, electrically connected to the one or more processors;
    一个或多个程序,其中所述一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行如权利要求1至17任一项所述的方法。One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute as claimed The method of any one of 1 to 17.
  20. 一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1至17任一项所述的方法。A computer-readable storage medium, wherein the computer-readable storage medium stores program code, and the program code can be called by a processor to execute the method according to any one of claims 1 to 17 .
PCT/CN2020/123314 2020-03-19 2020-10-23 Elevator scheduling method and apparatus, and electronic device and storage medium WO2021184756A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010194475.4 2020-03-19
CN202010194475.4A CN111086929B (en) 2020-03-19 2020-03-19 Method and device for scheduling ascending and descending ladders, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2021184756A1 true WO2021184756A1 (en) 2021-09-23

Family

ID=70400529

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/123314 WO2021184756A1 (en) 2020-03-19 2020-10-23 Elevator scheduling method and apparatus, and electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN111086929B (en)
WO (1) WO2021184756A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113860097A (en) * 2021-09-29 2021-12-31 无锡英威腾电梯控制技术有限公司 Elevator dispatching method, device, terminal equipment and storage medium

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111086929B (en) * 2020-03-19 2020-07-03 广东博智林机器人有限公司 Method and device for scheduling ascending and descending ladders, electronic equipment and storage medium
CN112897258A (en) * 2021-01-14 2021-06-04 泰康保险集团股份有限公司 Cross-floor object transmission method and device, electronic equipment and readable medium
CN113307112B (en) * 2021-05-26 2022-07-12 菱王电梯有限公司 Intelligent building management method, system and computer readable storage medium
CN114442608B (en) * 2021-12-21 2024-06-14 北京未末卓然科技有限公司 Office building logistics robot and control method thereof
CN114933218B (en) * 2022-03-24 2024-05-28 浙江华睿科技股份有限公司 Elevator dispatching method, terminal and computer readable storage medium
CN115490102B (en) * 2022-10-19 2023-09-05 北京软通智慧科技有限公司 Elevator dispatching method and device, elevator and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010023959A (en) * 2008-07-16 2010-02-04 Fuji Heavy Ind Ltd Moving system for autonomous traveling vehicle by elevator
JP2013216408A (en) * 2012-04-05 2013-10-24 Mitsubishi Electric Building Techno Service Co Ltd Conveyance elevator system for a plurality of robots, elevator control device, robot of elevator utilization type, and method of controlling elevator conveying a plurality of robots
CN103946139A (en) * 2011-11-28 2014-07-23 三菱电机株式会社 Elevator group management device
CN106276439A (en) * 2016-09-21 2017-01-04 上海三菱电梯有限公司 Elevator control gear for single ladder controller
CN109573754A (en) * 2018-10-17 2019-04-05 拉扎斯网络科技(上海)有限公司 Elevator dispatching method, device, server and computer readable storage medium
CN110606414A (en) * 2019-08-27 2019-12-24 日立楼宇技术(广州)有限公司 Robot elevator taking method and device, computer equipment and storage medium
CN111086929A (en) * 2020-03-19 2020-05-01 广东博智林机器人有限公司 Method and device for scheduling ascending and descending ladders, electronic equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6125842B2 (en) * 2013-01-11 2017-05-10 株式会社日立製作所 Elevator operation control device
CN106965198B (en) * 2017-03-30 2019-07-12 上海木木聚枞机器人科技有限公司 Robot control method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010023959A (en) * 2008-07-16 2010-02-04 Fuji Heavy Ind Ltd Moving system for autonomous traveling vehicle by elevator
CN103946139A (en) * 2011-11-28 2014-07-23 三菱电机株式会社 Elevator group management device
JP2013216408A (en) * 2012-04-05 2013-10-24 Mitsubishi Electric Building Techno Service Co Ltd Conveyance elevator system for a plurality of robots, elevator control device, robot of elevator utilization type, and method of controlling elevator conveying a plurality of robots
CN106276439A (en) * 2016-09-21 2017-01-04 上海三菱电梯有限公司 Elevator control gear for single ladder controller
CN109573754A (en) * 2018-10-17 2019-04-05 拉扎斯网络科技(上海)有限公司 Elevator dispatching method, device, server and computer readable storage medium
CN110606414A (en) * 2019-08-27 2019-12-24 日立楼宇技术(广州)有限公司 Robot elevator taking method and device, computer equipment and storage medium
CN111086929A (en) * 2020-03-19 2020-05-01 广东博智林机器人有限公司 Method and device for scheduling ascending and descending ladders, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113860097A (en) * 2021-09-29 2021-12-31 无锡英威腾电梯控制技术有限公司 Elevator dispatching method, device, terminal equipment and storage medium
CN113860097B (en) * 2021-09-29 2024-01-26 无锡英威腾电梯控制技术有限公司 Elevator dispatching method and device, terminal equipment and storage medium

Also Published As

Publication number Publication date
CN111086929B (en) 2020-07-03
CN111086929A (en) 2020-05-01

Similar Documents

Publication Publication Date Title
WO2021184756A1 (en) Elevator scheduling method and apparatus, and electronic device and storage medium
CN108163653B (en) Elevator and method and device for robot to take elevator
CN110877338B (en) Elevator dispatching method, medium, terminal and device for auxiliary robot
CN106965198B (en) Robot control method and device
JP6924804B2 (en) Picking scheduling method, equipment, storage system and readable storage medium
WO2017118001A1 (en) Method and device for returning robots from site
WO2020119675A1 (en) Order delivery method, electronic device, delivery robot, and operation system
US20160379161A1 (en) Material handling method
JP2018505785A (en) Method for avoiding a collision between two robots
CN110606414B (en) Robot elevator taking method and device, computer equipment and storage medium
CN112357701B (en) Robot calling landing method and device
WO2022135088A1 (en) Control method and apparatus for warehouse robot, and device and storage medium
WO2023216755A1 (en) Robot control method and apparatus, and robot, storage medium and program product
CN112193953B (en) Elevator resource scheduling method and device
CN112537704A (en) Robot elevator taking scheduling method, terminal and computer readable storage medium
CN112561362A (en) Order scheduling method, system, terminal and storage medium for unmanned delivery system
CN108454640B (en) Vehicle control method and system
JP2023024414A (en) Method, device, and facility for arranging delivery of articles and recording medium
CN115026833A (en) Multilayer map creation method and device and robot
CN115215168A (en) Elevator calling method of mobile trolley
CN113023513A (en) Method and device for preventing robot from being lost, electronic equipment and storage medium
CN114180255B (en) Scheduling method for three-dimensional warehouse system and computer storage medium
WO2022252468A1 (en) Unmanned aerial vehicle delivery method and cargo storage cabinet for unmanned aerial vehicle delivery
CN114474052A (en) Method and system for controlling interaction between robot and container and robot
CN116424976A (en) Elevator calling method, device, equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20926323

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20926323

Country of ref document: EP

Kind code of ref document: A1