A baggage handling system based on computer vision and robotic arms
Through computer vision and robotic arm systems, conveyor belts are used to automatically connect baggage, which solves the problems of low efficiency of traditional manual handling and easy damage of baggage, and achieves efficient and stable baggage handling and stacking.
Patent Information
- Application Number
- CN202411002096.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-07-25
AI Technical Summary
Traditional manual handling of luggage is inefficient and prone to damage. Especially due to the different sizes, weights, and softness and hardness of luggage, the luggage can easily fall off when picked up by mechanical clamps, causing damage.
A baggage handling system based on computer vision and robotic arms is used to collect image information of baggage and baggage carts through visual devices, determine the stacking posture and position of the baggage, and control the conveyor belt to connect the baggage in the target orientation to achieve automatic stacking and avoid damage to the baggage. damage.
It improves the efficiency and stability of baggage handling, ensures that baggage of different sizes, weights and softness and hardness are not damaged during the connection process, realizes automatic stacking, and improves the stability of airport baggage transportation.
Smart Images

Figure CN118544361B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of baggage handling, and in particular to a baggage handling system based on computer vision and a mechanical arm. Background Art
[0002] In the field of civil aviation, baggage handling is a major challenge for the modern aviation industry. As the passenger flow at airports continues to increase, the amount of passengers' luggage is also increasing. For the handling of luggage, the traditional way of luggage handling is mostly manual handling, but manual luggage handling is inefficient. In order to improve the efficiency of luggage handling, a common method is to use a mechanical arm with a mechanical gripper at the front end to clamp the luggage to achieve luggage handling. However, the size, weight and hardness of luggage are different. When using a mechanical gripper to clamp the luggage, the luggage is easy to fall off, causing damage to the luggage. Summary of the invention
[0003] In view of the above technical problems, the present invention provides a baggage handling system based on computer vision and a robotic arm to solve the technical problems that manual handling of luggage affects the efficiency of baggage check-in and the stable operation of airport baggage transportation, and increases the probability of luggage damage.
[0004] Based on the above technical problems, the present application provides a baggage handling system based on computer vision and a robotic arm, the system comprising: a robotic arm, a host computer and a visual device; wherein the robotic arm and the visual device are respectively connected to the host computer for communication; the visual device is used to collect images of a baggage cart and images of baggage; a first conveyor belt is provided at the end of the robotic arm, so that when the baggage falls from the baggage conveying device, the baggage can be connected to the baggage through the first conveyor belt;
[0005] The host computer is used to perform the following steps:
[0006] S100, in response to the luggage arriving at a designated position of the luggage conveyor, obtaining current remaining stacking space information in the luggage cart and position and size information of the current luggage; wherein the current remaining stacking space information in the luggage cart is obtained based on a current luggage cart image, and the position and size information of the current luggage is obtained based on a current luggage image;
[0007] S200, determining stacking posture information and position information of the current luggage on the luggage cart according to the current remaining stacking space information in the luggage cart and the size information of the current luggage;
[0008] S300, determining a target orientation of the first conveyor belt when connecting with the current luggage according to the stacking posture information of the current luggage on the luggage cart and the posture information of the current luggage; wherein when the first conveyor belt connects with the current luggage in the target orientation, the length direction of the current luggage is parallel or perpendicular to the conveying direction of the first conveyor belt;
[0009] S400, controlling the first conveyor belt to receive the current baggage dropped from the baggage conveying device in a target direction;
[0010] S500, controlling the first conveyor belt to move to a position corresponding to the position information of the current luggage on the luggage cart, and controlling the first conveyor belt to rotate forwardly, so that the current luggage falls to the position corresponding to the position information of the current luggage on the luggage cart in a posture corresponding to the stacking posture information.
[0011] Furthermore, the visual device includes a first image acquisition device and a second image acquisition device; wherein the first image acquisition device is used to acquire luggage images; and the second image acquisition device is used to acquire luggage cart images.
[0012] Furthermore, the first image acquisition device includes a laser radar and / or an RGB-D camera; the second image acquisition device includes a laser radar and / or an RGB-D camera.
[0013] Further, step S300 includes the following steps:
[0014] S310, determining a first angle between a center line of the current luggage and a center line of the luggage cart according to the stacking posture information of the current luggage on the luggage cart; wherein the center line of the current luggage is parallel to the length direction of the current luggage, and the center line of the luggage cart is parallel to the length direction of the luggage cart;
[0015] S320, determining a second angle between the center line of the current luggage and the conveying direction of the luggage conveying device according to the current luggage position information;
[0016] S330, if the first angle is within a first preset angle range, determining a direction in which a center line of the first conveyor belt is parallel to a center line of the current luggage as a target direction;
[0017] S340, if the first angle is within the second preset angle range, the direction in which the center line of the first conveyor belt is perpendicular to the center line of the current luggage is determined as the target direction; wherein any angle within the first preset angle range is smaller than the minimum angle of the second preset angle range.
[0018] Furthermore, the first angle ranges from 0° to 20°, and the second angle ranges from 70° to 90°.
[0019] Further, after step S300 and before step S400, the host computer is further configured to perform the following steps:
[0020] S301: If the length direction of the current luggage is not parallel or perpendicular to the conveying direction of the first conveyor belt, control the first conveyor belt to rotate in the reverse direction.
[0021] Furthermore, the system further comprises: a controller; wherein the controller is respectively connected to the host computer and the robotic arm in communication; the controller is preset with a read-only space, a write-only space and a readable and writable space;
[0022] The host computer is preset with a control unit, and the control unit includes an interface call layer and a control module layer; wherein the control unit layer and the control module layer are communicatively connected;
[0023] The interface call layer is provided with a controller cache, and the controller cache is preset with read-only space, write-only space and readable and writable space; the addresses in the read-only space, write-only space and readable and writable space in the controller cache are mapped one by one to the addresses in the read-only space, write-only space and readable and writable space in the controller respectively.
[0024] Furthermore, the host computer is preset with a synchronization process, and the synchronization process is used to perform the following steps:
[0025] S610, obtaining, at every preset time interval, a value of an address that is updated in a read-only space of a controller and a value of an address that is updated in a write-only space of a cache of the controller;
[0026] S611, write the value of each updated address in the read-only space of the controller to the corresponding address in the read-only space of the controller cache, and write the value of each updated address in the write-only space of the controller cache to the corresponding address in the read-only space of the controller.
[0027] Furthermore, the synchronization process is also used to perform the following steps:
[0028] S620, obtaining, at every preset time interval, a current value of a target address in a readable and writable space of a controller cache and a current value of a specified address in a readable and writable space of the controller; wherein the target address is any address in the readable and writable space of the controller cache; and a mapping relationship exists between the target address and the specified address;
[0029] S621, if the current value of the target address is different from the value of the target address at the last preset time, and the current value of the designated address is the same as the value of the designated address at the last preset time, then replace the current value of the designated address with the current value of the target address; the last preset time is the time before the current time by a preset time interval;
[0030] S622: If the current value of the target address is the same as the value of the target address at the last preset time, and the current value of the designated address is different from the value of the designated address at the last preset time, then replace the current value of the target address with the current value of the designated address.
[0031] Furthermore, the synchronization process is also used to perform the following steps:
[0032] S623, if the current value of the target address is the same as the value of the target address at the last preset time, and the current value of the designated address is the same as the value of the designated address at the last preset time, then no operation is performed on the target address and the designated address;
[0033] S624, if the current value of the target address is different from the value of the target address at the last preset time, and the current value of the designated address is different from the value of the designated address at the last preset time, a data abnormality prompt is generated.
[0034] Furthermore, the baggage conveying device includes a second conveyor belt, and the second conveyor belt is fixed by a lifting device.
[0035] Furthermore, before step S100, the host computer is further configured to perform the following steps:
[0036] S010, in response to the baggage handling system issuing a waiting baggage handling instruction, controlling the lifting device to rise to a first preset height, so that the baggage falls from the baggage conveying device to the first conveyor belt.
[0037] Furthermore, before step S100, the host computer is further configured to perform the following steps:
[0038] S020, in response to the baggage handling system issuing a manual baggage handling instruction, controlling the lifting device to descend to a second preset height to manually handle the baggage; wherein the first preset height is greater than the second preset height.
[0039] Furthermore, the duration of the preset time interval ranges from 20ms to 1000ms.
[0040] The present invention has at least the following beneficial effects:
[0041] In the baggage handling system based on computer vision and a mechanical arm of the present invention, the mechanical arm and the visual device are respectively connected to the upper computer for communication; the visual device is installed at a preset position above the baggage conveying device; the visual device is used to collect images of the baggage cart and the baggage; a first conveyor belt is provided at the end of the mechanical arm, so that when the baggage falls from the baggage conveying device, the baggage is connected through the first conveyor belt; since the present invention adopts the form of a conveyor belt to connect the baggage, the baggage slides from the baggage conveying device to the first conveyor belt to realize the connection of the baggage; therefore, when connecting baggage of different sizes, weights, and hardness, no damage will be caused to the baggage.
[0042] Furthermore, the host computer determines the stacking posture information of the current luggage on the luggage cart according to the current remaining stacking space information in the luggage cart and the size information of the current luggage; determines the target orientation of the first conveyor belt when connecting with the current luggage according to the stacking posture information of the current luggage on the luggage cart and the posture information of the current luggage; controls the first conveyor belt to connect with the current luggage dropped from the luggage conveying device with the target orientation; stacks the current luggage on the first conveyor belt to the stacking position corresponding to the stacking posture information on the luggage cart, thereby realizing automatic stacking of the luggage; and when connecting with the luggage, the first conveyor belt determines the target orientation of the first conveyor belt when connecting with the current luggage according to the stacking posture information of the current luggage on the luggage cart and the posture information of the current luggage, so that the luggage is more likely to fall to the corresponding stacking position when stacking. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For technical personnel in the relevant technical field, other drawings can be obtained based on these drawings without paying any creative work.
[0044] Figure 1 A schematic diagram of the hardware structure of a baggage handling system based on computer vision and a robotic arm provided in an embodiment of the present invention;
[0045] Figure 2 A system level schematic diagram of a baggage handling system based on computer vision and a robotic arm provided in an embodiment of the present invention;
[0046] Figure 3 A flowchart of steps executed by a host computer of a baggage handling system based on computer vision and a robotic arm provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0047] The technical solutions in the embodiments of the present application are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by technicians in the relevant technical field without creative work are within the scope of protection of the present application.
[0048] It is noteworthy that in the following description, specific details such as specific system structures, technologies, etc. are proposed for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from hindering the description of the present application.
[0049] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or their collections. It should also be understood that when the term "and / or" is used in the present specification and the appended claims, it refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.
[0050] In the description of the present specification and the appended claims, if the term "if" is used, it can be interpreted as "in the case of" or "when" or "uponce" or "in response to determining" or "in response to detecting" according to the context. Similarly, the phrase "if it is determined" or "if [the described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [the described condition or event] is detected" or "in response to detecting [the described condition or event]" according to the context.
[0051] In the description of this application specification and the appended claims, the terms "first", "second", "third", etc., are only used to distinguish the description and are not to be understood as indicating or implying relative importance, nor are they used to describe a specific order or sequence.
[0052] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways.
[0053] It should be understood that the order of execution of the steps in the following embodiments does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0054] Exemplarily, if there are descriptions in the form of "S100, ...; S200, ...; S300, ...;" and the like in this embodiment, it only provides an exemplary feasible execution order, not a necessary execution order. For example, the above description only indicates that step S100, step S200 and step S300 can be executed sequentially, but they do not have to be executed sequentially. A technician in the relevant technical field can determine the actual and feasible execution order according to the function and internal logic of each step. For example, step S200, step S300 and step S100 can be executed in sequence, or after executing step S100, steps S200 and S300 can be executed in parallel, or other feasible execution orders; at the same time, the description of "S100, ...; S200, ...; S300, ...;" does not limit the complete method to have only these three steps. A technician in the relevant technical field can determine whether to add other reasonable steps before and after any step according to actual needs.
[0055] The following will refer to Figure 1 The hardware structure diagram of the baggage handling system based on computer vision and robotic arm shown in the figure introduces a baggage handling system based on computer vision and robotic arm.
[0056] The baggage handling system based on computer vision and a robotic arm comprises: a robotic arm, a host computer and a visual device; wherein the robotic arm and the visual device are respectively connected to the host computer for communication; the visual device is installed at a preset position above a baggage conveying device; the visual device is used to collect images of a baggage cart and images of baggage; a first conveyor belt is provided at the end of the robotic arm so that when the baggage falls from the baggage conveying device, the baggage can be connected to the first conveyor belt.
[0057] In this embodiment, the system also includes: a controller; wherein the controller is communicatively connected to the host computer and the robotic arm respectively; the visual device includes a first image acquisition device and a second image acquisition device; wherein the first image acquisition device is used to acquire luggage images; and the second image acquisition device is used to acquire luggage cart images.
[0058] In this embodiment, the controller may be a programmable logic controller (PLC); the host computer may be an industrial computer or a mobile computer, etc.; the first image acquisition device may be a laser radar or an RGB-D camera; the second image acquisition device may be a laser radar or an RGB-D camera; when a laser radar is used, the three-dimensional point cloud data of the luggage or the luggage cart may be directly acquired, and when an RGB-D camera is used, the depth image of the luggage or the luggage cart may be acquired and then converted into corresponding three-dimensional point cloud data; gigabit optical fiber may be used for communication between the robotic arm and the controller, between the controller and the host computer, and between the visual device and the host computer; the second image acquisition device may be installed above the center point of the luggage cart parking area to fully cover the luggage cart parking area, so that the second image acquisition device can completely acquire the spatial area image inside the luggage cart.
[0059] Furthermore, the baggage conveying device includes a second conveyor belt, which is fixed by a lifting device; the lifting device is raised to a preset height so that the baggage falls from the baggage conveying device to the first conveyor belt.
[0060] In this embodiment, when the baggage handling system is used for baggage handling, the second conveyor belt can be raised to a preset height, and the baggage can slide onto the first conveyor belt through the second conveyor belt; when the baggage handling system is not used, the second conveyor belt can be lowered for handling by other means.
[0061] The host computer is used to perform the following steps:
[0062] S100, in response to the luggage arriving at a designated position of the luggage conveying device, obtaining current remaining stacking space information in the luggage cart and current position and size information of the luggage; wherein the current remaining stacking space information in the luggage cart is obtained according to the current luggage cart image, and the current position and size information of the luggage is obtained according to the current luggage image.
[0063] In this embodiment, if the current luggage is the first luggage to be transported, before executing step S100, the following steps are also included:
[0064] S001, determining whether each preset sub-area in the luggage cart parking area is blocked; wherein the preset sub-area is a part of the luggage cart parking area.
[0065] In this embodiment, a number of preset sub-areas are set in the luggage cart parking area. For example, the sub-areas corresponding to the four vertices of the rectangular luggage cart parking area are preset sub-areas. It is possible to determine whether each preset sub-area in the luggage cart parking area is blocked by an image recognition method. For example, by determining whether the difference between the current RGB value of the sub-area image corresponding to each preset sub-area and the RGB value at the previous moment is within a preset difference range, it is determined whether each preset sub-area in the luggage cart parking area is blocked.
[0066] S002: If every sub-area is blocked, go to S100; otherwise, go to S001.
[0067] In this embodiment, the preset luggage cart parking area is only used to park luggage carts. If each sub-area is blocked, it means that the luggage cart has been parked in the luggage cart parking area, and the process can proceed to S100; otherwise, it continues to determine whether each preset sub-area in the luggage cart parking area is blocked to determine whether the luggage cart is parked in the luggage cart parking area.
[0068] If the luggage being transported this time is stacked on the luggage, the second imaging device will immediately capture the image of the luggage cart to calculate the stacking posture information corresponding to the next luggage.
[0069] In this embodiment, the installation position of the second image acquisition device is fixed and known, and after the luggage cart is parked in the parking area of the luggage cart, the spatial position coordinates of the luggage cart can also be obtained; the initial stacking space information of the luggage cart when no luggage is stacked is known, and the space information occupied by the luggage currently stacked on the luggage cart can be identified based on the luggage cart image, and the space information occupied by the luggage currently stacked on the luggage cart can be subtracted from the initial stacking space information to obtain the current remaining stacking space information in the luggage cart; it should be noted that those skilled in the art can use existing image processing methods to determine the initial stacking space information of the luggage cart and the space information occupied by the luggage currently stacked on the luggage cart according to actual needs, which will not be elaborated here.
[0070] Further, such as Figure 2 As shown, the baggage conveying device is equipped with several sensors, such as proximity switches, infrared tubes and weighing sensors. The above sensors can determine whether the baggage has reached the preset position of the baggage conveying device and can also obtain the weight of the baggage. In this embodiment, before the first image acquisition device captures the baggage image, it is necessary to determine whether the baggage has reached the preset position of the baggage conveying device through the above sensors. If the baggage has reached the preset position of the baggage conveying device, the baggage image is captured by the first image acquisition device.
[0071] Furthermore, the baggage handling system also includes a safety monitoring device, which includes safety equipment, such as safety gratings, guardrail switches and human body sensors; the safety monitoring device detects personnel and the environment through the above-mentioned safety equipment, and controls the start and stop of the system according to the detection results; for example, if there are personnel or the environment is detected abnormally in the preset working area, the baggage handling system is controlled to stop working to avoid accidents.
[0072] S200, determining stacking posture information and position information of the current luggage on the luggage cart according to the current remaining stacking space information in the luggage cart and the size information of the current luggage.
[0073] In this embodiment, the installation position of the first image acquisition device is fixed and known, the installation position of the luggage conveying device is also fixed and known, and the spatial coordinates between the first image acquisition device and the luggage conveying device can also be pre-calibrated; therefore, the position and size information of the current luggage can be determined by the image of the current luggage taken by the first image acquisition device; those skilled in the art can use existing image processing methods to determine the position and size information of the luggage according to actual needs, which will not be elaborated here.
[0074] In this embodiment, after determining the position information of the luggage, the robot arm needs to move from the static initial position to the position of the luggage, the coordinate information of the static initial position of the robot arm can be obtained, and the position information of the luggage has also been obtained, and the first motion trajectory information of the robot arm can be generated according to the two position coordinates; it should be noted that those skilled in the art can use the existing motion trajectory determination method to determine the first motion trajectory information of the robot arm according to actual needs, which will not be elaborated here.
[0075] like Figure 2 As shown, the information management, motion planning, scheduling strategies of various mechanisms, visual recognition and palletizing strategies of this system are all calculated on the host computer, and the calculation results are sent to the controller for logical control of the hardware through the controller.
[0076] In this embodiment, after obtaining the remaining stacking space information of the luggage cart and the size information of the luggage, the stacking position of the luggage on the luggage cart can be calculated on the host computer through a preset stacking strategy; the stacking strategy can be to preferentially stack the luggage on the side of the luggage cart away from the robotic arm and close to the side wall of the luggage cart.
[0077] S300, determining a target orientation of the first conveyor belt when connecting with the current luggage according to the stacking posture information of the current luggage on the luggage cart and the posture information of the current luggage; wherein, when the first conveyor belt connects with the current luggage with the target orientation, the length direction of the current luggage is parallel or perpendicular to the conveying direction of the first conveyor belt.
[0078] Further, step S300 may include the following steps:
[0079] S310, determining a first angle between a center line of the current luggage and a center line of the luggage cart according to the stacking posture information of the current luggage on the luggage cart; wherein the center line of the current luggage is parallel to a length direction of the current luggage, and the center line of the luggage cart is parallel to the length direction of the luggage cart.
[0080] S320: Determine a second angle between the center line of the current luggage and the conveying direction of the luggage conveying device according to the current luggage position information.
[0081] S330: If the first angle is within a first preset angle range, a direction in which a center line of the first conveyor belt is parallel to a center line of the current luggage is determined as a target direction.
[0082] In this embodiment, the first preset angle range may be 0°-20°; when the first angle is within the first preset angle range, it is determined that the center line of the luggage is parallel to the center line of the luggage cart, thereby improving the redundancy of the judgment.
[0083] S340, if the first angle is within the second preset angle range, the direction in which the center line of the first conveyor belt is perpendicular to the center line of the current luggage is determined as the target direction; wherein any angle in the first preset angle range is smaller than the minimum angle in the second preset angle range.
[0084] In this embodiment, the second preset angle range may be 70°-90°; when the second angle is within the second preset angle range, it is determined that the centerline of the luggage is perpendicular to the centerline of the luggage cart, thereby increasing the redundancy of the determination.
[0085] It should be noted that one end of the width of the luggage cart is parked close to the mechanical arm, that is, the center line of the luggage cart passes through the center of the mechanical arm; when the luggage is conveyed on the luggage conveyor, there are two situations, one is that the center line of the luggage is the same as the conveying direction of the luggage conveyor, and the other is that the center line of the luggage is different from the conveying direction of the luggage conveyor; when the luggage is stacked on the luggage cart, there are two situations where the center line of the luggage is parallel to the center line of the luggage cart and the center line of the luggage cart is perpendicular; therefore, in order to adapt to the stacking of the first conveyor belt, it is necessary to determine the target direction when the first conveyor belt connects the luggage; the determination of the target direction is based on the calculated position and direction of the luggage on the luggage cart, therefore, connecting the luggage with the target direction can make the luggage stacked more neatly during subsequent stacking, thereby improving the space utilization rate of the luggage cart.
[0086] S400, controlling the first conveyor belt to receive the current baggage dropped from the baggage conveying device in a target direction.
[0087] In this embodiment, after receiving the first motion trajectory information and the target orientation, the controller performs timing and logic calculations on each actuator of the robotic arm, and sends the corresponding calculation results to the robotic arm controller at the corresponding timing. The robotic arm controller controls each actuator of the robotic arm to perform corresponding actions; the actuators include: an end conveyor belt, an auxiliary support mechanism, a six-axis motor of the robotic arm, a ground rail servo motor, etc.
[0088] S500, controlling the first conveyor belt to move to a position corresponding to the position information of the current luggage on the luggage cart, and controlling the first conveyor belt to rotate forwardly, so that the current luggage falls to the position corresponding to the position information of the current luggage on the luggage cart in a posture corresponding to the stacking posture information.
[0089] In this embodiment, the controller performs timing and logic calculations on each actuator of the robotic arm, and sends the corresponding calculation results to the robotic arm controller at the corresponding timing. The robotic arm controller controls each actuator of the robotic arm to perform corresponding actions. When the first conveyor belt reaches the position corresponding to the stacking posture information on the luggage cart, the first conveyor belt is rotated forward so that the luggage slides to the corresponding position, thereby completing the stacking of the luggage.
[0090] Furthermore, the baggage handling system based on computer vision and robotic arms also includes a teach pendant, which is communicatively connected to the controller; the teach pendant is used to debug and set parameters of the controller. Simple debugging and parameter setting of the controller can be performed directly on the teach pendant without connecting to a computer, which is more convenient.
[0091] Furthermore, the controller is preset with a read-only space, a write-only space, and a readable and writable space; the host computer is preset with a control unit, and the control unit includes an interface call layer and a control module layer; wherein the control unit layer and the control module layer are in communication connection; the interface call layer is provided with a controller cache, and the controller cache is preset with a read-only space, a write-only space, and a readable and writable space; the addresses in the read-only space, the write-only space, and the readable and writable space in the controller cache are respectively mapped one by one with the addresses in the read-only space, the write-only space, and the readable and writable space in the controller. For example, the read-only space of the controller is preset with an address A, then the read-only space of the host computer is also preset with an address A' that has a mapping relationship with A.
[0092] Furthermore, the control module layer includes an incoming material control module, a baggage docking module and a baggage stacking module; the incoming material control module is used to determine whether the baggage docking device of the robot arm docks the baggage and obtain the size information of the baggage.
[0093] In this embodiment, after the luggage arrives at the preset position of the luggage conveyor belt, the incoming material control module first determines the number of currently connected luggage or the currently remaining stacking space information of the luggage cart to determine whether the luggage can continue to be connected. If the luggage can continue to be connected, the size information of the luggage is obtained; otherwise, an instruction is generated that the luggage cannot continue to be connected.
[0094] The luggage connection module is used to determine first motion trajectory information and stacking position information according to the size information of the luggage, and send the first motion trajectory information and stacking position information to the controller cache to update the value of the address in the controller through the controller cache.
[0095] The baggage transfer module can call preset stacking strategies, motion planning algorithms, etc. to determine the stacking position information of the first motion trajectory information; and update the value of the corresponding address in the controller through the above information.
[0096] The baggage stacking module is used to obtain the current remaining stacking space information on the baggage cart after the baggage stacking is completed, so that the stacking space information on the baggage cart obtained by the baggage handling system is always the latest, so as to facilitate the subsequent calculation of the stacking position information of the baggage.
[0097] Furthermore, the host computer is preset with a synchronization process, and the synchronization process is also used to perform the following steps:
[0098] S620, at every preset time interval, obtain the current value of the target address in the readable and writable space of the controller cache and the current value of the specified address in the readable and writable space of the controller; wherein the target address is any address in the readable and writable space of the controller cache; there is a mapping relationship between the target address and the specified address.
[0099] In this embodiment, the synchronization process is used to synchronize data for each address in the controller cache with the corresponding address in the controller; wherein the time interval between two adjacent data synchronizations is a preset time interval; the duration of the preset time interval ranges from 20ms to 1000ms; for example: the preset time interval is 200ms; the synchronization process executes a synchronous update of the variables on the host computer and the variables on the controller every 200ms.
[0100] S621, if the current value of the target address is different from the value of the target address at the last preset time, and the current value of the designated address is the same as the value of the designated address at the last preset time, then the current value of the designated address is replaced with the current value of the target address; the last preset time is the time before the current time by a preset time interval.
[0101] S622: If the current value of the target address is the same as the value of the target address at the last preset time, and the current value of the designated address is different from the value of the designated address at the last preset time, then replace the current value of the target address with the current value of the designated address.
[0102] In this embodiment, an address in the read-only space can only read the value corresponding to the address, and an address in the write-only space can only write the corresponding value to the address. A readable and writable address means that the value corresponding to the address can be both written and read.
[0103] Furthermore, the synchronization process is also used to perform the following steps:
[0104] S623: If the current value of the target address is the same as the value of the target address at the last preset time, and the current value of the designated address is the same as the value of the designated address at the last preset time, then no operation is performed on the target address and the designated address.
[0105] S624, if the current value of the target address is different from the value of the target address at the last preset time, and the current value of the designated address is different from the value of the designated address at the last preset time, a data abnormality prompt is generated.
[0106] In this embodiment, under normal circumstances, since the data processing timing of the upper-level business logic has been determined, the values of two addresses with a mapping relationship will not be updated simultaneously in the same cycle. If the current value of the target address is different from the value of the target address at the last preset moment, and the current value of the specified address is different from the value of the specified address at the last preset moment, it indicates that there is an abnormality in the system data.
[0107] It should be noted that the tasks on the host computer perform read and write operations on the variables on the host computer, and the tasks on the host computer do not directly read and write operations on the variables on the controller; the update of the value of the variable on the controller is controlled by the synchronization process, which is not real-time synchronization, but synchronization at preset time intervals; using such a data synchronization strategy, when multiple tasks perform read and write operations on the same variable, there is no need for multiple tasks to access the controller, which avoids controller paralysis and improves the stability of data reading and writing.
[0108] In addition, when the business task of the baggage handling system requires the value of a certain variable, it only needs to read the value of the corresponding variable on the host computer, without frequently accessing the controller, reducing the communication pressure between the host computer and the controller and improving the stability of data transmission.
[0109] In this embodiment, the read and write operations of multiple tasks on the same variable have a certain timing, which is pre-set and determined by the processing logic of the business end; that is, there will not be multiple tasks performing read and write operations on the same variable at the same time, thereby avoiding the problem of system crash caused by multiple tasks performing read and write operations on the same variable at the same time.
[0110] Furthermore, the baggage conveying device includes a second conveyor belt, and the second conveyor belt is fixed by a lifting device.
[0111] Before step S100, the host computer is also used to perform the following steps:
[0112] S010, in response to the baggage handling system issuing a waiting baggage handling instruction, controlling the lifting device to rise to a first preset height, so that the baggage falls from the baggage conveying device to the first conveyor belt.
[0113] S020, in response to the baggage handling system issuing a manual baggage handling instruction, controlling the lifting device to descend to a second preset height to manually handle the baggage; wherein the first preset height is greater than the second preset height.
[0114] In this embodiment, the second conveyor belt is fixed by a lifting device. After the handling system is ready, a waiting instruction for handling luggage is generated, indicating that the handling system can perform the handling action at this time, and the lifting device is raised to a first preset height, so that the luggage can slide from the second conveyor belt to the first conveyor belt; however, the handling system may also fail. When the handling system fails, the lifting device is lowered to the second preset height to manually handle the luggage; thereby avoiding the situation where the luggage cannot be handled when the handling system fails.
[0115] In the baggage handling system based on computer vision and a robotic arm of this embodiment, the robotic arm and the visual device are respectively connected to the host computer in communication; the visual device is installed at a preset position above the baggage conveying device; the visual device is used to collect images of the baggage cart and the baggage; a first conveyor belt is provided at the end of the robotic arm, so that when the baggage falls from the baggage conveying device, the baggage can be connected through the first conveyor belt; since the present invention adopts the form of a conveyor belt to connect the baggage, the baggage slides from the baggage conveying device to the first conveyor belt to achieve the connection of the baggage; therefore, when connecting baggage of different sizes, weights, and hardness, no damage will be caused to the baggage.
[0116] In addition, the upper computer determines the current remaining stacking space information in the luggage cart according to the current luggage cart image; determines the position information and size information of the current luggage according to the current luggage image; determines the stacking position information of the current luggage on the luggage cart according to the current remaining stacking space information in the luggage cart and the size information of the current luggage; determines the target orientation of the first conveyor belt when connecting with the current luggage according to the stacking position information of the current luggage on the luggage cart and the position information of the current luggage; controls the first conveyor belt to connect with the current luggage dropped from the luggage conveying device with the target orientation; stacks the current luggage on the first conveyor belt to the stacking position corresponding to the stacking position information on the luggage cart, thereby realizing automatic stacking of the luggage; and when connecting with the luggage, the first conveyor belt will determine the target orientation of the first conveyor belt when connecting with the current luggage according to the stacking position information of the current luggage on the luggage cart and the position information of the current luggage, so that the luggage is more likely to fall to the corresponding stacking position when stacking.
[0117] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0118] Although some specific embodiments of the present invention have been described in detail by way of example, it should be understood by those skilled in the art that the above examples are only for illustration, not for limiting the scope of the present invention. It should also be understood by those skilled in the art that various modifications may be made to the embodiments without departing from the scope and spirit of the present invention.
Claims
1. A baggage handling system based on computer vision and robotic arms, characterized in that: The system comprises: a mechanical arm, a host computer and a visual device; wherein the mechanical arm and the visual device are respectively connected to the host computer for communication; the visual device is used to collect images of the luggage cart and the luggage; a first conveyor belt is provided at the end of the mechanical arm, so that when the luggage falls from the luggage conveying device, the luggage can be connected to the first conveyor belt; The host computer is used to perform the following steps: S100, in response to the luggage arriving at a designated position of the luggage conveyor, obtaining current remaining stacking space information in the luggage cart and position and size information of the current luggage; wherein the current remaining stacking space information in the luggage cart is obtained based on a current luggage cart image, and the position and size information of the current luggage is obtained based on a current luggage image; S200, determining stacking posture information and position information of the current luggage on the luggage cart according to the current remaining stacking space information in the luggage cart and the size information of the current luggage; S300, determining a target orientation of the first conveyor belt when connecting with the current luggage according to the stacking posture information of the current luggage on the luggage cart and the posture information of the current luggage; wherein when the first conveyor belt connects with the current luggage in the target orientation, the length direction of the current luggage is parallel or perpendicular to the conveying direction of the first conveyor belt; S400, controlling the first conveyor belt to receive the current baggage dropped from the baggage conveying device in a target direction; S500, controlling the first conveyor belt to move to a position corresponding to the position information of the current luggage on the luggage cart, and controlling the first conveyor belt to rotate forwardly, so that the current luggage falls to the position corresponding to the position information of the current luggage on the luggage cart in a posture corresponding to the stacking posture information; The visual device comprises a first image acquisition device and a second image acquisition device; wherein the first image acquisition device is used to acquire luggage images; and the second image acquisition device is used to acquire luggage cart images; Step S300 includes the following steps: S310, determining a first angle between a center line of the current luggage and a center line of the luggage cart according to the stacking posture information of the current luggage on the luggage cart; wherein the center line of the current luggage is parallel to the length direction of the current luggage, and the center line of the luggage cart is parallel to the length direction of the luggage cart; S320, determining a second angle between the center line of the current luggage and the conveying direction of the luggage conveying device according to the current luggage position information; S330, if the first angle is within a first preset angle range, determining a direction in which a center line of the first conveyor belt is parallel to a center line of the current luggage as a target direction; S340, if the first angle is within the second preset angle range, determining the direction in which the center line of the first conveyor belt is perpendicular to the center line of the current baggage as the target direction; wherein any angle within the first preset angle range is smaller than the minimum angle within the second preset angle range; After step S300 and before step S400, the host computer is further used to perform the following steps: S301: If the length direction of the current luggage is not parallel or perpendicular to the conveying direction of the first conveyor belt, control the first conveyor belt to rotate in the reverse direction.
2. The baggage handling system based on computer vision and robotic arms according to claim 1, characterized in that: The first image acquisition device includes a laser radar and / or an RGB-D camera; the second image acquisition device includes a laser radar and / or an RGB-D camera.
3. The baggage handling system based on computer vision and robotic arms according to claim 1, characterized in that: The first angle ranges from 0° to 20°, and the second angle ranges from 70° to 90°.
4. The baggage handling system based on computer vision and robotic arms according to claim 1, characterized in that: The system further comprises: a controller; wherein the controller is respectively connected to the host computer and the robot arm in communication; the controller is preset with a read-only space, a write-only space and a readable and writable space; The host computer is preset with a control unit, and the control unit includes an interface call layer and a control module layer; wherein the control unit is communicatively connected with the control module layer; The interface call layer is provided with a controller cache, and the controller cache is preset with read-only space, write-only space and readable and writable space; the addresses in the read-only space, write-only space and readable and writable space in the controller cache are mapped one by one to the addresses in the read-only space, write-only space and readable and writable space in the controller respectively.
5. The baggage handling system based on computer vision and robotic arms according to claim 4, characterized in that: The host computer is preset with a synchronization process, and the synchronization process is used to perform the following steps: S610, obtaining, at every preset time interval, a value of an address that is updated in a read-only space of a controller and a value of an address that is updated in a write-only space of a cache of the controller; S611, write the value of each updated address in the read-only space of the controller to the corresponding address in the read-only space of the controller cache, and write the value of each updated address in the write-only space of the controller cache to the corresponding address in the read-only space of the controller.
6. The baggage handling system based on computer vision and robotic arms according to claim 5, characterized in that: The synchronization process is also used to perform the following steps: S620, obtaining, at every preset time interval, a current value of a target address in a readable and writable space of a controller cache and a current value of a specified address in a readable and writable space of the controller; wherein the target address is any address in the readable and writable space of the controller cache; and a mapping relationship exists between the target address and the specified address; S621, if the current value of the target address is different from the value of the target address at the last preset time, and the current value of the designated address is the same as the value of the designated address at the last preset time, then replace the current value of the designated address with the current value of the target address; the last preset time is the time before the current time by a preset time interval; S622: If the current value of the target address is the same as the value of the target address at the last preset time, and the current value of the designated address is different from the value of the designated address at the last preset time, then replace the current value of the target address with the current value of the designated address.
7. The baggage handling system based on computer vision and robotic arms according to claim 6, characterized in that: The synchronization process is also used to perform the following steps: S623, if the current value of the target address is the same as the value of the target address at the last preset time, and the current value of the designated address is the same as the value of the designated address at the last preset time, then no operation is performed on the target address and the designated address; S624, if the current value of the target address is different from the value of the target address at the last preset time, and the current value of the designated address is different from the value of the designated address at the last preset time, a data abnormality prompt is generated.
8. The baggage handling system based on computer vision and robotic arms according to claim 1, characterized in that: The baggage conveying device comprises a second conveyor belt, and the second conveyor belt is fixed by a lifting device.
9. The baggage handling system based on computer vision and robotic arms according to claim 8, characterized in that: Before step S100, the host computer is also used to perform the following steps: S010, in response to the baggage handling system issuing a waiting baggage handling instruction, controlling the lifting device to rise to a first preset height, so that the baggage falls from the baggage conveying device to the first conveyor belt.
10. The baggage handling system based on computer vision and robotic arms according to claim 9, characterized in that: Before step S100, the host computer is also used to perform the following steps: S020, in response to the baggage handling system issuing a manual baggage handling instruction, controlling the lifting device to descend to a second preset height to manually handle the baggage; wherein the first preset height is greater than the second preset height.
11. The baggage handling system based on computer vision and robotic arms according to claim 10, characterized in that: The preset time interval ranges from 20ms to 1000ms.
