Method, apparatus, conveying apparatus, and storage medium for detecting the position and orientation of articles.
By employing reflectors on carriers to enhance laser point cloud data acquisition and processing, the method accurately determines the position and orientation of articles, addressing the limitations of existing technologies in detecting irregularly shaped objects in intelligent warehousing.
Patent Information
- Application Number
- JP2026524667
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-10-27
- Filing Date
- 2024-07-04
- Publication Date
- 2026-11-24
AI Technical Summary
Existing methods for detecting the position and orientation of articles in intelligent warehousing, particularly for irregularly shaped objects, are inaccurate due to the inability of 3D lasers to capture complete contact surface data from non-flat surfaces, leading to incomplete detection.
The use of at least two reflectors mounted on opposite sides of a carrier, which reflect laser beams to enable accurate acquisition of laser point cloud data, followed by point cloud separation and processing to determine the position and orientation of articles relative to a conveying device, regardless of their shape.
Enables precise detection of both regular and irregular articles' positions and orientations by utilizing reflectors to supplement lighting in dark areas and improve data accuracy, allowing for effective article handling by conveying devices.
Smart Images

Figure 2026539292000001_ABST
Abstract
Description
[Technical Field]
[0001] The present invention relates to the technical field of intelligent warehousing, in particular to a method and apparatus for detecting the position and orientation of an article, a conveying device, and a storage medium. <Cross-reference to Related Applications> This application claims priority to Chinese Patent Application No. 202311411761.1, filed with the China National Intellectual Property Administration on October 27, 2023, the entire content of which is incorporated herein by reference. [Background Art]
[0002] With the development of intelligent industry and intelligent logistics, warehouse management has become increasingly unmanned, and detection of the position and orientation of articles plays a very important role in warehouse management. How a conveying device conveys randomly placed articles is an important issue in the intelligent warehousing industry, and the most important issue among them is how to accurately detect the position and orientation of the articles. [Summary of the Invention]
[0003] Embodiments of the present invention disclose a method and apparatus for detecting the position and orientation of an article, a conveying device, and a storage medium, which can accurately detect the position and orientation of an irregular article.
[0004] In a first aspect, the present invention provides A method for detecting the position and orientation of an article, for determining the position and orientation of the article palletized on a carrier relative to a conveying device, the method comprising: obtaining laser point cloud data, wherein the laser point cloud data is obtained by scanning the carrier using a laser detection device, at least two reflectors are mounted on the carrier, the at least two reflectors are distributed on opposite sides of the carrier, and the at least two reflectors are each configured to reflect a laser beam emitted by the laser detection device toward the article; The steps include performing point cloud separation on the laser point cloud data to obtain reflection point cloud data for each of the at least two reflectors, The present invention provides a method for detecting the position and orientation of an article, which includes the step of detecting the position and orientation of the article based on the reflection point cloud data of each of the at least two reflectors, and obtaining the relative position and orientation of the article with respect to the conveying device.
[0005] In the above method for detecting the position and orientation of an article, laser point cloud data is acquired, point cloud separation is performed on the laser point cloud data to obtain reflection point cloud data for at least two reflectors, and finally, the position and orientation of the article is detected based on the reflection point cloud data for at least two reflectors to obtain the relative position and orientation of the article with respect to the transport device. The article here may be a regular article or an irregular article, and the present invention is not limited. The present invention allows for the determination of a second relative position and orientation of the article with respect to the laser detection device by installing at least two reflectors on opposing sides of a carrier and acquiring point cloud data for at least two reflectors, and then determining the second relative position and orientation of the article with respect to the laser detection device by performing a coordinate transformation on the second relative position and orientation of the article with respect to the laser detection device. As a result, regardless of whether the article is a regular article or not, the relative position and orientation of the article with respect to the transport device can be calculated using the point cloud data of at least two reflectors on the carrier, thereby realizing the detection of the position and orientation of an irregular article.
[0006] In some embodiments, the at least two reflectors have different reflectivity, and the step of performing point cloud separation on the laser point cloud data to obtain the reflected point cloud data for each of the at least two reflectors is: A step of performing preprocessing on the laser point cloud data to obtain the point cloud data after preprocessing, wherein the preprocessing includes at least one of point cloud filtering, anomaly removal, data cleansing, and data conversion. The method includes the step of performing point cloud separation on the preprocessed point cloud data based on the difference in reflection intensity between the at least two reflectors to obtain reflection point cloud data for each of the at least two reflectors.
[0007] In some embodiments, the step of performing point cloud separation on the preprocessed point cloud data based on the difference in reflectance between the at least two reflectors to obtain the reflectance point cloud data for each of the at least two reflectors is: The process includes the step of performing point cloud clustering of different reflectors on the preprocessed point cloud data using a pre-configured density clustering algorithm to obtain reflection point cloud data for each of the at least two reflectors.
[0008] In some embodiments, the at least two reflectors include at least one first reflector provided on the first side of the carrier and at least one second reflector provided on the second side of the carrier opposite to the first side, and the step of detecting the position and orientation of an article based on the reflected point cloud data of each of the at least two reflectors and obtaining the relative position and orientation of the article with respect to the conveying device is: The steps include: detecting the position and orientation of an article based on the reflection point cloud data of the first reflector and the second reflector in each pair of reflectors, which consist of any first reflector and any second reflector, and obtaining a first relative position and orientation of the article with respect to the conveying device that corresponds to the pair of reflectors; The method includes the step of determining the relative position and orientation of the article with respect to the conveying device based on the first relative position and orientation corresponding to each pair of reflectors among the plurality of pairs of reflectors.
[0009] In some embodiments, the step of determining the relative position and orientation of the article with respect to the conveying device based on the first relative position and orientation corresponding to each pair of reflectors among the plurality of pairs of reflectors is: A step of performing a calculation process for the first relative position and orientation corresponding to each of the plurality of pairs of reflectors, and determining the result of the calculation process as the relative position and orientation of the article with respect to the conveying device, wherein the calculation process includes calculating the average or taking the mode.
[0010] In some embodiments, the step of detecting the position and orientation of an article based on the reflection point cloud data of the first reflector and the second reflector in the pair of reflectors, and obtaining a first relative position and orientation of the article with respect to the conveying device corresponding to the pair of reflectors, is as follows: The steps include performing template matching on the reflection point cloud data of the first reflector and the second reflector, After the template matching is successful, the position and orientation are calculated based on the reflection point cloud data of the first reflector and the second reflector, and a second relative position and orientation of the article with respect to the laser detection device is obtained. The method includes the step of performing a coordinate transformation on the second relative position and orientation of the article with respect to the laser detection device to obtain the first relative position and orientation of the article with respect to the transport device.
[0011] In some embodiments, the step of calculating the position and orientation based on the reflection point cloud data of the first reflector and the second reflector, and obtaining the second relative position and orientation of the article with respect to the laser detection device, is as follows: The steps include: performing a centroid calculation based on the respective reflection point cloud data of the first reflector and the second reflector, and obtaining the first centroid of the first reflection point cloud data corresponding to the first reflector and the second centroid of the second reflection point cloud data corresponding to the second reflector; The steps include: calculating the center point and inclination based on the first and second centroids to obtain the second relative position and orientation of the article with respect to the laser detection device, wherein the second relative position and orientation of the article with respect to the laser detection device includes the position of the article with respect to the laser detection device and the direction of the article with respect to the laser detection device; The center point of the line connecting the first center of gravity and the second center of gravity is defined as the position of the article relative to the laser detection device, and the orientation of the article relative to the laser detection device is determined based on the target inclination of the target line formed by the first center of gravity and the second center of gravity with respect to a preset reference line.
[0012] In some embodiments, the step of calculating the center point and inclination based on the first and second centers of gravity to obtain the second relative position and orientation of the article with respect to the laser detection device is: A step of obtaining a preset standard inclination, wherein the preset standard inclination is the inclination of a straight line formed by the center point of the first reflector and the center point of the second reflector with respect to the reference line when the carrier is in a preset standard position, A step of calculating the difference in slope between the target slope and the standard slope, The process includes the steps of determining a target angle corresponding to the difference in inclination and setting the target angle as the direction of placement.
[0013] In some embodiments, the step of determining the orientation of the article relative to the laser detection device based on the target inclination of the target line, which consists of the first and second centroids, with respect to the preset reference line, is: When the first reflector and the second reflector are installed facing each other on the carrier, the standard inclination is zero, and the step of determining the placement direction based on the target inclination, The method includes the step of determining the orientation based on the target angle corresponding to the difference in inclination between the target inclination and the standard inclination, provided that the first reflector and the second reflector are installed in the carrier not facing each other.
[0014] In some embodiments, the step of performing a coordinate transformation on the second relative position and orientation of the article with respect to the laser detection device to obtain the first relative position and orientation of the article with respect to the transport device is: The step includes performing a coordinate transformation of the second relative position and orientation of the article with respect to the laser detection device by rotating and translating the article with respect to the laser detection device based on a pre-calibrated external parameter matrix, thereby obtaining the first relative position and orientation of the article with respect to the transport device. The aforementioned external parameter matrix reflects the transformation from the world coordinate system in which the laser detection device is located to the target coordinate system in which the transport device is located.
[0015] In some embodiments, the step of performing template matching on the reflection point cloud data of the first reflector and the second reflector is: The process includes the steps of calculating a first similarity between the template point cloud data and the reflection point cloud data of the first reflector, and a second similarity between the template point cloud data and the reflection point cloud data of the second reflector, If both the first similarity and the second similarity are greater than a preset threshold, it indicates that the template matching was successful. If at least one of the first similarity and the second similarity is less than or equal to the preset threshold, it indicates that the template matching was unsuccessful.
[0016] In a second aspect, the present invention is A device for detecting the position and orientation of an article palletized on a carrier with respect to a conveying device, An acquisition module for acquiring laser point cloud data, wherein the laser point cloud data is acquired by scanning the carrier using a laser detection device, at least two reflectors are attached to the carrier, the at least two reflectors are distributed on opposing sides of the carrier, and both of the at least two reflectors are used to reflect the laser irradiated onto the article by the laser detection device, and A separation module for performing point cloud separation on the laser point cloud data and obtaining reflection point cloud data for each of the at least two reflectors, A detection module configured to detect a position and orientation of an article based on reflection point cloud data of each of the at least two reflectors, and obtain a relative position and orientation of the article with respect to the transport device. An article position and orientation detection device is provided.
[0017] In a third aspect, the present invention provides a transport device including a memory and a processor coupled to the memory. The processor is configured to execute the method for detecting a position and orientation of an article based on instructions stored in the memory.
[0018] In a fourth aspect, the present invention provides a computer-readable storage medium having computer program instructions stored thereon, which, when executed by one or more processors, implement the method for detecting a position and orientation of an article described above. A computer-readable storage medium is provided.
[0019] The second to fourth aspects of the embodiments of the present invention are consistent with the technical solution of the first aspect of the embodiments of the present invention, and the beneficial effects obtained by each aspect and the corresponding possible embodiments are similar, so the description thereof is omitted here. [Brief Description of Drawings]
[0020] To more clearly describe the technical solutions of the embodiments of the present invention, the following briefly describes the drawings required for the description of the embodiments. Apparently, the drawings in the following description are only some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without creative efforts. [Figure 1] FIG. 1 is a schematic scenario diagram of article position and orientation detection according to an embodiment of the present invention. [Figure 2] FIG. 2 is a schematic structural diagram of a transport device according to an embodiment of the present invention. [Figure 3] FIG. 3 is a schematic flowchart of a method for detecting a position and orientation of an article according to an embodiment of the present invention. [Figure 4] FIG. 4 is a schematic flowchart of another method for detecting a position and orientation of an article according to an embodiment of the present invention. [Figure 5]This is a schematic flowchart of a method for detecting the position and orientation of another article according to an embodiment of the present invention. [Figure 6] This is a schematic diagram of the standard orientation of the carrier according to an embodiment of the present invention. [Figure 7A] This is a schematic diagram showing two reflectors according to an embodiment of the present invention, installed facing each other. [Figure 7B] This is a schematic diagram showing two reflectors according to an embodiment of the present invention, installed in a non-facing orientation. [Figure 8] This is a schematic diagram of the structure of an article position and orientation detection device according to an embodiment of the present invention. [Figure 9] This is a schematic diagram of the structure of a computer device according to an embodiment of the present invention. [Modes for carrying out the invention]
[0021] The technical concepts in the embodiments of the present invention will be described clearly and completely below with reference to the drawings of the embodiments of the present invention. Clearly, the embodiments described are only a selection of embodiments of the present invention, not all embodiments. All other embodiments obtained by those skilled in the art without creative work based on the embodiments of the present invention are within the scope of the protection of the present invention.
[0022] Furthermore, the terms “including,” “having,” and any variations thereof in the embodiments and drawings of the present invention are intended to be non-exclusive inclusions. For example, a process, method, system, product, or device comprising a series of steps or units may, at their discretion, include, but is not limited to, any other steps or units not listed, or any other steps or units specific to these processes, methods, products, or devices.
[0023] The following description refers to “some embodiments” that describe a subset of all possible embodiments, but “some embodiments” may be the same subset or different subsets of all possible embodiments, and may be combined with each other as long as they do not contradict each other.
[0024] Currently, a 3D laser is typically used to directly illuminate an object, and a camera acquires characteristic data of the object. Based on this characteristic data, the position and orientation of the object are determined. This method requires that the object be a regular, standard-shaped object, such as a cube or rectangular prism. Since each contact surface of a regular object is flat, when illuminating a regular object, the camera can acquire collected data that includes one or more complete contact surfaces of the regular object. After identifying and separating one or more contact surfaces from the collected data, the position of the object relative to the camera can be determined by the distribution position of the acquired contact surfaces in the collected data, and the orientation of the object relative to the camera can be determined by the orientation of the acquired contact surfaces in the collected data. In this way, the position and orientation can be considered the relative position and orientation of the object with respect to the camera.
[0025] However, with irregular objects, the contact surface may not be flat. For example, if the contact surface has indentations or protrusions, and the 3D laser is shone on this part of the contact surface, the camera cannot acquire complete contact surface data, cannot completely isolate the data corresponding to that contact surface, and therefore cannot calculate the relative position and orientation of the irregular object with respect to the camera. In other words, if a method of directly shining a 3D laser on an object is adopted, it is not possible to accurately detect the position and orientation of an irregular object.
[0026] First, we will describe an example of a scenario to which the present invention is applied.
[0027] Figure 1 is a schematic diagram of a scenario for detecting the position and orientation of articles according to an embodiment of the present invention. The scenario shown in Figure 1 includes a transport device 100 such as an unmanned forklift, a laser detection device 200, and a carrier 300 such as a pallet. In intelligent warehouse storage, articles are palletized onto the carrier 300 for stacking in the warehouse. At least two reflectors are attached to the carrier 300, and at least two reflectors are distributed on opposite sides of the carrier. The figure illustrates, but is not limited to, that the at least two reflectors include a first reflector 301 and a second reflector 302. The method of attaching the reflectors is not limited, and the reflectors are attached to the carrier 300 by means of adhesive, for example. Here, the first reflector 301 and the second reflector 302 may be installed facing each other or not facing each other, and in actual applications this may be determined according to the actual needs of the system or the preference of the user, and the two reflectors in Figure 1 being installed symmetrically on both sides of the carrier 300 is only one embodiment and does not limit the present invention. The present invention does not limit the shapes of the first reflector 301 and the second reflector 302. For example, in Figure 1, both the first reflector 301 and the second reflector 302 are square, and in actual applications, they may be determined according to the actual needs of the system or the user's preference. The present invention is not limited. The conveying device 100 may be, for example, an unmanned forklift, an automated guided vehicle (AGV), or other conveying device that can load and unload goods from a carrier. The present invention is not limited. The carrier 300 may be, for example, a pallet, a shelf, or other platform on which goods can be palletized.
[0028] The present invention does not limit the material of each of the at least two reflectors, and typically the reflectances of the at least two reflectors are different in order to ensure that the point cloud data formed by the reflection of each of the at least two reflectors are different.
[0029] The present invention does not limit the number and shape of articles palletized on the carrier 300, and may be determined according to actual needs. For example, the articles according to the present invention may be regular articles with a regular shape, or irregular articles with an irregular shape. The size of the articles is also not limited, and for example, they may be irregular articles with different specifications and sizes.
[0030] The laser detection device 200 emits a laser signal and collects laser point cloud data reflected by an object or reflector. In practical applications, the laser detection device 200 and the carrier 300 are positioned opposite each other to ensure that the laser detection device 200 can scan and collect the laser point cloud data reflected back by the reflectors (e.g., the first reflector 301 and the second reflector 302 described above). The present invention does not limit the specific installation location of the laser detection device 200; for example, the laser detection device 200 may be installed approximately 2 meters directly in front of the carrier 300.
[0031] This invention utilizes the reflection of a reflector to collect corresponding laser point cloud data, enabling supplemental lighting for articles. By using the reflection principle of the reflector, it can supplement light in dark areas of articles, and its effect is most pronounced in some dark areas present in irregularly shaped articles. By making articles with low original reflectivity have good reflectivity, the accuracy of the collected laser point cloud data of the article can be improved.
[0032] Furthermore, the laser detection device 200 of the present invention may be arranged as part of the transport device 100, or it may be arranged independently of the transport device 100, and the present invention is not limited to these. Also, the laser detection device 200 of the present invention may be a laser detector, a laser camera, or another device for laser detection, and the present invention is not limited to these.
[0033] The conveying device 100 transports items stacked in the warehouse according to the actual situation. For example, based on the relative position and orientation of the items with respect to the conveying device 100, the conveying device 100 adjusts its direction toward the carrier 300 or shelf, then retrieves the items through actions such as lifting and lowering, thereby achieving the transport of the items. Here, the relative position and orientation of the items with respect to the conveying device 100 can be obtained by analyzing laser point cloud data collected by the laser detection device 200, and the specific principle is described in detail below.
[0034] Next, an example of a conveying device to which the present invention is applied will be described.
[0035] Figure 2 is a schematic diagram of the structure of a possible transport device 100 according to an embodiment of the present invention. As shown in the figure, the transport device 100 may include a processor 1001 (e.g., a Central Processing Unit (CPU)), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005, and a laser detection device 1006. The communication bus 1002 is used to enable connection and communication between these components. The user interface 1003 may include input units such as a display and a keyboard, and in some embodiments, the user interface 1003 may further include a standard wired interface and a wireless interface. The network interface 1004 may include a standard wired interface and a wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The memory 1005 may be high-speed random access memory (RAM) memory or stable non-volatile memory (NVM) such as disk memory. The memory 1005 may be a storage device independent of the processor 1001.
[0036] In some embodiments, the laser detection device 1006 may be installed on the transport device 100 or may be independent of the transport device 100. The figure illustrates, but is not limited to, the installation of the laser detection device 1006 on the transport device 100. The laser detection device may be a laser detector, a laser camera, or other device, and the present invention is not limited to these.
[0037] In some embodiments, the memory 1005 described above may include an operating system, a network communication module, a user interface module, and a program corresponding to a method for detecting the position and orientation of an article.
[0038] In some embodiments, the network interface 1004 is primarily used for data communication with a network server, and the user interface 1003 is primarily used for data interaction with a user.
[0039] Furthermore, the processor 1001 and memory 1005 in the transport device of the present invention may be provided in the transport device, and the transport device can call a program corresponding to the method for detecting the position and orientation of an article stored in the memory 1005 by the processor 1001 and execute the method for detecting the position and orientation of an article according to an embodiment of the present invention. The specific mounting position of the laser detection device 1006 can be set by those skilled in the art according to their actual needs, and the present invention is not limited thereto.
[0040] Note that the structure of the conveying device shown in Figure 2 is not limited to conveying devices, and may include more or fewer parts, combinations of some parts, or different arrangements of parts than those shown.
[0041] Based on the above examples, the following describes the method examples according to the present invention.
[0042] Figure 3 is a schematic flowchart of a method for detecting the position and orientation of an article according to an embodiment of the present invention. The method shown in Figure 3 is applicable to a conveying device 100 and is used to determine the position and orientation of an article palletized on a carrier relative to the conveying device, and the method includes steps S301 to S303.
[0043] S301, laser point cloud data is acquired by scanning the carrier using a laser detection device, at least two reflectors are attached to the carrier, the at least two reflectors are distributed on opposite sides of the carrier, and both of the at least two reflectors are used to reflect the laser that the laser detection device irradiates onto the article.
[0044] The present invention is not limited to the method of acquiring laser point cloud data. For example, the data may be collected by directly calling the laser detection device 200, or it may be acquired from another device (e.g., a server) via a network.
[0045] The laser point cloud data of the present invention is point cloud data obtained by laser scanning a carrier 300 on which articles are palletized using a laser detection device 200. Specifically, the laser signal from the laser detection device 200 strikes the articles palletized on the carrier 300 and is reflected. The light reflected by the articles is then reflected by at least two reflectors attached to the carrier 300 (for example, the first reflector 301 and the second reflector 302 in Figure 1), and the light incident on the laser detection device 200 can form corresponding laser point cloud data, thereby enabling the laser detection device 200 to acquire the above-mentioned laser point cloud data.
[0046] S302, Point cloud separation is performed on the laser point cloud data to obtain reflection point cloud data for each of the at least two reflectors.
[0047] The present invention is not limited to the specific method of point cloud separation described above. For example, in one possible embodiment, the present invention can directly perform point cloud data separation of different reflectors from laser point cloud data.
[0048] In another possible embodiment, in order to improve calculation accuracy, the present invention first preprocesses the laser point cloud data to obtain preprocessed point cloud data, separates the point cloud data of different reflectors from the preprocessed point cloud data to obtain the reflection point cloud data for each of the at least two reflectors, and the specific implementation of point cloud data separation is described in detail below.
[0049] S303, the position and orientation of the article is detected based on the reflection point cloud data of each of the at least two reflectors, and the relative position and orientation of the article with respect to the conveying device is obtained.
[0050] The relative position and orientation of the article with respect to the transport device may include the placement position of the article with respect to the transport device and the placement direction of the article with respect to the transport device. The placement direction reflects the rotational direction of the coordinate system in which the article is located with respect to the coordinate system in which the transport device is located. The placement direction can be determined by the positional difference between the point cloud data corresponding to each of any two reflectors located relative to the carrier. For example, the rotational direction can be considered as the angle between the line connecting reflector 1 and reflector 3 and the standard reference line, or the angle between the line connecting reflector 2 and reflector 4 and the standard reference line. Since at least two reflectors are attached to the carrier and the article is fixed to the carrier, the angle between the line connecting the reflectors and the reference line, calculated based on the positional difference between the point cloud data corresponding to each of any two reflectors, can be used as the placement direction of the article with respect to the laser detection device.
[0051] Accordingly, since at least two reflectors are provided on opposite sides of the carrier, by calculating the average coordinates of the point cloud data corresponding to any two reflectors located on opposite sides of the carrier, for example, the average coordinates of the point cloud data of reflector 1 and the point cloud data of reflector 3, the distance of the centerline of the article to the conveying device can be reflected, and the position of the article relative to the conveying device can be obtained. Therefore, regardless of whether the article is a regular shape or not, the relative position and orientation of the article relative to the conveying device can be calculated from the point cloud data of at least two reflectors distributed on opposite sides.
[0052] By carrying out an embodiment of the present invention, the transport device can acquire laser point cloud data, the laser point cloud data is acquired by scanning a carrier on which articles are palletized using a laser detection device, at least two reflectors are attached to the carrier, and each of the at least two reflectors is used to reflect the laser that the laser detection device irradiates onto the articles, the articles here may be regular articles having a regular shape or irregular articles having an irregular shape, the laser reflected from the articles is reflected through the at least two reflectors and incident on the laser detection device to form point cloud data corresponding to the at least two reflectors for the articles, point cloud separation is performed on the laser point cloud data to obtain the reflected point cloud data for each of the at least two reflectors, the position and orientation of the articles is detected based on the reflected point cloud data for each of the at least two reflectors to obtain the relative position and orientation of the articles with respect to the transport device.
[0053] As can be seen from the above, the present invention allows for the determination of the relative position and orientation of an article with respect to a laser detection device by installing at least two reflectors on opposing sides of a carrier, acquiring point cloud data from at least two reflectors, and then determining the relative position and orientation of an article with respect to a transport device based on the positional relationship between the point cloud data of any two reflectors located on opposing sides. This makes it possible to calculate the relative position and orientation of an article with respect to a transport device using the point cloud data of at least two reflectors, regardless of whether the article is a regular article or not, thereby enabling the detection of the position and orientation of an irregular article.
[0054] Figure 4 is a schematic flowchart of another method for detecting the position and orientation of an article according to an embodiment of the present invention. The method shown in Figure 4 is applicable to a conveying device 100 and is used to determine the position and orientation of an article palletized on a carrier relative to the conveying device, and the method includes steps S401 to S405.
[0055] S401, laser point cloud data is acquired by scanning the carrier using a laser detection device, at least two reflectors are attached to the carrier, the at least two reflectors are distributed on opposite sides of the carrier, and both of the at least two reflectors are used to reflect the laser that the laser detection device irradiates onto the article.
[0056] For an explanation of step S401 of the present invention, please refer to the explanation of step S301 in Figure 3 above.
[0057] S402, Preprocessing is performed on the laser point cloud data to obtain preprocessed point cloud data, the preprocessing includes at least one of point cloud filtering, anomaly removal, data cleansing, and data conversion.
[0058] The present invention does not limit the specific method of preprocessing, and may include, but is not limited to, any one or more combinations of point cloud filtering, anomaly removal, data cleansing, data transformation, and other data processing methods in customized settings.
[0059] Here, point cloud filtering refers to filtering out point cloud data from laser point cloud data that does not belong to the reflection of a reflector, using a pre-configured filtering algorithm. For example, this could involve selecting / extracting point cloud data from laser point cloud data that is due to reflection from a reflector based on the difference in reflection intensity of different reflectors. The filtering algorithm is a customized setting of the system and may be, for example, statistical filtering.
[0060] Anomaly removal refers to the process of removing anomalous data from laser point cloud data. For example, this could involve removing isolated point cloud data near a reflector, or removing point cloud data that is too large or too small.
[0061] Data cleansing refers to the process of cleaning laser point cloud data by imputing discontinuous or missing data, or by removing duplicate data, using methods such as imputing missing values or deleting duplicate data.
[0062] Data conversion refers to the process of transforming laser point cloud data using methods such as format conversion and smoothing to obtain point cloud data that meets the requirements of the system.
[0063] S403, point cloud separation is performed on the pre-processed point cloud data based on the difference in reflection intensity between the at least two reflectors to obtain reflection point cloud data for each of the at least two reflectors.
[0064] The present invention enables the separation of point cloud data of different reflectors from pre-processed point cloud data based on the difference in reflection intensity between different reflectors, thereby obtaining the reflection point cloud data of at least two reflectors. Here, the present invention does not limit the specific method of point cloud data separation. For example, the present invention can separate the reflection point cloud data of at least two reflectors from pre-processed point cloud data by performing point cloud data clustering of different reflectors on the pre-processed point cloud data using a pre-configured density clustering algorithm. The density clustering algorithm here may be a clustering algorithm with customized settings for the system, and is used for point cloud data clustering of different reflectors. For example, it includes, but is not limited to, a density-based clustering algorithm (Density-Based Spatial Clustering of Applications, DBSCAN).
[0065] S404. For each pair of reflectors in a plurality of pairs of reflectors consisting of an arbitrary first reflector and an arbitrary second reflector, the position and orientation of an article is detected based on the reflection point cloud data of the first reflector and the second reflector in the pair of reflectors, and the first relative position and orientation of the article with respect to the conveying device corresponding to the pair of reflectors is obtained.
[0066] Here, by dividing at least two reflectors into at least one pair according to their positional relationship, and by dividing any two reflectors located on opposite sides of the carrier into the same group, calculations are performed for each group of point cloud data of at least two reflectors, saving calculation steps, and the positional relationship between the point cloud data of each pair of reflectors determines the first relative position and orientation of the article with respect to the conveying device.
[0067] S405, The relative position and orientation of the article with respect to the conveying device is determined based on the first relative position and orientation corresponding to each pair of reflectors among the plurality of pairs of reflectors.
[0068] In one embodiment, the present invention obtains a first relative position and orientation by acquiring point cloud data of each pair of reflectors, then detecting the position and orientation of the corresponding article based on the respective point cloud data of each pair of reflectors, and then integrating the first relative position and orientations corresponding to each pair of reflectors among at least one pair of reflectors to obtain the relative position and orientation of the article with respect to the transport device. The specific method for detecting the position and orientation of the article has been described in detail above, so it will not be described here.
[0069] Furthermore, the present invention can determine the relative position and orientation of the article with respect to the conveying device based on the above-described at least one first relative position and orientation. For example, the present invention can obtain the relative position and orientation of the article with respect to the conveying device by calculating for at least one first relative position and orientation using a preset position and orientation calculation formula. The position and orientation calculation formula is pre-customized by the system, and the relative position and orientation of the article with respect to the conveying device can be obtained by calculation processes such as finding the average or mode of at least one first relative position and orientation.
[0070] The following describes an embodiment in which the relative position and orientation of an article with respect to a transport device is obtained by calculation based on the reflection point cloud data of each of the at least one pair of reflectors, with the arbitrary pair of reflectors including one of at least one first reflector provided on the first side of the carrier and one of at least one second reflector provided on the second side of the carrier opposite to the first side. Figure 5 is a schematic flowchart of another article position and orientation detection method according to an embodiment of the present invention. As shown in the figure, the method includes steps S501 to S503.
[0071] S501, Template matching is performed on the reflection point cloud data of the first reflector and the second reflector, respectively.
[0072] The present invention is not limited to the specific method of template matching described above. For example, the present invention can perform consistency matching on the reflection point cloud data of the first and second reflectors using a pre-configured reflector template (e.g., template point cloud data of the reflector template). The reflector template here is one that the system has customized in advance according to its actual needs. Consistency matching here may involve calculating a first similarity between the template point cloud data and the reflection point cloud data of the first reflector, and a second similarity between the template point cloud data and the reflection point cloud data of the second reflector. If both the first and second similarities are greater than a pre-configured threshold, it indicates that the consistency matching was successful, and step S502 is executed. If at least one of the first and second similarities is less than or equal to the pre-configured threshold, it indicates that the consistency matching failed, and the process may be terminated.
[0073] S502. After the template matching is successful, the position and orientation are calculated based on the reflection point cloud data of the first reflector and the second reflector, and a second relative position and orientation of the article with respect to the laser detection device is obtained.
[0074] The present invention can calculate the second relative position and orientation of an article with respect to the laser detection device 200 based on the reflection point cloud data of the first and second reflectors, after successfully matching the respective reflection point cloud data of the first and second reflectors. The present invention is not limited to the specific method of the above position and orientation calculation. For example, in one example, the present invention can perform a centroid calculation based on the respective reflection point cloud data of the first and second reflectors, obtain the first centroid of the reflection point cloud data corresponding to the first reflector and the second centroid of the reflection point cloud data corresponding to the second reflector, calculate the center point and inclination based on the first and second centroids, and obtain the second relative position and orientation of the article with respect to the laser detection device. Here, the centroid may refer to the centroid coordinates of the reflection point cloud data.
[0075] Here, the second relative position and orientation include the position of the article relative to the laser detection device and the direction of the article relative to the laser detection device. The position of the article relative to the laser detection device is the center point of the line connecting the first center of gravity and the second center of gravity, and the direction of the article relative to the laser detection device is determined based on the target inclination of the target line formed by the first center of gravity and the second center of gravity with respect to a preset reference line, and the first reflector is, for example, the first reflector 301 shown in Figure 1, and the second reflector is, for example, the second reflector 302 shown in Figure 1.
[0076] In some embodiments, the process for determining the orientation of placement includes the steps of: obtaining a preset standard inclination; calculating the inclination difference between the target inclination and the standard inclination; determining a target angle corresponding to the inclination difference and setting the target angle as the orientation of placement, wherein the preset standard inclination is the inclination of the straight line formed by the center point of the first reflector and the center point of the second reflector with respect to the reference line when the carrier is in the preset standard orientation of placement.
[0077] Here, the preset standard inclination is calculated by a person skilled in the art after measuring the first and second reflectors attached to the carrier, and relates to the relative positions of the first and second reflectors. Different relative positions of the first and second reflectors have different standard inclinations. The relative positions of the first and second reflectors may be facing each other, for example, the relative positional relationship between the first reflector 301 and the second reflector 302 in Figure 1. They may also be not facing each other, that is, the line connecting the center point of the first reflector 301 and the center point of the second reflector 302 has a non-zero inclination, and the present invention is not limited. In some embodiments, the standard inclination when the first and second reflectors are facing each other is zero, so when calculating the orientation of the article relative to the laser detection device, it can be directly determined by the target inclination of the target line consisting of the first and second centroids with respect to a preset reference line, simplifying the calculation process.
[0078] Here, the standard placement direction refers to the placement direction of the carrier when the extension of one side of the carrier is parallel to the laser emission direction of the laser detection device. As shown in Figure 6, when the transport device is placed at the position of the laser detection device, the transport device can move to the placement position without changing its direction of travel and retrieve the item on the carrier. If the carrier is not positioned in the standard placement direction, that is, if there is a certain angle between the carrier and the standard placement direction, the inclination corresponding to the line formed by the center point of the first reflector and the center point of the second reflector does not match the standard inclination in the standard placement direction, and therefore it is determined that the carrier is deviating from the standard placement direction.
[0079] Here, the direction in which the reference line is set can be designed as necessary so that the slope corresponding to the target line can be calculated, and the present invention is not limited to this. For example, when the carrier is in a preset standard orientation, the reference line may be the line connecting the center points of the laser detection device and the carrier, for example, reference line A in Figure 6, or it may be a straight line perpendicular to the line connecting the center points of the laser detection device and the carrier, for example, reference line B in Figure 6. After determining a straight line as the reference line, no other straight line is selected as the reference line; that is, the same reference line is used when calculating the target slope and the standard slope.
[0080] For example, if the reference line is reference line A in Figure 6, and the first reflector 301A and the second reflector 302A are installed facing the carrier, then, as shown in Figure 7A, since the coordinates of the point cloud data of the two reflectors are the same on one axis, the target slope of the target line with respect to reference line A, which is formed by the first centroid of the reflection point cloud data corresponding to the first reflector 301A and the second centroid of the reflection point cloud data corresponding to the second reflector 302A, can be calculated from the positions on the other two axes of the 3D coordinate system of the point cloud. In this case, if the carrier 300 is in a preset standard orientation, the standard inclination between the first reflector 301A and the second reflector 302A is 0, so the orientation of the article relative to the laser detection device can be directly obtained based on the target inclination. If the first reflector 301B and the second reflector 302B are installed not facing the carrier, as shown in Figure 7B, the coordinates of the two reflectors' point cloud data on one axis are different, so it is necessary to calculate the target inclination of the target line with respect to the reference line A, which consists of the first centroid of the reflected point cloud data corresponding to the first reflector 301B and the second centroid of the reflected point cloud data corresponding to the second reflector 302B, from the positions on the three axes of the point cloud's three-dimensional coordinate system. In this case, if the carrier 300 is in a preset standard orientation, the standard inclination between the first reflector 301B and the second reflector 302B is not zero, and assuming it is C, it is necessary to calculate the target angle corresponding to the difference between the target inclination and C, and use this target angle as the orientation of the article relative to the laser detection device.
[0081] S503. A coordinate transformation is performed on the second relative position and orientation of the article with respect to the laser detection device to obtain the first relative position and orientation of the article with respect to the transport device.
[0082] The present invention requires obtaining a second relative position and orientation of the article with respect to the laser detection device, and then performing a coordinate transformation on the second relative position and orientation to obtain a first relative position and orientation of the article with respect to the transport device. The present invention does not limit the specific method of the above coordinate transformation, but in one example, the present invention can obtain the first relative position and orientation of the article with respect to the transport device by performing rotation and translation on the second relative position and orientation of the article with respect to the laser detection device using a pre-calibrated external parameter matrix to perform a coordinate transformation on the above relative position and orientation.
[0083] Here, the external parameter matrix is obtained by the system after pre-calibrating the laser detection device 200 and the transport device 100, and is used to reflect the transformation from the world coordinate system where the laser detection device is located to the target coordinate system (also called the Automated Guided Vehicle (AGV) coordinate system) where the transport device is located. Specifically, the external parameter matrix may include a rotation matrix to reflect the amount of rotation from the world coordinate system to the target coordinate system, and a translation matrix to reflect the amount of translation from the world coordinate system to the target coordinate system.
[0084] In specific implementations, the present invention can acquire the relative position and orientation of an article with respect to a transport device by performing rotation and translation corresponding to the relative position and orientation of the article with respect to a laser detection device based on the rotation matrix and translation matrix in the external parameter matrix, which is convenient for the transport device to subsequently transport and palletize the article based on the said relative position and orientation, and the present invention is not limited thereto.
[0085] For details not described or explained in the embodiments of the present invention, please refer to the relevant descriptions of the embodiments in Figures 1 to 3 above, and such descriptions will be omitted here.
[0086] In the above method for detecting the position and orientation of an article, laser point cloud data is acquired, point cloud separation is performed on the laser point cloud data to obtain reflected point cloud data for at least two reflectors, and finally, the position and orientation of the article is detected based on the reflected point cloud data for at least two reflectors to obtain the relative position and orientation of the article with respect to the transport device. The article here may be a regular article or an irregular article, and the present invention is not limited. The present invention allows for the convenient and accurate acquisition of the relative position and orientation of an article with respect to the transport device by using at least two reflectors to perform separation and position and orientation detection on laser point cloud data formed by irradiation of the article. In this way, the position and orientation detection of both regular and irregular articles can be achieved. At the same time, by using reflectors to reflect the laser emitted from the laser detection device and greatly avoiding dependence on the light irradiation environment, the position and orientation detection of irregular articles can be achieved and dependence on the light irradiation environment can be reduced.
[0087] In the flowcharts of Figures 3 to 5, each step is shown sequentially according to the arrows, but these steps do not necessarily have to be performed in the order of the arrows. Unless otherwise explicitly stated herein, the execution of these steps is not limited to a strict order, and these steps may be performed in other orders. Furthermore, at least some of the steps in Figures 3 to 5 may include multiple substeps or stages, and these substeps or stages do not necessarily have to be completed at the same time, but may be performed at different times, and these substeps or stages do not necessarily have to be performed sequentially, but may be performed sequentially or alternately with other steps, or at least some of the substeps or stages of other steps.
[0088] Based on the embodiments described above, embodiments of the present invention provide an article position orientation detection device for determining the position orientation of an article palletized on a carrier with respect to a transport device, wherein each module and each unit included in the article position orientation detection device may be implemented by a processor, or of course by a specific logic circuit, and in implementation, the processor may be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field-programmable gate array (FPGA), etc.
[0089] Figure 8 is a schematic diagram of the structure of an article position and orientation detection device according to an embodiment of the present invention. As shown in the figure, the article position and orientation detection device includes an acquisition module 601, a separation module 602, and a detection module 603.
[0090] The acquisition module 601 is used to acquire laser point cloud data, which is acquired by scanning a carrier on which an article is palletized using a laser detection device, the carrier having at least two reflectors attached to it, the at least two reflectors distributed on opposite sides of the carrier, and both of the at least two reflectors are used to reflect the laser that the laser detection device irradiates onto the article.
[0091] The separation module 602 is used to perform point cloud separation on the laser point cloud data and to obtain reflection point cloud data for each of the at least two reflectors.
[0092] The detection module 603 is used to detect the position and orientation of an article based on the reflection point cloud data of each of the at least two reflectors, and to obtain the relative position and orientation of the article with respect to the conveying device.
[0093] In some embodiments, the at least two reflectors have different reflectances, and the separation module 602 is specifically, The laser point cloud data is preprocessed to obtain the preprocessed point cloud data, and the preprocessing includes at least one of point cloud filtering, anomaly removal, data cleansing, and data conversion. This method is used to perform point cloud separation on the pre-processed point cloud data based on the difference in reflection intensity between the at least two reflectors, in order to obtain the reflection point cloud data for each of the at least two reflectors.
[0094] In some embodiments, the isolation module 602 specifically, This method is used to perform point cloud clustering of different reflectors on the pre-processed point cloud data using a pre-configured density clustering algorithm, thereby obtaining reflection point cloud data for each of the at least two reflectors.
[0095] In some embodiments, the at least two reflectors include at least one first reflector provided on the first side of the carrier and at least one second reflector provided on the second side of the carrier opposite to the first side, and the detection module 603 specifically, For each pair of reflectors in a plurality of pairs of reflectors consisting of any first reflector and any second reflector, the position and orientation of an article is detected based on the reflection point cloud data of the first reflector and the second reflector in the pair of reflectors, and a first relative position and orientation of the article with respect to the conveying device corresponding to the pair of reflectors is obtained. This is used to determine the relative position and orientation of the article with respect to the conveying device, based on the first relative position and orientation corresponding to each pair of reflectors among the plurality of pairs of reflectors.
[0096] In some embodiments, the detection module 603 is specifically used to perform calculations on the first relative position and orientation corresponding to each of the plurality of pairs of reflectors, and to determine the result of the calculations as the relative position and orientation of the article with respect to the conveying device, the calculations including taking the average or the mode.
[0097] In some embodiments, the detection module 603 specifically, Template matching is performed on the reflection point cloud data of the first reflector and the second reflector, After the template matching is successful, position and orientation calculations are performed based on the reflection point cloud data of the first reflector and the second reflector to obtain the second relative position and orientation of the article with respect to the laser detection device. This is used to perform a coordinate transformation on the second relative position and orientation of the article with respect to the laser detection device in order to obtain the first relative position and orientation of the article with respect to the transport device.
[0098] In some embodiments, the detection module 603 specifically, This is used to perform consistency matching on the reflection point cloud data of the first reflector and the second reflector, using pre-configured template point cloud data.
[0099] In some embodiments, the detection module 603 specifically, Based on the respective reflection point cloud data of the first reflector and the second reflector, the centroid is calculated to obtain the first centroid of the first reflection point cloud data corresponding to the first reflector and the second centroid of the second reflection point cloud data corresponding to the second reflector. Based on the first and second centroids, the center point and inclination are calculated and used to obtain the second relative position and orientation of the article with respect to the laser detection device, the second relative position and orientation of the article with respect to the laser detection device includes the placement position of the article with respect to the laser detection device and the placement direction of the article with respect to the laser detection device. The center point of the line connecting the first center of gravity and the second center of gravity is defined as the position of the article relative to the laser detection device, and the orientation of the article relative to the laser detection device is determined based on the target inclination of the target line formed by the first center of gravity and the second center of gravity with respect to a preset reference line.
[0100] In some embodiments, the detection module 603 specifically, A preset standard inclination is obtained, and the preset standard inclination is the inclination of the straight line formed by the center point of the first reflector and the center point of the second reflector with respect to the reference line when the carrier is in a preset standard orientation. The difference in slope between the target slope and the standard slope is calculated. This is used to determine a target angle corresponding to the aforementioned difference in inclination, and to set the target angle as the direction of placement.
[0101] In some embodiments, the detection module 603 specifically, Based on a pre-calibrated external parameter matrix, rotation and translation are performed on the second relative position and orientation of the article with respect to the laser detection device to perform a coordinate transformation of the second relative position and orientation, and this is used to obtain the first relative position and orientation of the article with respect to the transport device. The aforementioned external parameter matrix reflects the transformation from the world coordinate system in which the laser detection device is located to the target coordinate system in which the transport device is located.
[0102] In some embodiments, the detection module 603 specifically, Used to calculate a first similarity between the template point cloud data and the reflection point cloud data of the first reflector, and a second similarity between the template point cloud data and the reflection point cloud data of the second reflector. If both the first similarity and the second similarity are greater than a preset threshold, it indicates that the template matching was successful. If at least one of the first similarity and the second similarity is less than or equal to the preset threshold, it indicates that the template matching was unsuccessful.
[0103] The above description of the apparatus embodiment is similar to the description of the method embodiment and has similar beneficial effects. For technical details not disclosed in the apparatus embodiment of the present invention, please refer to the description of the method embodiment of the present invention.
[0104] It should be noted that the module division by the article position and orientation detection device shown in Figure 8 in the embodiment of the present invention is illustrative and merely a logical functional division; other division methods may be used in actual implementation. Furthermore, each functional unit in each embodiment of the present invention may be integrated into a single processing unit, exist physically independently, or two or more units may be integrated into a single unit. The integrated unit may be implemented in hardware form, in software functional unit form, or as a combination of software and hardware.
[0105] In embodiments of the present invention, the above method may be implemented in the form of a software function module and sold or used as an independent product, which may be stored on a computer-readable storage medium. Based on this understanding, the technical ideas of the embodiments of the present invention may be embodied, essentially or in part, in the form of a software product, which is stored on a storage medium and includes several instructions for causing an electronic device to execute all or part of the methods of each embodiment of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB memory, portable hard disks, read-only memory (ROM), magnetic disks, or optical disks. Thus, embodiments of the present invention are not limited to any specific combination of hardware and software.
[0106] Embodiments of the present invention provide a computer device, the internal structure of which may be shown in Figure 9. The computer device may be a transport device, a personal computer, a notebook computer, a handheld computer, a server, or other device having information processing capabilities. It may also be a mobile device, which includes, but is not limited to, a mobile phone, a wearable device, an in-vehicle computer, a tablet computer, or a projector.
[0107] The computer device includes a processor, memory, and a network interface connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the execution of the operating system and computer programs on the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with external terminals via a network. When the computer program is executed by the processor, a method for detecting the position and orientation of an article is performed.
[0108] An embodiment of the present invention provides a computer-readable storage medium in which a computer program is stored, and when the computer program is executed by a processor, the method according to the embodiment is carried out.
[0109] An embodiment of the present invention provides a computer program product including instructions, which, when executed on a computer, causes the computer to perform the method according to the above embodiment.
[0110] Those skilled in the art will understand that the structure shown in Figure 9 is merely a block diagram of the structure of a part related to the proposed technical idea of the present invention, and does not limit the computer devices to which the proposed technical idea of the present invention is applied. A specific computer device may contain more or fewer components than those shown in the figure, or may combine several components, or may have a different arrangement of components.
[0111] In one embodiment, the article position and orientation detection device according to the present invention may be implemented in the form of a computer program, which can run on the computer device shown in Figure 9. The memory of the computer device may store each program module constituting the detection device, for example, the acquisition module, separation module, and detection module shown in Figure 8. The computer program, consisting of each program module, causes a processor to execute the steps in the article position and orientation detection method of each embodiment of the present invention described herein.
[0112] By implementing embodiments of the present invention, a computer device acquires laser point cloud data, performs point cloud separation on the laser point cloud data to obtain reflected point cloud data for at least two reflectors, and finally, detects the position and orientation of an article based on the reflected point cloud data for at least two reflectors to obtain the relative position and orientation of the article with respect to the transport device. The article may be a regular article or an irregular article, and the present invention is not limited to these. The present invention allows for the convenient and accurate acquisition of the relative position and orientation of an article with respect to the transport device by using at least two reflectors to perform separation and position and orientation detection on laser point cloud data formed by irradiation of an article. In this way, position and orientation detection of both regular and irregular articles can be achieved. At the same time, by using reflectors to reflect the laser emitted from the laser detection device and greatly reducing dependence on the light irradiation environment, position and orientation detection of irregular articles can be achieved, and dependence on the light irradiation environment can be reduced.
[0113] The above description of the storage medium and device embodiments is similar to the description of the method embodiments and has similar beneficial effects. For technical details not disclosed in the storage medium and device embodiments of the present invention, please refer to the description of the method embodiments of the present invention.
[0114] Furthermore, the phrases "one embodiment," "one embodiment," or "several embodiments" described in the specification mean that a particular feature, structure, or characteristic relating to an embodiment is included in at least one embodiment of the present invention. Therefore, "in one embodiment," "in one embodiment," or "in several embodiments" described throughout the specification do not necessarily refer to the same embodiment. Also, these particular features, structures, or characteristics can be combined in one or more embodiments in any suitable manner. In the various embodiments of the present invention, the magnitude of the process numbers above does not indicate the order of execution, and the execution order of each process should be determined by the function and internal logic of the process without limiting the implementation process of the embodiment of the present invention. The numbers of the embodiments of the present invention above are for illustrative purposes only and do not indicate superiority or inferiority of the embodiments. The descriptions of each embodiment tend to emphasize the differences between the embodiments; similar or identical points can be referenced to each other, and for the sake of brevity, their descriptions are omitted.
[0115] In this specification, the term "and / or" merely describes the relationship between related objects and indicates that there may be three such relationships. For example, object A and / or object B may represent three cases: object A exists alone, object A and object B exist together, and object B exists alone.
[0116] In this specification, the terms “include,” “contain,” or any other variation thereof are intended to include non-exclusive inclusion, thereby including not only those elements but also other elements not explicitly listed, or inherent elements of such process, method, article, or device. Unless further restrictions are imposed, an element limited by the phrase “include one…” is not precluding the presence of other identical elements in a process, method, article, or device containing that element.
[0117] In some embodiments of the present invention, it should be understood that the disclosed devices and methods may be implemented in other ways. The above embodiments are illustrative only, and for example, the module division is merely a logical functional division, and other division methods may be used in actual implementation, for example, multiple modules or components may be combined, integrated into another system, and some features may be ignored or not performed. Also, the coupling, direct coupling, or communication connection of each component shown or considered may be an indirect coupling or communication connection via some interface, device, or module, and may be electrical, mechanical, or in other forms.
[0118] The modules described above as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network units, and some or all of these modules may be selected according to actual needs to achieve the objectives of the technical proposal of this embodiment.
[0119] Furthermore, each functional module in each embodiment of the present invention may be integrated into a single processing unit, each module may be a single unit on its own, or two or more modules may be integrated into a single unit. The integrated module may be implemented in hardware form, or in the form of a hardware + software functional unit.
[0120] As those skilled in the art will understand, all or part of the steps for implementing the embodiment of the above method may be carried out by instructing the relevant hardware with program instructions, the program may be stored in a computer-readable storage medium, and when the program is executed, the steps of the embodiment of the above method are carried out, the storage medium includes various media capable of storing program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.
[0121] Alternatively, if the above-described integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it may be stored on a computer-readable storage medium. Based on this understanding, the technical ideas of the embodiments of the present invention may be embodied, essentially or in part, in the form of a software product, which is stored on a storage medium and includes several instructions for causing an electronic device to perform all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes a variety of media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0122] The methods disclosed in some method embodiments of the present invention can be arbitrarily combined, as long as they do not contradict each other, to obtain new method embodiments.
[0123] The features disclosed in some product embodiments of the present invention can be arbitrarily combined, as long as they do not contradict each other, to obtain new product embodiments.
[0124] The features disclosed in some method or device embodiments according to the present invention can be arbitrarily combined, as long as they do not contradict each other, to obtain new method or device embodiments.
[0125] The above are merely embodiments of the present invention, and the scope of protection of the present invention is not limited thereto. Modifications or substitutions that a person skilled in the art could easily conceive within the technical scope disclosed herein should be included within the scope of protection of the present invention. Accordingly, the scope of protection of the present invention shall be subject to the scope of protection of the claims.
Claims
1. A method for detecting the position and orientation of an article palletized on a carrier with respect to a conveying device, A step of acquiring laser point cloud data, wherein the laser point cloud data is acquired by scanning the carrier using a laser detection device, the carrier is fitted with at least two reflectors, the at least two reflectors are distributed on opposing sides of the carrier, and both of the at least two reflectors are used to reflect the laser that the laser detection device irradiates onto the article, The steps include performing point cloud separation on the laser point cloud data to obtain reflection point cloud data for each of the at least two reflectors, The process includes the step of detecting the position and orientation of an article based on the reflection point cloud data of each of the at least two reflectors, and obtaining the relative position and orientation of the article with respect to the conveying device. A method for detecting the position and orientation of an article, characterized by the features described above.
2. The steps include: the at least two reflectors having different reflectivity, performing point cloud separation on the laser point cloud data, and obtaining the reflected point cloud data for each of the at least two reflectors; A step of performing preprocessing on the laser point cloud data to obtain the preprocessed point cloud data, wherein the preprocessing includes at least one of point cloud filtering, anomaly removal, data cleansing, and data conversion. The process includes the step of performing point cloud separation on the preprocessed point cloud data based on the difference in reflection intensity between the at least two reflectors to obtain reflection point cloud data for each of the at least two reflectors. The method according to feature 1.
3. The step of performing point cloud separation on the pre-processed point cloud data based on the difference in reflection intensity between the at least two reflectors to obtain reflection point cloud data for each of the at least two reflectors is: The process includes the step of performing point cloud clustering of different reflectors on the preprocessed point cloud data using a pre-configured density clustering algorithm to obtain reflection point cloud data for each of the at least two reflectors. The method according to feature 2.
4. The steps include: the at least two reflectors include at least one first reflector provided on the first side of the carrier and at least one second reflector provided on the second side of the carrier facing the first side; the position and orientation of the article is detected based on the reflection point cloud data of each of the at least two reflectors, and the relative position and orientation of the article with respect to the conveying device is obtained. The steps include: detecting the position and orientation of an article based on the reflection point cloud data of the first reflector and the second reflector in each pair of reflectors, which consist of any first reflector and any second reflector, and obtaining a first relative position and orientation of the article with respect to the transport device that corresponds to the pair of reflectors; The step of determining the relative position and orientation of the article with respect to the conveying device based on the first relative position and orientation corresponding to each pair of reflectors among the plurality of pairs of reflectors, The method according to feature 1.
5. The step of determining the relative position and orientation of the article with respect to the conveying device based on the first relative position and orientation corresponding to each pair of reflectors among the plurality of pairs of reflectors is: A step comprising performing a calculation process for the first relative position and orientation corresponding to each of the plurality of pairs of reflectors, and determining the result of the calculation process as the relative position and orientation of the article with respect to the conveying device, wherein the calculation process includes calculating the average or taking the mode, The method according to feature 4.
6. The step of detecting the position and orientation of an article based on the reflection point cloud data of the first reflector and the second reflector in the pair of reflectors, and obtaining a first relative position and orientation of the article with respect to the conveying device corresponding to the pair of reflectors, is: The steps include performing template matching on the reflection point cloud data of the first reflector and the second reflector, After the template matching is successful, the position and orientation are calculated based on the reflection point cloud data of the first reflector and the second reflector, and a second relative position and orientation of the article with respect to the laser detection device is obtained. The steps include: performing a coordinate transformation on the second relative position and orientation of the article with respect to the laser detection device to obtain the first relative position and orientation of the article with respect to the transport device, The method according to feature 4.
7. The step of calculating the position and orientation based on the reflection point cloud data of the first reflector and the second reflector, and obtaining the second relative position and orientation of the article with respect to the laser detection device, is: The steps include: performing a centroid calculation based on the respective reflection point cloud data of the first reflector and the second reflector, and obtaining the first centroid of the first reflection point cloud data corresponding to the first reflector and the second centroid of the second reflection point cloud data corresponding to the second reflector; A step of calculating the center point and inclination based on the first and second centroids to obtain the second relative position and orientation of the article with respect to the laser detection device, wherein the second relative position and orientation of the article with respect to the laser detection device includes the position of the article with respect to the laser detection device and the direction of the article with respect to the laser detection device, The center point of the line connecting the first center of gravity and the second center of gravity is defined as the position of the article relative to the laser detection device, and the orientation of the article relative to the laser detection device is determined based on the target inclination of the target line formed by the first center of gravity and the second center of gravity with respect to a preset reference line. The method according to feature 6.
8. The step of calculating the center point and inclination based on the first and second centers of gravity to obtain the second relative position and orientation of the article with respect to the laser detection device is: A step of obtaining a preset standard inclination, wherein the preset standard inclination is the inclination of a straight line formed by the center point of the first reflector and the center point of the second reflector with respect to the reference line when the carrier is in a preset standard orientation direction, A step of calculating the difference in slope between the target slope and the standard slope, The steps include determining a target angle corresponding to the aforementioned difference in inclination and setting the target angle to the aforementioned direction of placement, The method according to feature 7.
9. The step of determining the orientation of the article relative to the laser detection device based on the target inclination of the target line, which consists of the first center of gravity and the second center of gravity, with respect to the preset reference line, is: When the first reflector and the second reflector are installed facing each other on the carrier, the standard inclination is zero, and the step of determining the placement direction based on the target inclination, When the first reflector and the second reflector are installed in the carrier not facing each other, the standard tilt is a non-zero value, and the method includes the step of determining the orientation based on the target angle corresponding to the tilt difference between the target tilt and the standard tilt, The method according to feature 8.
10. The step of performing a coordinate transformation on the second relative position and orientation of the article with respect to the laser detection device to obtain the first relative position and orientation of the article with respect to the transport device is: The step includes performing a coordinate transformation of the second relative position and orientation of the article with respect to the laser detection device by rotating and translating the article with respect to the laser detection device based on a pre-calibrated external parameter matrix, thereby obtaining the first relative position and orientation of the article with respect to the transport device. The aforementioned external parameter matrix reflects the transformation from the world coordinate system in which the laser detection device is located to the target coordinate system in which the transport device is located. The method according to feature 6.
11. The step of performing template matching on the reflection point cloud data of the first reflector and the second reflector is as follows: The process includes the steps of calculating a first similarity between the template point cloud data and the reflection point cloud data of the first reflector, and a second similarity between the template point cloud data and the reflection point cloud data of the second reflector, If both the first similarity and the second similarity are greater than a preset threshold, it indicates that the template matching was successful. If at least one of the first similarity and the second similarity is less than or equal to the preset threshold, it indicates that the template matching was unsuccessful. The method according to feature 6.
12. A device for detecting the position and orientation of an article palletized on a carrier with respect to a conveying device, An acquisition module for acquiring laser point cloud data, wherein the laser point cloud data is acquired by scanning the carrier using a laser detection device, at least two reflectors are attached to the carrier, the at least two reflectors are distributed on opposing sides of the carrier, and both of the at least two reflectors are used to reflect the laser irradiated onto the article by the laser detection device, and A separation module for performing point cloud separation on the laser point cloud data and obtaining reflection point cloud data for each of the at least two reflectors, A detection module for detecting the position and orientation of an article based on the reflection point cloud data of at least two of the aforementioned reflectors, and for obtaining the relative position and orientation of the article with respect to the conveying device, is included. A device for detecting the position and orientation of an article, characterized by the features described above.
13. Memory and A transport device including a processor coupled to the memory, The processor is configured to perform the method according to any one of claims 1 to 11 based on instructions stored in the memory. A conveying device characterized by the following features.
14. A computer-readable storage medium storing computer program instructions, wherein when the instructions are executed by one or more processors, the method according to any one of claims 1 to 11 is performed. A computer-readable storage medium characterized by the following features.
