A charging port aiming method for a car charging robot based on monocular vision

By installing a monocular camera and a robotic arm on the car charging robot, combined with image processing technology, the charging port electrodes are identified and fitted to obtain the optimal heading and pitch angle, which solves the problems of high cost and large data volume of structured light cameras, and achieves High-precision, low-cost charging gun aiming method.

CN116673959BActive Publication Date: 2024-09-27ZHONGKE PILOT ROBOT (SUZHOU) CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310777609.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-28
Publication Date
2024-09-27
Estimated Expiration
2043-06-28

AI Technical Summary

Technical Problem

In the existing technology, when structured light cameras are used to aim at the charging port of a car charging robot, the cost is high and the amount of data is large. It cannot be promoted on a large scale and it is difficult to achieve unattended automatic charging.

Method used

Using a method based on monocular vision, a monocular camera is installed at the end of the robotic arm, combined with the 6-degree-of-freedom movement of the robotic arm and image processing technology, to identify the charging port electrodes, obtain the optimal heading and pitch angle by fitting, and realize the charging gun. Aim accurately.

Benefits of technology

It achieves high-precision charging gun aiming at lower hardware costs, reduces the performance requirements of the computer processor, and simplifies the implementation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116673959B
    Figure CN116673959B
Patent Text Reader

Abstract

The present invention relates to the technical field of intelligent charging of new energy vehicles, and discloses a method for aiming a charging port of a car charging robot based on monocular vision, comprising the following steps: S1, the mechanical arm of the charging robot has 6 degrees of freedom; S2, select a coordinate system; S3, control the mechanical arm to move horizontally to the right, and collect images of the charging port; S4, image processing, electrode identification, and counting of the pixel area of ​​the electrode; S5, data fitting, and finding the extreme point with the largest electrode area; S6, control the mechanical arm to move vertically upward, and obtain the ordinate corresponding to the extreme point; S7, reach the best photo point; S8, find the best heading angle of the monocular camera; S9, find the best pitch angle of the monocular camera; S10, the mechanical arm drives the charging gun to move in the best aiming posture, and the charging port can be accurately inserted. The method can obtain the best posture of the charging gun aiming at the charging port with a relatively low hardware cost and a mathematical method. The method has high accuracy and is easy to implement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent charging of new energy vehicles, and in particular to a charging port aiming method of a vehicle charging robot based on monocular vision. Background Art

[0002] With the rapid development and popularization of the new energy vehicle industry, the degree of intelligence of the car charging robots that match it is getting higher and higher. The car charging robot is required to be able to automatically charge new energy vehicles without human supervision. After the car charging robot grabs the charging gun, how to adjust its posture to aim at the charging port is the prerequisite for accurate insertion into the charging port. The process of aiming at the charging port must not only consider its spatial coordinates, but also its spatial posture. Otherwise, it is difficult to achieve accurate docking between the charging gun and the charging port.

[0003] The current mainstream method is to use a structured light camera to obtain the point cloud information of the charging port, and then use the point cloud information to reconstruct the charging port in three dimensions, and then obtain the relative position and posture of the charging port. This method has high accuracy, but the amount of point cloud data output by the structured light camera is too large, and the performance requirements of the computer processor are high. At the same time, the cost of structured light cameras is too high to be promoted on a large scale. Therefore, a charging port aiming method for a car charging robot based on monocular vision is proposed. Summary of the invention

[0004] The purpose of the present invention is to provide a charging port aiming method for a car charging robot based on monocular vision, so as to solve the problem that the structured light camera proposed in the above background technology is high in cost and large in data volume and cannot be promoted on a large scale.

[0005] To achieve the above object, the present invention provides the following technical solution: a method for aiming a charging port of a car charging robot based on monocular vision, comprising the following steps:

[0006] S1. The robotic arm of the charging robot has 6 degrees of freedom. A servo is installed at the end of the robotic arm. A monocular camera is installed on the servo. The servo can drive the monocular camera to perform heading and pitch movements.

[0007] S2, select the coordinate system;

[0008] S3, control the robot arm to move horizontally to the right to collect the image of the charging port;

[0009] S4, image processing, identifying electrodes, and counting the pixel areas of electrodes;

[0010] S5, data fitting, finding the extreme point with the largest electrode area;

[0011] S6, controlling the robot arm to move vertically upward, collecting images, identifying electrodes, fitting the images of the positive electrode and the negative electrode, and obtaining the ordinate corresponding to the extreme point when the area is the largest;

[0012] S7, control the movement of the robotic arm to make the monocular camera reach the best shooting point;

[0013] S8, obtaining the best heading angle of the monocular camera;

[0014] S9, obtaining the best pitch angle of the monocular camera;

[0015] S10. The robotic arm drives the charging gun to move in the best aiming position so that it can be accurately inserted into the charging port.

[0016] Preferably, in S2, the lower left corner of the robot arm's working space is selected as the origin O, the horizontal right is the positive direction of the x-axis, and the vertical upward is the positive direction of the y-axis, so that the charging port is in the first quadrant, and the positive direction of the z-axis is determined according to the left-hand rule to be perpendicular to the xOy plane and pointing straight ahead.

[0017] Preferably, in S3, in the xOy plane, the robotic arm is controlled to move horizontally to the right along the x-axis from the origin. During the movement, N images of the charging port are periodically collected through the monocular camera, and the camera's posture is horizontally forward.

[0018] Preferably, in S4, the N images are processed respectively to identify the positive and negative electrodes of the electrodes, and the pixel areas of the positive and negative electrodes are calculated respectively, and the pixel areas of the positive electrodes are combined into a sequence {S +}, the pixel area of ​​the negative electrode is composed into a sequence {S -}.

[0019] Preferably, in S5, for the sequence {S +}Use the quadratic polynomial f1(x) for fitting and obtain the expression of f1(x); then take the first-order derivative of f1(x) and set the derivative to zero, and obtain the horizontal coordinate of the extreme point of f1(x) as x=x + ; For the sequence {S -}Use the quadratic polynomial f2(x) for fitting and obtain the expression of f2(x); then take the first-order derivative of f2(x) and set the derivative to zero, and obtain the horizontal coordinate of the extreme point of f2(x) as x=x - .

[0020] Preferably, in S6, the robot arm is controlled to move vertically upward along the y-axis, the image is collected, the electrode is identified, and the images of the positive electrode and the negative electrode are fitted with quadratic polynomials f3(y) and f4(y), respectively, and then the first-order derivative is obtained, and the derivative is set to zero, and the ordinates corresponding to the extreme points of f3(y) and f4(y) are obtained as y=y + and y = y - .

[0021] Preferably, in S7, the robot arm is controlled to move so that the monocular camera reaches the best photographing point P (x0, y0) in the xOy plane, where

[0022] Preferably, in S8, the center point position of the monocular camera is kept unchanged at point P, and the heading angle of the monocular camera is changed by the servo so that the monocular camera moves from the left extreme position of the heading angle to the right extreme position, and the image of the charging port is continuously collected during the movement; through image recognition, the relationship between the sum of the pixel areas of the positive and negative electrodes and the heading angle is calculated, and the method of quadratic polynomial fitting, differentiation, and setting the derivative to zero to find the extreme value in S5 is adopted to obtain the pixel area and the heading angle α corresponding to the maximum value.

[0023] Preferably, in S9, the center point position of the monocular camera is kept unchanged at point P, and the pitch angle of the monocular camera is changed by the servo so that the monocular camera moves from the upper limit position of the pitch angle to the lower limit position, and the image of the charging port is continuously collected during the movement, so as to obtain the pitch angle β corresponding to the maximum value of the sum of the pixel areas of the two electrodes.

[0024] Preferably, in S10, the charging gun is placed at point P in the xOy plane, with a heading angle of α and a pitch angle of β, which is the best aiming position. The charging gun is driven by the robotic arm to move along the heading angle α and the pitch angle β in this posture, and can be accurately inserted into the charging port.

[0025] Compared with the prior art, the present invention adopts the above technical solution and has the following technical effects:

[0026] This method can obtain the optimal posture of the charging gun aiming at the charging port with a low hardware cost and a mathematical method. The method has high accuracy and is easy to implement. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0028] Figure 1 It is a schematic diagram of the relationship between the charging port and the xOy coordinate system of the present invention. DETAILED DESCRIPTION

[0029] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0030] Example

[0031] A structured light camera is used to obtain the point cloud information of the charging port, and then the charging port is reconstructed in three dimensions through the point cloud information to obtain the relative position and posture of the charging port. This method has high accuracy, but the amount of point cloud data output by the structured light camera is too large, and the performance requirements of the computer processor are high. At the same time, the cost of structured light cameras is too high to be promoted on a large scale. The purpose of the present invention is to enable the charging gun of the charging robot to aim at the charging port of the new energy vehicle to prepare for charging.

[0032] See also Figure 1 The present invention provides a technical solution: a method for aiming a charging port of a car charging robot based on monocular vision, comprising the following steps:

[0033] S1. The robotic arm of the charging robot must have at least 6 degrees of freedom. Install a servo at the end of the robotic arm. Install a monocular camera on the servo. The servo can drive the monocular camera to move left and right (heading) and up and down (pitch direction). When installing the monocular camera, be careful not to interfere with the normal plugging and unplugging of the charging gun.

[0034] S2. Select the coordinate system. Select the lower left corner of the robot arm's workspace as the origin O, the horizontal right as the positive direction of the x-axis, and the vertical upward as the positive direction of the y-axis, so that the charging port is in the first quadrant. According to the left-hand rule, the positive direction of the z-axis is perpendicular to the xOy plane and points straight ahead. The distance between the xOy plane and the car charging port is about half the arm span of the robot arm.

[0035] S3. Control the robot arm to move horizontally to the right and collect images of the charging port. In the xOy plane, control the robot arm to move horizontally to the right along the x-axis from the origin. During the movement, the monocular camera periodically collects N images of the charging port. At this time, the camera's posture is horizontal and forward. The value of N is recommended to be greater than 20.

[0036] S4, image processing, electrode identification, and pixel area statistics of electrodes. Perform image processing on N images respectively, identify the positive and negative electrodes of the electrodes, and calculate the pixel areas of the positive and negative electrodes respectively, and form a sequence of pixel areas of the positive electrodes {S +}, the pixel area of ​​the negative electrode is composed into a sequence {S -}.

[0037] S5. Data fitting, find the extreme point with the largest electrode area. +}Use the quadratic polynomial f1(x) for fitting and obtain the expression of f1(x). Then take the first-order derivative of f1(x) and set the derivative to zero. The horizontal coordinate corresponding to the extreme point of f1(x) is x=x + For the sequence {S -}Use the quadratic polynomial f2(x) for fitting and obtain the expression of f2(x). Then take the first-order derivative of f2(x) and set the derivative to zero. The horizontal coordinate corresponding to the extreme point of f2(x) is x=x - According to projection theory, during the horizontal and vertical movement of the camera, the area of ​​the circular electrode will inevitably increase first and then decrease, and there will inevitably be extreme points.

[0038] S6. Similarly, using a method similar to steps S3 to S5, control the robot arm to move vertically upward along the y-axis, collect images, identify electrodes, fit the images of the positive and negative electrodes with quadratic polynomials f3(y) and f4(y), respectively, and then calculate the first-order derivative, set the derivative to zero, and obtain the ordinates corresponding to the extreme points of f3(y) and f4(y) as y=y + and y = y - .

[0039] S7, reach the best photo point. Control the robot arm to move so that the monocular camera reaches the best photo point P (x0, y0) in the xOy plane, where Due to the symmetry of the charging port, the arithmetic mean of the two extreme points is the best photo-taking point for the entire charging port.

[0040] S8. Find the best heading angle of the monocular camera. Keep the center point of the monocular camera at point P unchanged, change the heading angle of the monocular camera through the servo, and move the monocular camera from the left extreme position of the heading angle to the right extreme position, and continuously collect images of the charging port during the movement. Through image recognition, calculate the relationship between the sum of the pixel areas of the positive and negative electrodes and the heading angle. Use the method of fitting the quadratic polynomial in 5, taking the derivative, and setting the derivative to zero to find the extreme value to obtain the pixel area and the heading angle α corresponding to the maximum value. The purpose of this operation is to obtain the best insertion angle in the heading direction.

[0041] S9, find the best pitch angle of the monocular camera. Use a similar method to S8, keep the center point of the monocular camera at point P, change the pitch angle of the monocular camera through the servo, and move the monocular camera from the upper limit position of the pitch angle to the lower limit position, and continuously collect images of the charging port during the movement. Then get the pitch angle β corresponding to the maximum value of the sum of the pixel areas of the two electrodes. The purpose of this operation is to obtain the best insertion angle in the pitch direction.

[0042] S10. At this time, the charging gun is placed at point P in the xOy plane, with a heading angle of α and a pitch angle of β, which is the best aiming posture. The robotic arm drives the charging gun to move along the heading angle α and the pitch angle β in this posture, and it can be accurately inserted into the charging port.

[0043] In summary, this method can obtain the optimal posture of the charging gun aiming at the charging port with a low hardware cost and a mathematical method. The method has high accuracy and is easy to implement.

[0044] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for aiming a charging port of a car charging robot based on monocular vision, characterized in that: The following steps are involved: S1. The robotic arm of the charging robot has 6 degrees of freedom. A servo is installed at the end of the robotic arm. A monocular camera is installed on the servo. The servo can drive the monocular camera to perform heading and pitch movements. S2. Select a coordinate system; select the lower left corner of the robot arm workspace as the origin O, the horizontal rightward direction as the positive direction of the x-axis, and the vertical upward direction as the positive direction of the y-axis, so that the charging port is in the first quadrant, and according to the left-hand rule, the positive direction of the z-axis is determined to be perpendicular to the xOy plane and point straight ahead; S3, control the robot arm to move horizontally to the right and collect the image of the charging port; in the xOy plane, control the robot arm to move horizontally to the right along the x-axis from the origin. During the movement, the monocular camera periodically collects N images of the charging port. At this time, the camera's posture is horizontally forward; the value of N is greater than 20; S4, image processing, identifying electrodes, and counting the pixel areas of electrodes; Perform image processing on N images respectively, identify the positive and negative electrodes of the electrodes, and calculate the pixel areas of the positive and negative electrodes respectively, and form a sequence {S + }, the pixel area of ​​the negative electrode is composed into a sequence {S - }; S5, data fitting, find the extreme point with the largest electrode area; for the sequence {S + }Use the quadratic polynomial f1(x) for fitting and obtain the expression of f1(x); then take the first-order derivative of f1(x) and set the derivative to zero, and obtain the horizontal coordinate of the extreme point of f1(x) as x=x + ; For the sequence {S - }Use the quadratic polynomial f2(x) for fitting and obtain the expression of f2(x); then take the first-order derivative of f2(x) and set the derivative to zero, and obtain the horizontal coordinate of the extreme point of f2(x) as x=x - ; S6, control the robot arm to move vertically upward, collect images, identify electrodes, fit the images of the positive and negative electrodes, and obtain the ordinate corresponding to the extreme point when the area is the largest; control the robot arm to move vertically upward along the y-axis, collect images, identify electrodes, fit the images of the positive and negative electrodes with quadratic polynomials f3(y) and f4(y), respectively, and then calculate the first-order derivative, set the derivative to zero, and obtain the ordinates corresponding to the extreme points of f3(y) and f4(y) as y=y + and y = y - ; S7, control the movement of the robotic arm to make the monocular camera reach the best shooting point; control the movement of the robotic arm to make the monocular camera reach the best shooting point P (x0, y0) in the xOy plane, where S8, obtaining the best heading angle of the monocular camera; keeping the center point of the monocular camera at point P unchanged, changing the heading angle of the monocular camera through the servo, so that the monocular camera moves from the left extreme position of the heading angle to the right extreme position, and continuously collecting images of the charging port during the movement; calculating the relationship between the sum of the pixel areas of the positive and negative electrodes and the heading angle through image recognition, and using the method of quadratic polynomial fitting, derivation, and setting the derivative to zero to find the extreme value in S5 to obtain the heading angle α corresponding to the pixel area and the maximum value; S9, obtaining the optimal pitch angle of the monocular camera; keeping the center point of the monocular camera at point P unchanged, changing the pitch angle of the monocular camera through the servo, so that the monocular camera moves from the upper limit position of the pitch angle to the lower limit position, and continuously collecting images of the charging port during the movement, and then obtaining the pitch angle β corresponding to the maximum value of the sum of the pixel areas of the two electrodes; S10. The robotic arm drives the charging gun to move in the best aiming position so that it can be accurately inserted into the charging port. The charging gun is placed at point P in the xOy plane with a heading angle of α and a pitch angle of β, which is the best aiming position. The robotic arm drives the charging gun to move along the heading angle α and the pitch angle β in this position so that it can be accurately inserted into the charging port.