Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a method for acquiring any vehicle speed elevation data based on time triggering. The invention adopts a coder and a laser range finder to form an acquisition system, the coder and the laser range finder cooperatively work on a uniform computer time axis to complete an acquisition task, and then the equal-interval distance acquisition is realized through the later data processing. According to the invention, the corresponding road surface relative elevation value is obtained through the corresponding relation between the time and the elevation value point, so that the equal-interval distance acquisition is realized.
The technical scheme of the invention is as follows: a method for acquiring any vehicle speed elevation data based on time triggering is characterized by comprising the following steps: the method comprises the following steps:
step A, calibrating an encoder: determining the vehicle running distance corresponding to each pulse output by the encoder;
b, data acquisition: when the collection is started, the time t for the laser range finder to start measuring is recorded firstbKeeping the relative elevation value N of the road surface according to the smoothness; the laser range finder starts to record the current time t measured by the encoder after starting to measurekAnd the current driving distance skAnd keeping according to the sequence; time tbAnd time tkTaking the starting time of the computer as a reference;
step C, unifying the time axis: the laser range finder measurement starts and ends firstly, the encoder measurement starts and ends firstly, and the laser range finder measurement time axis and the encoder measurement time axis are unified to the computer time axis;
step D, calculating the time corresponding to a certain driving distance with precision, and aiming at s
0-s
kAny point s of the interval
iFrom stored encoder measurement data<t
0,s
0>,<t
1,s
1>,···,<t
k,s
k>Find data satisfying s in
i≥s
jAnd s
i<s
j+1Data of (2)<t
j,s
j>,<t
j+1,s
j+1>At t
jAnd t
j+1Within a time period, then s
iCorresponding time point is
Step E, at tiAt the moment, the corresponding road surface relative elevation value NiSubscript i ═ ti-tb) f, f is the collection frequency of the laser range finder and the running distance siCorresponding road surface relative elevation value NiCan be directly usedFrom { N0,N1,···,NnDirectly taking the ith element; at s0-skRequired driving distance points { s) are selected at equal intervals in driving distance section0,s1,···,siFinding all the travel distance points { s }0,s1,···,siCorresponding time t0,t1,···,tiThen calculating subscript i, s of corresponding elevation valueiCorresponding elevation value Ni,si+1Corresponding elevation value Ni+1Finally directly from { N1,N2,···,NnSelecting a corresponding road surface relative elevation value { N }0,N1,···,Ni}。
The method for acquiring the elevation data of any vehicle speed based on time triggering is characterized by comprising the following steps: repeatedly calibrating the encoder 10 times in the step A, and averaging the distance coefficient delta of the encoder 10 times
As a reference value.
The method for acquiring the elevation data of any vehicle speed based on time triggering is characterized by comprising the following steps: the acquisition frequency f of the laser range finder is more than or equal to 16 KHZ.
The method for acquiring the elevation data of any vehicle speed based on time triggering is characterized by comprising the following steps: the time reference is obtained using a QueryPerformanceCounter () function and a QueryPerformanceFrequency () function.
The method for acquiring the elevation data of any vehicle speed based on time triggering is characterized by comprising the following steps: the encoder is fixed on the wheel and rotates coaxially with the wheel.
The invention has the beneficial effects that: firstly, the requirement on the running speed of the vehicle in the data acquisition process is reduced, and the vehicle can run at any speed. Secondly, the measurement precision is improved. Thirdly, the data processing capacity of the system is reduced, a common computer can complete data processing, and the cost of equipment is reduced.
Detailed Description
As shown in FIG. 1, the system for acquiring relative elevation values of a road surface used in the method of the present invention comprises a laser distance measuring machine, an acquisition card, an encoder, a control panel, a computer and a display, wherein the computer comprises data acquisition software. The relative elevation value acquisition system of the pavement used by the method is vehicle-mounted, the laser range finder is mounted on a chassis of the vehicle, the frequency of the laser range finder is f, the height from the ground is 300mm, the encoder is fixed on the wheel and coaxially rotates with the wheel, the acquisition card is mounted on an interface of a computer expansion slot, the control panel, the computer and the display are mounted in the vehicle, and personnel can work in the vehicle. The laser range finder receives the acquisition card through the connecting cable, and the acquisition card is responsible for transmitting the relative elevation value in road surface that the laser range finder gathered to the computer, and the control panel is received through the connecting cable to the encoder, and the control panel is connected with the computer serial ports through the connecting cable, and the control panel is responsible for counting the pulse number transmission that the encoder output transmitted to the computer.
When the relative elevation value acquisition system of the pavement acquires the relative elevation values, operating data acquisition software for acquisition, starting acquisition by the laser range finder, transmitting data to the computer through an acquisition card, and storing the starting time of the laser range finder and all the acquired relative elevation values of the pavement; the control panel starts counting the encoder pulse number and transmits the data to the computer, the encoder starts outputting the pulse when the vehicle starts to run, the current time and the running distance are recorded as the encoder starting time and the running distance starting point when the encoder outputs the first pulse, and the current time point and the corresponding running distance are recorded every 1 millisecond along with the running of the vehicle. When the collection is finished, the current time point and the corresponding running distance of the encoder are firstly stopped to be recorded, then all the relative elevation values of the road surface collected by the laser distance measuring machine are stopped to be recorded, then the vehicle is stopped, and finally the stored data collected by the laser distance measuring machine and the data collected by the encoder are calculated by the method of the invention to obtain the relative elevation values of the road surface at equal spacing distances.
The invention discloses a method for acquiring any vehicle speed elevation data based on time triggering, which comprises the following steps:
step A, calibrating an encoder: and determining the vehicle running distance corresponding to each pulse output by the encoder. For example: the encoder is set to rotate a circle to output 8192 pulses, a straight line section with the length L equal to 2000 meters is selected, starting point marks and end point marks are marked at the two ends of the road section respectively, a vehicle starts to run from the starting point and runs to the end point at a constant speed as far as possible, the total pulse number N output by the encoder from the starting point to the end point is counted, and then the distance coefficient delta of the encoder is obtained equal to N/L; to reduce the error, the encoder is repeatedly calibrated 10 times, and the average value of the distance coefficient delta of the encoder is calculated 10 times
As a reference value, the vehicle travel distance per output pulse is 1/δ.
B, data acquisition: when the collection is started, the computer runs the data collection software and firstly starts to record the time t for the laser range finder to start measuringbAnd the laser range finder collects f points of the relative elevation value of the road surface every second, the frequency value of f is generally more than 16KHZ, and the frequency value is stored as { N0,N1,···,NnSubscripts of N represent acquisition sequence numbers, each road surface relative elevation value N corresponds to a unique subscript N, and the relation between N and time is that N is (t-t)b) f; and then starts to record the current time t measured by the encoderkAnd the current driving distance skThe subscript k denotes the acquisition order number, s, for each distance traveledkCorrespond to a unique time tkThe preservation form is<t0,s0>,<t1,s1>,···,<tk,sk>}; and after the acquisition is finished, stopping recording the data of the encoder and then stopping recording the data of the laser range finder. Time t in the inventionbAnd time tkThe method takes the starting time of the computer as a reference, the recorded time is obtained by adopting the time from the starting of the computer to the current time and by adopting a QueryPerformanceCounter () function and a QueryPerformanceFrequency () function, and the time precision can reach microsecond level. The relationship between n and time is shown in fig. 2, and the relationship between the travel distance s and time is shown in fig. 3.
Step C, unifying the time axis: the laser distance measuring machine starts and ends measuring first, and the encoder starts and ends measuring first; therefore, the time axis measured by the laser distance measuring machine is longer than that measured by the encoder, so that all distance units are ensured to have elevation data, and the distance without data can not occur. Because the elevation acquisition data and the distance acquisition data of the invention both take the starting time of the computer as the measurement time and belong to one part of the time axis of the computer; therefore, the measuring time axis of the laser range finder and the measuring time axis of the encoder can be unified to the time axis of the computer, and the intersection of the measuring time axis of the laser range finder and the measuring time axis of the encoder is t0-tkTime period (t)kMay be t in FIG. 40At any time later, skIs tkDistance corresponding to time) at t0-tkIn the time period, any encoder measures the time point t and the laser distance measuring machine at the same moment measures the time point tiEqual, time t and time tiAll correspond to respective unique road surface relative elevation value NiAnd a running distance siThus N isiI.e. the driving distance siThe relative elevation value of the road surface of the point. On a uniform time axis, NiAnd siThe relationship is shown in fig. 4.
And D, accurately calculating the time corresponding to a certain driving distance. For s
0-s
kAny point s of the interval
iFrom stored encoder measurement data<t
0,s
0>,<t
1,s
1>,···,<t
k,s
k>Find data satisfying s in
i≥s
jAnd s
i<s
j+1Data of (2)<t
j,s
j>,<t
j+1,s
j+1>At t
jAnd t
j+1In the time period, the time is extremely short, the vehicle speed change is small, and therefore the vehicle can be treated as a constant speed s
jTo s
j+1Is linearly increasing in between, then s
iCorresponding time point is
Step E, at tiAt the moment, the corresponding road surface relative elevation value NiSubscript i ═ ti-tb) f, f is the collection frequency of the laser range finder and the running distance siCorresponding road surface relative elevation value NiCan be directly selected from { N0,N1,···,NnDirectly taking the ith element; at s0-skRequired driving distance points { s) are selected at equal intervals in driving distance section0,s1,···,siFinding all the travel distance points { s }0,s1,···,siCorresponding time t0,t1,···,tiThen calculating subscript i, s of corresponding elevation valueiCorresponding elevation value Ni,si+1Corresponding elevation value Ni+1Finally directly from { N1,N2,···,NnSelecting a corresponding road surface relative elevation value { N }0,N1,···,NiThus realizing s0-skAnd the equal-interval distance acquisition is realized by adopting a laser range finder based on time triggering on the driving distance section.
In the invention, the sampling rate of the elevation value is very high, and because the limit of the speed of the computer acquisition card and the processing speed makes it difficult to simultaneously correspond to the distance value while sampling the elevation value, the vehicle is generally required to run stably in the field. After the method is adopted, data can be accurately acquired no matter the running speed of the vehicle in the acquisition process, the running speed of the vehicle is not required, and measurement errors cannot be caused even if the vehicle stops.
The method realizes the equal interval distance acquisition of the road surface elevation based on the time-triggered method for acquiring the road surface elevation data at any speed, realizes the equal interval distance acquisition of the road surface relative elevation value under the condition of no distance trigger signal through unified reference time, reduces the requirement of the distance trigger signal required by the equal interval distance acquisition, reduces the requirement of an acquisition card of a road surface relative elevation value acquisition system, saves the equipment cost, and ensures that the road surface relative elevation value acquisition system is more universal and is easier to realize.