Vehicle return control method, device, vehicle and storage medium
By optimizing the method of returning the vehicle to its original path, using the obstacle map to optimize the memory path, generate a target path and control the vehicle, the problem of scratch accidents in complex environments is solved, and the reversing efficiency and driving experience are improved.
Patent Information
- Application Number
- CN202410622106.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-05-20
AI Technical Summary
In complex and harsh environments, the vehicle's return-to-origin function is prone to scratching accidents, and existing technology cannot effectively optimize the memory path and adapt to environmental changes in obstacle information.
By judging that the return instruction is received, the current path tracking strategy, memory path and obstacle map are obtained, the memory path is optimized according to the obstacle map, the target path is generated, and the vehicle is controlled according to the path tracking strategy until it reaches the end of the target path.
It can effectively reduce the psychological pressure of drivers when reversing on narrow road sections, improve reversing efficiency, enhance driving experience, and reduce the risk of scratch accidents.
Smart Images

Figure CN118220154B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a vehicle return control method, device, vehicle and storage medium. Background Art
[0002] When the driver is reversing under harsh driving conditions, the complex driving environment often causes great psychological pressure on the driver. In addition, due to the influence of the driver's driving skills, the driver may cause the vehicle to be scratched due to negligence, affecting the efficiency of reversing. Auxiliary driving equipment such as panoramic images and reversing radars may improve the driver's reversing efficiency to a certain extent, but they cannot completely avoid the occurrence of vehicle scratch accidents. The driver still needs to actively control the steering wheel and brake pedal and pay close attention to the surrounding situation throughout the process.
[0003] In the related art, the forward trajectory of the target vehicle is recorded, the target vehicle is controlled to reverse from the current position, and at each reversing moment, the steering wheel angle of the target vehicle is corrected to make the target vehicle return along the forward trajectory.
[0004] The solution in the related art can make the vehicle return along the original path of the memory track. However, since the recorded path in most scenarios has many unreasonable features, such as unnecessary turns, the above solution does not optimize the memory path. In addition, the above solution does not handle the situation where the driving environment changes (surrounding obstacles, vehicles, and pedestrians move, causing the obstacle information to change), so it has great limitations. Summary of the invention
[0005] The present application provides a vehicle return-to-original-route control method, device, vehicle and storage medium to solve the problem that the vehicle's return-to-original-route function is prone to accidents such as vehicle scratches in complex and harsh environments, effectively reduce the driver's psychological pressure when reversing on narrow roads, greatly improve the driver's reversing efficiency, and enhance the driver's driving experience.
[0006] The first embodiment of the present application provides a vehicle return control method, comprising the following steps:
[0007] Determine whether a return-to-original-path instruction is received;
[0008] If the original path return instruction is received, the current path tracking strategy, the current memory path and the obstacle map corresponding to the current memory path are obtained, and when the current memory path meets the preset optimization conditions, the current memory path is optimized according to the obstacle map to obtain the target path;
[0009] The vehicle is controlled according to the current path tracking strategy and the target path until the vehicle reaches an end point of the target path.
[0010] Optionally, in some embodiments, optimizing the current memory path according to the obstacle map to obtain the target path includes:
[0011] Obtaining a maximum curvature of the vehicle;
[0012] The current memorized path is used as a reference line of the target path, and a preset optimization algorithm is used to obtain the target path according to the maximum curvature, the reference line, and an obstacle map corresponding to the current memorized path.
[0013] Optionally, in some embodiments, the obtaining of the current path tracking strategy, the current memorized path, and the obstacle map corresponding to the current memorized path further includes:
[0014] Acquiring the current gear position of the vehicle; and when the current gear position is a forward gear, determining whether the current memory path exceeds a first preset threshold;
[0015] If the current memory path exceeds the first preset threshold, updating the current memory path and the obstacle map corresponding to the current memory path based on a first updating strategy;
[0016] When the current gear is the reverse gear, obtaining the vehicle driving path, and determining whether the difference between the current memory path and the driving path exceeds a second preset threshold;
[0017] If the difference between the current memory path and the driving path exceeds the second preset threshold, the current memory path and the obstacle map corresponding to the current memory path are updated based on the second update strategy; otherwise, the current memory path and the obstacle map corresponding to the current memory path are updated based on the third update strategy.
[0018] Optionally, in some embodiments, the controlling the vehicle according to the current path tracking strategy and the target path until the vehicle reaches an end point of the target path further includes:
[0019] Obtaining current obstacle information of the vehicle;
[0020] Determine the distance between the vehicle and the obstacle according to the current obstacle information, and judge whether the distance is less than a third preset threshold, and whether the duration for which the distance is less than the third preset threshold exceeds a preset duration;
[0021] If the distance is less than the third preset threshold, and the duration for which the distance is less than the third preset threshold does not exceed the preset duration, determining whether an instruction to re-plan the route is received;
[0022] If the command for re-planning the path is received, the target path is updated based on the current obstacle information; if the command for re-planning the path is not received, the vehicle is controlled to exit the original path return control.
[0023] Optionally, in some embodiments, the determining whether the distance is less than the third preset threshold, and whether the duration for which the distance is less than the third preset threshold exceeds the preset duration, further includes:
[0024] If the distance is greater than the third preset threshold, and the duration for which the distance is greater than the third preset threshold does not exceed the preset duration, determining whether the original return instruction is received;
[0025] If the return-to-original-route instruction is not received, the current gear of the vehicle is controlled to be the parking gear, and the return-to-original-route control is exited; if the return-to-original-route instruction is received, the vehicle is controlled to reach the end point of the target path.
[0026] Optionally, in some embodiments, after receiving the original return instruction, the method further includes:
[0027] Acquiring the current speed of the vehicle, and determining whether the vehicle meets a preset path memory condition according to the current speed;
[0028] If the vehicle does not meet the preset path memory condition, there is no need to obtain the current path tracking strategy, the current memory path, and the obstacle map corresponding to the current memory path.
[0029] A second aspect of the present application provides a vehicle return control device, including:
[0030] A judgment module, used to judge whether a return-to-original-path instruction is received;
[0031] an optimization module, configured to obtain a current path tracking strategy, a current memory path, and an obstacle map corresponding to the current memory path when receiving the original path return instruction, and optimize the current memory path according to the obstacle map to obtain a target path when the current memory path meets a preset optimization condition;
[0032] A control module is used to control the vehicle according to the current path tracking strategy and the target path until the vehicle reaches an end point of the target path.
[0033] Optionally, in some embodiments, the optimization module is specifically used to:
[0034] Obtaining a maximum curvature of the vehicle;
[0035] The current memorized path is used as a reference line of the target path, and a preset optimization algorithm is used to obtain the target path according to the maximum curvature, the reference line, and an obstacle map corresponding to the current memorized path.
[0036] Optionally, in some embodiments, the optimization module is further used to:
[0037] Acquiring the current gear position of the vehicle; and when the current gear position is a forward gear, determining whether the current memory path exceeds a first preset threshold;
[0038] When the current memory path exceeds the first preset threshold, updating the current memory path and the obstacle map corresponding to the current memory path based on a first updating strategy;
[0039] When the current gear is the reverse gear, obtaining the vehicle driving path, and determining whether the difference between the current memory path and the driving path exceeds a second preset threshold;
[0040] When the difference between the current memory path and the driving path exceeds the second preset threshold, the current memory path and the obstacle map corresponding to the current memory path are updated based on the second update strategy; otherwise, the current memory path and the obstacle map corresponding to the current memory path are updated based on the third update strategy.
[0041] Optionally, in some embodiments, the control module is further used to:
[0042] Obtaining current obstacle information of the vehicle;
[0043] Determine the distance between the vehicle and the obstacle according to the current obstacle information, and judge whether the distance is less than a third preset threshold, and whether the duration for which the distance is less than the third preset threshold exceeds a preset duration;
[0044] When the distance is less than the third preset threshold and the duration for which the distance is less than the third preset threshold does not exceed the preset duration, determining whether an instruction to re-plan the route is received;
[0045] In the case where the instruction to re-plan the path is received, the target path is updated based on the current obstacle information; in the case where the instruction to re-plan the path is not received, the vehicle is controlled to exit the original path return control.
[0046] Optionally, in some embodiments, the control module is further used to:
[0047] In the case where the distance is greater than the third preset threshold, and the duration for which the distance is greater than the third preset threshold does not exceed the preset duration, determining whether the original route return instruction is received;
[0048] In the case where the return-to-original-route instruction is not received, the current gear position of the vehicle is controlled to be the parking gear, and the return-to-original-route control is exited; in the case where the return-to-original-route instruction is received, the vehicle is controlled to reach the end point of the target path.
[0049] Optionally, in some embodiments, after receiving the original path return instruction, the optimization module is further configured to:
[0050] Acquiring the current speed of the vehicle, and determining whether the vehicle meets a preset path memory condition according to the current speed;
[0051] In the case that the vehicle does not meet the preset path memory condition, it is not necessary to obtain the current path tracking strategy, the current memory path, and the obstacle map corresponding to the current memory path.
[0052] A third aspect of the present application provides a vehicle, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the vehicle return control method as described in the above embodiment.
[0053] The fourth aspect of the present application provides a computer-readable storage medium on which a computer program is stored. The program is executed by a processor to implement the vehicle return control method as described in the above embodiment.
[0054] Therefore, when the current vehicle meets the path memory, the present application tracks the memory path and the obstacle map corresponding to the current memory path in real time. When the current memory path meets the preset optimization conditions, the current memory path is optimized according to the obstacle map to obtain the target path, and the current vehicle is controlled according to the user-defined path tracking method and the target path until the current vehicle reaches the end of the target path. In this way, the problem that the vehicle's return function is prone to vehicle scratches and other accidents in complex and harsh environments is solved, effectively reducing the psychological pressure of the driver when reversing in narrow sections, greatly improving the driver's reversing efficiency, and increasing the driver's driving experience.
[0055] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0057] Figure 1 A flowchart of a vehicle return control method according to an embodiment of the present application;
[0058] Figure 2 A schematic diagram of a return-to-original-path system according to a specific embodiment of the present application;
[0059] Figure 3 is a schematic diagram of a vehicle coordinate system according to a specific embodiment of the present application;
[0060] Figure 4 A schematic diagram of obtaining a memory path according to a specific embodiment of the present application;
[0061] Figure 5 A schematic diagram of optimizing the current memory path according to a specific embodiment of the present application;
[0062] Figure 6 A schematic diagram of re-planning a path according to a specific embodiment of the present application;
[0063] Figure 7 This is a flow chart of a vehicle return control method according to a specific embodiment of the present application;
[0064] Figure 8 It is a block diagram of a vehicle return control device according to an embodiment of the present application;
[0065] Fig. 9 It is a block diagram of a vehicle provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0066] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0067] The following describes the vehicle return-to-original-route control method, device, vehicle and storage medium of the embodiment of the present application with reference to the accompanying drawings. In view of the problem mentioned in the above background technology that the vehicle return-to-original-route function is prone to vehicle scratches and other accidents in complex and harsh environments, the present application provides a vehicle return-to-original-route control method, in which it is determined whether a return-to-original-route instruction is received; if a return-to-original-route instruction is received, the current path tracking strategy, the current memory path and the obstacle map corresponding to the current memory path are obtained, and when the current memory path meets the preset optimization conditions, the current memory path is optimized according to the obstacle map to obtain the target path; the vehicle is controlled according to the current path tracking strategy and the target path until the vehicle reaches the end of the target path. In this way, the problem that the vehicle return-to-original-route function is prone to vehicle scratches and other accidents in complex and harsh environments is solved, the psychological pressure of the driver reversing in narrow sections is effectively reduced, the efficiency of the driver reversing is greatly improved, and the driving experience of the driver is increased.
[0068] Specifically, Figure 1 A flowchart of a vehicle return control method provided in an embodiment of the present application.
[0069] like Figure 1 As shown, the vehicle return control method includes the following steps:
[0070] In step S101, it is determined whether a return-to-original-route instruction is received.
[0071] The return-to-original-route instruction in the embodiment of the present application is an instruction issued by the driver to control the current vehicle to return to the starting point of the path, as well as the user's configuration information for the return-to-original-route function.
[0072] Specifically, Figure 2 This is a schematic diagram of a return-to-original-path system according to a specific embodiment of the present application. Figure 2 As shown, the system includes: a path memory component, a path optimization processing component, a path tracking component, a human-computer interaction component, a fault diagnosis component and a task scheduling component. The embodiment of the present application activates the original path return system after receiving the original path return instruction through the human-computer interaction component.
[0073] Among them, the path memory component of the embodiment of the present application is used to obtain the memory information of the vehicle (including but not limited to the vehicle's posture information and the relative relationship between the vehicle and surrounding obstacles mentioned in the embodiment of the present application), obtain the memory path based on the memory information and establish an obstacle map, and the path memory component of the embodiment of the present application can update the memory path and obstacle map in real time.
[0074] The path optimization processing component of the embodiment of the present application is used to extract the memory path information and process the memory path information according to the user configuration. The component provides two path optimization modes: optimizing the current memory path and not optimizing the current memory path. The user can select the optimization mode through the human-computer interaction component.
[0075] The path tracking component of the embodiment of the present application is used to control the vehicle to return to the original route according to user configuration information. The configuration information of the path tracking component includes: lateral control and lateral and longitudinal control. The user can select the path tracking mode through the human-computer interaction component.
[0076] The human-computer interaction component of the embodiment of the present application provides voice interaction services or somatosensory interaction services to users facing the device terminal; the fault diagnosis component of the embodiment of the present application can be composed of a sensor monitoring circuit software program, a fault diagnosis communication interface, etc., and has a self-diagnosis function, which can detect and judge the working conditions of each component of the original return system, and display the fault in the form of code. The task scheduling component of the embodiment of the present application is used to manage and schedule tasks, trigger the execution of tasks according to preset conditions, and monitor the execution status of tasks to ensure that tasks can be completed on time and with quality.
[0077] Based on the above introduction, the original path return system of the embodiment of the present application provides multiple customization methods for users to customize the original path return function, including but not limited to whether to optimize the memory path, including: completely tracking the memory path (not optimizing the memory path), or the system optimizing the memory path; path tracking control mode, including: only controlling the horizontal direction or controlling the horizontal and vertical directions together. Therefore, the original path return instruction of the embodiment of the present application also includes the user's configuration information for the original path return function.
[0078] In some cases, the system defaults to full tracking of the memory path and lateral control only when it detects that the user has not configured it.
[0079] It should be noted that after the vehicle is powered on, the return-to-origin system of the embodiment of the present application will establish a global coordinate system and output the vehicle coordinate information. Figure 3 This is a schematic diagram of a vehicle coordinate system of a specific embodiment of the present application, such as Figure 3 As shown, the embodiment of the present application uses the midpoint of the rear axle of the vehicle as the origin of the coordinate system, the direction of the front of the vehicle as the x-axis, and the left direction perpendicular to the x-axis as the y-axis to establish a global coordinate system. During the driving process of the vehicle, the original route return system outputs the coordinate information of the vehicle at all times. In some embodiments, the coordinate information of the vehicle includes but is not limited to the horizontal coordinate x, the vertical coordinate y, and the heading angle yaw.
[0080] Therefore, the present application activates the return-to-origin system of the embodiment of the present application by receiving the return-to-origin command issued by the user, and initializes the system according to the user-defined configuration information, thereby controlling the return of the current vehicle according to the return-to-origin command. The return-to-origin system of the embodiment of the present application does not require additional costs, and can control the vehicle to return to the origin of the memorized path only through software, greatly improving the efficiency of the user's reversing. Customizing the configuration information of the return-to-origin function can improve the user's driving pleasure and reduce the user's psychological pressure when driving under complex working conditions.
[0081] In step S102, if a return instruction is received, the current path tracking strategy, the current memory path and the obstacle map corresponding to the current memory path are obtained, and when the current memory path meets the preset optimization conditions, the current memory path is optimized according to the obstacle map to obtain the target path.
[0082] Among them, the current path tracking strategy is the lateral control and the lateral and longitudinal control mentioned in the above embodiment. The user can customize the current path tracking strategy. If the user does not configure it, the system defaults to lateral control only. The current memory path and the obstacle map corresponding to the current memory path are obtained through the path memory component. After the user activates the path memory component, the system will generate the memory path and the obstacle map corresponding to the current memory path based on the memory information.
[0083] Optionally, in some embodiments, after receiving the instruction to return to the original route, it also includes: obtaining the current speed of the vehicle, and judging whether the vehicle meets the preset path memory conditions based on the current speed; if the vehicle does not meet the preset path memory conditions, there is no need to obtain the current path tracking strategy, the current memory path and the obstacle map corresponding to the current memory path.
[0084] It is understandable that the embodiment of the present application needs to first determine whether the path memory component is activated, that is, the original route return system of the embodiment of the present application detects the vehicle status in real time and determines whether the current vehicle meets the triggering conditions of the path memory module, that is, the path memory conditions preset in the embodiment of the present application.
[0085] Specifically, the path memory condition preset in the embodiment of the present application is that the vehicle speed is less than 10 kmph. When the current vehicle speed is greater than 10 kmph, it is determined that the vehicle does not meet the preset path memory condition at this time, and the system fails to activate the path memory component, so there is no need to obtain the current path tracking strategy, the current memory path, and the obstacle map corresponding to the current memory path; when the current vehicle speed is less than 10 kmph, it is determined that the vehicle meets the preset path memory condition at this time, and the system successfully activates the path memory component. Furthermore, the embodiment of the present application needs to obtain the current path tracking strategy, the current memory path, and the obstacle map corresponding to the current memory path.
[0086] It should be noted that, regarding the vehicle speed threshold involved in the preset path memory condition in the above embodiment, this application does not make any specific limitation on the vehicle speed threshold, and those skilled in the art can determine the size of the vehicle speed threshold by pre-calibration.
[0087] Optionally, in some embodiments, obtaining the current path tracking strategy, the current memory path and the obstacle map corresponding to the current memory path also includes: obtaining the current gear of the vehicle; when the current gear is the forward gear, determining whether the current memory path exceeds a first preset threshold; if the current memory path exceeds the first preset threshold, updating the current memory path and the obstacle map corresponding to the current memory path based on the first update strategy; when the current gear is the reverse gear, obtaining the vehicle's driving path, and determining whether the difference between the current memory path and the driving path exceeds a second preset threshold; if the difference between the current memory path and the driving path exceeds the second preset threshold, updating the current memory path and the obstacle map corresponding to the current memory path based on the second update strategy, otherwise updating the current memory path and the obstacle map corresponding to the current memory path based on the third update strategy.
[0088] It can be understood that the acquisition of the current memory path depends on the user's current driving path. The present application takes into account that the vehicle's forward and backward movement, vehicle posture information, and the relative relationship of obstacles around the vehicle may change the current driving path. Therefore, in order to obtain a more accurate memory path and obstacle map, the embodiment of the present application detects the vehicle status in real time according to the vehicle's current gear position to obtain the latest memory path and obstacle map.
[0089] Figure 4 This is a schematic diagram of obtaining a memory path according to a specific embodiment of the present application. In some cases, the current gear of the vehicle is D gear, and the system always memorizes information about the vehicle's most recent distance Dt. The embodiment of the present application sets Dt to 50m, that is, the first preset threshold of the embodiment of the present application, and then determines whether the acquired memory path exceeds 50m. When the memory path exceeds 50m, the current memory path and the obstacle map corresponding to the current memory path are updated according to the first update strategy of the embodiment of the present application.
[0090] The first update strategy of the embodiment of the present application is as follows Figure 4 As shown in (a), the earliest memorized path is deleted, and the latest path and obstacle information are added to always ensure that the path and obstacle information of the vehicle's most recent travel distance Dt are memorized.
[0091] In other cases, the vehicle's current gear is R gear, and the system needs to constantly compare the vehicle's backward path, that is, the driving path of the embodiment of the present application, and the path previously memorized in D gear, that is, the current memory path of the embodiment of the present application, and calculate the difference between the two. When the lateral offset between the backward path and the D gear memory path exceeds a second preset threshold, the current memory path and the obstacle map corresponding to the current memory path are updated based on the second update strategy; otherwise, the current memory path and the obstacle map corresponding to the current memory path are updated based on the third update strategy.
[0092] The second update strategy of the embodiment of the present application is that the system clears the previously memorized path information; the third update strategy of the embodiment of the present application is as follows Figure 4 As shown in (b), that is, when the system detects that the difference is less than the second preset threshold, the system will erase the path and obstacle information of the R gear driving in the original memorized path information.
[0093] It should be noted that the second preset threshold of the present application may be 0.5 m. The present application does not specifically limit the settings of the first preset threshold and the second preset threshold, and those skilled in the art may obtain them through pre-calibration.
[0094] Furthermore, after the user shifts into R gear, the system will pop up a button on the instrument panel to activate the return function through the manual interaction component. If the user activates this function, it is necessary to determine whether the current memory path meets the preset optimization conditions.
[0095] It is understandable that the return to original path function of the embodiment of the present application can be customized by the user whether to optimize the path, that is, the two optimization modes mentioned in the above embodiment: completely tracking the memory path (not optimizing the current memory path) and optimizing the memory path.
[0096] Specifically, the preset optimization condition of the embodiment of the present application is that the user customizes the selection to optimize the memory path. If the user configures to completely track the memory path, that is, not to optimize the current memory path, the system directly extracts the current memory path and outputs it to the path tracking component.
[0097] Optionally, in some embodiments, the target path is obtained by optimizing the current memory path according to the obstacle map, including: obtaining the maximum curvature of the vehicle; using the current memory path as a reference line of the target path, and using a preset optimization algorithm to obtain the target path according to the maximum curvature, the reference line and the obstacle map corresponding to the current memory path.
[0098] Specifically, if the vehicle meets the preset optimization conditions, that is, the user configures it to optimize the current memory path, the system will first lock the information of the current memory path, and then use the current memory path as the reference line for the optimization path, such as Figure 5As shown in the figure, the dotted line is the reference line and the solid line is the optimized target path. The system optimizes the current memory path using the optimization algorithm based on the memorized obstacle map information, and outputs the target path to the path tracking component after the path optimization is completed.
[0099] It is understandable that the driver will inevitably make some operations to avoid vehicles and pedestrians while driving, which will result in the part memorized by the return to original route function, that is, the current memorized path, having frequent turns and poor smoothness. This part of the path is not only meaningless for reversing, but also affects the steering wheel control effect during path tracking; at the same time, since the steering system has a control dead zone when responding to the instructions of the return to original route system, that is, it cannot respond to large turn requests such as the driver turning the steering wheel to the end, and the user often has a relatively large steering wheel action when entering a U-shaped curve, this often exceeds the response range of the control system, which causes the memorized path curvature to exceed the system response range, and the system cannot track the path, and the system tracking fails.
[0100] Therefore, the embodiment of the present application will use the current memory path as a reference line for returning to the original route, and then smooth the current memory path based on the obstacle map information of the current memory path to optimize unreasonable vehicle steering operations. At the same time, the maximum curvature that the steering system can respond to is used as a constraint to optimize the large curvature path information that exceeds the response range of the steering system in advance to prevent tracking failure.
[0101] Among them, the optimization algorithm of the embodiment of the present application includes but is not limited to optimization algorithms such as quadratic programming. Taking the quadratic programming algorithm as an example, the optimization objective function mentioned in the embodiment of the present application is shown in the following formula (1), which is mainly divided into several parts such as smoothness constraint, curvature constraint, distance constraint from obstacle and distance constraint from reference line.
[0102] + + + + ; (1)
[0103] in, , , and Respectively represent the weight coefficient of each optimization item, and Respectively represent the horizontal and vertical coordinates of the path points to be optimized, and Indicates the horizontal and vertical coordinates of the reference line path point, x obi and obirepresents the horizontal and vertical coordinates of the target path point. The objective function represents the similarity cost, smoothness cost, compactness cost, and obstacle distance cost of the optimized path and the original path point from left to right. g(x) represents the relationship between the path point and the obstacle distance cost. The specific relationship is shown in formula (2):
[0104] ; (2)
[0105] Among them, x is the waypoint, and d is the distance between the waypoint and the obstacle.
[0106] Therefore, the present application uses the current memory path as a reference path, sets different optimization weights, optimizes the memory path, simulates tracking failures, and improves the path tracking effect.
[0107] In step S103, the vehicle is controlled according to the current path tracking strategy and the target path until the vehicle reaches the end of the target path.
[0108] Among them, the current path tracking strategy of the embodiment of the present application includes: only lateral control of the vehicle and lateral and longitudinal control of the vehicle.
[0109] Specifically, the current path tracking strategy is a user-defined setting. The embodiment of the present application controls the vehicle to return to the original route through the path tracking component based on the current path tracking strategy and the target path. If the user configures the vehicle to only control the lateral direction, the return to original route function will only control the steering system laterally after activation, and the longitudinal direction will be controlled by the driver. At this time, the system will monitor the longitudinal vehicle speed. When the vehicle speed is greater than the threshold K (the threshold K can be set to 5kmph), the system will prompt the driver that the speed is too fast and please reduce the speed. When the vehicle speed is greater than the threshold M (the threshold M can be set to 10kmph), the system will exit the lateral control and prompt the driver to exit the function.
[0110] Optionally, in some embodiments, the vehicle is controlled according to the current path tracking strategy and the target path until the vehicle reaches the end of the target path, and also includes: obtaining current obstacle information of the vehicle; determining the distance between the vehicle and the obstacle according to the current obstacle information, and judging whether the distance is less than a third preset threshold, and whether the duration for which the distance is less than the third preset threshold exceeds a preset duration; if the distance is less than the third preset threshold, and the duration for which the distance is less than the third preset threshold does not exceed a preset duration, judging whether an instruction to re-plan the path is received; if an instruction to re-plan the path is received, updating the target path based on the current obstacle information; if no instruction to re-plan the path is received, controlling the vehicle to exit the original path and return to control.
[0111] Among them, the third preset threshold value of the embodiment of the present application is 30cm, and the preset time length is 60s.
[0112] It is understandable that if the user configures the vehicle to be controlled horizontally and vertically, the system will use the method of coordinated horizontal and vertical control to track the path. During the path following process, the system constantly detects obstacle information around the vehicle and gives the driver light and sound prompts.
[0113] Specifically, Figure 6 This is a schematic diagram of re-planning a path for a specific embodiment of the present application, such as Figure 6 As shown, the system constantly detects information about the vehicle and surrounding obstacles through on-board information collection modules such as ultrasonic radar. When it is detected that the distance between the vehicle's direction of travel and the obstacle is less than 30 cm, and the duration of being less than 30 cm does not exceed 60 seconds, that is, the obstacle has not moved, the system will prompt the driver whether he needs to re-plan the route to return to the origin of the memorized route. If the user clicks to agree, the system will re-plan the route, try to bypass and control the vehicle to return to the origin, otherwise, the system will exit directly.
[0114] In addition, when it is detected that the distance between the vehicle and the obstacle is less than 30 cm, the return-to-origin system of the embodiment of the present application will immediately stop the vehicle and wait for the obstacle to be removed.
[0115] Optionally, in some embodiments, determining whether the distance is less than a third preset threshold and whether the duration for which the distance is less than the third preset threshold exceeds the preset duration also includes: if the distance is greater than the third preset threshold and the duration for which the distance is greater than the third preset threshold does not exceed the preset duration, determining whether a return-to-original-route instruction is received; if the return-to-original-route instruction is not received, controlling the current gear of the vehicle to the parking gear and exiting the return-to-original-route control; if the return-to-original-route instruction is received, controlling the vehicle to reach the end point of the target path.
[0116] In some cases, if the distance between the vehicle and the obstacle is greater than 30 cm and the duration of being greater than 30 cm exceeds 60 seconds, the obstacle is determined to have been removed and the system will prompt the driver whether to continue the return function. If the user clicks Continue, the system will continue to control the vehicle to return to the origin. If the user clicks Cancel, the return system will be exited, the vehicle will be shifted into P gear, and the EPB (Electrical Park Brake) will be engaged.
[0117] Therefore, during the return-to-original-route control process, the present application detects the distance relationship between the vehicle and the obstacle through the return-to-original-route system, and provides different processing measures according to different user configuration definitions.
[0118] In order to enable those skilled in the art to further understand the vehicle return control method of the embodiment of the present application, the following examples are listed in conjunction with the accompanying drawings to schematically illustrate the implementation steps of the method.
[0119] Specifically, Figure 7 This is a flow chart of a vehicle return control method according to a specific embodiment of the present application. Figure 7 As shown, the method may include the following steps:
[0120] (1) The vehicle is powered on, the function is enabled, the system returns to the original route to establish a global coordinate system, and outputs the vehicle coordinate information.
[0121] (2) The user configures the properties of the return to original path function, including the path tracking method (control only the horizontal direction or control both the horizontal and vertical directions) and whether to optimize the memory path (fully track the memory path or the system optimizes the memory path). After the user completes the function configuration, the return to original path function is activated. If the system detects that the user has not configured it, the default selection is to fully track the memory path and only control the horizontal direction.
[0122] (3) The system detects whether the vehicle status meets the path memory conditions. If the vehicle meets the triggering conditions of the path memory component, that is, the vehicle speed is less than 10 kmph (the parameter can be calibrated), the system activates the path memory component.
[0123] like Figure 4 As shown in (a), when the vehicle is in gear D, the system always memorizes the information of the vehicle's most recent distance Dt (the value of Dt can be calibrated, for example, Dt is 50m). The system will use the memorized information (the memorized information mentioned in the embodiment of the present application includes but is not limited to the vehicle's posture information and the relative relationship between the vehicle and the surrounding obstacles) to establish an obstacle map (memorizing the relative relationship between the vehicle and obstacles). When the system detects that the memorized path exceeds the distance Dt, the system will update the memorized path and obstacle map, delete the earliest memorized path, add the latest path and obstacle information, and always ensure that the path and obstacle information of the vehicle's most recent distance Dt are memorized.
[0124] like Figure 4 As shown in (b), when the system detects that the vehicle is in R gear, the system constantly compares the vehicle's backward driving path with the path previously memorized in D gear. If the lateral deviation between the backward driving path and the D gear memorized path exceeds a set threshold (the threshold set in the embodiment of the present application is 0.5m), the system will clear the previously memorized path information; when the system detects that the deviation is less than the set threshold, the system will erase the R driving path and obstacle information from the original memorized path information.
[0125] The system constantly monitors the vehicle status and determines whether the user has activated the return function. When the driver shifts into the R gear, a button to activate the return function will pop up on the instrument panel. If the driver activates the function, the system proceeds to step (4).
[0126] (4) The system extracts the memory path information and processes the memory path information according to the user configuration. If the user configures not to optimize the memory path, the system directly extracts the memory path information and outputs it to the path tracking component, and then enters step (5); if the user configures to optimize the memory path, the system first locks the memory path information, and then uses the memory path information as a reference line for the optimized path, such as Figure 5 As shown, the system optimizes the path using an optimization algorithm based on the remembered obstacle map information. After the path optimization is completed, the path is output to the path tracking module and the process proceeds to step (5).
[0127] The embodiment of the present application uses the memorized original path as a reference line for returning to the original path, and then smoothes the memorized path based on the memorized obstacle map information to optimize unreasonable vehicle steering operations. At the same time, the maximum curvature that the steering system can respond to is used as a constraint to optimize the large curvature path information that exceeds the response range of the steering system in advance to prevent tracking failure.
[0128] (5) The path tracking component controls the vehicle to return to the original route according to the user configuration information. If the user configures it to control only the lateral direction, the original route return function will only control the steering system for lateral control after activation, and the longitudinal direction will be controlled by the driver. At this time, the system will monitor the longitudinal vehicle speed. When the vehicle speed is greater than the threshold K (K is set to 5 kmmph in the embodiment of the present application), the system will prompt the driver to reduce the speed. When the vehicle speed is greater than the threshold M (M is set to 10 kmmph in the embodiment of the present application), the system will exit the lateral control and prompt the driver to exit the function.
[0129] If the user configures the system to control the horizontal and vertical directions, the system will use the method of coordinated horizontal and vertical control to track the path. During the path following process, the system constantly detects obstacle information around the vehicle and gives the driver light and sound prompts. Specifically, the system constantly detects information about the vehicle and surrounding obstacles through on-board information collection modules such as ultrasonic radar. When it is detected that the distance between the vehicle's direction of travel and the obstacle is lower than the threshold G (G in the embodiment of the present application is 30cm), the system will brake the vehicle and wait for the obstacle to move away. If the obstacle is removed within the specified time T (T in the embodiment of the present application is 60s), the system will prompt the driver whether to continue the return function. If the user clicks to continue, the system will continue to control the vehicle to return to the origin. If the user clicks to cancel, it will enter step (6). If the obstacle does not move within the specified time T, the system will prompt the driver whether he needs to re-plan the path to return to the path memory origin. If the user clicks yes, Figure 6 As shown, the system will re-plan the path to try to bypass and control the vehicle to return to the origin. If the path can be planned, it will enter step (5), otherwise the system will exit directly.
[0130] (6) Exit the return system, shift the vehicle into P gear, and pull up the EPB.
[0131] Therefore, the vehicle return control method of the embodiment of the present application sets custom options, controls the vehicle to return to the original route according to the user-defined configuration information, and detects the relationship between the vehicle and the obstacle in real time during the return process, provides different processing measures, greatly improves the driver's reversing efficiency, and enhances the driver's driving experience.
[0132] According to the vehicle return control method proposed in the embodiment of the present application, by judging whether the return instruction is received, if the return instruction is received, the current path tracking strategy, the current memory path and the obstacle map corresponding to the current memory path are obtained, and when the current memory path meets the preset optimization conditions, the current memory path is optimized according to the obstacle map to obtain the target path, and the vehicle is controlled according to the current path tracking strategy and the target path until the vehicle reaches the end of the target path. In this way, the problem that the vehicle's return function is prone to vehicle scratches and other accidents in complex and harsh environments is solved, and the psychological pressure of the driver when reversing in narrow sections is effectively reduced, the driver's reversing efficiency is greatly improved, and the driver's driving experience is increased.
[0133] Next, the vehicle return control device proposed in accordance with the embodiment of the present application will be described with reference to the accompanying drawings.
[0134] Figure 8 It is a block diagram of a vehicle return control device according to an embodiment of the present application.
[0135] like Figure 8 As shown, the vehicle return control device 10 includes: a judgment module 100, an optimization module 200 and a control module 300.
[0136] Specifically, the judgment module 100 is used to judge whether a return-to-original-route instruction is received; the optimization module 200 is used to obtain the current path tracking strategy, the current memory path and the obstacle map corresponding to the current memory path when the return-to-original-route instruction is received, and when the current memory path meets the preset optimization conditions, optimize the current memory path according to the obstacle map to obtain the target path; the control module 300 is used to control the vehicle according to the current path tracking strategy and the target path until the vehicle reaches the end of the target path.
[0137] Optionally, in some embodiments, the optimization module 200 is specifically used to: obtain the maximum curvature of the vehicle; use the current memory path as a reference line for the target path, and use a preset optimization algorithm to obtain the target path based on the maximum curvature, the reference line, and an obstacle map corresponding to the current memory path.
[0138] Optionally, in some embodiments, the optimization module 200 is also used to: obtain the current gear of the vehicle; when the current gear is the forward gear, determine whether the current memory path exceeds a first preset threshold; when the current memory path exceeds the first preset threshold, based on the first update strategy, update the current memory path and the obstacle map corresponding to the current memory path; when the current gear is the reverse gear, obtain the vehicle's driving path, and determine whether the difference between the current memory path and the driving path exceeds a second preset threshold; when the difference between the current memory path and the driving path exceeds the second preset threshold, based on the second update strategy, update the current memory path and the obstacle map corresponding to the current memory path, otherwise based on the third update strategy, update the current memory path and the obstacle map corresponding to the current memory path.
[0139] Optionally, in some embodiments, the control module 300 is also used to: obtain current obstacle information of the vehicle; determine the distance between the vehicle and the obstacle based on the current obstacle information, and determine whether the distance is less than a third preset threshold, and whether the duration for which the distance is less than the third preset threshold exceeds a preset duration; if the distance is less than the third preset threshold, and the duration for which the distance is less than the third preset threshold does not exceed a preset duration, determine whether an instruction to re-plan the path is received; if an instruction to re-plan the path is received, update the target path based on the current obstacle information, and if no instruction to re-plan the path is received, control the vehicle to exit the original route and return to control.
[0140] Optionally, in some embodiments, the control module 300 is also used to: when the distance is greater than a third preset threshold and the duration of the distance being greater than the third preset threshold does not exceed the preset duration, determine whether a return-to-original-route instruction has been received; when no return-to-original-route instruction has been received, control the current gear position of the vehicle to the parking gear and exit the return-to-original-route control; when a return-to-original-route instruction has been received, control the vehicle to reach the end point of the target path.
[0141] Optionally, in some embodiments, after receiving the instruction to return to the original route, the optimization module 200 is also used to: obtain the current speed of the vehicle, and determine whether the vehicle meets the preset path memory conditions based on the current speed; if the vehicle does not meet the preset path memory conditions, there is no need to obtain the current path tracking strategy, the current memory path and the obstacle map corresponding to the current memory path.
[0142] It should be noted that the above explanations of the embodiment of the vehicle return control method are also applicable to the vehicle return control device of this embodiment, and will not be repeated here.
[0143] According to the vehicle return-to-original-route control device proposed in the embodiment of the present application, by judging whether a return-to-original-route instruction is received, if a return-to-original-route instruction is received, the current path tracking strategy, the current memory path, and the obstacle map corresponding to the current memory path are obtained, and when the current memory path meets the preset optimization conditions, the current memory path is optimized according to the obstacle map to obtain the target path, and the vehicle is controlled according to the current path tracking strategy and the target path until the vehicle reaches the end of the target path. In this way, the problem that the return-to-original-route function of the vehicle is prone to vehicle scratches and other accidents in complex and harsh environments is solved, and the psychological pressure of the driver when reversing in narrow sections is effectively reduced, the efficiency of the driver's reversing is greatly improved, and the driver's driving experience is increased.
[0144] Fig. 9 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application. The vehicle may include:
[0145] A memory 901 , a processor 902 , and a computer program stored in the memory 901 and executable on the processor 902 .
[0146] When the processor 902 executes the program, the vehicle return control method provided in the above embodiment is implemented.
[0147] Furthermore, the vehicle also includes:
[0148] The communication interface 903 is used for communication between the memory 901 and the processor 902 .
[0149] The memory 901 is used to store computer programs that can be executed on the processor 902 .
[0150] The memory 901 may include a high-speed RAM (Random Access Memory) memory, and may also include a non-volatile memory, such as at least one disk memory.
[0151] If the memory 901, the processor 902 and the communication interface 903 are implemented independently, the communication interface 903, the memory 901 and the processor 902 can be connected to each other through a bus and communicate with each other. The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0152] Optionally, in a specific implementation, if the memory 901, the processor 902 and the communication interface 903 are integrated on a chip, the memory 901, the processor 902 and the communication interface 903 can communicate with each other through an internal interface.
[0153] The processor 902 may be a CPU (Central Processing Unit), or an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.
[0154] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned vehicle return control method.
[0155] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0156] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0157] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or N executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0158] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one or a combination of multiple of the following technologies known in the art: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array, a field programmable gate array, etc.
[0159] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0160] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A vehicle return control method, characterized in that: The following steps are involved: Determine whether a return-to-original-path instruction is received; If the original path return instruction is received, the current path tracking strategy, the current memory path and the obstacle map corresponding to the current memory path are obtained, and when the current memory path meets the preset optimization conditions, the current memory path is optimized according to the obstacle map to obtain the target path; Controlling the vehicle according to the current path tracking strategy and the target path until the vehicle reaches an end point of the target path; Wherein, the obtaining of the current path tracking strategy, the current memory path and the obstacle map corresponding to the current memory path further includes: obtaining the current gear of the vehicle; when the current gear is a forward gear, determining whether the current memory path exceeds a first preset threshold; if the current memory path exceeds the first preset threshold, updating the current memory path and the obstacle map corresponding to the current memory path based on a first update strategy; when the current gear is a reverse gear, obtaining the vehicle driving path, and determining whether the difference between the current memory path and the driving path exceeds a second preset threshold; if the difference between the current memory path and the driving path exceeds the second preset threshold, updating the current memory path and the obstacle map corresponding to the current memory path based on a second update strategy, otherwise updating the current memory path and the obstacle map corresponding to the current memory path based on a third update strategy; Among them, the controlling the vehicle according to the current path tracking strategy and the target path until the vehicle reaches the end of the target path also includes: obtaining current obstacle information of the vehicle; determining the distance between the vehicle and the obstacle according to the current obstacle information, and judging whether the distance is less than a third preset threshold, and whether the duration for which the distance is less than the third preset threshold exceeds a preset duration; if the distance is less than the third preset threshold, and the duration for which the distance is less than the third preset threshold does not exceed the preset duration, judging whether an instruction to re-plan the path is received; if the instruction to re-plan the path is received, updating the target path based on the current obstacle information; if the instruction to re-plan the path is not received, controlling the vehicle to exit the original path and return to control.
2. The vehicle return control method according to claim 1, characterized in that: The step of optimizing the current memory path according to the obstacle map to obtain the target path includes: Obtaining a maximum curvature of the vehicle; The current memorized path is used as a reference line of the target path, and a preset optimization algorithm is used to obtain the target path according to the maximum curvature, the reference line, and an obstacle map corresponding to the current memorized path.
3. The vehicle return control method according to claim 1, characterized in that: The determining whether the distance is less than the third preset threshold, and whether the duration for which the distance is less than the third preset threshold exceeds the preset duration, further includes: If the distance is greater than the third preset threshold, and the duration for which the distance is greater than the third preset threshold does not exceed the preset duration, determining whether the original return instruction is received; If the return-to-original-route instruction is not received, the current gear of the vehicle is controlled to be the parking gear, and the return-to-original-route control is exited; if the return-to-original-route instruction is received, the vehicle is controlled to reach the end point of the target path.
4. The vehicle return control method according to claim 1, characterized in that: After receiving the original return instruction, the method further includes: Acquiring the current speed of the vehicle, and determining whether the vehicle meets a preset path memory condition according to the current speed; If the vehicle does not meet the preset path memory condition, there is no need to obtain the current path tracking strategy, the current memory path, and the obstacle map corresponding to the current memory path.
5. A vehicle return control device, characterized in that: The device is used to implement the vehicle return control method according to any one of claims 1 to 4, and the device includes: A judgment module, used to judge whether a return-to-original-path instruction is received; an optimization module, configured to obtain a current path tracking strategy, a current memory path, and an obstacle map corresponding to the current memory path when receiving the original path return instruction, and optimize the current memory path according to the obstacle map to obtain a target path when the current memory path meets a preset optimization condition; a control module, configured to control the vehicle according to the current path tracking strategy and the target path until the vehicle reaches an end point of the target path; Wherein, the optimization module is further used to: obtain the current gear of the vehicle; when the current gear is a forward gear, determine whether the current memory path exceeds a first preset threshold; if the current memory path exceeds the first preset threshold, update the current memory path and the obstacle map corresponding to the current memory path based on a first update strategy; when the current gear is a reverse gear, obtain the vehicle driving path, and determine whether the difference between the current memory path and the driving path exceeds a second preset threshold; if the difference between the current memory path and the driving path exceeds the second preset threshold, update the current memory path and the obstacle map corresponding to the current memory path based on a second update strategy, otherwise update the current memory path and the obstacle map corresponding to the current memory path based on a third update strategy; Among them, the control module is also used to: obtain current obstacle information of the vehicle; determine the distance between the vehicle and the obstacle according to the current obstacle information, and judge whether the distance is less than a third preset threshold, and whether the duration of the distance being less than the third preset threshold exceeds a preset duration; if the distance is less than the third preset threshold, and the duration of the distance being less than the third preset threshold does not exceed the preset duration, judge whether an instruction to re-plan the path is received; if the instruction to re-plan the path is received, update the target path based on the current obstacle information, and if the instruction to re-plan the path is not received, control the vehicle to exit the original route and return control.
6. The device according to claim 5, characterized in that The optimization module is specifically used for: Obtaining a maximum curvature of the vehicle; The current memorized path is used as a reference line of the target path, and a preset optimization algorithm is used to obtain the target path according to the maximum curvature, the reference line, and an obstacle map corresponding to the current memorized path.
7. A vehicle, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the vehicle return control method as described in any one of claims 1 to 4.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the vehicle return control method as described in any one of claims 1 to 4.
