Memory parking path correction method, driving system and computer readable storage medium
By revising the parking path in real time to deal with obstacles, the risk problem caused by insufficient obstacle records in autonomous parking is solved and a safer and more efficient parking process is achieved.
Patent Information
- Application Number
- CN202410697077.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-03
AI Technical Summary
Existing autonomous driving technology fails to effectively record and handle obstacles during parking, resulting in high computing power and possible startup scratches or collision risks.
By collecting and revising the initial parking path in real time, the path is adjusted according to the identified obstacles, and a real-time parking path is generated to avoid obstacles and optimize path planning, reducing the computing power of calculating obstacles.
Effectively prevent scratches or collisions at startup, reduce obstacle detection computing power during memory parking, and improve parking efficiency and safety.
Smart Images

Figure CN118579062A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of autonomous driving, and specifically relates to a memory parking path correction method, a driving system and a computer-readable storage medium. Background Art
[0002] Autonomous driving has become a trend in vehicle intelligent systems, and memory parking technology is also an important part of autonomous driving. Its purpose is to enable the vehicle to park completely autonomously without manual control.
[0003] In the existing technology, memory parking has a mapping stage. During this stage, the vehicle will drive normally and the surrounding collection module will record the surrounding environment features and draw an initial path. When entering the road section for autonomous driving or parking for the second time, the path can provide the vehicle with an initial path for reference to improve parking efficiency.
[0004] However, existing technologies often do not record obstacles during the mapping stage, but rely on the memory of parking sensors to assist in vehicle adjustment to avoid collisions between the vehicle and obstacles. However, this method has the problem of real-time calculation of parking obstacles, which leads to a relatively large computing power. Moreover, during the second start, if the map is built without considering the obstacle factor, obstacles in the sensor's visual blind spot may not be identified, which will eventually lead to the risk of start-up scratches or start-up collisions. Summary of the invention
[0005] In order to solve this problem, the present invention proposes a memory parking path correction method, a driving system and a computer-readable storage medium. By revising the initial parking path in real time, the parking system can modify the mapping path according to the identified obstacles, so that when parking for the second time, the location and area of the obstacles exist in the path to prevent scratches or collisions when starting. At the same time, correcting the path can reduce the computing power of obstacles during the second memory parking and calculate a more preferred path planning.
[0006] The purpose of the present invention is achieved through the following technical solutions:
[0007] In a first aspect, the present invention provides a parking path correction method, comprising:
[0008] Collect initial environmental data before the vehicle is started, and the user drives the vehicle to park according to the initial environmental data, and establishes an initial parking path;
[0009] Collect real-time environmental data during the parking process of the vehicle, and revise the initial parking path in real time based on the real-time environmental data to generate a real-time parking path;
[0010] Drive the vehicle to park according to the real-time parking path.
[0011] During the initial mapping stage, after collecting the initial environmental data before startup, the user turns on the mapping function and drives the car to start the initial parking mapping to determine the initial parking path. After collecting the initial environmental data before startup, the surrounding areas of the mapping point and the path to the mapping point can be effectively determined, and the initial environmental data can be provided for the next parking to prevent the vehicle from encountering obstacles at the starting point and avoid scratches. During the collection of the initial path or each parking process, the real-time environmental data of the surrounding area is also revised in real time, including obstacles, and the final revised path is saved as the real-time parking path. According to the real-time parking path, the next time parking is started, the vehicle is parked according to the real-time parking path. By calculating the real-time parking path with obstacles, the path can be optimized during the parking process to reduce the computing power for calculating obstacles.
[0012] In some implementations, the initial environment data establishes an initial parking path, including:
[0013] Record the initial GPS point, set the map number and vehicle position at the parking lot entrance;
[0014] After entering the underground parking lot, the vehicle steering angle and tire rotation sensor are used to obtain the driving distance and record the entrance positioning path;
[0015] The user locates the initial mapping point, extracts the initial environmental data through SLAM technology, and records the initial GPS point, map serial number, vehicle position, and entrance positioning path into the initial environmental data;
[0016] Based on the initial environmental data, the user or the vehicle parks itself, and the initial parking path is established by combining the steering wheel steering angle and the tire rotation sensor to obtain the driving distance.
[0017] The initial environmental data includes the path from the parking lot entrance to the internal mapping point of the parking lot and the vehicle's posture. The data is recorded mainly to prevent the underground parking lot from being unable to receive GPS signals, which makes it impossible for the vehicle to find the initial mapping point. By using the steering wheel steering angle, the vehicle steering angle and the tire rotation sensor to obtain the driving distance, the vehicle can roughly determine the direction of the initial mapping point and guide the user to move towards the initial mapping point. The environmental data around the location where the user opens the initial mapping point is added, including feature points, obstacle points and other signs that can identify the initial mapping point. The environment around the initial mapping point is recorded. On the one hand, it can facilitate the secondary memory parking to locate the initial mapping point. On the other hand, it can reduce the risk of scratches or collisions caused by obstacles around the initial mapping point being too close during the second start.
[0018] In some embodiments, the vehicle posture includes an initial direction of the vehicle, a steering angle of each tire of the vehicle, and a steering wheel rotation angle.
[0019] At the entrance of the parking lot, when obtaining the entrance positioning path, it is preferred that the steering wheel is aligned and facing the parking lot entrance as the best posture, which facilitates calculation and enables the vehicle to locate the initial mapping point faster.
[0020] In some implementations, after obtaining the entrance positioning path, the entrance positioning path is corrected; including:
[0021] In the entrance positioning path, the first path data consisting of the number of tire rotations and the steering angle obtained within a certain period of time is compared with the second path data consisting of the number of tire rotations and the steering angle obtained at an adjacent time or after an adjacent period of time;
[0022] If the tire rotation number and steering angle of the first path data and the second path data are consistent, and the vehicle posture is the same or opposite, and the paths are overlapped or parallel; then delete the path segment and its overlapped or parallel paths.
[0023] When establishing a path, there may be repeated paths or invalid paths when building a map. The vehicle turns, tire circles, vehicle posture, and driving paths of a period of time can be compared with those of an adjacent period of time or an adjacent period of time. If a reverse situation occurs, it means that the section is an invalid section, which can further reduce the time for entrance positioning.
[0024] In some implementations, generating a parking real-time path includes:
[0025] When the user is mapping the initial parking path, the first environmental data of the surrounding environment is obtained through the radar, and the second environmental data of the surrounding environment is obtained through the sensor;
[0026] If the first environment data or the second environment data determines that there is an obstacle, the visual module is turned on to capture a visual image in the direction of the obstacle;
[0027] If there is an object in the visual image, the obstacle characteristics are determined based on the visual image, the obstacle type is determined based on the obstacle characteristics, and the danger level and obstacle danger force field are set;
[0028] The obstacle is set in the initial parking path according to the obstacle's position, distance, size, and dangerous force field determined by radar and sensors;
[0029] According to the dangerous force field, the initial parking path is modified and the final parking real-time path is generated.
[0030] The real-time parking path is a real-time detection of the surrounding environment during the initial path mapping stage, and the positioning, identification and judgment of surrounding objects, especially obstacles. After confirming that they are obstacles, they are input into the initial path according to the danger level. The danger level is the level determined after judging the characteristics of the obstacle. The greater the danger level, the greater the detour distance. It also corresponds to the larger correction amount of the initial parking path around the path with a large danger level in the real-time parking path, so that the vehicle can safely bypass obstacles by classification, and it can also further reduce the occurrence of large and multiple changes in the path, making the memory parking path smoother.
[0031] In some embodiments, the type of obstacle is determined based on the image features, and the danger level and obstacle danger force field are set; including:
[0032] Determine the global features, local features, and relational features of an object based on the image;
[0033] Classify the acquired features and compare the types of obstacles according to the feature model;
[0034] Set the corresponding danger level according to the type of obstacle;
[0035] Query the hazard level comparison table according to the hazard level, and set the hazard force field according to the hazard level comparison table.
[0036] When the visual image is captured, the type of obstacle is determined based on the characteristics of the image, and the obstacles are classified. The danger level is set according to the classification. Each danger level is set with a danger force field according to the danger level comparison table. The data in the danger level comparison table is subjected to a large amount of data experiments to obtain the best danger force field required for each danger level.
[0037] In some implementations, modifying the initial parking path according to the dangerous force field includes:
[0038] The dangerous force field is set with a force field radius, the vehicle is set with a safety range, and the safety range is set with a safety radius;
[0039] By modifying the initial parking path, the distance between the vehicle and the obstacle is greater than or equal to the sum of the force field radius and the safety radius.
[0040] In the map construction, the vehicle is set with a safe distance, and the obstacle is set with a dangerous force field. At least the distance between the obstacle and the vehicle is adjusted to prevent the risk of the vehicle colliding with the obstacle during the memory parking process.
[0041] In some implementations, the vehicle is driven to perform memory parking according to the real-time parking path; including:
[0042] After starting memory parking, the current starting position is matched through SLAM technology and initial environment data;
[0043] If the vehicle is in a dangerous force field, the offset distance is obtained by subtracting the distance between the real-time vehicle and the obstacle from the sum of the vehicle's safety radius and the dangerous force field radius of the obstacle.
[0044] And calculate the vehicle steering angle according to the offset distance;
[0045] The vehicle automatically adjusts the vehicle according to the steering angle and enters the real-time parking path for memory parking.
[0046] After the real-time parking path is determined, when performing the second memory parking, the relative position of the current vehicle when it is started and the real-time parking path is matched through SLAM technology and initial environmental data. And by locating the current position of the vehicle, it is determined whether the vehicle is in the dangerous force field of the obstacle. If it is in the force field, the vehicle is adjusted according to the sum of the vehicle's safety radius and the dangerous force field radius of the obstacle, and the vehicle is tended to enter the real-time parking path. Among them, the adjustment is calculated according to the offset distance. The closer to the obstacle, the larger the offset distance and offset angle, and the vehicle steering angle is calculated according to the offset angle.
[0047] In a second aspect, the present invention provides a driving system, comprising:
[0048] The initial mapping module is used to collect the initial environment data before the vehicle is started, and the user drives the vehicle to park according to the initial environment data and establishes the initial parking path;
[0049] A real-time revision module is used to collect real-time environmental data during the parking process of the vehicle, and to revise the initial parking path in real time according to the real-time environmental data to generate a real-time parking path;
[0050] The memory parking module is used to drive the vehicle to perform memory parking according to the real-time parking path.
[0051] The initial path is mapped by the initial mapping module, and the implementation revision module revises the initial path in the initial mapping module to form a real-time parking path. The memory parking module calls out the revised real-time parking path and drives the vehicle to perform memory parking.
[0052] In a third aspect, a computer-readable storage medium includes at least one execution instruction stored in the storage medium, and when the executable instruction is executed on the driving system as described above, the device executes the memory parking path correction method as described above.
[0053] The memory parking path correction method, driving system and computer-readable storage medium of the present invention have the following beneficial effects:
[0054] Parking is performed using the initial environmental data, and an initial parking path is established. The initial parking path is corrected using the real-time environmental data collected during the establishment of the initial parking path, and a real-time parking path is generated. After entering memory parking for the second or subsequent time, memory parking is performed according to the real-time parking path. By establishing obstacle-related information in the memory parking map, the path is optimized in advance according to obstacles during memory parking, reducing the computing power for real-time obstacle avoidance detection, and also reducing the risk of scratches or collisions caused by not considering obstacles during startup. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present invention. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:
[0056] Figure 1 It is the main flow chart of the present invention;
[0057] Figure 2 The initial environment data acquisition flow chart of the present invention;
[0058] Figure 3 Modify the initial parking path for the present invention and generate a real-time parking path flow chart;
[0059] Figure 4 This is a flow chart of obstacle feature determination in the present invention;
[0060] Figure 5 A flow chart adjusted when the present invention is started;
[0061] Figure 6 The figure is a structural diagram of a driving system of the present invention. DETAILED DESCRIPTION
[0062] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.
[0063] Embodiment 1:
[0064] like Figure 1 to Figure 5 As shown, the present invention proposes a memory parking path correction method, comprising:
[0065] Step 101: collecting initial environment data before the vehicle is started, the user drives the vehicle to park according to the initial environment data, and establishes an initial parking path;
[0066] Specifically, the initial environment data before starting is acquired, and the initial environment data includes the vehicle state before starting, the surrounding environment data, and the vehicle data before the initial parking path is established, such as from the parking lot to the parking starting point.
[0067] The surrounding environment data also includes the surrounding environment data. The camera is turned on to obtain visual data around the vehicle and extract obstacles around it. After confirming it as an obstacle, the obstacle is calibrated at the starting point of the initial parking path, and the obstacle range is set. The vehicle also sets a safety range. If the vehicle is within the obstacle range before starting, an alarm is issued.
[0068] In the process of mapping, the center of the rear axle of the vehicle is taken as the center point, and the starting point of the initial parking path is taken as the coordinate origin to establish a 2D coordinate system. The coordinate changes are converted according to the movement of the vehicle and the initial parking path is drawn. The vehicle can be set as a motion model, and the vehicle motion model can be set as (x, y, θ), where θ is the slope of the vehicle coordinates and the origin, x, y are coordinates, and k is a discrete moment. The time can be divided into multiple time periods for the acquisition cycle, tire rotation cycle, time cycle, etc.; further, the motion model coordinates can be preliminarily summarized as:
[0069]
[0070] By obtaining the rotation amount and rotation angle of the tire, considering only the front axle, the rotation angle of the vehicle when turning is approximately:
[0071]
[0072] Where L is the length of the vehicle, R is the turning radius, and w is the wheelbase. R is obtained based on the vehicle size and tire turning angle. Formula (2) can be further substituted into (1) to obtain the actual vehicle coordinates, which can be summarized as (x k ,y k ):
[0073]
[0074] in is the variable θ that changes after the vehicle rotates.
[0075] According to the acquired path map, the coordinate points are connected and the route is smoothed to finally obtain the initial parking path.
[0076] The effect of this step is to establish an initial parking path and calibrate the environment of the vehicle's initial parking path starting point through initial environmental data, so that when the vehicle starts, it will not be scratched or collided due to obstacles in the blind spot or too close.
[0077] Step 102: collecting real-time environmental data during the parking process of the vehicle, and revising the initial parking path in real time according to the real-time environmental data to generate a real-time parking path;
[0078] Specifically, when establishing the initial parking path, sensors around the vehicle explore the surrounding environment, and make obstacle judgments and mark obstacles based on the explored surrounding vehicle environment. When marking, the obstacle is revised based on the coordinates and range of the obstacle. The revision method can select artificial potential field method, Bezier curve, B-spline curve, curve interpolation method and dynamic programming method of MPC algorithm.
[0079] Furthermore, the artificial potential field and the Bezier curve can be combined to set a potential field for the obstacle, set multiple sensors around the vehicle, and set the center and center coordinates of the rear axle of the vehicle as (x k ,y k ), when the body size is known, relative to the motion (x k ,y k ), the initial coordinates of each sensor can be expressed as (x1, y1), that is:
[0080]
[0081] in, The vector from the sensor to the center point of the rear axle is a known quantity, and T is the rotation transformation matrix:
[0082]
[0083] When parking, at each time point, record the change of the coordinates of each surrounding sensor. After parking, mark the obstacle, traverse and calculate each obstacle center and the initial parking path, and calculate the shortest distance point. Record at least two discrete time points on both sides of the shortest distance point, and calculate the minimum distance between the vehicle's sensor and the obstacle center at each discrete time point in combination with the vehicle's position at the discrete time point. For example, if the obstacle center is (x2, y2), then the shortest distance point (x2, y2) to the obstacle on the initial parking path is min ,y min ), the shortest distance to the obstacle is:
[0084]
[0085] Traverse and calculate all sensors and find the distance between the sensor with the shortest distance (x3, y3) and the obstacle and the distance between the shortest distance point and the obstacle, that is:
[0086]
[0087] Will s min1 and min2If the value is less than the sum of the safety radius set by the obstacle and the safety radius of the vehicle, the initial parking path is adjusted by taking the discrete time point and the shortest distance point as adjustment points, extending the initial parking path outward, and finally making all sensors on the vehicle and the shortest distance greater than or equal to the sum of the safety radius set by the obstacle and the safety radius of the vehicle, that is, the safety distance s safe , and s safe for:
[0088]
[0089] Wherein, s1 is the vehicle safety distance, which is generally set to 0.2-0.5. According to the above formula, the sensor coordinates that need to be modified and the coordinates after the shortest distance modification (x4, y4) are obtained, and the center coordinates are modified according to formulas (4) and (5). For the convenience of explanation, the modified center coordinates are also included as (x4, y4).
[0090] According to the modified multiple coordinates (x4, y4), the Bezier curve is adjusted, and the formula is:
[0091]
[0092] Among them, B i,n (k) is the Bernstein polynomial, which can be expressed as:
[0093]
[0094] The Bezier curve adjustment has the characteristics of continuous and differentiable trajectory curvature, easy to track, and the curve is relatively smooth.
[0095] In some optional embodiments, the modification of the path may be performed by performing traversal calculations based on the obtained modified coordinates (x4, y4) to obtain a smooth curve, or by making the modified path curve smoother through linear fitting.
[0096] The beneficial effect of the above steps is that by detecting obstacles and modifying the path, the obstacles are included in the real-time parking path. At the same time, the route can also plan and bypass the obstacles in advance, reducing part of the computing power of real-time detection.
[0097] Step 103: Drive the vehicle to perform memory parking according to the real-time parking path.
[0098] Specifically, according to the real-time parking path, memory parking is matched according to the real-time parking path before starting. If there is an obstacle on the side or the vehicle has entered the obstacle range, the vehicle is adjusted according to the distance between the vehicle and the obstacle at this moment. For example, when starting, the sensor coordinates on the side of the vehicle are (x5, y5) and the coordinates of the obstacle on the side are (x6, y6). Then, the shortest distance is calculated according to formula (7). If the shortest distance is less than the s of the obstacle, safe distance, then drive the vehicle away to s safe distance.
[0099] The beneficial effect of the above steps is that by combining the initial startup environment detection with the real-time parking path, the scratches and collisions caused by obstacles in the visual blind spot during startup can be reduced.
[0100] During the initial mapping stage, after collecting the initial environmental data before startup, the user turns on the mapping function and drives the car to start the initial parking mapping to determine the initial parking path. After collecting the initial environmental data before startup, the surrounding areas of the mapping point and the path to the mapping point can be effectively determined, and the initial environmental data can be provided for the next memory parking to prevent the vehicle from encountering obstacles at the starting point and avoid scratches. During the collection of the initial path or each parking process, the real-time environmental data of the surrounding area is also revised in real time, including obstacles, and the final revised path is saved as the real-time parking path. According to the real-time parking path, the next time the memory parking is started, the vehicle is parked according to the real-time parking path. By calculating the real-time parking path with obstacles, the path can be optimized during the memory parking process to reduce the computing power for calculating obstacles.
[0101] In some embodiments, the initial environment data establishes an initial parking path, including:
[0102] Step 201: Record the initial GPS point, set the map number and vehicle position at the parking lot entrance;
[0103] Specifically, the coordinates of the entrance to the parking lot are recorded, the GPS point is retained, the map number is set to match the GPS point, and the vehicle position at this time is recorded.
[0104] The beneficial effect of this step is that by recording GPS points and serial numbers, the vehicle can record maps of multiple parking lots.
[0105] Step 202: After entering the underground parking lot, obtain the vehicle steering angle and tire rotation sensor to obtain the driving distance, and record the entrance positioning path;
[0106] Specifically, after entering the parking lot, the vehicle steering angle and tire rotation sensors are used to obtain the driving distance and path conditions.
[0107] The beneficial effect of this step is that the entrance positioning path is an approximate path, so as to inform the user of the approximate direction and distance of the recorded map data, so as to remind and guide the driver to drive in the direction of the recorded real-time parking path.
[0108] Furthermore, the Ackerman principle, the starting three-point method and other methods can be used to reduce the steering difference between the outer wheel and the inner wheel and ensure that it is between 2° and 4° to improve the steering accuracy.
[0109] Step 203: The user locates the initial mapping point, extracts the initial environment data through SLAM technology, and records the initial GPS point, map serial number, vehicle position, and entrance positioning path into the initial environment data;
[0110] Specifically, after locating the initial mapping point, the initial environment is extracted and retained in the initial parking map through SLAM technology, that is, feature point judgment technology. The initial environment data includes data from the entrance to the starting point and the environment data around the starting point.
[0111] The beneficial effect of this step is that the basic state of the vehicle can be saved in the initial environment data before the vehicle enters the parking space.
[0112] Step 204: Based on the initial environment data, the user or the vehicle parks itself, and the driving distance is obtained by combining the steering wheel steering angle and the tire rotation sensor to establish an initial parking path.
[0113] Specifically, parking is performed according to the above method, and an initial parking path is established.
[0114] The initial environmental data includes the path from the parking lot entrance to the internal mapping point of the parking lot and the vehicle's posture. The data is recorded mainly to prevent the underground parking lot from being unable to receive GPS signals, which makes it impossible for the vehicle to find the initial mapping point. By using the steering wheel steering angle, the vehicle steering angle and the tire rotation sensor to obtain the driving distance, the vehicle can roughly determine the direction of the initial mapping point and guide the user to move towards the initial mapping point. The environmental data around the location where the user opens the initial mapping point is added, including feature points, obstacle points and other signs that can identify the initial mapping point. The environment around the initial mapping point is recorded. On the one hand, it can facilitate the secondary memory parking to locate the initial mapping point. On the other hand, it can reduce the risk of scratches or collisions caused by obstacles around the initial mapping point being too close during the second start.
[0115] In some embodiments, the vehicle posture includes an initial direction of the vehicle, a steering angle of each tire of the vehicle, and a steering wheel rotation angle.
[0116] Specifically, when entering an underground parking lot, the node can be selected as after payment, and the payment data will be fed back through the Internet. At this time, the vehicle position can be recorded visually at the parking lot entrance, or auxiliary lines can be set to guide the vehicle into a predetermined position. Preferably, the user can independently select the recording time node and the vehicle can record the initial direction, the steering angle of each tire of the vehicle, and the steering wheel rotation angle. This method can be relatively flexible.
[0117] At the entrance of the parking lot, when obtaining the entrance positioning path, it is preferred that the steering wheel is aligned and facing the parking lot entrance as the best posture, which facilitates calculation and enables the vehicle to locate the initial mapping point faster.
[0118] In some embodiments, after obtaining the entrance positioning path, the entrance positioning path is corrected; including:
[0119] In the entrance positioning path, the first path data consisting of the number of tire rotations and the steering angle obtained within a certain period of time is compared with the second path data consisting of the number of tire rotations and the steering angle obtained at an adjacent time or after an adjacent period of time;
[0120] If the tire rotation number and steering angle of the first path data and the second path data are consistent, and the vehicle posture is the same or opposite, and the paths are overlapped or parallel; then delete the path segment and its overlapped or parallel paths.
[0121] Specifically, according to the vehicle's posture, tire rotation number and steering angle, detection is performed in the initial parking path and the entrance positioning path respectively. If the tire rotation number and steering angle of the first path data and the second path data are consistent, and the vehicle posture is the same or opposite, and the paths are overlapped or parallel; it means that the vehicle has repeated cruising or invalid cruising, and the path and its overlapping or parallel path are deleted.
[0122] When establishing a path, there may be repeated paths or invalid paths when building a map. The vehicle turns, tire circles, vehicle posture, and driving paths of a period of time can be compared with those of an adjacent period of time or an adjacent period of time. If a reverse situation occurs, it means that the section is an invalid section, which can further reduce the time for entrance positioning.
[0123] In some embodiments, generating a parking real-time path includes:
[0124] Step 301: When the user is mapping the initial parking path, first environmental data of the surrounding environment is acquired through a radar, and second environmental data of the surrounding environment is acquired through a sensor;
[0125] Specifically, the first environment data and the second environment data are acquired through radar and sensor respectively.
[0126] The beneficial effect of this step is to detect obstacles around the vehicle to modify the initial parking path.
[0127] Step 302: If it is determined that an obstacle exists in the first environment data or the second environment data, the visual module is turned on to capture a visual image in the direction of the obstacle;
[0128] Specifically, when the first environmental data or the second environmental data determines that there is an obstacle, the visual module is turned on to capture images for analysis.
[0129] The beneficial effect of this step is that the first confirmation is performed through radar or sensor, and the second confirmation is performed through vision, thereby preventing misjudgment and reducing the energy consumption of the vehicle when the vision module is always turned on.
[0130] Step 303: If there is an object in the visual image, then determine the obstacle characteristics according to the visual image, determine the obstacle type according to the obstacle characteristics, and set the danger level and obstacle danger force field;
[0131] Specifically, when the visual image determines that there is an object, binarization processing, edge processing, obstacle image morphology processing, obstacle extraction, etc. are performed to capture the feature points of the obstacle, and the type of obstacle is determined based on the feature points or a set of feature points. The danger level and danger level force field are set according to the type, and the danger level force field is the range of the obstacle.
[0132] The beneficial effect of this step is that obstacles are classified by feature judgment, which prevents the occurrence of instantaneous obstacles or non-fixed obstacles, which may lead to unnecessary corrections to the map.
[0133] Step 304: placing the obstacle in the initial parking path according to the obstacle's position, distance, size, and dangerous force field determined by the radar and the sensor;
[0134] Specifically, according to the determined obstacles, the data information is input into the mapping module.
[0135] The beneficial effect of this step is that obstacles can be made to appear in the map, which can be used as a reference for subsequent path modification.
[0136] Step 305: modify the initial parking path according to the dangerous force field, and generate the final real-time parking path.
[0137] Specifically, the initial parking path is modified according to the dangerous force field, including the above-mentioned artificial potential field method, Bezier curve, B-spline curve, curve interpolation method and dynamic programming method of MPC algorithm.
[0138] Furthermore, an artificial potential field and a Bezier curve may be combined.
[0139] The beneficial effect of this step is that by recording map obstacles, the initial parking path can be corrected to assist, so that the real-time parking path can plan the obstacle route in advance and reduce the computing power of real-time obstacle detection.
[0140] The real-time parking path is a real-time detection of the surrounding environment during the initial path mapping stage, and the positioning, identification and judgment of surrounding objects, especially obstacles. After confirming that they are obstacles, they are input into the initial path according to the danger level. The danger level is the level determined after judging the characteristics of the obstacle. The greater the danger level, the greater the detour distance. It also corresponds to the larger correction amount of the initial parking path around the path with a large danger level in the real-time parking path, so that the vehicle can safely bypass obstacles by classification, and it can also further reduce the occurrence of large and multiple changes in the path, making the memory parking path smoother.
[0141] In some embodiments, the type of obstacle is determined based on the image features, and the danger level and obstacle danger force field are set; including:
[0142] Step 401: judging the global features, local features and relational features of the object according to the image;
[0143] Specifically, the global features, local features and relationship features of the object are extracted according to binarization processing, marginalization processing, obstacle morphology image morphology processing, obstacle extraction and the like.
[0144] Step 402: classify the acquired features and compare the types of obstacles according to the feature model;
[0145] Specifically, the features are classified and distributed, and the distribution results are compared with the feature model to match similar obstacle types.
[0146] Step 403: Setting the corresponding danger level according to the type of obstacle;
[0147] Specifically, the danger level is set according to the type, for example, humans and animals have the highest danger level, while columns have a lower danger level than humans.
[0148] The beneficial effect of this step is that different measures or detour distances can be set according to different levels of obstacles, which can make driving safer.
[0149] Step 404: query the danger level comparison table according to the danger level, and set the danger force field according to the danger level comparison table.
[0150] Specifically, each level is provided with a comparison table, and a dangerous force field is provided in the comparison table. Through the dangerous force field, the user can be intuitively informed of the degree of danger. At the same time, the vehicle can also correct obstacles according to the force field principle when correcting the route, and can also be corrected according to the force field.
[0151] When the visual image is captured, the type of obstacle is determined based on the characteristics of the image, and the obstacles are classified. The danger level is set according to the classification. Each danger level is set with a danger force field according to the danger level comparison table. The data in the danger level comparison table is subjected to a large amount of data experiments to obtain the best danger force field required for each danger level.
[0152] In some embodiments, modifying the initial parking path according to the dangerous force field includes:
[0153] The dangerous force field is set with a force field radius, the vehicle is set with a safety range, and the safety range is set with a safety radius;
[0154] Specifically, when parking, at each time point, the change of the coordinates of each surrounding sensor is recorded. After parking, the obstacle is marked, each obstacle center and the initial parking path are traversed and calculated, and the shortest distance point is calculated. At least two discrete time points on both sides of the shortest distance point are recorded, and combined with the position and posture of the vehicle at the discrete time points, the minimum distance between the vehicle's sensor and the obstacle center at each discrete time point is calculated. For example, if the obstacle center is (x2, y2), then the shortest distance point (x2, y2) from the obstacle on the initial parking path is min ,y min ), the shortest distance to the obstacle is:
[0155]
[0156] Traverse and calculate all sensors and find the distance between the sensor with the shortest distance (x3, y3) and the obstacle and the distance between the shortest distance point and the obstacle, that is:
[0157]
[0158] Will s min1 and min2 If the value is less than the sum of the safety radius set by the obstacle and the safety radius of the vehicle, the initial parking path is adjusted by taking the discrete time point and the shortest distance point as adjustment points, extending the initial parking path outward, and finally making all sensors on the vehicle and the shortest distance greater than or equal to the sum of the safety radius set by the obstacle and the safety radius of the vehicle, that is, the safety distance s safe , and s safe for:
[0159]
[0160] Wherein, s1 is the vehicle safety distance, which is generally set to 0.2-0.5. According to the above formula, the sensor coordinates that need to be modified and the coordinates after the shortest distance modification (x4, y4) are obtained, and the center coordinates are modified according to formulas (4) and (5). For the convenience of explanation, the modified center coordinates are also included as (x4, y4).
[0161] According to the modified multiple coordinates (x4, y4), the Bezier curve is adjusted, and the formula is:
[0162]
[0163] Among them, B i,n (k) is the Bernstein polynomial, which can be expressed as:
[0164]
[0165] The Bezier curve adjustment has the characteristics of continuous and differentiable trajectory curvature, easy to track, and the curve is relatively smooth.
[0166] In some optional embodiments, the modification of the path may be performed by performing traversal calculations based on the obtained modified coordinates (x4, y4) to obtain a smooth curve, or by making the modified path curve smoother through linear fitting.
[0167] By modifying the initial parking path, the distance between the vehicle and the obstacle is greater than or equal to the sum of the force field radius and the safety radius.
[0168] In the map construction, the vehicle is set with a safe distance, and the obstacle is set with a dangerous force field. At least the distance between the obstacle and the vehicle is adjusted to prevent the risk of the vehicle colliding with the obstacle during the memory parking process.
[0169] In some embodiments, the vehicle is driven to perform memory parking according to the real-time parking path; including:
[0170] Step 501: After starting memory parking, the current starting position is matched through SLAM technology and initial environment data;
[0171] Specifically, SLAM technology is used to perform feature matching on the vehicle's initial environmental data and determine the current starting position.
[0172] The beneficial effect of this step is that it enables the vehicle to judge the initial driving environment.
[0173] Step 502: If the vehicle is in a dangerous force field, the offset distance is obtained by subtracting the distance between the real-time vehicle and the obstacle from the sum of the vehicle's safety radius and the dangerous force field radius of the obstacle;
[0174] Specifically, if the vehicle is in a dangerous force field, then the sum of the vehicle safety radius and the dangerous force field radius of the obstacle, s safe , minus the distance S between the real-time vehicle and the obstacle move , which is the distance calculated according to formula (7).
[0175] The beneficial effect of this step is that it can enable the vehicle to deviate from the obstacle danger range in advance before starting, thereby preventing scratches and collisions with obstacles during starting.
[0176] Step 503: Calculate the vehicle steering angle according to the offset distance;
[0177] Specifically, the steering angle is set according to the distance to the obstacle, and the closer to the obstacle, the greater the steering angle.
[0178] Furthermore, the force field formula can be used for calculation. When approaching an obstacle, it can be further considered that the greater the repulsive force of the obstacle on the vehicle, the greater the steering angle and the greater the steering amplitude on the vehicle as a whole.
[0179] The beneficial effect of this step is that it can enable the vehicle to avoid obstacles in time when starting, preventing the vehicle from being scratched and collided.
[0180] Step 504: The vehicle automatically adjusts the vehicle according to the steering angle and enters the real-time parking path to perform memory parking.
[0181] Specifically, the vehicle is automatically adjusted according to the steering angle obtained in the above steps, and the vehicle is driven into the parking path mapped out.
[0182] After the real-time parking path is determined, when performing the second memory parking, the relative position of the current vehicle when it is started and the real-time parking path is matched through SLAM technology and initial environmental data. And by locating the current position of the vehicle, it is determined whether the vehicle is in the dangerous force field of the obstacle. If it is in the force field, the vehicle is adjusted according to the sum of the vehicle's safety radius and the dangerous force field radius of the obstacle, and the vehicle is tended to enter the real-time parking path. Among them, the adjustment is calculated according to the offset distance. The closer to the obstacle, the larger the offset distance and offset angle, and the vehicle steering angle is calculated according to the offset angle.
[0183] Embodiment 2:
[0184] like Figure 6 As shown, this embodiment is based on Embodiment 1, and proposes a driving system 600 of the present invention, including:
[0185] The initial mapping module 601 is used to collect initial environment data before the vehicle is started, and the user drives the vehicle to park according to the initial environment data, and establish an initial parking path;
[0186] A real-time revision module 602 is used to collect real-time environmental data during the parking process of the vehicle, and to revise the initial parking path in real time according to the real-time environmental data to generate a real-time parking path;
[0187] The memory parking module 603 is used to drive the vehicle to perform memory parking according to the real-time parking path.
[0188] The data acquisition module 604 is used to acquire vehicle data, including vehicle tire rotation number, tire steering angle, posture and other vehicle data.
[0189] The obstacle judgment module 605 is used to visually obtain obstacles, classify obstacles, set danger levels, and set danger force fields.
[0190] Embodiment 3:
[0191] The present invention also provides a computer-readable storage medium, including at least one execution instruction stored in the storage medium, and when the executable instruction is executed on the driving system as described above, the device executes the memory parking path correction method as described above.
[0192] The method for correcting the memory parking path is executed by the driving system, including:
[0193] Collect initial environmental data before the vehicle is started, and the user drives the vehicle to park according to the initial environmental data, and establishes an initial parking path;
[0194] Collect real-time environmental data during the parking process of the vehicle, and revise the initial parking path in real time based on the real-time environmental data to generate a real-time parking path;
[0195] According to the real-time parking path, the vehicle is driven to perform memory parking.
[0196] The algorithms or displays provided herein are not inherently related to any particular computer, virtual system or other device. In addition, the embodiments of the present invention are not directed to any particular programming language.
[0197] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. Similarly, in order to simplify the present invention and help understand one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. Wherein, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself is a separate embodiment of the present invention.
[0198] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and further may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive.
[0199] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.
Claims
1. A memory parking path correction method, characterized in that: include: Collecting initial environment data before the vehicle is started, the user drives the vehicle to park according to the initial environment data, and establishing an initial parking path; Collecting real-time environmental data during the parking process of the vehicle, and revising the initial parking path in real time according to the collected real-time environmental data to generate a real-time parking path; The vehicle is driven to park according to the real-time parking path.
2. The method for correcting a memory parking path according to claim 1, characterized in that: The initial environment data establishes an initial parking path, including: Record the initial GPS point, set the map number and vehicle position at the parking lot entrance; After entering the underground parking lot, the vehicle steering angle and tire rotation sensor are used to obtain the driving distance and record the entrance positioning path; The user locates the initial mapping point, extracts the initial environmental data through SLAM technology, and records the initial GPS point, map serial number, vehicle position, and entrance positioning path into the initial environmental data; Based on the initial environmental data, the user or the vehicle parks itself, and the initial parking path is established by combining the steering wheel steering angle and the tire rotation sensor to obtain the driving distance.
3. The automatic path correction method according to claim 2, characterized in that: The vehicle posture includes the initial direction of the vehicle, the steering angle of each tire of the vehicle, and the steering wheel rotation angle.
4. The method for correcting a memory parking path according to claim 2, characterized in that: After obtaining the entrance positioning path, the entrance positioning path is corrected; including: In the entrance positioning path, the first path data consisting of the number of tire rotations and the steering angle obtained within a certain period of time is compared with the second path data consisting of the number of tire rotations and the steering angle obtained at an adjacent time or after an adjacent period of time; If the tire rotation number and steering angle of the first path data and the second path data are consistent, and the vehicle posture is the same or opposite, and the paths are overlapped or parallel; then delete the path segment and its overlapped or parallel paths.
5. The method for correcting a memory parking path according to claim 1, characterized in that: The generating of the real-time parking path comprises: When the user is mapping the initial parking path, the first environmental data of the surrounding environment is obtained through the radar, and the second environmental data of the surrounding environment is obtained through the sensor; If the first environment data or the second environment data determines that there is an obstacle, the visual module is turned on to capture a visual image in the direction of the obstacle; If there is an object in the visual image, the obstacle characteristics are determined according to the visual image, the obstacle type is determined according to the obstacle characteristics, and the danger level and the obstacle danger force field are set; The obstacle is set in the initial parking path according to the obstacle's position, distance, size, and dangerous force field determined by radar and sensors; According to the dangerous force field, the initial parking path is modified and the final parking real-time path is generated.
6. The method for correcting a memory parking path according to claim 5, characterized in that: The method of judging the type of obstacle according to the image features and setting the danger level and the obstacle danger force field includes: Determine the global features, local features, and relational features of an object based on the image; Classify the acquired features and compare the types of obstacles according to the feature model; Set the corresponding danger level according to the type of obstacle; Query the hazard level comparison table according to the hazard level, and set the hazard force field according to the hazard level comparison table.
7. The method for correcting a memory parking path according to claim 5, characterized in that: The modifying of the initial parking path according to the dangerous force field comprises: The dangerous force field is provided with a force field radius, the vehicle is provided with a safety range, and the safety range is provided with a safety radius; By modifying the initial parking path, the distance between the vehicle and the obstacle is greater than or equal to the sum of the force field radius and the safety radius.
8. The method for correcting a memory parking path according to claim 5, characterized in that: According to the real-time parking path, driving the vehicle to perform memory parking; comprising: After starting the memory parking, the current starting position is matched through the SLAM technology and the initial environment data; If the vehicle is in the dangerous force field, the offset distance is obtained by subtracting the distance between the real-time vehicle and the obstacle from the sum of the vehicle's safety radius and the dangerous force field radius of the obstacle; Calculate the vehicle steering angle according to the offset distance; The vehicle automatically adjusts the vehicle according to the steering angle and enters the real-time parking path for memory parking.
9. A driving system, characterized in that: include: An initial mapping module is used to collect initial environmental data before the vehicle is started, and the user drives the vehicle to park according to the initial environmental data, and establish an initial parking path; A real-time revision module, used to collect real-time environmental data during the parking process of the vehicle, and to revise the initial parking path in real time according to the real-time environmental data at different time periods, so as to generate a real-time parking path; The memory parking module is used to drive the vehicle to perform memory parking according to the real-time parking path.
10. A computer-readable storage medium, characterized in that: The storage medium includes at least one execution instruction stored therein, and when the executable instruction is executed on the driving system as claimed in claim 9, the device executes the memory parking path correction method as claimed in any one of claims 1 to 8.
