PID control method and system for realizing non-contact vehicle centering
By using a non-contact PID control method, image acquisition and PID controller calculation of correction commands are employed to achieve high-precision vehicle centering and positioning, solving the wear problem of contact-type centering devices and improving the stability and accuracy of the centering process.
Patent Information
- Application Number
- PCT/CN2025/097072
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-21
- Filing Date
- 2025-05-26
- Publication Date
- 2026-11-26
AI Technical Summary
Existing contact-type alignment devices suffer from equipment wear during vehicle calibration, affecting the vehicle's appearance quality and increasing maintenance costs.
A non-contact PID control method is adopted. Vehicle position information is acquired through an image acquisition device, and the PID controller is used to calculate correction commands to control the actuator to make non-contact adjustments, thereby achieving high-precision centering and positioning.
This avoids wear caused by mechanical contact, improves the stability and accuracy of vehicle alignment, and reduces equipment maintenance costs.
Smart Images

Figure CN2025097072_26112026_PF_FP_ABST
Abstract
Description
A PID control method and system for non-contact vehicle centering Technical Field
[0001] This application relates to the field of joint control of vehicle subsystems, and more particularly to a PID control method and system for achieving non-contact vehicle centering. Background Technology
[0002] With the continuous development of automobile manufacturing technology, the requirements for vehicle performance calibration before leaving the factory are becoming increasingly stringent. In calibration processes such as advanced driver assistance systems and four-wheel alignment, the vehicle needs to be precisely positioned at the center of the calibration equipment platform to ensure the accuracy of the calibration data. Therefore, vehicle alignment technology, as a crucial step in the calibration process, directly affects the reliability of the calibration results.
[0003] Currently, contact-type alignment devices driven primarily by cylinders are commonly used in industrial settings. These devices mainly consist of cylinders and push rods. A PLC controller controls the extension and retraction of the cylinders, causing the push rods to contact the wheels and propel the vehicle towards the center of the platform. In practical applications, this type of device adjusts the vehicle's position through the mechanical movement of the cylinders and push rods.
[0004] However, this contact-based alignment method suffers from equipment wear during use. Since the pushrod needs to be in direct contact with the wheel, prolonged use leads to wear on both the pushrod and the wheel surface, increasing maintenance costs and potentially affecting the vehicle's appearance. Summary of the Invention
[0005] This application provides a PID control method and system for non-contact vehicle alignment, which reduces mechanical wear during alignment at the four-wheel alignment station on an automobile production line.
[0006] In a first aspect, this application provides a PID control method for non-contact vehicle alignment, applied to a PID control system. The method includes: acquiring a real-time image of the target vehicle's current position using an image acquisition device; preprocessing the real-time image to obtain a vehicle contour feature map; extracting the coordinates of vehicle feature points from the vehicle contour feature map; calculating a first coordinate deviation value between the vehicle feature point coordinates and the preset target position coordinates, the coordinate deviation value including lateral deviation and angular deviation; calculating a vehicle correction command using a PID controller based on the deviation value, the PID controller including a proportional coefficient, an integral coefficient, and a derivative coefficient; the vehicle correction command including a lateral displacement correction amount and an angular correction amount; sending the vehicle correction command to an actuator and acquiring a second coordinate deviation value; and determining that the vehicle alignment operation is complete when the second coordinate deviation value is less than a preset coordinate threshold.
[0007] In the above embodiment, an image acquisition device is used to obtain the vehicle's real-time position information and extract feature point coordinates. The lateral and angular deviations are then input into a PID controller for calculation. Based on these deviation values, the PID controller generates precise correction commands to control the actuator for non-contact adjustment. The entire process continuously acquires new deviation values and makes corrections through closed-loop control until a preset threshold is reached, achieving high-precision vehicle centering and positioning while avoiding wear problems caused by mechanical contact.
[0008] In conjunction with some embodiments of the first aspect, in some embodiments, the step of calculating the vehicle correction command using a PID controller based on the deviation value specifically includes: using 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; 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; calculating the PID control output value based on the lateral deviation value and the angle deviation value, and performing amplitude limiting processing on the PID control output value to obtain the vehicle correction command.
[0009] In the above embodiment, the lateral deviation and angular deviation are input to their respective PID controllers, and the control parameters are dynamically adjusted according to the magnitude of the deviation. The lateral PID controller and the angular PID controller work together to output a correction command that has undergone amplitude limiting. This separate control strategy enables the system to handle position and orientation deviations simultaneously, improving the stability and accuracy of the alignment process and reducing mutual interference.
[0010] In conjunction with some embodiments of the first aspect, in some embodiments, the step of using 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, using a first PID parameter for control; 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, using a second PID parameter for control; when the absolute value of the lateral deviation value is less than the preset second threshold, using a third PID parameter for control, wherein the proportional coefficient of the first PID parameter is greater than the proportional coefficient of the second PID parameter, the proportional coefficient of the second PID parameter is greater than the proportional coefficient of the third PID parameter, the integral coefficient of the third PID parameter is greater than the integral coefficient of the second PID parameter, the integral coefficient of the second PID parameter is greater than the integral coefficient of the first PID parameter, and the derivative coefficients of the first PID parameter and the third PID parameter are greater than the derivative coefficient of the second PID parameter.
[0011] In the above embodiment, the lateral PID controller automatically switches between three different parameter combinations based on the magnitude of the deviation. When the deviation is large, a larger proportional coefficient is used for a fast response; when the deviation is moderate, a balanced parameter combination is used; and when the deviation is small, the integral coefficient is increased to improve accuracy. This phased parameter adjustment mechanism achieves a balance between rapid approach and precise positioning, improving alignment efficiency while ensuring control accuracy.
[0012] In conjunction with some embodiments of the first aspect, in some embodiments, the step of using the angle deviation value as the input to 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, using a fourth PID parameter 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, using a fifth PID parameter for control; when the absolute value of the angle deviation value is less than the preset fourth threshold, using a sixth PID parameter for control; wherein, the proportional coefficient of the fourth PID parameter is greater than the proportional coefficient of the fifth PID parameter, and 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, and the integral coefficient of the fifth PID parameter is greater than the integral coefficient of the fourth PID parameter; the derivative coefficient of the fourth PID parameter is greater than the derivative coefficient of the fifth PID parameter, and the derivative coefficient of the fourth PID parameter is greater than the derivative coefficient of the sixth PID parameter.
[0013] In the above embodiment, the angle PID controller automatically switches between three control stages based on the magnitude of the angle deviation. In the large deviation stage, a large proportional and derivative coefficient is used to ensure rapid angle adjustment; in the medium deviation stage, a balanced parameter configuration is employed; and 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 angle control both fast and accurate, improving the system's dynamic performance.
[0014] In conjunction with some embodiments of the first aspect, in some embodiments, after determining that the vehicle centering operation is completed when the second coordinate deviation value is less than a preset coordinate threshold, the method further includes: applying the lateral deviation value and the angular deviation value to the front wheel control and the rear wheel control respectively according to the difference in the front and rear weight distribution of the vehicle, wherein the proportional coefficient and integral coefficient of the front wheel PID controller are greater than the proportional coefficient and integral coefficient of the rear wheel PID controller, the derivative coefficient of the rear wheel PID controller is greater than the derivative 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.
[0015] In the above embodiment, different PID control strategies are applied to the front and rear wheels according to the vehicle's front-to-rear weight distribution characteristics. The front wheel controller uses larger proportional and integral coefficients to ensure fast response and stability; the rear wheel controller uses larger derivative coefficients to enhance the system's damping characteristics. Optimal parameters are obtained through PLC self-tuning, achieving coordinated control of the front and rear wheels and improving the vehicle's alignment smoothness and accuracy.
[0016] In conjunction with some embodiments of the first aspect, in some embodiments, after determining that the vehicle centering operation is completed when the second coordinate deviation value is less than a preset coordinate threshold, the method further includes: based on the condition that the left front camera and the right front camera are set to be equidistant from the center axis by distances x1 and x2 respectively, 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; the distance s1 from the left front wheel to the center axis is calculated as x1-y1, and the distance s2 from the right front wheel to the center axis is calculated as x2-y2; the deviation value Δs is calculated as s1-s2, and when y1=y2, that is, Δs=0, it indicates that the wheel is at the center position of the floating plate.
[0017] In the above embodiment, based on the characteristic of the left and right front cameras being arranged at equal distances, the deviation value of the wheel from the center line is calculated by measuring the distance from the wheel to the camera in real time. When the distances of the left and right wheels to the center line are equal, the vehicle can be accurately determined to be in the center position. This two-way distance measurement method establishes a precise mathematical relationship for the wheel position, provides a reliable criterion for centering completion, and enhances the accuracy of positioning.
[0018] In conjunction with some embodiments of the first aspect, in some embodiments, after determining that the vehicle centering operation is completed when the second coordinate deviation value is less than a preset coordinate threshold, the method further includes: when the floating platform and the motion platform are perpendicular, calibrating the zero point of the absolute encoder of the servo motor, dividing the displacement of the motion module into positive and negative parts, and when y1 = y2, the position of the servo motor is 0; when the vehicle is in neutral, controlling the speed of all rollers on the floating platform to be consistent, so that when the left front motion module moves to the left, the front wheels move synchronously to the left, and when the left rear motion module moves to the right, the rear wheels move synchronously to the right.
[0019] In the above embodiment, a servo motor encoder zero-point reference is established at the vertical position of the floating platform and the motion platform, and the motion stroke is divided into positive and negative intervals. The system controls the motion module based on the distance values from the left and right wheels to the camera, realizing differential motion of the front wheels to the left and the rear wheels to the right. This differential control mechanism based on zero-point calibration ensures synchronous and coordinated movement of the front and rear wheels, avoids wheel slippage, makes the centering process more stable and controllable, and improves the accuracy and stability of the adjustment.
[0020] In a second aspect, embodiments of this 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, which includes computer instructions, and the one or more processors call the computer instructions to cause the PID control system to perform the method described in the first aspect and any possible implementation thereof.
[0021] Thirdly, embodiments of this application provide a computer program product containing instructions that, when the computer program product is run on a PID control system, cause the PID control system to perform the method described in the first aspect and any possible implementation thereof.
[0022] Fourthly, embodiments of this application provide a computer-readable storage medium including instructions that, when executed on a PID control system, cause the PID control system to perform the method described in the first aspect and any possible implementation thereof.
[0023] Understandably, 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 methods provided in the embodiments of this application. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods, and will not be repeated here.
[0024] One or more technical solutions provided in the embodiments of this application have at least the following technical effects or advantages:
[0025] 1. This application utilizes an image acquisition device to obtain real-time vehicle position information and extract feature point coordinates. Lateral and angular deviations are then input into a PID controller for calculation. Based on these deviation values, the PID controller generates precise correction commands, controlling the actuator to perform non-contact adjustments. The entire process continuously acquires new deviation values and makes corrections through closed-loop control until a preset threshold is reached, achieving high-precision vehicle centering and positioning while avoiding wear problems caused by mechanical contact.
[0026] 2. This application inputs lateral deviation and angular deviation into corresponding PID controllers, dynamically adjusting control parameters based on the magnitude of the deviations. The lateral PID controller and the angular PID controller work together to output a correction command that has undergone amplitude limiting. This separate control strategy enables the system to handle position and orientation deviations simultaneously, improving the stability and accuracy of the alignment process and reducing mutual interference.
[0027] 3. This application inputs lateral deviation and angular deviation into corresponding PID controllers, dynamically adjusting control parameters based on the magnitude of the deviations. The lateral PID controller and the angular PID controller work together to output a correction command that has undergone amplitude limiting. This separate control strategy enables the system to handle position and orientation deviations simultaneously, improving the stability and accuracy of the alignment process and reducing mutual interference. Attached Figure Description
[0028] Figure 1 is a flowchart illustrating a PID control method for non-contact vehicle centering 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 vehicle centering in an embodiment of this application.
[0030] Figure 3 is another flowchart illustrating the PID control method for non-contact vehicle centering in an embodiment of this application.
[0031] Figure 4 is a schematic diagram of the physical device structure of a PID control system in an embodiment of this application. Detailed Implementation
[0032] The terminology used in the following embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. As used in the specification of this application, the singular expressions “a,” “an,” “the,” “the,” and “this” are intended to include the plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as 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 used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.
[0034] For ease of understanding, the method provided in this embodiment is described in process below. Please refer to Figure 1, which is a schematic flowchart of a PID control method for non-contact vehicle centering in this embodiment.
[0035] S101. Acquire a real-time image of the target vehicle's current position using an image acquisition device, and preprocess the real-time image to obtain a vehicle contour feature map.
[0036] The image acquisition device refers to the industrial camera equipment used to acquire 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 distributed equidistantly from the platform's central axis; real-time images refer to vehicle image data captured in real time by the industrial cameras; and vehicle contour feature maps refer to binarized images containing the vehicle's external contours obtained after image preprocessing.
[0037] This step begins after the vehicle has fully entered the centering platform and stopped moving. Specifically, four industrial cameras simultaneously aim at the vehicle and capture real-time images, acquiring raw images containing the vehicle's position information. The acquired raw images undergo preprocessing, including image enhancement to improve image quality, noise reduction to remove interference, and edge detection to highlight the vehicle's outline. The final result is a clear vehicle outline feature map, preparing for subsequent feature point extraction.
[0038] In some embodiments, image acquisition and preprocessing can be implemented in the following ways: Optionally, firstly, the camera's working status is detected and parameters are configured, including setting exposure time, gain value, etc.; then, four cameras are simultaneously triggered to acquire images; the original image is converted to 8-bit grayscale; Gaussian filtering is used for noise reduction; finally, the Canny operator is used for edge detection to obtain a contour feature map. Optionally, the camera is first calibrated to eliminate distortion; multiple images with different exposures are acquired using HDR mode and synthesized; adaptive histogram equalization is performed on the image for enhancement; morphological operations are used for image denoising; and the Sobel operator is used to extract edges to obtain a contour feature map. It is 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 alignment system, the image acquisition device is equivalent to the sensor in the PID control system. The vehicle position information it acquires (presented in image form) will be converted into data related to the vehicle position to calculate the deviation value, thereby providing input basis for PID control.
[0040] S102. Extract the coordinates of vehicle feature points from the vehicle contour feature map, and calculate the first coordinate deviation value between the coordinates of the vehicle feature points and the preset target position coordinates. The coordinate deviation value includes lateral deviation and angular deviation.
[0041] Among them, vehicle feature point coordinates refer to the spatial coordinates of key points that can characterize the vehicle's position, mainly including the wheel center point coordinates; preset target position coordinates refer to the standard coordinates of the ideal parking position of the vehicle on the centering platform; coordinate deviation value refers to the difference between the actual position and the target position, including two components: vehicle lateral displacement deviation and body angle 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 coordinates of feature points that characterize the vehicle's position, mainly the coordinates of the center points of the four wheels. The extracted feature point coordinates are compared and calculated with the pre-calibrated target position coordinates to obtain the deviation values in both the lateral and angular directions. The lateral deviation is calculated by the difference in the coordinates of feature points at symmetrical positions on the left and right sides, while the angular deviation is calculated by the angle between the line connecting the front and rear feature points and the centerline.
[0043] In some embodiments, feature point extraction and deviation calculation can be achieved in the following ways: Optionally, firstly, connected component analysis is performed on the contour feature map to identify the wheel region; then, the centroid of each connected component is calculated to obtain the coordinates of the wheel center point; the lateral deviation s = |x1-x2| is calculated based on the coordinate values obtained by the left and right symmetrical cameras; the angular deviation θ = arctan((y2-y1) / (x2-x1)) is calculated based on the coordinate values obtained by the front and rear cameras. Optionally, a template matching method is used to locate the wheel position; the Hough circle transform is used to extract the wheel center coordinates; the vehicle centerline is fitted using the least squares method; the translation of the centerline from the standard position is calculated to obtain the lateral deviation; the angle between the centerline and the standard position is calculated to obtain the angular deviation. It is 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 x be the distance from the left front camera to the central axis. 前左定 The real-time measured distance to the left front wheel is y. 前左实 The distance from the right front camera to the central axis is x. 前右定 The real-time measured distance to the right front wheel is y. 前右实 (The same applies to the rear camera.)
[0045] When calculating lateral deviation, taking the left and right front wheels as an example, if only the lateral positional relationship is considered, the lateral deviation e 横前 (here e) 横前 The quantity related to the deviation in PID control can be expressed as:
[0046] e 横前 =(x 前左定 -y 前左实 )-(x 前右定 -y 前右实 When x 前左定 =x 前右定 At that time, e 横前 =y 前右实 -y 前左实 This lateral deviation e 横前 (and e calculated similarly on the back) 横后 This will subsequently be used as part of the input deviation of the PID controller to calculate the vehicle's lateral correction command.
[0047] S103. The vehicle correction command is calculated 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 proportional, integral, and derivative control actions; the proportional coefficient is a parameter used to adjust the controller's response speed to deviations; the integral coefficient is a parameter used to eliminate steady-state errors; 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 used to correct the lateral deviation of the vehicle; and the angle correction amount is the rotation amount output by the controller used to correct the angular deviation of the vehicle.
[0049] This step is executed after the vehicle position deviation value is obtained. Specifically, the system uses PID controllers with different parameters for the front and rear wheels, based on the difference in weight distribution between the front and rear of the vehicle. For the front wheel PID controller, since the front of the vehicle is heavier, its proportional and integral coefficients need to be greater than the corresponding parameters of the rear wheel PID controller; while 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 corresponding correction commands based on the input lateral and angular deviations through PID calculations.
[0050] In some embodiments, the calculation of the PID controller's correction command can be implemented in several ways: Optionally, the lateral deviation is first input to the lateral PID controller, and different combinations of PID parameters are selected according to the magnitude of the deviation. When the deviation is large, a larger proportional coefficient and a smaller integral coefficient are used; when the deviation is small, a smaller proportional coefficient and a larger integral coefficient are used. Then, the angle deviation is input to the angle PID controller for similar processing. Finally, the outputs of the two controllers are weighted and combined to obtain the final correction command. Optionally, the PLC's PID self-tuning function is used to obtain the optimal PID parameters through multiple tests; the lateral deviation and angle deviation are input to the corresponding PID modules respectively; the PID output is limited to ensure safety; finally, the processed output is converted into specific displacement and angle correction amounts. It is understood that other control algorithms can also be used to implement the vehicle position correction calculation, which is not limited here.
[0051] In digital PID control systems, discretized PID control algorithms are typically employed. The formula for positional PID control 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 PID controller output at the k-th sampling time; e(k) is the deviation value at the k-th sampling time; and e(k-1) is the deviation value at the (k-1)-th sampling time. The formula for incremental PID control 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 time.
[0052] In this system, the lateral deviation e 横(k) and angular deviation e 角(k) The values are input to the corresponding PID controllers for calculation. For the lateral PID controller, the positional PID algorithm is used to calculate the lateral displacement correction 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 angle PID controller, the positional PID algorithm is used to calculate the angle correction 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 command to the actuator and obtain the second coordinate deviation value.
[0054] The actuator refers to the servo motor and its related mechanical components used to execute the correction command; the second coordinate deviation value refers to the vehicle position deviation value obtained by re-measuring after the correction action is performed.
[0055] This step is executed after the correction command is calculated. Specifically, the lateral displacement correction and angle correction are converted into motion control commands for the servo motors and sent to the corresponding actuators via 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, performing position adjustments synchronously while the vehicle is in neutral. After the adjustment is completed, the system re-acquires the vehicle's position information through the image acquisition device and calculates the new coordinate deviation value.
[0056] In some embodiments, the execution of correction commands and the acquisition of deviations can be achieved in several ways: Optionally, the correction commands are first converted into position control commands for the servo motor; the servo motor is controlled to run to a specified position according to the set acceleration and speed; after the motion is completed, the camera is triggered to acquire images; and the updated deviation value is calculated based on the newly acquired image. Optionally, the correction amount is converted into displacement commands for the motion module via a PLC; the operating status of the servo motor is monitored to ensure safety; new position information is acquired after the motion is completed and the system is stable; and the updated lateral and angular deviation values are calculated. It is understood that other methods can also be used to implement the execution of correction commands and the updating of deviation values, which are not limited here.
[0057] When sending the vehicle correction command to the actuator, the previously calculated lateral displacement correction amount U should be explicitly used. 横 (k) and angle correction amount U 角 (k). After adjustment, the system reacquires the vehicle position information through the image acquisition device and calculates the new coordinate deviation value, i.e., the second coordinate deviation value, according to the method in S102. The new lateral deviation is denoted as e. 横新 (k+1) and the angle deviation are denoted as e. 角新 (k+1), these two new deviation values will be used as inputs for the next PID control calculation to continue adjusting the vehicle position until the centering condition is met.
[0058] S105. When the second coordinate deviation value is less than the preset coordinate threshold, the vehicle centering operation is confirmed to be completed.
[0059] Among them, the preset coordinate threshold refers to the maximum position deviation value allowed by the system, which is used to determine 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 parking the vehicle in 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 equidistant distances from the left front camera and the right front camera to the center axis as x1 and x2, respectively, and collects the distances y1 from the left front wheel to the left front camera and y2 from the right front wheel to the right front camera in real time. The system calculates the distance s1 = x1 - y1 from the left front wheel to the center axis and the distance s2 = x2 - y2 from the right front wheel to the center axis, obtaining the deviation value Δs = s1 - s2. When y1 = y2, i.e., Δs = 0, it indicates that the wheel is at the center position of the floating platform, and the system determines that the centering operation is complete.
[0061] In some embodiments, the determination of alignment completion can be achieved in several ways: Optionally, firstly, the acquired y1 and y2 values are substituted into the formula to calculate s1 and s2; then, the difference Δs is calculated and compared with a preset threshold; if Δs is less than the threshold, an alignment completion signal is sent to the PLC; simultaneously, the servo motor position value is compared with the zero point for confirmation; finally, the alignment completion status is output and the operation of the relevant equipment is stopped. Optionally, the absolute values of the lateral deviation and angular deviation are calculated separately; the two deviation values are compared with their respective preset thresholds; when both deviation values are less than the thresholds, alignment is determined to be complete; the system records the final position parameters and locks the position; the controller switches to a waiting state to prepare for the next alignment. It is understood that other methods can also be used to determine the alignment completion status, which are not limited here.
[0062] In conjunction with PID control principles, when determining if alignment is complete, it's crucial to consider not only the currently measured coordinate deviation but also the stability of the PID control. After the vehicle's position deviation falls below a preset threshold, continuous monitoring for a certain period (e.g., several sampling cycles) is necessary to ensure the deviation remains within the threshold range during this time, preventing misjudgments due to system fluctuations. For example, after n consecutive sampling cycles (n can be set based on actual system stability, typically 3-5), the lateral deviation e... 横新 (k+j)(j=1,2,...,n) and angular deviation e 角新 The alignment operation is only considered complete when all (k+j) values are less than their respective preset thresholds, e_horizontal and e_angle. In actual calculations, in addition to using camera distance measurements to calculate the deviation, the position information fed back by the servo motor encoder can be used for further confirmation. Assuming the theoretical position of the motion module driven by the servo motor is P_theoretical and the actual feedback position is P_actual, when judging alignment, it is necessary to ensure that |P_theoretical - P_actual| is less than the allowable error range P_error of the motor position accuracy, and at the same time, the condition that the coordinate deviation is less than the threshold is met, thereby enhancing the accuracy of the alignment judgment.
[0063] The following is a further analysis of the hardware structure and components of the method provided in this embodiment. Please refer to Figure 2, which shows the hardware structure of the PID control method for non-contact vehicle centering in this embodiment.
[0064] In Figure 2, part (a) shows the overall architecture of the centering platform used to achieve non-contact vehicle centering. The centering platform contains four single-wheel centering components, which are equidistant from the centerline of the centering platform. The two floating platforms in the lower left carry the left front wheel and the left rear wheel, respectively, while the two floating platforms in the upper right carry the right front wheel and the right rear wheel, respectively.
[0065] (b) is a single-wheel centering component. ① consists of two pairs of red cameras, equidistant from the centering platform's centerline, used to measure the distance from the camera to the wheel. ② consists of four floating turntables, equidistant from the platform's centerline, supporting the wheel and its steering. The two lower left floating discs support the left front and rear wheels, including parts ④ and ⑤; the two upper right floating discs support the right front and rear wheels, with only ④ being the driven floating disc for the left wheel. ③ is a swing mechanism, composed of ⑥, ⑦, and ⑧, driving the wheel on the floating disc to move left and right; the two upper right floating discs do not have this structure. ④ consists of rollers, two on each floating disc, with the wheel located between them, assisting in the wheel's left and right movement. ⑤ is the end of the floating disc, connected to the swing mechanism. ⑥ is a motion module, connected to ⑤, locking the floating disc and driving its left and right movement. ⑦ is the motion platform of ⑥; its length is evenly divided when ② and ③ are perpendicular. ⑧ is a servo motor, providing power and position control for the centering function, equipped with an absolute encoder.
[0066] The method provided in this embodiment will now be described in more detail. Please refer to Figure 3, which is another schematic flowchart illustrating the PID control method for non-contact vehicle centering in this embodiment.
[0067] S301. Acquire a real-time image of the target vehicle's current position using 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 mounted on the alignment platform, including a front left camera, a front right camera, a rear left camera, and a rear right camera. Real-time images refer to vehicle image data captured by the industrial cameras in real time. The vehicle contour feature map refers to a binary image containing the vehicle's outline, obtained after image preprocessing. After the vehicle fully enters the alignment platform, the four industrial cameras synchronously aim at the vehicle and capture raw images in real time. Preprocessing of the acquired raw images includes image enhancement to improve image quality, noise removal to remove interference, and edge detection to highlight the vehicle contour. The image is converted to 8-bit grayscale, Gaussian filtering is used for noise removal, and the Canny operator is used for edge detection, ultimately yielding a clear vehicle contour feature map, preparing for subsequent feature point extraction.
[0069] S302. Extract the coordinates of vehicle feature points from the vehicle contour feature map, and calculate the first coordinate deviation value between the coordinates of the vehicle feature points and the preset target position coordinates. The coordinate deviation value includes lateral deviation and angular deviation.
[0070] Vehicle feature point coordinates represent the spatial position information of the wheel center point; preset target position coordinates refer to the ideal parking position of the vehicle on the centering platform; coordinate deviation value represents the difference between the actual position and the target position. After obtaining the vehicle contour feature map, connected component analysis is performed on the image to identify the wheel region, and the centroid of each connected component is calculated to obtain the wheel center point coordinates. The lateral deviation is calculated based on the coordinate values obtained by the left and right symmetrical cameras. Specifically, 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 calculated to obtain s1 = x1 - y1 and s2 = x2 - y2, where x1 and x2 are the distances from the camera to the center line, and 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 line.
[0071] S303. When the absolute value of the lateral deviation is greater than the preset first threshold, the first PID parameter is used for control.
[0072] The lateral deviation value represents the distance difference between the vehicle's actual lateral position and the target position; the preset first threshold is a standard value for judging the magnitude of the lateral deviation; the first PID parameter refers to the control parameter group used for large deviation correction. When the absolute value of the calculated lateral deviation is greater than the preset first threshold, it indicates that the vehicle's position deviates significantly from the target, requiring greater control force for correction. In this case, the first PID parameter group is selected for control. This parameter group is characterized by a large proportional coefficient to provide strong correction force, a small integral coefficient to avoid large cumulative errors, and a large derivative coefficient to provide sufficient dynamic response capability. Through the coordination of these parameters, it is ensured that the vehicle can be quickly adjusted to near the target position even under large deviation conditions.
[0073] S304. When the absolute value of the lateral deviation is not greater than the preset first threshold and not less than the preset second threshold, the second PID parameter is used for control.
[0074] The lateral deviation value represents the distance difference between the vehicle's actual lateral position and the target position. The preset first threshold and second threshold are the upper and lower limits for judging whether the lateral deviation is within a moderate range, respectively. The second PID parameter refers to the control parameter set used for moderate deviation correction. When the absolute value of the calculated lateral deviation is between the first and second thresholds, it indicates that the vehicle position is in the transition region, requiring moderate control force for correction. In this case, the second PID parameter set is selected for control. This parameter set is characterized by a moderate proportional coefficient to provide appropriate correction force, a moderate integral coefficient to gradually eliminate steady-state error, and a small derivative coefficient to ensure system stability. Through the coordination of these parameters, the vehicle smoothly approaches the target position.
[0075] S305. When the absolute value of the lateral deviation is less than the preset second threshold, a third PID parameter is used for control. The proportional coefficient of the first PID parameter is greater than the proportional coefficient of the second PID parameter, the proportional coefficient of the second PID parameter is greater than the proportional coefficient of the third PID parameter, the integral coefficient of the third PID parameter is greater than the integral coefficient of the second PID parameter, the integral coefficient of the second PID parameter is greater than the integral coefficient of the first PID parameter, and the derivative coefficients of the first PID parameter and the third PID parameter are greater than the derivative coefficient of the second PID parameter.
[0076] The preset second threshold is a standard value for judging small lateral deviations; the third PID parameter set refers to the control parameter group used for precise correction of small deviations. To achieve optimal control performance under different deviation ranges, the magnitude relationship of the three PID parameter sets is 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 derivative coefficients of the first and third groups are greater than those of the second group. When the absolute value of the lateral deviation is less than the second threshold, it indicates that the vehicle is approaching the target position, and at this time, the third PID parameter group is used for precise control. The characteristics of the third set of parameters are: the smallest proportional coefficient to avoid overcorrection, the largest integral coefficient to eliminate small steady-state errors, and a larger derivative coefficient 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 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's axis and the standard position axis; the preset third threshold is a standard value for judging a large angle deviation; the fourth PID parameter is a set of control parameters used for large angle deviation correction. When the absolute value of the calculated angle deviation is greater than the preset third threshold, it indicates a large angle deviation between the vehicle and the standard position, requiring a significant angle correction. In this case, the fourth PID parameter set is selected for control. This parameter set is characterized by a maximum proportional coefficient to provide strong correction force, a minimum integral coefficient to avoid large cumulative errors, and a maximum derivative coefficient to provide fast dynamic response. Through the coordination of these parameters, the vehicle can be quickly adjusted to a near-standard angle even with large angle deviations.
[0079] S307. When the absolute value of the angle deviation 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's axis and the standard position axis. The preset third and fourth thresholds are the upper and lower limits, respectively, for judging whether the angle deviation is within a moderate range. The fifth PID parameter refers to the control parameter group used for moderate angle deviation correction. When the absolute value of the calculated angle deviation is between the third and fourth thresholds, it indicates that the vehicle angle is in the transition region and requires moderate control force for correction. In this case, the fifth PID parameter group is selected for control. This parameter group is characterized by a moderate proportional coefficient to provide appropriate correction force, a moderate integral coefficient to gradually eliminate steady-state error, and a small derivative coefficient to ensure system stability. Through the coordination of these parameters, the vehicle angle is smoothly adjusted towards the standard angle.
[0081] S308. When the absolute value of the angle deviation 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 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.
[0082] The preset fourth threshold is a standard value for judging small angle deviations; the sixth PID parameter is a group of control parameters used for precise correction of small angle deviations. When the absolute value of the angle deviation is less than the fourth threshold, it indicates that the vehicle angle is close to the standard position, and the sixth PID parameter group is used for precise control. The characteristics of the sixth parameter group are: the smallest proportional coefficient to avoid overcorrection, the largest integral coefficient to eliminate small steady-state errors, and a small derivative coefficient to provide a smooth dynamic response, ensuring that the vehicle can be accurately aligned with the standard angle. At this stage, the system mainly focuses on the precise adjustment of the angle, avoiding back-and-forth oscillations caused by overcorrection.
[0083] The fourth, fifth, and sixth PID parameter groups correspond to control parameters for large, medium, and small angle deviation ranges, respectively. The magnitudes of these three parameter groups follow this pattern: the proportional coefficient decreases in the order of group four > group five > group six, providing strong correction for larger angle deviations and gradually reducing correction strength as the deviation decreases; the integral coefficient decreases in the order of group six > group five > group four, providing strong steady-state error elimination capability when approaching the target angle; the derivative coefficient is largest in group four and greater than both groups five and six, providing fast dynamic response for large angle deviations and reducing response speed to ensure stability for small and medium deviations. This parameter configuration achieves optimal control performance across different angle deviation ranges.
[0084] S309. Calculate the PID control output value based on the lateral deviation value and the angular deviation value, and perform amplitude limiting processing on the PID control output value to obtain the vehicle correction command. 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 angular correction amount.
[0085] The PID control output value represents the original control quantity calculated by the controller based on the deviation; amplitude limiting refers to the process of restricting the control quantity exceeding the safe range to within the allowable range; the vehicle correction command refers to the processed command signal that can be directly used to control the actuator. The lateral PID controller uses a selected set of parameters to calculate the lateral deviation, 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, where e(t) is the lateral deviation value. The angle PID controller performs a similar calculation for the angle deviation. The output values of both controllers are compared with preset amplitude limits, and when the output exceeds the limit, it is limited to the safe range. The final lateral displacement correction and angle correction constitute a complete vehicle correction command.
[0086] S310. Send the vehicle correction command 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 adjust the vehicle's position; the second coordinate deviation value refers to the vehicle position deviation value remeasured after the correction action is performed. The system converts the lateral displacement correction and angular correction amounts into motion control commands for the servo motors and sends them to the actuator via the communication interface. After receiving the commands, the actuator controls the front wheels to move to the left using the left front motion module and the rear wheels to move to the right using the left rear motion module, simultaneously adjusting the position while the vehicle is in neutral. After the adjustment is completed, the system re-acquires the vehicle's position information through an image acquisition device, calculates the new lateral and angular deviation values, and obtains the second coordinate deviation value.
[0088] S311. When the second coordinate deviation value is less than the preset coordinate threshold, the vehicle centering operation is confirmed to be completed.
[0089] The preset coordinate threshold represents the maximum positional deviation allowed by the system; the second coordinate deviation includes new lateral and angular deviations; vehicle centering operation refers to the process of parking the vehicle at the center position of the centering platform through the control system. The system records the equidistant distances from the left front camera and the right front camera to the center axis as x1 and x2, respectively, and collects the distances y1 from the left front wheel to the left front camera and y2 from the right front wheel to the right front camera in real time. The distance s1 from the left front wheel to the center axis is calculated as x1 - y1, and the distance s2 from the right front wheel to the center axis is calculated as x2 - y2, obtaining the deviation value Δs = s1 - s2. When the newly calculated lateral and angular deviations are both less than their respective preset thresholds, it indicates that the vehicle has been accurately parked at the target position, and the system determines that the centering operation is complete.
[0090] S312. Based on the difference in weight distribution between the front and rear of the vehicle, the lateral deviation value and the angular deviation value are applied 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 the proportional coefficient and integral coefficient of the rear wheel PID controller, and the derivative coefficient of the rear wheel PID controller is greater than the derivative coefficient 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.
[0091] The front-wheel PID controller and rear-wheel PID controller represent independent controllers used to control the front and rear wheels of a vehicle, respectively. The proportional gain indicates the controller's response speed to deviations; the integral gain indicates the ability to eliminate steady-state errors; and the derivative gain indicates the degree of improvement in the system's dynamic characteristics. The PLC self-tuning function refers to the programmable controller's ability to automatically obtain optimal PID parameters through testing. Because the front of the vehicle is heavier, its inertia and friction are greater than the rear. Therefore, the front-wheel controller uses larger proportional and integral gains to provide stronger control, while the rear-wheel controller uses a larger derivative gain to improve dynamic response. Through the PLC's self-tuning function, the system automatically adjusts the parameter values during multiple tests, ultimately determining the optimal parameter combination for the front and rear wheel controllers.
[0092] S313. Based on the condition that the left front-side camera and the right front-side camera are set to be at equal distances x1 and x2 from the centerline respectively, the distance y1 from the left front wheel to the left front-side camera and the distance y2 from the right front wheel to the right front-side camera are collected in real time.
[0093] The left and right front cameras represent the industrial cameras mounted on the left and right sides of the centering platform, respectively; the centerline represents the center baseline of the centering platform; distances x1 and x2 represent the fixed distances from the two cameras to the centerline; and distances y1 and y2 represent the real-time distances from the two front wheels to their corresponding cameras. During the centering operation, the system synchronously acquires images through the left and right front cameras, and extracts the position information of the left and right front wheels after image processing. Since the installation positions of the two cameras are symmetrical with respect to the centerline, i.e., x1 = x2, this provides a reference for subsequent calculation of wheel position deviations. 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 from the left front wheel to the center line s1 = x1 - y1, and calculate the distance from the right front wheel to the center line s2 = x2 - y2.
[0095] s1 and s2 represent the actual distances from the left front wheel and right front wheel to the center line, respectively. After obtaining the fixed distances x1 and x2 from the camera to the center line and the real-time distances y1 and y2 from the wheels to the camera, the system calculates the actual distances from the wheels to the center line using a simple subtraction operation. Specifically, the distance s1 from the left front wheel to the center line equals the distance x1 from the left front camera to the center line minus the distance y1 from the left front wheel to the left front camera, i.e., s1 = x1 - y1; similarly, the distance s2 from the right front wheel to the center line equals the distance x2 from the right front camera to the center line minus the distance y2 from the right front wheel to the right front camera, i.e., s2 = x2 - y2. This calculation method is simple, intuitive, and convenient for real-time processing.
[0096] S315. Calculate the deviation value Δs = s1 - s2. When y1 = y2, that is, Δs = 0, it means that the wheel is at the center of the floating platform.
[0097] The deviation value Δs represents the difference in distance from the left front wheel and the right front wheel to the centerline; y1 and y2 represent the distances from the left front wheel to the left front camera and the right front wheel to the right front camera, respectively; the floating platform represents the 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, s2 = x2 - y2. Since x1 = x2, s1 = s2, therefore Δs = 0. In this case, the left and right front wheels are symmetrically distributed on both sides of the centerline, indicating that the vehicle has been precisely positioned at the center of the floating platform. This symmetrical positioning ensures that the vehicle is subjected to uniform force during subsequent lifting, preventing tilting or displacement during lifting and ensuring the safety and accuracy of maintenance operations.
[0098] S316. When the floating platform and the motion platform are perpendicular, calibrate the zero point of the absolute encoder of the servo motor and divide the displacement of the motion module into two parts, positive and negative. When y1 = y2, the position of the servo motor is 0.
[0099] The floating platform and motion platform refer to the mechanical components used to support and move the wheels; the servo motor absolute encoder refers to the sensor used to accurately record the motor's position; the motion module refers to the overall mechanism including the servo motor and transmission mechanism. During the system installation and commissioning phase, first ensure that the floating platform is perpendicular to the motion platform; this is the calibration reference condition. Set the encoder's zero point at the center of the floating platform, i.e., the position when y1 = y2. Then, divide the total travel range of the motion module into positive and negative displacement parts centered on the zero point, enabling the motion module to move symmetrically on both sides of the zero point. Through this calibration method, the system establishes a precise position reference, which not only facilitates real-time monitoring and adjustment of the vehicle's position by the control system but also ensures that the vehicle always remains within a safe range of motion during alignment, avoiding malfunctions such as mechanical interference or overtravel.
[0100] S317. When the vehicle is in neutral, control the speed 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 synchronously to the left, and when the left rear motion module moves to the right, the rear wheels move synchronously to the right.
[0101] The left front motion module and left rear motion module represent the actuators controlling the movement of the front and rear wheels, respectively. The vehicle being in neutral means the transmission is in neutral, allowing the wheels to rotate freely. During alignment adjustments, it is first confirmed that the vehicle is in neutral to ensure the wheels can move freely. The system controls the speed of all rollers on the floating platform to be consistent. When the left front motion module moves to the left, the front wheels move synchronously to the left; when the left rear motion module moves to the right, the rear wheels move synchronously to the right. This opposite-direction movement not only achieves lateral displacement and angle adjustment of the vehicle but also, due to synchronous control, ensures coordinated movement speeds of the front and rear wheels, avoiding positional deviations caused by asynchronous movement. Simultaneously, this movement method minimizes stress on the vehicle chassis, preventing any damage to the vehicle during adjustment and improving the safety and reliability of the alignment system.
[0102] In some embodiments, the following steps may also be included:
[0103] Before the centering process starts, the initial tire pressure value P0 and ambient temperature T0 detected by the TPMS system are obtained, and this pressure value is used as the reference value. The TPMS sensor data is collected in real time through the CAN bus to obtain the real-time pressure value P1 and temperature value T1 during the centering process. The difference ΔP between the real-time pressure value P1 and the reference value P0 is used as the judgment basis, where ΔP = P1 - P0.
[0104] When the pressure change rate dp / dt exceeds the preset threshold K1, i.e. 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 anti-slip measures: first, the output torque is reduced to 65% of the current value, and at the same time, the torque rise rate is reduced to 50% of the standard value, until the pressure change rate falls back to the normal range;
[0105] When the detected pressure value fluctuation amplitude ΔP within 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 state of stagnation. 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 the wheel is detected to have successfully passed the stagnation point.
[0106] The system also includes a temperature compensation mechanism: based on the temperature change ΔT = T1 - T0 detected by the temperature sensor, the pressure change ΔPt caused by the temperature is calculated, and the corrected pressure change ΔP' is obtained by subtracting ΔPt from the actual pressure change ΔP, thereby improving the accuracy of anomaly detection.
[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 according to the initial pressure change trend and adjusts the alignment parameters in advance to achieve proactive prevention.
[0108] In some embodiments, the following steps may also be included:
[0109] Before the alignment begins, the control motor outputs a series of incremental 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 the displacement response curve; the safe torque threshold is determined by calculating the slope change of the displacement response curve.
[0110] The system performs wave-like centering control: the output torque fluctuates within a safe threshold range according to a preset waveform, and the fluctuation amplitude is initially set to ±15% of the safe torque; when the displacement sensor detects an abnormal response, the controller will return the torque to the previous stable point, and at the same time record the torque value and displacement value when the abnormality is triggered;
[0111] Establish a centering parameter database: record the trial results of each centering process, including the safe torque threshold, optimal fluctuation amplitude, and displacement response characteristics; for centering tasks of the same type of vehicle under similar working conditions, the system calls historical parameters as initial values and verifies the effectiveness of the parameters through short-term trials;
[0112] When a wheel abnormality is detected, the controller calculates the optimal escape parameters based on historical trial data; the control motor outputs according to the calculated optimal torque and timing until the abnormality is resolved; if the first escape attempt fails, the system automatically adjusts the escape parameters and re-executes, and records the final successful parameter combination.
[0113] The PID control system in the embodiments of this application is described below from the perspective of hardware processing. Please refer to Figure 4, which is a schematic diagram of the physical device structure of the PID control system in the embodiments of this application.
[0114] It should be noted that the structure of the PID control system shown in Figure 4 is only an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.
[0115] As shown in Figure 4, the PID control system includes a Central Processing Unit (CPU) 401, which can perform various appropriate actions and processes based on programs stored in Read-Only Memory (ROM) 402 or programs loaded from storage section 408 into Random Access Memory (RAM) 403, such as executing the methods described in the above embodiments. The RAM 403 also stores various programs and data required for system operation. The CPU 401, ROM 402, and RAM 403 are interconnected 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 I / O interface 405: input section 406 including audio input devices, push-button switches, etc.; output section 407 including a liquid crystal display (LCD) and audio output devices, indicator lights, etc.; storage section 408 including a hard disk, etc.; and communication section 409 including a network interface card such as a LAN (Local Area Network) card, modem, etc. Communication section 409 performs communication processing via a network such as the Internet. Drive 410 is also connected to I / O interface 405 as needed. Removable media 411, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 410 as needed so that computer programs read from them can be installed into storage section 408 as needed.
[0117] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing computer programs for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 409, and / or installed from removable medium 411. When the computer program is executed by central processing unit (CPU) 401, it performs the various functions defined in the present invention.
[0118] It should be noted that specific examples of computer-readable storage media may include, but are not limited to: electrical connections having 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 fiber, portable compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that 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 architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. Each block in a flowchart or block diagram may represent a module, program segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those shown in the drawings.
[0120] Specifically, the PID control system of this embodiment includes a processor and a memory. The memory stores a computer program. When the computer program is executed by the processor, it implements the PID control method for non-contact vehicle centering provided in the above embodiment.
[0121] In another aspect, the present invention also provides a computer-readable storage medium, which may be included in the PID control system described in the above embodiments; or it may exist independently and not incorporated into the PID control system. The storage medium carries one or more computer programs that, when executed by a processor of the PID control system, cause the PID control system to implement the PID control method for non-contact vehicle centering provided in the above embodiments.
[0122] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
[0123] As used in the above embodiments, depending on the context, the term "when..." can be interpreted as meaning "if...", "after...", "in response to determining...", or "in response to detecting...". Similarly, depending on the context, the phrase "when determining..." or "if (the stated condition or event) is interpreted as meaning "if determining...", "in response to determining...", "when (the stated condition or event) is detected", or "in response to detecting (the stated condition or event)".
[0124] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.
Claims
1. A PID control method for achieving non-contact vehicle centering, characterized in that, Applied to a PID control system, the method includes: A real-time image of the target vehicle's current location is acquired using an image acquisition device, and the real-time image is preprocessed to obtain a vehicle contour feature map. Based on the vehicle contour feature map, extract the coordinates of vehicle feature points, and calculate the first coordinate deviation value between the coordinates of the vehicle feature points and the coordinates of the preset target position. The coordinate deviation value includes lateral deviation and angular deviation. The vehicle correction command is calculated 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. The vehicle correction command is sent to the actuator, and the second coordinate deviation value is obtained; When the second coordinate deviation value is less than the preset coordinate threshold, the vehicle centering operation is determined to be completed.
2. The method according to claim 1, characterized in that, The step of calculating the vehicle correction command using a PID controller based on the deviation value specifically includes: The lateral deviation value is used as the input to the lateral PID controller, and the parameters of the lateral PID controller are adjusted according to the absolute value of the lateral deviation value. The angle deviation value is used as the input to the angle PID controller, and the parameters of the angle PID controller are adjusted according to the absolute value of the angle deviation value. The PID control output value is calculated based on the lateral deviation value and the angular deviation value, and the PID control output value is limited to obtain the vehicle correction command.
3. The method according to claim 2, characterized in that, The step of using the lateral deviation value as input to the lateral PID controller and adjusting the parameters of the lateral PID controller based on the absolute value of the lateral deviation value specifically includes: When the absolute value of the lateral deviation is greater than the preset first threshold, the first PID parameter is used for control. When the absolute value of the lateral deviation is not greater than the preset first threshold and not less than the preset second threshold, the second PID parameter is used for control. When the absolute value of the lateral deviation is less than the preset second threshold, a third PID parameter is used for control. The proportional coefficient of the first PID parameter is greater than the proportional coefficient of the second PID parameter, the proportional coefficient of the second PID parameter is greater than the proportional coefficient of the third PID parameter, the integral coefficient of the third PID parameter is greater than the integral coefficient of the second PID parameter, the integral coefficient of the second PID parameter is greater than the integral coefficient of the first PID parameter, and the derivative coefficients of the first PID parameter and the third PID parameter are greater than the derivative coefficient of the second PID parameter.
4. The method according to claim 2, characterized in that, The step of using the angle deviation value as input to 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 is greater than the preset third threshold, the fourth PID parameter is used for control. When the absolute value of the angle deviation 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 is less than the preset fourth threshold, the sixth PID parameter is used for control. Among them, 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 4, characterized in that, After the step of determining that the vehicle alignment operation is completed when the second coordinate deviation value is less than a preset coordinate threshold, the method further includes: Based on the difference in weight distribution between the front and rear of the vehicle, the lateral deviation value and the angular deviation value are applied 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, 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.
6. The method according to claim 1, characterized in that, After the step of determining that the vehicle alignment operation is completed when the second coordinate deviation value is less than a preset coordinate threshold, the method further includes: Based on the condition that the left front camera and the right front camera are set to be at equal distances x1 and x2 from the centerline respectively, 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 center axis, and calculate the distance s2 = x2 - y2 from the right front wheel to the center axis; The deviation value Δs = s1 - s2 is calculated. When y1 = y2, that is, when Δs = 0, it means that the wheel is at the center position of the floating platform.
7. The method according to claim 6, characterized in that, After the step of determining that the vehicle alignment operation is completed when the second coordinate deviation value is less than a preset coordinate threshold, the method further includes: When the floating platform and the motion platform are perpendicular, the zero point of the absolute encoder of the servo motor is calibrated, and the displacement of the motion module is divided into positive and negative parts. When y1 = y2, the position of the servo motor is 0. When the vehicle is in neutral, the speed of all rollers on the floating platform is controlled to be consistent, so that when the left front motion module moves to the left, the front wheels move synchronously to the left, and when the left rear motion module moves to the right, the rear wheels move synchronously to the right.
8. 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, the memory is used to store computer program code, the computer program code including computer instructions, and the one or more processors call the computer instructions to cause the PID control system to perform the method as described in any one of claims 1-7.
9. A computer-readable storage medium comprising instructions, characterized in that, When the instruction is executed on the PID control system, the PID control system performs the method as described in any one of claims 1-7.
10. A computer program product, characterized in that, When the computer program product is run on the PID control system, the PID control system performs the method as described in any one of claims 1-7.
