Vehicle guidance method and battery-swapping robot based on two-dimensional radar and camera
Through the combination of two-dimensional radar and cameras, appropriate positioning data is selected to guide the vehicle, which solves the problem of low vehicle positioning accuracy in the existing technology, achieves higher positioning accuracy and reliability, and reduces costs.
Patent Information
- Application Number
- CN202410683703.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-05-30
AI Technical Summary
Existing battery-swapping robots have low positioning accuracy when guiding vehicles to move, especially under environmental interference. The high cost of three-dimensional lidar limits its application.
A vehicle guidance method based on two-dimensional radar and cameras is adopted. The radar positioning data of the vehicle is obtained through the two-dimensional radar and the visual positioning data is obtained by the camera. The situation judgment value and the radar judgment value are combined to select the appropriate positioning data to guide the vehicle close to the battery exchange buffer zone. .
Without significantly increasing costs, it improves positioning accuracy and reliability during vehicle guidance and combines the advantages of radar and camera positioning.
Smart Images

Figure CN118259281B
Abstract
Description
Technical Field
[0001] The present disclosure belongs to the field of battery-swapping robots, and in particular to a vehicle guidance method and a battery-swapping robot based on two-dimensional radar and a camera. Background Art
[0002] The battery swap robot is a battery swap system designed to solve the problem of replacing battery boxes for new energy vehicles, especially trucks, mining trucks and other equipment. After the vehicle is parked in the battery swap buffer, the battery swap robot removes the battery box on the vehicle load and replaces the fully charged battery box on the vehicle, which can effectively reduce the battery swap time of trucks and mining trucks. Therefore, it is increasingly widely used in engineering construction, coal mining and other fields.
[0003] In the automated operation scenario of the vehicle, when the vehicle battery box is powered, the battery swap robot needs to guide the vehicle to move to the battery swap buffer to replace the battery box for the vehicle. In the process of guiding the movement of the vehicle, the existing battery swap robot generally uses a positioning method of capturing images through camera shooting, but it is easily affected by environmental factors, resulting in inaccurate vehicle positioning data. The use of three-dimensional laser radar can improve the positioning accuracy of the vehicle, but the cost of three-dimensional laser radar is too high, which limits the application of automatic vehicle guidance. Summary of the invention
[0004] In view of the above, it is necessary to provide a vehicle guidance method and a battery swapping robot based on two-dimensional radar and camera, aiming to improve the positioning accuracy during the movement of the guided vehicle.
[0005] A vehicle guidance method based on two-dimensional radar and camera, comprising the following steps:
[0006] Scanning the wheels of the vehicle by a two-dimensional radar to obtain radar positioning data of the vehicle in the battery swap buffer zone coordinate system, wherein the radar positioning data includes a radar deflection angle of the vehicle in the battery swap buffer zone coordinate system;
[0007] Shooting the vehicle with a camera, obtaining the aspect ratio g of the circumscribed rectangular frame of the vehicle and the visual positioning data of the vehicle relative to the battery swap buffer zone coordinate system, wherein the visual positioning data includes the visual deflection angle of the vehicle in the battery swap buffer zone coordinate system;
[0008] Calculate the ratio g / G of the aspect ratio g of the circumscribed rectangular frame and the aspect ratio G of the vehicle as the scenario judgment value, and the difference between the radar deflection angle and the visual deflection angle as the radar judgment value, and select radar positioning data or visual positioning data according to the scenario judgment value and the radar judgment value to guide the vehicle close to the battery swap buffer zone.
[0009] According to the vehicle guidance method based on two-dimensional radar and camera, selecting radar positioning data or visual positioning data according to the scenario judgment value and radar judgment value to guide the vehicle to approach the battery swap buffer zone includes:
[0010] If the scenario judgment value is within the first range, it is determined to belong to the first scenario; if the scenario judgment value is within the second range, it is determined to belong to the second scenario;
[0011] In the first scenario, if the distance of the vehicle is greater than a preset value, the vehicle is guided to approach the battery swap buffer area by the visual positioning data; if the distance of the vehicle is less than a preset value, if the radar judgment value is less than the preset value, the vehicle is guided by the radar positioning data, otherwise the vehicle is guided by the visual positioning data;
[0012] In the second scenario, if the distance of the vehicle is greater than a preset value, the vehicle is guided close to the battery swap buffer zone through the visual positioning data; if the distance of the vehicle is less than the preset value, if the radar judgment value is less than the preset value, the vehicle is guided close to the battery swap buffer zone through the radar positioning data, and if it is detected that the scenario judgment value enters the first range, return to the first scenario processing.
[0013] According to the vehicle guidance method based on two-dimensional radar and camera, the first range is 0.9~1.1, and the second range is 0.6~0.9 and 1.1~1.4.
[0014] According to the vehicle guidance method based on two-dimensional radar and camera, scanning the wheels of the vehicle by two-dimensional radar to obtain the radar positioning data of the vehicle in the battery swap buffer zone coordinate system includes the following steps:
[0015] Scanning the wheels of the vehicle with a two-dimensional radar to obtain wheel clusters corresponding to the wheels, and taking a line connecting point data with minimum angle coordinates and point data with maximum angle coordinates in the wheel clusters as a baseline;
[0016] Calculate the distance between the midpoint data of the wheel cluster and the baseline, take the point data farthest from the baseline as the inflection point, divide the wheel cluster according to the inflection point, and respectively calculate the distance between the two end points of the baseline and the horizontal line where the inflection point is located, take the point set between the end point with the larger distance and the inflection point as the side point set, and take the point set between the other end point and the inflection point as the circumference point set;
[0017] A positioning line is fitted from the circular point set, a horizontal deflection angle of the positioning line in the battery swap buffer zone coordinate system is used as the radar deflection angle, and the radar positioning data of the vehicle is determined based on the circular point set and the side point set.
[0018] According to the vehicle guidance method based on two-dimensional radar and camera, taking the horizontal deflection angle of the positioning line in the battery swap buffer coordinate system as the radar deflection angle includes:
[0019] The linear equation of the fitted positioning line in the battery exchange buffer coordinate system is: ;
[0020] The radar deflection angle θ is calculated according to the following formula: .
[0021] According to the vehicle guidance method based on two-dimensional radar and camera, determining the radar positioning data of the vehicle according to the circumference point set and the side point set includes:
[0022] The wheel clusters of the left wheel and the right wheel of the front wheel or the rear wheel are obtained, and the side point set A corresponding to the wheel cluster of the left wheel and the side point set B corresponding to the wheel cluster of the right wheel are expressed as: , Calculate the displacement offset Δx of the vehicle relative to the battery swap buffer area in the X-axis direction of the battery swap buffer area coordinate system: Calculate the displacement offset Δy of the vehicle relative to the battery swap buffer area in the Y-axis direction in the battery swap buffer area coordinate system: Among them, F iy is the circumferential point set of the front wheel Point data in R iy is the circumferential point set of the rear wheel Point data in ;
[0023] Determine the visual positioning data P of the vehicle relative to the battery swap buffer zone as: .
[0024] According to the vehicle guidance method based on two-dimensional radar and camera, the two-dimensional radar scans the wheels of the vehicle, and obtaining the wheel clusters corresponding to the wheels includes:
[0025] The two-dimensional radar scans the wheels of the vehicle. and For adjacent continuous point data, the clustering threshold R is calculated as follows: in, ρ k is the polar coordinate of the point data, λ is the angle threshold for judging that two point data belong to the same cluster, is the standard deviation of the noise in the distance measurement;
[0026] In the point data, if there is: Point Set A wheel cluster is formed.
[0027] According to the vehicle guidance method based on two-dimensional radar and camera, before obtaining the wheel cluster corresponding to the wheel, the method further includes:
[0028] If ρ[c] is an invalid point, set ρ[c] = ρ[c-1]+a, where ρ[c-1] is the previous point data of the invalid point and a is the preset value.
[0029] According to the vehicle guidance method based on two-dimensional radar and camera, photographing the vehicle by a camera and obtaining visual positioning data of the vehicle relative to the battery swap buffer coordinate system includes:
[0030] The battery swap buffer zone coordinate system is fixed in the battery swap buffer zone, with the origin located at the center of the battery swap buffer zone border. The first transformation matrix from the battery swap buffer zone coordinate system to the camera coordinate system is determined based on the first feature point of the battery swap buffer zone. ;
[0031] Determine the coordinates of the second feature point of the circumscribed rectangular frame in the image coordinate system, obtain the coordinates of the second feature point in the camera coordinate system according to the intrinsic parameter matrix of the camera, and determine the second transformation matrix from the image coordinate system to the camera coordinate system according to the coordinates of the second feature point in the image coordinate system and the coordinates in the camera coordinate system ;
[0032] The third transformation matrix from the image coordinate system to the battery exchange buffer coordinate system is determined according to the following formula: : ;
[0033] According to the third transformation matrix The visual positioning data of the vehicle relative to the battery swap buffer area is calculated.
[0034] According to the vehicle guidance method based on two-dimensional radar and camera, the first transformation matrix from the battery swap buffer area coordinate system to the camera coordinate system is determined according to the first feature point of the battery swap buffer area. include:
[0035] Acquire a first coordinate of the first feature point in a battery swap buffer zone coordinate system, wherein the battery swap buffer zone coordinate system is set in the battery swap buffer zone;
[0036] Obtaining a second coordinate of the first feature point in an image coordinate system by manual marking, wherein the image coordinate system is set to the image captured by the camera;
[0037] Obtaining a third coordinate of the first feature point in a camera coordinate system according to the first coordinate and the second coordinate;
[0038] According to the first coordinate and the third coordinate, the first transformation matrix is obtained. ;
[0039] And, obtaining the first coordinate of the first feature point in the battery swap buffer zone coordinate system includes:
[0040] Select a rectangular space to be determined as the battery swap buffer area, and determine at least one of the four corner points of the battery swap buffer area as the first feature point;
[0041] The origin of the battery swap buffer zone coordinate system is set at the center of the battery swap buffer zone, and the first coordinate of the first feature point in the battery swap buffer zone coordinate system is determined according to the length of the battery swap buffer zone along the length direction and the width direction;
[0042] Determining the coordinates of the second feature point of the circumscribed rectangular frame in the image coordinate system includes: determining at least one of the four corner points of the circumscribed rectangular frame as the second feature point.
[0043] And, according to the coordinates of the second feature point in the image coordinate system and the coordinates in the camera coordinate system, determine a second transformation matrix for converting from the image coordinate system to the camera coordinate system include:
[0044] Obtaining an actual size of the circumscribed rectangular frame according to the coordinates of the second feature point in the camera coordinate system and the height of the camera;
[0045] According to the actual size of the circumscribed rectangular frame, the coordinates of the second feature point in the battery swap buffer zone coordinate system are determined; wherein the image coordinate system is set on the vehicle, and the origin of the image coordinate system coincides with the origin of the battery swap buffer zone coordinate system;
[0046] Using the coordinates of the second feature point in the camera coordinate system and the coordinates of the second feature point in the battery exchange buffer coordinate system, the second transformation matrix of the image coordinate system at the current moment to the camera coordinate system is obtained by the PNP method. ;
[0047] And, according to the third transformation matrix The visual positioning data of the vehicle relative to the battery swap buffer zone calculated includes: Among them, θr is the horizontal deflection angle of the vehicle in the camera coordinate system, and xr and yr are the coordinate values of the vehicle in the camera coordinate system.
[0048] A battery-swapping robot based on a two-dimensional radar and a camera, comprising:
[0049] A battery replacement buffer area for parking vehicles whose battery boxes are to be replaced;
[0050] A camera disposed above the battery swap buffer area, for photographing the battery swap buffer area and the vehicle;
[0051] A two-dimensional radar disposed in the battery exchange buffer area, for detecting the wheels of the vehicle within a preset range in a horizontal plane;
[0052] A controller is connected to the camera and is used to execute the vehicle guiding method.
[0053] Compared with the existing technology, the above-mentioned vehicle guidance method and battery swapping robot based on two-dimensional radar and camera obtain the radar positioning data of the vehicle through the two-dimensional radar, obtain the visual positioning data of the vehicle through the camera, and then calculate the corresponding scenario judgment value and radar judgment value, and select the radar positioning data or the visual positioning data as the appropriate positioning data according to the scenario judgment value and the radar judgment value to guide the vehicle to the battery swapping buffer zone, thereby combining the advantages of camera positioning and radar positioning, and improving the positioning accuracy and reliability in the vehicle guidance process without significantly increasing the cost of the battery swapping robot. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the specific implementation methods, the drawings required for use in the description of the implementation methods will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0055] Figure 1 This is a schematic diagram of the structure of the battery-swapping robot based on two-dimensional radar and camera.
[0056] Figure 2 This is a schematic diagram of two-dimensional radar positioning.
[0057] Figure 3 It is a schematic diagram of the camera and battery-swapping buffer.
[0058] Figure 4 It is a flow chart of a vehicle guidance method based on two-dimensional radar and camera.
[0059] Figure 5 It is a schematic diagram of the computational model of point cloud clustering.
[0060] Figure 6 It is a flow chart for obtaining radar positioning data.
[0061] Figure 7 It is a schematic diagram of point cloud feature extraction.
[0062] Figure 8 It is a schematic diagram of the calculation of radar deflection angle.
[0063] Fig. 9 It is a flowchart for obtaining visual positioning data.
[0064] Fig.10 is a flow chart for determining a first transformation matrix.
[0065] Fig.11 It is the camera coordinate system solution diagram of the camera.
[0066] Fig.12 is a flow chart for determining the second transformation matrix.
[0067] Fig.13 It is a schematic diagram for determining radar positioning data and visual positioning data.
[0068] Main component symbols
[0069] Battery replacement equipment 10 Camera 20 Battery replacement buffer 30 vehicle 40
[0070] The following specific implementations will further illustrate the present disclosure in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION
[0071] In order to more clearly understand the above-mentioned purposes, features and advantages of the present disclosure, the present disclosure is described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that, in the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other. In the following description, many specific details are set forth in order to fully understand the present disclosure, and the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.
[0072] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present disclosure belongs. The terms used in the specification herein are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure.
[0073] In each embodiment, for the convenience of description and not to limit the present disclosure, the term "connection" used in the patent application specification and claims of the present disclosure is not limited to physical or mechanical connection, but may include electrical connection, whether direct or indirect. "Up", "down", "below", "left", "right", etc. are only used to indicate relative position relationship. When the absolute position of the described object changes, the relative position relationship also changes accordingly.
[0074] Figure 1This is a schematic diagram of the structure of a battery-swapping robot based on a two-dimensional radar and a camera 20. Figure 1 As shown, the battery swap robot based on the two-dimensional radar and the camera 20 includes a battery swap buffer 30, a camera 20, a two-dimensional radar and a controller. The battery swap buffer 30 is used to dock the vehicle 40 whose battery box is to be replaced. In the present embodiment, the battery swap buffer 30 is rectangular and is arranged near the battery swap device 10. After the vehicle 40 to be replaced is guided to the battery swap buffer 30, the battery swap device 10 can replace the battery box for the vehicle 40. In the present embodiment, the controller includes but is not limited to a processor (Central Processing Unit, CPU), a microcontroller unit (Micro Controller Unit, MCU), a server and other devices for interpreting computer instructions and processing data in computer software. The controller is connected to the camera 20 and the two-dimensional radar, and is used to detect the positioning data of the vehicle 40 through the camera 20 and the two-dimensional radar, so that appropriate positioning parameters can be output to guide the vehicle 40 to travel to the battery swap buffer 30.
[0075] Figure 2 This is a schematic diagram of the positioning of a two-dimensional radar. Figure 2 As shown, the two-dimensional radar is arranged in the battery swap buffer area 30, preferably in the center of the battery swap buffer area 30, for detecting the wheels of the vehicle 40 within a preset range θ in the horizontal plane, and obtaining the point cloud of the front wheels and rear wheels of the vehicle 40. The front wheels and rear wheels both include left wheels and right wheels. The two-dimensional radar is preferably a laser radar, and the scanning range α can be The scanned point cloud contains multiple scan points, and the positioning data of each scan point is in polar coordinates. The polar coordinates of the scanned points are converted to Cartesian coordinates as follows: In the formula θ is the horizontal polarization angle, ρ is the distance between the scanning point and the 2D radar.
[0076] Figure 3 Schematic diagram of the camera 20 and the battery replacement buffer 30. Figure 3 As shown, the camera 20 is arranged above the battery swap buffer 30, and the installation height from the battery swap buffer 30 is h, and is used to capture the image of the battery swap buffer 30 and the vehicle 40. Specifically, the four corner points of the battery swap buffer 30 are A, B, C, and D, and the length and width are respectively land w. Generally speaking, the area of the battery swap buffer 30 is larger than the projection area of the vehicle 40 on the ground, and is used to park the vehicle 40 to be swapped, and then the battery swap device 10 can replace the battery box for the vehicle 40. By selecting a suitable model of camera 20 and setting a suitable height h, the camera 20 can capture the entire area of the battery swap buffer 30, that is, all areas of the battery swap buffer 30 should be within the field of view of the camera 20.
[0077] Since the coordinates of the vehicle 40 in the camera 20 coordinate system need to be obtained during use, the camera 20 needs to be calibrated. For the pinhole camera 20 model, the internal parameter matrix K of the camera 20 can be expressed as follows: In the formula, f u and f v They are u , v The equivalent pixel point of the focal length in the direction, u 0 and v 0 The main point coordinates.
[0078] Suppose the coordinates of a point P in three-dimensional space in the world coordinate system are , the coordinates in the camera 20 coordinate system are , the coordinates in the image coordinate system are , let the coordinate transformation from the world coordinate system to the camera 20 coordinate system be [R t], then the homogeneous coordinate transformation from the image coordinate system to the world coordinate system can be obtained as: Then, the specific value of the internal parameter matrix K of the camera 20 can be obtained through simulation using software such as MATLAB.
[0079] Figure 4 Flow chart of the vehicle 40 guidance method based on the two-dimensional radar and the camera 20. Figure 4 As shown, the vehicle 40 guidance method based on the two-dimensional radar and the camera 20 obtains the positioning data of the vehicle 40 through the camera 20 and the two-dimensional radar respectively, analyzes the influence degree of each group of data according to the specific scenario, and outputs appropriate positioning data to guide the movement of the vehicle 40. The vehicle 40 guidance method includes steps S401 to S406.
[0080] Step S401: Scan the wheels of the vehicle 40 through a two-dimensional radar to obtain point cloud data corresponding to the wheels of the vehicle 40.
[0081] Step S402: Point cloud repair step. When using a two-dimensional radar for scanning, due to internal structure or environmental factors, the two-dimensional radar may not be able to receive all the laser beams sent out, so invalid points will appear in the feedback point data, that is, points with a distance value of 0. This situation will cause the distance values of adjacent points that originally belonged to the same cluster to mutate, thereby adversely affecting the clustering operation of the point cloud. Therefore, these invalid points need to be repaired first. As an example, the invalid point can be filled based on the previous point data. Assume ρ [ c ] is an invalid point that appears, and ρ[c]= ρ[c-1]+a is set, where ρ[c-1] is the previous point data of the invalid point, and a is a preset value, such as 0.01.
[0082] Step S403: point cloud clustering step. The two-dimensional radar feeds back point cloud data, and the wheel clusters corresponding to the wheels of the vehicle 40 can be segmented by clustering the point cloud data. For ease of description, it is assumed that the point data of the k-th scanning point returned is expressed as , two adjacent point data Angular resolution between Therefore, after the two-dimensional radar scans the wheels of the vehicle 40, and For adjacent continuous point data, the clustering threshold R is calculated as follows: in, ρ k is the polar coordinate of the point data, λ is the angle threshold for judging that two point data belong to the same cluster, is the standard deviation of the noise in the distance measurement. When using the above adaptive threshold R clustering, the distance threshold is larger for sparse point clouds in the distance, and smaller for dense point clouds in the vicinity.
[0083] Figure 4 It is a schematic diagram of the computational model of point cloud clustering. Figure 4 As shown, in a continuous point set of point data If there is: Point Set A wheel cluster is formed to form a wheel cluster corresponding to the wheels of the vehicle 40. In some cases, four wheel clusters corresponding to the four wheels may be formed through the clustering operation, but in some cases, wheel clusters may only be formed for some of the wheels.
[0084] Step S404: Acquire radar positioning data of the vehicle 40 in the battery swap buffer zone coordinate system according to the wheel clustering, wherein the radar positioning data includes a radar deflection angle of the vehicle 40 in the battery swap buffer zone coordinate system.
[0085] Figure 6 This is a flow chart for obtaining radar positioning data. Figure 4 As shown, obtaining radar positioning data includes steps S601 to S603.
[0086] Step S601: taking the point data with the minimum angle coordinate in the wheel cluster as the first endpoint, taking the point data with the maximum angle coordinate as the second endpoint, and taking the line connecting the first endpoint and the second endpoint as the baseline.
[0087] Figure 7 It is a schematic diagram of point cloud feature extraction. Figure 7 As shown, when the wheels of the vehicle 40 are scanned using a two-dimensional radar, the laser beam hits the circumferential surface and the side surface of the wheel, and the point cloud of the wheel thus formed is generally L-shaped. In the wheel cluster corresponding to each wheel, the first endpoint with the largest angle coordinate and the second endpoint with the smallest angle coordinate are defined as cluster endpoints, and the line connecting the first endpoint and the second endpoint is used as the baseline L3.
[0088] Step S602: Calculate the distance D between all scanning points in each wheel cluster and the baseline k , take the point data with the distance Dmax as the farthest from the scanning point to the baseline as the inflection point G, and determine the circumference point set x1 and the side point set x2.
[0089] In this step, a wheel cluster is divided into two parts by the inflection point G: the distances between the two endpoints of the baseline and the horizontal line where the inflection point is located are calculated respectively, and the point set between the endpoint with the larger distance and the inflection point G is taken as the side point set L2, and the point set between the other endpoint and the inflection point is taken as the circumferential point set L1. Specifically, the endpoint with the larger distance belongs to the point on the circumferential surface of the wheel (i.e., the tire surface), and it is defined as the circumferential endpoint. Therefore, the point set containing the circumferential endpoint is defined as the circumferential point set x1, and the remaining point set of the wheel cluster is defined as the side point set x2. Use the Huber straight line fitting algorithm to perform straight line fitting on the circumferential point set and the side point set respectively, and obtain straight line L1 and straight line L2. The angle between straight lines L1 and L2 is approximately a right angle, which verifies that the current wheel cluster is an L-shaped cluster.
[0090] In this embodiment, since the four wheels of the vehicle 40 will be scanned when the two-dimensional radar is used for wheel scanning, in order to simplify the processing flow, we only take the rear wheels of the vehicle 40 to estimate the location of the vehicle 40 in the early stage. The distance from the inflection point of each wheel cluster to the two-dimensional radar is calculated, and the two wheel clusters with the largest distance are taken as the clusters of the rear wheels of the vehicle 40. However, those skilled in the art understand that other wheel cluster calculations can also be selected.
[0091] Step S603: Determine the radar positioning data of the vehicle 40 relative to the battery swap buffer zone 30, wherein the radar positioning data includes the radar deflection angle of the vehicle 40 in the battery swap buffer zone coordinate system.
[0092] Figure 8 This is a schematic diagram of the calculation of radar positioning data. Figure 8 As shown, the posture of the vehicle 40 in the battery swap buffer zone coordinate system, namely, the radar positioning data, is calculated by using the circumferential point set and the side point set.
[0093] First, if Figure 8 As shown, the Huber straight line fitting algorithm is used to fit the circular point set of the rear wheels (left and right wheels) to obtain a positioning line L, the horizontal deflection angle of the positioning line in the battery exchange buffer zone coordinate system is used as the radar deflection angle, and the radar positioning data of the vehicle 40 is determined based on the circular point set.
[0094] The linear equation of the fitted positioning line L in the battery exchange buffer coordinate system is: Since the positioning line L extends along the width direction of the vehicle 40, the angle between the positioning line and the X-axis of the battery swap buffer coordinate system is the radar deflection angle, which is calculated according to the following formula: .
[0095] Then, set the height information of the two-dimensional radar to 0, and the two-dimensional point can be expressed in three-dimensional coordinates as For ease of description, the side point set A of the left wheel and the side point set B of the right wheel are expressed as: , Next, the above-mentioned side point set A and side point set B are deflected by the radar deflection angle θ to obtain the new point set C: Then, the displacement offset Δx of the vehicle 40 relative to the battery exchange buffer zone 30 in the X-axis direction in the battery exchange buffer zone coordinate system is calculated: After the vehicle 40 is rotated by a first deflection angle θ and translated by an offset amount Δx along the X-axis direction, the battery swap buffer zone 30 is aligned with the vehicle 40 .
[0096] Next, the front and rear distances between the two-dimensional radar and the vehicle 40 are calculated. To this end, the four wheels of the vehicle 40 are detected by the two-dimensional radar. After scanning the four wheels, the circumferential point sets of the front and rear wheels are obtained respectively. and If the two-dimensional radar does not detect the four wheels, the vehicle 40 may be controlled to move forward and backward until a wheel cluster of the four wheels of the vehicle 40 is detected.
[0097] Finally, the displacement offset Δy of the vehicle 40 relative to the battery swap buffer zone 30 in the Y-axis direction in the battery swap buffer zone coordinate system is calculated: Among them, F iy is the circumferential point set of the front wheel Point data in R iy is the circumferential point set of the rear wheel Point data in ;
[0098] Therefore, the visual positioning data P of the vehicle 40 relative to the battery exchange buffer zone 30 is determined as: .
[0099] Step S405: Photograph the vehicle 40 through the camera 20 to obtain the aspect ratio g of the circumscribed rectangular frame of the vehicle 40 and the visual positioning data of the vehicle 40 relative to the battery swap buffer zone coordinate system, wherein the visual positioning data includes the visual deflection angle of the vehicle 40 in the battery swap buffer zone coordinate system.
[0100] Fig. 9 is a flowchart for obtaining visual positioning data. Fig. 9 As shown, obtaining visual positioning data includes steps S901 to S905.
[0101] Step S901: The image of the vehicle 40 is captured by the camera 20, and the circumscribed rectangular frame of the outline of the vehicle 40 in the image of the vehicle 40 is extracted. In this step, the outline of the vehicle 40 is extracted by using the grabcut algorithm, and the edge of the outline of the vehicle 40 is refined by using the filtering algorithm for accurately locating the edge of the fuzzy image, wherein the filtering algorithm for accurately locating the edge of the fuzzy image is a frequency domain low-pass filtering method. Specifically, in the image taken by the camera 20 from a bird's-eye view, the shape of the vehicle 40 is basically rectangular, so the circumscribed rectangle of its outline can roughly reflect the posture of the vehicle 40.
[0102] Step S902: Fix the battery swap buffer zone coordinate system at the battery swap buffer zone 30, with the origin at the center of the battery swap buffer zone 30, and determine the first transformation matrix from the battery swap buffer zone coordinate system to the camera 20 coordinate system based on the first feature point of the battery swap buffer zone 30 .
[0103] Fig.10 is a flow chart for determining the first transformation matrix. Fig.10 As shown, determine the first transformation matrix Includes steps S1001~S1004.
[0104] Step S1001: Obtain the first coordinate of the first feature point in the battery swap buffer zone coordinate system, wherein the battery swap buffer zone coordinate system is set in the battery swap buffer zone 30.
[0105] In this step, obtaining the first coordinate of the first feature point in the battery swap buffer zone coordinate system includes: determining at least one of the four corner points of the battery swap buffer zone 30 as the first feature point. In this embodiment, the four corner points A, B, C, and D of the battery swap buffer zone 3030 are used as the first feature points.
[0106] Then, the first coordinates of the first feature points (i.e., the four corner points) are determined based on the length W along the length direction and the length H along the width direction of the battery swap buffer zone 3030. Since the length and width of the battery swap buffer zone 3030 are known, the coordinate value of the first coordinate in the battery swap buffer zone coordinate system is known.
[0107] Therefore, we can get formula 1: ,in, , where is the weight coefficient of the kth corner point.
[0108] Step S1002 : obtaining the second coordinates of the first feature point in the image coordinate system by manual marking, wherein the image coordinate system is set on the image captured by the camera 20 .
[0109] Specifically, Fig.11 is the camera 20 coordinate system solution diagram of camera 20. Fig.11 As shown, in the image coordinate system, which is the same as the battery exchange buffer coordinate system, there is formula 2: ,in, .
[0110] By manual marking, the four second coordinates of the first feature point in the image coordinate system can be obtained as follows: , , , .
[0111] Step S1003: Obtain the third coordinate of the first feature point in the camera 20 coordinate system according to the first coordinate and the second coordinate. Fig.10 , according to the pinhole camera 20 model, we can get formula 1: ;
[0112] in, , , , All are internal parameters of camera 20; , , is the point in the camera 20 coordinate system The coordinate value of .
[0113] Write formula 1 as a matrix The form is formula 2: ;
[0114] Pair Matrix Perform SVD decomposition and get formula 3: , ;
[0115] Therefore, the X-axis coordinate of the first feature point can be expressed as Formula 4: Since the distance between any two points in space in different coordinate systems is equal, we can get formula 5: ;
[0116] Parameters Construct the error function formula 6: Formula 7 can be obtained by first-order Taylor expansion: , and Formula 8: .
[0117] The Gauss-Newton method is used to minimize the error of formula 8 and obtain the optimal solution Substituting it into formula 7, we can obtain X, and get the X-axis coordinate of the first feature point. Repeat the above process to get the Y-axis coordinate of the first feature point, so as to get the third coordinate of the first feature point (i.e., the four corner points) of the battery swap buffer 3030 in the camera 20 coordinate system. .
[0118] Step S1004: Obtain a first transformation matrix from the battery swap buffer coordinate system to the camera 20 coordinate system based on the first coordinate and the third coordinate In this step, since the first coordinate of the first feature point of the battery swap buffer zone 3030 in the battery swap buffer zone coordinate system is a priori, that is, It is known that, therefore, the coordinates of the four corner points in the battery swap buffer coordinate system and the camera 20 coordinate system can be obtained respectively (Formula 9): Then, the coordinates of the first feature point relative to the center point in the battery swap buffer coordinate system are calculated (Formula 10): .
[0119] Next, we calculate the matrix H (Formula 11): .
[0120] Finally, the singular value decomposition (SVD) of the matrix H can be used to obtain the rotation matrix R and the translation vector t between the battery swap buffer coordinate system and the camera 20 coordinate system (Formula 12): , , , that is, the first transformation matrix from the battery swap buffer coordinate system to the camera 20 coordinate system is obtained .
[0121] The following combination Fig. 9 , continues with describing the subsequent steps for obtaining visual localization data.
[0122] Step S903: Determine the coordinates of the second feature point of the circumscribed rectangular frame in the image coordinate system, obtain the coordinates of the second feature point in the camera 20 coordinate system according to the intrinsic parameter matrix of the camera 20, and determine the second transformation matrix for converting from the image coordinate system to the camera 20 coordinate system according to the coordinates of the second feature point in the image coordinate system and the coordinates in the camera 20 coordinate system. Wherein, determining the coordinates of the second feature point of the circumscribed rectangular frame in the image coordinate system includes determining at least one of the four corner points of the circumscribed rectangular frame as the second feature point. In this embodiment, the four corner points of the circumscribed rectangular frame are used as the second feature points.
[0123] Fig.12 is a flow chart for determining the second transformation matrix. Fig.12 As shown, a second transformation matrix is determined from the image coordinate system to the camera 20 coordinate system according to the second feature point. Specifically including steps S1201~S1203.
[0124] Step S1201: According to the coordinates of the second feature point in the coordinate system of the camera 20 and the height of the camera 20, the actual size of the circumscribed rectangular frame is obtained. In this step, after adjusting the circumscribed rectangular frame of the vehicle 40, the coordinates of the four corner points (i.e., the second feature points) in the image coordinate system can be obtained. Specifically, at the current moment, the four corner points of the circumscribed rectangular frame of the vehicle 40 correspond to the four points A, B, C, and D after being mapped to the image coordinate system, thereby obtaining the coordinates of the second feature point in the image coordinate system at the current moment. According to the intrinsic parameter matrix K of the camera 20, the fourth coordinates of the second feature point in the coordinate system of the camera 20 can be obtained. Then, according to the fourth coordinates of the second feature point in the coordinate system of the camera 20 and the height of the camera 20, the actual size of the circumscribed rectangular frame of the vehicle 40 is obtained as M*N.
[0125] Step S1202: Determine the coordinates of the second feature point in the battery swap buffer coordinate system (i.e., the fifth coordinate) according to the actual size of the circumscribed rectangular frame. Specifically, the image coordinate system is set on the vehicle 40, and the origin of the image coordinate system coincides with the origin of the battery swap buffer coordinate system. Specifically, assuming that the actual size of the extracted circumscribed rectangular frame ABCD is , then the a priori fifth coordinates of the four second feature points of the circumscribed rectangular frame in the battery swap buffer zone coordinate system are Ab(-0.5M, 0.5N), Bb(-0.5M, -0.5N), Cb(0.5M, -0.5N), and Db(0,5M, 0.5N).
[0126] Step S1203: Using the coordinates of the second feature point in the camera 20 coordinate system (i.e., the fourth coordinate) and the coordinates of the second feature point in the battery swap buffer coordinate system (i.e., the fifth coordinate), obtain the second transformation matrix for converting the image coordinate system to the camera 20 coordinate system at the current moment through the PNP method. .
[0127] Step S904: Determine the third transformation matrix from the image coordinate system to the battery swap buffer coordinate system according to the following formula: Specifically, because the camera 20 is fixed in the global system of the battery-swapping robot, the current position can be obtained. ;
[0128] in, is the first transformation matrix, is the second transformation matrix.
[0129] Step S905: According to the third transformation matrix The visual positioning data of the vehicle 40 relative to the battery swap buffer 30 is calculated. In this step, according to the third transformation matrix The visual positioning data P of the vehicle 40 relative to the battery exchange buffer zone 30 is calculated r : Wherein, θr is the horizontal deflection angle of the vehicle 40 in the coordinate system of the camera 20, and xr and yr are the coordinate values of the vehicle 40 in the coordinate system of the camera 20.
[0130] Step S406: Calculate the ratio g / G of the aspect ratio g of the circumscribed rectangular frame and the aspect ratio G of the vehicle 40 as the scenario judgment value and the difference between the radar deflection angle and the visual deflection angle as the radar judgment value, and determine the radar positioning data or the visual positioning data according to the scenario judgment value and the radar judgment value to guide the vehicle 40 close to the battery swap buffer 30. In step S305, the image of the circumscribed rectangular frame of the vehicle 40 is acquired by the camera 20, so that the aspect ratio g of the circumscribed rectangular frame can be obtained. In addition, since the vehicles 40 belong to the same type of vehicles 40 in the closed scene, they have basically the same aspect ratio G, and the aspect ratio G can be known according to the model of the vehicle 40 or actual measurement.
[0131] Fig.12It is a schematic diagram for determining radar positioning data and visual positioning data. Fig.12 As shown, specifically, in this step S306, if the scenario judgment value is within the first range, it is determined to belong to the first scenario M1, wherein the first range is preferably 0.9 to 1.1. If the scenario judgment value is within the second range, it is determined to belong to the second scenario M2, wherein the second range is preferably 0.6 to 0.9 and 1.1 to 1.4. If the scenario judgment value does not belong to the first range and the second range, it is determined to belong to the third scenario M3.
[0132] When it is determined to be the first scenario M1, when the distance between the vehicle 40 and the battery exchange buffer zone 30 is greater than a preset value (far end), the visual positioning data is used as the positioning data of the vehicle 40 to guide the vehicle 40; when the distance between the vehicle 40 and the battery exchange buffer zone 30 is less than the preset value (near end), if the radar judgment value is less than the preset value, preferably when the radar deflection angle and the visual deflection angle are close, it means that the two-dimensional radar data is excellent, and the radar positioning data is used as the positioning data of the vehicle 40; if the radar judgment value is greater than the preset value, it means that the radar positioning data error of the two-dimensional radar is large, then both the far end and the near end use the visual positioning data as the positioning data of the vehicle 40.
[0133] When it is determined to be the second scenario M2, when the distance between the vehicle 40 and the battery swap buffer zone 30 is greater than a preset value (far end), the visual positioning data is used as the positioning data of the vehicle 40; when the distance between the vehicle 40 and the battery swap buffer zone 30 is less than a preset value (near end), the visual positioning data is used as the positioning data of the vehicle 40 to guide the movement of the vehicle 40. During the movement, if the scenario judgment value enters the first range and is determined to be the first scenario, the first scenario M1 processing is entered; otherwise, if the radar judgment value is within the first range, the visual positioning data is used as the positioning data of the vehicle 40 to guide the movement of the vehicle 40. If it is not within the first range, an error signal is output and no positioning is performed.
[0134] When it is determined to be the third scenario M3, an error signal is output and no positioning data is output.
[0135] This paper proposes a method for positioning the camera 20 assisted by a two-dimensional laser radar. With a relatively small cost increase, the camera 20 and the radar are used for positioning. When the vehicle 40 is moving at the far end, due to the large size of the vehicle 40, the four wheels of the vehicle 40 will partially overlap. At this time, the two-dimensional radar cannot completely measure the point cloud of the four wheels of the vehicle 40, but the camera 20 can guide the vehicle 40 to move close to the battery swap buffer 30, which is a rough guidance of the vehicle 40; when the vehicle 40 moves to the near end, the two-dimensional radar can detect the four wheels of the vehicle 40. At this time, based on the precise cloud map positioning of the two-dimensional radar, it guides it to enter the battery swap buffer 30, and then analyzes the degree of influence of each group of data according to the specific scenario and assigns weights to output appropriate parameters. For example: in the current rainy and snowy night scene, the visual positioning data output by the camera 20 has a large deviation, but the visual positioning data output by the camera 20 can roughly guide the vehicle 40 from the far end to the near end, and then rely on the data of the two-dimensional radar for precise positioning. For another example, when there are other objects or obstructions between the two-dimensional radar and the vehicle 40, when the vehicle 40 approaches the near end, the two-dimensional radar cannot obtain the radar positioning data or compare the camera 20 data with the actual contour ratio of the vehicle 40. If the error is not large, the data of the camera 20 and the radar data can be compared, and the radar judgment value can be analyzed. If it is found that there is a serious error between the angle obtained by the radar and the angle of the camera 20 data, the radar data is considered to be wrong. Until the radar data no longer has a serious deviation, the radar is used to guide the positioning at the near end. If the data obtained by the camera 20 is not good, and the radar data has not been improved to reliable data during the process of the vehicle 40 approaching the battery swap station, the guided positioning is stopped.
[0136] The above-mentioned vehicle 40 guidance method and battery-swap robot based on two-dimensional radar and camera 20 obtain the radar positioning data of the vehicle 40 through the two-dimensional radar, obtain the visual positioning data of the vehicle 40 through the camera 20, and then calculate the corresponding scenario judgment value and radar judgment value, and select the radar positioning data or the visual positioning data as the appropriate positioning data according to the scenario judgment value and the radar judgment value, thereby combining the advantages of camera 20 positioning and radar positioning, and improving the positioning accuracy and reliability during the vehicle 40 guidance process without significantly increasing the cost of the battery-swap robot.
[0137] In the several specific embodiments provided in the present disclosure, it is obvious to those skilled in the art that the present disclosure is not limited to the details of the above exemplary embodiments, and that the present disclosure can be implemented in other specific forms without departing from the spirit or basic features of the present disclosure. Therefore, no matter from which point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present disclosure is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present disclosure. In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0138] The above embodiments are only used to illustrate the technical solution of the present disclosure rather than to limit it. Although the present disclosure is described in detail with reference to the above preferred embodiments, those skilled in the art should understand that the technical solution of the present disclosure can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present disclosure.
Claims
1. A vehicle guidance method based on two-dimensional radar and camera, It is characterized in that The following steps are involved: Scanning the wheels of the vehicle by a two-dimensional radar to obtain radar positioning data of the vehicle in the battery swap buffer zone coordinate system, wherein the radar positioning data includes a radar deflection angle of the vehicle in the battery swap buffer zone coordinate system; Shooting the vehicle with a camera, obtaining the aspect ratio g of the circumscribed rectangular frame of the vehicle and the visual positioning data of the vehicle relative to the battery swap buffer zone coordinate system, wherein the visual positioning data includes the visual deflection angle of the vehicle in the battery swap buffer zone coordinate system; Calculate the ratio g / G of the aspect ratio g of the circumscribed rectangular frame and the aspect ratio G of the vehicle as the scenario judgment value and the difference between the radar deflection angle and the visual deflection angle as the radar judgment value, and select radar positioning data or visual positioning data according to the scenario judgment value and the radar judgment value to guide the vehicle to approach the battery swap buffer zone; Scanning the wheels of the vehicle by a two-dimensional radar to obtain radar positioning data of the vehicle in the battery swap buffer zone coordinate system includes the following steps: Scanning the wheels of the vehicle with a two-dimensional radar to obtain wheel clusters corresponding to the wheels, and taking a line connecting point data with minimum angle coordinates and point data with maximum angle coordinates in the wheel clusters as a baseline; Calculate the distance between the midpoint data of the wheel cluster and the baseline, take the point data farthest from the baseline as the inflection point, divide the wheel cluster according to the inflection point, and respectively calculate the distance between the two end points of the baseline and the horizontal line where the inflection point is located, take the point set between the end point with the larger distance and the inflection point as the side point set, and take the point set between the other end point and the inflection point as the circumference point set; Fitting a positioning line from the circular point set, using the horizontal deflection angle of the positioning line in the battery swap buffer coordinate system as the radar deflection angle, and determining the radar positioning data of the vehicle based on the circular point set and the side point set; Shooting the vehicle with a camera and obtaining visual positioning data of the vehicle relative to the battery swap buffer zone coordinate system includes: The battery swap buffer zone coordinate system is fixed in the battery swap buffer zone, with the origin located at the center of the battery swap buffer zone border. The first transformation matrix from the battery swap buffer zone coordinate system to the camera coordinate system is determined based on the first feature point of the battery swap buffer zone. Determine the coordinates of the second feature point of the circumscribed rectangular frame in the image coordinate system, obtain the coordinates of the second feature point in the camera coordinate system according to the intrinsic parameter matrix of the camera, and determine the second transformation matrix from the image coordinate system to the camera coordinate system according to the coordinates of the second feature point in the image coordinate system and the coordinates in the camera coordinate system The third transformation matrix from the image coordinate system to the battery exchange buffer coordinate system is determined according to the following formula: According to the third transformation matrix The visual positioning data of the vehicle relative to the battery swap buffer area is calculated.
2. The vehicle guidance method based on two-dimensional radar and camera as claimed in claim 1, It is characterized in that Selecting radar positioning data or visual positioning data according to the scenario judgment value and the radar judgment value to guide the vehicle to approach the battery swap buffer zone includes: If the scenario judgment value is within the first range, it is determined to belong to the first scenario; if the scenario judgment value is within the second range, it is determined to belong to the second scenario; In the first scenario, if the distance of the vehicle is greater than a preset value, the vehicle is guided to approach the battery swap buffer area by the visual positioning data; if the distance of the vehicle is less than a preset value, if the radar judgment value is less than the preset value, the vehicle is guided by the radar positioning data, otherwise the vehicle is guided by the visual positioning data; In the second scenario, if the distance of the vehicle is greater than a preset value, the vehicle is guided close to the battery swap buffer zone through the visual positioning data; if the distance of the vehicle is less than the preset value, if the radar judgment value is less than the preset value, the vehicle is guided close to the battery swap buffer zone through the radar positioning data, and if it is detected that the scenario judgment value enters the first range, return to the first scenario processing.
3. The vehicle guidance method based on two-dimensional radar and camera as claimed in claim 2, It is characterized in that The first range is 0.9 to 1.1, and the second range is 0.6 to 0.9 and 1.1 to 1.
4.
4. The vehicle guidance method based on two-dimensional radar and camera as claimed in claim 3, It is characterized in that Taking the horizontal deflection angle of the positioning line in the battery exchange buffer zone coordinate system as the radar deflection angle includes: The linear equation of the fitted positioning line in the battery exchange buffer zone coordinate system is: ax+by+c=0; The radar deflection angle θ is calculated according to the following formula: θ=time -1 (-a / b)。 5. The vehicle guidance method based on two-dimensional radar and camera as claimed in claim 4, It is characterized in that Determining the radar positioning data of the vehicle according to the circumference point set and the side point set includes: The wheel clusters of the left wheel and the right wheel of the front wheel or the rear wheel of the vehicle are obtained, and the side point set A corresponding to the wheel cluster of the left wheel and the side point set B corresponding to the wheel cluster of the right wheel are expressed as: Calculate the displacement offset Δx of the vehicle relative to the battery swap buffer area in the X-axis direction of the battery swap buffer area coordinate system: Calculate the displacement offset Δy of the vehicle relative to the battery swap buffer area in the Y-axis direction in the battery swap buffer area coordinate system: Among them, F iy is the circumferential point set of the front wheel {F 1 ,F 2 ,…,F m }, R iy is the circumferential point set of the rear wheel {R 1 ,R 2 ,...,R n }Point data in; Determine the visual positioning data P of the vehicle relative to the battery swap buffer zone as: P=[θ Δx Δy] T 。 6. The vehicle guidance method based on two-dimensional radar and camera as claimed in claim 5, It is characterized in that The two-dimensional radar scans the wheels of the vehicle, and obtaining wheel clusters corresponding to the wheels includes: The two-dimensional radar scans the wheels of the vehicle and uses P k and P k+1 For adjacent continuous point data, the clustering threshold R is calculated as follows: Among them, ρ k is the polar coordinate of the point data, λ is the angle threshold for judging that two point data belong to the same cluster, σ ρ is the standard deviation of the noise in the distance measurement; In the point data, if there is: |r k -r k+1 |>R,|ρ k+m -r k+m+1 |>R Then the point set {P k+1 ,P k+2 ,…,P k+m-1 ,P k+m } form a wheel cluster.
7. The vehicle guidance method based on two-dimensional radar and camera as claimed in claim 6, It is characterized in that Before obtaining the wheel cluster corresponding to the wheel, the method further includes: If ρ[c] is an invalid point, set ρ[c]=ρ[c-1]+a, where ρ[c-1] is the previous point data of the invalid point and a is a preset value.
8. The vehicle guidance method based on two-dimensional radar and camera as claimed in claim 7, It is characterized in that Determine the first transformation matrix from the battery swap buffer area coordinate system to the camera coordinate system according to the first feature point of the battery swap buffer area include: Acquire a first coordinate of the first feature point in a battery swap buffer zone coordinate system, wherein the battery swap buffer zone coordinate system is set in the battery swap buffer zone; Obtaining a second coordinate of the first feature point in an image coordinate system by manual marking, wherein the image coordinate system is set to the image captured by the camera; Obtaining a third coordinate of the first feature point in a camera coordinate system according to the first coordinate and the second coordinate; According to the first coordinate and the third coordinate, the first transformation matrix is obtained. And, obtaining the first coordinate of the first feature point in the battery swap buffer zone coordinate system includes: Select a rectangular space to be determined as the battery swap buffer area, and determine at least one of the four corner points of the battery swap buffer area as the first feature point; The origin of the battery swap buffer zone coordinate system is set at the center of the battery swap buffer zone, and the first coordinate of the first feature point in the battery swap buffer zone coordinate system is determined according to the length of the battery swap buffer zone along the length direction and the width direction; Determining the coordinates of the second feature point of the circumscribed rectangular frame in the image coordinate system includes: determining at least one of the four corner points of the circumscribed rectangular frame as the second feature point; And, according to the coordinates of the second feature point in the image coordinate system and the coordinates of the camera coordinate system, determine a second transformation matrix for converting from the image coordinate system to the camera coordinate system include: Obtaining an actual size of the circumscribed rectangular frame according to the coordinates of the second feature point in the camera coordinate system and the height of the camera; According to the actual size of the circumscribed rectangular frame, the coordinates of the second feature point in the battery swap buffer zone coordinate system are determined; wherein the image coordinate system is set on the vehicle, and the origin of the image coordinate system coincides with the origin of the battery swap buffer zone coordinate system; Using the coordinates of the second feature point in the camera coordinate system and the coordinates of the second feature point in the battery exchange buffer coordinate system, the second transformation matrix of the image coordinate system at the current moment to the camera coordinate system is obtained by the PNP method. And, according to the third transformation matrix The visual positioning data of the vehicle relative to the battery swap buffer zone calculated includes: Among them, θr is the horizontal deflection angle of the vehicle in the camera coordinate system, and xr and yr are the coordinate values of the vehicle in the camera coordinate system.
9. A battery-swapping robot based on two-dimensional radar and camera, It is characterized in that include: A battery replacement buffer area for parking vehicles whose battery boxes are to be replaced; A camera disposed above the battery swap buffer area, for photographing the battery swap buffer area and the vehicle; A two-dimensional radar disposed in the battery exchange buffer area, for detecting the wheels of the vehicle within a preset range in a horizontal plane; A controller, connected to the camera, is used to execute the vehicle guidance method as described in any one of claims 1-8.
Citation Information
Patent Citations
Anti-collision method based on joint verification of binocular vision and laser radar in congested traffic
CN104574376A
Night preceding vehicle detection method based on millimeter-wave radar and machine vision
CN104637059A
Blind area monitoring method based on millimeter wave and visual fusion perception
CN111060904A
Systems and methods for using computer vision to guide processing of receive responses of radar sensors of a vehicle
US20240094382A1
