Automatic driving vehicle paths planning method based on map vector and grating map
Technical field
The present invention relates to automatic Pilot technical fields, are based on map vector and grating map more specifically to one kind
Automatic driving vehicle paths planning method.
Background technique
Automatic Pilot is the important development direction of current intelligent transportation, and Path Planning Technique is the core skill of automatic Pilot
One of art is the basis of intelligent vehicle navigation and control.
Automatic driving vehicle Path Planning Technique is divided into global path planning and local trajectory path planning, wherein global road
Diameter planning is responsible for cooking up the shortest path from origin-to-destination, and local motion path planning is responsible for cooking up that meet vehicle non-
Holonomic constriants, can in real time obstacle, the local motion path comprising time series control vehicle information.
In existing automatic Pilot paths planning method, using single use global path planning or local motion
Path planning, operand is big, occupies a large amount of system resources, also, using single local motion path planning to vehicle-mounted biography
The requirement of sensor is high, and path planning accuracy is poor.
Summary of the invention
In view of this, the present invention provides a kind of automatic driving vehicle path planning side based on map vector and grating map
Method, comprising:
By global vector map, the current location of automatic driving vehicle is cooked up to the global shortest path of target point;
Acquisition environmental information in real time, and point cloud data is converted by the environmental information, with being mapped as current local grid
Figure;
According to the global shortest path, it is based on the current local grid map, and combine local positioning information, utilized
Local motion path is calculated in sector planning algorithm, in order to the automatic Pilot vehicle according to the local motion path clustering
March to the target point.
Preferably, described " by global vector map, it is complete to target point to cook up the current location of automatic driving vehicle
Office shortest path " include:
By map sampling instrument, global vector map is obtained, and the global vector map is resolved into global path
Oriented cum rights node topology figure;Wherein, the global vector map includes the road point diagram and point cloud number that coordinate point set is constituted
According to the voice data figure of composition;
Current point cloud information is acquired by environment information acquisition device;According to Global localization algorithm, to the current point cloud
Information is matched with the point cloud data, and determines the automatic driving vehicle in the global vector according to matching result
World coordinates information converting in figure;
Receive the global object point that user is set based on the global vector map;
According to the oriented cum rights node topology figure, world coordinates information converting and global object point, calculate from
Most short global path of the current location of the automatic driving vehicle to the global object point.
Preferably, described " by map sampling instrument, to obtain global vector map, and the global vector is illustrated
Analysis is the oriented cum rights node topology figure of global path;Wherein, the global vector map includes the road that coordinate point set is constituted
The voice data figure that point diagram and point cloud data are constituted " includes:
Collect the global vector map;
Run global map resolver, in the global vector map path coordinate point set constitute road point diagram into
Row parsing, is resolved to road network node for the path coordinate point, has been stored as based on corresponding adjacent chained list or adjacency matrix form
To cum rights structure;And parse the road information comprising intersection, road width;
According to the road network node of oriented cum rights structure and the road information, the institute of global path is obtained
State oriented cum rights node topology figure.
Preferably, described " to acquire environmental information in real time, and convert point cloud data for the environmental information, be mapped as working as
Preceding local grid map " includes:
The current point cloud information collected to the environment information acquisition device is split and merges, and will segmentation
With the fused current point cloud information MAP to two-dimensional grid map, preliminary grating map is obtained;
Based on the current point cloud information, the current local grid map is obtained according to the preliminary grating map.
Preferably, described " to be based on the current point cloud information, the current part is obtained according to the preliminary grating map
Grating map " includes:
According to the range information of automatic driving vehicle and barrier described in the current point cloud acquisition of information;
Using grating map renovator, according to the range information, the preliminary grating map is updated based on expansion parameters,
Obtain the current local grid map.
Preferably, described " grating map renovator to be utilized, according to the range information, based on described in expansion parameters update
Preliminary grating map obtains the current local grid map " include:
Using grating map renovator, it is each grid point assignment in the preliminary grating map based on expansion parameters, obtains
To the corresponding cost value of each grid point;Wherein, there is the probability of barrier using the cost value as this grid point;Also,
Using the preliminary grating map of the updated probability with barrier comprising each grid point as the current part
Grating map.
Preferably, described " according to the global shortest path, to be based on the current local grid map, and combine part
Local motion path is calculated using sector planning algorithm in location information, in order to according to the local motion path clustering
The automatic driving vehicle marches to the target point " include:
Local positioning information and the current local grid according to the global shortest path, in conjunction with the current location
Map constructs multi-goal optimizing function;Wherein, the optimization item of the multi-goal optimizing function includes the environmental information;
The multi-goal optimizing function that item includes the environmental information will be optimized and be converted to figure optimization node, and according to institute
It states figure optimization node and the local motion path is calculated.
Preferably, described " according to the global shortest path, to be based on the current local grid map, and combine part
Local motion path is calculated using sector planning algorithm in location information " after, further includes:
According to the corresponding vehicle control instruction of the local motion coordinates measurement, and based on vehicle control instruction control
The automatic driving vehicle is mobile to global object point according to the global shortest path and the local motion path;
After the automatic driving vehicle is mobile, judge whether the automatic driving vehicle reaches the global object point;
If the automatic driving vehicle is not up to the global object point, judge whether that the local motion path is hindered
Gear;
If the local motion path is not blocked, " environmental information is acquired in real time, and the environment is believed described in return
Breath is converted into point cloud data, is mapped as current local grid map ";
If the local motion path is blocked, generates and stop path planning, and generate blocking prompt information.
In addition, to solve the above problems, the present invention also provides a kind of automatic Pilot based on map vector and grating map
Vehicle path planning device, comprising:
Global Algorithm module for parsing global road-net node topology by global vector map, and combines the overall situation fixed
Position algorithm, cooks up the current location of automatic driving vehicle to the global shortest path of target point;
Information-mapping module for acquiring environmental information in real time, and converts point cloud data for the environmental information, maps
For current local grid map;
Local algorithm module, for being based on the current local grid map, and combine according to the global shortest path
Local motion path is calculated using sector planning algorithm in local positioning information, in order to according to the local motion path
It controls the automatic driving vehicle and marches to the target point.
In addition, to solve the above problems, the computer equipment includes storage the present invention also provides a kind of computer equipment
Device and processor, the memory is for storing the automatic driving vehicle path planning journey based on map vector and grating map
Sequence, the processor run the automatic driving vehicle path planning program based on map vector and grating map so that described
Computer equipment executes the automatic driving vehicle paths planning method as described above based on map vector and grating map.
In addition, to solve the above problems, the present invention also provides a kind of computer readable storage medium, it is described computer-readable
The automatic driving vehicle path planning program based on map vector and grating map is stored on storage medium, it is described to be based on vector
The automatic driving vehicle path planning program of map and grating map is realized as described above based on vector when being executed by processor
The automatic driving vehicle paths planning method of map and grating map.
A kind of automatic driving vehicle paths planning method based on map vector and grating map provided by the invention.This hair
It is bright that the current location of automatic driving vehicle is cooked up to the global shortest path of target point by global vector map;Described in acquisition
The current local grid map of the current location of automatic driving vehicle;According to the global shortest path, based on the local grid
Lattice map calculation obtains local motion path, in order to the traveling of the automatic driving vehicle according to the local motion path clustering
To the target point.The present invention uses map vector as environmental model in global path planning layer, advises in local motion path
Drawing layer uses grating map as environmental model, i.e., uses different maps as environmental model in different planning layers, match simultaneously
It closes and uses different types of planning algorithm, while meeting under actual scene to algorithm real-time and accuracy, also, vector
The algorithm that figure and grating map combine greatly reduces the occupancy for system operations resource.
Detailed description of the invention
Fig. 1 is that the present invention is based on the automatic driving vehicle paths planning method example schemes of map vector and grating map
The structural schematic diagram for the hardware running environment being related to;
Fig. 2 is that the present invention is based on the automatic driving vehicle paths planning method first embodiments of map vector and grating map
Flow diagram;
Fig. 3 is that the present invention is based on the automatic driving vehicle paths planning method second embodiments of map vector and grating map
The flow diagram of middle step S100 refinement;
Fig. 4 is that the present invention is based on the automatic driving vehicle paths planning method second embodiments of map vector and grating map
The flow diagram of middle step S110 refinement;
Fig. 5 is that the present invention is based on the automatic driving vehicle paths planning method 3rd embodiments of map vector and grating map
The flow diagram of middle step S200 refinement;
Fig. 6 is that the present invention is based on the automatic driving vehicle paths planning method 3rd embodiments of map vector and grating map
The flow diagram of middle step S220 refinement;
Fig. 7 is that the present invention is based on the automatic driving vehicle paths planning method 3rd embodiments of map vector and grating map
The flow diagram of middle step S222 refinement;
Fig. 8 is that the present invention is based on the automatic driving vehicle paths planning method 3rd embodiments of map vector and grating map
The flow diagram of middle step S300 refinement;
Fig. 9 is that the present invention is based on the automatic driving vehicle paths planning method fourth embodiments of map vector and grating map
Flow diagram;
Figure 10 is that the present invention is based on the implementations of the automatic driving vehicle paths planning method the 5th of map vector and grating map
Flow diagram in example;
Figure 11 is that the present invention is based on the function moulds of map vector and the automatic driving vehicle path planning apparatus of grating map
Block connection schematic diagram;
Figure 12 is that the present invention is based on the automatic driving vehicle path planning apparatus another kind of map vector and grating map is real
Apply the functional module connection schematic diagram including integrated decision-making module in mode.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
The embodiment of the present invention is described below in detail, in which the same or similar labels are throughly indicated same or like
Element or element with the same or similar functions.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance
Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or
Implicitly include one or more of the features.In the description of the present invention, the meaning of " plurality " is two or more,
Unless otherwise specifically defined.
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in Figure 1, being the structural schematic diagram of the hardware running environment for the terminal that the embodiment of the present invention is related to.
The PC that computer equipment of the embodiment of the present invention can be is also possible to smart phone, tablet computer or with one
Determine the packaged types terminal device such as portable computer and mobile unit.As shown in Figure 1, the computer equipment may include: place
Manage device 1001, such as CPU, network interface 1004, user interface 1003, memory 1005, communication bus 1002.Wherein, it communicates
Bus 1002 is for realizing the connection communication between these components.User interface 1003 may include display screen, input unit ratio
Such as keyboard, remote controler, optional user interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004
It may include optionally standard wireline interface and wireless interface (such as WI-FI interface).Memory 1005 can be high-speed RAM and deposit
Reservoir is also possible to stable memory, such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned place
Manage the storage device of device 1001.Optionally, terminal can also include RF (Radio Frequency, radio frequency) circuit, audio-frequency electric
Road, WiFi module etc..In addition, computer equipment can also configure gyroscope, barometer, hygrometer, thermometer, infrared ray sensing
The other sensors such as device, details are not described herein.
It will be understood by those skilled in the art that computer equipment shown in Fig. 1 does not constitute the limit to computer equipment
It is fixed, it may include perhaps combining certain components or different component layouts than illustrating more or fewer components.Such as Fig. 1 institute
Show, as may include in a kind of memory 1005 of computer readable storage medium operating system, data-interface control program,
Network attachment procedure and automatic driving vehicle path planning program based on map vector and grating map.
A kind of automatic driving vehicle paths planning method based on map vector and grating map provided by the invention.Complete
Office's path planning layer uses map vector as environmental model, uses grating map as environment in local motion path planning layer
Model uses different maps as environmental model in different planning layers, while cooperating using different types of planning algorithm,
It is met under actual scene simultaneously to algorithm real-time and accuracy, also, the algorithm that map vector and grating map combine
Greatly reduce the occupancy for system operations resource.
Embodiment 1:
Referring to Fig. 2, first embodiment of the invention provides a kind of automatic driving vehicle based on map vector and grating map
Paths planning method, comprising:
Step S100 cooks up the current location of automatic driving vehicle to the overall situation of target point by global vector map
Shortest path;
Automatic driving vehicle is also known as pilotless automobile, computer driving or wheeled mobile robot, is that one kind passes through
Computer system realizes unpiloted intelligent automobile.Have the history of many decades in 20th century, is showed at the beginning of 21 century close to real
With the trend of change.
Global vector map is a certain range of map vector, for example, the map vector in certain urban area, or
Map vector in certain parking lot.
It is the starting point and emphasis for needing to carry out path planning between the current location and target point of automatic driving vehicle.It is global
Shortest path, as in the case where not considering actual barrier and environment on global vector map, according in map vector
Route relevant information cook up come shortest path.For example, global shortest path is straight line by A point to B point, and in
Between during traveling, in fact it could happen that barrier C, then global shortest path does not take into account that the barrier, needs further office
Portion's trajectory path planning layer carries out planning avoidance.
In the present embodiment, including the algorithm based on global path planning level and the algorithm based on sector planning level.
Wherein, it in Global motion planning level, carries out that global shortest path is calculated using global vector map and its resolver, also,
It in sector planning level, is further calculated based on local grid map and its renovator, to obtain corresponding part fortune
Dynamic path.To which further planning path can be carried out by Comprehensive Decision Algorithm until target point.
Wherein, global vector map is a kind of priori map, is just adopted by map sampling instrument before path planning
What collection completed.The global vector map that the present embodiment uses includes the road point diagram and point cloud data being made of coordinate point set
Voice data figure two parts of composition are constituted.Wherein coordinate point diagram is used to describe the information of road, and phonogram is for describing environment
The environmental informations such as barrier, road instruction disk, traffic lights.Road sampling instrument is taken the photograph using laser radar, binocular in the present embodiment
Picture head, IMU are mounted in map collecting vehicle as map data collecting tool.The global map format that the present embodiment uses makes
Use OpenDrive.
Step S200 acquires environmental information in real time, and converts point cloud data for the environmental information, is mapped as current office
Portion's grating map;
Above-mentioned, current local grid map is the environmental information of local motion path planning level, is responsible for cooking up satisfaction
Vehicle nonholonomic constraint, can in real time obstacle, the local motion path comprising time series control vehicle information.
Wherein, grating image, also referred to as raster image refer on space and brightness all images of discretization.It can
A width grating image is thought of as a matrix, the either element in matrix corresponds to a point in image, and corresponding
Value corresponds to the gray level of the point, and the element in character matrix is called pixel.
It is above-mentioned, since current location is real-time transform in the traveling process of vehicle, so local grid map is real
When obtain, construct in real time, i.e., be acquired and update while carrying out path planning.By being converted to point cloud data, and
After being mapped, to obtain current local grid map.
Step S300 is based on the current local grid map, and combine local positioning according to the global shortest path
Local motion path is calculated using sector planning algorithm in information, in order to according to the local motion path clustering
Automatic driving vehicle marches to the target point.
It is above-mentioned, the planning and traveling for advance route are carried out according to local motion path, need to calculate by integrated decision-making
Method carries out control and operation, and Comprehensive Decision Algorithm is used for starting, stopping and the change of integrated dispatch Global motion planning and sector planning.
After system receives Global localization information and target point, decision making algorithm scheduling starts to carry out Global motion planning, complete in Global motion planning
Cheng Hou, carries out sector planning and the ECU unit for exporting control information to vehicle controls vehicle.It is completed after vehicle arrives at the destination
Planning process, while in planning process, according to the information of external environment, whether comprehensive descision is from new Global motion planning or parking
Braking etc..
It should be noted that Global motion planning algorithm uses in the oriented cum rights of road network that global vector map parses
Node topology cooks up the shortest path from origin-to-destination.This method is used as using A* (A-Star) algorithm from global road
Plan the algorithm of shortest path in net, A* is to solve the most effective direct search method of shortest path in a kind of static road network, is
A kind of heuritic approach.Cook up come global path along real road, with the shortest path of directional information.
A kind of automatic driving vehicle paths planning method based on map vector and grating map provided in this embodiment.?
Global path planning layer uses map vector as environmental model, uses grating map as ring in local motion path planning layer
Border model is used different maps as environmental model, while cooperating and being calculated using different types of planning in different planning layers
Method, while meeting under actual scene to algorithm real-time and accuracy, also, the calculation that map vector and grating map combine
Method greatly reduces the occupancy for system operations resource.
Embodiment 2:
Referring to Fig. 3-4, second embodiment of the invention provides a kind of automatic Pilot vehicle based on map vector and grating map
Paths planning method, is based on above-mentioned first embodiment shown in Fig. 2, and the step S100 " passes through global vector map, rule
The current location of automatic driving vehicle is marked to the global shortest path of target point " include:
Step S110 obtains global vector map by map sampling instrument, and the global vector map is resolved to
The oriented cum rights node topology figure of global path;Wherein, the global vector map includes the road point diagram that coordinate point set is constituted
The voice data figure constituted with point cloud data;
Further, the step S110 " obtains global vector map, and the global vector map has been resolved to
To cum rights node topology figure " include:
Step S111 collects the global vector map;
Step S112 runs global map resolver, constitutes to the path coordinate point set in the global vector map
Road point diagram is parsed, and the path coordinate point is resolved to road network node, is based on corresponding adjacent chained list or adjacency matrix shape
Formula is stored as oriented cum rights structure;And parse the road information comprising intersection, road width;
Step S113 obtains the overall situation according to the road network node of oriented cum rights structure and the road information
The oriented cum rights node topology figure in path.
Above-mentioned, global map resolver is used to parse the information that can be used for planning from global vector map.Road is sat
Punctuate resolves to road network node, and the oriented cum rights graph structure stored in the form of corresponding adjacent chained list or adjacency matrix, simultaneously
Parse the road informations such as intersection, road width.
Step S120 acquires current point cloud information by environment information acquisition device;According to Global localization algorithm, to described
Current point cloud information is matched with the point cloud data, and determines the automatic driving vehicle described complete according to matching result
World coordinates information converting in office's map vector;
Above-mentioned, environment information acquisition device is obtained or is adopted for real-time or timing for automatic driving vehicle is vehicle-mounted
The device for collecting the change information of ambient enviroment, can include but is not limited to vehicle-mounted multiple sensors, such as infrared sensor
Deng;Acousto-optic electric detection device or Image Acquisition and identification device, such as camera etc..
Step S130 receives the global object point that user is set based on the global vector map;
Step S140, according to the oriented cum rights node topology figure, world coordinates information converting and global object point,
Calculate the most short global path from the current location of the automatic driving vehicle to the global object point.
In the present embodiment, in Global motion planning level, it is based on Global motion planning algorithm, obtains global vector map, Jin Ergen
According to the matching result of current point cloud information and point cloud data, the overall situation of the automatic driving vehicle in the global vector map is determined
Coordinate transform information calculates the most short overall situation of the point from the current location of vehicle to global object after obtaining global object point
Path, realize in Global motion planning level by map vector, cook up global shortest path.
Embodiment 3:
Referring to Fig. 5-8, third embodiment of the invention provides a kind of automatic Pilot vehicle based on map vector and grating map
Paths planning method, is based on above-mentioned first embodiment shown in Fig. 2, the step S200, " environmental information is acquired in real time, and
Point cloud data is converted by the environmental information, is mapped as current local grid map " include:
Step S210, the current point cloud information collected to the environment information acquisition device are split and melt
It closes, and will divide with the fused current point cloud information MAP to two-dimensional grid map, obtain preliminary grating map;
Step S220 is based on the current point cloud information, obtains the current local grid according to the preliminary grating map
Lattice map.
Further, the step S220 " is based on the current point cloud information, is obtained according to the preliminary grating map
The current local grid map " includes:
Step S221, according to the range information of automatic driving vehicle and barrier described in the current point cloud acquisition of information;
Step S222 is updated described preliminary using grating map renovator according to the range information based on expansion parameters
Grating map obtains the current local grid map.
The step S222 " utilizes grating map renovator, according to the range information, updates institute based on expansion parameters
Preliminary grating map is stated, the current local grid map is obtained " include:
Step S222a is each grid in the preliminary grating map based on expansion parameters using grating map renovator
Point assignment, obtains the corresponding cost value of each grid point;Wherein, there is the general of barrier using the cost value as this grid point
Rate;Also, using the preliminary grating map of the updated probability with barrier comprising each grid point as described in
Current local grid map.
Local grid map constructs in real time, is acquired and updates while carrying out path planning.Vehicle-mounted sensing
Device includes laser radar, binocular camera, IMU.These sensors acquire extraneous environment in real time during vehicle movement
Data, and be converted into point cloud data, these data only include barrier through the methods of over-segmentation, fusion, for example, wall, fence,
Column etc., then these point cloud datas are mapped to two-dimensional grid map.Grating map is divided whole map with certain resolution ratio
For a certain number of small lattice, each lattice represents the probability with barrier with normalized 0 to 1, and real in vehicle movement
Shi Gengxin.
Generate local grid map, the as reality by preliminary grating map when moving in real time, environment changing
Shi Gengxin, to obtain local grid map.Further, it for the update of local grid map, is updated by grating map
Device is realized, specifically, grating map renovator updates each grid point of grating map using point cloud data and vehicle's current condition
Cost value, and layering and expansion function can be carried out.Probability of this grid point with barrier is represented as 0 with 0, is represented with 1
It is 1 that this grid point, which has the probability of barrier,.At no point in the update process, it is comprehensive combine point cloud data and vehicle distances grid point away from
Assignment is carried out from for each grid point.It is arranged by certain threshold value, can passes through or avoid passing point with guiding vehicle.
Further, the step S300, " according to the global shortest path, it is based on the current local grid map,
And local positioning information is combined, local motion path is calculated using sector planning algorithm, in order to transport according to the part
Automatic driving vehicle described in dynamic path clustering marches to the target point " include:
Step S310, according to the global shortest path, in conjunction with the current location local positioning information and described work as
Preceding local grid map constructs multi-goal optimizing function;Wherein, the optimization item of the multi-goal optimizing function includes the environment
Information;
Above-mentioned, the optimization item of the multi-goal optimizing function includes the environmental information, and the specific optimization item includes
Environmental information in can be but be not limited to obstacle distance, path length, run duration, with the spacing of global path etc..
Step S320 will optimize the multi-goal optimizing function that item includes the environmental information and be converted to figure optimization section
Point, and node is optimized according to the figure, the local motion path is calculated.
Sector planning algorithm combines the grating map acquired in real time and the global map planned, cooks up to have in real time and keep away
Barrier function meets the local path of vehicle nonholonomic constraint, output comprising vehicle control information.This method is based on multiple-objection optimization
Sector planning algorithm is decomposed into multi-objective optimization question, when optimization item includes obstacle distance, path length, movement by thought
Between, with the spacing of global path, optimization aim is that pursue run duration most short.It reuses figure optimum theory and says above-mentioned multiple target
Function is converted to node of graph, the local path optimized using g2o.In the present embodiment, sector planning can be set
Plan frequency cooperates grating map frequency acquisition and vehicle control algorithms frequency.
Wherein, the multiple target goes out majorized function are as follows:
Y=α f (v)+β f (a)+γ f (b)+δ f (r)+ε f (t)+η f (g);
Wherein, f (r) is the constraint of vehicle minimum turning radius, f (v) speed is constraint of velocity, and f (a) is acceleration constraint, f
(b) be obstacles restriction, f (g) be global path tracking constraint, f (t) be to constrain the shortest time.Wherein α, β, γ, δ, ε ,+η are
Every weight.Then local paths planning is converted to the optimal solution asked with superior function, it may be assumed that min (y);It is asked in combination with the optimization of the figures such as g2o
The value of solution tool calculating respective function.
It should be noted that sector planning algorithm combines the grating map acquired in real time and the global map planned, it is real
When cook up with barrier avoiding function, meet vehicle nonholonomic constraint, output include vehicle control information local motion path.This
Method is based on multiple-objection optimization thought, and sector planning algorithm is decomposed into multi-objective optimization question, optimization item include barrier away from
From, path length, run duration, with the spacing of global path, optimization aim is that pursue run duration most short.Reuse figure optimization
Theory says that above-mentioned multiple objective function is converted to node of graph, the local motion path optimized using g2o.This method can
The plan frequency of sector planning is arranged, cooperate grating map frequency acquisition and vehicle control algorithms frequency.
It should be noted that location algorithm includes Global localization and local positioning.Wherein Global localization is for determining vehicle
Coordinate of the Startup time in global map.Believed using the point cloud in the collected point cloud data of onboard sensor and global map
Breath carries out matching for determining global pose point.Can with the coordinate transform information to Map to Odometry.Local positioning passes through
Onboard sensor calculates vehicle rear axle center in real time and becomes to the coordinate transform of vehicle starting point and the coordinate of Odometry to base
It changes.Two kinds of location datas all will bring path planning algorithm into as input information.
Embodiment 4:
Referring to Fig. 9, third embodiment of the invention provides a kind of automatic driving vehicle based on map vector and grating map
Paths planning method, is based on above-mentioned first embodiment shown in Fig. 2, the step S300, " according to the global shortest path,
Based on the current local grid map, and local positioning information is combined, local motion is calculated using sector planning algorithm
After path ", further includes:
Step S400 is instructed according to the corresponding vehicle control of the local motion coordinates measurement, and is based on the vehicle control
System instruction controls the automatic driving vehicle according to the global shortest path and the local motion path to global object point
It is mobile;
Above-mentioned, global object point is to obtain in the target position of Global motion planning level, the i.e. emphasis of this path planning
To after vehicle control instruction, carried out in the global shortest path of global level and the local motion path of sector planning level
Planning, it is mobile to global object point.
Step S500 judges whether the automatic driving vehicle reaches described complete after the automatic driving vehicle is mobile
Office's target point;
Step S600 judges whether the part fortune if the automatic driving vehicle is not up to the global object point
Dynamic path is blocked;
If the local motion path is not blocked, " environmental information is acquired in real time, and the environment is believed described in return
Breath is converted into point cloud data, is mapped as current local grid map ";
The step S700 is generated if the local motion path is blocked and is stopped path planning, and generates blocking prompt
Information.
In addition, stopping path planning if the automatic driving vehicle has arrived the global object point.
It is above-mentioned, during automatic driving vehicle is advanced according to instruction, needs to hinder situation in front of real-time judge, that is, judge
Whether local motion path is blocked.If be blocked, stop path planning, need return step S200, carries out again real
When acquire environmental information, map current local grid map;At this point, instruction can be further generated, it is current according to what is be mapped to
Local grid map is planned again.And if having arrived at global object point, it can determine that reach home, stop path
Planning waits the instruction planned next time.
Comprehensive Decision Algorithm is used for starting, stopping and the change of integrated dispatch Global motion planning and sector planning.It is calculating
To after local motion path, path planning and decision on the spot further are carried out using Comprehensive Decision Algorithm.When system receives
After Global localization information and target point, decision making algorithm scheduling starts to carry out Global motion planning, after the completion of Global motion planning, carries out part
It plans and the ECU unit for exporting control information to vehicle controls vehicle.Planning process is completed after vehicle arrives at the destination, simultaneously
In planning process, according to the information of external environment, whether comprehensive descision is from new Global motion planning or stopping brake etc..This implementation
In example, by controlling using Comprehensive Decision Algorithm for the traveling of automatic driving vehicle, judge whether it reaches global mesh
Punctuate judges whether local motion path is blocked in sector planning level if do not reached, if stopped, stops advising
It draws.In the present embodiment, realizes and is further planned using map vector and the obtained local motion path of grating map,
The path planning and avoidance purpose combined both to realize in global level and local level, is automatic driving vehicle
The accurate avoidance advanced provides accurate guarantee.
Embodiment 5:
With reference to Fig. 9, to better illustrate method provided in the application, one kind is provided in the present embodiment based on vector
The automatic driving vehicle paths planning method of figure and grating map, includes the following steps:
S1, which is realized, acquires global map by map sampling instrument, includes road information and environmental information.
It is oriented cum rights node topology that S2, which runs global map resolver parsing global map, and loads global map.
S3 resolves Global localization, determines coordinate transform of the vehicle in global map.
Global motion planning target point is arranged in S4.
S5 starts global path planning.Planning algorithm input is the global road network topology of previous step load, Global localization
Coordinate transform and global object point are cooked up the most short global path from the current pose of vehicle to target point and are exported.
S6 starts to update local grid map.The point cloud data acquired from onboard sensor obtains preliminary grating map, then
Final grating map is updated in conjunction with the range information and expansion parameters of vehicle and barrier.
S7 starts local paths planning.According to the global path of global path planning arrived, in conjunction with local positioning information and
Local grid map constructs multi-goal optimizing function, is converted to figure optimization node, uses figure Optimization Solution optimal partial path.
Obtained local path is converted to the control signal such as steering wheel, brake, gear and is handed down to vehicle ECU control list by S8
Member.
S9, which is returned, repeats S6, S7, S8, and decision-making module monitors planning process in real time, judges whether that arrival target point, path are
It is no to there is situations such as stopping completely, and whether decision stops or planning path again.
In addition, with reference to Figure 11-12, the present invention also provides a kind of automatic driving vehicle based on map vector and grating map
Path planning apparatus, comprising:
Global Algorithm module 10 for parsing global road-net node topology by global vector map, and combines global
Location algorithm cooks up the current location of automatic driving vehicle to the global shortest path of target point;
Information-mapping module 20 for acquiring environmental information in real time, and converts point cloud data for the environmental information, reflects
It penetrates as current local grid map;
Local algorithm module 30, for being based on the current local grid map, and tie according to the global shortest path
Local positioning information is closed, local motion path is calculated using sector planning algorithm, in order to according to the local motion road
Diameter controls the automatic driving vehicle and marches to the target point.
In another embodiment, it is advised based on above-mentioned based on the automatic driving vehicle path of map vector and grating map
Draw device, further includes: integrated decision-making module 40,
The function of the integrated decision-making module 40 includes:
According to the corresponding vehicle control instruction of the local motion coordinates measurement, and based on vehicle control instruction control
The automatic driving vehicle is mobile to global object point according to the global shortest path and the local motion path;
After the automatic driving vehicle is mobile, judge whether the automatic driving vehicle reaches the global object point;
If the automatic driving vehicle is not up to the global object point, judge whether that the local motion path is hindered
Gear;
If the local motion path is not blocked, " environmental information is acquired in real time, and the environment is believed described in return
Breath is converted into point cloud data, is mapped as current local grid map ";
If the local motion path is blocked, generates and stop path planning, and generate blocking prompt information.
In addition, the computer equipment includes memory and processor, institute the present invention also provides a kind of computer equipment
Memory is stated for storing the automatic driving vehicle path planning program based on map vector and grating map, the processor fortune
The row automatic driving vehicle path planning program based on map vector and grating map is so that the computer equipment executes
Automatic driving vehicle paths planning method as described above based on map vector and grating map.
In addition, being stored on the computer readable storage medium the present invention also provides a kind of computer readable storage medium
There is the automatic driving vehicle path planning program based on map vector and grating map, it is described to be based on map vector and grating map
Automatic driving vehicle path planning program realize when being executed by processor it is as described above based on map vector and grating map
Automatic driving vehicle paths planning method.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone,
Computer, server or network equipment etc.) execute method described in each embodiment of the present invention.The above is only of the invention
Preferred embodiment is not intended to limit the scope of the invention, all using made by description of the invention and accompanying drawing content
Equivalent structure or equivalent flow shift is applied directly or indirectly in other relevant technical fields, and is similarly included in this hair
In bright scope of patent protection.