A PID control method and system for realizing non-contact centering of a vehicle

Through the contactless PID control method, image acquisition and PID controller calculate vehicle correction instructions are used to solve the problem of wear of the contact centering device, and high-precision vehicle centering positioning and stability are achieved.

CN120178660BActive Publication Date: 2025-08-01SHANGHAI DPIN ELECTRONIC TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510655598.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-05-21
Publication Date
2025-08-01
Estimated Expiration
2045-05-21

AI Technical Summary

Technical Problem

The existing contact vehicle centering devices have equipment wear problems during use, which affects the appearance quality of the vehicle and increases maintenance costs.

Method used

The contactless PID control method is adopted to obtain vehicle position information through the image acquisition device, and the PID controller is used to calculate vehicle correction instructions to realize contactless centering of the vehicle and avoid wear caused by mechanical contact.

Benefits of technology

High-precision vehicle centering positioning is achieved, reducing mechanical wear, improving stability and accuracy of the centering process, and avoiding equipment wear and maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120178660B_ABST
    Figure CN120178660B_ABST
Patent Text Reader

Abstract

A PID control method and system for realizing non-contact centering of a vehicle, which relates to the field of joint control of vehicle subsystems. The method includes: obtaining a real-time image of the current position of a target vehicle through an image acquisition device, and preprocessing the real-time image to obtain a vehicle contour feature map; extracting the coordinates of vehicle feature points according to the vehicle contour feature map, calculating a first coordinate deviation value between the coordinates of the vehicle feature points and the preset target position coordinates, and calculating a vehicle correction instruction by using a PID controller according to the deviation value. The PID controller includes a proportional coefficient, an integral coefficient, and a differential coefficient, and the vehicle correction instruction includes a lateral displacement correction amount and an angle correction amount; sending the vehicle correction instruction to an actuator and obtaining a second coordinate deviation value; when the second coordinate deviation value is less than a preset coordinate threshold, it is determined that the vehicle centering operation is completed. Implementing this method can reduce mechanical wear during centering at the four-wheel alignment station of an automobile production line.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of joint control of vehicle subsystems, and particularly to a PID control method and system for realizing non-contact centering of a vehicle. Background Art

[0002] With the continuous development of automobile manufacturing technology, the requirements for performance calibration of vehicles before leaving the factory are increasing day by day. During the calibration processes such as advanced driver assistance systems and four-wheel alignment, it is necessary to accurately position the vehicle at the center position of the calibration equipment platform to ensure the accuracy of calibration data. Therefore, the vehicle centering technology, as a key link in the calibration process, directly affects the reliability of the calibration results.

[0003] Currently, contact centering devices mainly driven by cylinders are commonly used in industrial sites. This device mainly consists of a cylinder and a push rod. The telescopic movement of the cylinder is controlled by a PLC controller, which drives the push rod to contact the wheel and push the vehicle towards the center of the platform. In practical applications, this device adjusts the position of the vehicle through the mechanical movement of the cylinder and the push rod.

[0004] However, this contact centering method has problems of equipment wear during use. Since the push rod needs to directly contact the wheel, long-term use will cause wear on the surfaces of the push rod and the wheel, which not only increases the equipment maintenance cost but also may affect the appearance quality of the vehicle. Summary of the Invention

[0005] This application provides a PID control method and system for realizing non-contact centering of a vehicle, which is used to reduce mechanical wear during centering at the four-wheel alignment station of an automobile production line.

[0006] In a first aspect, this application provides a PID control method for realizing non-contact centering of a vehicle, which is applied to a PID control system. The method includes: obtaining a real-time image of the current position of a target vehicle through an image acquisition device, and preprocessing the real-time image to obtain a vehicle contour feature map; extracting the coordinates of vehicle feature points according to the vehicle contour feature map, and calculating a first coordinate deviation value between the coordinates of the vehicle feature points and the coordinates of a preset target position, where the coordinate deviation value includes a lateral deviation and an angular deviation; calculating a vehicle correction instruction by using a PID controller according to the deviation value, the PID controller includes a proportional coefficient, an integral coefficient, and a differential coefficient, and the vehicle correction instruction includes a lateral displacement correction amount and an angular correction amount; sending the vehicle correction instruction to an actuator, and obtaining a second coordinate deviation value; when the second coordinate deviation value is less than a preset coordinate threshold, it is determined that the vehicle centering operation is completed.

[0007] In the above embodiments, the vehicle real-time position information is obtained by the image acquisition device, and the feature point coordinates are extracted. The lateral deviation and the angular deviation are input into the PID controller for calculation. The PID controller generates precise correction instructions based on these deviation values and controls the actuator for non-contact adjustment. Throughout the process, new deviation values are continuously obtained and corrected through closed-loop control until the preset threshold is reached, achieving high-precision vehicle centering positioning and avoiding the wear problem caused by mechanical contact.

[0008] Combined with some embodiments of the first aspect, in some embodiments, the step of calculating the vehicle correction instruction by using the PID controller according to the deviation value specifically includes: taking the lateral deviation value as the input of the lateral PID controller and adjusting the parameters of the lateral PID controller according to the absolute value of the lateral deviation value; taking the angular deviation value as the input of the angular PID controller and adjusting the parameters of the angular PID controller according to the absolute value of the angular deviation value; calculating the PID control output value according to the lateral deviation value and the angular deviation value, and performing amplitude limiting processing on the PID control output value to obtain the vehicle correction instruction.

[0009] In the above embodiments, the lateral deviation and the angular deviation are respectively input into the corresponding PID controllers, and the control parameters are dynamically adjusted according to the magnitudes of the deviation values. The lateral PID controller and the angular PID controller work together to output the correction instruction after amplitude limiting processing. This separate control strategy enables the system to handle the deviations of both position and direction simultaneously, improving the stability and precision of the centering process and reducing the mutual interference.

[0010] Combined with some embodiments of the first aspect, in some embodiments, the step of taking the lateral deviation value as the input of the lateral PID controller and adjusting the parameters of the lateral PID controller according to the absolute value of the lateral deviation value specifically includes: when the absolute value of the lateral deviation value is greater than the preset first threshold, controlling with the first PID parameters; when the absolute value of the lateral deviation value is not greater than the preset first threshold and not less than the preset second threshold, controlling with the second PID parameters; when the absolute value of the lateral deviation value is less than the preset second threshold, controlling with the third PID parameters. The proportional coefficient of the first PID parameters is greater than the proportional coefficient of the second PID parameters, the proportional coefficient of the second PID parameters is greater than the proportional coefficient of the third PID parameters, the integral coefficient of the third PID parameters is greater than the integral coefficient of the second PID parameters, the integral coefficient of the second PID parameters is greater than the integral coefficient of the first PID parameters, and the differential coefficients of the first PID parameters and the third PID parameters are greater than the differential coefficient of the second PID parameters.

[0011] In the above embodiments, the lateral PID controller automatically switches three different parameter combinations according to the magnitude of the deviation value. When the deviation is large, a large proportional coefficient is adopted for rapid response; when the deviation is moderate, a balanced parameter combination is adopted; when the deviation is small, the integral coefficient is increased to improve the accuracy. This phased parameter adjustment mechanism achieves a balance between rapid approach and precise positioning, improving the centering efficiency while ensuring the control accuracy.

[0012] In combination with some embodiments of the first aspect, in some embodiments, the step of using the angle deviation value as the input of the angle PID controller and adjusting the parameters of the angle PID controller according to the absolute value of the angle deviation value specifically includes: when the absolute value of the angle deviation value is greater than a preset third threshold, the fourth PID parameter is used for control; when the absolute value of the angle deviation value is not greater than the preset third threshold and not less than a preset fourth threshold, the fifth PID parameter is used for control; when the absolute value of the angle deviation value is less than the preset fourth threshold, the sixth PID parameter is used for control; wherein, the proportional coefficient of the fourth PID parameter is greater than the proportional coefficient of the fifth PID parameter, the proportional coefficient of the fifth PID parameter is greater than the proportional coefficient of the sixth PID parameter; the integral coefficient of the sixth PID parameter is greater than the integral coefficient of the fifth PID parameter, the integral coefficient of the fifth PID parameter is greater than the integral coefficient of the fourth PID parameter; the differential coefficient of the fourth PID parameter is greater than the differential coefficient of the fifth PID parameter, and the differential coefficient of the fourth PID parameter is greater than the differential coefficient of the sixth PID parameter.

[0013] In the above embodiments, the angle PID controller automatically switches between three control stages according to the magnitude of the angle deviation. In the large deviation stage, large proportional and differential coefficients are adopted to ensure the rapid angle adjustment ability; in the medium deviation stage, a balanced parameter configuration is adopted; in the small deviation stage, the integral coefficient is increased and the proportional coefficient is decreased to achieve precise angle positioning. This segmented parameter adjustment strategy makes the angle control both rapid and precise, improving the dynamic performance of the system.

[0014] In combination with some embodiments of the first aspect, in some embodiments, after the step of determining that the vehicle centering operation is completed when the second coordinate deviation value is less than the preset coordinate threshold, the method further includes: according to the difference in the front and rear weight distribution of the vehicle, applying the lateral deviation value and the angle deviation value to the front wheel control and the rear wheel control respectively, the proportional coefficient and the integral coefficient of the front wheel PID controller are greater than the proportional coefficient and the integral coefficient of the rear wheel PID controller, the differential coefficient of the rear wheel PID controller is greater than the differential coefficient of the front wheel PID controller, and the parameters of the front wheel PID controller and the rear wheel PID controller are obtained through the self-tuning function of the PLC. [[ID=X]] [[ID=Y]]

[0015] In the above embodiments, according to the characteristics of the vehicle's front and rear weight distribution, different PID control strategies are applied to the front wheels and rear wheels respectively. The front-wheel controller uses larger proportional and integral coefficients to ensure fast response and stability; the rear-wheel controller uses a larger differential coefficient to enhance the damping characteristics of the system. By self-tuning of the PLC to obtain the optimal parameters, the coordinated control of the front and rear wheels is achieved, improving the smoothness and accuracy of the vehicle's centering.

[0016] Combined with some embodiments of the first aspect, in some embodiments, after the step of determining that the vehicle centering operation is completed when the second coordinate deviation value is less than the preset coordinate threshold, the method further includes: based on the condition that the left front camera and the right front camera are respectively set at equal distances x1 and x2 from the central axis, the distance y1 from the left front wheel to the left front camera and the distance y2 from the right front wheel to the right front camera are collected in real time; calculate the distance s1 from the left front wheel to the central axis as s1 = x1 - y1, and calculate the distance s2 from the right front wheel to the central axis as s2 = x2 - y2; calculate the deviation value Δs = s1 - s2, and when y1 = y2, that is, Δs = 0, it means that the wheel is at the center position of the floating tray.

[0017] In the above embodiments, based on the characteristic of the equal-distance arrangement of the left and right front cameras, by measuring the distance from the wheel to the camera in real time, the deviation value from the wheel to the central axis is calculated. When the distances from the left and right wheels to the central axis are equal, it can be accurately determined that the vehicle is at the central position. This two-way distance measurement method establishes an accurate mathematical relationship of the wheel position, provides a reliable criterion for judging the completion of centering, and enhances the accuracy of positioning.

[0018] Combined with some embodiments of the first aspect, in some embodiments, after the step of determining that the vehicle centering operation is completed when the second coordinate deviation value is less than the preset coordinate threshold, the method further includes: when the floating tray and the moving platform are perpendicular, calibrate the zero point of the absolute encoder of the servo motor, divide the displacement of the motion module into positive and negative parts, and when y1 = y2, the position of the servo motor is 0; in the state where the vehicle is in neutral gear, control the speeds of all the rollers on the floating tray to be the same, so that when the left front motion module moves to the left, the front wheel moves synchronously to the left, and when the left rear motion module moves to the right, the rear wheel moves synchronously to the right.

[0019] In the above embodiments, a zero-point reference of the servo motor encoder is established at the perpendicular position of the floating tray and the moving platform, and the motion stroke is divided into positive and negative intervals. The system controls the motion module according to the distance values from the left and right wheels to the camera, realizing the differential motion of the front wheel moving to the left and the rear wheel moving to the right. This differential control mechanism based on zero-point calibration ensures the synchronous and coordinated motion of the front and rear wheels, avoids wheel slip, makes the centering process more stable and controllable, and improves the accuracy and stability of adjustment.

[0020] Second aspect, embodiments of the present application provide a PID control system, which includes: one or more processors and a memory; the memory is coupled to the one or more processors, and the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to cause the PID control system to execute the method described in the first aspect and any possible implementation manner in the first aspect.

[0021] Third aspect, embodiments of the present application provide a computer program product containing instructions. When the computer program product runs on a PID control system, it causes the PID control system to execute the method described in the first aspect and any possible implementation manner in the first aspect.

[0022] Fourth aspect, embodiments of the present application provide a computer-readable storage medium including instructions. When the instructions run on a PID control system, it causes the PID control system to execute the method described in the first aspect and any possible implementation manner in the first aspect.

[0023] It can be understood that the PID control system provided in the second aspect, the computer program product provided in the third aspect, and the computer storage medium provided in the fourth aspect are all used to execute the method provided in the embodiments of the present application. Therefore, the beneficial effects they can achieve can refer to the beneficial effects in the corresponding method, which will not be elaborated here.

[0024] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:

[0025] 1. In the present application, the vehicle real-time position information is obtained by using an image acquisition device and the feature point coordinates are extracted, and the lateral deviation and the angular deviation are input into the PID controller for calculation. The PID controller generates accurate correction instructions based on these deviation values and controls the actuator for non-contact adjustment. Throughout the process, new deviation values are continuously obtained and corrected through closed-loop control until the preset threshold is reached, achieving high-precision vehicle centering positioning and avoiding wear problems caused by mechanical contact.

[0026] 2. In the present application, the lateral deviation and the angular deviation are respectively input into the corresponding PID controllers, and the control parameters are dynamically adjusted according to the magnitude of the deviation values. The lateral PID controller and the angular PID controller work together to output correction instructions after amplitude limiting processing. This separate control strategy enables the system to handle position and direction deviations simultaneously, improving the stability and accuracy of the centering process and reducing mutual interference.

[0027] 3. In this application, the lateral deviation and the angular deviation are respectively input into the corresponding PID controllers, and the control parameters are dynamically adjusted according to the magnitude of the deviation values. The lateral PID controller and the angular PID controller work together to output a corrected command after amplitude limiting processing. This separate control strategy enables the system to handle the deviations in both position and direction simultaneously, improving the stability and accuracy of the centering process and reducing mutual interference. Description of the Drawings

[0028] Figure 1 is a schematic flowchart of implementing the PID control method for non-contact centering of a vehicle in an embodiment of this application;

[0029] Figure 2 is a schematic diagram of the hardware structure for implementing the PID control method for non-contact centering of a vehicle in an embodiment of this application;

[0030] Figure 3 is another schematic flowchart of implementing the PID control method for non-contact centering of a vehicle in an embodiment of this application;

[0031] Figure 4 is a schematic diagram of the structure of an entity device of the PID control system in an embodiment of this application. Detailed Embodiments

[0032] The terms used in the following embodiments of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. As used in the specification of this application, the singular forms "a", "an", "the above", "the", and "this" are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used in this application refers to any or all possible combinations including one or more of the listed items.

[0033] Hereinafter, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as implying or indicating relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the embodiments of this application, unless otherwise specified, the meaning of "a plurality" is two or more.

[0034] For ease of understanding, the method provided in this embodiment is described in terms of a process below. Please refer to Figure 1 , which is a schematic flowchart of implementing the PID control method for non-contact centering of a vehicle in an embodiment of this application.

[0035] S101. Obtain a real-time image of the current position of the target vehicle through an image acquisition device, and preprocess the real-time image to obtain a vehicle contour feature map.

[0036] Among them, the image acquisition device refers to an industrial camera device for acquiring images, including a left front camera, a right front camera, a left rear camera, and a right rear camera, which are fixedly installed on the centering platform and are symmetrically distributed at equal distances relative to the platform central axis; the real-time image refers to the vehicle image data captured by the industrial camera in real time; the vehicle contour feature map refers to a binary image containing the vehicle outer contour obtained after image preprocessing.

[0037] This step starts to execute after the vehicle completely enters the centering platform and stops moving. Specifically, the four industrial cameras synchronously align with the vehicle for real-time shooting to collect the original images containing vehicle position information. The collected original images are preprocessed, including image enhancement to improve image quality, noise elimination to remove interference information, edge detection to highlight the vehicle contour, etc., and finally a clear vehicle contour feature map is obtained to prepare for subsequent feature point extraction.

[0038] In some embodiments, image acquisition and preprocessing can be achieved in the following ways: Optionally, first detect the camera working state and perform parameter configuration, including setting the exposure time, gain value, etc.; then synchronously trigger the four cameras for image acquisition; perform grayscale processing on the original images to convert them into 8-bit grayscale images; use Gaussian filtering for noise elimination; finally use the Canny operator for edge detection to obtain the contour feature map. Optionally, first calibrate the camera to eliminate distortion; collect multiple images with different exposures in HDR mode and synthesize them; perform adaptive histogram equalization enhancement on the images; use morphological operations for image denoising; use the Sobel operator to extract edges to obtain the contour feature map. It can be understood that other image acquisition and preprocessing methods can also be used to obtain the vehicle contour feature map, which is not limited here.

[0039] In this non-contact vehicle centering system, the image acquisition device is equivalent to the sensor in the PID control system. The vehicle position information collected by it (presented in the form of images) will be subsequently converted into data related to the vehicle position, used to calculate the deviation value, and further provide the input basis for PID control.

[0040] S102. Extract the vehicle feature point coordinates according to the vehicle contour feature map, and calculate the first coordinate deviation value between the vehicle feature point coordinates and the preset target position coordinates. This coordinate deviation value includes the lateral deviation and the angular deviation.

[0041] Among them, the vehicle feature point coordinates refer to the spatial coordinates of the key points that can represent the vehicle position, mainly including the coordinates of the wheel center points; the preset target position coordinates refer to the standard coordinates of the ideal parking position of the vehicle on the centering platform; the coordinate deviation value refers to the difference between the actual position and the target position, including two components: the vehicle lateral displacement deviation and the vehicle body angular deviation.

[0042] This step is performed after obtaining the vehicle contour feature map. Specifically, the contour feature map is analyzed and processed to extract the coordinate values of feature points that can characterize the vehicle position, mainly the center point coordinates of the four wheels. The extracted coordinate values of the feature points are compared and calculated with the pre-calibrated target position coordinates to obtain the deviation values in the lateral and angular directions. Among them, the lateral deviation is calculated through the difference in the coordinate values of the feature points at the left and right symmetric positions, and the angular deviation is calculated through the angle between the line connecting the front and rear feature points and the central axis.

[0043] In some embodiments, the feature point extraction and deviation calculation can be achieved in the following ways: Optionally, first perform connected component analysis on the contour feature map to identify the wheel regions; then calculate the centroid of each connected component to obtain the center point coordinates of the wheels; calculate the lateral deviation s = |x1 - x2| based on the coordinate values obtained from the left and right symmetric cameras; calculate the angular deviation θ = arctan((y2 - y1) / (x2 - x1)) based on the coordinate values obtained from the front and rear cameras. Optionally, use the template matching method to locate the wheel positions; use the Hough circle transform to extract the center coordinates of the wheels; fit the central axis of the vehicle body by the least squares method; calculate the translation amount between the central axis and the standard position to obtain the lateral deviation; calculate the angle between the central axis and the standard position to obtain the angular deviation. It can be understood that other feature extraction and coordinate calculation methods can also be used to obtain the vehicle position deviation value, which is not limited here.

[0044] Let the distance from the left front camera to the central axis be x 前左定 , and the value of the distance to the left front wheel collected in real time be y 前左实 , the distance from the right front camera to the central axis be x 前右定 , and the value of the distance to the right front wheel collected in real time be y 前右实 (the same applies to the rear cameras).

[0045] When calculating the lateral deviation, taking the left and right front wheels as an example, if only considering the lateral position relationship, its lateral deviation e 横前 (here e 横前 is a quantity related to the deviation in PID control) can be expressed as:

[0046] e 横前 = (x 前左定 - y 前左实 ) - (x 前右定 - y 前右实 ), when x 前左定 = x 前右定 , e 横前 = y 前右实 - y 前左实 . This lateral deviation e 横前 (and the e 横后 calculated similarly for the rear side)It will subsequently be used as part of the input deviation of the PID controller to calculate the lateral correction command of the vehicle.

[0047] S103. Calculate the vehicle correction command using a PID controller based on the deviation value. The PID controller includes a proportional coefficient, an integral coefficient, and a derivative coefficient. The vehicle correction command includes a lateral displacement correction amount and an angle correction amount.

[0048] Among them, the PID controller refers to an automatic controller that includes three control actions: proportional, integral, and derivative. The proportional coefficient is a parameter used to adjust the response speed of the controller to the deviation. The integral coefficient is a parameter used to eliminate the steady-state error. The derivative coefficient is a parameter used to improve the dynamic performance of the system. The lateral displacement correction amount is the displacement amount output by the controller for correcting the lateral deviation of the vehicle. The angle correction amount is the rotation amount output by the controller for correcting the angle deviation of the vehicle.

[0049] This step is executed after obtaining the vehicle position deviation value. Specifically, the system controls the front wheels and rear wheels using PID controllers with different parameters according to the difference in the front and rear weight distributions of the vehicle. For the front-wheel PID controller, since the front part of the vehicle is heavier, its proportional coefficient and integral coefficient need to be greater than the corresponding parameters of the rear-wheel PID controller. The derivative coefficient of the rear-wheel PID controller is greater than that of the front-wheel PID controller to ensure the smoothness of the control process. The controller outputs the corresponding correction command through PID operation based on the input lateral deviation and angle deviation.

[0050] In some embodiments, the calculation of the correction command of the PID controller can be implemented in various ways: Optionally, first input the lateral deviation to the lateral PID controller, select different PID parameter combinations according to the deviation magnitude, use a larger proportional coefficient and a smaller integral coefficient when the deviation is large, and use a smaller proportional coefficient and a larger integral coefficient when the deviation is small. Then input the angle deviation to the angle PID controller for similar processing. Finally, weight and combine the outputs of the two controllers to obtain the final correction command. Optionally, use the PID self-tuning function of the PLC, obtain the optimal PID parameters through multiple tests, input the lateral deviation and angle deviation to the corresponding PID modules respectively, perform amplitude limiting processing on the PID output to ensure safety, and finally convert the processed output into specific displacement and angle correction amounts. It can be understood that other control algorithms can also be used to implement the correction calculation of the vehicle position, which is not limited here.

[0051] In a digital PID control system, a discretized PID control algorithm is usually adopted. The formula of the position-type PID control algorithm is: U(k)=K_P*e(k)+K_I*∑(i = 0 to k)e(i)+K_D*[e(k)-e(k - 1)], where U(k) is the output of the PID controller at the k-th sampling moment; e(k) is the deviation value at the k-th sampling moment; e(k - 1) is the deviation value at the (k - 1)-th sampling moment. The formula of the incremental PID control algorithm is: ΔU(k)=K_P*[e(k)-e(k - 1)]+K_I*e(k)+K_D*[e(k)-2*e(k - 1)+e(k - 2)], where ΔU(k) is the output increment at the k-th sampling moment.

[0052] In this system, the lateral deviation e 横(k) and the angular deviation e 角(k) are respectively input into the corresponding PID controllers for calculation. For the lateral PID controller, the position-type PID algorithm is used to calculate the lateral displacement correction amount U 横 (k): U 横 (k)=K P横 *e 横 (k)+K I横 *∑(i = 0 to k)e 横 (i)+K D横 *[e 横 (k)-e 横 (k - 1)], for the angular PID controller, the position-type PID algorithm is used to calculate the angular correction amount U 角 (k): U 角 (k)=K P角 *e 角 (k)+K I角 *∑(i = 0 to k)e 角 (i)+K D角 *[e 角 (k)-e 角 (k - 1)].

[0053] S104. Send the vehicle correction instruction to the actuator and obtain the second coordinate deviation value.

[0054] Among them, the actuator refers to the servo motor and its related mechanical components for executing the correction instruction; the second coordinate deviation value refers to the vehicle position deviation value re-measured after the correction action.

[0055] This step is executed after the correction instruction is calculated. Specifically, the lateral displacement correction amount and the angular correction amount are converted into motion control instructions for the servo motor and sent to the corresponding actuators through the communication interface. The left front motion module controls the front wheels to move to the left, and the left rear motion module controls the rear wheels to move to the right, and the position adjustment is synchronously performed when the vehicle is in neutral gear. After the adjustment is completed, the system re-obtains the vehicle position information through the image acquisition device and calculates a new coordinate deviation value.

[0056] In some embodiments, the execution of the correction instruction and the acquisition of the deviation can be achieved in various ways: Optionally, first convert the correction instruction into a position control instruction for the servo motor; control the servo motor to run to the specified position according to the set acceleration and speed; trigger the camera to perform image acquisition after the movement is completed; calculate the updated deviation value based on the newly acquired image. Optionally, convert the correction amount into a displacement instruction for the motion module through the PLC; monitor the operating state of the servo motor to ensure safety; acquire new position information after the movement is completed and the system is stable; calculate the updated lateral deviation and angular deviation values. It can be understood that other ways can also be adopted to implement the execution of the correction instruction and the update of the deviation value, which are not limited herein.

[0057] When sending the vehicle correction instruction to the actuator, clearly use the previously calculated lateral displacement correction amount U 横 (k) and the angular correction amount U 角 (k). After the adjustment is completed, the system re-obtains the vehicle position information through the image acquisition device and calculates a new coordinate deviation value according to the method in S102, that is, the second coordinate deviation value. The new lateral deviation is denoted as e 横新 (k + 1) and the angular deviation is denoted as e 角新 (k + 1). These two new deviation values will be used as the input for the next PID control calculation to continue the adjustment of the vehicle position until the centering condition is met.

[0058] S105. When the second coordinate deviation value is less than the preset coordinate threshold, it is determined that the vehicle centering operation is completed.

[0059] Among them, the preset coordinate threshold refers to the maximum position deviation value allowed by the system, which is used to judge whether the vehicle has completed the centering operation; the second coordinate deviation value refers to the vehicle position deviation value measured after the correction action is performed, including the new lateral deviation and angular deviation; the vehicle centering operation refers to the process of making the vehicle stop at the center position of the centering platform through the control system.

[0060] This step is executed after obtaining the second coordinate deviation value. Specifically, the system records the equal distances from the left front camera and the right front camera to the central axis as x1 and x2 respectively, and real-time collects the distance y1 from the left front wheel to the left front camera and the distance y2 from the right front wheel to the right front camera. Calculate the distance s1 from the left front wheel to the central axis as s1 = x1 - y1, calculate the distance s2 from the right front wheel to the central axis as s2 = x2 - y2, and obtain the deviation value Δs = s1 - s2. When y1 = y2, that is, Δs = 0, it means that the wheel is at the center position of the floating disk, and the system determines that the centering operation is completed.

[0061] In some embodiments, the judgment of centering completion can be achieved in various ways: Optionally, first substitute the obtained y1 and y2 values into the formula to calculate s1 and s2; then calculate the difference Δs and compare it with a preset threshold; if Δs is less than the threshold, send a centering completion signal to the PLC; at the same time, compare the servo motor position value with the zero point for confirmation; finally, output the centering completion status and stop the operation of relevant devices. Optionally, calculate the absolute values of the lateral deviation and the angular deviation respectively; compare the two deviation values with their respective preset thresholds; when both deviation values are less than the threshold, it is determined that centering is completed; the system records the final position parameters and locks the position; the controller switches to the waiting state to prepare for the next centering. It can be understood that other methods can also be used to achieve the judgment of centering completion status, which is not limited here.

[0062] Combined with the relevant content of PID control, when judging centering completion, not only the currently measured coordinate deviation but also the stability of PID control needs to be considered. After the vehicle reaches a position deviation less than the preset threshold, it is necessary to continuously monitor for a certain period of time (such as several sampling periods) to ensure that the deviation remains within the threshold range during this period to prevent misjudgment caused by system fluctuations. For example, for n consecutive sampling periods (n can be set according to the actual system stability, generally taking values from 3 to 5), the lateral deviation e 横新 (k + j) (j = 1, 2,..., n) and the angular deviation e 角新 (k + j) are both less than their respective preset thresholds e_horizontal threshold and e_angular threshold, and then the centering operation is finally determined to be completed. In actual calculations, in addition to using the camera to measure the distance to calculate the deviation, the position information fed back by the servo motor encoder can also be combined for further confirmation. Assume that the theoretical position of the servo motor driving the motion module to move is P_theory, and the actual feedback position is P_actual. When judging centering, it is necessary to ensure that |P_theory - P_actual| is less than the error range P_error allowed by the motor position accuracy, and at the same time meet the condition that the coordinate deviation is less than the threshold, so as to enhance the accuracy of centering judgment.

[0063] The following further analyzes the hardware structure and components of the method provided in this embodiment. Please refer to Figure 2 , which is the hardware structure diagram for implementing the non-contact centering PID control method of the vehicle in the embodiment of the present application.

[0064] In Figure 2 it, part (a) is the overall architecture of the centering platform for realizing non-contact centering of the vehicle. There are 4 single-wheel centering components in the centering platform. The 4 single-wheel centering components are symmetrically distributed at equal distances from the center line of the centering platform. Among them, the two floating disks in the lower left part respectively carry the left front wheel and the left rear wheel, and the two floating disks in the upper right part respectively carry the right front wheel and the right rear wheel.

[0065] Part (b) is the single-wheel centering component. ① is a red camera, with two pairs in total, fixedly installed symmetrically at equal distances from the center line of the centering platform, and is used to measure the distance from the camera to the wheel. ② is a floating turntable, with 4 in total, symmetrically distributed at equal distances from the platform center line, and carries the wheel and its steering. The two floating disks in the lower left part carry the left front and rear wheels, including parts ④ and ⑤; the two floating disks in the upper right part carry the right front and rear wheels, and only ④, which is the driven floating disk of the left wheel floating disk. ③ is a swing mechanism, composed of ⑥, ⑦, and ⑧, which drives the wheels on the floating disk to move left and right. The two floating disks in the upper right part do not have this structure. ④ is a roller, with two on each floating disk, and the wheel is located between them, assisting the wheel to move left and right. ⑤ is the end of the floating disk, connecting the swing mechanism. ⑥ is a motion module, connecting ⑤, locking the floating disk and driving it to move left and right. ⑦ is the motion platform of ⑥. When ② is perpendicular to ③, its length is evenly divided. ⑧ is a servo motor, providing power and position control capabilities for the centering function, and is equipped with an absolute encoder.

[0066] Next, a more specific process description of the method provided in this embodiment will be given. Please refer to Figure 3 which is another process schematic diagram of the PID control method for realizing non-contact centering of the vehicle in the embodiment of the present application.

[0067] S301. Obtain a real-time image of the current position of the target vehicle through an image acquisition device, and preprocess the real-time image to obtain a vehicle contour feature map.

[0068] The image acquisition device refers to four industrial cameras fixedly installed on the centering platform, including the left front side camera, the right front side camera, the left rear side camera, and the right rear side camera; the real-time image refers to the vehicle image data captured in real time by the industrial camera; the vehicle contour feature map refers to the binary image containing the vehicle external contour obtained after image preprocessing. After the vehicle completely enters the centering platform, the four industrial cameras synchronously align with the vehicle and perform real-time shooting to collect the original image. The collected original image is preprocessed, including image enhancement to improve the image quality, noise elimination to remove interference information, edge detection to highlight the vehicle contour, and other processing steps. The image is converted into an 8-bit grayscale image through grayscale processing, Gaussian filtering is used for noise elimination, and the Canny operator is used for edge detection. Finally, a clear vehicle contour feature map is obtained to prepare for subsequent feature point extraction.

[0069] S302. Extract the vehicle feature point coordinates according to the vehicle contour feature map, and calculate the first coordinate deviation value between the vehicle feature point coordinates and the preset target position coordinates. This coordinate deviation value includes the lateral deviation and the angular deviation.

[0070] The vehicle feature point coordinates represent the spatial position information of the wheel center point; the preset target position coordinates refer to the ideal parking position of the vehicle on the centering platform; the coordinate deviation value represents the difference between the actual position and the target position. After obtaining the vehicle contour feature map, perform connected component analysis on the image to identify the wheel area, and calculate the centroid of each connected component to obtain the wheel center point coordinates. Calculate the lateral deviation based on the coordinate values obtained by the left and right symmetric cameras. Specifically, by calculating the distance y1 from the left front wheel to the left front camera and the distance y2 from the right front wheel to the right front camera, we get s1 = x1 - y1 and s2 = x2 - y2, where x1 and x2 are the distances from the cameras to the center axis. The lateral deviation is Δs = s1 - s2. The angular deviation is obtained by calculating the angle θ = arctan((y2 - y1) / (x2 - x1)) between the line connecting the front and rear wheels and the center axis.

[0071] S303. When the absolute value of the lateral deviation value is greater than the preset first threshold, use the first PID parameter for control.

[0072] The lateral deviation value represents the distance difference between the actual lateral position of the vehicle and the target position; the preset first threshold is the standard value for judging the magnitude of the lateral deviation; the first PID parameter is the control parameter group for large deviation correction. When the absolute value of the calculated lateral deviation value is greater than the preset first threshold, it indicates that the vehicle position deviates far from the target and a larger control force is required for correction. At this time, select the first PID parameter group for control. The characteristics of this parameter group are that the proportional coefficient is larger to provide a stronger correction force, the integral coefficient is smaller to avoid large cumulative errors, and the differential coefficient is larger to provide sufficient dynamic response ability. Through the cooperation of this group of parameters, ensure that the vehicle can be quickly adjusted to near the target position in the case of large deviation.

[0073] S304. When the absolute value of the lateral deviation value is not greater than the preset first threshold and not less than the preset second threshold, use the second PID parameter for control.

[0074] The lateral deviation value represents the distance difference between the actual lateral position of the vehicle and the target position; the preset first threshold and the preset second threshold are respectively the upper and lower limits for judging that the lateral deviation is in the medium range; the second PID parameter refers to the control parameter group for medium deviation correction. When the absolute value of the calculated lateral deviation value is between the first threshold and the second threshold, it indicates that the vehicle position is in the transition region and a moderate control force is required for correction. At this time, the second PID parameter group is selected for control. The characteristics of this parameter group are that the proportional coefficient is moderate to provide an appropriate correction force, the integral coefficient is moderate to gradually eliminate the steady-state error, and the differential coefficient is small to ensure the stability of the system. Through the cooperation of this group of parameters, the vehicle approaches the target position smoothly.

[0075] S305. When the absolute value of the lateral deviation value is less than the preset second threshold, the third PID parameter is used for control. The proportional coefficient of the first PID parameter is greater than that of the second PID parameter, the proportional coefficient of the second PID parameter is greater than that of the third PID parameter, the integral coefficient of the third PID parameter is greater than that of the second PID parameter, the integral coefficient of the second PID parameter is greater than that of the first PID parameter, and the differential coefficients of the first PID parameter and the third PID parameter are greater than that of the second PID parameter.

[0076] The preset second threshold refers to the standard value for judging that the lateral deviation is small; the third PID parameter refers to the control parameter group for precise small deviation correction. To achieve the optimal control effect under different deviation ranges, the magnitude relationships of the three groups of PID parameters are clearly defined: the proportional coefficient decreases in the order of the first group > the second group > the third group, the integral coefficient decreases in the order of the third group > the second group > the first group, and the differential coefficients of the first group and the third group are greater than that of the second group. When the absolute value of the lateral deviation value is less than the second threshold, it indicates that the vehicle is already close to the target position. At this time, the third PID parameter group is used for precise control. The characteristics of the third group of parameters are that the proportional coefficient is the smallest to avoid overcorrection, the integral coefficient is the largest to eliminate small steady-state errors, and the relatively large differential coefficient is used to provide sufficient dynamic response to ensure that the vehicle can stop precisely at the target position.

[0077] S306. When the absolute value of the angle deviation value is greater than the preset third threshold, the fourth PID parameter is used for control.

[0078] The angle deviation value represents the angle between the vehicle axis and the standard position axis; the preset third threshold is the standard value for judging a large angle deviation; the fourth PID parameter is the control parameter group for large angle deviation correction. When the absolute value of the calculated angle deviation value is greater than the preset third threshold, it indicates that there is a large angle deviation between the vehicle and the standard position, and a large-amplitude angle correction is required. At this time, the fourth PID parameter group is selected for control. The characteristics of this parameter group are that the proportional coefficient is the largest to provide a strong correction force, the integral coefficient is the smallest to avoid large cumulative errors, and the differential coefficient is the largest to provide fast dynamic response ability. Through the cooperation of this group of parameters, it is ensured that the vehicle can be quickly adjusted to a near-standard angle in the case of large angle deviation.

[0079] S307. When the absolute value of the angle deviation value is not greater than the preset third threshold and not less than the preset fourth threshold, the fifth PID parameter is used for control.

[0080] The angle deviation value represents the angle between the vehicle axis and the standard position axis; the preset third threshold and the preset fourth threshold are the upper and lower limits for judging that the angle deviation is in the medium range respectively; the fifth PID parameter is the control parameter group for medium angle deviation correction. When the absolute value of the calculated angle deviation value is between the third threshold and the fourth threshold, it indicates that the vehicle angle is in the transition region, and a moderate control force is required for correction. At this time, the fifth PID parameter group is selected for control. The characteristics of this parameter group are that the proportional coefficient is moderate to provide an appropriate correction force, the integral coefficient is moderate to gradually eliminate the steady-state error, and the differential coefficient is small to ensure the stability of the system. Through the cooperation of this group of parameters, the vehicle angle is adjusted smoothly towards the standard angle.

[0081] S308. When the absolute value of the angle deviation value is less than the preset fourth threshold, the sixth PID parameter is used for control. The proportional coefficient of the fourth PID parameter is greater than that of the fifth PID parameter, and the proportional coefficient of the fifth PID parameter is greater than that of the sixth PID parameter; the integral coefficient of the sixth PID parameter is greater than that of the fifth PID parameter, and the integral coefficient of the fifth PID parameter is greater than that of the fourth PID parameter; the differential coefficient of the fourth PID parameter is greater than that of the fifth PID parameter, and the differential coefficient of the fourth PID parameter is greater than that of the sixth PID parameter.

[0082] The preset fourth threshold refers to the standard value for judging a small angle deviation; the sixth PID parameter refers to the control parameter group for precise correction of small angle deviations. When the absolute value of the angle deviation value is less than the fourth threshold, it indicates that the vehicle angle is already close to the standard position. At this time, the sixth PID parameter group is used for precise control. The characteristics of the sixth group of parameters are that the proportional coefficient is the smallest to avoid overcorrection, the integral coefficient is the largest to eliminate small steady-state errors, and the smaller derivative coefficient is used to provide a smooth dynamic response to ensure that the vehicle can accurately align with the standard angle. At this stage, the system mainly focuses on the precise adjustment of the angle to avoid the back-and-forth oscillation caused by overcorrection.

[0083] The fourth, fifth, and sixth PID parameter groups respectively correspond to the control parameters for large, medium, and small angle deviation ranges. The size relationship settings of these three groups of parameters follow the following rules: the proportional coefficient decreases in the order of the fourth group > the fifth group > the sixth group, so as to provide a strong correction force when the angle deviation is large and gradually reduce the correction force as the deviation decreases; the integral coefficient decreases in the order of the sixth group > the fifth group > the fourth group, so as to provide a strong steady-state error elimination ability when approaching the target angle; the derivative coefficient of the fourth group is the largest and is greater than the fifth group and the sixth group, so as to provide a fast dynamic response when the angle deviation is large and reduce the response speed when the deviation is medium or small to ensure stability. Through this parameter configuration, the optimal control effect under different angle deviation ranges is achieved.

[0084] S309. Calculate the PID control output value according to the lateral deviation value and the angle deviation value, and perform a limit processing on the PID control output value to obtain a vehicle correction instruction. The PID controller includes a proportional coefficient, an integral coefficient, and a derivative coefficient, and the vehicle correction instruction includes a lateral displacement correction amount and an angle correction amount.

[0085] The PID control output value represents the original control amount calculated by the controller according to the deviation; the limit processing refers to the process of limiting the control amount exceeding the safe range within the allowable range; the vehicle correction instruction refers to the instruction signal that can be directly used to control the actuator after processing. The lateral PID controller calculates the lateral deviation using the selected parameter group, where the proportional term output is Kpe(t), the integral term output is Ki∫e(t)dt, and the derivative term output is Kd*de(t) / dt, and e(t) is the lateral deviation value. The angle PID controller performs a similar calculation on the angle deviation. Compare the output values of the two controllers with the preset limit values respectively. When the output exceeds the limit value, limit it within the safe range. The finally obtained lateral displacement correction amount and angle correction amount constitute a complete vehicle correction instruction.

[0086] S310. Send the vehicle correction instruction to the actuator and obtain the second coordinate deviation value.

[0087] The actuator refers to the servo motor and its related mechanical components used to achieve vehicle position adjustment; the second coordinate deviation value refers to the vehicle position deviation value re-measured after performing the correction action. The system converts the lateral displacement correction amount and the angle correction amount into motion control commands for the servo motor and sends them to the actuator through the communication interface. After receiving the commands, the left front motion module controls the front wheels to move to the left, and the left rear motion module controls the rear wheels to move to the right to synchronously adjust the position when the vehicle is in neutral. After the adjustment is completed, the system re-obtains the vehicle position information through the image acquisition device, calculates the new lateral deviation and angle deviation values, and obtains the second coordinate deviation value.

[0088] S311. When the second coordinate deviation value is less than the preset coordinate threshold, it is determined that the vehicle centering operation is completed.

[0089] The preset coordinate threshold represents the maximum position deviation value allowed by the system; the second coordinate deviation value includes the new lateral deviation and angle deviation; the vehicle centering operation refers to the process of making the vehicle park at the center position of the centering platform through the control system. The system respectively records the equal distances from the left front camera and the right front camera to the central axis as x1 and x2, and real-time collects the distance y1 from the left front wheel to the left front camera and the distance y2 from the right front wheel to the right front camera. Calculate the distance s1 from the left front wheel to the central axis as s1 = x1 - y1, calculate the distance s2 from the right front wheel to the central axis as s2 = x2 - y2, and obtain the deviation value Δs = s1 - s2. When the newly calculated lateral deviation and angle deviation are both less than their respective preset thresholds, it indicates that the vehicle has accurately parked at the target position, and the system determines that the centering operation is completed.

[0090] S312. According to the difference in the front and rear weight distribution of the vehicle, apply the lateral deviation value and the angle deviation value to the front wheel control and the rear wheel control respectively. The proportional coefficient and integral coefficient of the front wheel PID controller are greater than those of the rear wheel PID controller, the differential coefficient of the rear wheel PID controller is greater than that of the front wheel PID controller, and the parameters of the front wheel PID controller and the rear wheel PID controller are obtained through the self-tuning function of the PLC.

[0091] The front-wheel PID controller and the rear-wheel PID controller respectively represent independent controllers for controlling the front wheels and rear wheels of a vehicle; the proportional coefficient represents the response speed of the controller to the deviation; the integral coefficient represents the ability to eliminate the steady-state error; the derivative coefficient represents the degree of improvement of the system's dynamic characteristics; the PLC self-tuning function refers to the function of the programmable controller to obtain the optimal PID parameters through automatic testing. Since the weight of the front part of the vehicle is relatively large, its inertia and friction are both greater than those of the rear part, so the front-wheel controller adopts larger proportional and integral coefficients to provide a stronger control effect, while the rear-wheel controller adopts a larger derivative coefficient to improve the dynamic response ability. Through the self-tuning function of the PLC, the system automatically adjusts the parameter values during multiple tests and finally determines the optimal parameter combination for the front and rear-wheel controllers.

[0092] S313. Under the condition that the distances from the left front camera and the right front camera to the central axis are respectively set as equal distances x1 and x2, the distance y1 from the left front wheel to the left front camera and the distance y2 from the right front wheel to the right front camera are collected in real time.

[0093] The left front camera and the right front camera respectively represent industrial cameras installed on the left and right sides of the centering platform; the central axis represents the central reference line of the centering platform; the distances x1 and x2 represent the fixed distances from the two cameras to the central axis; the distances y1 and y2 represent the real-time distances from the two front wheels to the corresponding cameras. During the centering operation of the system, images are synchronously collected by the left front camera and the right front camera, and the position information of the left front wheel and the right front wheel is extracted after image processing. Since the installation positions of the two cameras are symmetric with respect to the central axis, that is, x1 = x2, this provides a reference for subsequent calculation of the wheel position deviation. The system measures the distance y1 from the left front wheel to the left front camera and the distance y2 from the right front wheel to the right front camera in real time, and these two distance values are updated in real time as the vehicle position changes.

[0094] S314. Calculate the distance s1 from the left front wheel to the central axis as s1 = x1 - y1, and calculate the distance s2 from the right front wheel to the central axis as s2 = x2 - y2.

[0095] s1 and s2 respectively represent the actual distances from the left front wheel and the right front wheel to the central axis. After obtaining the fixed distances x1, x2 from the cameras to the central axis and the real-time distances y1, y2 from the wheels to the cameras, the system calculates the actual distances from the wheels to the central axis through a simple subtraction operation. The specific calculation method is: the distance s1 from the left front wheel to the central axis is equal to the distance x1 from the left front camera to the central axis minus the distance y1 from the left front wheel to the left front camera, that is, s1 = x1 - y1; similarly, the distance s2 from the right front wheel to the central axis is equal to the distance x2 from the right front camera to the central axis minus the distance y2 from the right front wheel to the right front camera, that is, s2 = x2 - y2. This calculation method is simple and intuitive, facilitating real-time processing.

[0096] S315. Calculate the deviation value Δs = s1 - s2. When y1 = y2, that is, Δs = 0, it indicates that the wheel is at the center position of the floating plate.

[0097] The deviation value Δs represents the difference in the distances from the left front wheel and the right front wheel to the central axis; y1 and y2 respectively represent the distances from the left front wheel to the left front camera and from the right front wheel to the right front camera; the floating plate is a movable platform used to support and move the wheels. The system subtracts the calculated s1 and s2 to obtain the deviation value Δs = s1 - s2. When the distance y1 from the left front wheel to the left front camera is equal to the distance y2 from the right front wheel to the right front camera, according to the previous calculations, s1 = x1 - y1 and s2 = x2 - y2. Since x1 = x2, at this time s1 = s2, so Δs = 0. In this case, the left front wheel and the right front wheel are symmetrically distributed on both sides of the central axis, indicating that the vehicle has been accurately positioned at the center of the floating plate. This symmetrical positioning ensures that the vehicle is evenly stressed during the subsequent lifting process, preventing the vehicle from tilting or shifting during lifting, and ensuring the safety and accuracy of the maintenance operation.

[0098] S316. When the floating plate and the moving platform are perpendicular, calibrate the zero point of the absolute encoder of the servo motor, divide the displacement of the motion module into positive and negative parts, and when y1 = y2, the position of this servo motor is 0.

[0099] The floating plate and the moving platform refer to the mechanical components used to support and move the wheels; the absolute encoder of the servo motor is a sensor used to accurately record the position of the motor; the motion module is the overall mechanism including the servo motor and the transmission mechanism. During the system installation and commissioning stage, first ensure that the floating plate and the moving platform are perpendicular, which is the benchmark condition for calibration. Set the zero point of the encoder at the center position of the floating plate, that is, the position when y1 = y2. Then divide the total stroke range of the motion module into a positive displacement and a negative displacement with the zero point as the center, so that the motion module can move symmetrically on both sides of the zero point. Through this calibration method, the system establishes an accurate position reference, which not only facilitates the control system to monitor and adjust the vehicle position in real time, but also ensures that the vehicle always remains within a safe motion range during the centering process, avoiding faults such as mechanical interference or overtravel.

[0100] S317. In the state where the vehicle is in neutral gear, control the speeds of all the rollers on the floating plate to be the same, so that when the left front motion module moves to the left, the front wheels move to the left synchronously, and when the left rear motion module moves to the right, the rear wheels move to the right synchronously.

[0101] The left front motion module and the left rear motion module respectively represent the actuators that control the movement of the front wheels and the rear wheels; the vehicle in neutral state means that the vehicle transmission is in the neutral position so that the wheels can rotate freely. When performing the centering adjustment, first confirm that the vehicle is in neutral to ensure that the wheels can move freely. The system controls the speeds of all the rollers on the floating plate to be the same. When the left front motion module moves to the left, the front wheels move to the left synchronously. When the left rear motion module moves to the right, the rear wheels move to the right synchronously. This opposite-direction movement mode can not only achieve the lateral displacement and angle adjustment of the vehicle, but also, due to the synchronous control, ensure that the moving speeds of the front and rear wheels are coordinated, avoiding position deviation caused by asynchronous movement. At the same time, this movement mode can also minimize the stress on the vehicle chassis, prevent any damage to the vehicle during the adjustment process, and improve the safety and reliability of the centering system.

[0102] In some embodiments, the following steps may further be included:

[0103] Before the start of the centering process, obtain the initial tire pressure value P0 and the ambient temperature T0 detected by the TPMS system, and use this pressure value as the reference value; collect the TPMS sensor data in real time through the CAN bus to obtain the real-time pressure value P1 and temperature value T1 during the centering process; use the difference ΔP between the real-time pressure value P1 and the reference value P0 as the judgment basis, where ΔP = P1 - P0;

[0104] When it is detected that the pressure change rate dp / dt exceeds the preset threshold K1, that is, dp / dt > K1, it is determined that the wheel is about to slip, where dp / dt = ΔP / Δt, and Δt is the sampling time interval; at this time, the controller executes the anti-slip measures: first reduce the output torque to 65% of the current value, and at the same time reduce the torque rise rate to 50% of the standard value until the pressure change rate drops back to the normal range;

[0105] When it is detected that the fluctuation amplitude ΔP of the pressure value within the period T is greater than the preset threshold K2 and the number of fluctuations n is greater than the preset value N, it is determined that the wheel is in a blocked state; at this time, the controller switches to the pulse torque output mode, where the pulse period is synchronized with the detected pressure fluctuation period T, and the pulse torque amplitude gradually increases until it is detected that the wheel successfully crosses the blocked point;

[0106] The system further includes a temperature compensation mechanism: based on the temperature change ΔT = T1 - T0 detected by the temperature sensor, calculate the pressure change amount ΔPt caused by the temperature, and subtract ΔPt from the actual pressure change amount ΔP to obtain the corrected pressure change amount ΔP', improving the accuracy of abnormal judgment;

[0107] The controller also establishes a pressure data feature library: it records the pressure change curve characteristics and corresponding road conditions during each alignment process, and obtains typical pressure change patterns under different working conditions through cluster analysis. When a new alignment task is started, it matches the most similar historical pattern based on the initial pressure change trend, adjusts the alignment parameters in advance, and achieves proactive prevention.

[0108] In some embodiments, the following steps may also be included:

[0109] Before alignment begins, the motor is controlled to output a series of increasing torque pulses, with the pulse amplitude gradually increasing from 20% to 80% of the initial torque value, and each pulse lasting 100ms. The displacement sensor data corresponding to each pulse is collected to obtain a displacement response curve. The safe torque threshold is determined by calculating the slope change of the displacement response curve.

[0110] The system implements wave-like centering control: the output torque fluctuates within a safety threshold according to a preset waveform, with the fluctuation amplitude initially set at ±15% of the safe torque. When the displacement sensor detects an abnormal response, the controller rolls back the torque to the last stable point and simultaneously records the torque and displacement values at the time of the abnormality trigger.

[0111] Establish an alignment parameter database: This records the trial results of each alignment process, including safe torque thresholds, optimal fluctuation amplitudes, and displacement response characteristics. For alignment tasks of the same type of vehicle under similar operating conditions, the system uses historical parameters as initial values and verifies the parameter validity through short-term trials.

[0112] When a wheel abnormality is detected, the controller calculates the optimal escape parameters based on historical trial data; controls the motor to output according to the calculated optimal torque and timing until the abnormality is handled; if the first escape is unsuccessful, the system automatically adjusts the escape parameters and re-executes it, and records the final successful parameter combination.

[0113] The following describes the PID control system in the embodiment of the present invention from the perspective of hardware processing. Figure 4 , which is a schematic diagram of the structure of a physical device of the PID control system in an embodiment of the present application.

[0114] It should be noted that Figure 4 The structure of the PID control system shown is only an example and should not limit the functions and scope of use of the embodiments of the present invention.

[0115] like Figure 4As shown, the PID control system includes a Central Processing Unit (CPU) 401, which can perform various appropriate actions and processes according to the program stored in the Read-Only Memory (ROM) 402 or the program loaded from the storage section 408 into the Random Access Memory (RAM) 403, such as executing the method described in the above embodiments. In the RAM 403, various programs and data required for system operation are also stored. The CPU 401, ROM 402, and RAM 403 are connected to each other via a bus 404. An Input / Output (I / O) interface 405 is also connected to the bus 404.

[0116] The following components are connected to the I / O interface 405: an input section 406 including an audio input device, a button switch, etc.; an output section 407 including a Liquid Crystal Display (LCD), an audio output device, an indicator light, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the I / O interface 405 as needed. A removable medium 411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 410 as needed so that a computer program read from it can be installed into the storage section 408 as needed.

[0117] Specifically, according to an embodiment of the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication section 409, and / or installed from the removable medium 411. When the computer program is executed by the Central Processing Unit (CPU) 401, various functions defined in the present invention are executed.

[0118] It should be noted that specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fibers, portable compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In the present invention, a computer-readable storage medium can be any tangible medium that contains or stores a program, which can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0119] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present invention. Among them, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, and the above-mentioned module, program segment, or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than that marked in the accompanying drawings.

[0120] Specifically, the PID control system of this embodiment includes a processor and a memory. A computer program is stored on the memory. When the computer program is executed by the processor, it implements the PID control method for realizing non-contact centering of a vehicle provided in the above embodiment.

[0121] On the other hand, the present invention also provides a computer-readable storage medium, which may be included in the PID control system described in the above embodiment; or it may exist separately without being assembled into the PID control system. The above storage medium carries one or more computer programs. When the above one or more computer programs are executed by a processor of a PID control system, the PID control system is enabled to implement the PID control method for realizing non-contact centering of a vehicle provided in the above embodiment.

[0122] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the various embodiments of the present application.

[0123] As used in the foregoing embodiments, depending on the context, the term "when" may be interpreted to mean "if" or "after" or "in response to determining" or "in response to detecting". Similarly, depending on the context, the phrase "upon determining" or "if (the stated condition or event) is detected" may be interpreted to mean "if determined" or "in response to determining" or "when (the stated condition or event) is detected" or "in response to detecting (the stated condition or event)".

[0124] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the foregoing embodiments can be implemented by a computer program instructing relevant hardware. The program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the foregoing method embodiments. The foregoing storage media include: various media such as ROM or random access memory RAM, magnetic disks, or optical discs that can store program codes.

Claims

1. A PID control method for realizing non-contact centering of a vehicle, characterized in that, Applied to a PID control system, the PID control system includes an image acquisition device and a motion platform. The image acquisition device represents an industrial camera device for acquiring images, including a left front camera, a right front camera, a left rear camera, and a right rear camera. A target vehicle is placed on the motion platform and an actuator is provided. The motion platform refers to a mechanism component for supporting and moving wheels. The method includes: Obtain a real-time image of the current position of the target vehicle through the image acquisition device, and preprocess the real-time image to obtain a vehicle contour feature map; Extract the vehicle feature point coordinates according to the vehicle contour feature map, and calculate a first coordinate deviation value between the vehicle feature point coordinates and the preset target position coordinates. The coordinate deviation value includes a lateral deviation value and an angular deviation value; Calculate a vehicle correction instruction using a PID controller according to the deviation value. The PID controller includes a proportional coefficient, an integral coefficient, and a derivative coefficient. The vehicle correction instruction includes a lateral displacement correction amount and an angular correction amount; Send the vehicle correction instruction to the actuator and obtain a second coordinate deviation value; When the second coordinate deviation value is less than a preset coordinate threshold, determine that the vehicle centering operation is completed; According to the difference in the front and rear weight distribution of the vehicle, apply the lateral deviation value and the angular deviation value to the front-wheel control and the rear-wheel control respectively. The proportional coefficient and the integral coefficient of the front-wheel PID controller are greater than those of the rear-wheel PID controller, and the derivative coefficient of the rear-wheel PID controller is greater than that of the front-wheel PID controller. The parameters of the front-wheel PID controller and the rear-wheel PID controller are obtained through the self-tuning function of the PLC.

2. The method according to claim 1, characterized in that The step of calculating the vehicle correction instruction using a PID controller according to the deviation value specifically includes: Take the lateral deviation value as the input of the lateral PID controller, and adjust the parameters of the lateral PID controller according to the absolute value of the lateral deviation value; Take the angular deviation value as the input of the angular PID controller, and adjust the parameters of the angular PID controller according to the absolute value of the angular deviation value; Calculate a PID control output value according to the lateral deviation value and the angular deviation value, and perform a limiting process on the PID control output value to obtain the vehicle correction instruction.

3. The method according to claim 2, wherein The step of taking the lateral deviation value as the input of the lateral PID controller and adjusting the parameters of the lateral PID controller according to the absolute value of the lateral deviation value specifically includes: When the absolute value of the lateral deviation value is greater than a preset first threshold, control using the first PID parameter; When the absolute value of the lateral deviation value is not greater than the preset first threshold and not less than a preset second threshold, control using the second PID parameter; When the absolute value of the lateral deviation value is less than the preset second threshold, the third PID parameter is used for control. The proportional coefficient of the first PID parameter is greater than that of the second PID parameter, the proportional coefficient of the second PID parameter is greater than that of the third PID parameter, the integral coefficient of the third PID parameter is greater than that of the second PID parameter, the integral coefficient of the second PID parameter is greater than that of the first PID parameter, and the derivative coefficients of the first PID parameter and the third PID parameter are greater than that of the second PID parameter.

4. The method according to claim 2, characterized in that, The step of using the angle deviation value as the input of the angle PID controller and adjusting the parameters of the angle PID controller according to the absolute value of the angle deviation value specifically includes: When the absolute value of the angle deviation value is greater than the preset third threshold, the fourth PID parameter is used for control; When the absolute value of the angle deviation value is not greater than the preset third threshold and not less than the preset fourth threshold, the fifth PID parameter is used for control; When the absolute value of the angle deviation value is less than the preset fourth threshold, the sixth PID parameter is used for control; Wherein, the proportional coefficient of the fourth PID parameter is greater than that of the fifth PID parameter, and the proportional coefficient of the fifth PID parameter is greater than that of the sixth PID parameter; the integral coefficient of the sixth PID parameter is greater than that of the fifth PID parameter, and the integral coefficient of the fifth PID parameter is greater than that of the fourth PID parameter; the derivative coefficient of the fourth PID parameter is greater than that of the fifth PID parameter, and the derivative coefficient of the fourth PID parameter is greater than that of the sixth PID parameter.

5. The method according to claim 1, wherein After the step of determining that the vehicle centering operation is completed when the second coordinate deviation value is less than the preset coordinate threshold, the method further includes: Based on the condition that the left front camera and the right front camera are respectively set at equal distances x1 and x2 from the central axis, the distance y1 from the left front wheel to the left front camera and the distance y2 from the right front wheel to the right front camera are collected in real time; Calculate the distance s1 = x1 - y1 from the left front wheel to the central axis, and calculate the distance s2 = x2 - y2 from the right front wheel to the central axis; Calculate the deviation value Δs = s1 - s2. When y1 = y2, that is, Δs = 0, it means that the wheel is at the center position of the floating plate.

6. The method according to claim 5, characterized in that, After the step of determining that the vehicle centering operation is completed when the second coordinate deviation value is less than the preset coordinate threshold, the method further includes: When the floating plate and the moving platform are perpendicular, calibrate the zero point of the absolute encoder of the servo motor, divide the displacement of the motion module into positive and negative parts, and when y1 = y2, the position of the servo motor is 0; In the state where the vehicle is in neutral gear, control the speeds of all rollers on the floating plate to be consistent, so that when the left front motion module moves to the left, the front wheels move to the left synchronously, and when the left rear motion module moves to the right, the rear wheels move to the right synchronously.

7. A PID control system, characterized in that, The PID control system includes: one or more processors and a memory; the memory is coupled to the one or more processors, and the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to cause the PID control system to execute the method according to any one of claims 1-6.

8. A computer-readable storage medium, comprising instructions, characterized in that, When the instruction runs on the PID control system, it causes the PID control system to execute the method according to any one of claims 1-6.

9. A computer program product, characterized in that, When the computer program product runs on the PID control system, it causes the PID control system to execute the method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Vehicle transverse control method and device, equipment and storage medium

    CN113848899A

  • Control method and system of automobile maintenance platform

    CN118466474A