Summary of the invention
Embodiment of the invention problem to be solved provides a kind of vehicle positioning method, Apparatus and system, can not carry out pinpoint problem to solve to vehicle in the Multi-layer road network of city.
For addressing the above problem, the embodiment of the invention provides a kind of vehicle positioning method, comprising:
Receive the angle of inclination of being gathered when vehicle sails path layer into;
The more described angle of inclination and the initial gradient of the path layer of storing or calculating in advance;
The path layer that sails into of locating described vehicle is the immediate path layer of the initial gradient of path layer and described angle of inclination.
Preferably, more described angle of inclination is specially with the difference of the path layer start angle of storing or calculating in advance:
Using formula | φ-θ | the described angle of inclination and the initial gradient of path layer of storing or calculating are in advance compared, wherein, θ is the initial gradient of the path layer storing or calculate in advance, and φ is the angle of inclination of the described vehicle gathered when vehicle '.
Preferably, it is characterized in that the path layer that sails into of locating described vehicle is that the immediate road of the initial gradient of path layer and described angle of inclination is specially:
Locate described vehicle and sail path layer into for according to formula | φ-θ | the pairing path layer of θ value of coincidence formula among the≤ε, wherein said ε trends towards 0.
Preferably, after execution received the angle of inclination of being gathered when vehicle sails road into, described method also comprised step:
Judge described vehicle sails to travel on the path layer whether reach predeterminable range or Preset Time into described, if then carry out described relatively angle step.
Preferably, described method also comprises step:
Gather described vehicle in the described angle of rolling away from of sailing path layer into;
If the described angle of rolling away from conforms to the described path layer termination gradient of sailing into of storing in advance or calculating, then described vehicle rolls described path layer away from.
The embodiment of the invention also provides another vehicle positioning method, comprising:
Receive angle of inclination and the described vehicle gathered when vehicle sails path layer into and enter the described distance of travelling behind the path layer of sailing into;
Reach the described path layer height that sails into of high computational of the initial path layer of vehicle of storing in advance or calculating according to described angle of inclination, operating range;
More described path layer height and the path layer height of storing or calculating in advance of sailing into;
The path layer that sails into of locating described vehicle is described path layer height and the described immediate path layer of path layer height of storing in advance or calculating of sailing into.
Preferably, calculate the described path layer height that sails into of height that reaches the initial path layer of vehicle of storing in advance or calculating and be specially according to described angle of inclination, operating range:
Using formula h=d sin (φ)+z calculates the described height that sails path layer into, wherein h is the described height that sails path layer into, d is that vehicle enters the described distance of travelling behind the path layer of sailing into, φ is the angle of inclination of the described vehicle gathered when vehicle ', z is the height of the initial path layer of vehicle ' storing in advance in the database or calculate.
Preferably, after execution received the angle of inclination of being gathered when vehicle sails road into, described method also comprised step:
Judge described vehicle sails to travel on the path layer whether reach predeterminable range or Preset Time into described, if then carry out described computed altitude step.
Correspondingly, the embodiment of the invention also provides a kind of vehicle locating device, comprising:
Receiving element is used to receive the angle of inclination of being gathered when vehicle sails path layer into;
Comparing unit is used for the more described angle of inclination and the initial gradient of path layer of storing or calculating in advance;
Positioning unit, the path layer that sails into that is used to locate described vehicle is the immediate path layer of the initial gradient of path layer and described angle of inclination.
Preferably, described device also comprises:
Judging unit is used to judge described vehicle sails to travel on the path layer whether reach predeterminable range into described, if notify described comparing unit to carry out relatively angle step.
Correspondingly, the embodiment of the invention also provides another vehicle locating device, comprising:
Receiving element is used to receive angle of inclination and the described vehicle gathered when vehicle sails path layer into and enters the described distance of travelling behind the path layer of sailing into;
Computing unit is used for the described height that sails path layer into of high computational according to the received angle of inclination of described receiving element, operating range and the initial path layer of vehicle storing in advance or calculate;
Comparing unit is used for more described path layer height and the path layer height of storing or calculating in advance of sailing into;
Positioning unit, the path layer that sails into that is used to locate described vehicle is described path layer height and the described immediate path layer of path layer height of storing in advance or calculating of sailing into.
Preferably, described device also comprises:
Judging unit is used to judge described vehicle sails to travel on the path layer whether reach predeterminable range into described, if notify described computing unit to carry out the high computational step.
Compared with prior art, the embodiment of the invention is in the two dimensional surface position of collection vehicle, the reference position angle of inclination of collection vehicle road that sails in the Multi-layer road network, compare with the initial gradient of the path layer of storing in advance or calculating, selecting the immediate path layer of described angle is the path layer that sails into of described vehicle; Perhaps calculate the height of vehicle operating on path layer according to described angle of inclination, compare with the path layer height of storing in advance or calculating, therefore selecting the immediate path layer of described height is the path layer that sails into of described vehicle, can be implemented in the Multi-layer road network the accurate location to described vehicle.
Embodiment
Below in conjunction with drawings and Examples the present invention is done detailed explanation.See also the method flow diagram that Figure 2 shows that the embodiment of the invention, comprise step:
Step S201: receive the angle of inclination of being gathered when vehicle sails path layer into;
Step S202: the more described angle of inclination and the initial gradient of the path layer of storing or calculating in advance;
Step S203: the path layer that sails into of locating described vehicle is the immediate path layer of the initial gradient of path layer and described angle of inclination.
Preferably, the embodiment of the invention adopts inclinometer to come the angle of inclination of measuring vehicle.Sail a certain path layer of multilevel traffic road into when vehicle after, described inclinometer collects the angle of inclination of vehicle, and judge described vehicle sails to travel on the path layer whether reach predeterminable range or Preset Time into described, if reach described predeterminable range or Preset Time, then the initial gradient of described angle of inclination with each path layer of storing in database or calculating compared, concrete implementation is as follows, and wherein each parameter is specially:
The θ---initial gradient of storage or the concrete a certain path layer that calculates in database;
The d---vehicle enters the distance of travelling behind a certain path layer;
φ--the angle of inclination of the described vehicle that-described inclinometer is measured.
If the initial gradient of not storing each path layer in advance in the database, and just stored the height of described each path layer, then enter the described path layer height of storing in the distance of travelling behind a certain path layer and the database, can calculate the initial gradient of described path layer according to the described vehicle that collects.
See also shown in Figure 3ly, described vehicle is the cruising state when the P1 point, and the corresponding road information of storing or calculating in database is (z1, θ 1 for x1, y1); When driving to the P2 point, described vehicle driving up, begin to enter another path layer, the road information that institute stores or calculates in the database is (x2, y2, z2 at this moment, θ 2), the angle of inclination that described vehicle measures according to inclinometer is φ, therefore according to the initial gradient of each path layer of storing in the database or calculating and the inclination of vehicle angle that records, using formula
| φ-θ |≤ε (wherein ε trends towards 0)
Calculate the initial gradient of path layer and the difference of described inclination of vehicle angle, after described vehicle ' reaches apart from d, if described formula | φ-θ | the path layer of difference minimum be the path layer that described vehicle sails into, if the absolute value of described difference is excessive, think that then this path layer is not the path layer that described vehicle sails into.By described angle comparison procedure, can realize the three-dimensional localization of described vehicle in the multilevel traffic network.After described vehicle crossed P3 ' point, the inclinometer of described vehicle returned the angle value before changing, and finishes this vehicle location process.
When described vehicle leaves described when sailing path layer into, can gather the angle of inclination of described vehicle equally, and compare with the described end gradient of sailing path layer into that is stored in the database storage or calculate, if described comparative result coincidence formula | φ '-θ ' |≤ε, judge that then described vehicle leaves the described path layer that sails into.Wherein, φ ' is described angle of inclination when sailing road into for the described vehicle that collects leaves, and θ ' is the storage or the end gradient of sailing path layer into that calculates, and ε trends towards 0.
In addition, the embodiment of the invention also provides another vehicle positioning method, sees also shown in Figure 4ly, specifically comprises step:
Step S401: receive angle of inclination and the described vehicle gathered when vehicle sails path layer into and enter the described distance of travelling behind the path layer of sailing into;
Step S402: the described path layer height that sails into of high computational that reaches the initial path layer of vehicle of storing in advance or calculating according to described angle of inclination, operating range;
Step S403: more described path layer height and the path layer height of storing or calculating in advance of sailing into;
Step S404: the path layer that sails into of locating described vehicle is described path layer height and the described immediate path layer of path layer height of storing in advance or calculating of sailing into.
In second preferred embodiment of the present invention, can sail the height that calculates gained behind the path layer into according to vehicle, compare with the height that is stored in each path layer of storing in the database or calculating, and positioned vehicle is in the minimum pairing path layer of described height difference, and its concrete implementation is as follows:
Sail a certain path layer of multilevel traffic road into when vehicle after, use the angle of inclination of inclinometer collection vehicle, and judge described vehicle sails to travel on the path layer whether reach predeterminable range or Preset Time into described, if reach described predeterminable range or Preset Time, obtain described vehicle and entering described operating range after sailing path layer into, using formula
h=d?sin(φ)+z
Calculate described vehicle and sail the path layer height into, wherein,
H---is described to sail the height that path layer obtains according to described inclination of vehicle angle calculation into;
The height of the initial path layer of vehicle ' of storing in advance in the z---database or calculating;
The described vehicle of d---enters the described distance of travelling behind the path layer of sailing into;
The angle of inclination of φ--the described vehicle gathered during-described vehicle '.
If do not store the height of path layer in the database in advance, and the initial gradient of just having stored described path layer, then enter the initial gradient of described path layer of storing in the distance of travelling behind a certain path layer and the database, can calculate the height of described path layer according to the described vehicle that collects.
See also shown in Figure 5ly, described vehicle is the cruising state when the P4 point, and the corresponding road information of storing or calculating in database is (z4, θ 4 for x4, y4); When driving to the P5 point, described vehicle driving up, begin to enter another path layer, the road information that institute stores or calculates in the database is (x5, y5, z5 at this moment, θ 5), the angle of inclination that described vehicle measures according to inclinometer is φ, and according to a P5 between the P6 ' apart from d, described vehicle height z5 at initial path layer, calculate the described height that sails path layer into.Behind the described vehicle point of arrival P6 ', according to formula | h-z
6' | the height whether described height that sails path layer into of≤ε (wherein ε trends towards 0) checking meets database storing or calculate, wherein z
6' be the height of storage or the concrete a certain path layer that calculates in database.After described vehicle ' reaches apart from d, described formula | h-z
6' | the path layer of difference minimum be the path layer that described vehicle sails into, if the absolute value of described difference is excessive, think that then this path layer is not the path layer that described vehicle sails into.By described height comparison procedure, can realize the three-dimensional localization of described vehicle in the multilevel traffic network.
After determining the path layer that described vehicle sails into, then stop measurement to described vehicle ' distance; If described vehicle sails new path layer into, the angle of inclination of described inclinometer changes once more, remeasures the operating range of described vehicle, carries out the positioning step of described path layer.
Use the method that the embodiment of the invention provides, can be under vehicle sails situation in the Multi-layer road network into, sail the initial gradient or the described height that sails path layer into of path layer into according to vehicle, judge the concrete road that described vehicle sails into, thereby realize the accurate location of described vehicle in the Multi-layer road network.
Correspondingly, the embodiment of the invention also provides a kind of vehicle locating device, sees also shown in Figure 6ly, comprises receiving element 601, is used to receive the angle of inclination of being gathered when vehicle sails path layer into; Comparing unit 602 is used for the more described angle of inclination and the initial gradient of path layer of storing or calculating in advance; Positioning unit 603, the path layer that sails into that is used to locate described vehicle is the immediate path layer of the initial gradient of path layer and described angle of inclination.
In addition, described device also comprises judging unit 604, is used to judge described vehicle sails to travel on the path layer whether reach predeterminable range into described, if notify described comparing unit 602 to carry out relatively angle step.
Use device provided by the invention, be implemented in the Multi-layer road network and be the detailed process of the location of vehicle:
After described receiving element 601 receives the start angle of being gathered when vehicle sails road into, use described judging unit 604 to judge whether described vehicle reaches predeterminable range in described travel, if, then notify described comparing unit 602 to carry out the comparison of angle difference, if not, then abandon this to sailing the location of road into.
Described comparing unit 602 using formulas
| φ-θ |≤ε (wherein ε trends towards 0)
The difference of the start angle of more described collection and the road start angle storing or calculate in advance, the path layer initial gradient of θ wherein for storing or calculate in advance, φ is vehicle measured angle of inclination on the road that travels.
Described positioning unit 603 is according to described angle formula relatively, locate described vehicle sail into road for the road of described start angle difference minimum.
After determining the road that described vehicle sails into, then stop measurement to described vehicle ' distance or running time; If described vehicle sails new path layer into, angle measuring instrument changes once more, remeasures the operating range of described vehicle; Described vehicle locating device upgrades the road that sails into of described vehicle, is sent to described vehicle.
Correspondingly, the embodiment of the invention also provides second kind of vehicle locating device, sees also shown in Figure 7ly, comprises receiving element 701, is used to receive angle of inclination and the described vehicle gathered when vehicle sails path layer into and enters the described distance of travelling behind the path layer of sailing into; Computing unit 702 is used for the described height that sails path layer into of high computational according to the received angle of inclination of described receiving element, operating range and the initial path layer of vehicle storing in advance or calculate; Comparing unit 703 is used for more described path layer height and the path layer height of storing or calculating in advance of sailing into; Positioning unit 704, the path layer that sails into that is used to locate described vehicle is described path layer height and the described immediate path layer of path layer height of storing in advance or calculating of sailing into.
In addition, described device also comprises judging unit 705, is used to judge described vehicle sails to travel on the path layer whether reach predeterminable range into described, if notify described computing unit 702 to carry out the high computational step.
Use device provided by the invention, the detailed process that is implemented in the Multi-layer road network the location of vehicle is:
After described receiving element 701 receives the start angle of being gathered when vehicle sails road into, use described judging unit 705 to judge whether described vehicle reaches predeterminable range in described travel, if, then notify described comparing unit 702 to carry out the comparison of angle difference, if not, then abandon this to sailing the location of road into.
Described computing unit using formula
h=d?sin(φ)+z
Calculate the height that described vehicle sails path layer into, wherein,
H---is described to sail the height that path layer calculates according to the angle of inclination of described vehicle into;
The height of the initial path layer of vehicle ' of storing in advance in the z---database or calculating;
The described vehicle of d---is in the described distance of travelling on the path layer of sailing into;
φ--the angle of inclination of the described vehicle that-described inclinometer is measured.
After calculate obtaining the described height that sails path layer into, described comparing unit 703 is according to formula | h-z ' | and≤ε (wherein ε trends towards 0), wherein z ' is the height of storage or the concrete a certain path layer that calculates in database, more describedly sail the height of path layer and storage or the path layer height that calculates in database into, and utilize the described vehicle in positioning unit 704 location sail into path layer for the road of described storage or the path layer height difference minimum that calculates.
Use the device that the embodiment of the invention provides, can be under vehicle sails situation in the Multi-layer road network into, by the reference position angle that vehicle sails road into, judge the concrete road that described vehicle sails into, thereby realize the accurate location of described vehicle in the Multi-layer road network.
The path layer of above-mentioned record comprises viaduct, sky way, subterranean tunnel, but is not limited only to this, can be the various forms in the multilevel traffic network.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.