Positioning method, device, equipment and medium
By performing Hough transform line detection and intersection screening on the laser point cloud data in AGV navigation, the target laser point cloud image is generated, which solves the problem of low positioning accuracy caused by noise interference in the laser SLAM method and improves the AGV navigation accuracy and speed.
Patent Information
- Application Number
- CN202410954149.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-09-17
AI Technical Summary
The existing AGV navigation method is based on laser SLAM, which is easily interfered by the surface characteristics of the target object, environmental factors and system errors, resulting in the presence of noise in the point cloud map and low mapping and positioning accuracy.
By performing Hough transform straight line detection on multiple target coordinate points, it is converted into an intersection detection problem, and the intersection points in the Hough space are screened to generate a target laser point cloud image, retaining effective straight line features, and improving the speed and accuracy of mapping and positioning. Accuracy.
It improves the accuracy and speed of AGV mapping and positioning, avoids the cost increase of multi-sensor fusion positioning, and enhances the accuracy of navigation.
Smart Images

Figure CN118655544A
Abstract
Description
Technical Field
[0001] The present application relates to the field of industrial Internet technology, and in particular to a positioning method, device, equipment and medium. Background Art
[0002] AGV (Automated Guided Vehicle) is an automated logistics equipment used to perform cargo transportation and handling tasks in environments such as factories, warehouses and logistics centers. In recent years, with the development of autonomous navigation, AGV has gradually become the core equipment of intelligent logistics, and has played an increasingly important role in many fields such as workshop processing, instrument production, and e-commerce warehousing. In the production and manufacturing process, AGV needs to accurately reach the task destination according to the dispatch instructions of the task center, so the requirements for AGV navigation accuracy are also increasing.
[0003] At present, the commonly used AGV navigation method is based on the laser simultaneous localization and mapping (SLAM) method, which uses laser sensors to sense the surrounding environment. During the movement, the laser sensor on the vehicle body continuously emits laser beams and receives the reflected beams to obtain the distance between the obstacle and itself, build a point cloud map and determine the position of the AGV. Since laser sensors are easily affected by the surface characteristics of the target object, environmental factors, and system errors, there are noise points in the point cloud map built based on laser sensors, and the mapping and positioning accuracy is low. Summary of the invention
[0004] The present application provides a positioning method, device, equipment and medium, which can solve the problem of low positioning accuracy in current mapping.
[0005] In a first aspect, the present application provides a positioning method, the method comprising:
[0006] Performing Hough transform straight line detection on multiple target coordinate points respectively to obtain multiple curves in the Hough space; wherein the multiple target coordinate points are obtained by converting the initial point cloud data in the original laser point cloud image;
[0007] The intersection points between the plurality of curves are screened according to a preset rule to obtain a plurality of target intersection points;
[0008] A target laser point cloud map is generated based on the multiple target intersection points, and AGV positioning is performed based on the target laser point cloud map.
[0009] Through the above method, Hough transform straight line detection is performed on multiple target coordinate points. The duality of points and lines is used to convert the straight line detection problem into an intersection detection problem. Then, the intersections in the Hough space are screened to obtain multiple target intersections, thereby generating a target laser point cloud map based on multiple target intersections, so that effective straight line features can be retained in the target laser point cloud map, and the calculation speed of Hough transform straight line detection is fast, thereby improving the speed and accuracy of map construction and positioning. At the same time, since there is no need to introduce multiple sensors for fusion positioning, the cost can be avoided.
[0010] In a possible embodiment, before performing Hough transform straight line detection on a plurality of target coordinate points respectively, the method further includes:
[0011] Perform rectangular coordinate system conversion on each initial point cloud data in the initial laser point cloud image to obtain the initial coordinate point corresponding to each initial point cloud data in the rectangular coordinate system;
[0012] Clustering each of the initial coordinate points according to a first clustering threshold to obtain a plurality of initial clusters;
[0013] Initial clusters having a number of coordinate points less than a first preset value in the multiple initial clusters are filtered to obtain the multiple target coordinate points.
[0014] Through the above method, after the initial point cloud data is converted into a rectangular coordinate system, it is pre-screened to filter out some messy noise points and solve the laser tailing phenomenon.
[0015] In a possible embodiment, the coordinate value corresponding to each of the initial coordinate points is specifically:
[0016] x=laser[i]*cos(resolution*i+start_ang)
[0017] y=laser[i]*sin(resolution*i+start_ang)
[0018] Among them, laser[i] is the length value of the laser reflected back corresponding to the initial point cloud data i, resolution is the resolution corresponding to the initial point cloud data i, and start_ang is the scanning starting angle corresponding to the initial point cloud data i.
[0019] In a possible embodiment, performing Hough transform straight line detection on multiple target coordinate points respectively to obtain multiple curves in the Hough space includes:
[0020] Perform polar coordinate system conversion on each of the target coordinate points to obtain a parameter value corresponding to each of the target coordinate points in the polar coordinate system;
[0021] Based on the parameter value corresponding to each target coordinate point in the polar coordinate system, a Hough transform is performed on each target coordinate point to obtain a curve corresponding to each target coordinate point in the Hough space.
[0022] Through the above method, each target coordinate point is converted into a curve using Hough transform, which does not require complex calculations, thereby improving the speed of mapping and positioning.
[0023] In a possible embodiment, the screening of the intersection points between the multiple curves according to a preset rule to obtain multiple target intersection points includes:
[0024] Clustering each of the intersection points according to a second clustering threshold to obtain a plurality of clusters;
[0025] The clusters having the number of intersection points less than a second preset value in the multiple clusters are filtered to obtain the multiple target intersection points.
[0026] By clustering and filtering each intersection point through the above method, effective straight line features can be retained and some invalid features can be filtered out.
[0027] In a possible embodiment, generating a target laser point cloud image based on the multiple target intersection points includes:
[0028] Restoring each of the target intersection points into point cloud data to obtain a plurality of target point cloud data;
[0029] The target laser point cloud image is generated based on the multiple target point cloud data.
[0030] Through the above method, a target laser point cloud map is generated based on the target intersection point, which improves the accuracy of mapping and further improves the accuracy of subsequent positioning.
[0031] In a second aspect, the present application provides a positioning device, the device comprising:
[0032] A Hough transform module is used to perform Hough transform straight line detection on multiple target coordinate points respectively to obtain multiple curves in the Hough space; wherein the multiple target coordinate points are obtained by converting the initial point cloud data in the original laser point cloud image;
[0033] A screening module, used for screening the intersection points between the plurality of curves according to a preset rule to obtain a plurality of target intersection points;
[0034] The mapping and positioning module is used to generate a target laser point cloud map based on the multiple target intersection points, and to perform AGV positioning based on the target laser point cloud map.
[0035] In a possible embodiment, the device further includes:
[0036] A conversion module, used for performing rectangular coordinate system conversion on each initial point cloud data in the initial laser point cloud image to obtain an initial coordinate point corresponding to each initial point cloud data in the rectangular coordinate system;
[0037] A clustering module, used for clustering each of the initial coordinate points according to a first clustering threshold to obtain a plurality of initial clusters;
[0038] The filtering module is used to filter the initial clusters whose number of coordinate points is less than a first preset value in the multiple initial clusters to obtain the multiple target coordinate points.
[0039] In a possible embodiment, the coordinate value corresponding to each of the initial coordinate points is specifically:
[0040] x=laser[i]*cos(resolution*i+start_ang)
[0041] y=laser[i]*sin(resolution*i+start_ang)
[0042] Among them, laser[i] is the length value of the laser reflected back corresponding to the initial point cloud data i, resolution is the resolution corresponding to the initial point cloud data i, and start_ang is the scanning starting angle corresponding to the initial point cloud data i.
[0043] In a possible embodiment, the Hough transform module is specifically used for:
[0044] Perform polar coordinate system conversion on each of the target coordinate points to obtain a parameter value corresponding to each of the target coordinate points in the polar coordinate system;
[0045] Based on the parameter value corresponding to each target coordinate point in the polar coordinate system, a Hough transform is performed on each target coordinate point to obtain a curve corresponding to each target coordinate point in the Hough space.
[0046] In a possible embodiment, the screening module is specifically used for:
[0047] Clustering each of the intersection points according to a second clustering threshold to obtain a plurality of clusters;
[0048] The clusters having the number of intersection points less than a second preset value in the multiple clusters are filtered to obtain the multiple target intersection points.
[0049] In a possible embodiment, the mapping and positioning module is specifically used to:
[0050] Restoring each of the target intersection points into point cloud data to obtain a plurality of target point cloud data;
[0051] The target laser point cloud image is generated based on the multiple target point cloud data.
[0052] In a third aspect, the present application provides an electronic device, including:
[0053] Memory, used to store computer programs;
[0054] The processor is used to implement the positioning method of the first aspect when executing the computer program stored in the memory.
[0055] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the positioning method of the first aspect is implemented.
[0056] In a fifth aspect, the present application provides a computer program product, which includes: a computer program code, when the computer program code is run on a computer, the computer executes the positioning method of the first aspect.
[0057] The technical effects that can be achieved in each of the above-mentioned second to fifth aspects and each of the above-mentioned aspects refer to the technical effects that can be achieved in the above-mentioned first aspect or various possible schemes in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 A flowchart of a positioning method provided in an embodiment of the present application;
[0059] Figure 2 A schematic diagram of an initial laser point cloud image provided in an embodiment of the present application;
[0060] Figure 3 A schematic diagram of a cluster filtering process provided in an embodiment of the present application;
[0061] Figure 4 A schematic diagram of a Hough transform straight line detection process provided in an embodiment of the present application;
[0062] Figure 5 A schematic diagram of a target laser point cloud image provided in an embodiment of the present application;
[0063] Figure 6 A schematic diagram of a mapping and positioning process provided in an embodiment of the present application;
[0064] Figure 7A schematic diagram of the structure of a positioning device provided in an embodiment of the present application;
[0065] Figure 8 A schematic diagram of the structure of a positioning device provided in an embodiment of the present application;
[0066] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0067] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The specific operating methods in the method embodiments can also be applied to device embodiments or system embodiments. It should be noted that in the description of the present application, "multiple" is understood as "at least two". "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, and A and B exist, and B exists alone. A is connected to B, which can represent: A is directly connected to B and A is connected to B through C. In addition, in the description of the present application, words such as "first" and "second" are only used to distinguish the purpose of description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.
[0068] Before introducing the positioning method provided in the embodiment of the present application, in order to facilitate understanding, the technical background of the embodiment of the present application is first introduced in detail below.
[0069] At present, the commonly used AGV navigation method is based on the laser SLAM method, which uses laser sensors to sense the surrounding environment. During the movement, the laser sensor on the vehicle body continuously emits laser beams and receives the reflected beams to obtain the distance between the obstacle and itself, establish a point cloud map and determine the position and posture of the AGV. Since laser sensors are easily affected by the surface characteristics of the target object, environmental factors, and system errors, there are noise points in the point cloud map established based on laser sensors, and the mapping and positioning accuracy is low.
[0070] In order to solve the above problems, a positioning method provided in an embodiment of the present application performs Hough transform straight line detection on multiple target coordinate points, utilizes the duality of points and lines, converts the straight line detection problem into an intersection detection problem, and then screens the intersections in the Hough space to obtain multiple target intersections, thereby generating a target laser point cloud map based on multiple target intersections, so that effective straight line features can be retained in the target laser point cloud map, and the calculation speed of Hough transform straight line detection is fast, thereby improving the speed and accuracy of map construction and positioning. At the same time, since there is no need to introduce multiple sensors for fusion positioning, increased costs can be avoided. Among them, the method and device described in the embodiment of the present application are based on the same technical concept. Since the principles of the problems solved by the method and the device are similar, the embodiments of the device and the method can refer to each other, and the repeated parts will not be repeated.
[0071] To further illustrate the technical solution provided by the embodiment of the present application, this is described in detail below in conjunction with the accompanying drawings and specific implementation methods. Although the embodiment of the present application provides the method operation steps as shown in the following embodiments or drawings, more or fewer operation steps may be included in the method based on routine or no creative labor. In the steps where there is no necessary causal relationship logically, the execution order of these steps is not limited to the execution order provided by the embodiment of the present application. The method may be executed or executed in parallel in the actual processing process or when the device is executed in accordance with the method sequence shown in the embodiment or drawings.
[0072] Figure 1 This is a flowchart of a positioning method provided in an embodiment of the present application. The process can be executed by a positioning device, which can be implemented by software, hardware, or a combination of software and hardware. Figure 1 As shown, the process includes the following steps:
[0073] 101: Perform Hough transform straight line detection on multiple target coordinate points respectively to obtain multiple curves in the Hough space.
[0074] In the embodiment of the present application, the laser radar uses the Raysun N301, with a 360° scanning range, 2000 laser points, and a resolution of 0.18°. Similarly, it can be applied to other types of laser radars and is not limited to a specific laser sensor. The laser radar is controlled to scan and image the detection area to obtain an initial radar point cloud image.
[0075] It is understandable that when a target object is scanned using a laser radar to obtain point cloud data of the target object, some noise points will inevitably appear in the point cloud data. If these noise points are not filtered out, they will have a bad impact on subsequent data processing.
[0076] like Figure 2The figure shows a schematic diagram of an initial laser point cloud image provided in an embodiment of the present application. Figure 2 The regular straight line features in the image are all valid features, and other messy noise points need to be filtered to improve the accuracy and efficiency of subsequent mapping and positioning.
[0077] First, each initial point cloud data in the initial laser point cloud image is converted into a rectangular coordinate system to obtain the initial coordinate point corresponding to each initial point cloud data in the rectangular coordinate system. Specifically, the initial point cloud data is converted into a rectangular coordinate system based on the scanning starting angle and resolution corresponding to the initial point cloud data. The specific conversion formula is:
[0078] x=laser[i]*cos(resolution*i+start_ang) (1)
[0079] y= laser[i]*sin(resolution*i +start_ang) (2)
[0080] In formulas (1) and (2), laser[i] is the length of the laser reflected back corresponding to the initial point cloud data i, resolution is the resolution corresponding to the initial point cloud data i, and start_ang is the scanning starting angle corresponding to the initial point cloud data i.
[0081] Then, each initial coordinate point is clustered according to the first clustering threshold to obtain multiple initial clusters, and the initial clusters in which the number of coordinate points is less than the first preset value are filtered to obtain multiple target coordinate points. The first clustering threshold can be 10 cm or 15 cm, and the specific value depends on the situation and is not specifically limited here; the first preset value can be 5 or 4, and the specific value depends on the situation and is not specifically limited here.
[0082] like Figure 3 , which is a schematic diagram of a cluster filtering process provided by an embodiment of the present application, wherein the first cluster threshold is 10 cm and the first preset value is 5. Figure 3 In the method, when the Euclidean distance between two adjacent initial coordinate points is less than 10 cm, the two initial coordinate points are considered to be one class, thereby obtaining initial clusters C1, C2, C3, C4, C5, C6, C7, C8 and C9, and the initial clusters with less than 5 coordinate points in the initial clusters C1, C2, C3, C4, C5, C6, C7, C8 and C9 are filtered, that is, after filtering the initial clusters C2, C3, C4, C5, C6, C8 and C9, multiple target coordinate points are obtained, so that some coordinate points without feature information can be filtered out.
[0083] Furthermore, Hough transform straight line detection is performed on multiple target coordinate points respectively to obtain multiple curves in the Hough space. Among them, the basic principle of Hough straight line detection is to use the duality of points and lines. Therefore, the Hough straight line detection algorithm converts the straight line detection problem in the rectangular coordinate system into the point detection problem in the parameter space, and completes the straight line detection task by finding the intersection in the parameter space. Specifically, each target coordinate point is transformed into a polar coordinate system to obtain the parameter value corresponding to each target coordinate point in the polar coordinate system, and based on the parameter value corresponding to each target coordinate point in the polar coordinate system, a Hough transform is performed on each target coordinate point to obtain the curve corresponding to each target coordinate point in the Hough space.
[0084] For example, Figure 4 FIG. 1 is a schematic diagram of a Hough transform straight line detection process provided by an embodiment of the present application. Figure 4 In the example, polar coordinates are used as parameter space. Line L passes through points (x1, y1) and (x2, y2). Line r is perpendicular to L through the origin and intersects L at point (p, q). The angle between r and the positive direction of the x-axis is θ. Then (p, q) = (rcosθ, rsinθ). The slope of line L1 is:
[0085]
[0086] Furthermore, from any point (x, y) on the line L, the slope of the line L1 is:
[0087]
[0088] Combining the above formulas (3) and (4), we get r = xcosθ + ysinθ, that is, the sine curves of the point (x1, y1) and the point (x2, y2) mapped to the polar coordinate space are r1 = x1cosθ + y1sinθ and r2 = x2cosθ + y2sinθ, and r1 and r2 intersect at the point (r', θ').
[0089] Through the above method, it is only necessary to transform the target coordinate points in the rectangular coordinate system into curves in the parameter space, and then detect the intersection of the curves in the parameter space to determine the straight line, thereby converting the problem of detecting the straight line into the problem of detecting the intersection.
[0090] 102: Screen the intersection points between the multiple curves according to a preset rule to obtain multiple target intersection points.
[0091] In the embodiment of the present application, the specific screening method may be: clustering each intersection point according to the second clustering threshold value (clustering according to the same clustering method as described above) to obtain multiple clusters, and filtering the clusters whose number of intersection points in the multiple clusters is less than the second preset value to obtain multiple target intersection points. The second clustering threshold value may be 10 cm or 5 cm, and the specific value depends on the situation and is not specifically limited here; the second preset value may be 5 or 6, and the specific value depends on the situation and is not specifically limited here.
[0092] It should be noted that, among the above intersection points, when three or more curves intersect and the distances between the multiple intersection points are within the preset range, the average of these multiple points is taken to obtain a unique intersection point, wherein the preset range is not limited and depends on the situation.
[0093] 103: Generate a target laser point cloud map based on multiple target intersection points, and perform AGV positioning based on the target laser point cloud map.
[0094] In the embodiment of the present application, the specific method for generating the target laser point cloud image may be: restore each target intersection point into point cloud data, obtain multiple target point cloud data, and generate the target laser point cloud image based on the multiple target point cloud data. Figure 5 As shown, it is a schematic diagram of a target laser point cloud map provided in an embodiment of the present application, through Figure 2 The above processing is performed on the initial laser point cloud image in to obtain the target laser point cloud image.
[0095] Through the above positioning method, Hough transform straight line detection is performed on multiple target coordinate points. The duality of points and lines is used to convert the straight line detection problem into an intersection detection problem. Then, the intersections in the Hough space are screened to obtain multiple target intersections, thereby generating a target laser point cloud map based on multiple target intersections, so that effective straight line features can be retained in the target laser point cloud map, and the calculation speed of Hough transform straight line detection is fast, thereby improving the speed and accuracy of map construction and positioning. At the same time, since there is no need to introduce multiple sensors for fusion positioning, it can avoid increasing costs.
[0096] In order to further elaborate on a positioning method provided by the present application, a specific process is described below. Figure 6 FIG. 1 is a schematic diagram of a mapping and positioning process provided in an embodiment of the present application, which specifically includes:
[0097] 601: Obtain laser point cloud data.
[0098] In an embodiment of the present application, a laser radar can be used to scan a target object to obtain laser point cloud data of the target object, wherein the laser radar selected is Raytheon N301, with a 360° scanning range, 2000 laser points, and a resolution of 0.18°.
[0099] 602: Perform coordinate conversion processing on the laser point cloud data to obtain coordinate points corresponding to the laser point cloud data in a rectangular coordinate system.
[0100] In an embodiment of the present application, the laser point cloud data is converted into a rectangular coordinate system based on the scanning start angle and resolution corresponding to the laser point cloud data to obtain the coordinate points corresponding to the laser point cloud data in the rectangular coordinate system.
[0101] 603: Perform Euclidean distance clustering pre-screening on all coordinate points in the rectangular coordinate system to obtain pre-screened coordinate points.
[0102] In the embodiment of the present application, each coordinate point is clustered according to the first clustering threshold to obtain multiple initial clusters, and the initial clusters with the number of coordinate points less than the first preset value in the multiple initial clusters are filtered to obtain pre-screened coordinate points. Thus, some messy noise points can be screened out and the laser tailing phenomenon can be solved.
[0103] 604: Perform Hough transform on the pre-screened coordinate points to obtain a curve corresponding to the pre-screened coordinate points in the Hough space.
[0104] In the embodiment of the present application, a Hough transform is performed on the lines connecting adjacent points to obtain the corresponding curves in the Hough space, thereby converting the straight line detection problem into an intersection detection problem.
[0105] 605: Filter the intersection points between all curves to obtain filtered point cloud data.
[0106] In the embodiment of the present application, the intersection points in the Hough space are subjected to cluster filtering similar to the previous one, the effective straight line features are retained, some invalid features are filtered out, and then the intersection points after cluster processing are restored to point cloud data to obtain filtered point cloud data. The filtered point cloud data is then input into the mapping and positioning module.
[0107] Based on the same inventive concept, a positioning device is also provided in the embodiment of the present application, such as Figure 7 FIG. 1 is a schematic diagram of a positioning device provided in an embodiment of the present application, the device comprising:
[0108] The Hough transform module 701 is used to perform Hough transform straight line detection on multiple target coordinate points respectively to obtain multiple curves in the Hough space; wherein the multiple target coordinate points are obtained by converting the initial point cloud data in the original laser point cloud image;
[0109] A screening module 702 is used to screen the intersections between multiple curves according to a preset rule to obtain multiple target intersections;
[0110] The mapping and positioning module 703 is used to generate a target laser point cloud map based on multiple target intersection points, and perform AGV positioning based on the target laser point cloud map.
[0111] In a possible embodiment, the coordinate value corresponding to each initial coordinate point is specifically:
[0112] x=laser[i]*cos(resolution*i+start_ang)
[0113] y=laser[i]*sin(resolution*i+start_ang)
[0114] Wherein, laser[i] is the length value of the laser reflection corresponding to the initial point cloud data i, resolution is the resolution corresponding to the initial point cloud data i, and start_ang is the scanning starting angle corresponding to the initial point cloud data i.
[0115] In a possible embodiment, the Hough transform module 701 is specifically used for:
[0116] Perform polar coordinate system conversion on each target coordinate point to obtain the parameter value corresponding to each target coordinate point in the polar coordinate system;
[0117] Based on the parameter value corresponding to each target coordinate point in the polar coordinate system, a Hough transform is performed on each target coordinate point to obtain a curve corresponding to each target coordinate point in the Hough space.
[0118] In a possible embodiment, the screening module 702 is specifically used for:
[0119] Clustering each intersection point according to the second clustering threshold to obtain multiple clusters;
[0120] Clusters having a number of intersection points less than a second preset value among the multiple clusters are filtered to obtain multiple target intersection points.
[0121] In a possible embodiment, the mapping and positioning module 703 is specifically used for:
[0122] Restore each target intersection point into point cloud data to obtain multiple target point cloud data;
[0123] Generate a target laser point cloud map based on multiple target point cloud data.
[0124] In other embodiments, in addition to the above Figure 7In addition to the modules shown in FIG. , it may further include a conversion module, a clustering module and a filtering module, such as Figure 8 , which is a schematic diagram of the structure of another positioning device provided in an embodiment of the present application. The device comprises: a Hough transform module 701 , a screening module 702 , a mapping and positioning module 703 , a conversion module 801 , a clustering module 802 and a filtering module 803 .
[0125] The conversion module 801 is used to perform rectangular coordinate system conversion on each initial point cloud data in the initial laser point cloud image to obtain the initial coordinate point corresponding to each initial point cloud data in the rectangular coordinate system;
[0126] The clustering module 802 is used to cluster each initial coordinate point according to a first clustering threshold to obtain a plurality of initial clusters;
[0127] The filtering module 803 is used to filter the initial clusters whose number of coordinate points is less than a first preset value in the multiple initial clusters to obtain multiple target coordinate points.
[0128] It should be noted here that the above-mentioned device provided in the embodiment of the present application can implement all the method steps in the above-mentioned method embodiment and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as the method embodiment will not be described in detail here.
[0129] Based on the same inventive concept, an electronic device is also provided in the embodiment of the present application, and the electronic device can realize the function of the aforementioned positioning device, referring to Fig. 9 , the electronic device comprises:
[0130] At least one processor 901, and a memory 902 connected to the at least one processor 901. The specific connection medium between the processor 901 and the memory 902 is not limited in the embodiment of the present application. Fig. 9 In the example, the processor 901 and the memory 902 are connected via a bus 900. Fig. 9 The bus 900 is represented by a bold line, and the connection between other components is only for schematic illustration and is not intended to be limiting. The bus 900 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 Only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. Alternatively, the processor 901 can also be called a controller, and there is no limitation on the name.
[0131] In the embodiment of the present application, the memory 902 stores instructions that can be executed by at least one processor 901. The at least one processor 901 can execute the positioning method discussed above by executing the instructions stored in the memory 902. The processor 901 can implement Figure 7Or the functions of each module in the device shown in 8.
[0132] Among them, processor 901 is the control center of the device, and can use various interfaces and lines to connect various parts of the entire control device. By running or executing instructions stored in memory 902 and calling data stored in memory 902, various functions of the device and processing data, the device can be monitored as a whole.
[0133] In one possible design, the processor 901 may include one or more processing units, and the processor 901 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 901. In some embodiments, the processor 901 and the memory 902 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on separate chips.
[0134] Processor 901 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the positioning method disclosed in the embodiments of the present application can be directly embodied as a hardware processor to be executed, or a combination of hardware and software modules in the processor can be executed.
[0135] The memory 902 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 902 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 902 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 902 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.
[0136] By programming the processor 901, the code corresponding to the positioning method described in the above embodiment can be fixed into the chip, so that the chip can execute the positioning method when running. Figure 1 The steps of the positioning method in the embodiment shown are as follows: How to design and program the processor 901 is a technology well known to those skilled in the art and will not be described in detail here.
[0137] Based on the same inventive concept, an embodiment of the present disclosure provides a computer storage medium, the computer storage medium includes: a computer program code, when the computer program code is executed on a computer, the computer executes any one of the positioning methods discussed above. Since the principle of solving the problem by the above computer storage medium is similar to that of a positioning method, the implementation of the above computer storage medium can refer to the implementation of the method, and the repeated parts will not be repeated.
[0138] In the specific implementation process, the computer storage medium may include: Universal Serial Bus Flash Drive (USB), mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, and other storage media that can store program codes.
[0139] Based on the same inventive concept, the embodiment of the present disclosure also provides a computer program product, which includes: computer program code, when the computer program code is run on a computer, the computer executes any one of the positioning methods discussed above. Since the principle of solving the problem by the above computer program product is similar to that of a positioning method, the implementation of the above computer program product can refer to the implementation of the method, and the repeated parts will not be repeated.
[0140] The computer program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more conductors, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0141] The method in the present application can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed on a computer, the process or function described in the present application is executed in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device, a core network device, an OAM or other programmable device.
[0142] The computer program or instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; it may also be an optical medium, such as a digital video disk; it may also be a semiconductor medium, such as a solid-state drive. The computer-readable storage medium may be a volatile or non-volatile storage medium, or may include both volatile and non-volatile types of storage media.
[0143] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.
[0144] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that has the functions specified in one or more boxes.
[0145] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0146] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0147] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A positioning method, characterized in that: The method comprises: Performing Hough transform straight line detection on multiple target coordinate points respectively to obtain multiple curves in the Hough space; wherein the multiple target coordinate points are obtained by converting the initial point cloud data in the original laser point cloud image; The intersection points between the plurality of curves are screened according to a preset rule to obtain a plurality of target intersection points; A target laser point cloud map is generated based on the multiple target intersection points, and automatic guided vehicle AGV positioning is performed based on the target laser point cloud map.
2. The method according to claim 1, characterized in that Before performing Hough transform straight line detection on a plurality of target coordinate points respectively, the method further includes: Perform rectangular coordinate system conversion on each initial point cloud data in the initial laser point cloud image to obtain the initial coordinate point corresponding to each initial point cloud data in the rectangular coordinate system; Clustering each of the initial coordinate points according to a first clustering threshold to obtain a plurality of initial clusters; Initial clusters having a number of coordinate points less than a first preset value in the multiple initial clusters are filtered to obtain the multiple target coordinate points.
3. The method according to claim 2, characterized in that The coordinate values corresponding to each of the initial coordinate points are specifically: x=laser[i]*cos(resolution*i+start_ang) y=laser[i]*sin(resolution*i+start_ang) Among them, laser[i] is the length value of the laser reflected back corresponding to the initial point cloud data i, resolution is the resolution corresponding to the initial point cloud data i, and start_ang is the scanning starting angle corresponding to the initial point cloud data i.
4. The method according to claim 1, characterized in that The Hough transform straight line detection is performed on multiple target coordinate points respectively to obtain multiple curves in the Hough space, including: Perform polar coordinate system conversion on each of the target coordinate points to obtain a parameter value corresponding to each of the target coordinate points in the polar coordinate system; Based on the parameter value corresponding to each target coordinate point in the polar coordinate system, a Hough transform is performed on each target coordinate point to obtain a curve corresponding to each target coordinate point in the Hough space.
5. The method according to claim 1, characterized in that The method of screening the intersection points between the plurality of curves according to a preset rule to obtain a plurality of target intersection points includes: Clustering each of the intersection points according to a second clustering threshold to obtain a plurality of clusters; The clusters having the number of intersection points less than a second preset value in the multiple clusters are filtered to obtain the multiple target intersection points.
6. The method according to claim 1, characterized in that The generating of a target laser point cloud image based on the multiple target intersection points comprises: Restoring each of the target intersection points into point cloud data to obtain a plurality of target point cloud data; The target laser point cloud image is generated based on the multiple target point cloud data.
7. A positioning device, characterized in that: The device comprises: A Hough transform module is used to perform Hough transform straight line detection on multiple target coordinate points respectively to obtain multiple curves in the Hough space; wherein the multiple target coordinate points are obtained by converting the initial point cloud data in the original laser point cloud image; A screening module, used for screening the intersection points between the plurality of curves according to a preset rule to obtain a plurality of target intersection points; A mapping and positioning module is used to generate a target laser point cloud map based on the multiple target intersection points, and to perform automatic guided vehicle AGV positioning based on the target laser point cloud map.
8. The device according to claim 7, characterized in that The device also includes: A conversion module, used for performing rectangular coordinate system conversion on each initial point cloud data in the initial laser point cloud image to obtain an initial coordinate point corresponding to each initial point cloud data in the rectangular coordinate system; A clustering module, used for clustering each of the initial coordinate points according to a first clustering threshold to obtain a plurality of initial clusters; The filtering module is used to filter the initial clusters whose number of coordinate points is less than a first preset value in the multiple initial clusters to obtain the multiple target coordinate points.
9. The device according to claim 7, characterized in that The Hough transform module is specifically used for: Perform polar coordinate system conversion on each of the target coordinate points to obtain a parameter value corresponding to each of the target coordinate points in the polar coordinate system; Based on the parameter value corresponding to each target coordinate point in the polar coordinate system, a Hough transform is performed on each target coordinate point to obtain a curve corresponding to each target coordinate point in the Hough space.
10. The device according to claim 7, characterized in that The screening module is specifically used for: Clustering each of the intersection points according to a second clustering threshold to obtain a plurality of clusters; The clusters having the number of intersection points less than a second preset value in the multiple clusters are filtered to obtain the multiple target intersection points.
11. The device according to claim 7, characterized in that The mapping and positioning module is specifically used for: Restoring each of the target intersection points into point cloud data to obtain a plurality of target point cloud data; The target laser point cloud image is generated based on the multiple target point cloud data.
12. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to implement the method according to any one of claims 1 to 6 when executing the computer program stored in the memory.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
14. A computer program product, characterized in that The computer program product comprises: a computer program code, and when the computer program code is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 6.
Citation Information
Cited By
Two-dimensional welding seam starting point locating method based on laser tracking
CN119260113A
