Safe obstacle avoidance method, device and equipment for vehicle and medium
By converting the lidar point cloud into a real-time grid map and predicting the vehicle's driving trajectory and judging obstacles, the problem of poor flexibility in obstacle identification and braking timing in unmanned sweepers is solved, and the safety of autonomous vehicles is improved. Real-time.
Patent Information
- Application Number
- CN202411039075.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-11-01
AI Technical Summary
Among the existing active safety technologies for unmanned sweeping vehicles, the ultrasonic radar signal transmission frequency is low, which cannot meet the real-time detection requirements. The lidar point cloud data is large and the calculation amount is large, resulting in poor flexibility in identifying obstacles and braking timing, which is difficult to Ensure the safety of autonomous vehicles.
The grid map is constructed based on point cloud data collected by radar, predict the vehicle's future driving trajectory, and judge obstacles through the grid map, reduce unnecessary point cloud data processing, and flexibly adjust the braking timing.
It improves the real-time and flexibility of obstacle identification and braking of autonomous vehicles during driving, ensures the safe and reliable driving of the vehicle, especially in the application scenarios of slow driving, and solves real-time safety problems.
Smart Images

Figure CN118877013A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of autonomous driving technology, and more specifically, to a method, device, equipment and medium for safely avoiding obstacles in a vehicle. Background Art
[0002] With the increasing popularity of autonomous driving technology, the concept of autonomous driving has penetrated into all walks of life. For example, combining autonomous driving with traditional sanitation sweepers to replace traditional manual driving can save financial, material and human resources through intelligent control methods and improve cleaning efficiency. In order to realize autonomous unmanned driving of sweepers, it is necessary to first ensure the safety of sweepers and other traffic participants. Research and development of active safety technology for vehicles is of great significance.
[0003] The existing active safety technologies for unmanned road sweepers mostly use ultrasonic radar or directly use laser radar point cloud for emergency braking. Among them, ultrasonic radar is used to sense the distance of obstacles around the unmanned road sweeper, and when the obstacle is too close, the emergency braking of the road sweeper is triggered; or laser radar is directly used to detect the point cloud position information of the obstacle, judge the distance between the road sweeper and the road sweeper, and confirm whether to perform emergency braking.
[0004] However, the transmission frequency of ultrasonic radar signals is low, and it cannot meet the needs of real-time detection and takeover during the driving process of unmanned sweepers. In addition, ultrasonic feedback generally only provides distance information to obstacles, which is not flexible for use in active safety algorithms. In addition, although the frequency of laser radar sensing surrounding obstacle information is high, its data volume is large. If the laser radar point cloud is used directly during real-time driving of the vehicle, it is necessary to calculate and process a large amount of point cloud information, which requires a lot of calculation. Summary of the invention
[0005] Embodiments of the present invention provide a vehicle safety obstacle avoidance method, device, equipment and medium, which are used to improve the real-time and flexibility of obstacle recognition and vehicle braking during the driving process of an autonomous driving vehicle.
[0006] In a first aspect, the present invention provides a safe obstacle avoidance method for a vehicle, the method comprising:
[0007] Construct a grid map of the current road scene based on the point cloud data collected by the radar;
[0008] According to the vehicle kinematic model, a sampling time, a moving speed and a number of trajectory points are preset to determine a predicted trajectory of the vehicle at a future time, wherein the length of the predicted trajectory is greater than the braking distance of the vehicle when braking at the current speed, and the predicted trajectory includes the position information and heading information of each predicted trajectory point;
[0009] Traverse each predicted trajectory point, and generate a predicted vehicle position frame corresponding to the predicted trajectory point according to the vehicle size information, the position information and the heading information of the predicted trajectory point;
[0010] Determine whether the grid corresponding to the predicted vehicle position frame is an obstacle grid;
[0011] If the grid corresponding to the predicted vehicle position box is a non-obstacle grid, the next predicted trajectory point is traversed, and the operation of determining whether the grid corresponding to the predicted vehicle position box is an obstacle grid is returned; if it is an obstacle grid, the vehicle is controlled to decelerate according to the distance between the obstacle and the current vehicle.
[0012] Optionally, a grid map of the current road scene is constructed based on the point cloud data collected by the radar, including:
[0013] Obtain the size and resolution information of the raster map to be constructed;
[0014] According to the size information and the resolution information, the three-dimensional data information of the point cloud data collected by the radar is converted into raster map data.
[0015] Optionally, the vehicle kinematics model includes:
[0016] The relationship between the vehicle's speed and position, and the relationship between the vehicle's front wheel turning angle and heading angle;
[0017] Accordingly, according to the vehicle kinematic model, the sampling time, the moving speed and the number of trajectory points are preset to determine the predicted trajectory of the vehicle at the future moment, including:
[0018] According to the following formula, the predicted trajectory of the vehicle at the future moment is determined, including:
[0019]
[0020] Where n represents the number of preset trajectory points, k = 1, 2, ..., n represents the kth predicted trajectory point, (x k ,y k ) represents the location information of the kth predicted trajectory point, Indicates the heading angle information of the k+1th predicted trajectory point, (x k+1 ,y k+1 ) represents the position information of the k+1th predicted trajectory point, represents the heading angle information of the kth predicted trajectory point, v represents the preset moving speed, δ k represents the front wheel turning angle information of the vehicle corresponding to the kth predicted trajectory point, and t represents the preset sampling time.
[0021] Optionally, generating a predicted vehicle position frame corresponding to the predicted trajectory point according to the size information of the vehicle, the position information and the heading information of the predicted trajectory point includes:
[0022] According to the position information and heading information of the predicted trajectory point, the coordinates of the four corners of the vehicle body frame with the predicted trajectory point as the rear axle center are determined as the coordinates of the predicted vehicle body position frame.
[0023] Optionally, determining whether the grid corresponding to the predicted vehicle position box is an obstacle grid includes:
[0024] Convert the four corner coordinates of the predicted vehicle position box into the corresponding four grid coordinates;
[0025] Determine the values of all grids in the grid area formed by four grid coordinates;
[0026] If the values of all grids are greater than or equal to the preset point count threshold, the grid corresponding to the predicted vehicle position box is determined to be an obstacle grid;
[0027] If the values of all grids are less than the preset point number threshold, the grid corresponding to the predicted vehicle position box is determined to be a non-obstacle grid.
[0028] In a second aspect, an embodiment of the present invention further provides a safety obstacle avoidance device for a vehicle, comprising:
[0029] A raster map creation module, configured to construct a raster map of the current road scene based on point cloud data collected by the radar;
[0030] A predicted trajectory determination module is configured to determine a predicted trajectory of the vehicle at a future time according to a vehicle kinematic model, a preset sampling time, a preset moving speed, and a preset number of trajectory points, wherein the length of the predicted trajectory is greater than a braking distance when the vehicle brakes at a current speed, and the predicted trajectory includes position information and heading information of each predicted trajectory point;
[0031] A predicted vehicle body position frame generation module is configured to traverse each predicted trajectory point and generate a predicted vehicle body position frame corresponding to the predicted trajectory point according to the size information of the vehicle, the position information and the heading information of the predicted trajectory point;
[0032] An obstacle grid determination module is configured to determine whether the grid corresponding to the predicted vehicle position frame is an obstacle grid;
[0033] The deceleration module is configured to traverse the next predicted trajectory point if the grid corresponding to the predicted vehicle body position box is a non-obstacle grid, and return to execute an operation to determine whether the grid corresponding to the predicted vehicle body position box is an obstacle grid; if it is an obstacle grid, the vehicle is controlled to decelerate according to the distance between the obstacle and the current vehicle.
[0034] Optionally, the grid map creation module is configured as follows:
[0035] Obtain the size and resolution information of the raster map to be constructed;
[0036] According to the size information and resolution information, the three-dimensional data information of the point cloud data collected by the radar is converted into raster map data.
[0037] Optionally, the vehicle kinematics model includes:
[0038] The relationship between the vehicle's speed and position, and the relationship between the vehicle's front wheel turning angle and heading angle;
[0039] Accordingly, the prediction trajectory determination module is specifically configured as follows:
[0040] According to the following formula, the predicted trajectory of the vehicle at the future moment is determined, including:
[0041]
[0042] Where n represents the number of preset trajectory points, k = 1, 2, ..., n represents the kth predicted trajectory point, (x k ,y k ) represents the location information of the kth predicted trajectory point, Indicates the heading angle information of the k+1th predicted trajectory point, (x k+1 ,y k+1 ) represents the position information of the k+1th predicted trajectory point, represents the heading angle information of the kth predicted trajectory point, v represents the preset moving speed, δ k represents the front wheel turning angle information of the vehicle corresponding to the kth predicted trajectory point, L represents the distance between the front axle and the rear axle of the vehicle, and t represents the preset sampling time.
[0043] Optionally, the predicted vehicle position frame generation module is specifically configured as follows:
[0044] According to the position information and heading information of the predicted trajectory point, the coordinates of the four corners of the vehicle body frame with the predicted trajectory point as the rear axle center are determined as the coordinates of the predicted vehicle body position frame.
[0045] Optionally, the obstacle grid judgment module is specifically configured as follows:
[0046] Convert the four corner coordinates of the predicted vehicle position box into the corresponding four grid coordinates;
[0047] Determine the values of all grids in the grid area formed by four grid coordinates;
[0048] If the values of all grids are greater than or equal to the preset point count threshold, the grid corresponding to the predicted vehicle position box is determined to be an obstacle grid;
[0049] If the values of all grids are less than the preset point number threshold, the grid corresponding to the predicted vehicle position box is determined to be a non-obstacle grid.
[0050] In a third aspect, an embodiment of the present invention further provides a computing device, including:
[0051] A memory storing executable program code;
[0052] a processor coupled to the memory;
[0053] The processor calls the executable program code stored in the memory to execute the vehicle safety obstacle avoidance method provided by any embodiment of the present invention.
[0054] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the vehicle safety obstacle avoidance method provided by any embodiment of the present invention.
[0055] In a fifth aspect, an embodiment of the present invention further provides a vehicle, which includes a computing device as provided in any of the above embodiments, or includes a vehicle safety obstacle avoidance device as provided in any of the above embodiments.
[0056] The technical solution provided by the embodiment of the present invention adopts a method of converting the laser radar point cloud into a real-time grid map in real time. By predicting the driving trajectory of the vehicle and judging whether the grid of the predicted vehicle position frame corresponding to each predicted trajectory point in the predicted trajectory is occupied by an obstacle, the timing of emergency braking of the vehicle can be flexibly adjusted according to the distance information between the vehicle and the obstacle when the grid is judged to be occupied by an obstacle. Compared with the problems of poor real-time performance and poor flexibility when the autonomous driving vehicle performs emergency braking based on ultrasonic radar and directly uses the laser radar point cloud method in the related art, and the problem of vehicle jamming due to misdetection of point cloud noise points, the technical solution provided by this embodiment does not need to use point cloud data information unrelated to the predicted trajectory, reduces the amount of calculation, and improves the real-time performance and flexibility of obstacle recognition and vehicle braking during the driving process of the autonomous driving vehicle, thereby ensuring the safe and reliable driving of the autonomous driving vehicle. In particular, in the application scenario of the road automatic sweeper, which is slow in itself, the real-time safety problem of the automatic sweeper during driving is solved.
[0057] The innovative features of the embodiments of the present invention include:
[0058] 1. Converting the real-time LiDAR point cloud into a real-time grid map can not only filter the point cloud by adjusting the size of the grid map to reduce the amount of calculation, but also avoid the impact of flashing noise points causing vehicle jams, which is one of the innovative points of the embodiment of the present invention.
[0059] 2. The future driving trajectory of the vehicle is predicted based on the real-time status information of the vehicle, and obstacle detection is performed based on the predicted trajectory and the grid map. There is no need to use point cloud data information that is not related to the predicted trajectory. Compared with the solutions in the related art, the amount of calculation is reduced, the real-time nature of obstacle recognition is ensured, and the timing of emergency braking of the vehicle can be flexibly adjusted based on the distance information of the obstacle. This is one of the innovative points of the embodiment of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only 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.
[0061] Figure 1 A flow chart of a safe obstacle avoidance method for a vehicle provided in Embodiment 1 of the present invention;
[0062] Figure 2 A structural block diagram of a vehicle safety obstacle avoidance device provided in Embodiment 2 of the present invention;
[0063] Figure 3 A schematic diagram of the structure of a computing device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0064] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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 ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0065] It should be noted that the terms "including" and "having" and any variations thereof in the embodiments of the present invention and the accompanying drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.
[0066] The embodiments of the present invention disclose a vehicle safety obstacle avoidance method, device, equipment and medium, which are described in detail below.
[0067] Embodiment 1
[0068] Figure 1 This is a flow chart of a vehicle safety obstacle avoidance method provided in the first embodiment of the present invention. The method can be applied to vehicle terminals such as on-board computers and on-board industrial personal computers (IPC), and can also be applied to servers, and the present embodiment does not limit this. The method provided in this embodiment can be applied to application scenarios where an autonomous driving vehicle identifies obstacles and safely avoids them, and can typically be applied during the driving process of an automatic road sweeper. The method provided in this embodiment can be executed by a vehicle safety obstacle avoidance device, which can be implemented by software and / or hardware. Figure 1 As shown, the method provided in this embodiment specifically includes:
[0069] S110: construct a grid map of the current road scene based on the point cloud data collected by the radar.
[0070] Among them, the grid map uses a grid composed of grids to represent the map. Different values can be stored in the grid to represent whether the grid is occupied. When creating a grid map, you can set the threshold corresponding to each grid. If the value of the grid exceeds the threshold, it means that the grid is occupied by an obstacle and the grid belongs to the obstacle grid; if the value of the grid is less than the threshold, it means that the grid is not occupied by an obstacle.
[0071] In this embodiment, when constructing a three-dimensional point map based on radar point cloud data, the three-dimensional point cloud data can be projected onto a two-dimensional plane according to the size information and resolution information of the grid map to be constructed, and the index of the data point in the grid map can be calculated based on the coordinate information of the data point to determine which grid each point should fall in.
[0072] For example, take the raster map data format in ROS (Robot Operating System):
[0073] std_msgs / Header header
[0074] nav_msgs / MapMetaData info
[0075] int8[]data
[0076] The data is a one-dimensional array that stores the values of the grids in the grid map. The range is [0,100]. The larger the value, the more likely the point is an obstacle point. Specifically, when the grid map is created, a threshold for the grid value is set. If the grid value exceeds the threshold, it means that the grid is occupied by an obstacle.
[0077] The format of nav_msgs / MapMetaData data is as follows:
[0078] time map_load_time
[0079] float32 resolution
[0080] uint32 width
[0081] uint32 height
[0082] geometry_msgs / Pose origin
[0083] Where resolution is the grid map resolution, which represents the side length of a grid; width is the map width; height is the map height.
[0084] The serial numbers mx and my of the data array elements can be calculated as follows:
[0085] mx=(x-map.info.origin.x) / map.info.resolution,
[0086] my=(y-map.info.origin.y) / map.info.resolution
[0087] Where (x, y) is the coordinate of a point in the world coordinate system, map.info.origin.x and map.info.origin.y are the coordinates of the origin (0, 0) of the raster map in the world coordinate system, and map.info.resolution is the resolution of the raster map. The coordinate index of the raster map can be obtained by the following formula:
[0088] index=[my*map.info.height+mx]
[0089] Among them, map.info.height represents the height of the grid map. Specifically, it specifies the number of grid cells in the vertical direction (usually the Y-axis direction) of the map.
[0090] Through the above scheme, the geographic coordinates of the three-dimensional point cloud in the world coordinate system can be converted into grid index values to ensure that each point is correctly assigned to the corresponding grid, thereby realizing the conversion of the three-dimensional data information of the point cloud into grid map data.
[0091] S120. According to the vehicle kinematics model, a preset sampling time, a preset moving speed, and a preset number of trajectory points are preset to determine a predicted trajectory of the vehicle at a future time.
[0092] The vehicle kinematic model includes the relationship between the vehicle's speed and position, and the relationship between the vehicle's front wheel turning angle and heading angle, which can be specifically expressed by the following formula:
[0093]
[0094] In the above formula, represents the lateral velocity of the vehicle, represents the longitudinal velocity of the vehicle, represents the heading angle information of the vehicle, δ represents the front wheel turning angle of the vehicle, v represents the preset moving speed of the vehicle, and L represents the distance between the front axle and the rear axle of the vehicle.
[0095] The predicted trajectory includes the location information and heading information of each predicted trajectory point, and the sum of the number of predicted trajectory points is the number of preset trajectory points. The length of the predicted trajectory is greater than the braking distance of the vehicle at the current speed, that is, if there is an obstacle in front of the current vehicle, the vehicle can brake before colliding with the obstacle by traveling according to the predicted trajectory.
[0096] In this embodiment, the preset moving speed and the preset number of trajectory points are empirical values, which can be set according to the speed of different types of vehicles in actual driving. The preset sampling time is also an empirical value. The smaller the preset sampling time, the denser the distance between the predicted trajectory points.
[0097] In this embodiment, according to the vehicle kinematic model, the preset sampling time, the preset moving speed and the preset number of trajectory points, the predicted trajectory of the vehicle at the future moment is determined, which can be achieved by the following formula:
[0098]
[0099] Where n represents the number of preset trajectory points, k = 1, 2, ..., n represents the predicted trajectory points, (x k ,y k ) represents the position of the kth predicted trajectory point, Indicates the heading angle information of the k+1th predicted trajectory point, (x k+1 ,y k+1 ) represents the position information of the k+1th predicted trajectory point, represents the heading angle information of the kth predicted trajectory point, v represents the preset moving speed, δ k represents the front wheel turning angle information of the vehicle corresponding to the kth predicted trajectory point, L represents the distance between the front axle and the rear axle of the vehicle, and t represents the preset sampling time.
[0100] S130, traversing each predicted trajectory point, and generating a predicted vehicle body position frame corresponding to the predicted trajectory point according to the size information of the vehicle, the position information and the heading information of the predicted trajectory point.
[0101] In this embodiment, the size information of the vehicle includes the actual length, width and height data of the vehicle. In this embodiment, starting from the first predicted trajectory point, according to the position information and heading information of the predicted trajectory point, the four corner coordinates of the body frame with the predicted trajectory point as the rear axle center can be determined as the coordinates of the predicted body position frame.
[0102] S140, determining whether the grid corresponding to the predicted vehicle position box is an obstacle grid, if so, executing step S150; otherwise, returning to executing step S130.
[0103] In this embodiment, determining whether the grid corresponding to the predicted vehicle position box is an obstacle grid can be achieved through the following steps AB:
[0104] A. Convert the four corner coordinates of the predicted vehicle position box into the corresponding four grid coordinates.
[0105] The conversion of the four corner coordinates of the predicted vehicle position box into the corresponding four grid coordinates can refer to the explanation of the above step S110, which will not be repeated here.
[0106] B. Determine the values of all grids in the grid area formed by the four grid coordinates. If the values of all grids are greater than or equal to the preset point threshold, determine that the grid corresponding to the predicted vehicle position frame is an obstacle grid, that is, the grid is occupied by an obstacle, that is, there is an obstacle in the road ahead of the current vehicle; if the values of all grids are less than the preset point threshold, determine that the grid corresponding to the predicted vehicle position frame is a non-obstacle grid, that is, the grid is not occupied by an obstacle, that is, there is no obstacle in the road ahead of the current vehicle.
[0107] In this embodiment, once it is determined that the grid is occupied by an obstacle, the subsequent predicted trajectory points will not be traversed. If it is determined that the predicted vehicle position box corresponding to the current trajectory point is not occupied by an obstacle, the traversal of the next predicted trajectory point will continue until it is determined that the grid is occupied by an obstacle, then the traversal of the predicted trajectory point will be interrupted. If the grid is not determined to be occupied by an obstacle during the traversal of the predicted trajectory points, all predicted trajectory points in the predicted trajectory need to be traversed.
[0108] In this embodiment, at each actual position of the vehicle during driving, the predicted trajectory can be determined according to the above-mentioned implementation method and a predicted vehicle position frame corresponding to each predicted trajectory point can be generated. Therefore, based on the feature of whether the grid corresponding to the predicted vehicle position frame is an obstacle grid, it is possible to predict whether there is an obstacle in front of the vehicle, thereby avoiding the risk of collision due to untimely obstacle recognition and improving the safety of vehicle driving.
[0109] S150: Control the vehicle to decelerate according to the distance between the obstacle and the current vehicle.
[0110] The distance between the predicted vehicle position frame occupied by the obstacle and the actual position of the vehicle can be used as the distance between the obstacle and the current vehicle. The current vehicle can determine the braking timing of the vehicle based on the distance to avoid collision with the obstacle. For example, if the current vehicle is close to the obstacle, emergency braking is required; if the current vehicle is far from the obstacle, slow braking can be used to allow the vehicle to brake smoothly.
[0111] In this embodiment, a method of converting the laser radar point cloud into a real-time grid map in real time is adopted. By predicting the driving trajectory of the vehicle and judging whether the grid of the predicted vehicle position frame corresponding to each predicted trajectory point in the predicted trajectory is occupied by an obstacle in the grid map, the timing of emergency braking of the vehicle can be flexibly adjusted according to the distance information between the vehicle and the obstacle when the grid is judged to be occupied by an obstacle. Compared with the problems of poor real-time performance and poor flexibility when the autonomous driving vehicle performs emergency braking based on ultrasonic radar and directly uses the laser radar point cloud method in the related art, and the problem of vehicle jamming due to misdetection of point cloud noise points, the technical solution provided by this embodiment does not need to use point cloud data information unrelated to the predicted trajectory, reduces the amount of calculation, and improves the real-time performance and flexibility of obstacle recognition and vehicle braking during the driving process of the autonomous driving vehicle, ensuring the safe and reliable driving of the autonomous driving vehicle. Especially in the application scenario of the road automatic sweeper, which is slow in itself, the real-time safety problem of the automatic sweeper during driving is solved.
[0112] Embodiment 2
[0113] Figure 2 A structural block diagram of a vehicle safety obstacle avoidance device provided in Embodiment 2 of the present invention, such as Figure 2 As shown, the device includes: a grid map creation module 210, a predicted trajectory determination module 220, a predicted vehicle position frame generation module 230, an obstacle grid judgment module 240 and a deceleration module 250, wherein:
[0114] A grid map creation module 210 is configured to construct a grid map of the current road scene based on the point cloud data collected by the radar;
[0115] The predicted trajectory determination module 220 is configured to determine the predicted trajectory of the vehicle at a future time according to the vehicle kinematic model, a preset sampling time, a preset moving speed and a preset number of trajectory points, wherein the length of the predicted trajectory is greater than the braking distance of the vehicle when braking at the current speed, and the predicted trajectory includes the position information and heading information of each predicted trajectory point;
[0116] The predicted vehicle body position frame generating module 230 is configured to traverse each predicted trajectory point and generate a predicted vehicle body position frame corresponding to the predicted trajectory point according to the size information of the vehicle, the position information and the heading information of the predicted trajectory point;
[0117] The obstacle grid determination module 240 is configured to determine whether the grid corresponding to the predicted vehicle position frame is an obstacle grid;
[0118] The deceleration module 250 is configured to traverse the next predicted trajectory point if the grid corresponding to the predicted vehicle body position box is a non-obstacle grid, and return to execute the operation of determining whether the grid corresponding to the predicted vehicle body position box is an obstacle grid; if it is an obstacle grid, control the vehicle to decelerate according to the distance between the obstacle and the current vehicle.
[0119] Optionally, the grid map creation module 210 is specifically configured to:
[0120] Obtain the size and resolution information of the raster map to be constructed;
[0121] According to the size information and resolution information, the three-dimensional data information of the point cloud data collected by the radar is converted into raster map data.
[0122] Optionally, the vehicle kinematics model includes:
[0123] The relationship between the vehicle's speed and position, and the relationship between the vehicle's front wheel turning angle and heading angle;
[0124] Accordingly, the predicted trajectory determination module 220 is specifically configured as follows:
[0125] According to the following formula, the predicted trajectory of the vehicle at the future moment is determined, including:
[0126]
[0127] Where n represents the number of preset trajectory points, k = 1, 2, ..., n represents the kth predicted trajectory point, (x k ,y k ) represents the location information of the kth predicted trajectory point, Indicates the heading angle information of the k+1th predicted trajectory point, (x k+1,y k+1 ) represents the position information of the k+1th predicted trajectory point, represents the heading angle information of the kth predicted trajectory point, v represents the preset moving speed, δ represents the front wheel turning angle information of the vehicle corresponding to the kth predicted trajectory point, L represents the distance between the front axle and the rear axle of the vehicle, and t represents the preset sampling time.
[0128] Optionally, the predicted vehicle position frame generating module 230 is specifically configured as follows:
[0129] According to the position information and heading information of the predicted trajectory point, the coordinates of the four corners of the vehicle body frame with the predicted trajectory point as the rear axle center are determined as the coordinates of the predicted vehicle body position frame.
[0130] Optionally, the obstacle grid determination module 240 is specifically configured as follows:
[0131] Convert the four corner coordinates of the predicted vehicle position box into the corresponding four grid coordinates;
[0132] Determine the values of all grids in the grid area formed by four grid coordinates;
[0133] If the values of all grids are greater than or equal to the preset point count threshold, the grid corresponding to the predicted vehicle position box is determined to be an obstacle grid;
[0134] If the values of all grids are less than the preset point number threshold, the grid corresponding to the predicted vehicle position box is determined to be a non-obstacle grid.
[0135] Embodiment 3
[0136] See also Figure 3 , Figure 3 This is a schematic diagram of the structure of a computing device provided in Embodiment 3 of the present invention. Figure 3 As shown, the computing device may include:
[0137] A memory 701 storing executable program codes;
[0138] a processor 702 coupled to the memory 701;
[0139] The processor 702 calls the executable program code stored in the memory 701 to execute the vehicle safety obstacle avoidance method provided by any embodiment of the present invention.
[0140] An embodiment of the present invention discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute the vehicle safety obstacle avoidance method provided by any embodiment of the present invention.
[0141] An embodiment of the present invention further provides a vehicle, which includes a computing device as provided in any of the above embodiments, or includes a vehicle safety obstacle avoidance device as provided in any of the above embodiments.
[0142] In various embodiments of the present invention, it should be understood that the size of the serial numbers of the above-mentioned processes does not mean the necessary order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0143] In the embodiments provided by the present invention, it should be understood that "B corresponding to A" means that B is associated with A, and B can be determined according to A. However, it should also be understood that determining B according to A does not mean determining B only according to A, and B can also be determined according to A and / or other information.
[0144] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0145] If the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several requests for a computer device (which can be a personal computer, a server or a network device, etc., specifically a processor in a computer device) to perform some or all of the steps of the above methods of various embodiments of the present invention.
[0146] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0147] Those skilled in the art can understand that the accompanying drawings are only schematic diagrams of an embodiment, and the modules or processes in the accompanying drawings are not necessarily required to implement the present invention.
[0148] Those skilled in the art can understand that the modules in the device in the embodiment can be distributed in the device in the embodiment according to the description of the embodiment, or can be changed accordingly and located in one or more devices different from the embodiment. The modules in the above embodiment can be combined into one module, or can be further divided into multiple sub-modules.
[0149] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A safe obstacle avoidance method for a vehicle, characterized in that: include: Construct a grid map of the current road scene based on the point cloud data collected by the radar; According to the vehicle kinematic model, a preset sampling time, a preset moving speed and a preset number of trajectory points are used to determine a predicted trajectory of the vehicle at a future time, wherein the length of the predicted trajectory is greater than the braking distance of the vehicle when braking at the current speed, and the predicted trajectory includes position information and heading information of each predicted trajectory point; Traverse each predicted trajectory point, and generate a predicted vehicle position frame corresponding to the predicted trajectory point according to the vehicle size information, the position information and the heading information of the predicted trajectory point; Determining whether the grid corresponding to the predicted vehicle position frame is an obstacle grid; If the grid corresponding to the predicted vehicle position frame is a non-obstacle grid, traverse the next predicted trajectory point, and return to execute the operation of determining whether the grid corresponding to the predicted vehicle position frame is an obstacle grid; if it is an obstacle grid, control the vehicle to decelerate according to the distance between the obstacle and the current vehicle.
2. The method according to claim 1, characterized in that The step of constructing a grid map of the current road scene based on the point cloud data collected by the radar includes: Obtain the size and resolution information of the raster map to be constructed; According to the size information and the resolution information, the three-dimensional data information of the point cloud data collected by the radar is converted into raster map data.
3. The method according to claim 1, characterized in that The vehicle kinematic model includes: The relationship between the vehicle's speed and position, and the relationship between the vehicle's front wheel turning angle and heading angle; Accordingly, the method of determining the predicted trajectory of the vehicle at a future time according to the vehicle kinematic model, the preset sampling time, the preset moving speed and the preset number of trajectory points includes: According to the following formula, the predicted trajectory of the vehicle at the future moment is determined, including: Where n represents the number of preset trajectory points, k = 1, 2, ..., n represents the kth predicted trajectory point, (x k ,y k ) represents the location information of the kth predicted trajectory point, Indicates the heading angle information of the k+1th predicted trajectory point, (x k+1 ,y k+1 ) represents the position information of the k+1th predicted trajectory point, represents the heading angle information of the kth predicted trajectory point, v represents the preset moving speed, δ k represents the front wheel turning angle information of the vehicle corresponding to the kth predicted trajectory point, L represents the distance between the front axle and the rear axle of the vehicle, and t represents the preset sampling time.
4. The method according to any one of claims 1 to 3, characterized in that: The generating a predicted vehicle position frame corresponding to the predicted trajectory point according to the size information of the vehicle, the position information and the heading information of the predicted trajectory point comprises: According to the position information and heading information of the predicted trajectory point, the coordinates of the four corners of the vehicle body frame with the predicted trajectory point as the rear axle center are determined as the coordinates of the predicted vehicle body position frame.
5. The method according to any one of claims 1 to 4, characterized in that: The determining whether the grid corresponding to the predicted vehicle position frame is an obstacle grid includes: Converting the four corner coordinates of the predicted vehicle position frame into corresponding four grid coordinates; Determine the values of all grids in the grid area formed by the four grid coordinates; If the values of all grids are greater than or equal to the preset point number threshold, the grid corresponding to the predicted vehicle position box is determined to be an obstacle grid; If the values of all grids are less than the preset point number threshold, the grid corresponding to the predicted vehicle body position box is determined to be a non-obstacle grid.
6. A safety obstacle avoidance device for a vehicle, characterized in that: include: A raster map creation module, configured to construct a raster map of the current road scene based on point cloud data collected by the radar; A predicted trajectory determination module is configured to determine a predicted trajectory of the vehicle at a future time according to a vehicle kinematic model, a preset sampling time, a preset moving speed, and a preset number of trajectory points, wherein the length of the predicted trajectory is greater than a braking distance when the vehicle brakes at a current speed, and the predicted trajectory includes position information and heading information of each predicted trajectory point; A predicted vehicle body position frame generation module is configured to traverse each predicted trajectory point and generate a predicted vehicle body position frame corresponding to the predicted trajectory point according to the size information of the vehicle, the position information and the heading information of the predicted trajectory point; An obstacle grid judgment module is configured to judge whether the grid corresponding to the predicted vehicle position frame is an obstacle grid; The deceleration module is configured to traverse the next predicted trajectory point if the grid corresponding to the predicted vehicle body position frame is a non-obstacle grid, and return to execute an operation of determining whether the grid corresponding to the predicted vehicle body position frame is an obstacle grid; if it is an obstacle grid, control the vehicle to decelerate according to the distance between the obstacle and the current vehicle.
7. The device according to claim 6, characterized in that The vehicle kinematic model includes: The relationship between the vehicle's speed and position, and the relationship between the vehicle's front wheel turning angle and heading angle; Accordingly, the predicted trajectory determination module is specifically configured as follows: According to the following formula, the predicted trajectory of the vehicle at the future moment is determined, including: Where n represents the number of preset trajectory points, k = 1, 2, ..., n represents the kth predicted trajectory point, (x k ,y k ) represents the location information of the kth predicted trajectory point, Indicates the heading angle information of the k+1th predicted trajectory point, (x k+1 ,y k+1 ) represents the position information of the k+1th predicted trajectory point, represents the heading angle information of the kth predicted trajectory point, v represents the preset moving speed, δ k represents the front wheel turning angle information of the vehicle corresponding to the kth predicted trajectory point, L represents the distance between the front axle and the rear axle of the vehicle, and t represents the preset sampling time.
8. The device according to claim 6, characterized in that The obstacle grid judgment module is specifically configured as follows: Converting the four corner coordinates of the predicted vehicle position frame into corresponding four grid coordinates; Determine the values of all grids in the grid area formed by the four grid coordinates; If the values of all grids are greater than or equal to the preset point number threshold, the grid corresponding to the predicted vehicle position box is determined to be an obstacle grid; If the values of all grids are less than the preset point number threshold, the grid corresponding to the predicted vehicle body position box is determined to be a non-obstacle grid.
9. A computing device, characterized in that The computing device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the vehicle safety obstacle avoidance method as described in any one of claims 1-5.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the vehicle safety obstacle avoidance method as described in any one of claims 1-5 is implemented.
Citation Information
Cited By
Front vehicle detection method, vehicle-mounted millimeter wave radar, product and vehicle
CN119395705A
Unmanned sweeper obstacle avoidance control method and system in high-speed state
CN119472696A
Unmanned sweeper active safety method and system based on three-dimensional grid map
CN119872607A
Laser radar external parameter calibration method and device, readable medium and program product
CN121254246A
Calibration methods, equipment, readable media, and program products for lidar extrinsic parameters
CN121254246B
