Parking real-time obstacle avoidance method and device
Through the obstacle avoidance grid map determination method based on radar data and initial grid map, combined with ultrasonic and visual input components, the preview algorithm is used to determine automatic obstacle avoidance for parking, which solves the problem of high computational complexity of multi-sensor data fusion algorithms. Improved real-time performance and safety of parking.
Patent Information
- Application Number
- CN202411031761.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-07-30
AI Technical Summary
The multi-sensor data fusion algorithm in existing automatic parking technology has high computational complexity, resulting in low real-time performance in obstacle avoidance prediction, making it difficult to effectively solve the efficiency and safety issues of automatic obstacle avoidance in parking.
The obstacle avoidance grid map determination method based on radar data information and the initial grid map is used, combined with ultrasonic and visual input components, and a preview algorithm is used to obtain the future movement trajectory of the vehicle, and determine whether there are obstacles and collision risks, and determine based on the results Obstacle avoidance strategies.
It improves the real-time and safety of parking obstacle avoidance, quickly responds to potential obstacles and collision risks through a simple and efficient preview algorithm, and enhances the adaptability and accuracy of the parking process.
Smart Images

Figure CN118744719A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of automatic parking obstacle avoidance, and in particular to a real-time parking obstacle avoidance method and device. Background Art
[0002] With the development of autonomous driving technology and the hardware upgrade of sensors, multi-sensor fusion technology has gradually become a research hotspot. By fusing the data of ultrasonic sensors with multiple sensors such as cameras, more comprehensive and accurate environmental perception capabilities can be provided for automatic parking. However, the multi-sensor data fusion algorithm used in the current existing technology has the problem of high computational complexity, which may lead to low real-time performance of obstacle avoidance prediction, and a better solution is needed. Summary of the invention
[0003] In view of this, the present invention provides a real-time parking obstacle avoidance method and device to solve the problem that the automatic parking obstacle avoidance method is not efficient enough.
[0004] On one hand, the present invention provides a real-time obstacle avoidance method for parking, the method comprising determining an obstacle avoidance grid map based on radar data information and an initial grid map; the radar data information is determined based on an ultrasonic input component of a vehicle; the initial grid map is determined based on a visual input component of the vehicle; a preview algorithm is used to obtain a future motion trajectory of the vehicle in the obstacle avoidance grid map; it is determined whether there is an obstacle at a coordinate point on the future motion trajectory in the obstacle avoidance grid map, and whether there is a risk of collision between the obstacle and the vehicle, and according to the determination result, an obstacle avoidance strategy of the vehicle is determined.
[0005] On the other hand, the present invention also provides a real-time obstacle avoidance device for parking, the device comprising: a determination module, used to determine an obstacle avoidance grid map based on radar data information and an initial grid map; the radar data information is determined based on an ultrasonic input component of the vehicle; the initial grid map is determined based on a visual input component of the vehicle; a prediction module, used to adopt a preview algorithm to obtain the future motion trajectory of the vehicle in the obstacle avoidance grid map; an obstacle avoidance module, used to determine whether there is an obstacle at the coordinate point on the future motion trajectory in the obstacle avoidance grid map, and whether there is a risk of collision between the obstacle and the vehicle, and determine the obstacle avoidance strategy of the vehicle based on the judgment result.
[0006] On the other hand, the present invention also provides a computer device, which includes: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor implements the above-mentioned real-time parking obstacle avoidance method by executing the computer instructions.
[0007] Another aspect of the present invention further provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to enable a computer to implement the above-mentioned real-time parking obstacle avoidance method.
[0008] In this process, on the one hand, the preview algorithm is computationally simple and efficient. Compared with the complex multi-sensor data fusion algorithm, the preview algorithm has a lower computational overhead and can achieve rapid response, thereby improving the real-time performance of parking obstacle avoidance. On the other hand, the preview algorithm can predict the future motion trajectory of the vehicle in real time, which can assist in discovering potential obstacles and collision risks and improve the safety of parking obstacle avoidance. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the related technologies, the drawings required for use in the specific embodiments or the related technical descriptions will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0010] Figure 1 It is a flow chart of a parking real-time obstacle avoidance method provided by an embodiment of the present invention;
[0011] Figure 2 is a flow chart of another parking real-time obstacle avoidance method provided by an embodiment of the present invention;
[0012] Figure 3 It is a structural schematic diagram of a real-time obstacle avoidance device for parking provided by an embodiment of the present invention;
[0013] Figure 4 It is a structural schematic diagram of another parking real-time obstacle avoidance device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0014] In the early stages of vehicle autonomous driving, parking obstacle avoidance systems usually rely on a single type of sensor, such as a camera or ultrasonic radar; however, this single sensor has obvious limitations. Ultrasonic sensors have a limited detection range and are less sensitive to obstacles made of certain materials (such as sound-absorbing materials). The camera's detection effect will be affected in low light or complex lighting conditions, and the camera's image data processing is complex and computationally intensive, with poor real-time performance.
[0015] In order to overcome the limitations of a single sensor, multi-sensor fusion technology has gradually become a research hotspot; by fusing the data of ultrasonic sensors with multiple sensors such as cameras, the shortcomings of a single sensor can be compensated and a more comprehensive and accurate environmental perception capability can be provided; multi-sensor fusion technology not only improves the reliability and accuracy of the system, but also enhances the system's adaptability in various complex environments.
[0016] However, the existing multi-sensor fusion technology may have the following problems: the computational complexity of the multi-sensor data fusion algorithm is high, and it is insufficient in the real-time performance of obstacle avoidance prediction;
[0017] To solve the above problems, various embodiments of the present invention provide a real-time obstacle avoidance method for parking, including: determining an obstacle avoidance grid map based on radar data information and an initial grid map; the radar data information is determined based on an ultrasonic input component of the vehicle; the initial grid map is determined based on a visual input component of the vehicle; a preview algorithm is used to obtain the future motion trajectory of the vehicle in the obstacle avoidance grid map; it is determined whether there is an obstacle at a coordinate point on the future motion trajectory in the obstacle avoidance grid map, and whether there is a risk of collision between the obstacle and the vehicle, and according to the determination result, an obstacle avoidance strategy of the vehicle is determined.
[0018] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0019] According to an embodiment of the present invention, a parking real-time obstacle avoidance method is provided. Figure 1 is a flow chart of a parking real-time obstacle avoidance method provided by an embodiment of the present invention, such as Figure 1 As shown, the process includes the following steps:
[0020] Step S101, determining an obstacle avoidance grid map based on radar data information and an initial grid map; the radar data information is determined based on an ultrasonic input component of the vehicle; and the initial grid map is determined based on a visual input component of the vehicle;
[0021] Step S102, using a preview algorithm to obtain the future motion trajectory of the vehicle in the obstacle avoidance grid map;
[0022] Step S103, determining whether there is an obstacle at the coordinate point on the future motion trajectory in the obstacle avoidance grid map, and whether there is a risk of collision between the obstacle and the vehicle, and determining the vehicle's obstacle avoidance strategy based on the determination result.
[0023] In one possible implementation, the ultrasonic input component may refer to a distance sensor on a vehicle, which can achieve distance measurement by emitting ultrasonic pulses and receiving their reflected signals, and is used to measure the distance between the vehicle and surrounding obstacles; for example, the ultrasonic input component may include but is not limited to: a single-point ultrasonic sensor, a multi-point ultrasonic sensor; wherein a single-point ultrasonic sensor can be used to measure the distance in a single direction, and a multi-point ultrasonic sensor can measure the distance in multiple directions simultaneously or sequentially.
[0024] Furthermore, the radar data information determined by the ultrasonic input component may refer to data acquired through the ultrasonic input component; the functions of the radar data information may include but are not limited to: measuring distance, detecting obstacles, and sensing the environment.
[0025] In one possible implementation, the visual input component may refer to a visual sensor on a vehicle for acquiring visual information of the vehicle's surroundings; for example, the visual input component may include but is not limited to: a camera, an infrared camera, and a panoramic camera.
[0026] In one possible implementation, a grid map may refer to a map representation method that divides a geographic space into regular grids or cells and associates each cell with a specific area or location on the map.
[0027] In one possible implementation, the initial grid map determined by the visual input component of the vehicle can be implemented based on the following steps:
[0028] Acquire image data of the surrounding environment of the vehicle according to a preset number of cameras installed on the vehicle; the image data may include but is not limited to: photos, videos;
[0029] Preprocess image data to improve the effectiveness of subsequent analysis;
[0030] Image processing and computer vision techniques are used to segment image data into grids;
[0031] The position and size of the grid are determined according to the surrounding environment of the vehicle, and the initial grid map is determined according to the position and size of the grid.
[0032] Among them, image processing can refer to the technology and methods for operating and processing image data, which may include but are not limited to: denoising, enhancement, filtering, and geometric transformation; computer vision technology can refer to a technology for analyzing and understanding image data through computers, which may include but are not limited to: target recognition, image classification, and scene segmentation.
[0033] In one possible implementation, determining an obstacle avoidance grid map based on radar data information determined by an ultrasonic input component of the vehicle and an initial grid map determined by a visual input component of the vehicle can be implemented based on the following steps:
[0034] Using perception algorithms, target detection and recognition are performed on the acquired image data, the target information corresponding to the image data is determined, and obstacles are mapped to the initial grid map;
[0035] Based on the image data obtained by the camera, the distance between the obstacles in the surrounding environment and the vehicle is measured, and the position and size of the obstacles in the initial grid map are determined based on the distance;
[0036] The obstacle avoidance grid map is determined based on the radar data information, the position and size of the obstacle in the initial grid map.
[0037] Among them, the obstacle avoidance grid map can be used to represent obstacles in the vehicle's surrounding environment. Each grid in the obstacle avoidance grid map can represent the location coordinates, type and size of the obstacle; the types of obstacles may include but are not limited to: other vehicles, pedestrians, building structures, ground obstacles, and movable obstacles.
[0038] In one possible implementation, the preview algorithm may refer to predicting the vehicle's motion trajectory or behavior in the future based on the current vehicle state (such as position, speed, direction), environmental conditions (such as road conditions, traffic conditions) and a pre-set motion model.
[0039] For example, a preview algorithm may be used to predict the future motion trajectory of the vehicle during the parking process based on the vehicle's operating state and the parking environment in which the vehicle is located.
[0040] In a possible implementation, it is determined whether there is an obstacle at the coordinate point on the future motion trajectory in the obstacle avoidance grid map, and whether there is a risk of collision between the obstacle and the vehicle. According to the judgment result, the obstacle avoidance strategy of the vehicle is determined, which can be implemented based on the following steps:
[0041] Map the vehicle's future motion trajectory into the obstacle avoidance grid map to determine whether there is obstacle information on the predicted future motion trajectory;
[0042] For detected obstacles, evaluate whether there is a collision risk between the vehicle and the obstacle, and determine the corresponding obstacle avoidance strategy based on the assessment result of the collision risk.
[0043] Exemplarily, the obstacle avoidance strategy may include, but is not limited to: adjusting the path, reducing the vehicle speed, braking and waiting, and emergency braking.
[0044] Through the above method, the preview algorithm is used to predict the future motion trajectory of the vehicle in real time, which can help discover potential obstacles and collision risks and improve the safety of parking obstacle avoidance.
[0045] In a specific embodiment, based on the radar data information determined by the ultrasonic input component of the vehicle, it is implemented based on the following steps:
[0046] The ultrasonic input component of the vehicle is used to determine the obstacle map based on the historical parking data of the vehicle; the obstacle map includes but is not limited to: obstacle distance information and radar blind spot information.
[0047] In one possible implementation, the vehicle's historical parking data may include but is not limited to obstacle information detected by the ultrasonic input component; the historical parking data may include but is not limited to: detection timestamp, obstacle distance, obstacle angle, obstacle position, obstacle shape, and obstacle size.
[0048] Among them, the detection timestamp may refer to the time when the ultrasonic input component detects an obstacle, the obstacle distance may refer to the straight-line distance from the ultrasonic input component to the obstacle, the obstacle angle may refer to the angle of the obstacle relative to the vehicle, and the obstacle shape may refer to the specific outline of the obstacle.
[0049] Furthermore, based on the historical parking data of the vehicle, determining the obstacle map can be achieved based on the following steps:
[0050] The historical parking data detected at different times are converted to the same time point through the vehicle motion model of the vehicle, and the historical parking data at different locations are converted to the same global coordinate system;
[0051] Determine the probability of an obstacle existing at the same location based on the detection results of historical parking data;
[0052] Mapping the processed historical parking data into a grid map, using the grids in the grid map to represent whether there are obstacles in the area, and determining an obstacle map;
[0053] The obstacle map is updated in real time based on the data obtained using the ultrasonic input component during each parking process.
[0054] Among them, the vehicle motion model can refer to a mathematical model used to describe the motion characteristics of a vehicle; for example, the vehicle motion model can include but is not limited to: a bicycle model, a multi-rigid body dynamics model; the bicycle model can simplify the vehicle into a "bicycle" with front and rear axles, and describe the steering and sideslip behaviors of the vehicle by considering the front wheel angle and speed of the vehicle; the multi-rigid body dynamics model can consider the dynamic characteristics of each component of the vehicle, such as the body, tires, and suspension system, for high-precision simulation and complex motion prediction.
[0055] Through the above method, by determining the obstacle map, even if the obstacle is in the radar blind spot of the vehicle, the obstacle can be identified based on the obstacle map, thereby improving the accuracy of obstacle avoidance; on the other hand, by determining the obstacle map through historical parking data, the real-time performance of obstacle avoidance detection in the current parking process can be improved.
[0056] In a specific embodiment, based on the radar data information and the initial grid map, the obstacle avoidance grid map is determined based on the following steps:
[0057] Using the visual input component of the vehicle to obtain an image of the environment in which the vehicle is located, determining the current environment information corresponding to the environment in which the vehicle is located based on the environment image, and updating the current environment information to an environment information set in a data storage system, the data storage system including but not limited to: a distributed file system, a cloud storage system;
[0058] Using a computer vision algorithm, obstacles are identified based on the environmental information set in the data storage system to obtain obstacle information in the environmental information; the obstacle information includes but is not limited to: obstacle type and obstacle coordinates;
[0059] The initial grid map, obstacle information and obstacle map are integrated to determine the obstacle avoidance grid map.
[0060] In one possible implementation, the distributed file system may be a system in which at least one computer jointly provides file storage services, and the cloud storage system may be a storage service system provided based on a cloud computing architecture; the computer vision algorithm may be a type of algorithm used to process and analyze image or video data.
[0061] For example, computer vision algorithms may include, but are not limited to: image processing algorithms, image feature extraction algorithms, and target detection algorithms.
[0062] In a possible implementation, determining the current environment information corresponding to the environment in which the vehicle is located based on the environment image may include:
[0063] A perception algorithm is used to identify environmental information in environmental images. The environmental information may include but is not limited to: buildings, other vehicles, weather, parking road environment, parking road traffic conditions; environmental images may include but are not limited to: pictures, videos.
[0064] In a possible implementation, using a computer vision algorithm to identify obstacles based on a set of environmental information stored in a data storage system to obtain obstacle information in the environmental information may include:
[0065] A machine learning algorithm is used to identify obstacles based on the environmental information set in the data storage system to obtain obstacle information in the environmental information.
[0066] Here, machine learning algorithm can refer to a type of algorithm that learns patterns and regularities from data and uses these learned patterns and regularities to make predictions or decisions.
[0067] For example, the machine learning algorithm may include, but is not limited to: a linear regression algorithm, a decision tree algorithm, and a support vector machine (SVM) algorithm.
[0068] In a possible implementation, fusing the initial grid map, obstacle information, and obstacle map to determine the obstacle avoidance grid map may include:
[0069] The obstacle information and the obstacle map are superimposed on the initial grid map to determine the obstacle avoidance grid map.
[0070] Through the above method, the current environmental information is updated to the environmental information set in the data storage system, and the perception algorithm is continuously iterated, so that the vehicle can improve the success rate of identifying obstacles as the number of parking times increases.
[0071] In a specific embodiment, a preview algorithm is used to obtain the future motion trajectory of the vehicle in the obstacle avoidance grid map, including:
[0072] A preview algorithm is used to predict the trajectory of the vehicle traveling a preset distance in the obstacle avoidance grid map based on the vehicle's current driving data and the vehicle's vehicle motion model; the current driving data includes but is not limited to: the vehicle's steering angle and the vehicle's position; the trajectory is used to characterize the predicted continuous path of the vehicle;
[0073] The trajectory is evenly divided into segments according to a preset number, the endpoint of each segment is taken as the future position of the vehicle, and the future motion trajectory of the vehicle is determined according to the future position sequence composed of the future positions;
[0074] Based on the volume information of the vehicle, determine the four corner points corresponding to the vehicle in the standard coordinate system;
[0075] Using a preset transformation matrix, the four corner points of the vehicle are transformed by matrix to obtain the position coordinates of the four corner points corresponding to the obstacle avoidance grid map, so as to represent the position coordinates of the vehicle corresponding to the obstacle avoidance grid map;
[0076] A preset transformation matrix is used to perform a matrix transformation on at least one future position in the future position sequence to obtain the position coordinates of the future position sequence corresponding to the obstacle avoidance grid map, so as to characterize the position coordinates of the future motion trajectory corresponding to the obstacle avoidance grid map.
[0077] In one possible implementation, a preview algorithm is used to predict the trajectory of the vehicle traveling a preset distance in the obstacle avoidance grid map based on the current driving data of the vehicle and the vehicle motion model of the vehicle. This can be implemented based on the following steps:
[0078] Acquire the current driving data of the vehicle and determine a preset distance as a preview distance of the preview algorithm; the preview distance is used to characterize the extension distance of the predicted trajectory;
[0079] The trajectory of the vehicle within the preview distance is predicted based on the vehicle motion model of the vehicle.
[0080] The way to obtain the current driving data may include but is not limited to: vehicle-mounted sensors, vehicle-mounted computers, and vehicle control units; the vehicle-mounted sensors may include: inertial measurement units and global positioning systems.
[0081] Exemplarily, the preset distance can be specifically set according to actual needs, for example, the preset distance can be 1 meter; the size of the preview distance setting is proportional to the speed of the vehicle.
[0082] In a possible implementation, the trajectory is evenly divided into segments according to a preset number, the endpoint of each segment is taken as the future position of the vehicle, and the future motion trajectory of the vehicle is determined according to the future position sequence composed of the future positions. This can be implemented based on the following steps:
[0083] A preview algorithm is used to predict the trajectory of the vehicle within a preset preview distance, and the trajectory is divided into a corresponding number of sections according to a preset number; the preset number can be specifically set according to the accuracy requirements;
[0084] The endpoints of each segment are taken as the future positions of the vehicle, and the endpoints are organized into a future position sequence according to the order in the trajectory to characterize the position path of the vehicle during future driving.
[0085] Exemplarily, the preset number may be 10, and a trajectory with a length of 1 meter is divided into 10 sections according to the preset number, and 10 endpoints corresponding to the 10 sections are taken as the future positions of the vehicle.
[0086] Here, the future position sequence representing the future motion trajectory of the vehicle is determined by the preview algorithm, and the data support for subsequent obstacle avoidance recognition is provided by determining the form of discrete points. Compared with continuous trajectories, the calculation of discrete points is simpler and more efficient. Each discrete point can be considered separately, which is convenient for real-time detection and adjustment, thereby improving the real-time performance of obstacle avoidance recognition.
[0087] In a possible implementation, based on the volume information of the vehicle, determining the four corner points corresponding to the vehicle in the standard coordinate system can be implemented based on the following steps:
[0088] Based on the volume information of the vehicle, determine the corresponding length, width and height of the vehicle;
[0089] Based on the center of the vehicle as the origin, the vehicle's moving direction as the positive direction of the x-axis, the lateral direction as the positive direction of the y-axis, and the vertical upward direction as the positive direction of the z-axis, determine the local coordinate system corresponding to the vehicle;
[0090] According to the length, width and height of the vehicle and the local coordinate system, determine the relative positions of the four corner points of the vehicle in the local coordinate system;
[0091] According to the current position of the vehicle and the coordinates of the four corner points in the local coordinate system, coordinate conversion is performed to determine the coordinates of the four corner points in the standard coordinate system.
[0092] In a possible implementation, a preset transformation matrix is used to perform matrix transformation on the four corner points of the vehicle to obtain the position coordinates of the four corner points corresponding to the obstacle avoidance grid map, so as to characterize the position coordinates of the vehicle corresponding to the obstacle avoidance grid map. This can be implemented based on the following steps:
[0093] Determine a preset first transformation matrix, use the first transformation matrix to transform the coordinates of each corner point in the standard coordinate system, and determine the coordinates of the corner point after transformation;
[0094] The size of each grid in the obstacle avoidance grid map is determined, and the position coordinates of the four corner points in the obstacle avoidance grid map are determined by dividing the converted corner point coordinates by the grid size.
[0095] Furthermore, when the determined position coordinates are outside the effective range of the obstacle avoidance grid map, a preset process is performed on the position coordinates outside the effective range, and the preset process includes but is not limited to: clipping and ignoring.
[0096] In a possible implementation, a preset transformation matrix is used to perform a matrix transformation on at least one future position in the future position sequence to obtain the position coordinates of the future position sequence corresponding to the obstacle avoidance grid map, so as to characterize the position coordinates of the future motion trajectory corresponding to the obstacle avoidance grid map. This can be implemented based on the following steps:
[0097] Determine a preset second transformation matrix, use the second transformation matrix to transform the coordinates of each future position in the standard coordinate system, and determine the transformed coordinates of the future position;
[0098] The size of each grid in the obstacle avoidance grid map is determined, and the position coordinates of each future position in the obstacle avoidance grid map are determined by dividing the converted future position coordinates by the grid size.
[0099] Through the above method, the preview algorithm is combined with the vehicle motion model to predict the vehicle's motion trajectory in the future in real time, so that the vehicle can react in advance when performing parking operations, thereby enhancing the real-time and accuracy of obstacle avoidance; the vehicle can adjust its driving strategy in time to avoid potential collisions, greatly improving the safety of the parking process; the preview algorithm can adjust the predicted trajectory in real time according to the dynamic state of the vehicle and environmental changes, thereby improving the adaptability of obstacle avoidance.
[0100] In a specific embodiment, it is determined whether there is an obstacle at the coordinate point on the future motion trajectory in the obstacle avoidance grid map, and whether there is a risk of collision between the obstacle and the vehicle. According to the judgment result, the obstacle avoidance strategy of the vehicle is determined based on the following steps:
[0101] If it is determined based on the obstacle avoidance grid map that there is an obstacle on the future motion trajectory of the vehicle, determine whether there is a risk of collision between the obstacle and the vehicle;
[0102] If it is determined that there is a risk of collision between the obstacle and the vehicle, the corresponding position coordinates of the obstacle in the obstacle avoidance grid map are determined;
[0103] Determine a first distance based on the position coordinates of the vehicle and the position coordinates of the obstacle; the first distance is used to represent the maximum moving distance before the vehicle collides with the obstacle;
[0104] The ultrasonic input component of the vehicle is used to obtain a second distance; the second distance is used to represent the minimum distance from the obstacle on the future motion trajectory of the vehicle;
[0105] An obstacle avoidance strategy of the vehicle is determined based on the first distance and the second distance.
[0106] Specifically, the direction of movement of the vehicle is determined according to the future motion trajectory of the vehicle, and it is determined whether there are obstacles in the direction of movement of the vehicle; when there are obstacles, the obstacles are traversed one by one to determine whether there is a risk of collision between the obstacle and the vehicle; when there is a risk of collision, a first distance representing the maximum moving distance before the collision occurs is calculated according to the position coordinates of the vehicle in the obstacle avoidance grid map and the position coordinates of the obstacle, and the obstacle avoidance strategy of the vehicle is determined according to the first distance and the second distance determined by the ultrasonic input component.
[0107] Through the above method, the potential collision risk with obstacles is determined according to the future movement path of the vehicle, which can improve the real-time performance of obstacle avoidance decisions and enable the vehicle to respond quickly to environmental changes; by determining the minimum distance between the obstacle and the vehicle and the maximum distance the vehicle can move safely, the collision risk can be accurately assessed and corresponding obstacle avoidance decisions can be made, thereby improving the accuracy of obstacle avoidance decisions.
[0108] In a specific embodiment, if it is determined according to the obstacle avoidance grid map that there is an obstacle on the future motion trajectory of the vehicle, determining whether there is a risk of collision between the obstacle and the vehicle is based on the following steps:
[0109] The visual input component of the vehicle is used to obtain the motion state information of the obstacle, and the state type of the obstacle is determined to be static or moving according to the motion state information; the motion state information includes but is not limited to: motion direction, motion speed;
[0110] When it is determined that the state type of the obstacle is motion, the future trajectory of the obstacle is predicted based on the motion state information of the obstacle, and the future trajectory of the obstacle is mapped into the obstacle avoidance grid map;
[0111] Based on the future motion trajectory of the vehicle and the future travel trajectory of the obstacle in the obstacle avoidance grid map, it is determined whether there is a risk of collision between the obstacle and the vehicle.
[0112] Specifically, a camera is used to obtain the running status information of the obstacle, and a computer vision algorithm is used to determine whether the obstacle is in a stationary state or in a moving state. If the obstacle is in a moving state, a motion model is used to predict the future trajectory of the obstacle, and the future trajectory is mapped to the obstacle avoidance grid map so that the future trajectory can accurately reflect the movement path of the obstacle. The future trajectory of the vehicle is compared with the future trajectory of the obstacle in the obstacle avoidance grid map to determine whether each coordinate point on the future trajectory intersects or is adjacent to the future trajectory, and to determine whether there is a risk of collision between the obstacle and the vehicle.
[0113] Through the above method, the motion state information of the obstacle is updated in time using a computer vision algorithm, and the future trajectory is predicted using an operating model, thereby improving the real-time and accuracy of obstacle avoidance decisions; by comparing the future motion trajectory of the vehicle with the future trajectory of the obstacle, the collision avoidance rate of the vehicle against moving obstacles can be effectively improved.
[0114] In a specific embodiment, determining an obstacle avoidance strategy of a vehicle based on the first distance and the second distance includes:
[0115] The minimum value between the first distance and the second distance is used as the obstacle avoidance distance;
[0116] According to the relationship between the obstacle avoidance distance and the obstacle avoidance threshold, the vehicle's obstacle avoidance strategy for the obstacle avoidance distance is determined; the obstacle avoidance strategy includes but is not limited to: braking, deceleration, and movement direction adjustment.
[0117] Specifically, the minimum value between the first distance and the second distance is used as the obstacle avoidance distance to ensure that the vehicle can safely avoid obstacles even in the worst predicted case. When the obstacle avoidance distance is less than or equal to the obstacle avoidance threshold, it indicates that the vehicle needs to adopt an obstacle avoidance strategy.
[0118] In one possible implementation, when the difference between the obstacle avoidance threshold and the obstacle avoidance distance is greater than a first threshold, it indicates that the vehicle will definitely collide with the obstacle, and the obstacle avoidance strategy may be braking and / or direction adjustment; when the difference between the obstacle avoidance threshold and the obstacle avoidance distance is less than the first threshold and greater than the second threshold, it indicates that the vehicle may collide with the obstacle, and the obstacle avoidance strategy may be deceleration.
[0119] Through the above method, the obstacle avoidance distance is determined in real time, which can effectively reduce the probability of collision between the vehicle and the obstacle, thereby improving driving safety; when the obstacle avoidance distance allows, the system can smoothly adjust the vehicle speed and direction, which can improve driving comfort.
[0120] Figure 2 FIG. 1 is a flow chart of another parking real-time obstacle avoidance method provided by an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0121] Step S201, outputting a preliminary grid map;
[0122] Here, a preliminary grid map (i.e., initial grid map) is determined using a visual input component of the vehicle;
[0123] Step S202, introducing big data and machine learning algorithms to identify obstacle types and output obstacle coordinates;
[0124] Here, a big data method is used to update the current environmental information to the environmental information set in the data storage system, and a machine learning algorithm is used to identify obstacles based on the environmental information set in the data storage system to obtain obstacle information in the environmental information;
[0125] Step S203, drawing an obstacle map in combination with historical data;
[0126] Here, the obstacle map is determined based on the historical parking data of the vehicle;
[0127] Step S204, fusing the grid map, obstacle type and radar obstacle map data, and outputting a grid map for obstacle avoidance;
[0128] Here, the grid map (i.e., the initial grid map), obstacle type, and radar obstacle map data (i.e., the obstacle map) are fused to output a grid map for obstacle avoidance (i.e., the obstacle avoidance grid map);
[0129] Step S205, predicting the vehicle's 1m travel trajectory based on the current gear position and steering wheel angle (i.e., current driving data), dividing it into 10 segments on average, and taking the endpoints as the vehicle's future position;
[0130] Here, it is equivalent to predicting the trajectory of the vehicle traveling a preset distance in the obstacle avoidance grid map based on the current driving data of the vehicle and the vehicle motion model of the vehicle, dividing the trajectory into segments evenly according to the preset number, taking the endpoint of each segment as the future position of the vehicle, and determining the future motion trajectory of the vehicle based on the future position sequence composed of the future positions;
[0131] Step S206, based on the size of the vehicle (i.e., volume information) and the future position coordinates of the vehicle (i.e., future position sequence), matrix calculation is performed to obtain the four edges of the vehicle and convert them into coordinates within the grid map;
[0132] Here, it is equivalent to determining the four corner points corresponding to the vehicle in the standard coordinate system based on the volume information of the vehicle; using the preset transformation matrix, performing matrix transformation on the four corner points corresponding to the vehicle to determine the corresponding position coordinates of the vehicle in the obstacle avoidance grid map;
[0133] Step S207, judging whether there is an obstacle at the coordinate point of the edge in the direction of vehicle movement according to the direction of vehicle movement; if so, proceeding to step S208;
[0134] Here, it is equivalent to judging whether there are obstacles at the coordinate points on the future motion trajectory in the obstacle avoidance grid map;
[0135] Step S208, calculating the distance S1 (i.e., the first distance) that the vehicle can move before collision based on the coordinates of the current vehicle position (i.e., the vehicle position coordinates) and the coordinates of the current point (i.e., the obstacle position coordinates);
[0136] Here, it is equivalent to determining the first distance based on the position coordinates of the vehicle and the position coordinates of the obstacle, and the first distance is used to represent the maximum moving distance before the vehicle collides with the obstacle;
[0137] Step S209, real-time ultrasonic output distance;
[0138] Here, an ultrasonic input component is used to obtain the ultrasonic output distance;
[0139] Step S210, taking the minimum distance S2 (i.e., the second distance) from the obstacle in the direction of the vehicle's movement according to the distance of the ultrasonic output and the vehicle's movement direction (i.e., the future movement trajectory);
[0140] Here, it is equivalent to using the ultrasonic input component of the vehicle to obtain the second distance, and the second distance is used to represent the minimum distance from the obstacle on the future motion trajectory of the vehicle;
[0141] Step S211, taking the minimum value S (i.e., obstacle avoidance distance) of S1 and S2, and making different strategies (i.e., obstacle avoidance strategies) according to S, such as deceleration or braking;
[0142] Here, it is equivalent to taking the minimum value of the first distance and the second distance as the obstacle avoidance distance, and determining the vehicle's obstacle avoidance strategy for the obstacle avoidance distance according to the size relationship between the obstacle avoidance distance and the obstacle avoidance threshold. The obstacle avoidance strategy includes but is not limited to: braking, deceleration, and direction adjustment.
[0143] Figure 3 is a schematic diagram of the structure of a parking real-time obstacle avoidance device provided by an embodiment of the present invention, such as Figure 3 As shown, the device can be applied to intelligent electronic devices such as servers and computers; the device includes: a determination module 301, a prediction module 302 and an obstacle avoidance module 303;
[0144] The determination module 301 is used to determine the obstacle avoidance grid map based on the radar data information and the initial grid map; the radar data information is determined based on the ultrasonic input component of the vehicle; the initial grid map is determined based on the visual input component of the vehicle;
[0145] A prediction module 302 is used to obtain the future motion trajectory of the vehicle in the obstacle avoidance grid map using a preview algorithm;
[0146] The obstacle avoidance module 303 is used to determine whether there is an obstacle at the coordinate point on the future motion trajectory in the obstacle avoidance grid map, and whether there is a risk of collision between the obstacle and the vehicle, and determine the vehicle's obstacle avoidance strategy based on the judgment result.
[0147] In a specific embodiment, the determination module 301 is used to use the ultrasonic input component of the vehicle to determine an obstacle map based on the historical parking data of the vehicle; the obstacle map includes but is not limited to: obstacle distance information and radar blind spot information.
[0148] In a specific embodiment, the determination module 301 is used to obtain an image of the environment in which the vehicle is located using a visual input component of the vehicle, determine current environmental information corresponding to the environment in which the vehicle is located based on the environmental image, and update the current environmental information to an environmental information set in a data storage system, where the data storage system includes but is not limited to: a distributed file system, a cloud storage system;
[0149] Using a computer vision algorithm, obstacles are identified based on the environmental information set in the data storage system to obtain obstacle information in the environmental information; the obstacle information includes but is not limited to: obstacle type and obstacle coordinates;
[0150] The initial grid map, obstacle information and obstacle map are integrated to determine the obstacle avoidance grid map.
[0151] In a specific embodiment, the prediction module 302 is used to use a preview algorithm to predict the trajectory of the vehicle traveling a preset distance in the obstacle avoidance grid map based on the current driving data of the vehicle and the vehicle motion model of the vehicle; the current driving data includes but is not limited to: the steering angle of the vehicle and the position of the vehicle; the trajectory is used to represent the continuous path of the vehicle determined by the prediction;
[0152] The trajectory is evenly divided into segments according to a preset number, the endpoint of each segment is taken as the future position of the vehicle, and the future motion trajectory of the vehicle is determined according to the future position sequence composed of the future positions;
[0153] Based on the volume information of the vehicle, determine the four corner points corresponding to the vehicle in the standard coordinate system;
[0154] Using a preset transformation matrix, the four corner points of the vehicle are transformed by matrix to obtain the position coordinates of the four corner points corresponding to the obstacle avoidance grid map, so as to represent the position coordinates of the vehicle corresponding to the obstacle avoidance grid map;
[0155] A preset transformation matrix is used to perform a matrix transformation on at least one future position in the future position sequence to obtain the position coordinates of the future position sequence corresponding to the obstacle avoidance grid map, so as to characterize the position coordinates of the future motion trajectory corresponding to the obstacle avoidance grid map.
[0156] In a specific embodiment, the obstacle avoidance module 303 is used to determine whether there is a risk of collision between the obstacle and the vehicle if an obstacle is determined to exist on the future motion trajectory of the vehicle according to the obstacle avoidance grid map;
[0157] If it is determined that there is a risk of collision between the obstacle and the vehicle, the corresponding position coordinates of the obstacle in the obstacle avoidance grid map are determined;
[0158] Determine a first distance based on the position coordinates of the vehicle and the position coordinates of the obstacle; the first distance is used to represent the maximum moving distance before the vehicle collides with the obstacle;
[0159] The ultrasonic input component of the vehicle is used to obtain a second distance; the second distance is used to represent the minimum distance from the obstacle on the future motion trajectory of the vehicle;
[0160] An obstacle avoidance strategy of the vehicle is determined based on the first distance and the second distance.
[0161] In a specific embodiment, the obstacle avoidance module 303 is used to obtain the motion state information of the obstacle using the visual input component of the vehicle, and determine the state type of the obstacle as static or moving according to the motion state information; the motion state information includes but is not limited to: motion direction, motion speed;
[0162] When it is determined that the state type of the obstacle is motion, the future trajectory of the obstacle is predicted based on the motion state information of the obstacle, and the future trajectory of the obstacle is mapped into the obstacle avoidance grid map;
[0163] Based on the future motion trajectory of the vehicle and the future travel trajectory of the obstacle in the obstacle avoidance grid map, it is determined whether there is a risk of collision between the obstacle and the vehicle.
[0164] In a specific embodiment, the obstacle avoidance module 303 is configured to use the minimum value between the first distance and the second distance as the obstacle avoidance distance;
[0165] According to the relationship between the obstacle avoidance distance and the obstacle avoidance threshold, the vehicle's obstacle avoidance strategy for the obstacle avoidance distance is determined; the obstacle avoidance strategy includes but is not limited to: braking, deceleration, and movement direction adjustment.
[0166] It should be noted that: the parking real-time obstacle avoidance device provided in the above embodiment only uses the division of the above program modules as an example to illustrate when implementing the corresponding parking real-time obstacle avoidance method. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the above-described processing. Figure 1 The embodiments of the method shown belong to the same concept, and the specific implementation process is detailed in the method embodiments, which will not be repeated here.
[0167] The embodiment of the present invention also provides a computer device having the above Figure 3 The parking real-time obstacle avoidance device shown.
[0168] See also Figure 4 , Figure 4 is a structural schematic diagram of another parking real-time obstacle avoidance device provided by an embodiment of the present invention, such as Figure 4 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 4 A processor 10 is taken as an example.
[0169] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0170] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0171] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0172] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0173] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0174] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0175] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0176] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A real-time parking obstacle avoidance method, characterized in that: The method comprises: Determining an obstacle avoidance grid map based on radar data information and an initial grid map; the radar data information is determined based on an ultrasonic input component of the vehicle; the initial grid map is determined based on a visual input component of the vehicle; Using a preview algorithm to obtain the future motion trajectory of the vehicle in the obstacle avoidance grid map; It is determined whether there is an obstacle at the coordinate point on the future motion trajectory in the obstacle avoidance grid map, and whether there is a risk of collision between the obstacle and the vehicle, and the obstacle avoidance strategy of the vehicle is determined according to the determination result.
2. The method according to claim 1, characterized in that: Based on the radar data information determined by the vehicle's ultrasonic input component, this is achieved based on the following steps: The ultrasonic input component of the vehicle is used to determine an obstacle map based on the historical parking data of the vehicle; the obstacle map includes but is not limited to: obstacle distance information and radar blind spot information.
3. The method according to claim 2, characterized in that Based on the radar data information and the initial grid map, the obstacle avoidance grid map is determined, which is implemented based on the following steps: Using a visual input component of the vehicle to obtain an image of the environment in which the vehicle is located, determining current environmental information corresponding to the environment in which the vehicle is located based on the environmental image, and updating the current environmental information to an environmental information set in a data storage system, wherein the data storage system includes but is not limited to: a distributed file system and a cloud storage system; Using a computer vision algorithm, performing obstacle recognition based on the environmental information set in the data storage system to obtain obstacle information in the environmental information; The obstacle information includes but is not limited to: obstacle type and obstacle coordinates; The initial grid map, the obstacle information and the obstacle map are integrated to determine an obstacle avoidance grid map.
4. The method according to claim 3, characterized in that The adopting of the preview algorithm to obtain the future motion trajectory of the vehicle in the obstacle avoidance grid map includes: A preview algorithm is used to predict the trajectory of the vehicle traveling a preset distance in the obstacle avoidance grid map based on the current driving data of the vehicle and the vehicle motion model of the vehicle; the current driving data includes but is not limited to: the steering angle of the vehicle and the position of the vehicle; the trajectory is used to characterize the predicted continuous path of the vehicle; The trajectory is evenly divided into segments according to a preset number, the endpoints of each segment are taken as the future position of the vehicle, and the future motion trajectory of the vehicle is determined according to a future position sequence composed of the future positions; Based on the volume information of the vehicle, determining four corner points corresponding to the vehicle in a standard coordinate system; Using a preset transformation matrix, the four corner points of the vehicle are subjected to matrix transformation to obtain position coordinates of the four corner points corresponding to the obstacle avoidance grid map, so as to represent the position coordinates of the vehicle corresponding to the obstacle avoidance grid map; The preset transformation matrix is used to perform a matrix transformation on at least one future position in the future position sequence to obtain the position coordinates of the future position sequence corresponding to the obstacle avoidance grid map, so as to characterize the position coordinates of the future motion trajectory corresponding to the obstacle avoidance grid map.
5. The method according to claim 4, characterized in that Determine whether there is an obstacle at the coordinate point on the future motion trajectory in the obstacle avoidance grid map, and whether there is a risk of collision between the obstacle and the vehicle, and determine the obstacle avoidance strategy of the vehicle based on the judgment result, based on the following steps: If it is determined according to the obstacle avoidance grid map that there is an obstacle on the future motion trajectory of the vehicle, determining whether there is a risk of collision between the obstacle and the vehicle; If it is determined that there is a risk of collision between the obstacle and the vehicle, determining the position coordinates corresponding to the obstacle in the obstacle avoidance grid map; Determining a first distance based on the position coordinates of the vehicle and the position coordinates of the obstacle; the first distance is used to represent the maximum moving distance before the vehicle collides with the obstacle; Using an ultrasonic input component of the vehicle to obtain a second distance; the second distance is used to represent the minimum distance from the obstacle on the future motion trajectory of the vehicle; An obstacle avoidance strategy for the vehicle is determined based on the first distance and the second distance.
6. The method according to claim 5, characterized in that If it is determined based on the obstacle avoidance grid map that there is an obstacle on the future motion trajectory of the vehicle, it is determined whether there is a risk of collision between the obstacle and the vehicle, which is achieved based on the following steps: The visual input component of the vehicle is used to obtain the motion state information of the obstacle, and the state type of the obstacle is determined to be static or moving according to the motion state information; the motion state information includes but is not limited to: motion direction, motion speed; When it is determined that the state type of the obstacle is motion, predicting the future moving trajectory of the obstacle according to the motion state information of the obstacle, and mapping the future moving trajectory of the obstacle into the obstacle avoidance grid map; Based on the future motion trajectory of the vehicle and the future travel trajectory of the obstacle in the obstacle avoidance grid map, it is determined whether there is a collision risk between the obstacle and the vehicle.
7. The method according to claim 5, characterized in that The determining, based on the first distance and the second distance, an obstacle avoidance strategy of the vehicle includes: The minimum value between the first distance and the second distance is used as the obstacle avoidance distance; According to the magnitude relationship between the obstacle avoidance distance and the obstacle avoidance threshold, an obstacle avoidance strategy of the vehicle for the obstacle avoidance distance is determined; the obstacle avoidance strategy includes but is not limited to: braking, deceleration, and movement direction adjustment.
8. A parking real-time obstacle avoidance device, characterized in that: The device comprises: A determination module, configured to determine an obstacle avoidance grid map based on radar data information and an initial grid map; the radar data information is determined based on an ultrasonic input component of the vehicle; and the initial grid map is determined based on a visual input component of the vehicle; A prediction module, used to obtain the future motion trajectory of the vehicle in the obstacle avoidance grid map by using a preview algorithm; The obstacle avoidance module is used to determine whether there is an obstacle at the coordinate point on the future motion trajectory in the obstacle avoidance grid map, and whether there is a risk of collision between the obstacle and the vehicle, and determine the obstacle avoidance strategy of the vehicle based on the judgment result.
9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the real-time parking obstacle avoidance method according to any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the real-time parking obstacle avoidance method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Automatic parking method based on fusion of vision and ultrasonic perception
CN110775052A
Intelligent valet parking method, computer readable storage medium and electronic equipment
CN111319615A
Method for constructing semantic map on line by utilizing fusion of laser radar and visual sensor
CN111928862A
Method and system for controlling automatic parking
CN111976718A
Overhead working truck anti-collision method and system based on multi-sensor data fusion
CN114671380A
