Vehicle battery pack positioning method and device, electronic equipment and storage medium
By installing elevation laser radar on both sides of the battery hatch door, the point cloud data of the battery pack is obtained and precisely processed, the problem of low positioning accuracy of the battery pack is solved, and a more efficient and accurate battery swap process is achieved.
Patent Information
- Application Number
- CN202411841374.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-13
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2044-12-13
AI Technical Summary
In the prior art, the battery pack positioning accuracy is low, which affects the accuracy and efficiency of the battery swap process.
The first lidar and the second lidar based on the preset installation elevation angle are used to obtain the point cloud data of the vehicle battery pack respectively. Through point cloud coordinate conversion, filtering processing, least squares method fitting profile and linear equation calculation, the position information of the vehicle battery pack relative to the lidar is obtained, and matched with the preset threshold value to achieve correct positioning.
It improves the accuracy and scope of application of battery pack positioning, ensures that more types of vehicles can be scanned, reduces human resources losses, and improves battery swap efficiency.
Smart Images

Figure CN119689482A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of new energy battery technology, and in particular to a vehicle battery pack positioning method, device, electronic equipment and storage medium. Background Art
[0002] As an important part of the transportation sector, electric trucks have shown great development potential in terms of energy conservation, emission reduction, and improving economic benefits. This is mainly due to the global sustainable development and the enhancement of environmental awareness. At present, the traditional mode of charging truck batteries using charging equipment such as charging piles has problems such as low charging efficiency, long waiting time, and low economic benefits. Although battery technology is also constantly developing and improving, which has significantly improved the charging efficiency and endurance of electric trucks, some heavy trucks still face mileage limitations during long-distance transportation.
[0003] Battery swapping technology improves vehicle operating efficiency, provides electric vehicles with fast energy replenishment services, and greatly shortens charging time. The key to the battery swapping process is to accurately and quickly locate the battery box. At present, the battery box positioning technologies mainly include traditional mechanical positioning, slogan-guided positioning, and side-mounted single sensor positioning methods.
[0004] Among them, the traditional slogan-guided positioning method relies on manual operation to identify and understand the slogan information, which may lead to errors or mistakes caused by human factors, affecting the accuracy and efficiency of the battery swap process; the traditional mechanical positioning technology requires the installation of precise mechanical equipment and sensors at the battery swap station, which greatly increases the equipment R&D and production costs, increases the construction cost and space requirements of the battery swap station, and is only applicable to vehicles of fixed models, limiting the versatility and application scope of the battery swap technology; the positioning technology of the side-mounted single sensor may cause the reflection angle of the front and rear edges of the battery pack to be too large or too small when the battery pack is thick, and because the edge of the battery pack is relatively smooth, the laser radar cannot receive the reflected signal, and thus cannot collect the point cloud data of the front and rear edges of the battery pack, resulting in low positioning accuracy. Therefore, there is a technical problem of low battery pack positioning accuracy in the prior art. Summary of the invention
[0005] In view of this, it is necessary to provide a vehicle battery pack positioning method, device, electronic device and storage medium to solve the technical problem of low battery pack positioning accuracy in the prior art.
[0006] In order to solve the above technical problems, on the one hand, the present invention provides a vehicle battery pack positioning method, comprising: The first laser radar and the second laser radar based on the preset installation elevation angle respectively acquire point cloud data of the vehicle battery pack to obtain laser radar point cloud data; Perform point cloud coordinate conversion on the laser radar point cloud data to obtain the converted coordinates; The transformed coordinates are filtered to obtain preprocessed data; Fit the contour of the preprocessed data based on the least squares method to obtain the side contour line of the vehicle battery pack; Calculating a side contour line of the vehicle battery pack based on a straight line equation to obtain position information of the vehicle battery pack relative to the first laser radar; The position information of the vehicle battery pack relative to the first laser radar is matched with a preset threshold. When it is within the threshold range, the correct positioning information of the vehicle battery pack relative to the first laser radar is obtained.
[0007] In one possible implementation, The first laser radar and the second laser radar are horizontally symmetrically arranged on both sides of the vertical center line of the battery compartment door with an upward elevation angle of a preset value. The distance range between the two laser radars is 900~1000mm.
[0008] In a possible implementation, filtering the converted coordinates to obtain preprocessed data includes: The converted coordinates are subjected to distance filtering processing to obtain distance filtering data, and preprocessing data is obtained based on the distance filtering data.
[0009] In a possible implementation, obtaining preprocessed data based on distance filtering data includes: Statistical filtering is performed based on the distance filtering data to obtain preprocessed data.
[0010] In a possible implementation, the position information of the vehicle battery pack relative to the first laser radar includes: a line segment offset angle, a horizontal coordinate distance, and a vertical coordinate distance.
[0011] In a possible implementation, matching the position information of the vehicle battery pack relative to the first laser radar with a preset threshold, and obtaining correct positioning information of the vehicle battery pack relative to the first laser radar when the position information is within the threshold range, includes: The line segment offset angle of the vehicle battery pack relative to the first laser radar is matched with a preset threshold. When the line segment offset angle of the vehicle battery pack relative to the first laser radar is less than or equal to the preset threshold, the correct positioning information of the vehicle battery pack relative to the first laser radar is obtained.
[0012] In a possible implementation, when the line segment offset angle of the vehicle battery pack relative to the first laser radar is less than or equal to a preset threshold, obtaining correct positioning information of the vehicle battery pack relative to the first laser radar includes: When the line segment offset angle of the vehicle battery pack relative to the first laser radar is less than a preset threshold, the horizontal and vertical distances of the vehicle battery pack relative to the first laser radar are matched with the preset threshold. When the horizontal and vertical distances of the vehicle battery pack relative to the first laser radar are both less than or equal to the preset threshold, the correct positioning information of the vehicle battery pack relative to the first laser radar is obtained.
[0013] On the other hand, the present invention also provides a vehicle battery pack positioning device, comprising: A data acquisition module, used to acquire point cloud data of the vehicle battery pack based on the first laser radar and the second laser radar at a preset installation elevation angle, respectively, to obtain laser radar point cloud data; A coordinate conversion module is used to convert point cloud data into point cloud coordinates to obtain converted coordinates; A filtering module is used to filter the converted coordinates to obtain pre-processed data; A contour fitting module is used to fit the preprocessed data based on the least squares method to obtain the side contour line of the vehicle battery pack; A calculation module, used to calculate the side contour line of the vehicle battery pack based on the straight line equation to obtain the position information of the vehicle battery pack relative to the first laser radar; The positioning module is used to match the position information of the vehicle battery pack relative to the first laser radar with a preset threshold, and obtain the correct positioning information of the vehicle battery pack relative to the first laser radar when it is within the threshold range.
[0014] On the other hand, the present invention also provides an electronic device, including a memory and a processor, wherein: The memory is used to store programs; The processor is coupled to the memory and is used to execute the program stored in the memory to implement the steps in the vehicle battery pack positioning method in any of the above-mentioned implementations.
[0015] On the other hand, the present invention also provides a computer-readable storage medium for storing computer-readable programs or instructions, which, when executed by a processor, can implement the steps of the vehicle battery pack positioning method described in any of the above-mentioned implementations.
[0016] The beneficial effects of the present invention are as follows: the vehicle battery pack positioning method provided by the present invention includes: based on the first laser radar and the second laser radar of the preset installation elevation angle, respectively acquiring the point cloud data of the vehicle battery pack to obtain the laser radar point cloud data; performing point cloud coordinate conversion on the laser radar point cloud data to obtain the converted coordinates; filtering the converted coordinates to obtain preprocessed data; fitting the contour of the preprocessed data based on the least squares method to obtain the side contour line of the vehicle battery pack; calculating the side contour line of the vehicle battery pack based on the straight line equation to obtain the position information of the vehicle battery pack relative to the first laser radar; matching the position information of the vehicle battery pack relative to the first laser radar with the preset threshold value, and obtaining the correct positioning information of the vehicle battery pack relative to the first laser radar when it is within the threshold range. The present invention collects the point cloud information of the battery pack in real time by installing a laser radar with a certain elevation angle, which can ensure that more types of vehicles can be scanned and expand the scope of application. The positioning method of installing dual laser radars can completely collect the power data at the edge of the battery pack, thereby improving the accuracy of the positioning method. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0017] Figure 1 A schematic diagram of a flow chart of an embodiment of a vehicle battery pack positioning method provided by the present invention; Figure 2 A schematic diagram of an embodiment of a vehicle battery pack positioning method provided by the present invention; Figure 3 A schematic diagram of a vehicle battery replacement scenario of an embodiment of a vehicle battery pack positioning method provided by the present invention; Figure 4 A schematic diagram of the arrangement of a laser radar according to an embodiment of the vehicle battery pack positioning method provided by the present invention; Figure 5 A schematic diagram of laser radar scanning of an embodiment of a vehicle battery pack positioning method provided by the present invention; Figure 6 A schematic structural diagram of an embodiment of a vehicle battery pack positioning device provided by the present invention; Figure 7 A schematic structural diagram of an embodiment of an electronic device provided by the present invention. DETAILED DESCRIPTION
[0018] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying 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 those skilled in the art without creative work are within the scope of protection of the present invention.
[0019] In the description of the embodiments of the present application, unless otherwise specified, “plurality” means two or more than two.
[0020] The terms "including" and "having" and any variations thereof in the embodiments of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, apparatus, product or equipment comprising a series of steps or modules is not necessarily limited to those steps or modules clearly listed, but may include other steps or modules not clearly listed or inherent to these processes, methods, products or equipment.
[0021] The naming or numbering of the steps in the embodiments of the present invention does not mean that the steps in the method flow must be executed in the time / logical sequence indicated by the naming or numbering. The execution order of the named or numbered process steps can be changed according to the technical purpose to be achieved, as long as the same or similar technical effects can be achieved.
[0022] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0023] The present invention provides a vehicle battery pack positioning method, device, electronic device and storage medium, which are respectively described below.
[0024] Figure 1 A schematic diagram of an embodiment of the vehicle battery pack positioning method provided by the present invention and Figure 2 A schematic diagram of an embodiment of a vehicle battery pack positioning method provided by the present invention includes: S101, based on a preset installation elevation angle, the first laser radar and the second laser radar respectively acquire point cloud data of the vehicle battery pack to obtain laser radar point cloud data; S102, performing point cloud coordinate conversion on the laser radar point cloud data to obtain converted coordinates; S103, filtering the converted coordinates to obtain preprocessed data; S104, fitting the preprocessed data to a contour based on the least squares method to obtain a side contour line of the vehicle battery pack; S105, calculating the side contour line of the vehicle battery pack based on the straight line equation to obtain position information of the vehicle battery pack relative to the first laser radar; S106. Match the position information of the vehicle battery pack relative to the first laser radar with a preset threshold. When it is within the threshold range, the correct positioning information of the vehicle battery pack relative to the first laser radar is obtained.
[0025] It can be understood that the present invention installs two single-line laser radars with a certain elevation angle on one side to obtain the two-dimensional contour point cloud data of the side of the vehicle to be replaced. The laser radar has a certain adjustable elevation angle to ensure that the battery packs of different types of vehicles can be scanned, which improves the scope of application of the vehicle battery pack positioning method. When a moving object enters the set detection range, the battery pack positioning and tracking algorithm starts working. Each frame of data is filtered to remove outliers. The least squares method is used to try to fit the lateral contour line of the battery pack in the two-dimensional contour point cloud. Based on the lateral contour line of the battery pack, the distance of the battery pack relative to the center of the radar in the X direction, the offset angle in the X direction, and the distance in the Y direction are obtained, and then the relative position information of the battery pack is obtained, which can realize the precise positioning of the battery pack. The battery pack position is tracked in real time through the positioning and tracking algorithm to guide the driver to move the vehicle, which effectively shortens the vehicle battery replacement time, improves the battery replacement efficiency, reduces the loss of human resources, and has high practicality.
[0026] Figure 3 A schematic diagram of a vehicle battery replacement scenario of an embodiment of the vehicle battery pack positioning method provided by the present invention, Figure 4 A schematic diagram of a laser radar arrangement of an embodiment of a vehicle battery pack positioning method provided by the present invention and Figure 5 A schematic diagram of a laser radar scanning of an embodiment of a vehicle battery pack positioning method provided by the present invention includes: The first laser radar and the second laser radar are horizontally symmetrically arranged on both sides of the vertical center line of the battery compartment door with an upward elevation angle of a preset value. The distance range between the two laser radars is 900~1000mm.
[0027] It is understandable that after the battery-swap vehicle enters the battery-swap channel, the battery compartment door is installed below the battery compartment door and has a degree of upward Two laser radars with an elevation angle (this value can be adjusted according to the average height of the battery pack of the battery swap vehicle) start scanning. The two laser radars are symmetrically arranged on both sides of the vertical center line of the battery compartment door and the distance between the two sides is 900mm-1000mm.
[0028] It can be further understood that the point cloud data of the first laser radar and the second laser radar are placed in the same coordinate system, with the center of the first laser radar as the origin of the rectangular coordinate system, the direction perpendicular to the wall and pointing to the direction of the vehicle is the positive direction of the Y axis, and the direction perpendicular to the Y axis and pointing to the direction of the vehicle is the positive direction of the X axis; The point cloud data format output by the laser radar is polar coordinates , the rectangular coordinates of the first laser radar after coordinate transformation are ; For the second laser radar, the rectangular coordinates after coordinate transformation are ,in, is the distance between the first laser radar and the second laser radar.
[0029] In some embodiments of the present invention, filtering the converted coordinates to obtain preprocessed data includes: The converted coordinates are subjected to distance filtering processing to obtain distance filtering data, and preprocessing data is obtained based on the distance filtering data.
[0030] It can be understood that filtering the converted coordinates beforehand can reduce the amount of algorithm computation and the impact of noise points on the algorithm accuracy.
[0031] In some embodiments of the present invention, the step of obtaining pre-processed data based on distance filtering data includes: Statistical filtering is performed based on the distance filtering data to obtain preprocessed data.
[0032] It can be understood that the distance filtering method is used to filter out point clouds that are not related to the vehicle. The filter value is set to the distance between the vehicle and the lidar, and the average distance of different types of vehicles in the Y direction is less than or equal to 1m (this value can be adjusted according to actual conditions).
[0033] Traverse each point in the point cloud. If the Y distance of this point is greater than 1m, it will be removed from the point cloud; if the Y distance of this point is less than or equal to 1m, it will be retained.
[0034] It can be further understood that the statistical filtering algorithm is used to filter out outliers caused by external factors such as weather, light, and dust; First, traverse each point in the point cloud and calculate the average distance between the K neighborhood points near each point.
[0035] Secondly, the average distance of all points is counted and its mean and standard deviation are calculated.
[0036] Again, based on the mean and standard deviation of the distance, the distance threshold for judging outliers is calculated.
[0037]
[0038] In the formula, is the mean of the average distances, is the standard deviation of the mean distance, It is a custom standard deviation coefficient used to control the impact of the distance standard deviation on the distance threshold.
[0039] Finally, we traverse each point in the point cloud again and determine whether it is an outlier based on the average distance between the K neighborhood points near each point. If this value is greater than the distance threshold calculated above, the point is considered an outlier and is removed from the point cloud.
[0040] In some embodiments of the present invention, the position information of the vehicle battery pack relative to the first laser radar includes: a line segment offset angle, a horizontal coordinate distance, and a vertical coordinate distance.
[0041] In some embodiments of the present invention, the position information of the vehicle battery pack relative to the first laser radar is matched with a preset threshold, and when it is within the threshold range, the correct positioning information of the vehicle battery pack relative to the first laser radar is obtained, including: The line segment offset angle of the vehicle battery pack relative to the first laser radar is matched with a preset threshold. When the line segment offset angle of the vehicle battery pack relative to the first laser radar is less than or equal to the preset threshold, the correct positioning information of the vehicle battery pack relative to the first laser radar is obtained.
[0042] It can be understood that the least squares method is used to fit the side contour of the battery pack to obtain the position information of the battery pack relative to the lidar.
[0043] First, the point cloud information of the battery pack separated above is selected as the input data for fitting. These points can be represented by coordinates (x, y) in a rectangular coordinate system.
[0044] Secondly, define the straight line model and use the straight line equation to represent the straight line to be fitted. The straight line equation is as follows:
[0045] In the formula, is the slope of the equation of the line, is the intercept of the line equation.
[0046] Again, calculate the distance from the point to the line. For each point in the point cloud, calculate its distance to the line, using the perpendicular distance from the point to the line as the metric.
[0047] Again, a least squares optimization algorithm is constructed, and the objective function is the sum of the squares of the distances from the point to the line, that is,
[0048] Where: is the number of point clouds of the battery pack, is the average distance from the straight line to the point cloud, For the The distance from a point to a line; Finally, solve the least squares optimization problem and find the parameters that minimize the objective function. and .
[0049] In some embodiments of the present invention, when the line segment offset angle of the vehicle battery pack relative to the first laser radar is less than or equal to a preset threshold, obtaining correct positioning information of the vehicle battery pack relative to the first laser radar includes: When the line segment offset angle of the vehicle battery pack relative to the first laser radar is less than a preset threshold, the horizontal and vertical distances of the vehicle battery pack relative to the first laser radar are matched with the preset threshold. When the horizontal and vertical distances of the vehicle battery pack relative to the first laser radar are both less than or equal to the preset threshold, the correct positioning information of the vehicle battery pack relative to the first laser radar is obtained.
[0050] It is understandable that the relative position information of the battery pack is obtained based on the straight line equation of the fitted battery pack side contour line. The system will continue to output the battery pack position information when the laser radar starts scanning until the battery pack cannot be completely scanned. When the straight line length is close to the possible battery pack thickness value, the expected positioning of the battery pack is considered to be successful (such as the candidate battery pack thickness is 500mm, 600mm, 800mm, etc.). If the positioning is successful for 5 consecutive frames, the positioning and tracking is considered to be successful. (The straight line length is consistent, the straight lines are adjacent in the X direction, and there is no jump).
[0051] After successful positioning, the fitted straight line equation y=kx+b The battery pack offset angle α, the distance y of the battery pack edge line in the Y-axis direction, and the rear end point of the battery pack side contour line can be calculated. Connect to the battery door rear terminal Distance in the X direction And the front end point of the battery pack side contour line Front point of battery door Distance in the X direction , to guide the vehicle's movement; Parking judgment, if and If there is no change for 5 seconds and the vehicle is near the hatch, it is considered stopped.
[0052] If the distance y of the battery pack edge line in the Y-axis direction is greater than the threshold of 30 cm (this value can be adjusted according to the actual situation), the display screen will prompt "the vehicle is too far away from the battery compartment; if the rear end point of the battery pack side contour line is too far away from the battery compartment, the battery pack side contour line will be too far away from the battery compartment. Connect to the battery door rear terminal Distance in the X direction If the distance is less than 50 cm (this value can be adjusted according to the actual situation), the display will prompt "the vehicle has not reached the replacement potential"; the front end point of the side contour line of the battery pack Front point of battery door Distance in the X direction If the α value is less than the threshold of 50 cm (this value can be adjusted according to the actual situation), the display screen will prompt "the vehicle exceeds the change potential"; if the α value is greater than the threshold of 1°, it will prompt "the vehicle is too tilted". Otherwise, it will prompt "the vehicle is positioned successfully".
[0053] After the vehicle meets the designed offset angle and distance thresholds, the battery swap system will perform a battery swap operation on the vehicle. After the battery swap is completed, the display screen will show the words "Battery swap completed". The vehicle that has replaced the battery will drive out of the battery swap channel, and the next vehicle to be replaced will enter the battery swap channel.
[0054] The new energy vehicle battery pack positioning method proposed in the present invention can ensure that more types of vehicles can be scanned by installing a laser radar with a certain elevation angle on one side to collect point cloud information of the battery pack in real time, which is suitable for most electric trucks and expands the scope of application of the positioning method; the positioning method of installing dual laser radars on one side can completely collect point cloud data of the edge of the battery pack, thereby improving the accuracy of the positioning method; the edge line of the battery box is obtained by fitting using the least squares method, and then the position information of the battery box relative to the sensor can be obtained through the fitted straight line equation, thereby guiding the driver to adjust the vehicle position, and realizing real-time and accurate positioning of the battery box, thus realizing the intelligence of the positioning method to a certain extent and reducing the loss of human resources.
[0055] Figure 6 A schematic structural diagram of an embodiment of a vehicle battery pack positioning device provided by the present invention includes: The data acquisition module 601 is used to acquire point cloud data of the vehicle battery pack based on the first laser radar and the second laser radar at a preset installation elevation angle, respectively, to obtain laser radar point cloud data; A coordinate conversion module 602 is used to convert the point cloud data into point cloud coordinates to obtain converted coordinates; A filtering module 603 is used to filter the converted coordinates to obtain pre-processed data; A contour fitting module 604 is used to fit the preprocessed data based on the least square method to obtain the side contour line of the vehicle battery pack; A calculation module 605, configured to calculate a side contour line of the vehicle battery pack based on a straight line equation to obtain position information of the vehicle battery pack relative to the first laser radar; The positioning module 606 is used to match the position information of the vehicle battery pack relative to the first laser radar with a preset threshold, and obtain the correct positioning information of the vehicle battery pack relative to the first laser radar when it is within the threshold range.
[0056] The vehicle battery pack positioning device 600 provided in the above embodiment can implement the technical solution described in the above vehicle battery pack positioning method embodiment. The specific implementation principles of the above modules or units can refer to the corresponding contents in the above vehicle battery pack positioning method embodiment, which will not be repeated here.
[0057] like Figure 7 As shown, the present invention also provides an electronic device 700. The electronic device 700 includes a processor 701, a memory 702 and a display 703. Figure 7 Only some components of the electronic device 700 are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0058] In some embodiments, the processor 701 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run program codes or process data stored in the memory 702, such as the vehicle battery pack positioning method of the present invention.
[0059] In some embodiments, the processor 701 may be a single server or a server group. The server group may be centralized or distributed. In some embodiments, the processor 701 may be local or remote. In some embodiments, the processor 701 may be implemented in a cloud platform. In one embodiment, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, an internal cloud, a multi-cloud, etc., or any combination thereof.
[0060] In some embodiments, the memory 702 may be an internal storage unit of the electronic device 700, such as a hard disk or memory of the electronic device 700. In other embodiments, the memory 702 may also be an external storage device of the electronic device 700, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc., equipped on the electronic device 700.
[0061] Furthermore, the memory 702 may include both an internal storage unit of the electronic device 700 and an external storage device. The memory 702 is used to store application software installed in the electronic device 700 and various data.
[0062] In some embodiments, the display 703 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 703 is used to display information on the electronic device 700 and to display a visual user interface. The components 701-703 of the electronic device 700 communicate with each other via a system bus.
[0063] In one embodiment, when the processor 701 executes the vehicle battery pack positioning program in the memory 702, the following steps may be implemented: The first laser radar and the second laser radar based on the preset installation elevation angle respectively acquire point cloud data of the vehicle battery pack to obtain laser radar point cloud data; Perform point cloud coordinate conversion on the laser radar point cloud data to obtain the converted coordinates; The transformed coordinates are filtered to obtain preprocessed data; Fit the contour of the preprocessed data based on the least squares method to obtain the side contour line of the vehicle battery pack; Calculating a side contour line of the vehicle battery pack based on a straight line equation to obtain position information of the vehicle battery pack relative to the first laser radar; The position information of the vehicle battery pack relative to the first laser radar is matched with a preset threshold. When it is within the threshold range, the correct positioning information of the vehicle battery pack relative to the first laser radar is obtained.
[0064] It should be understood that: when the processor 701 executes the vehicle battery pack positioning program in the memory 702, in addition to the above functions, other functions can also be implemented. For details, please refer to the description of the corresponding method embodiment above.
[0065] Furthermore, the embodiment of the present invention does not specifically limit the type of the electronic device 700 mentioned, and the electronic device 700 may be a portable electronic device such as a mobile phone, a tablet computer, a personal digital assistant (PDA), a wearable device, a laptop computer, etc. Exemplary embodiments of portable electronic devices include but are not limited to portable electronic devices equipped with IOS, Android, Microsoft or other operating systems. The above-mentioned portable electronic devices may also be other portable electronic devices, such as a laptop computer with a touch-sensitive surface (e.g., a touch panel). It should also be understood that in some other embodiments of the present invention, the electronic device 700 may not be a portable electronic device, but a desktop computer with a touch-sensitive surface (e.g., a touch panel).
[0066] Accordingly, an embodiment of the present application also provides a computer-readable storage medium, which is used to store computer-readable programs or instructions. When the program or instructions are executed by a processor, the steps or functions of the vehicle battery pack positioning method provided in the above-mentioned method embodiments can be implemented.
[0067] Those skilled in the art will appreciate that all or part of the processes of the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the computer program can be stored in a computer-readable storage medium, wherein the computer-readable storage medium is a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0068] The vehicle battery pack positioning method, device, electronic device and storage medium provided by the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A vehicle battery pack positioning method, characterized in that: include: The first laser radar and the second laser radar based on the preset installation elevation angle respectively acquire point cloud data of the vehicle battery pack to obtain laser radar point cloud data; Perform point cloud coordinate conversion on the laser radar point cloud data to obtain the converted coordinates; The transformed coordinates are filtered to obtain preprocessed data; Fit the contour of the preprocessed data based on the least squares method to obtain the side contour line of the vehicle battery pack; Calculating a side contour line of the vehicle battery pack based on a straight line equation to obtain position information of the vehicle battery pack relative to the first laser radar; The position information of the vehicle battery pack relative to the first laser radar is matched with a preset threshold. When it is within the threshold range, the correct positioning information of the vehicle battery pack relative to the first laser radar is obtained.
2. The vehicle battery pack positioning method according to claim 1, characterized in that: The first laser radar and the second laser radar are horizontally symmetrically arranged on both sides of the vertical center line of the battery compartment door with an upward elevation angle of a preset value. The distance range between the two laser radars is 900~1000mm.
3. The vehicle battery pack positioning method according to claim 1, characterized in that: The filtering process of the converted coordinates to obtain preprocessed data includes: The converted coordinates are subjected to distance filtering to obtain distance filtering data, and preprocessing data is obtained based on the distance filtering data.
4. The vehicle battery pack positioning method according to claim 3, characterized in that: The method of obtaining pre-processed data based on distance filtering data includes: Statistical filtering is performed based on the distance filtering data to obtain preprocessed data.
5. The vehicle battery pack positioning method according to claim 1, characterized in that: The position information of the vehicle battery pack relative to the first laser radar includes: line segment offset angle, horizontal coordinate distance and vertical coordinate distance.
6. The vehicle battery pack positioning method according to claim 1 or 5, characterized in that: The position information of the vehicle battery pack relative to the first laser radar is matched with a preset threshold, and when it is within the threshold range, the correct positioning information of the vehicle battery pack relative to the first laser radar is obtained, including: The line segment offset angle of the vehicle battery pack relative to the first laser radar is matched with a preset threshold. When the line segment offset angle of the vehicle battery pack relative to the first laser radar is less than or equal to the preset threshold, the correct positioning information of the vehicle battery pack relative to the first laser radar is obtained.
7. The vehicle battery pack positioning method according to claim 6, characterized in that: When the line segment offset angle of the vehicle battery pack relative to the first laser radar is less than or equal to a preset threshold, obtaining correct positioning information of the vehicle battery pack relative to the first laser radar includes: When the line segment offset angle of the vehicle battery pack relative to the first laser radar is less than a preset threshold, the horizontal and vertical distances of the vehicle battery pack relative to the first laser radar are matched with the preset threshold. When the horizontal and vertical distances of the vehicle battery pack relative to the first laser radar are both less than or equal to the preset threshold, the correct positioning information of the vehicle battery pack relative to the first laser radar is obtained.
8. A vehicle battery pack positioning device, characterized in that: include: A data acquisition module, used to acquire point cloud data of the vehicle battery pack based on the first laser radar and the second laser radar at a preset installation elevation angle, respectively, to obtain laser radar point cloud data; A coordinate conversion module is used to convert the point cloud data into point cloud coordinates to obtain converted coordinates; A filtering module is used to filter the converted coordinates to obtain pre-processed data; A contour fitting module is used to fit the preprocessed data based on the least square method to obtain the side contour line of the vehicle battery pack; A calculation module, used to calculate the side contour line of the vehicle battery pack based on the straight line equation to obtain the position information of the vehicle battery pack relative to the first laser radar; The positioning module is used to match the position information of the vehicle battery pack relative to the first laser radar with a preset threshold, and when it is within the threshold range, obtain the correct positioning information of the vehicle battery pack relative to the first laser radar.
9. An electronic device, characterized in that: comprising a memory and a processor, wherein: The memory is used to store programs; The processor is coupled to the memory and is used to execute the program stored in the memory to implement the steps in the vehicle battery pack positioning method as described in any one of claims 1 to 7 above.
10. A computer-readable storage medium, characterized in that: Used to store computer-readable programs or instructions, which, when executed by a processor, can implement the steps of the vehicle battery pack positioning method described in any one of claims 1 to 7.
Citation Information
Patent Citations
Vehicle model identification and vehicle speed measuring device and method of multi-rotor-carried laser radar
CN107967804A
Application method based on virtual laser radar technology in automatic driving mine card vehicle
CN113759390A
Train over-limit identification method and system, electronic equipment and storage medium
CN114721002A
Light signal detection device, range finding device, and detection method
US20200300984A1
Vehicle power management
US20220289136A1