Engineering vehicle positioning method and device based on laser radar
Through deep learning algorithms, the lidar point cloud frames are classified and outline boundary extraction are solved, which solves the problems of stability and accuracy of positioning results in the prior art, and achieves high-precision positioning in a highly dynamic changing environment.
Patent Information
- Application Number
- CN202411047200.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-01
- Publication Date
- 2024-11-01
AI Technical Summary
In the prior art, the stability and accuracy of the positioning results are poor in a highly dynamically changing engineering machinery environment based on point cloud registration.
Through deep learning algorithms, the lidar point cloud frames are classified, the contour boundary information between the material pile and the ground is extracted, and the contour boundary information of the map contour boundary information at the previous moment is compared to the vehicle positioning to avoid the impact of environmental changes on the positioning information.
It improves the stability and accuracy of vehicle positioning results and adapts to the highly dynamically changing engineering machinery environment.
Smart Images

Figure CN118884450A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of positioning technology, and in particular to a laser radar-based engineering vehicle positioning method, device, electronic equipment and storage medium. Background Art
[0002] In the field of construction machinery, construction machinery needs to perform work tasks, so the work area often changes, such as the shape and size of the material pile changing in real time. Therefore, for unmanned autonomous construction machinery, high-precision positioning is required in a highly dynamic environment, so as to pass the positioning results to perception and perceive objects in the environment in real time.
[0003] In the existing positioning technology, for unmanned engineering machinery, in relatively fixed working scenes such as indoors and outdoors, SLAM (Simultaneous Localization and Mapping) is used to build the site map in advance, and the real-time point cloud collected by the lidar is matched with the map point cloud to infer the body position.
[0004] However, since the working environment of construction machinery is relatively open and the shape of the material pile is highly dynamic and changes in real time, the stability and accuracy of the positioning results obtained by simply relying on point cloud registration are poor in environments where the feature information of the current frame point cloud is less or the dynamic changes are large. Summary of the invention
[0005] The present invention provides a laser radar-based engineering vehicle positioning method, device, electronic device and storage medium to solve the problem of poor stability and accuracy of positioning results obtained by point cloud registration in the prior art.
[0006] According to one aspect of the present invention, a method for locating an engineering vehicle based on a laser radar is provided, which is characterized by comprising:
[0007] When the preset conditions are met, a laser radar point cloud frame of the vehicle at the current moment is obtained, and point clouds in the laser radar point cloud frame are classified by a deep learning algorithm, wherein the categories of the laser radar point cloud include a stockpile point cloud and a ground point cloud;
[0008] Extracting the contour boundary information of the material pile and the ground at the current moment from the laser radar point cloud frame according to the material pile point cloud and the ground point cloud;
[0009] The vehicle is positioned according to the contour boundary information of the stockpile and the ground at the current moment and the contour boundary information of the map at the previous moment.
[0010] According to another aspect of the present invention, there is provided a laser radar-based engineering vehicle positioning device, comprising:
[0011] A point cloud classification module is used to obtain a laser radar point cloud frame of the vehicle at the current moment when preset conditions are met, and classify the point cloud in the laser radar point cloud frame through a deep learning algorithm to obtain at least a pile point cloud and a ground point cloud;
[0012] A contour boundary extraction module is used to extract the contour boundary information of the material pile and the ground at the current moment from the laser radar point cloud frame according to the material pile point cloud and the ground point cloud;
[0013] The vehicle positioning module is used to position the vehicle according to the contour boundary information of the stockpile and the ground at the current moment and the contour boundary information of the map at the previous moment.
[0014] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0015] at least one processor; and
[0016] a memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the laser radar-based engineering vehicle positioning method described in any embodiment of the present invention.
[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the laser radar-based engineering vehicle positioning method described in any embodiment of the present invention when executed.
[0019] The technical solution of the embodiment of the present invention classifies the acquired point cloud, determines the boundary contour information between the ground and the material pile based on the classified material pile point cloud and the ground point cloud, and then determines the vehicle's position information by comparing the map contour boundaries of two adjacent frames. This can avoid the impact of environmental changes on the vehicle positioning information and further improve the stability and positioning accuracy of the vehicle positioning results.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 is a flow chart of a method for positioning an engineering vehicle based on a laser radar according to Embodiment 1 of the present invention;
[0023] Figure 2 This is a schematic diagram of the contour boundary of the ground and the pile extracted from the LiDAR point cloud;
[0024] Figure 3 This is a schematic diagram of the effect before and after matching the boundary points of the two frames;
[0025] Figure 4 is a flow chart of another method for locating an engineering vehicle based on a laser radar according to Embodiment 2 of the present invention;
[0026] Figure 5 is a structural schematic diagram of a laser radar-based engineering vehicle positioning device provided according to Embodiment 3 of the present invention;
[0027] Figure 6 It is a structural schematic diagram of an electronic device for implementing the laser radar-based engineering vehicle positioning method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] Embodiment 1
[0031] Figure 1 A flowchart of a method for locating an engineering vehicle based on a laser radar is provided for the first embodiment of the present invention. This embodiment is applicable to locating an engineering vehicle. The method can be performed by an engineering vehicle positioning device based on a laser radar. The engineering vehicle positioning device based on a laser radar can be implemented in the form of hardware and / or software. The engineering vehicle positioning device based on a laser radar can be configured in an electronic device. Figure 1 As shown, the method includes:
[0032] S110. When preset conditions are met, obtain a laser radar point cloud frame of the vehicle at the current moment, and classify the point cloud in the laser radar point cloud frame through a deep learning algorithm to obtain at least a pile point cloud and a ground point cloud.
[0033] Among them, the preset conditions can be pre-set by the user to determine the conditions for collecting the laser radar point cloud frame of the vehicle at the current moment. Only when the preset conditions are met, the laser radar point cloud frame of the vehicle at the current moment is acquired through the laser radar. Among them, the current moment can be the moment when the vehicle to be located is parked in the set area or the preset conditions during the movement of the vehicle. The preset conditions may include factors such as time conditions, vehicle movement distance conditions and / or vehicle position conditions. For example, satisfying the preset conditions may be the situation where the time interval between the laser radar point cloud frame collected at the current moment and the previous moment reaches 1s; it may also be the situation where the vehicle's movement distance reaches 3m; it may also be the situation where the vehicle's movement distance reaches 1m and the time interval between the laser radar point cloud frame collected at the previous moment reaches 1s. The present invention does not specifically limit the condition information of the preset conditions, and those skilled in the art can set them according to experience or needs.
[0034] The laser radar point cloud frame of the vehicle at the current moment can be a point cloud data set generated by the laser radar installed on the vehicle to scan the surrounding environment when the vehicle meets the preset conditions. The laser radar point cloud frame of the vehicle at the current moment can be used for vehicle positioning and map updating.
[0035] Among them, the deep learning algorithm can be a learning algorithm pre-trained or pre-set by the user, and is used to classify the point clouds in the point cloud data set of the vehicle collected by the laser radar at the current moment. The present invention does not specifically limit the training process and algorithm type of the algorithm. The user can select an existing deep learning algorithm, a self-trained deep learning algorithm, or a deep learning algorithm obtained by combining multiple algorithms based on experience to classify the point clouds in the point cloud data set of the vehicle collected by the laser radar at the current moment. Among them, the stockpile point cloud can be a three-dimensional point cloud set formed by a pile of materials, and these point cloud data can reflect the shape, size, height and other characteristics of the stockpile. Among them, the types of stockpiles can be rock stockpiles, coal stockpiles or sand stockpiles, etc. The ground point cloud can refer to the point cloud data of the ground scanned by the laser radar, and these point cloud data can reflect the shape, slope, texture and other information of the ground.
[0036] Specifically, when the preset conditions are met, the laser radar point cloud frame of the vehicle at the current moment is obtained, and the point cloud in the laser radar point cloud frame is classified through a deep learning algorithm to obtain at least a material pile point cloud and a ground point cloud. This can be when the vehicle is parked in a set area or reaches a certain distance or time threshold during movement, and the laser radar installed on the vehicle scans the surrounding environment and generates a laser radar point cloud frame at the current moment. Then, the obtained laser radar point cloud frame is classified and processed through a pre-trained or set deep learning algorithm, and the point cloud is divided into at least two categories: a material pile point cloud and a ground point cloud. By identifying and analyzing the material pile point cloud, the state and distribution information of the material accumulation can be obtained, thereby providing a data basis for subsequent vehicle positioning and map updates.
[0037] S120, extracting the contour boundary information of the material pile and the ground at the current moment from the laser radar point cloud frame according to the material pile point cloud and the ground point cloud.
[0038] Among them, the contour boundary information of the material pile and the ground at the current moment can be the specific information about the boundary between the material pile and the ground extracted from the material pile point cloud and the ground point cloud after the lidar point cloud frame data collected at the current moment is classified by a deep learning algorithm.
[0039] Specifically, the contour boundary information of the material pile and the ground at the current moment is extracted from the laser radar point cloud frame according to the material pile point cloud and the ground point cloud, which can be done by traversing the ground point cloud and identifying the boundary points in various directions of the ground. Then, with the boundary points in various directions of the ground identified as the center of the sphere, a radius is set to check whether there is a material pile point cloud in the sphere. If there is a material pile point cloud, these boundary points are confirmed as the boundary points between the ground and the material pile, and then the contour boundary of the ground and the material pile in the laser radar point cloud is extracted. Among them, the radius value of the sphere can be set by those skilled in the art based on experience, and the present invention does not specifically limit this.
[0040] Figure 2 This is a schematic diagram of the contour boundary of the ground and the pile extracted from the LiDAR point cloud. Figure 2 As shown, the red point cloud is the junction of the stockpile point cloud and the ground point cloud contour. Exemplarily, the algorithm flow of the boundary contour extraction of the laser radar point cloud contour is as follows: extract boundary points from the ground point cloud, and the algorithm for extracting boundary points can be to traverse the ground point cloud and find whether there are points within a certain distance in the positive direction of the point cloud x-axis and within a certain range of the y-axis. If there are no points, it means that the ground point cloud is a boundary point in the positive direction of the x-axis. If there are points, the angle between the line connecting the point and the ground point cloud and the positive direction of the x-axis is calculated. If the angles are greater than the threshold angle, it means that the point is a boundary point in the positive direction of the x-axis. Similarly, the negative direction of the x-axis, the positive direction of the y-axis, the negative direction of the y-axis, and the direction with a certain angle to the x-axis and y-axis can be traversed to check whether it is a boundary point in these directions. In this way, the boundary points of the contour of the laser radar point cloud can be extracted. Then traverse the boundary points of the ground, set the radius R of the sphere, and check whether there is a material pile point cloud in the sphere with radius R and the boundary point as the center. If yes, it means that the point is the boundary point between the ground and the material pile. If not, it is discarded, thereby realizing the boundary extraction between the ground and the material pile point cloud.
[0041] S130 , positioning the vehicle according to the contour boundary information of the stockpile and the ground at the current moment and the contour boundary information of the map at the previous moment.
[0042] The map contour boundary information at the previous moment may be the boundary data information of the material pile and the ground contour in the map recorded or constructed by the vehicle at the previous time point.
[0043] Specifically, the vehicle is positioned based on the contour boundary information of the material pile and the ground at the current moment and the contour boundary information of the map at the previous moment. The contour boundary information of the material pile and the ground at the current moment can be rotated or translated to achieve the effect of overlapping with the contour boundary information of the map at the previous moment, and then the position information of the vehicle at the current moment is obtained based on the rotation and translation data to complete the positioning of the vehicle at the current moment. Figure 3 This is a schematic diagram of the effect before and after matching the contour points of two frames. Figure 3As shown, the left side of the figure shows the point cloud contours of the two frames before matching, and the right side shows the point cloud contours after matching. The point cloud contours of the two frames before matching have a small deviation in rotation and translation, and the point cloud contours of the two frames after matching basically overlap, which can be used to calculate the pose transformation between the two frames.
[0044] Optionally, when determining the initial posture of the vehicle, the vehicle may be parked in a predetermined area, which may be one or more fixed areas preset by the user. After the vehicle is parked in the predetermined area, the lidar point cloud of the initial frame may be acquired through the lidar, and then the point cloud information of the fixed object may be acquired from the lidar point cloud of the initial frame through the deep learning model, and the point cloud of the fixed object may be matched with the constructed map point cloud, and then the initial posture of the vehicle may be determined according to the matching result.
[0045] The technical solution of the embodiment of the present invention classifies the acquired point cloud, determines the boundary contour information between the ground and the material pile based on the classified material pile point cloud and the ground point cloud, and then determines the vehicle's position information by comparing the map contour boundaries of two adjacent frames. This can avoid the impact of environmental changes on the vehicle positioning information and further improve the stability and positioning accuracy of the vehicle positioning results.
[0046] Embodiment 2
[0047] Figure 4 A flowchart of another method for locating an engineering vehicle based on a laser radar is provided for the second embodiment of the present invention. The embodiment of the present invention is based on the above embodiments and specifically defines a method for updating the historical memory points of the map based on the contour boundary information of the current material pile and the ground and the map contour boundary information at the previous moment after locating the vehicle, and obtaining an updated map contour based on the contour boundary information of the current material pile and the ground and the map contour boundary information at the previous moment. For schemes not described in detail in the embodiments of the present invention, see the above embodiments. Figure 2 As shown, the method includes:
[0048] S210. When preset conditions are met, obtain a laser radar point cloud frame of the vehicle at the current moment, and classify the point cloud in the laser radar point cloud frame through a deep learning algorithm to obtain at least a pile point cloud and a ground point cloud.
[0049] S220, extracting the contour boundary information of the material pile and the ground at the current moment from the laser radar point cloud frame according to the material pile point cloud and the ground point cloud.
[0050] S230: Positioning the vehicle according to the contour boundary information of the stockpile and the ground at the current moment and the contour boundary information of the map at the previous moment.
[0051] S240, updating the historical memory points of the map according to the contour boundary information of the stockpile and the ground at the current moment and the map contour boundary information at the previous moment, to obtain an updated map contour.
[0052] Among them, historical memory points can be special points or special areas stored in the map to characterize specific environmental features, including key feature points or special areas such as the boundary points of the stockpile, the obstacle points on the ground, and the boundary points of the road. These points or areas can be identified based on previously collected point cloud information, or can be determined through map information pre-built by the user.
[0053] Specifically, the historical memory points of the map are updated according to the contour boundary information of the stockpile and the ground at the current moment and the map contour boundary information at the previous moment, so as to obtain the updated map contour, including:
[0054] Get the laser radar point cloud frame at the current moment and make a sphere with the historical memory point as the center;
[0055] Traverse the point cloud in the laser radar point cloud frame at the current moment to determine whether there is a stockpile point cloud and / or a ground point cloud in the sphere;
[0056] If a stockpile point cloud and / or a ground point cloud is detected within the sphere, the shortest distance from the stockpile point cloud and / or the ground point cloud within the sphere to the historical memory point is calculated;
[0057] The historical memory points are updated according to the shortest distance to obtain an updated map outline.
[0058] The radius and the shortest distance of the sphere may be values set by the user according to experience or needs, and the present invention does not specifically limit the values of the radius and the shortest distance of the sphere.
[0059] Specifically, obtain the laser radar point cloud frame at the current moment, and make a sphere with the historical memory point as the center; traverse the point cloud in the laser radar point cloud frame at the current moment to determine whether there is a pile point cloud and / or ground point cloud in the sphere. If the pile point cloud and / or ground point cloud are detected in the sphere, calculate the shortest distance from the pile point cloud and / or ground point cloud in the sphere to the historical memory point. This can be done by traversing the laser radar point cloud frame at the current moment, checking the points in the sphere with the historical memory point as the center, and filtering out the point clouds belonging to the pile and / or the ground from these points to form a pile and / or ground point cloud set in the sphere. Then calculate the distance from all points in the pile point cloud set in the sphere to the memory point and the distance from all points in the ground point cloud set in the sphere to the memory point, and calculate the shortest distance between the pile point cloud and the ground point cloud and the memory point as the shortest distance from the pile point cloud and / or ground point cloud in the sphere to the historical memory point.
[0060] Specifically, updating the historical memory points according to the shortest distance to obtain the updated map outline can be achieved by comparing the shortest distance with a preset threshold. If the shortest distance is greater than the threshold, it means that the position of the pile relative to the memory point has changed significantly. At this time, it is necessary to move the memory point to a new position or delete the memory point according to the difference between the shortest distance and the threshold to complete the update of the historical memory points, so that the memory points can more accurately reflect the current position of the pile. After completing the update of the historical memory points, the outline of the map will also change accordingly. At this time, the updated memory points can be reintegrated into the map to determine the updated map outline, thereby obtaining more accurate map information.
[0061] Furthermore, before updating according to the historical memory point of the shortest distance map, the method further includes:
[0062] It is determined whether the shortest distance is less than a preset threshold, and only when the shortest distance is greater than the preset threshold, the step of updating according to the historical memory point of the shortest distance map is executed; if the shortest distance is less than the preset threshold, the step of updating according to the historical memory point of the shortest distance map may not be executed. The preset threshold can be set by those skilled in the art according to their experience or the need to update the historical memory point, and the present invention does not specifically limit the size of the preset threshold.
[0063] For example, after obtaining the laser radar point cloud of the current frame, a sphere with a certain radius and a historical memory point as the center of the sphere can be traversed to determine whether there is a point cloud within the sphere.
[0064] If not, it means that the laser radar field of view does not illuminate the historical memory point area, and it will continue to be retained; if there is a point cloud in the sphere, the shortest distance from the point cloud in the sphere to the historical memory point is calculated. In theory, if there is no change near the memory point, the shortest distance is close to 0. If there is a change, there will be no laser radar point cloud near the memory point. Based on this feature, it is determined whether the minimum distance is less than a certain threshold. If it is less than, the historical memory point is retained; if it is greater, the historical memory point is discarded, and the historical memory points and map outlines in the map are updated.
[0065] In this embodiment, the point cloud in the laser radar point cloud frame is classified to obtain a fixed object point cloud and a moving object point cloud;
[0066] The fixed object point cloud can be a fixed object in the vehicle working environment, such as a pillar, wall, or other large equipment that does not change position or is not prone to change position. The mobile object point cloud can be other working vehicles, mobile working equipment, and other objects in the vehicle working environment that change position frequently.
[0067] Specifically, after extracting the contour boundary information of the material pile and the ground at the current moment from the laser radar point cloud frame according to the material pile point cloud and the ground point cloud, the method further includes:
[0068] Extract fixed object point cloud from LiDAR point cloud;
[0069] If the fixed object point cloud and / or contour boundary information in the lidar point cloud meets the preset conditions, the lidar point cloud frame is saved as a point cloud keyframe, and the vehicle positioning information of the point cloud keyframe and the contour boundary information of the keyframe are stored.
[0070] Among them, the extraction of fixed object point clouds in the lidar point cloud can be achieved through a deep learning algorithm or through some existing extraction algorithms. The present invention does not specifically limit the method of extracting fixed object point clouds in the lidar point cloud.
[0071] Among them, the preset condition can be pre-set by the user, and can be used to save the laser radar point cloud frame as a point cloud key frame when the laser radar point cloud frame meets the set condition. Among them, the set condition can be a certain ratio threshold of the number of fixed object point clouds and / or the clarity of the contour boundary information can reach a certain set condition. Among them, the point cloud key frame can be a representative and important point cloud frame selected for efficient storage, transmission and processing of point cloud data generated by laser radar or other scanning devices when processing these data. It can be used to construct a map and detect the constructed map information. For example, if the laser radar point cloud frame contains a sufficient number and quality of fixed object point clouds that can reflect the static structure of the environment, the laser radar point cloud frame can be saved as a point cloud key frame; if the difference between the fixed object point cloud or contour boundary information between the current frame and the previous frame is large, the laser radar point cloud frame can also be saved as a point cloud key frame. The present invention does not specifically limit the conditions for determining the point cloud key frame, and those skilled in the art can determine the conditions for determining the point cloud key frame based on their own experience.
[0072] Specifically, if the fixed object point cloud and / or contour boundary information in the laser radar point cloud meets the preset conditions, the laser radar point cloud frame is saved as a point cloud key frame, and the vehicle positioning information of the point cloud key frame and the contour boundary information of the key frame are stored. This can be done after the fixed object point cloud in the laser radar point cloud is extracted, and it is determined whether the fixed object point cloud and / or contour boundary information in the laser radar point cloud can meet the preset conditions. If the fixed object point cloud and / or contour boundary information in the laser radar point cloud can meet the preset conditions, the current laser radar point cloud frame can be saved as a point cloud key frame. The clock information of the current point cloud key frame, the current vehicle positioning information, and the current contour boundary information are stored for subsequent detection of the updated map contour and vehicle positioning information.
[0073] In this embodiment, after updating the historical memory points of the map based on the contour boundary information of the map at the previous moment according to the contour boundary information of the stockpile and the ground at the current moment, it also includes:
[0074] Determine whether the vehicle position information and the key frame position information meet the set conditions;
[0075] If the vehicle position information and the key frame position information meet the set conditions, the updated map contour and vehicle positioning information are detected according to the point cloud key frame to obtain the detection result;
[0076] The map contour and vehicle positioning information are calibrated based on the detection results.
[0077] Among them, the set condition can be that the distance between the vehicle position information and the position information of the key frame meets the preset condition. For example, the vehicle position information and the position information of the key frame meet the set condition, which can be that the vehicle's current position information and the position information when the key frame is collected are relatively close, and the interval between the position information of the two is a preset distance condition such as 1m, 5m or 10m, that is, when the vehicle's current position information is close to the position information when the key frame is collected, it can be determined that the vehicle position information and the position information of the key frame meet the set condition. The present invention does not specifically limit the distance condition between the vehicle position information and the position information of the key frame, and those skilled in the art can set it according to experience or needs.
[0078] The detection may be a loop detection of the updated map contour information and vehicle positioning information using key frames. The loop detection by key frames can effectively eliminate the accumulated error and improve the consistency of the map and the accuracy of positioning. The loop detection in the present invention may be a loop detection of the positioning accuracy, positioning stability, map contour update accuracy or map contour update clarity. The present invention does not specifically limit the specific detection conditions, which can be set according to the user's experience or needs.
[0079] Specifically, the map outline and vehicle positioning information are calibrated according to the detection results, including:
[0080] If the vehicle positioning information does not meet the set conditions, the vehicle positioning information is updated according to the vehicle positioning information corresponding to the point cloud keyframe;
[0081] If the map outline information does not meet the set conditions, the map outline information is updated according to the map outline information corresponding to the point cloud keyframe.
[0082] Specifically, if the vehicle positioning information does not meet the set conditions, the vehicle positioning information is updated according to the vehicle positioning information corresponding to the point cloud key frame. This can be after loopback detection of the vehicle positioning accuracy, positioning stability and other results related to the vehicle positioning information. If one or more of them do not meet the set conditions, the corresponding vehicle positioning information is obtained from the saved point cloud key frame. The vehicle positioning information is updated using the obtained vehicle positioning information. After the vehicle positioning information is updated, the positioning algorithm is improved in a targeted manner according to the reason why the vehicle positioning information does not meet the set conditions. The present invention does not specifically limit the specific method for improving the positioning algorithm.
[0083] Specifically, if the map outline information does not meet the set conditions, the map outline information is updated according to the map outline information corresponding to the point cloud keyframe. The results related to the map outline update, such as the map outline update accuracy or the map outline update clarity, are looped back. If one or more of them do not meet the set conditions, the corresponding map outline information is obtained from the saved point cloud keyframe. The map outline information is updated by the obtained map outline information. After the map outline information is updated, the map outline update algorithm is improved in a targeted manner according to the reason why the map outline information does not meet the set conditions. The present invention does not specifically limit the specific method for improving the map outline update algorithm.
[0084] Optionally, after obtaining the laser radar point cloud frame of the vehicle at the current moment, it also includes:
[0085] The historical memory points of the map at the previous moment are updated according to the laser radar point cloud frame of the vehicle at the current moment to obtain updated historical memory points.
[0086] Specifically, when the preset conditions are met, the lidar point cloud frame of the vehicle at the current moment can be obtained. At this time, the historical memory points in the map may have changed compared with the previous moment. Therefore, the historical memory points in the map at the previous moment can be updated according to the lidar point cloud data of the vehicle at the current moment, and then the historical memory point information of the map at the current moment is obtained, so as to more accurately locate the vehicle. The present invention does not specifically limit the specific historical memory point updating method.
[0087] The technical solution of the embodiment of the present invention, after positioning the vehicle according to the contour boundary information of the material pile and the ground at the current moment and the map contour boundary information at the previous moment, updates the historical memory points of the map according to the contour boundary information of the material pile and the ground at the current moment to obtain the updated map contour, and can update the map contour in real time, so that the vehicle can obtain the change information of the map contour and adapt to the changing working environment. The laser radar point cloud frame that meets the set conditions is saved as a point cloud key frame, and the accumulated error that occurs when positioning the vehicle is detected through the point cloud key frame, thereby eliminating the accumulated error and updating the map contour after the error is eliminated. It can avoid large positioning errors caused by the positioning being too dependent on the matching accuracy between the two frames, and further improve the stability and positioning accuracy of the vehicle positioning results.
[0088] Embodiment 3
[0089] Figure 5 This is a schematic diagram of the structure of a laser radar-based engineering vehicle positioning device provided in Embodiment 3 of the present invention. Figure 5 As shown, the device includes: a point cloud classification module 31, a contour boundary extraction module 32, and a vehicle positioning module 33.
[0090] The point cloud classification module 31 is used to obtain the laser radar point cloud frame of the vehicle at the current moment when the preset conditions are met, and classify the point cloud in the laser radar point cloud frame through a deep learning algorithm to obtain at least a pile point cloud and a ground point cloud;
[0091] The contour boundary extraction module 32 is used to extract the contour boundary information of the material pile and the ground at the current moment from the laser radar point cloud frame according to the material pile point cloud and the ground point cloud;
[0092] The vehicle positioning module 33 is used to position the vehicle according to the contour boundary information of the stockpile and the ground at the current moment and the contour boundary information of the map at the previous moment.
[0093] Furthermore, the device also includes:
[0094] The map contour updating module is used to update the historical memory points of the map according to the contour boundary information of the material pile and the ground at the current moment and the map contour boundary information at the previous moment after positioning the vehicle, so as to obtain the updated map contour.
[0095] Furthermore, the device also includes:
[0096] The update strategy module is used to determine whether the shortest distance is less than a preset threshold before updating the historical memory points of the shortest distance map, and execute the step of updating the historical memory points of the shortest distance map only when the shortest distance is greater than the preset threshold.
[0097] Furthermore, the map outline update module is specifically used to:
[0098] Get the laser radar point cloud frame at the current moment and make a sphere with the historical memory point as the center;
[0099] Traverse the point cloud in the laser radar point cloud frame at the current moment to determine whether there is a pile point cloud in the sphere;
[0100] If a stockpile point cloud and / or a ground point cloud is detected within the sphere, the shortest distance from the stockpile point cloud and / or the ground point cloud within the sphere to the historical memory point is calculated;
[0101] The historical memory points are updated according to the shortest distance to obtain an updated map outline.
[0102] The point clouds in the lidar point cloud frame are classified, and the fixed object point clouds and the moving object point clouds are also obtained.
[0103] Furthermore, the device also includes:
[0104] A point cloud key frame determination module is used to extract the fixed object point cloud in the laser radar point cloud after extracting the contour boundary information of the material pile and the ground at the current moment from the laser radar point cloud frame according to the material pile point cloud and the ground point cloud;
[0105] If the fixed object point cloud and / or contour boundary information in the lidar point cloud meets the preset conditions, the lidar point cloud frame is saved as a point cloud keyframe, and the vehicle positioning information of the point cloud keyframe and the contour boundary information of the keyframe are stored.
[0106] Furthermore, the device also includes:
[0107] A calibration module is used to determine whether the vehicle position information and the key frame position information meet the set conditions after updating the historical memory points of the map according to the contour boundary information of the stockpile and the ground at the current moment and the map contour boundary information at the previous moment;
[0108] If the vehicle position information and the key frame position information meet the set conditions, the updated map contour and vehicle positioning information are detected according to the point cloud key frame to obtain the detection result;
[0109] The map contour and vehicle positioning information are calibrated based on the detection results.
[0110] Furthermore, the calibration module is specifically used for:
[0111] If the vehicle positioning information does not meet the set conditions, the vehicle positioning information is updated according to the vehicle positioning information corresponding to the point cloud keyframe;
[0112] If the map outline information does not meet the set conditions, the map outline information is updated according to the map outline information corresponding to the point cloud keyframe.
[0113] The laser radar-based engineering vehicle positioning device provided in the embodiment of the present invention can execute the laser radar-based engineering vehicle positioning method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0114] Embodiment 4
[0115] Figure 5 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0116] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0117] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0118] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a laser radar-based engineering vehicle positioning method.
[0119] In some embodiments, the laser radar-based engineering vehicle positioning method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the laser radar-based engineering vehicle positioning method described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the laser radar-based engineering vehicle positioning method by any other appropriate means (for example, by means of firmware).
[0120] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0121] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0122] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer 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 of the foregoing.
[0123] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0124] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0125] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0126] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0127] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for positioning an engineering vehicle based on laser radar, characterized in that: include: When the preset conditions are met, a laser radar point cloud frame of the vehicle at the current moment is obtained, and the point cloud in the laser radar point cloud frame is classified by a deep learning algorithm to obtain at least a pile point cloud and a ground point cloud; Extracting the contour boundary information of the material pile and the ground at the current moment from the laser radar point cloud frame according to the material pile point cloud and the ground point cloud; The vehicle is positioned according to the contour boundary information of the stockpile and the ground at the current moment and the contour boundary information of the map at the previous moment.
2. The method according to claim 1, characterized in that After positioning the vehicle according to the contour boundary information of the pile and the ground at the current moment and the contour boundary information of the map at the previous moment, the method further includes: The historical memory points of the map are updated according to the contour boundary information of the stockpile and the ground at the current moment and the map contour boundary information at the previous moment to obtain an updated map contour.
3. The method according to claim 2, characterized in that The updating of the historical memory points of the map according to the contour boundary information of the stockpile and the ground at the previous moment to obtain the updated map contour includes: Get the laser radar point cloud frame at the current moment and make a sphere with the historical memory point as the center; Traversing the point cloud in the laser radar point cloud frame at the current moment, and determining whether there is a stockpile point cloud and / or a ground point cloud in the sphere; If a stockpile point cloud and / or a ground point cloud is detected in the sphere, the shortest distance from the stockpile point cloud and / or the ground point cloud in the sphere to the historical memory point is calculated; The historical memory point is updated according to the shortest distance to obtain an updated map outline.
4. The method according to claim 3, characterized in that Before updating according to the historical memory points of the shortest distance map, the method further includes: It is determined whether the shortest distance is less than a preset threshold, and only when the shortest distance is greater than the preset threshold, the step of updating according to the historical memory points of the shortest distance map is performed.
5. The method according to claim 2, characterized in that: The point cloud in the laser radar point cloud frame is classified to obtain a fixed object point cloud and a moving object point cloud; After extracting the contour boundary information of the material pile and the ground at the current moment from the laser radar point cloud frame according to the material pile point cloud and the ground point cloud, the method further includes: Extract fixed object point cloud from LiDAR point cloud; If the fixed object point cloud and / or contour boundary information in the laser radar point cloud meets the preset conditions, the laser radar point cloud frame is saved as a point cloud key frame, and the vehicle positioning information of the point cloud key frame and the contour boundary information of the key frame are stored.
6. The method according to claim 5, characterized in that After updating the historical memory points of the map with the map contour boundary information of the previous moment according to the contour boundary information of the stockpile and the ground at the current moment, the method further includes: Determine whether the vehicle position information and the key frame position information meet the set conditions; If the vehicle position information and the key frame position information meet the set conditions, the updated map outline and vehicle positioning information are detected according to the point cloud key frame to obtain a detection result; The map contour and vehicle positioning information are calibrated according to the detection results.
7. The method according to claim 6, characterized in that The calibrating the map contour and the vehicle positioning information according to the detection result includes: If the vehicle positioning information does not meet the set conditions, updating the vehicle positioning information according to the vehicle positioning information corresponding to the point cloud keyframe; If the map outline information does not meet the set conditions, the map outline information is updated according to the map outline information corresponding to the point cloud keyframe.
8. A laser radar-based engineering vehicle positioning device, characterized in that: include: A point cloud classification module is used to obtain a laser radar point cloud frame of the vehicle at the current moment when preset conditions are met, and classify the point cloud in the laser radar point cloud frame through a deep learning algorithm to obtain at least a pile point cloud and a ground point cloud; A contour boundary extraction module is used to extract the contour boundary information of the material pile and the ground at the current moment from the laser radar point cloud frame according to the material pile point cloud and the ground point cloud; The vehicle positioning module is used to position the vehicle according to the contour boundary information of the stockpile and the ground at the current moment and the contour boundary information of the map at the previous moment.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the laser radar-based engineering vehicle positioning method described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the laser radar-based engineering vehicle positioning method described in any one of claims 1-7 when executed.
