WO2020253260A1 - Time synchronization processing method, electronic apparatus, and storage medium - Google Patents

Time synchronization processing method, electronic apparatus, and storage medium Download PDF

Info

Publication number
WO2020253260A1
WO2020253260A1 PCT/CN2020/076836 CN2020076836W WO2020253260A1 WO 2020253260 A1 WO2020253260 A1 WO 2020253260A1 CN 2020076836 W CN2020076836 W CN 2020076836W WO 2020253260 A1 WO2020253260 A1 WO 2020253260A1
Authority
WO
WIPO (PCT)
Prior art keywords
angular velocity
information
different sensors
velocity information
sensors
Prior art date
Application number
PCT/CN2020/076836
Other languages
French (fr)
Chinese (zh)
Inventor
王潇峰
刘余钱
章国锋
Original Assignee
上海商汤临港智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海商汤临港智能科技有限公司 filed Critical 上海商汤临港智能科技有限公司
Priority to KR1020217017070A priority Critical patent/KR20210084622A/en
Priority to JP2021531851A priority patent/JP2022510418A/en
Publication of WO2020253260A1 publication Critical patent/WO2020253260A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C25/00Manufacturing, calibrating, cleaning, or repairing instruments or devices referred to in the other groups of this subclass
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C25/00Manufacturing, calibrating, cleaning, or repairing instruments or devices referred to in the other groups of this subclass
    • G01C25/005Manufacturing, calibrating, cleaning, or repairing instruments or devices referred to in the other groups of this subclass initial alignment, calibration or starting-up of inertial devices
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/10Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/25Fusion techniques
    • G06F18/251Fusion techniques of input or preprocessed data

Definitions

  • the embodiments of the present disclosure relate to the field of computer vision, and specifically relate to time synchronization processing methods, electronic devices, and storage media.
  • Visual inertial odometry is currently a hot research topic in the field of computer vision. It is widely used in the navigation and entertainment of electronic devices.
  • the main principle is to fuse vision and inertial sensors to estimate the position and posture of the camera itself during movement to obtain accuracy.
  • the positioning information which belongs to autonomous navigation.
  • the electronic device needs to determine the delay time information between different sensors when fusing the measurement results of different sensors.
  • the motion in the three-dimensional space is usually used to calibrate the delay time information between different sensors, or the time delay between different sensors is processed as a constant.
  • the delay time information between different sensors changes. Therefore, there is a problem of low time synchronization accuracy.
  • the embodiments of the present disclosure expect to provide a time synchronization processing method, electronic equipment and storage medium.
  • an embodiment of the present disclosure provides a time synchronization processing method, the method includes: obtaining angular velocity information collected by two different sensors; the angular velocity information is the angular velocity information when the electronic device rotates, and the Two different sensors are installed on the electronic device and rigidly connected; the two angular velocity information obtained are aligned, and the delay time information between the two different sensors is determined; according to the delay time The information performs time synchronization processing on the respective measurement results of the two different sensors.
  • an embodiment of the present disclosure provides a time synchronization processing device, the device includes: a first acquisition module, an alignment module, and a synchronization module, wherein the first acquisition module is configured to obtain two different sensors respectively The angular velocity information is collected; the angular velocity information is the angular velocity information when the electronic device rotates, and the two different sensors are both arranged on the electronic device and rigidly connected; the alignment module is used to compare the two obtained Aligning the two angular velocity information to determine the delay time information between the two different sensors; the synchronization module is configured to perform the respective measurement results of the two different sensors according to the delay time information Time synchronization processing.
  • embodiments of the present disclosure provide an electronic device that includes at least a processor and a memory for storing a computer program that can run on the processor; when the processor is used to run the computer program, Perform the steps in the above-mentioned time synchronization processing method.
  • embodiments of the present disclosure provide a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above-mentioned time synchronization processing method are implemented.
  • the embodiments of the present disclosure provide a time synchronization processing method, an electronic device, and a storage medium.
  • the angular velocity information collected by the two different sensors is obtained through two different sensors that are arranged on the electronic device and rigidly connected;
  • the two angular velocity information is aligned to determine the delay time information between two different sensors, and then the respective measurement results of the two different sensors are time synchronized according to the delay time information, thereby making full use of the rigid connection angular velocity
  • the principle of the same information realizes the time synchronization of different sensors.
  • FIG. 1 is a schematic diagram 1 of a system structure suitable for a time synchronization processing method according to an embodiment of the present disclosure
  • FIG. 2A is a schematic diagram 2 of a system architecture suitable for a time synchronization processing method according to an embodiment of the present disclosure
  • 2B is a third schematic diagram of a system architecture suitable for a time synchronization processing method according to an embodiment of the present disclosure
  • FIG. 3 is a schematic diagram 1 of the implementation process of a time synchronization processing method provided by an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of an exemplary time delay between the angular velocity of the visual sensor and the angular velocity of the inertial sensor in the embodiment of the disclosure;
  • FIG. 5 is a schematic diagram after the angular velocity of the visual sensor and the angular velocity of the inertial sensor are synchronized in an exemplary embodiment of the disclosure
  • FIG. 6 is a second schematic diagram of the implementation process of a time synchronization processing method provided by an embodiment of the disclosure.
  • FIG. 7 is a third schematic diagram of the implementation process of a time synchronization processing method provided by an embodiment of the disclosure.
  • FIG. 8 is a fourth schematic diagram of the implementation process of a time synchronization processing method provided by an embodiment of the present disclosure.
  • FIG. 9 is a first schematic diagram of measuring pose rotation matrix information by using a quaternion to represent a pose sensor in an embodiment of the disclosure.
  • FIG. 10 is a second schematic diagram of the embodiment of the disclosure using a quaternion to represent the pose sensor to measure the pose rotation matrix information
  • FIG. 11 is a schematic diagram of the composition structure of a time synchronization processing device provided by an embodiment of the disclosure.
  • FIG. 12 is a schematic diagram of the composition structure of an electronic device provided by an embodiment of the disclosure.
  • Fig. 1 is a schematic diagram 1 of a system structure suitable for a time synchronization processing method provided by an embodiment of the present disclosure.
  • the system may include a processor 11, two different sensors 12, and a memory 13, two different The sensors 12 respectively send the acquired information to the processor 11 for processing.
  • One of the two different sensors 12 may be a sensor that directly measures angular velocity, and the other sensor may be a sensor that indirectly measures angular velocity.
  • the sensor that indirectly measures angular velocity is capable of independently estimating the rotational movement of the sensor itself (that is, obtaining posture rotation).
  • Matrix information) sensor is capable of independently estimating the rotational movement of the sensor itself (that is, obtaining posture rotation).
  • Matrix information Matrix information
  • the two different sensors 12 may also be sensors of other structures, and the embodiment of the present disclosure does not limit the structure of the two different sensors.
  • the two sensors of the two different sensors 12 are rigidly fixed, that is, the two different sensors 12 of the electronic device are relatively fixed. During the movement, the angular velocity measured by different sensors at the same time is the same. Two different sensors 12 respectively input the acquired information into the processor 11, and the processor 11 performs time synchronization processing by executing the method provided in the embodiment of the present disclosure.
  • the electronic device may include a time synchronization processing device and two different sensors 12; the time synchronization processing device may include the aforementioned processor 11 and memory 13.
  • the time synchronization processing device may include the aforementioned processor 11 and memory 13.
  • the system architecture of the time synchronization processing method may also be shown in FIGS. 2A and 2B.
  • the system includes a time synchronization processing device 20, a first sensor 22a and a second sensor 22b, and a first sensor 22a and a second sensor 22a.
  • the second sensor 22b is arranged on the electronic equipment of the vehicle, for example, the time synchronization processing device 20 may be an on-board equipment in the vehicle; the first sensor 22a and the second sensor 22b may send the acquired information to the time synchronization through an electrical connection or a wireless communication connection ⁇ 20 ⁇ Processing device 20.
  • the time synchronization processing device 20 has a processor and a memory.
  • the first sensor 22a and the second sensor 22b send the acquired information to the time synchronization processing device 20, which is processed by the processor to implement the information provided by the embodiments of the present disclosure.
  • the method of time synchronization is described in FIGS. 2A and 2B.
  • the first sensor 22a and the second sensor 22b may be arranged at different positions of the vehicle, or may be arranged at the same position of the vehicle.
  • the first sensor 22a and the second sensor 22b may both be arranged on the tire of the vehicle; for another example, as shown in FIG. 2A, the first sensor 22a may also be arranged on the tire of the vehicle.
  • the second sensor 22b is arranged in other parts of the vehicle, for example, in the vehicle-mounted device part. The embodiment of the present disclosure does not limit the deployment positions of the first sensor 22a and the second sensor 22b.
  • the processor processes the information sent by different sensors in different ways. For example, when the sensor is a sensor that directly measures angular velocity, the processor can directly process the obtained angular velocity information; when the sensor is a sensor that indirectly measures angular velocity, the processor first obtains the pose rotation matrix information, and then according to the pose rotation matrix Information acquires angular velocity information, and then processes the acquired angular velocity information.
  • the time synchronization processing apparatus can be applied to various types of electronic devices with information processing capabilities during implementation.
  • the time synchronization processing device can obtain the data collected by two different sensors in real time in an online manner, and use the technical solutions of the embodiments of the present disclosure to perform time synchronization processing.
  • the time synchronization processing device may also obtain data collected by two different sensors in an offline manner, and use the technical solutions of the embodiments of the present disclosure to perform time synchronization processing.
  • obtaining the data collected by two different sensors in an offline manner may include: storing the data collected by two different sensors, and exporting the stored data when needed, so as to synchronize the respective measurement results of the different sensors;
  • Obtaining the data collected by two different sensors in an online manner may include: obtaining data collected by two different sensors in real time, so as to synchronize the respective measurement results of the different sensors.
  • the time synchronization processing device can be arranged in the electronic equipment or outside the electronic equipment; two different sensors are arranged in the electronic equipment.
  • the electronic device may be, for example, a mobile robot device, an unmanned device, or various types of mobile terminals and other devices.
  • the unmanned device may include, but is not limited to, a vehicle, an airplane, or a ship, which is not limited in the embodiment of the present disclosure.
  • time synchronization processing method which can solve the problem of low and complex time delay calibration between different sensors.
  • the functions implemented by the time synchronization processing method can be implemented by the processor in the time synchronization processing device calling executable instructions.
  • the executable instructions can be stored in the storage medium of the memory. It can be seen that the time synchronization processing device at least includes a processor And storage media.
  • FIG. 3 is a schematic diagram 1 of the implementation process of a time synchronization processing method provided in an embodiment of the present disclosure, which is applied to a time synchronization processing device.
  • the time synchronization processing method includes:
  • two different sensors are rigidly connected, that is, the two different sensors are relatively fixed.
  • the angular velocity represented by the angular velocity information acquired by two different sensors at the same time is the same.
  • the two different sensors in the embodiments of the present disclosure include sensors with different structures, or sensors with the same structure but different deployment positions.
  • the two different sensors may include any two of the following structures: vision sensors, inertial sensors, magnetic sensors, lidar sensors, and wheel sensors. There is no restriction here.
  • the two different sensors may be vision sensors or magnetic sensors deployed in different positions of the electronic device, and the embodiments of the present disclosure are not limited here.
  • the angular velocity information may be the angular velocity information when the electronic device rotates in a preset period of time, which is obtained by two different sensors. In other words, when the electronic device rotates, it rotates by a certain angle, so that the angular velocity information collected by different sensors can be obtained within a preset time period.
  • the foregoing preset time period may be set by the user according to actual conditions.
  • the preset time period may be set to half an hour or fifteen minutes, etc., which is not limited in the embodiments of the present disclosure.
  • the above two different sensors can be classified based on acquisition methods such as direct acquisition of angular velocity information or indirect acquisition of angular velocity information.
  • one type of sensor is a gyro sensor, which can directly measure angular velocity information; the other type of sensor is a pose sensor, which can indirectly measure angular velocity information.
  • the above two different sensors can also be classified based on the structure of the sensor.
  • the gyro sensor and the attitude sensor are sensors with different structures.
  • At least one of the two different sensors is a pose sensor
  • the obtaining angular velocity information collected by the two different sensors separately includes: obtaining a position The pose rotation matrix information collected by the pose sensor; the angular velocity information when the electronic device rotates is determined by the pose rotation matrix information.
  • At least one of the two different sensors is a gyro sensor, and obtaining angular velocity information collected by the two different sensors respectively includes: obtaining the information collected by the gyro sensor Angular velocity information.
  • acquiring angular velocity information when an electronic device undergoes a rotational movement through two different sensors includes the following application scenarios:
  • Scenario 1 Two different sensors are gyroscopic sensors, but the deployment positions of the two gyroscopic sensors are different, and the angular velocity information of the electronic device when the electronic device rotates is directly collected through the two gyroscopic sensors.
  • Scenario 2 The two different sensors are both pose sensors, but the deployment positions of the two pose sensors are different, and the pose rotation matrix information when the electronic device rotates is obtained through the two pose sensors. Then, the angular velocity information when the electronic device rotates is calculated through the information of the pose rotation matrix.
  • Scenario 3 Among the two different sensors, one is a pose sensor and the other is a gyro sensor; on the one hand, the pose rotation matrix information when the electronic device rotates can be obtained through the pose sensor, and then pass the position The posture rotation matrix information is calculated to obtain the angular velocity information when the electronic device rotates; on the other hand, the angular velocity information when the electronic device rotates can be directly collected through the gyro sensor.
  • the gyro sensor includes any one of an inertial sensor, a magnetic sensor, and a wheel-type odometer sensor
  • the attitude sensor includes any one of a vision sensor and a lidar sensor.
  • S102 Perform alignment processing on the two obtained angular velocity information, and determine delay time information between two different sensors.
  • the two angular velocity information need to be aligned to determine the delay time information between the two different sensors.
  • the alignment processing of the two angular velocity information in the embodiment of the present disclosure is to make the angular velocity information acquired by the two different sensors be consistent in frequency, so that the two angular velocity information can be determined based on the aligned two angular velocity information. Delay time information between two different sensors.
  • the two angular velocities can be interpolated to align the two angular velocity information.
  • the interpolation processing may adopt any interpolation processing method among linear interpolation, cubic spline interpolation, and spherical interpolation, which is not limited in the embodiment of the present disclosure.
  • the respective measurement results of the two different sensors can be time synchronized according to the delay time information. It should be noted that the time synchronization processing of the respective measurement results of two different sensors is to determine the respective measurement results of the two different sensors at the same time, so as to solve the trigger delay and transmission delay caused by the different sensors. The problem of low time synchronization accuracy.
  • the respective measurement results of the two different sensors are the measurement results obtained by the two different sensors respectively measuring the rotational movement of the electronic device when the electronic device undergoes rotational movement.
  • the measurement results obtained by the two different sensors may include at least one of angular velocity information, azimuth angle information, and acceleration information.
  • the measurement result of the inertial sensor may include angular velocity information and acceleration information of the rotational movement of the electronic device;
  • the measurement result of the magnetic sensor may include the azimuth angle information of the rotational movement of the electronic device.
  • At least three sensors may also be provided on the electronic device, and the at least three sensors are rigidly connected; the angular velocity information collected by the at least three sensors is obtained respectively; and the three angular velocity information obtained is performed Alignment processing determines the delay time information between at least three sensors; according to the delay time information, time synchronization processing is performed on the respective measurement results of the at least three sensors.
  • At least three sensors can be combined in pairs to obtain the delay time information between any two sensors, and then the delay time information Time synchronization processing is performed on the respective measurement results of the two sensors corresponding to the same time, so as to realize the time synchronization processing of at least three sensors.
  • the delay time information between the visual sensor and the inertial sensor can be acquired, and the visual effect can be adjusted based on the delay time information.
  • the measurement result of the sensor and the measurement result of the inertial sensor are processed in time synchronization to realize the time synchronization of the measurement result of the visual sensor and the measurement result of the inertial sensor.
  • the delay time information between the vision sensor and the inertial sensor may be determined first, based on the delay time information
  • the measurement result of the vision sensor and the measurement result of the inertial sensor are time-synchronized to realize the time synchronization of the measurement result of the vision sensor and the measurement result of the inertial sensor; then the delay time information between the vision sensor and the lidar sensor is determined, based on The delay time information performs time synchronization processing on the measurement result of the vision sensor and the measurement result of the lidar sensor, and realizes the time synchronization of the measurement result of the vision sensor and the measurement result of the lidar sensor. In this way, through two time synchronization processing, The time synchronization of the measurement results between the vision sensor, inertial sensor and lidar sensor.
  • the following uses one of the two different sensors as a vision sensor, the other sensor as an inertial sensor, and the measurement result is angular velocity information as For example, the time synchronization processing in the embodiment of the present disclosure will be described.
  • FIG. 4 is a schematic diagram showing the time delay between the angular velocity information of the visual sensor and the angular velocity information of the inertial sensor in an exemplary embodiment of the disclosure.
  • FIG. 5 is a schematic diagram after the angular velocity of the visual sensor and the angular velocity of the inertial sensor are synchronized in an exemplary embodiment of the disclosure.
  • the dotted line represents the angular velocity of the vision sensor
  • the solid line represents the angular velocity of the inertial sensor.
  • the angular velocity curve of the visual sensor is staggered from the angular velocity curve of the inertial sensor, and the angular velocity curve of the visual sensor is lagging.
  • the angular velocity curve of the visual sensor and the angular velocity curve of the inertial sensor are aligned and not staggered, thus According to the determined delay time information, the time synchronization processing of the angular velocity information between the visual sensor and the inertial sensor is realized.
  • the respective measurement results of the two different sensors can be directly synchronized in time according to the delay time information.
  • the delay time information may also be stored; when the electronic device is in a non-moving state In this case, according to the stored delay time information, the respective measurement results of the two different sensors are time synchronized.
  • the technical solutions of the embodiments of the present disclosure can realize both online time synchronization processing and offline time synchronization processing, and the time synchronization processing is more flexible.
  • the time synchronization processing in the embodiments of the present disclosure does not need to use a calibration reference object, such as a checkerboard image, and the time synchronization is more convenient and simple, and has strong universality.
  • the embodiments of the present disclosure require the electronic device to be capable of rotating movement, that is, the electronic device is required to only need to rotate around the rotation axis at least to calibrate the delay time information between different sensors on the electronic device, without having to require movement around multiple axes ,
  • the complexity of time synchronization of different sensors is reduced, and it can be adapted to the needs of different scenarios; and the embodiments of the present disclosure can also calibrate the delay time based on the rotation motion generated by the electronic device rotating around multiple axes, so that more abundant rotation information can be obtained ,
  • the embodiments of the present disclosure require sensors to independently obtain angular velocity information to determine the delay time information between different sensors, which can be widely used for time synchronization between multiple sensors.
  • the embodiment of the present disclosure is a software-based method for realizing time synchronization, without additional deployment of dedicated hardware for time synchronization; the embodiment of the present disclosure performs time synchronization based on the delay time information obtained in real time, and can perform time synchronization online Processing: The embodiment of the present disclosure determines the delay time information through the angular velocity information obtained when the electronic device rotates, instead of treating the delay time information as a constant, and improves the accuracy of time synchronization.
  • FIG. 6 is a second schematic diagram of the implementation process of a time synchronization processing method provided by an embodiment of the present disclosure.
  • the angular velocity information acquired by two different sensors is aligned to determine
  • the delay time information between two different sensors, namely S102, can include S102a and S102b, as follows:
  • S102a Perform interpolation processing on at least one of the two angular velocity information to align the two angular velocity information.
  • the interpolation processing of sensors of different structures may be different from the processing of sensors of the same structure. Therefore, based on the different structures of the two sensors, interpolation processing can be performed on at least one of the two angular velocity information to align the two angular velocity information.
  • interpolation processing is performed on at least one of the obtained angular velocity information collected by the two gyroscopic sensors to align the two angular velocity information.
  • interpolation processing is performed on at least one of the obtained pose rotation matrix information collected by the two pose sensors to align the two angular velocities information.
  • interpolation processing is performed on the pose rotation matrix information collected by the obtained pose sensor to align the two angular velocity information.
  • performing interpolation processing on at least one of the two angular velocity information includes performing interpolation processing on both angular velocity information and performing interpolation processing on any one of the two angular velocity information.
  • performing interpolation processing on the two angular velocity information includes: selecting a data acquisition frequency as the standard data acquisition frequency, and performing interpolation processing on the two angular velocity information according to the standard data acquisition frequency.
  • the standard data acquisition frequency may be between the respective data acquisition frequencies of the two sensors or higher than the respective data acquisition frequencies of the two sensors.
  • the data acquisition frequency higher than the two sensors can be selected as the standard data acquisition frequency, for example, the standard data acquisition frequency is 17 Hz.
  • a frequency between the data acquisition frequencies of the two sensors can also be selected as the standard data acquisition frequency, for example, the standard data acquisition frequency is 13 Hz.
  • the angular velocity information acquired by the two sensors is interpolated according to the standard data acquisition frequency, so that the angular velocity acquisition frequency of the first sensor and the angular velocity acquisition frequency of the second sensor are respectively the same as the standard acquisition frequency , Both are 13Hz. In this way, the problem of deviations in data processing caused by inconsistent data acquisition frequencies of different sensors can be solved, which helps to obtain more accurate delay time information based on the aligned angular velocity information.
  • the interpolation processing includes: performing interpolation processing on the acquired angular velocity information collected by the second sensor according to the data acquisition frequency of the first sensor.
  • the angular velocity information acquired by the second sensor can be interpolated according to the data acquisition frequency of the first sensor 15 Hz, so that the The angular velocity acquisition frequency of one sensor is the same as the angular velocity information acquisition frequency of the second sensor, and both are 15 Hz. This solves the problem of deviations in data processing due to inconsistent data acquisition frequencies of different sensors, and helps to obtain more accurate delay time information based on the aligned angular velocity information.
  • the obtained pose rotation matrix information collected by the pose sensor is subjected to interpolation processing to Align the two angular velocity information.
  • it can include S01, S02 and S03, as follows:
  • adjacent pose rotation matrix information may be obtained from the multiple pose rotation matrix information. It should be noted that the pose rotation matrix information collected by the pose sensor in the preset time period is multiple pose rotation matrix information.
  • the pose rotation matrix information of the adjacent frame image can be obtained; when the pose sensor is a lidar sensor, it can be obtained separately by the lidar sensor
  • the pose rotation matrix information in the preset time period is used to estimate the rotation movement of the electronic device.
  • S02 Perform interpolation processing on adjacent pose rotation matrix information according to the frequency at which the gyro sensor obtains angular velocity information, and obtain interpolated rotation matrix information.
  • the interpolated rotation matrix information may be obtained according to the adjacent pose rotation matrix information.
  • an interpolation model can be constructed, and then the interpolation model and the adjacent pose rotation matrix information can be used to obtain the interpolated rotation matrix information. Rotation matrix information.
  • the interpolation model is used to estimate other adjacent pose rotation information between adjacent pose rotation information based on the value status of adjacent pose rotation information at a limited number of points.
  • the interpolation model may include a spherical linear interpolation (Spherical Linear Interpolation) model, a cubic spline interpolation (Cubic Spline Interpolation) model, and a nearest neighbor interpolation model.
  • Spherical Linear Interpolation Spherical Linear Interpolation
  • Cubic Spline Interpolation cubic spline interpolation
  • nearest neighbor interpolation model a nearest neighbor interpolation model.
  • the interpolated rotation matrix information may be differentiated according to a geometric manner to obtain angular velocity information corresponding to the pose sensor.
  • the differential model can be constructed in the process of performing differentiation processing on the interpolated rotation matrix information to obtain angular velocity information corresponding to the pose sensor. Through the constructed differential model and the interpolated rotation matrix information, the angular velocity information corresponding to the pose sensor is obtained.
  • the differential model satisfies formula (1).
  • q(t)' is the differential pose rotation matrix information
  • w is the second sub-angular velocity information
  • q(t) is the interpolated pose rotation matrix information
  • the differential model in the embodiment of the present disclosure is a model used to characterize angular velocity information.
  • the differential model may be a quaternion differential model or a model in other mathematical expression forms, which is not limited in the embodiment of the present disclosure.
  • S102b Determine the delay time information between two different sensors according to the aligned two angular velocity information.
  • the angular velocity information acquired by different sensors at the same time is the same. Therefore, the angular velocity information between the two different sensors can be determined according to the aligned two angular velocity information. Delay time information.
  • an error model can be constructed first, and then based on the aligned two angular velocity information and the error model , To determine the delay time information between two different sensors.
  • the error parameter between the two sensors is introduced, so that the delay time information determined by the error model can be more accurate.
  • the error model can be as shown in formula (2):
  • Q 12 is the rotation parameter between the different coordinate axes corresponding to two different sensors
  • td is the delay time information between the two different sensors
  • bg is the error parameter between the two different sensors
  • w 1 (t) and w 2 (t) are respectively the angular velocity information acquired by two different sensors at the same time t
  • f(Q 12 , td, bg) is the error between the angular velocities.
  • the method further includes: aligning the two angular velocity information, Determine the external parameters between two different sensors.
  • the external parameters include the rotation parameters between the different coordinate axes corresponding to the two different sensors and the error parameters between the two different sensors.
  • the delay time information can be obtained, but also the rotation parameters and error parameters between two different sensors can be obtained, so that the functions of the electronic device are more abundant.
  • FIG. 7 is a schematic diagram of the third implementation flow of a time synchronization processing method provided by an embodiment of the disclosure.
  • the delay time information between two different sensors is determined according to the aligned two angular velocity information, namely Step S102b may include S102b1, S102b2, and S102b3, as follows:
  • the sub-error equations corresponding to the two different sensors at different moments during the rotation of the electronic device can be determined according to the aligned two angular velocity information.
  • n can be preset at different times within the preset time period according to actual conditions. For example, 15 moments or 20 moments can be set within the preset time period, and then the sub-error equation corresponding to each moment can be obtained.
  • the angular velocity information collected by different sensors corresponding to time 1 are respectively w 1 (1) and w 2 (1+td); the angular velocity information collected by different sensors corresponding to time 2 are respectively w 1 (2) And w 2 (2+td), and so on, the angular velocity information collected by different sensors corresponding to time n is w 1 (n) and w 2 (n+td) respectively, then when the error model satisfies formula (2),
  • the corresponding sub-error equations corresponding to different times n are:
  • the sub-error equations corresponding to each time are determined, the sub-error equations corresponding to different times are summed to obtain the final error equation.
  • the embodiment of the present disclosure obtains the delay time information by obtaining the accumulated errors at different times, and further requires summing the sub-error equations corresponding to different times to obtain the final error equation.
  • S102b3 Perform minimum processing on the final error equation to obtain delay time information.
  • the final error equation can be processed to a minimum value to obtain delay time information.
  • the above-mentioned minimum value processing is to minimize the final error equation value, and then estimate the delay time information in the error model, the rotation parameter, and the error parameter between the sensors.
  • the minimum processing of the final error equation may be performed through a nonlinear model or an iterative closest point model to perform the minimum processing on the final error equation.
  • the process of performing minimum value processing on the final error equation to obtain delay time information may include: performing iterative nearest point processing on the final error equation to obtain the second minimization equation; and solving the second minimization equation , Until the preset second threshold is met, the delay time information in the second minimization equation is acquired.
  • the iterative closest point processing is performed on the final error equation to obtain the second minimization equation, and the delay time can be set between the preset time periods. For example, you can use the golden section method to select a delay time and then substitute it into the error model.
  • the error term obtained at this time is only the two unknowns of the rotation parameter and the error parameter between the sensors.
  • it can be processed by iterative closest point. Then the rotation parameters and the error parameters between the sensors can be obtained.
  • f(Q 12 ,bg) is the error between angular velocities
  • n is the number of the nearest point pairs
  • Q 12 is the rotation matrix between the two sensors
  • bg is the error parameter between the two sensors
  • w i1 (t) and w i2 (t) are respectively a point in the point cloud in the angular velocity corresponding to the two sensors.
  • the process of performing minimum value processing on the final error equation to obtain delay time information may further include: performing nonlinear optimization processing on the final error equation to obtain the first minimization equation; Solve, until the preset first threshold is met, obtain the delay time information in the first minimization equation.
  • the final error equation is a non-linear function, it needs to be Taylor expanded. By minimizing the final error equation, it is necessary to find the corresponding delay time information when the preset first threshold is met, so as to make the final error The equation drops to a minimum.
  • nonlinear optimization processing is performed on the final error equation, and a nonlinear optimization model can be constructed in the process of obtaining the first minimization equation. Based on the final error equation and the nonlinear optimization model, the first minimization equation is determined.
  • the preset nonlinear optimization model may include a Gauss-Newton algorithm model or a Levenberg-Marquardt algorithm model, and the first threshold can be set according to the actual needs of the user. If it is 0.1 or 0.01, the embodiments of the present disclosure are not limited here.
  • obtaining the delay time information in the first minimization equation includes: when it is determined that the delay time is determined for the first time Information, according to the preset initial variable value and the preset nonlinear optimization model, obtain the current variable value; according to the initial variable value, the current variable value and the first minimization equation, determine the current solution value of the minimized equation, when the current solution value When the preset first threshold is met, the delay time information in the first minimization equation is obtained.
  • the first minimization equation is composed of the final error equation corresponding to the adjacent variable values.
  • the first minimization equation can be formula (8).
  • x k+1 is the current variable value
  • x k is the initial variable value
  • e is the current solution value of the minimization equation.
  • the next variable value needs to be obtained according to the current variable value and the preset nonlinear optimization model; according to the next variable value, the current variable value and the first Minimize the equation, determine the next solution value of the minimized equation, and determine in turn whether the next solution value meets the preset first threshold, until the next solution value meets the preset first threshold, the iteration ends, and the first Minimize the delay time information in the equation.
  • rotation parameters and sensor deviation parameters can also be obtained.
  • the obtained rotation parameters can transform the measurement information of different coordinate systems into In the same coordinate system.
  • the fusion processing after performing time synchronization processing on the respective measurement results of the two different sensors according to the delay time information, it may further include: performing fusion processing on the synchronized measurement results;
  • the measurement result of the fusion processing performs at least one of the following operations: positioning processing, ranging processing, target detection of the scene where the electronic device is located, generating or updating a map.
  • performing fusion processing on two synchronized measurement results includes: analyzing and synthesizing two measurement results at the same time to obtain a reliable fusion processing result.
  • applying the result of the fusion processing to the positioning process can achieve precise positioning of the electronic device; applying the result of the fusion processing to the ranging process can improve the measurement accuracy; applying the result of the fusion processing to the In the target detection process of the scene where the electronic device is located, accurate target detection results can be obtained; when the fusion processing result is applied to the process of generating or updating a map, an accurate map can be obtained.
  • a fusion algorithm model in the process of fusing the synchronized measurement results, can be constructed to obtain accurate fusion processing results.
  • the fusion algorithm model may include a Kalman filter fusion algorithm model and a cluster analysis recognition algorithm model, which is not limited in the embodiment of the present disclosure.
  • the Kalman filter fusion algorithm model can be used to perform fusion processing on the synchronized measurement results, including: using the measurement results of two different sensors set by the electronic device to perform state propagation, so that the previous moment's The pose estimation of the first measurement result obtains the pose estimation at the current moment, and then uses the second measurement result at the current moment as observation information to correct the preliminary estimation of the pose at the current moment, thereby obtaining an optimal pose at the current moment
  • the best estimate is the result of the fusion processing.
  • the time synchronization processing method in the embodiment of the present disclosure can also be applied to more than three sensors.
  • the measurement results after the time synchronization processing of every two sensors are acquired, and the measurement results after the time synchronization processing are fused to obtain the result of the fusion processing.
  • more accurate measurement results can be obtained by fusing the measurement results corresponding to at least three sensors.
  • FIG. 8 is a fourth schematic diagram of the implementation process of a time synchronization processing method provided by an embodiment of the present disclosure.
  • two different sensors provided on an electronic device are a vision sensor and an inertial sensor.
  • the time synchronization processing method of this embodiment may include the following steps:
  • the inertial sensor on the electronic device can independently obtain angular velocity information. Since the inertial sensor is provided with a gyro unit, the angular velocity information when the electronic device rotates can be directly obtained through the gyro unit.
  • the inertial sensor is a sensor that measures the three-axis attitude angle (or angular rate) and acceleration.
  • the inertial sensor can also include an acceleration unit, where the acceleration unit can detect the three-axis position of the electronic device. Acceleration information of the axis.
  • the visual sensor on the electronic device can independently obtain the pose rotation matrix information.
  • the vision sensor is provided with a pose estimation unit, which can obtain the pose rotation matrix information when the electronic device rotates.
  • the vision sensor is mainly composed of one or two graphics sensors, and is also equipped with a light projector and other auxiliary equipment. It can acquire the original image within a preset time period and store the acquired image in the memory. The benchmarks are compared and analyzed to obtain the pose rotation matrix information, and then calculate the pose rotation matrix information of the electronic device.
  • the rotational movement of the electronic device can be represented by a quaternion; the rotational movement of the electronic device can also be represented by a three-dimensional rotation group, which is not limited in the embodiment of the present disclosure.
  • S203 Determine the second angular velocity information according to the pose rotation matrix information, and align the second angular velocity information with the first angular velocity information.
  • the image frequency of the vision sensor is usually 10 Hz
  • the frequency of the inertial sensor is usually 100 Hz
  • At least one of the second angular velocity information and the first angular velocity information can be interpolated through an interpolation model.
  • the interpolation models used are also different. For example, for the rotational motion represented by the quaternion, the pose rotation matrix can be interpolated through the spherical linear interpolation model; for the rotational motion represented by the three-dimensional rotation group, the cubic spline interpolation model and the nearest neighbor interpolation model can be used. Interpolate the pose rotation matrix information.
  • the rotation motion represented by a quaternion is used as an example to illustrate the interpolation processing process of the pose rotation matrix information of the vision sensor using a spherical linear interpolation model.
  • a quaternion is composed of a real number plus an imaginary number, as in formula (9):
  • e 0 , e 1 , e 2 , and e 3 are real numbers, i, j, and k are mutually orthogonal imaginary number units, and q is the pose rotation matrix information represented by a quaternion.
  • w is the angular velocity
  • t is the time
  • q is the pose rotation matrix information represented by the exponential mapping of quaternion.
  • the constructed spherical interpolation model is formula (11).
  • q 0 and q 1 are adjacent posture rotation matrices
  • q(t) is the posture rotation matrix information obtained by spherical interpolation of the posture rotation matrix.
  • the posture rotation matrix information after interpolation can be obtained.
  • FIG. 9 is a schematic diagram 1 of the embodiment of the present disclosure using a quaternion sensor to measure the pose rotation matrix information.
  • the electronic device continuously moves from the previous moment to the current moment. That is, rotate from a solid circle to a dotted circle.
  • FIG. 10 is a second schematic diagram of the embodiment of the disclosure using a quaternion to represent the pose rotation matrix information measured by the pose sensor. As shown in FIG. 10, it is a plan view of the dotted frame extracted from FIG.
  • q 0 and q 1 is the adjacent posture rotation matrix
  • q(t) is the posture rotation matrix information after spherical interpolation is performed on the posture rotation matrix
  • the angle of rotation is ⁇
  • t is the time
  • the angular velocity information corresponding to the vision sensor in the process of acquiring the second angular velocity information according to the interpolated pose rotation matrix information, can be determined according to the interpolated pose rotation matrix information and the differential model.
  • the differential model is as in formula (1).
  • the second angular velocity information can be obtained indirectly by interpolating the pose rotation matrix information first, and then differential processing. In this way, it can adapt to the time synchronization between more sensors and has universal applicability.
  • S204 Determine the delay time information between the visual sensor and the inertial sensor.
  • the delay time information between the visual sensor and the inertial sensor can be determined according to the first angular velocity information and the second angular velocity information.
  • the delay time information between the vision sensor and the inertial sensor can be solved, but also the rotation parameter and the error parameter between the sensors can be solved.
  • S205 Perform time synchronization processing on the measurement result of the visual sensor and the measurement result of the inertial sensor according to the delay time information.
  • the time synchronization processing method provided by the embodiments of the present disclosure can be applied to unmanned driving or mobile robot navigation.
  • the unmanned electronic device or mobile robot electronic device can be implemented through the present disclosure
  • the time synchronization processing method provided in the example realizes precise positioning.
  • the embodiment of the present disclosure only uses a vision sensor and an inertial sensor as an example to illustrate the process of the electronic device implementing the time synchronization processing method.
  • the time synchronization processing method provided by the embodiment of the present disclosure is not limited to the vision sensor and the inertial sensor. Between the two sensors, it can also be applied to other sensors, as long as the other sensors can independently obtain angular velocity information and pose rotation matrix information.
  • the embodiments of the present disclosure can also be applied to electronic devices including more than three sensors, that is, the above-mentioned time synchronization method is also applicable to electronic devices with more than three sensors.
  • FIG. 11 is a schematic diagram of the composition structure of a time synchronization processing device provided by an embodiment of the disclosure.
  • the synchronization processing device 300 includes a first acquisition module 301, an alignment module 302, and a synchronization module 303, where:
  • the first acquisition module 301 is configured to obtain angular velocity information collected by two different sensors; the angular velocity information is the angular velocity information when the electronic device rotates; the two different sensors are both set on the electronic device And rigidly connected;
  • the alignment module 302 is configured to perform alignment processing on the two obtained angular velocity information, and determine the delay time information between the two different sensors;
  • the synchronization module 303 is configured to perform time synchronization processing on the respective measurement results of the two different sensors according to the delay time information.
  • the time synchronization processing device of the embodiment of the present disclosure requires the electronic device to be capable of rotating motion, that is, the electronic device is required to rotate around the rotation axis at least to calibrate the delay time information between different sensors on the electronic device without It is necessary to require movement around multiple axes, which reduces the complexity of time synchronization of different sensors and can adapt to the needs of different scenarios; and the embodiments of the present disclosure can also calibrate the delay time based on the rotational movement generated by the multi-axis rotation of the electronic device. Obtain richer rotation information to improve the accuracy of time synchronization; the embodiments of the present disclosure require sensors to independently obtain angular velocity information to determine the delay time information between different sensors, which can be widely used in a variety of sensors.
  • the time synchronization between the devices has universal adaptability;
  • the embodiment of the present disclosure is a method for realizing time synchronization based on software, and there is no need to deploy additional dedicated hardware for time synchronization;
  • the embodiment of the present disclosure performs time synchronization based on the delay time information obtained in real time , Can realize online time synchronization processing;
  • embodiments of the present disclosure determine delay time information through angular velocity information obtained when the electronic device rotates, instead of treating the delay time information as a constant, and improve the accuracy of time synchronization.
  • the first obtaining module 301 is configured to obtain the pose rotation matrix information collected by the pose sensor; the angular velocity information when the electronic device rotates is determined by the pose rotation matrix information, where: At least one of the two different sensors is a pose sensor.
  • the first obtaining module 301 is configured to obtain angular velocity information collected by a gyro sensor, wherein at least one of the two different sensors is a gyro sensor.
  • the alignment module 302 is configured to perform interpolation processing on at least one of the angular velocity information to align the two angular velocity information; determine the two angular velocity information according to the aligned two angular velocity information Delay time information between two different sensors.
  • the alignment module 302 is configured to perform at least one of the obtained angular velocity information collected by the two gyroscopic sensors when the two different sensors are both gyroscopic sensors. One performs interpolation processing to align the two angular velocity information.
  • the alignment module 302 is configured to, in a case where the two different sensors are both pose sensors, perform a pose rotation matrix for each of the obtained two pose sensors. At least one of the information is subjected to interpolation processing to align the two angular velocity information.
  • the alignment module 302 is configured to rotate the acquired pose collected by the pose sensor when the two different sensors are a pose sensor and a gyro sensor.
  • the matrix information undergoes interpolation processing to align the two angular velocity information.
  • the time synchronization processing device 300 further includes: a second acquisition module 304, configured to perform alignment processing on the two angular velocity information through the alignment module 302 to determine the difference between the two different sensors
  • the external parameters include rotation parameters between different coordinate axes corresponding to the two different sensors and error parameters between the two different sensors.
  • the time synchronization processing device 300 further includes: a storage module 305, configured to store the delay time information;
  • the synchronization module is configured to perform time synchronization on the respective measurement results of the two different sensors according to the delay time information stored by the storage module 305 when the electronic device is in a non-motion state deal with.
  • the alignment module 302 is configured to determine the sub-error equations corresponding to the two different sensors at different times according to the two aligned angular velocity information; The error equations are summed to obtain the final error equation; the minimum value processing is performed on the final error equation to obtain the delay time information.
  • the alignment module 302 is configured to perform nonlinear processing on the final error equation to obtain a first minimization equation; the first minimization equation is solved until the preset first In the case of a threshold value, the delay time information in the first minimization equation is acquired.
  • the alignment module 302 is configured to perform iterative closest point processing on the final error equation to obtain a second minimization equation; the second minimization equation is solved until the preset second In the case of a threshold value, the delay time information in the second minimization equation is acquired.
  • the time synchronization processing apparatus 300 further includes:
  • the fusion module 307 is used to perform fusion processing on the synchronized measurement results
  • the execution module 308 is configured to perform at least one of the following operations according to the measurement result of the fusion processing: positioning processing, ranging processing, target detection of the scene where the electronic device is located, and generating or updating a map.
  • time synchronization processing device when the time synchronization processing device provided in the above embodiment performs time synchronization processing, only the division of the above program modules is used as an example for illustration. In actual applications, the above processing can be allocated to different program modules according to needs. Complete, that is, divide the internal structure of the device into different program modules to complete all or part of the processing described above.
  • time synchronization processing device provided in the foregoing embodiment and the time synchronization processing method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, and will not be repeated here.
  • FIG. 12 is a schematic diagram of the structure of the electronic device provided by the embodiment of the disclosure.
  • the electronic device at least includes a processor 21 and a storage device capable of running on the processor.
  • the memory 23 of the computer program; the processor 21 is used to execute the steps in the time synchronization processing method provided in the above embodiment when the computer program is running.
  • the electronic device used to execute the steps in the time synchronization processing method provided in the foregoing embodiment may be the same or different from the electronic device provided with two different sensors.
  • the electronic device may further include a communication interface 24, which is used to obtain angular velocity information and pose rotation matrix information.
  • the various components in the electronic device are coupled together through the bus system 25. It can be understood that the bus system 25 is used to implement connection and communication between these components.
  • the bus system 25 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clear description, various buses are marked as the bus system 25 in FIG. 12.
  • the memory 23 may be a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memory.
  • the non-volatile memory can be a read only memory (ROM, Read Only Memory), a programmable read only memory (PROM, Programmable Read-Only Memory), an erasable programmable read only memory (EPROM, Erasable Programmable Read- Only Memory, Electrically Erasable Programmable Read-Only Memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), magnetic random access memory (FRAM, ferromagnetic random access memory), flash memory (Flash Memory), magnetic surface memory , CD-ROM, or CD-ROM (Compact Disc Read-Only Memory); magnetic surface memory can be magnetic disk storage or tape storage.
  • the volatile memory may be random access memory (RAM, Random Access Memory), which is used as an external cache.
  • RAM random access memory
  • SRAM static random access memory
  • SSRAM synchronous static random access memory
  • DRAM dynamic random access Memory
  • SDRAM Synchronous Dynamic Random Access Memory
  • DDRSDRAM Double Data Rate Synchronous Dynamic Random Access Memory
  • ESDRAM enhanced -Type synchronous dynamic random access memory
  • SLDRAM SyncLink Dynamic Random Access Memory
  • direct memory bus random access memory DRRAM, Direct Rambus Random Access Memory
  • DRRAM Direct Rambus Random Access Memory
  • the memory 23 described in the embodiment of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.
  • the method disclosed in the foregoing embodiment of the present invention may be applied to the processor 21 or implemented by the processor 21.
  • the processor 21 may be an integrated circuit chip with signal processing capability. In the implementation process, the steps of the foregoing method can be completed by an integrated logic circuit of hardware in the processor 21 or instructions in the form of software.
  • the aforementioned processor 21 may be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the processor 21 may implement or execute various methods, steps, and logical block diagrams disclosed in the embodiments of the present invention.
  • the general-purpose processor may be a microprocessor or any conventional processor.
  • the steps of the method disclosed in the embodiments of the present invention can be directly embodied as being executed and completed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor.
  • the software module may be located in a storage medium, and the storage medium is located in the memory 23.
  • the processor 21 reads the information in the memory 23 and completes the steps of the foregoing method in combination with its hardware.
  • the embodiment of the present disclosure provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by the foregoing processor, the steps in the time synchronization processing in the foregoing embodiment are implemented.
  • the disclosed device and method may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the units is only a logical function division, and there may be other divisions in actual implementation, such as: multiple units or components can be combined, or It can be integrated into another system, or some features can be ignored or not implemented.
  • the coupling, or direct coupling, or communication connection between the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical, mechanical or other forms of.
  • the units described above as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • the functional units in the embodiments of the present disclosure can be all integrated into one processing unit, or each unit can be individually used as a unit, or two or more units can be integrated into one unit;
  • the unit can be implemented in the form of hardware, or in the form of hardware plus software functional units.
  • the foregoing program can be stored in a computer readable storage medium. When the program is executed, it is executed. Including the steps of the foregoing method embodiment; and the foregoing storage medium includes: various media that can store program codes, such as a mobile storage device, ROM, RAM, magnetic disk, or optical disk.
  • the aforementioned integrated unit of the present disclosure is implemented in the form of a software function module and sold or used as an independent product, it may also be stored in a computer readable storage medium.
  • the computer software product is stored in a storage medium and includes several instructions for A computer device (which may be a personal computer, a server, or a network device, etc.) is allowed to execute all or part of the methods described in the various embodiments of the present disclosure.
  • the aforementioned storage media include: removable storage devices, ROM, RAM, magnetic disks or optical disks and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Remote Sensing (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Manufacturing & Machinery (AREA)
  • Data Mining & Analysis (AREA)
  • Theoretical Computer Science (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Evolutionary Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Automation & Control Theory (AREA)
  • Navigation (AREA)
  • Gyroscopes (AREA)
  • Traffic Control Systems (AREA)

Abstract

A time synchronization processing method, comprising: respectively acquiring angular velocity information collected by two different sensors, wherein the angular velocity information is that of an electronic apparatus when performing a rotational motion, and the two different sensor are both disposed on the electronic apparatus and rigidly connected thereto (S101); performing alignment processing with respect to the two acquired pieces of angular velocity information, and determining information of a time delay between the two different sensors (S102); and performing time synchronization processing on respective measurement results of the two different sensors according to the information of the time delay (S103). Further disclosed are a time synchronization processing device, an electronic apparatus, and a computer-readable storage medium.

Description

时间同步处理方法、电子设备及存储介质Time synchronization processing method, electronic equipment and storage medium
相关申请的交叉引用Cross references to related applications
本公开基于申请号为201910545218.8、申请日为2019年6月21日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此以引入方式并入本公开。This disclosure is filed based on a Chinese patent application with an application number of 201910545218.8 and an application date of June 21, 2019, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby incorporated into this disclosure by way of introduction.
技术领域Technical field
本公开实施例涉及计算机视觉领域,具体涉及时间同步处理方法、电子设备及存储介质。The embodiments of the present disclosure relate to the field of computer vision, and specifically relate to time synchronization processing methods, electronic devices, and storage media.
背景技术Background technique
视觉惯性里程计是目前计算机视觉领域研究的热点,广泛应用于电子设备的导航和娱乐中,主要原理是将视觉和惯性传感器进行融合,从而在运动过程中估计相机自身的位置和姿态,得到准确的定位信息,其属于自主式导航。Visual inertial odometry is currently a hot research topic in the field of computer vision. It is widely used in the navigation and entertainment of electronic devices. The main principle is to fuse vision and inertial sensors to estimate the position and posture of the camera itself during movement to obtain accuracy. The positioning information, which belongs to autonomous navigation.
由于不同传感器存在不同的触发延时和传输延时,因此,电子设备在融合不同传感器的测量结果时,需要确定不同传感器之间的延时时间信息。目前,通常采用三维空间中的运动来标定不同传感器之间的延时时间信息,或者采用将不同传感器之间的时间延时作为常数处理。然而,在电子设备运动过程中,不同传感器之间的延时时间信息是变化的,因此,存在时间同步精确度低的问题。Since different sensors have different trigger delays and transmission delays, the electronic device needs to determine the delay time information between different sensors when fusing the measurement results of different sensors. At present, the motion in the three-dimensional space is usually used to calibrate the delay time information between different sensors, or the time delay between different sensors is processed as a constant. However, during the movement of the electronic device, the delay time information between different sensors changes. Therefore, there is a problem of low time synchronization accuracy.
发明内容Summary of the invention
本公开实施例期望提供一种时间同步处理方法、电子设备及存储介质。The embodiments of the present disclosure expect to provide a time synchronization processing method, electronic equipment and storage medium.
第一方面,本公开实施例提供一种时间同步处理方法,所述方法包括:分别获得两个不同的传感器采集的角速度信息;所述角速度信息为电子设备发生旋转运动时的角速度信息,所述两个不同的传感器均设置在所述电子设备上且刚性连接;对获得的两个角速度信息进行对齐处理,确定所述两个不同的传感器之间的延时时间信息;根据所述延时时间信息对所述两个不同的传感器各自的测量结果进行时间同步处理。In a first aspect, an embodiment of the present disclosure provides a time synchronization processing method, the method includes: obtaining angular velocity information collected by two different sensors; the angular velocity information is the angular velocity information when the electronic device rotates, and the Two different sensors are installed on the electronic device and rigidly connected; the two angular velocity information obtained are aligned, and the delay time information between the two different sensors is determined; according to the delay time The information performs time synchronization processing on the respective measurement results of the two different sensors.
第二方面,本公开实施例提供一种时间同步处理装置,所述装置包括:第一获取模块、对齐模块和同步模块,其中,所述第一获取模块,用于分别获得两个不同的传感器采集的角速度信息;所述角速度信息为电子设备发生旋转运动时的角速度信息,所述两个不同的传感器均设置在所述电子设备上且刚性连接;所述对齐模块,用于对获得的两个角速度信息进行对齐处理,确定所述两个不同的传感器之间的延时时间信息;所述同步模块,用于根据所述延时时间信息对所述两个不同的传感器各自的测量结果进行时间同步处理。In a second aspect, an embodiment of the present disclosure provides a time synchronization processing device, the device includes: a first acquisition module, an alignment module, and a synchronization module, wherein the first acquisition module is configured to obtain two different sensors respectively The angular velocity information is collected; the angular velocity information is the angular velocity information when the electronic device rotates, and the two different sensors are both arranged on the electronic device and rigidly connected; the alignment module is used to compare the two obtained Aligning the two angular velocity information to determine the delay time information between the two different sensors; the synchronization module is configured to perform the respective measurement results of the two different sensors according to the delay time information Time synchronization processing.
第三方面,本公开实施例提供一种电子设备,所述电子设备至少包括处理器和用于存储能够在处理器上运行的计算机程序的存储器;所述处理器用于运行所述计算机程序时,执行上述时间同步处理方法中的步骤。In a third aspect, embodiments of the present disclosure provide an electronic device that includes at least a processor and a memory for storing a computer program that can run on the processor; when the processor is used to run the computer program, Perform the steps in the above-mentioned time synchronization processing method.
第四方面,本公开实施例提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述时间同步处理方法中的步骤。In a fourth aspect, embodiments of the present disclosure provide a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above-mentioned time synchronization processing method are implemented.
本公开实施例提供了一种时间同步处理方法、电子设备及存储介质,通过设置在电子设备上且刚性连接的两个不同的传感器,分别获得两个不同的传感器采集的角速度信息;对获 得的两个角速度信息进行对齐处理,确定两个不同的传感器之间的延时时间信息,再根据延时时间信息对两个不同的传感器各自的测量结果进行时间同步处理,由此充分利用刚性连接角速度信息相同的原理,实现不同的传感器的时间同步。The embodiments of the present disclosure provide a time synchronization processing method, an electronic device, and a storage medium. The angular velocity information collected by the two different sensors is obtained through two different sensors that are arranged on the electronic device and rigidly connected; The two angular velocity information is aligned to determine the delay time information between two different sensors, and then the respective measurement results of the two different sensors are time synchronized according to the delay time information, thereby making full use of the rigid connection angular velocity The principle of the same information realizes the time synchronization of different sensors.
附图说明Description of the drawings
图1为本公开实施例提供一种适用于时间同步处理方法的系统结构示意图一;FIG. 1 is a schematic diagram 1 of a system structure suitable for a time synchronization processing method according to an embodiment of the present disclosure;
图2A为本公开实施例提供一种适用于时间同步处理方法的系统架构示意图二;2A is a schematic diagram 2 of a system architecture suitable for a time synchronization processing method according to an embodiment of the present disclosure;
图2B为本公开实施例提供一种适用于时间同步处理方法的系统架构示意图三;2B is a third schematic diagram of a system architecture suitable for a time synchronization processing method according to an embodiment of the present disclosure;
图3为本公开实施例提供一种时间同步处理方法的实现流程示意图一;3 is a schematic diagram 1 of the implementation process of a time synchronization processing method provided by an embodiment of the present disclosure;
图4为本公开实施例中示例性地视觉传感器的角速度和惯性传感器的角速度之间存在时间延时的示意图;4 is a schematic diagram of an exemplary time delay between the angular velocity of the visual sensor and the angular velocity of the inertial sensor in the embodiment of the disclosure;
图5为本公开实施例中示例性地视觉传感器的角速度和惯性传感器的角速度同步后的示意图;FIG. 5 is a schematic diagram after the angular velocity of the visual sensor and the angular velocity of the inertial sensor are synchronized in an exemplary embodiment of the disclosure;
图6为本公开实施例提供一种时间同步处理方法的实现流程示意图二;6 is a second schematic diagram of the implementation process of a time synchronization processing method provided by an embodiment of the disclosure;
图7为本公开实施例提供一种时间同步处理方法的实现流程示意图三;FIG. 7 is a third schematic diagram of the implementation process of a time synchronization processing method provided by an embodiment of the disclosure;
图8为本公开实施例提供一种时间同步处理方法的实现流程示意图四;FIG. 8 is a fourth schematic diagram of the implementation process of a time synchronization processing method provided by an embodiment of the present disclosure;
图9为本公开实施例采用四元数表示位姿式传感器测量位姿旋转矩阵信息的示意图一;FIG. 9 is a first schematic diagram of measuring pose rotation matrix information by using a quaternion to represent a pose sensor in an embodiment of the disclosure;
图10为本公开实施例采用四元数表示位姿式传感器测量位姿旋转矩阵信息的示意图二;FIG. 10 is a second schematic diagram of the embodiment of the disclosure using a quaternion to represent the pose sensor to measure the pose rotation matrix information;
图11为本公开实施例提供一种时间同步处理装置的组成结构示意图;FIG. 11 is a schematic diagram of the composition structure of a time synchronization processing device provided by an embodiment of the disclosure;
图12为本公开实施例提供的电子设备的组成结构示意图。FIG. 12 is a schematic diagram of the composition structure of an electronic device provided by an embodiment of the disclosure.
具体实施方式Detailed ways
为了使本公开实施例的目的、技术方案和优点更加清楚,下面将结合附图对本公开实施例作进一步地详细描述,所描述的实施例不应视为对本公开实施例的限制,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本公开实施例保护的范围。In order to make the objectives, technical solutions and advantages of the embodiments of the present disclosure clearer, the embodiments of the present disclosure will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the embodiments of the present disclosure. All other embodiments obtained by technicians without creative work fall within the protection scope of the embodiments of the present disclosure.
图1为本公开实施例提供一种适用于时间同步处理方法的系统结构示意图一,如图1所示,该系统可包括处理器11、两个不同的传感器12和存储器13,两个不同的传感器12分别将获取的信息发送至处理器11进行处理。两个不同的传感器12中的一个传感器可以为直接测量角速度的传感器,另一个传感器可以为间接测量角速度的传感器,该间接测量角速度的传感器为能够独立估计传感器自身的旋转运动(即获取位姿旋转矩阵信息)的传感器。两个不同的传感器12也可以是其他结构的传感器,本公开实施例对两个不同的传感器的结构不作限制。Fig. 1 is a schematic diagram 1 of a system structure suitable for a time synchronization processing method provided by an embodiment of the present disclosure. As shown in Fig. 1, the system may include a processor 11, two different sensors 12, and a memory 13, two different The sensors 12 respectively send the acquired information to the processor 11 for processing. One of the two different sensors 12 may be a sensor that directly measures angular velocity, and the other sensor may be a sensor that indirectly measures angular velocity. The sensor that indirectly measures angular velocity is capable of independently estimating the rotational movement of the sensor itself (that is, obtaining posture rotation). Matrix information) sensor. The two different sensors 12 may also be sensors of other structures, and the embodiment of the present disclosure does not limit the structure of the two different sensors.
其中,两个不同的传感器12中的两个传感器之间刚性固定,也就是说,电子设备的两个不同的传感器12之间是相对固定的。在运动过程中,不同传感器在同一时刻测得的角速度是一样的。两个不同的传感器12分别将获取的信息输入至处理器11中,处理器11通过执行本公开实施例提供的方法进行时间同步处理。Among them, the two sensors of the two different sensors 12 are rigidly fixed, that is, the two different sensors 12 of the electronic device are relatively fixed. During the movement, the angular velocity measured by different sensors at the same time is the same. Two different sensors 12 respectively input the acquired information into the processor 11, and the processor 11 performs time synchronization processing by executing the method provided in the embodiment of the present disclosure.
在一些实施例中,电子设备可包括时间同步处理装置和两个不同的传感器12;时间同步处理装置可包括上述处理器11和存储器13。通过在电子设备上设置上述两个不同的传感器12,分别获得两个不同的传感器采集的角速度信息,两个不同的传感器12分别将获取的信息输入至处理器11中,处理器11通过执行本公开实施例提供的方法进行时间同步处理。In some embodiments, the electronic device may include a time synchronization processing device and two different sensors 12; the time synchronization processing device may include the aforementioned processor 11 and memory 13. By arranging the above two different sensors 12 on the electronic device, the angular velocity information collected by the two different sensors is obtained respectively, and the two different sensors 12 input the obtained information into the processor 11, and the processor 11 executes this The method provided by the disclosed embodiment performs time synchronization processing.
在另一些实施例中,该时间同步处理方法的系统架构还可以如图2A和2B所示,该系统包括时间同步处理装置20、第一传感器22a和第二传感器22b,第一传感器22a和第二传感器22b设置在例如车辆的电子设备上,时间同步处理装置20可以为车辆内的车载设备;第一传感器22a和第二传感器22b可通过电连接或无线通信连接将获取的信息发送至时间同 步处理装置20。可以理解,时间同步处理装置20中具有处理器和存储器,第一传感器22a和第二传感器22b将获取的信息发送至时间同步处理装置20,由处理器进行处理,以实现本公开实施例提供的时间同步处理的方法。In other embodiments, the system architecture of the time synchronization processing method may also be shown in FIGS. 2A and 2B. The system includes a time synchronization processing device 20, a first sensor 22a and a second sensor 22b, and a first sensor 22a and a second sensor 22a. The second sensor 22b is arranged on the electronic equipment of the vehicle, for example, the time synchronization processing device 20 may be an on-board equipment in the vehicle; the first sensor 22a and the second sensor 22b may send the acquired information to the time synchronization through an electrical connection or a wireless communication connection处理装置20。 Processing device 20. It can be understood that the time synchronization processing device 20 has a processor and a memory. The first sensor 22a and the second sensor 22b send the acquired information to the time synchronization processing device 20, which is processed by the processor to implement the information provided by the embodiments of the present disclosure. The method of time synchronization.
如图2A和图2B所示,第一传感器22a和第二传感器22b可以设置在车辆的不同位置,也可以设置在车辆的相同位置。例如,如图2B所示,第一传感器22a和第二传感器22b可以均设置在车辆的轮胎部位;又例如,如图2A所示,还可以将第一传感器22a设置在车辆的轮胎部位,第二传感器22b设置在车辆的其他部位,例如设置在车载装置部分,本公开实施例对第一传感器22a和第二传感器22b的部署位置不作限制。As shown in FIGS. 2A and 2B, the first sensor 22a and the second sensor 22b may be arranged at different positions of the vehicle, or may be arranged at the same position of the vehicle. For example, as shown in FIG. 2B, the first sensor 22a and the second sensor 22b may both be arranged on the tire of the vehicle; for another example, as shown in FIG. 2A, the first sensor 22a may also be arranged on the tire of the vehicle. The second sensor 22b is arranged in other parts of the vehicle, for example, in the vehicle-mounted device part. The embodiment of the present disclosure does not limit the deployment positions of the first sensor 22a and the second sensor 22b.
处理器对不同的传感器发送的信息的处理方式不同。例如,当传感器为直接测量角速度的传感器时,处理器可以直接通过对获得的角速度信息进行处理;当传感器为间接测量角速度的传感器时,处理器先获得位姿旋转矩阵信息,根据位姿旋转矩阵信息获取角速度信息,再对获取的角速度信息进行处理。The processor processes the information sent by different sensors in different ways. For example, when the sensor is a sensor that directly measures angular velocity, the processor can directly process the obtained angular velocity information; when the sensor is a sensor that indirectly measures angular velocity, the processor first obtains the pose rotation matrix information, and then according to the pose rotation matrix Information acquires angular velocity information, and then processes the acquired angular velocity information.
一般来说,时间同步处理装置在实施的过程中可以应用于各种类型的具有信息处理能力的电子设备。时间同步处理装置可通过在线的方式实时获得两个不同的传感器采集的数据,并采用本公开实施例的技术方案进行时间同步处理。时间同步处理装置也可以通过离线的方式获得两个不同的传感器采集到的数据,并采用本公开实施例的技术方案进行时间同步处理。其中,离线的方式获得两个不同的传感器采集到的数据可以包括:存储两个不同的传感器采集到的数据,待需要时导出存储的数据,以对不同的传感器各自的测量结果进行同步处理;在线的方式获得两个不同的传感器采集到的数据可以包括:实时获得两个不同的传感器采集到的数据,以对不同的传感器各自的测量结果进行同步处理。Generally speaking, the time synchronization processing apparatus can be applied to various types of electronic devices with information processing capabilities during implementation. The time synchronization processing device can obtain the data collected by two different sensors in real time in an online manner, and use the technical solutions of the embodiments of the present disclosure to perform time synchronization processing. The time synchronization processing device may also obtain data collected by two different sensors in an offline manner, and use the technical solutions of the embodiments of the present disclosure to perform time synchronization processing. Wherein, obtaining the data collected by two different sensors in an offline manner may include: storing the data collected by two different sensors, and exporting the stored data when needed, so as to synchronize the respective measurement results of the different sensors; Obtaining the data collected by two different sensors in an online manner may include: obtaining data collected by two different sensors in real time, so as to synchronize the respective measurement results of the different sensors.
其中,时间同步处理装置可设置于电子设备内,也可以设置于电子设备外;两个不同的传感器设置在电子设备中。其中,电子设备例如可以是移动机器人设备、无人驾驶设备或各类移动终端等设备,其中,无人驾驶设备可包括但不限于车辆、飞机或舰艇,本公开实施例这里不作限制。Among them, the time synchronization processing device can be arranged in the electronic equipment or outside the electronic equipment; two different sensors are arranged in the electronic equipment. Among them, the electronic device may be, for example, a mobile robot device, an unmanned device, or various types of mobile terminals and other devices. The unmanned device may include, but is not limited to, a vehicle, an airplane, or a ship, which is not limited in the embodiment of the present disclosure.
基于上述架构,本公开实施例提出一种时间同步处理方法,能够解决不同传感器之间时间延时标定精度低和复杂的问题。该时间同步处理方法所实现的功能可以通过时间同步处理装置中的处理器调用可执行指令来实现,当然可执行指令可以保存在存储器的存储介质中,可见,该时间同步处理装置至少包括处理器和存储介质。Based on the foregoing architecture, embodiments of the present disclosure propose a time synchronization processing method, which can solve the problem of low and complex time delay calibration between different sensors. The functions implemented by the time synchronization processing method can be implemented by the processor in the time synchronization processing device calling executable instructions. Of course, the executable instructions can be stored in the storage medium of the memory. It can be seen that the time synchronization processing device at least includes a processor And storage media.
图3为本公开实施例中提供一种时间同步处理方法的实现流程示意图一,应用于时间同步处理装置中,如图3所示,所述时间同步处理方法包括:FIG. 3 is a schematic diagram 1 of the implementation process of a time synchronization processing method provided in an embodiment of the present disclosure, which is applied to a time synchronization processing device. As shown in FIG. 3, the time synchronization processing method includes:
S101、分别获得两个不同的传感器采集的角速度信息;所述角速度信息为电子设备发生旋转运动时的角速度信息,所述两个不同的传感器均设置在所述电子设备上且刚性连接。S101. Obtain angular velocity information collected by two different sensors; the angular velocity information is angular velocity information when the electronic device rotates, and the two different sensors are both arranged on the electronic device and rigidly connected.
本公开实施例中,两个不同的传感器刚性连接,也即,两个不同的传感器之间是相对固定的。在电子设备发生旋转运动过程中,两个不同的传感器在同一时刻获取的角速度信息表征的角速度是相同的。In the embodiment of the present disclosure, two different sensors are rigidly connected, that is, the two different sensors are relatively fixed. During the rotational movement of the electronic device, the angular velocity represented by the angular velocity information acquired by two different sensors at the same time is the same.
需要说明的是,本公开实施例中两个不同的传感器包括结构不同的传感器,或,结构相同但部署位置不同的传感器。It should be noted that the two different sensors in the embodiments of the present disclosure include sensors with different structures, or sensors with the same structure but different deployment positions.
例如,若两个不同的传感器为结构不同的传感器,所述两个不同传感器可以包括以下中的任意两种结构:视觉传感器、惯性传感器、磁力传感器、激光雷达传感器和轮式传感器,本公开实施例这里不作限制。For example, if two different sensors are sensors with different structures, the two different sensors may include any two of the following structures: vision sensors, inertial sensors, magnetic sensors, lidar sensors, and wheel sensors. There is no restriction here.
又例如,若两个不同的传感器为结构相同但位置不同的传感器,所述两个不同传感器可以为部署在电子设备的不同位置的视觉传感器或磁力传感器等等,本公开实施例这里不作限制。For another example, if two different sensors are sensors with the same structure but different positions, the two different sensors may be vision sensors or magnetic sensors deployed in different positions of the electronic device, and the embodiments of the present disclosure are not limited here.
本公开实施例中,所述角速度信息可以为通过两个不同的传感器分别获取的、预设时间段内电子设备发生旋转运动时的角速度信息。也就是说,电子设备发生旋转运动时,会旋转一定角度,进而能够在预设时间段内分别获得不同传感器采集的角速度信息。In the embodiment of the present disclosure, the angular velocity information may be the angular velocity information when the electronic device rotates in a preset period of time, which is obtained by two different sensors. In other words, when the electronic device rotates, it rotates by a certain angle, so that the angular velocity information collected by different sensors can be obtained within a preset time period.
需要说明的是,上述预设时间段可以是用户根据实际情况设置的,例如,可以设置该预 设时间段为半个小时或者十五分钟等,本公开实施例中不做限制。It should be noted that the foregoing preset time period may be set by the user according to actual conditions. For example, the preset time period may be set to half an hour or fifteen minutes, etc., which is not limited in the embodiments of the present disclosure.
需要说明的是,上述两个不同的传感器可以基于直接获取角速度信息或间接获取角速度信息等获取方式进行分类。示例性的,一种类型的传感器为陀螺式传感器,其能够直接测量角速度信息;另一种类型的传感器为位姿式传感器,其能够间接测量角速度信息。或者,上述两个不同的传感器还可以基于传感器的结构进行分类。示例性的,陀螺式传感器和位姿式传感器为结构不同的传感器。It should be noted that the above two different sensors can be classified based on acquisition methods such as direct acquisition of angular velocity information or indirect acquisition of angular velocity information. Exemplarily, one type of sensor is a gyro sensor, which can directly measure angular velocity information; the other type of sensor is a pose sensor, which can indirectly measure angular velocity information. Alternatively, the above two different sensors can also be classified based on the structure of the sensor. Exemplarily, the gyro sensor and the attitude sensor are sensors with different structures.
在本公开实施例中的一些可选实施例中,所述两个不同的传感器中的至少之一为位姿式传感器,所述分别获得两个不同的传感器采集的角速度信息,包括:获得位姿式传感器采集的位姿旋转矩阵信息;通过位姿旋转矩阵信息确定电子设备发生旋转运动时的角速度信息。In some optional embodiments of the embodiments of the present disclosure, at least one of the two different sensors is a pose sensor, and the obtaining angular velocity information collected by the two different sensors separately includes: obtaining a position The pose rotation matrix information collected by the pose sensor; the angular velocity information when the electronic device rotates is determined by the pose rotation matrix information.
在本公开实施例中的一些可选实施例中,所述两个不同的传感器中至少之一为陀螺式传感器,分别获得两个不同的传感器采集的角速度信息,包括:获得陀螺式传感器采集的角速度信息。In some optional embodiments of the embodiments of the present disclosure, at least one of the two different sensors is a gyro sensor, and obtaining angular velocity information collected by the two different sensors respectively includes: obtaining the information collected by the gyro sensor Angular velocity information.
本公开实施例中,通过两种不同的传感器获取电子设备发生旋转运动时的角速度信息包括以下几种应用场景:In the embodiments of the present disclosure, acquiring angular velocity information when an electronic device undergoes a rotational movement through two different sensors includes the following application scenarios:
场景一:两个不同的传感器均为陀螺式传感器,但两个陀螺式传感器的部署位置不同,则通过两个陀螺式传感器直接采集电子设备发生旋转运动时的角速度信息。Scenario 1: Two different sensors are gyroscopic sensors, but the deployment positions of the two gyroscopic sensors are different, and the angular velocity information of the electronic device when the electronic device rotates is directly collected through the two gyroscopic sensors.
场景二:两个不同的传感器均为位姿式传感器,但两个位姿式传感器的部署位置不同,则通过两个位姿式传感器分别获得电子设备发生旋转运动时的位姿旋转矩阵信息,再通过位姿旋转矩阵信息分别计算得到电子设备发生旋转运动时的角速度信息。Scenario 2: The two different sensors are both pose sensors, but the deployment positions of the two pose sensors are different, and the pose rotation matrix information when the electronic device rotates is obtained through the two pose sensors. Then, the angular velocity information when the electronic device rotates is calculated through the information of the pose rotation matrix.
场景三:两个不同的传感器中,一个为位姿式传感器,另一个为陀螺式传感器;一方面,可通过位姿式传感器获得电子设备发生旋转运动时的位姿旋转矩阵信息,再通过位姿旋转矩阵信息计算得到电子设备发生旋转运动时的角速度信息;另一方面,可通过陀螺式传感器直接采集电子设备发生旋转运动时的角速度信息。Scenario 3: Among the two different sensors, one is a pose sensor and the other is a gyro sensor; on the one hand, the pose rotation matrix information when the electronic device rotates can be obtained through the pose sensor, and then pass the position The posture rotation matrix information is calculated to obtain the angular velocity information when the electronic device rotates; on the other hand, the angular velocity information when the electronic device rotates can be directly collected through the gyro sensor.
示例性地,陀螺式传感器包括惯性传感器、磁力传感器和轮式里程传感器中的任一传感器,位姿式传感器包括视觉传感器和激光雷达传感器中的任一传感器。Exemplarily, the gyro sensor includes any one of an inertial sensor, a magnetic sensor, and a wheel-type odometer sensor, and the attitude sensor includes any one of a vision sensor and a lidar sensor.
S102、对获得的两个角速度信息进行对齐处理,确定两个不同的传感器之间的延时时间信息。S102: Perform alignment processing on the two obtained angular velocity information, and determine delay time information between two different sensors.
本公开实施例中,由于不同传感器的数据获取频率不同,因此,在获得两个角速度信息之后,需要对两个角速度信息进行对齐处理,确定两个不同的传感器之间的延时时间信息。In the embodiments of the present disclosure, since the data acquisition frequency of different sensors is different, after obtaining the two angular velocity information, the two angular velocity information need to be aligned to determine the delay time information between the two different sensors.
需要说明的是,本公开实施例中对两个角速度信息进行对齐处理在于使两个不同传感器各自获取的角速度信息在频率上是一致的,如此便可以基于对齐后的两个角速度信息,确定两个不同传感器之间的延时时间信息。It should be noted that the alignment processing of the two angular velocity information in the embodiment of the present disclosure is to make the angular velocity information acquired by the two different sensors be consistent in frequency, so that the two angular velocity information can be determined based on the aligned two angular velocity information. Delay time information between two different sensors.
本公开实施例中,可以通过对两个角速度进行插值处理,以对齐两个角速度信息。In the embodiment of the present disclosure, the two angular velocities can be interpolated to align the two angular velocity information.
示例性地,插值处理可采用线性插值、三次样条插值和球面插值中的任一种插值处理方式,本公开实施例这里不作限制。Exemplarily, the interpolation processing may adopt any interpolation processing method among linear interpolation, cubic spline interpolation, and spherical interpolation, which is not limited in the embodiment of the present disclosure.
S103、根据延时时间信息对两个不同的传感器各自的测量结果进行时间同步处理。S103: Perform time synchronization processing on the respective measurement results of the two different sensors according to the delay time information.
本公开实施例中,在确定两个不同的传感器之间的延时时间信息之后,可以根据延时时间信息对两个不同的传感器各自的测量结果进行时间同步处理。需要说明的是,对两个不同的传感器各自的测量结果进行时间同步处理为确定同一时刻的两个不同传感器各自的测量结果,从而可以解决不同的传感器存在的触发延时和传输延时导致的时间同步精确低的问题。In the embodiment of the present disclosure, after the delay time information between two different sensors is determined, the respective measurement results of the two different sensors can be time synchronized according to the delay time information. It should be noted that the time synchronization processing of the respective measurement results of two different sensors is to determine the respective measurement results of the two different sensors at the same time, so as to solve the trigger delay and transmission delay caused by the different sensors. The problem of low time synchronization accuracy.
本公开实施例中,两个不同传感器各自的测量结果为电子设备发生旋转运动时,该两个不同传感器各自测量电子设备旋转运动而得到的测量结果。In the embodiment of the present disclosure, the respective measurement results of the two different sensors are the measurement results obtained by the two different sensors respectively measuring the rotational movement of the electronic device when the electronic device undergoes rotational movement.
示例性地,两个不同的传感器各自得到的测量结果可以包括角速度信息、方位角信息和加速度信息中的至少一种信息。例如,惯性传感器的测量结果可包括电子设备发生旋转运动的角速度信息和加速度信息;磁力传感器的测量结果可包括电子设备发生旋转运动的方位角信息。Exemplarily, the measurement results obtained by the two different sensors may include at least one of angular velocity information, azimuth angle information, and acceleration information. For example, the measurement result of the inertial sensor may include angular velocity information and acceleration information of the rotational movement of the electronic device; the measurement result of the magnetic sensor may include the azimuth angle information of the rotational movement of the electronic device.
在一种实施例中,电子设备上也可以设置至少三个的传感器,且该至少三个传感器之间刚性连接;分别获得该至少三个传感器采集的角速度信息;对获得的三个角速度信息进行对齐处理,确定至少三个传感器之间的延时时间信息;根据延时时间信息,对至少三个传感器各自的测量结果进行时间同步处理。In an embodiment, at least three sensors may also be provided on the electronic device, and the at least three sensors are rigidly connected; the angular velocity information collected by the at least three sensors is obtained respectively; and the three angular velocity information obtained is performed Alignment processing determines the delay time information between at least three sensors; according to the delay time information, time synchronization processing is performed on the respective measurement results of the at least three sensors.
需要说明的是,在电子设备上设置有至少三个传感器的情况下,可将至少三个传感器两两组合,以获取任意两个传感器之间的延时时间信息,再通过该延时时间信息对同一时刻对应的两个传感器各自的测量结果进行时间同步处理,从而实现至少三个传感器的时间同步处理。It should be noted that when there are at least three sensors on the electronic device, at least three sensors can be combined in pairs to obtain the delay time information between any two sensors, and then the delay time information Time synchronization processing is performed on the respective measurement results of the two sensors corresponding to the same time, so as to realize the time synchronization processing of at least three sensors.
示例性地,在电子设备上设置的两个不同的传感器分别为视觉传感器和惯性传感器情况下,可以通过获取的视觉传感器和惯性传感器之间的延时时间信息,基于该延时时间信息对视觉传感器的测量结果和惯性传感器的测量结果进行时间同步处理,实现视觉传感器的测量结果和惯性传感器的测量结果的时间同步。Exemplarily, in the case where the two different sensors provided on the electronic device are the visual sensor and the inertial sensor, the delay time information between the visual sensor and the inertial sensor can be acquired, and the visual effect can be adjusted based on the delay time information. The measurement result of the sensor and the measurement result of the inertial sensor are processed in time synchronization to realize the time synchronization of the measurement result of the visual sensor and the measurement result of the inertial sensor.
示例性的,在电子设备上设置的三个传感器分别为视觉传感器、惯性传感器和激光雷达传感器的情况下,可以先确定视觉传感器和惯性传感器之间的延时时间信息,基于该延时时间信息对视觉传感器的测量结果和惯性传感器的测量结果进行时间同步处理,实现视觉传感器的测量结果和惯性传感器的测量结果的时间同步;再确定视觉传感器和激光雷达传感器之间的延时时间信息,基于该延时时间信息对视觉传感器的测量结果和激光雷达传感器的测量结果进行时间同步处理,实现视觉传感器的测量结果和激光雷达传感器的测量结果的时间同步,如此,通过两次时间同步处理,实现视觉传感器、惯性传感器和激光雷达传感器这三个传感器之间的测量结果的时间同步。Exemplarily, in the case where the three sensors provided on the electronic device are respectively a vision sensor, an inertial sensor, and a lidar sensor, the delay time information between the vision sensor and the inertial sensor may be determined first, based on the delay time information The measurement result of the vision sensor and the measurement result of the inertial sensor are time-synchronized to realize the time synchronization of the measurement result of the vision sensor and the measurement result of the inertial sensor; then the delay time information between the vision sensor and the lidar sensor is determined, based on The delay time information performs time synchronization processing on the measurement result of the vision sensor and the measurement result of the lidar sensor, and realizes the time synchronization of the measurement result of the vision sensor and the measurement result of the lidar sensor. In this way, through two time synchronization processing, The time synchronization of the measurement results between the vision sensor, inertial sensor and lidar sensor.
为了能够更加清楚的呈现两个不同的传感器的测量结果在同步之前和同步之后的差别,下面以两个不同传感器中的一个传感器为视觉传感器,另一个传感器为惯性传感器,测量结果为角速度信息为例,对本公开实施例中时间同步处理进行说明。In order to more clearly show the difference between the measurement results of two different sensors before and after synchronization, the following uses one of the two different sensors as a vision sensor, the other sensor as an inertial sensor, and the measurement result is angular velocity information as For example, the time synchronization processing in the embodiment of the present disclosure will be described.
图4为本公开实施例中示例性地视觉传感器的角速度信息和惯性传感器的角速度信息之间存在时间延时的示意图。图5为本公开实施例中示例性地视觉传感器的角速度和惯性传感器的角速度同步后的示意图。图4和图5中,虚线表示为视觉传感器的角速度,实线表示为惯性传感器的角速度。FIG. 4 is a schematic diagram showing the time delay between the angular velocity information of the visual sensor and the angular velocity information of the inertial sensor in an exemplary embodiment of the disclosure. FIG. 5 is a schematic diagram after the angular velocity of the visual sensor and the angular velocity of the inertial sensor are synchronized in an exemplary embodiment of the disclosure. In Figures 4 and 5, the dotted line represents the angular velocity of the vision sensor, and the solid line represents the angular velocity of the inertial sensor.
从图4可以看出,视觉传感器的角速度曲线与惯性传感器的角速度曲线错开,而且视觉传感器的角速度曲线是滞后的。通过视觉传感器和惯性传感器之间的延时时间信息,对视觉传感器的角速度进行同步后,从图5可以看出,视觉传感器的角速度曲线与惯性传感器的角速度曲线是对齐的,没有错开,从而能够根据确定的延时时间信息,实现视觉传感器与惯性传感器之间的角速度信息的时间同步处理。It can be seen from Figure 4 that the angular velocity curve of the visual sensor is staggered from the angular velocity curve of the inertial sensor, and the angular velocity curve of the visual sensor is lagging. After synchronizing the angular velocity of the visual sensor through the delay time information between the visual sensor and the inertial sensor, it can be seen from Fig. 5 that the angular velocity curve of the visual sensor and the angular velocity curve of the inertial sensor are aligned and not staggered, thus According to the determined delay time information, the time synchronization processing of the angular velocity information between the visual sensor and the inertial sensor is realized.
本公开实施例中,在确定两个不同的传感器之间的延时时间信息之后,可以直接根据延时时间信息对两个不同的传感器各自的测量结果进行时间同步处理。In the embodiments of the present disclosure, after the delay time information between two different sensors is determined, the respective measurement results of the two different sensors can be directly synchronized in time according to the delay time information.
在一种实施例中,在对获得的两个角速度信息进行对齐处理、确定两个不同的传感器之间的延时时间信息之后,还可以存储延时时间信息;在电子设备处于非运动状态的情况下,根据存储的延时时间信息,对两个不同的传感器各自的测量结果进行时间同步处理。In an embodiment, after aligning the obtained two angular velocity information and determining the delay time information between two different sensors, the delay time information may also be stored; when the electronic device is in a non-moving state In this case, according to the stored delay time information, the respective measurement results of the two different sensors are time synchronized.
本公开实施例的技术方案既可以实现在线时间同步处理,还可以实现离线时间同步处理,其时间同步处理更加灵活。同时,本公开实施例中的时间同步处理均无需借助标定参照物,如棋盘格图像,其时间同步更加方便简单,普适性强。The technical solutions of the embodiments of the present disclosure can realize both online time synchronization processing and offline time synchronization processing, and the time synchronization processing is more flexible. At the same time, the time synchronization processing in the embodiments of the present disclosure does not need to use a calibration reference object, such as a checkerboard image, and the time synchronization is more convenient and simple, and has strong universality.
本公开实施例要求电子设备能够发生旋转运动,即要求电子设备最少只需要绕旋转轴的旋转,便可标定电子设备上不同传感器之间的延时时间信息,而无需必须要求绕多轴的运动,降低了不同传感器时间同步的复杂度,能够适应不同场景的需求;并且本公开实施例也可以基于电子设备绕多轴旋转产生的旋转运动来标定延时时间,如此能够得到更加丰富的旋转信息,以提高时间同步的精确度;本公开实施例要求传感器能够独立获取角速度信息,便可以确定不同的传感器之间的延时时间信息,能够广泛的用于多种传感器之间的时间同步,具有普遍适应性;本公开实施例是基于软件来实现时间同步的方法,无需额外部署用于时间同步 的专用硬件;本公开实施例根据实时获取的延时时间信息进行时间同步,能够在线进行时间同步处理;本公开实施例通过电子设备发生旋转运动时获取的角速度信息确定延时时间信息,不再是将延时时间信息当作常数处理,提高了时间同步的精确度。The embodiments of the present disclosure require the electronic device to be capable of rotating movement, that is, the electronic device is required to only need to rotate around the rotation axis at least to calibrate the delay time information between different sensors on the electronic device, without having to require movement around multiple axes , The complexity of time synchronization of different sensors is reduced, and it can be adapted to the needs of different scenarios; and the embodiments of the present disclosure can also calibrate the delay time based on the rotation motion generated by the electronic device rotating around multiple axes, so that more abundant rotation information can be obtained , In order to improve the accuracy of time synchronization; the embodiments of the present disclosure require sensors to independently obtain angular velocity information to determine the delay time information between different sensors, which can be widely used for time synchronization between multiple sensors. Universal adaptability; the embodiment of the present disclosure is a software-based method for realizing time synchronization, without additional deployment of dedicated hardware for time synchronization; the embodiment of the present disclosure performs time synchronization based on the delay time information obtained in real time, and can perform time synchronization online Processing: The embodiment of the present disclosure determines the delay time information through the angular velocity information obtained when the electronic device rotates, instead of treating the delay time information as a constant, and improves the accuracy of time synchronization.
图6为本公开实施例提供一种时间同步处理方法的实现流程示意图二,如图6所示,在本公开实施例中,通过对两个不同的传感器各自获取的角速度信息进行对齐处理,确定两个不同的传感器之间的延时时间信息,即S102,可以包括S102a和S102b,如下:FIG. 6 is a second schematic diagram of the implementation process of a time synchronization processing method provided by an embodiment of the present disclosure. As shown in FIG. 6, in the embodiment of the present disclosure, the angular velocity information acquired by two different sensors is aligned to determine The delay time information between two different sensors, namely S102, can include S102a and S102b, as follows:
S102a、对两个角速度信息中的至少之一进行插值处理,以对齐两个角速度信息。S102a: Perform interpolation processing on at least one of the two angular velocity information to align the two angular velocity information.
本公开实施例中,不同结构的传感器的插值处理与相同结构的传感器的处理方式可能不同。因此,可基于两个传感器的不同结构,对两个角速度信息中的至少之一进行插值处理,以对齐两个角速度信息。In the embodiments of the present disclosure, the interpolation processing of sensors of different structures may be different from the processing of sensors of the same structure. Therefore, based on the different structures of the two sensors, interpolation processing can be performed on at least one of the two angular velocity information to align the two angular velocity information.
例如,在两个不同的传感器均为陀螺式传感器的情况下,对获得的两个陀螺式传感器各自采集的角速度信息中的至少之一进行插值处理,以对齐两个角速度信息。For example, when the two different sensors are both gyroscopic sensors, interpolation processing is performed on at least one of the obtained angular velocity information collected by the two gyroscopic sensors to align the two angular velocity information.
又例如,在两个不同的传感器均为位姿式传感器的情况下,对获得的两个位姿式传感器各自采集的位姿旋转矩阵信息中的至少之一进行插值处理,以对齐两个角速度信息。For another example, in the case where the two different sensors are both pose sensors, interpolation processing is performed on at least one of the obtained pose rotation matrix information collected by the two pose sensors to align the two angular velocities information.
再例如,在两个不同的传感器分别为位姿式传感器和陀螺式传感器的情况下,对获得的位姿式传感器采集的位姿旋转矩阵信息进行插值处理,以对齐两个角速度信息。For another example, in the case where two different sensors are a pose sensor and a gyro sensor, interpolation processing is performed on the pose rotation matrix information collected by the obtained pose sensor to align the two angular velocity information.
需要说明的是,对两个角速度信息中的至少之一进行插值处理包括对两个角速度信息均进行插值处理和对两个角速度信息中的任一个角速度信息进行插值处理。It should be noted that performing interpolation processing on at least one of the two angular velocity information includes performing interpolation processing on both angular velocity information and performing interpolation processing on any one of the two angular velocity information.
在一种实施例中,对两个角速度信息进行插值处理包括:选取一个数据获取频率作为标准数据获取频率,根据该标准数据获取频率对两个角速度信息进行插值处理。其中,该标准数据获取频率,可以在两个传感器的各自数据获取频率之间或者高于两个传感器的各自数据获取频率。In an embodiment, performing interpolation processing on the two angular velocity information includes: selecting a data acquisition frequency as the standard data acquisition frequency, and performing interpolation processing on the two angular velocity information according to the standard data acquisition frequency. Wherein, the standard data acquisition frequency may be between the respective data acquisition frequencies of the two sensors or higher than the respective data acquisition frequencies of the two sensors.
示例性地,如果两个传感器的数据获取频率分别为10Hz和15Hz,则可以选取高于该两个传感器的数据获取频率作为标准数据获取频率,如标准数据获取频率为17Hz。当然,也可以选取介于两个传感器的数据获取频率之间的频率作为标准数据获取频率,如标准数据获取频率为13Hz。Exemplarily, if the data acquisition frequencies of the two sensors are 10 Hz and 15 Hz, respectively, the data acquisition frequency higher than the two sensors can be selected as the standard data acquisition frequency, for example, the standard data acquisition frequency is 17 Hz. Of course, a frequency between the data acquisition frequencies of the two sensors can also be selected as the standard data acquisition frequency, for example, the standard data acquisition frequency is 13 Hz.
如果选取的标准数据获取频率为13Hz,则根据标准数据获取频率对两个传感器获取的角速度信息进行插值处理,使第一传感器的角速度获取频率和第二传感器的角速度获取频率分别与标准获取频率相同,均为13Hz。如此,能够解决由于不同的传感器的数据获取频率不一致导致数据处理存在的偏差的问题,有助于基于对齐后的角速度信息得到更加精确地延时时间信息。If the selected standard data acquisition frequency is 13Hz, the angular velocity information acquired by the two sensors is interpolated according to the standard data acquisition frequency, so that the angular velocity acquisition frequency of the first sensor and the angular velocity acquisition frequency of the second sensor are respectively the same as the standard acquisition frequency , Both are 13Hz. In this way, the problem of deviations in data processing caused by inconsistent data acquisition frequencies of different sensors can be solved, which helps to obtain more accurate delay time information based on the aligned angular velocity information.
在一种实施例中,假设两个不同的传感器分别记为第一传感器和第二传感器,第一传感器的数据获取频率高于第二传感器的数据获取频率;对两个传感器中的一个传感器进行插值处理包括:根据第一传感器的数据获取频率,对获取的第二传感器采集的角速度信息进行插值处理。In an embodiment, it is assumed that two different sensors are respectively denoted as the first sensor and the second sensor. The data acquisition frequency of the first sensor is higher than the data acquisition frequency of the second sensor; The interpolation processing includes: performing interpolation processing on the acquired angular velocity information collected by the second sensor according to the data acquisition frequency of the first sensor.
示例性地,如果第一传感器的数据获取频率为15Hz,第二传感器的数据获取频率为10Hz,则可以根据第一传感器的数据获取频率15Hz,对第二传感器获取的角速度信息进行插值,使第一传感器的角速度获取频率与第二传感器的角速度信息获取频率相同,均为15Hz。如此解决了由于不同的传感器的数据获取频率不一致导致数据处理存在的偏差的问题,有助于基于对齐后的角速度信息得到更加精确地延时时间信息。Exemplarily, if the data acquisition frequency of the first sensor is 15 Hz and the data acquisition frequency of the second sensor is 10 Hz, then the angular velocity information acquired by the second sensor can be interpolated according to the data acquisition frequency of the first sensor 15 Hz, so that the The angular velocity acquisition frequency of one sensor is the same as the angular velocity information acquisition frequency of the second sensor, and both are 15 Hz. This solves the problem of deviations in data processing due to inconsistent data acquisition frequencies of different sensors, and helps to obtain more accurate delay time information based on the aligned angular velocity information.
在一种实施例中,在电子设备上的两个不同的传感器分别为位姿式传感器和陀螺式传感器的情况下,对获得的位姿式传感器采集的位姿旋转矩阵信息进行插值处理,以对齐两个角速度信息。具体可以包括S01、S02和S03,如下:In an embodiment, when the two different sensors on the electronic device are a pose sensor and a gyro sensor, the obtained pose rotation matrix information collected by the pose sensor is subjected to interpolation processing to Align the two angular velocity information. Specifically, it can include S01, S02 and S03, as follows:
S01、从多个位姿旋转矩阵信息中,获取相邻的位姿旋转矩阵信息。S01. Obtain adjacent pose rotation matrix information from multiple pose rotation matrix information.
本公开实施例中,在获取多个位姿旋转矩阵信息之后,可以从多个位姿旋转矩阵信息中获取相邻的位姿旋转矩阵信息。需要说明的是,位姿式传感器在预设时间段内采集的位姿旋转矩阵信息为多个位姿旋转矩阵信息。In the embodiment of the present disclosure, after obtaining multiple pose rotation matrix information, adjacent pose rotation matrix information may be obtained from the multiple pose rotation matrix information. It should be noted that the pose rotation matrix information collected by the pose sensor in the preset time period is multiple pose rotation matrix information.
示例性地,在位姿式传感器为视觉传感器的情况下,可以获取相邻帧图像的位姿旋转矩阵信息;在位姿式传感器为激光雷达传感器的情况下,通过激光雷达传感器可以单独的获取在预设时间段内的位姿旋转矩阵信息,用于估计电子设备的旋转运动。Exemplarily, when the pose sensor is a vision sensor, the pose rotation matrix information of the adjacent frame image can be obtained; when the pose sensor is a lidar sensor, it can be obtained separately by the lidar sensor The pose rotation matrix information in the preset time period is used to estimate the rotation movement of the electronic device.
S02、根据陀螺式传感器获取角速度信息的频率,对相邻的位姿旋转矩阵信息进行插值处理,获取插值后的旋转矩阵信息。S02: Perform interpolation processing on adjacent pose rotation matrix information according to the frequency at which the gyro sensor obtains angular velocity information, and obtain interpolated rotation matrix information.
本公开实施例中,在获取相邻的位姿旋转矩阵信息之后,可以根据相邻的位姿旋转矩阵信息,获取插值后的旋转矩阵信息。In the embodiment of the present disclosure, after obtaining the adjacent pose rotation matrix information, the interpolated rotation matrix information may be obtained according to the adjacent pose rotation matrix information.
需要说明的是,在根据相邻的位姿旋转矩阵信息,获取插值后的旋转矩阵信息的过程中,可以构建插值模型,进而通过插值模型和相邻的位姿旋转矩阵信息,获取插值后的旋转矩阵信息。It should be noted that in the process of obtaining the interpolated rotation matrix information according to the adjacent pose rotation matrix information, an interpolation model can be constructed, and then the interpolation model and the adjacent pose rotation matrix information can be used to obtain the interpolated rotation matrix information. Rotation matrix information.
可以理解的是,插值模型用于通过相邻的位姿旋转信息在有限个点处的取值状况,估算出相邻位姿旋转信息之间的其他相邻位姿旋转信息。It is understandable that the interpolation model is used to estimate other adjacent pose rotation information between adjacent pose rotation information based on the value status of adjacent pose rotation information at a limited number of points.
示例性地,该插值模型可以包括球面线性插值(Spherical Linear Interpolation)模型、三次样条插值(Cubic Spline Interpolation)模型和最邻近插值模型,本公开实施例对差值模型不作限制。Exemplarily, the interpolation model may include a spherical linear interpolation (Spherical Linear Interpolation) model, a cubic spline interpolation (Cubic Spline Interpolation) model, and a nearest neighbor interpolation model. The embodiment of the present disclosure does not limit the difference model.
S03、对插值后的旋转矩阵信息进行微分处理,获得位姿式传感器对应的角速度信息,以对齐姿态式传感器和陀螺式传感器各自获取的两个角速度信息。S03. Perform differentiation processing on the interpolated rotation matrix information to obtain angular velocity information corresponding to the attitude sensor, so as to align the two angular velocity information acquired by the attitude sensor and the gyro sensor.
本公开实施例中,在获取插值后的旋转矩阵信息之后,可以根据几何方式对插值后的旋转矩阵信息进行微分处理,获取位姿式传感器对应的角速度信息。In the embodiments of the present disclosure, after obtaining the interpolated rotation matrix information, the interpolated rotation matrix information may be differentiated according to a geometric manner to obtain angular velocity information corresponding to the pose sensor.
需要说明的是,在对插值后的旋转矩阵信息进行微分处理,获取位姿式传感器对应的角速度信息的过程中可以构建微分模型。通过构建的微分模型和插值后的旋转矩阵信息,获取位姿式传感器对应的角速度信息。It should be noted that the differential model can be constructed in the process of performing differentiation processing on the interpolated rotation matrix information to obtain angular velocity information corresponding to the pose sensor. Through the constructed differential model and the interpolated rotation matrix information, the angular velocity information corresponding to the pose sensor is obtained.
示例性地,微分模型满足公式(1)。Illustratively, the differential model satisfies formula (1).
Figure PCTCN2020076836-appb-000001
Figure PCTCN2020076836-appb-000001
其中,q(t)'为微分位姿旋转矩阵信息,w为第二子角速度信息,q(t)为插值后的位姿旋转矩阵信息。Among them, q(t)' is the differential pose rotation matrix information, w is the second sub-angular velocity information, and q(t) is the interpolated pose rotation matrix information.
需要说明的是,本公开实施例中的微分模型是用于表征角速度信息的模型。在一些可能的实现方式中,该微分模型可以是四元数微分模型或其他数学表达形式的模型,本公开实施例这里不作限定。It should be noted that the differential model in the embodiment of the present disclosure is a model used to characterize angular velocity information. In some possible implementations, the differential model may be a quaternion differential model or a model in other mathematical expression forms, which is not limited in the embodiment of the present disclosure.
S102b、根据对齐后的两个角速度信息,确定两个不同的传感器之间的延时时间信息。S102b: Determine the delay time information between two different sensors according to the aligned two angular velocity information.
本公开实施例中,考虑到电子设备发生旋转运动过程,不同的传感器在同一时刻获取的角速度信息是相同的,因此,可以根据对齐后的两个角速度信息,确定两个不同的传感器之间的延时时间信息。In the embodiments of the present disclosure, considering the rotational movement process of the electronic device, the angular velocity information acquired by different sensors at the same time is the same. Therefore, the angular velocity information between the two different sensors can be determined according to the aligned two angular velocity information. Delay time information.
需要说明的是,根据对齐后的两个角速度信息,确定两个不同的传感器之间的延时时间信息的过程之前,可以先构建误差模型,再根据对齐后的两个角速度信息和该误差模型,确定两个不同的传感器之间的延时时间信息。It should be noted that before determining the delay time information between two different sensors according to the aligned two angular velocity information, an error model can be constructed first, and then based on the aligned two angular velocity information and the error model , To determine the delay time information between two different sensors.
本公开实施例中,在构建误差模型过程中,由于不同的传感器对应不同的坐标轴,而在比较不同的传感器之间的角速度信息时,要求在同一个坐标系对应的坐标轴下,因此,在构建误差模型时,引入了两个不同的传感器各自对应的不同坐标轴之间的旋转参数,以使得同一时刻的两个不同传感器的角速度信息在同一坐标轴下。In the embodiments of the present disclosure, in the process of constructing the error model, since different sensors correspond to different coordinate axes, when comparing angular velocity information between different sensors, it is required to be under the coordinate axes corresponding to the same coordinate system. Therefore, When constructing the error model, the rotation parameters between the different coordinate axes corresponding to the two different sensors are introduced, so that the angular velocity information of the two different sensors at the same time is under the same coordinate axis.
又考虑到不同的传感器获取角速度信息存在偏差,因此,在构建误差模型时,引入两个传感器之间的误差参数,使得通过误差模型确定的延时时间信息能够更加精确。Taking into account the deviation of angular velocity information obtained by different sensors, when constructing the error model, the error parameter between the two sensors is introduced, so that the delay time information determined by the error model can be more accurate.
示例性地,误差模型可以如公式(2)所示:Exemplarily, the error model can be as shown in formula (2):
f(Q 12,td,bg)=||w 1(t)-[Q 12w 2(t+td)-bg]|| 2          (2) f(Q 12 ,td,bg)=||w 1 (t)-[Q 12 w 2 (t+td)-bg]|| 2 (2)
其中,Q 12为两个不同的传感器各自对应的不同坐标轴之间的旋转参数;td为两个不同 的传感器之间的延时时间信息;bg为两个不同的传感器之间的误差参数,w 1(t)和w 2(t)分别为同一时刻t的两个不同的传感器各自获取的角速度信息,f(Q 12,td,bg)为角速度之间的误差。 Among them, Q 12 is the rotation parameter between the different coordinate axes corresponding to two different sensors; td is the delay time information between the two different sensors; bg is the error parameter between the two different sensors, w 1 (t) and w 2 (t) are respectively the angular velocity information acquired by two different sensors at the same time t, and f(Q 12 , td, bg) is the error between the angular velocities.
在一种实施例中,在对获得的两个角速度信息进行对齐处理,确定两个不同的传感器之间的延时时间信息之后,所述方法还包括:通过对两个角速度信息进行对齐处理,确定两个不同的传感器之间的外参,外参包括两个不同的传感器各自对应的不同坐标轴之间的旋转参数和两个不同的传感器之间的误差参数。In an embodiment, after aligning the obtained two angular velocity information and determining the delay time information between the two different sensors, the method further includes: aligning the two angular velocity information, Determine the external parameters between two different sensors. The external parameters include the rotation parameters between the different coordinate axes corresponding to the two different sensors and the error parameters between the two different sensors.
本公开实施例中,通过对齐后的两个角速度信息,不仅可以获取延时时间信息,还可以获取两个不同的传感器之间的旋转参数和误差参数,使得电子设备的功能更加丰富。In the embodiments of the present disclosure, through the aligned two angular velocity information, not only the delay time information can be obtained, but also the rotation parameters and error parameters between two different sensors can be obtained, so that the functions of the electronic device are more abundant.
图7为本公开实施例提供一种时间同步处理方法的实现流程示意图三,如图7所示,根据对齐后的两个角速度信息,确定两个不同的传感器之间的延时时间信息,即步骤S102b,可以包括S102b1、S102b2和S102b3,如下:FIG. 7 is a schematic diagram of the third implementation flow of a time synchronization processing method provided by an embodiment of the disclosure. As shown in FIG. 7, the delay time information between two different sensors is determined according to the aligned two angular velocity information, namely Step S102b may include S102b1, S102b2, and S102b3, as follows:
S102b1、根据对齐后的两个角速度信息,确定两个不同的传感器在不同时刻对应的子误差方程。S102b1, according to the aligned two angular velocity information, determine the sub-error equations corresponding to the two different sensors at different times.
本公开实施例中,在对齐两个角速度信息之后,可以根据对齐后的两个角速度信息,确定在电子设备发生旋转运动过程中、两个不同的传感器在不同时刻对应的子误差方程。In the embodiment of the present disclosure, after the two angular velocity information is aligned, the sub-error equations corresponding to the two different sensors at different moments during the rotation of the electronic device can be determined according to the aligned two angular velocity information.
需要说明的是,预设时间段内不同时刻n可以根据实际情况进行预设设置。例如可以在预设时间段内设置15个时刻或者设置20个时刻,进而得到每个时刻对应的子误差方程。It should be noted that n can be preset at different times within the preset time period according to actual conditions. For example, 15 moments or 20 moments can be set within the preset time period, and then the sub-error equation corresponding to each moment can be obtained.
示例性地,如果时刻1对应的不同的传感器采集的角速度信息分别为w 1(1)和w 2(1+td);时刻2对应的不同的传感器的采集角速度信息分别为w 1(2)和w 2(2+td),依次类推,时刻n对应的不同的传感器采集的角速度信息分别为w 1(n)和w 2(n+td),则当误差模型满足公式(2)时,其对应的不同时刻n对应的子误差方程为: Exemplarily, if the angular velocity information collected by different sensors corresponding to time 1 are respectively w 1 (1) and w 2 (1+td); the angular velocity information collected by different sensors corresponding to time 2 are respectively w 1 (2) And w 2 (2+td), and so on, the angular velocity information collected by different sensors corresponding to time n is w 1 (n) and w 2 (n+td) respectively, then when the error model satisfies formula (2), The corresponding sub-error equations corresponding to different times n are:
时刻1对应的子误差方程满足公式(3):The sub-error equation corresponding to time 1 satisfies formula (3):
f(1)=||w 1(1)-[Q 12w 2(1+td)-bg]|| 2        (3) f(1)=||w 1 (1)-[Q 12 w 2 (1+td)-bg]|| 2 (3)
时刻2对应的子误差方程满足公式(4):The sub-error equation corresponding to time 2 satisfies formula (4):
f(2)=||w 1(2)-[Q 12w 2(2+td)-bg]|| 2       (4) f(2)=||w 1 (2)-[Q 12 w 2 (2+td)-bg]|| 2 (4)
依此类推,时刻n对应的子误差方程满足公式(5):By analogy, the sub-error equation corresponding to time n satisfies formula (5):
f(n)=||w 1(n)-[Q 12w 2(n+td)-bg]|| 2       (5) f(n)=||w 1 (n)-[Q 12 w 2 (n+td)-bg]|| 2 (5)
S102b2、对不同时刻对应的子误差方程求和,得到最终误差方程。S102b2, sum up the corresponding sub-error equations at different times to obtain the final error equation.
本公开实施例中,在确定各个时刻对应的子误差方程之后,对不同时刻对应的子误差方程求和,得到最终误差方程。In the embodiment of the present disclosure, after the sub-error equations corresponding to each time are determined, the sub-error equations corresponding to different times are summed to obtain the final error equation.
需要说明的是,本公开实施例是通过求取不同时刻的累计误差以获取延时时间信息,进而需要对不同时刻对应的子误差方程求和得到最终误差方程。It should be noted that the embodiment of the present disclosure obtains the delay time information by obtaining the accumulated errors at different times, and further requires summing the sub-error equations corresponding to different times to obtain the final error equation.
示例性地,当不同时刻对应的子误差方程分别为上述公式(3)、公式(4)和公式(5)时,则对应的最终误差方程满足公式(6):Exemplarily, when the corresponding sub-error equations at different times are the above formula (3), formula (4), and formula (5) respectively, the corresponding final error equation satisfies formula (6):
f(Q 12、td、bg)=f(1)+f(2).....+f(n)          (6) f(Q 12 、td、bg)=f(1)+f(2).....+f(n) (6)
S102b3、对最终误差方程进行最小值处理,得到延时时间信息。S102b3: Perform minimum processing on the final error equation to obtain delay time information.
本公开实施例中,在得到最终误差方程之后,可以对最终误差方程进行最小值处理,得到延时时间信息。In the embodiments of the present disclosure, after the final error equation is obtained, the final error equation can be processed to a minimum value to obtain delay time information.
需要说明的是,上述最小值处理是为了使得最终误差方程值最小,进而估计出误差模型中的延时时间信息、旋转参数和传感器之间的误差参数。It should be noted that the above-mentioned minimum value processing is to minimize the final error equation value, and then estimate the delay time information in the error model, the rotation parameter, and the error parameter between the sensors.
示例性地,对最终误差方程进行最小值处理可以通过非线性化模型或者迭代最近点模型,来对最终误差方程进行最小值处理。Exemplarily, the minimum processing of the final error equation may be performed through a nonlinear model or an iterative closest point model to perform the minimum processing on the final error equation.
本公开实施例中,对最终误差方程进行最小值处理,得到延时时间信息的过程可包括: 对最终误差方程进行迭代最近点处理,得到第二最小化方程;对第二最小化方程的求解,直到满足预设第二阈值的情况下,获取第二最小化方程中的延时时间信息。In the embodiment of the present disclosure, the process of performing minimum value processing on the final error equation to obtain delay time information may include: performing iterative nearest point processing on the final error equation to obtain the second minimization equation; and solving the second minimization equation , Until the preset second threshold is met, the delay time information in the second minimization equation is acquired.
需要说明的是,对最终误差方程进行迭代最近点处理,得到第二最小化方程时,可以设置延时时间在预设时间段之间。例如,可以用黄金分割法选定一个延时时间,再代入误差模型,这时得到的误差项就只有旋转参数和传感器之间的误差参数这两个未知数,这里可以再通过迭代最近点处理,便可以获取旋转参数和传感器之间的误差参数。It should be noted that the iterative closest point processing is performed on the final error equation to obtain the second minimization equation, and the delay time can be set between the preset time periods. For example, you can use the golden section method to select a delay time and then substitute it into the error model. The error term obtained at this time is only the two unknowns of the rotation parameter and the error parameter between the sensors. Here, it can be processed by iterative closest point. Then the rotation parameters and the error parameters between the sensors can be obtained.
示例性地,假设延时时间信息在[-1,1]之间,用黄金分割法选定一个延时时间为0.3,此时,得到的第二最小化方程满足公式(7):Exemplarily, assuming that the delay time information is between [-1,1], use the golden section method to select a delay time of 0.3. At this time, the second minimization equation obtained satisfies the formula (7):
Figure PCTCN2020076836-appb-000002
Figure PCTCN2020076836-appb-000002
其中,f(Q 12,bg)为角速度之间的误差,n为最邻近点对的个数,Q 12为两传感器之间的旋转矩阵,bg为两个传感器之间的误差参数,w i1(t)和w i2(t)分别为两个传感器分别对应的角速度中点云中的一点。 Among them, f(Q 12 ,bg) is the error between angular velocities, n is the number of the nearest point pairs, Q 12 is the rotation matrix between the two sensors, bg is the error parameter between the two sensors, w i1 (t) and w i2 (t) are respectively a point in the point cloud in the angular velocity corresponding to the two sensors.
本公开实施例中,对最终误差方程进行最小值处理,得到延时时间信息的过程还可以包括:对最终误差方程进行非线性优化处理,得到第一最小化方程;对第一最小化方程的求解,直到满足预设第一阈值的情况下,获取第一最小化方程中的延时时间信息。In the embodiments of the present disclosure, the process of performing minimum value processing on the final error equation to obtain delay time information may further include: performing nonlinear optimization processing on the final error equation to obtain the first minimization equation; Solve, until the preset first threshold is met, obtain the delay time information in the first minimization equation.
需要说明的是,由于最终误差方程为非线性函数,需要对其进行泰勒展开,通过对最终误差方程进行最小化迭代,寻找满足预设第一阈值时对应的延时时间信息,从而使得最终误差方程下降到最小值。It should be noted that since the final error equation is a non-linear function, it needs to be Taylor expanded. By minimizing the final error equation, it is necessary to find the corresponding delay time information when the preset first threshold is met, so as to make the final error The equation drops to a minimum.
本公开实施例中,对最终误差方程进行非线性优化处理,得到第一最小化方程的过程中可以构建非线性优化模型。基于最终误差方程和非线性优化模型,确定第一最小化方程。In the embodiment of the present disclosure, nonlinear optimization processing is performed on the final error equation, and a nonlinear optimization model can be constructed in the process of obtaining the first minimization equation. Based on the final error equation and the nonlinear optimization model, the first minimization equation is determined.
示例性地,预设非线性优化模型可以包括高斯牛顿(Gauss-Newton)算法模型或者莱文贝格-马夸特(Levenberg-Marquardt)算法模型,第一阈值可以根据用户实际需要进行设定,如为0.1或者0.01,本公开实施例这里不作限制。Exemplarily, the preset nonlinear optimization model may include a Gauss-Newton algorithm model or a Levenberg-Marquardt algorithm model, and the first threshold can be set according to the actual needs of the user. If it is 0.1 or 0.01, the embodiments of the present disclosure are not limited here.
本公开实施例中,对第一最小化方程的求解,直到满足预设第一阈值时,获取第一最小化方程中的延时时间信息,包括:当确定是第一次确定延时时间时信息,根据预设初始变量值和预设非线性优化模型,获取当前变量值;根据初始变量值、当前变量值和第一最小化方程,确定最小化方程的当前求解值,当该当前求解值满足预设第一阈值时,获取第一最小化方程中的延时时间信息。In the embodiment of the present disclosure, when the first minimization equation is solved until the preset first threshold is satisfied, obtaining the delay time information in the first minimization equation includes: when it is determined that the delay time is determined for the first time Information, according to the preset initial variable value and the preset nonlinear optimization model, obtain the current variable value; according to the initial variable value, the current variable value and the first minimization equation, determine the current solution value of the minimized equation, when the current solution value When the preset first threshold is met, the delay time information in the first minimization equation is obtained.
需要说明的是,第一最小化方程是由相邻变量值对应的最终误差方程构成,如,第一最小化方程可以为公式(8)。It should be noted that the first minimization equation is composed of the final error equation corresponding to the adjacent variable values. For example, the first minimization equation can be formula (8).
e=f(x k+1)-f(x k)            (8) e=f(x k+1 )-f(x k ) (8)
其中,x k+1为当前变量值,x k为初始变量值,e为最小化方程的当前求解值。 Among them, x k+1 is the current variable value, x k is the initial variable value, and e is the current solution value of the minimization equation.
当确定是非第一次确定延时时间信息,获取上一次变量值;根据上一次变量值和预设非线性优化模型,获取当前变量值;根据上一次变量值、当前变量值和第一最小化方程,确定最小化方程的当前求解值,当该当前求解值满足预设第一阈值时,获取第一最小化方程中的延时时间信息。When determining whether it is the first time to determine the delay time information, obtain the last variable value; obtain the current variable value according to the last variable value and the preset nonlinear optimization model; obtain the current variable value according to the last variable value, current variable value and first minimization Equation to determine the current solution value of the minimization equation, and when the current solution value meets the preset first threshold, obtain the delay time information in the first minimization equation.
需要说明的是,当该当前求解值不满足预设第一阈值时,需要根据当前变量值和预设非线性优化模型,获取下一个变量值;根据下一次变量值、当前变量值和第一最小化方程,确定最小化方程的下一次求解值,并依次判断该下一次求解值是否满足预设第一阈值,直到当下一次求解值满足该预设第一阈值时,迭代结束,确定第一最小化方程中的延时时间信息。It should be noted that when the current solution value does not meet the preset first threshold, the next variable value needs to be obtained according to the current variable value and the preset nonlinear optimization model; according to the next variable value, the current variable value and the first Minimize the equation, determine the next solution value of the minimized equation, and determine in turn whether the next solution value meets the preset first threshold, until the next solution value meets the preset first threshold, the iteration ends, and the first Minimize the delay time information in the equation.
本公开实施例中,通过对最终误差方程进行最小化处理得到延时时间信息的同时,还可以得到旋转参数和传感器偏差参数,如此,通过得到的旋转参数能够使得不同坐标系的测量信息转化到同一个坐标系中。In the embodiments of the present disclosure, while obtaining delay time information by minimizing the final error equation, rotation parameters and sensor deviation parameters can also be obtained. In this way, the obtained rotation parameters can transform the measurement information of different coordinate systems into In the same coordinate system.
在一种实施例中,在所述根据所述延时时间信息对所述两个不同的传感器各自的测量结果进行时间同步处理之后,还可以包括:对同步后的测量结果进行融合处理;根据融合处理 的测量结果执行以下至少之一的操作:定位处理、测距处理、电子设备所在场景的目标检测、生成或者更新地图。In an embodiment, after performing time synchronization processing on the respective measurement results of the two different sensors according to the delay time information, it may further include: performing fusion processing on the synchronized measurement results; The measurement result of the fusion processing performs at least one of the following operations: positioning processing, ranging processing, target detection of the scene where the electronic device is located, generating or updating a map.
本公开实施例中,对同步后的两个测量结果进行融合处理包括:对位于同一时刻的两个测量结果进行分析和综合,以得到可靠的融合处理的结果。In the embodiment of the present disclosure, performing fusion processing on two synchronized measurement results includes: analyzing and synthesizing two measurement results at the same time to obtain a reliable fusion processing result.
示例性地,将融合处理的结果应用于定位处理过程中,可以实现对电子设备的精确定位;将融合处理的结果应用于测距处理过程中,可以提高测量精度;将融合处理的结果应用于电子设备所在场景的目标检测过程中,可以得到精确的目标检测结果;将融合处理结果应用于生成或者更新地图过程中时,可以得到精确的地图。Exemplarily, applying the result of the fusion processing to the positioning process can achieve precise positioning of the electronic device; applying the result of the fusion processing to the ranging process can improve the measurement accuracy; applying the result of the fusion processing to the In the target detection process of the scene where the electronic device is located, accurate target detection results can be obtained; when the fusion processing result is applied to the process of generating or updating a map, an accurate map can be obtained.
本公开实施例中,对同步后的测量结果进行融合的过程中,可以构建融合算法模型,以得到精确的融合处理结果。In the embodiments of the present disclosure, in the process of fusing the synchronized measurement results, a fusion algorithm model can be constructed to obtain accurate fusion processing results.
示例性地,融合算法模型可以包括卡尔曼滤波融合算法模型和聚类分析识别算法模型,本公开实施例这里不做限制。Exemplarily, the fusion algorithm model may include a Kalman filter fusion algorithm model and a cluster analysis recognition algorithm model, which is not limited in the embodiment of the present disclosure.
在一种实施例中,可以采用卡尔曼滤波融合算法模型对同步后的测量结果进行融合处理,包括:利用电子设备设置的两个不同传感器的测量结果进行状态传播,从而可以由上一个时刻的第一测量结果的位姿估计得到当前时刻位姿的估计,再利用当前时刻的第二测量结果作为观测信息,对当前时刻位姿的初步估计进行校正,从而得到当前时刻位姿的一个最优的估计,该最优的估计即为融合处理结果。In an embodiment, the Kalman filter fusion algorithm model can be used to perform fusion processing on the synchronized measurement results, including: using the measurement results of two different sensors set by the electronic device to perform state propagation, so that the previous moment's The pose estimation of the first measurement result obtains the pose estimation at the current moment, and then uses the second measurement result at the current moment as observation information to correct the preliminary estimation of the pose at the current moment, thereby obtaining an optimal pose at the current moment The best estimate is the result of the fusion processing.
需要说明的是,本公开实施例中的时间同步处理方法同样可以适用于三个以上的传感器。当电子设备上设置有至少三个传感器时,获取每两个传感器的时间同步处理后的测量结果,对时间同步处理后的测量结果进行融合处理,以得到融合处理的结果。与只有两个传感器对应的测量结果进行融合相比,通过对至少三个传感器对应的测量结果进行融合处理能够得到更加精确的测量结果。It should be noted that the time synchronization processing method in the embodiment of the present disclosure can also be applied to more than three sensors. When at least three sensors are provided on the electronic device, the measurement results after the time synchronization processing of every two sensors are acquired, and the measurement results after the time synchronization processing are fused to obtain the result of the fusion processing. Compared with fusion of measurement results corresponding to only two sensors, more accurate measurement results can be obtained by fusing the measurement results corresponding to at least three sensors.
图8为本公开实施例提供一种时间同步处理方法的实现流程示意图四,如图8所示,本公开实施例中,电子设备上设置的两个不同的传感器分别为视觉传感器和惯性传感器,本实施例的时间同步处理方法可以包括以下步骤:FIG. 8 is a fourth schematic diagram of the implementation process of a time synchronization processing method provided by an embodiment of the present disclosure. As shown in FIG. 8, in an embodiment of the present disclosure, two different sensors provided on an electronic device are a vision sensor and an inertial sensor. The time synchronization processing method of this embodiment may include the following steps:
S201、通过惯性传感器,获取电子设备发生旋转运动时的第一角速度信息。S201. Obtain first angular velocity information when the electronic device rotates through the inertial sensor.
本公开实施例中,电子设备上的惯性传感器可以独立获取角速度信息。由于惯性传感器中设置有陀螺单元,能够通过陀螺单元直接获取电子设备发生旋转运动时的角速度信息。In the embodiments of the present disclosure, the inertial sensor on the electronic device can independently obtain angular velocity information. Since the inertial sensor is provided with a gyro unit, the angular velocity information when the electronic device rotates can be directly obtained through the gyro unit.
需要说明的是,惯性传感器是测量三轴姿态角(或角速率)以及加速度的传感器,该惯性传感器除了包括陀螺单元,还可以包括加速度单元,其中,加速度单元可以检测电子设备在其坐标的三轴的加速度信息。It should be noted that the inertial sensor is a sensor that measures the three-axis attitude angle (or angular rate) and acceleration. In addition to the gyro unit, the inertial sensor can also include an acceleration unit, where the acceleration unit can detect the three-axis position of the electronic device. Acceleration information of the axis.
S202、通过视觉传感器,获取电子设备发生旋转运动时的位姿旋转矩阵信息。S202: Obtain the position and posture rotation matrix information when the electronic device rotates through the vision sensor.
本公开实施例中,电子设备上的视觉传感器可以独立获取位姿旋转矩阵信息。视觉传感器中设置有位姿估计单元,能够通过位姿估计单元获取电子设备发生旋转运动时的位姿旋转矩阵信息。In the embodiment of the present disclosure, the visual sensor on the electronic device can independently obtain the pose rotation matrix information. The vision sensor is provided with a pose estimation unit, which can obtain the pose rotation matrix information when the electronic device rotates.
需要说明的是,视觉传感器主要由一个或者两个图形传感器组成,还要配以光投射器及其他辅助设备,其可以通过获取在预设时间段内原始图像,并将获取的图像与内存中基准进行比较和分析,从而得到位姿旋转矩阵信息,进而解算出电子设备的位姿旋转矩阵信息。It should be noted that the vision sensor is mainly composed of one or two graphics sensors, and is also equipped with a light projector and other auxiliary equipment. It can acquire the original image within a preset time period and store the acquired image in the memory. The benchmarks are compared and analyzed to obtain the pose rotation matrix information, and then calculate the pose rotation matrix information of the electronic device.
示例性地,可以通过四元数表示电子设备的旋转运动;还可以通过三维旋转群表示电子设备的旋转运动,本公开实施例对此不作限制。Exemplarily, the rotational movement of the electronic device can be represented by a quaternion; the rotational movement of the electronic device can also be represented by a three-dimensional rotation group, which is not limited in the embodiment of the present disclosure.
S203、根据位姿旋转矩阵信息,确定第二角速度信息,对齐第二角速度信息和第一角速度信息。S203: Determine the second angular velocity information according to the pose rotation matrix information, and align the second angular velocity information with the first angular velocity information.
本公开实施例中,由于视觉传感器通常图像频率通常为10Hz,而惯性传感器的频率通常为100Hz,则视觉传感器两帧图像之间就有接近于10个惯性传感器测量的第一角速度信息,因此,对视觉传感器的位姿旋转矩阵信息进行插值处理,以使得视觉传感器与惯性传感器的频率一致,进而通过插值后的位姿旋转矩阵信息获取得到的第二角速度信息,能够与第一角速度信息对齐。In the embodiments of the present disclosure, since the image frequency of the vision sensor is usually 10 Hz, and the frequency of the inertial sensor is usually 100 Hz, there is close to the first angular velocity information measured by 10 inertial sensors between the two frames of the vision sensor. Therefore, Interpolation processing is performed on the pose rotation matrix information of the vision sensor to make the frequency of the vision sensor and the inertial sensor consistent, and the second angular velocity information obtained through the interpolated pose rotation matrix information can be aligned with the first angular velocity information.
本实施例中,可通过插值模型对第二角速度信息和第一角速度信息中的至少之一进行插值处理。需要说明的是,基于电子设备旋转运动的不同表示形式,采用的插值模型也是不同。如,对于四元数表示的旋转运动,可以通过球面线性插值模型,对该位姿旋转矩阵进行插值处理;对于三维旋转群表示的旋转运动,可以通过三次样条插值模型和最邻近插值模型,对位姿旋转矩阵信息进行插值处理。In this embodiment, at least one of the second angular velocity information and the first angular velocity information can be interpolated through an interpolation model. It should be noted that, based on the different representations of the rotational motion of the electronic device, the interpolation models used are also different. For example, for the rotational motion represented by the quaternion, the pose rotation matrix can be interpolated through the spherical linear interpolation model; for the rotational motion represented by the three-dimensional rotation group, the cubic spline interpolation model and the nearest neighbor interpolation model can be used. Interpolate the pose rotation matrix information.
对于采用四元数表示的旋转运动,则要求通过四个参数来表示三维旋转;对于采用三维旋转群表示的旋转运动,则要求九个参数来表示三维旋转。For the rotational motion represented by a quaternion, four parameters are required to represent the three-dimensional rotation; for the rotational motion represented by the three-dimensional rotation group, nine parameters are required to represent the three-dimensional rotation.
下面以四元数表示的旋转运动,以球面线性插值模型为例对视觉传感器的位姿旋转矩阵信息的插值处理过程进行举例说明。In the following, the rotation motion represented by a quaternion is used as an example to illustrate the interpolation processing process of the pose rotation matrix information of the vision sensor using a spherical linear interpolation model.
示例性的,四元数是由实数加虚数组成的,如公式(9):Exemplarily, a quaternion is composed of a real number plus an imaginary number, as in formula (9):
q(e 0,e 1,e 2,e 3)=e 0+e 1i+e 2j+e 3k              (9) q(e 0 ,e 1 ,e 2 ,e 3 )=e 0 +e 1 i+e 2 j+e 3 k (9)
其中,e 0、e 1、e 2、e 3是实数,i、j、k是相互正交的虚数单位,q为用四元数表示的位姿旋转矩阵信息。 Among them, e 0 , e 1 , e 2 , and e 3 are real numbers, i, j, and k are mutually orthogonal imaginary number units, and q is the pose rotation matrix information represented by a quaternion.
利用四元数表示位姿旋转矩阵信息的方式包括三角式和指数式,其中指数式表达为公式(10)。The ways of using quaternion to express the pose rotation matrix information include triangle and exponential, and the exponential is expressed as formula (10).
q=e wt/2              (10) q=e wt/2 (10)
其中,w为角速度,t为时刻,q为四元数的指数映射表示的位姿旋转矩阵信息。Among them, w is the angular velocity, t is the time, and q is the pose rotation matrix information represented by the exponential mapping of quaternion.
示例性,构建的球面插值模型为公式(11)。Exemplarily, the constructed spherical interpolation model is formula (11).
Figure PCTCN2020076836-appb-000003
Figure PCTCN2020076836-appb-000003
其中,q 0和q 1分别为相邻的姿态旋转矩阵,q(t)为对姿态旋转矩阵进行球面插值处理得到插值后的位姿旋转矩阵信息。 Among them, q 0 and q 1 are adjacent posture rotation matrices, and q(t) is the posture rotation matrix information obtained by spherical interpolation of the posture rotation matrix.
可以理解的是,根据姿态旋转矩阵信息q 0和q 1以及球面插值模型,可以获取插值后的位姿旋转矩阵信息。 It can be understood that, according to the posture rotation matrix information q 0 and q 1 and the spherical interpolation model, the posture rotation matrix information after interpolation can be obtained.
示例性的,图9为本公开实施例采用四元数表示位姿式传感器测量位姿旋转矩阵信息的示意图一,如图9所示,电子设备连续运动从上一时刻旋转到当前时刻,也即从实线圆旋转到虚线圆。图10为本公开实施例采用四元数表示位姿式传感器测量位姿旋转矩阵信息的示意图二,如图10所示,为从图9中摘出来的虚线框的平面视图,q 0和q 1分别为相邻的姿态旋转矩阵,q(t)为对姿态旋转矩阵进行球面插值处理得到插值后的位姿旋转矩阵信息,旋转的角度为Δθ,t为时间,为0≤t≤1。 Exemplarily, FIG. 9 is a schematic diagram 1 of the embodiment of the present disclosure using a quaternion sensor to measure the pose rotation matrix information. As shown in FIG. 9, the electronic device continuously moves from the previous moment to the current moment. That is, rotate from a solid circle to a dotted circle. FIG. 10 is a second schematic diagram of the embodiment of the disclosure using a quaternion to represent the pose rotation matrix information measured by the pose sensor. As shown in FIG. 10, it is a plan view of the dotted frame extracted from FIG. 9, q 0 and q 1 is the adjacent posture rotation matrix, q(t) is the posture rotation matrix information after spherical interpolation is performed on the posture rotation matrix, the angle of rotation is Δθ, t is the time, and 0≤t≤1.
本公开实施例中,在根据插值后的位姿旋转矩阵信息获取第二角速度信息的过程中,可以根据插值后的位姿旋转矩阵信息和微分模型,确定视觉传感器对应的角速度信息。该微分模型如公式(1)。In the embodiment of the present disclosure, in the process of acquiring the second angular velocity information according to the interpolated pose rotation matrix information, the angular velocity information corresponding to the vision sensor can be determined according to the interpolated pose rotation matrix information and the differential model. The differential model is as in formula (1).
可以理解的是,对位姿旋转矩阵信息先插值处理,再微分处理,便可以间接得获取第二角速度信息,如此,能够适应较多传感器之间的时间同步,具备普遍适用性。It can be understood that the second angular velocity information can be obtained indirectly by interpolating the pose rotation matrix information first, and then differential processing. In this way, it can adapt to the time synchronization between more sensors and has universal applicability.
S204、确定视觉传感器与惯性传感器之间的延时时间信息。S204: Determine the delay time information between the visual sensor and the inertial sensor.
本公开实施例中,在对第一角速度信息和第二角速度信息进行对齐处理之后,还可以根据第一角速度信息和第二角速度信息,确定视觉传感器与惯性传感器之间的延时时间信息。In the embodiment of the present disclosure, after the first angular velocity information and the second angular velocity information are aligned, the delay time information between the visual sensor and the inertial sensor can be determined according to the first angular velocity information and the second angular velocity information.
在其他实施例中,通过第一角速度信息和第二角速度信息,不仅可以求解出视觉传感器和惯性传感器之间的延时时间信息,还可以求解出旋转参数和传感器之间的误差参数。In other embodiments, through the first angular velocity information and the second angular velocity information, not only the delay time information between the vision sensor and the inertial sensor can be solved, but also the rotation parameter and the error parameter between the sensors can be solved.
S205、根据延时时间信息,对视觉传感器的测量结果和惯性传感器的测量结果进行时间同步处理。S205: Perform time synchronization processing on the measurement result of the visual sensor and the measurement result of the inertial sensor according to the delay time information.
本公开实施例提供的时间同步处理方法能够应用于无人驾驶或者移动机器人导航中,当在无人驾驶或者移动机器人导航过程中,该无人驾驶电子设备或者移动机器人电子设备能够通过本公开实施例提供的时间同步处理方法实现精确的定位。The time synchronization processing method provided by the embodiments of the present disclosure can be applied to unmanned driving or mobile robot navigation. During the unmanned driving or mobile robot navigation, the unmanned electronic device or mobile robot electronic device can be implemented through the present disclosure The time synchronization processing method provided in the example realizes precise positioning.
此外,本公开实施例仅仅是以视觉传感器和惯性传感器进行举例来说明电子设备实现时间同步处理方法的过程,本公开实施例提供的一种时间同步处理方法并不局限于视觉传感器和惯性传感器这两个传感器之间,还可以适用于其他传感器,只要其他传感器能够独立获取角速度信息和位姿旋转矩阵信息即可。同时,本公开实施例还可以适用于包括三个以上传感器的电子设备,即上述时间同步方法同样适应于三个以上传感器的电子设备中。In addition, the embodiment of the present disclosure only uses a vision sensor and an inertial sensor as an example to illustrate the process of the electronic device implementing the time synchronization processing method. The time synchronization processing method provided by the embodiment of the present disclosure is not limited to the vision sensor and the inertial sensor. Between the two sensors, it can also be applied to other sensors, as long as the other sensors can independently obtain angular velocity information and pose rotation matrix information. At the same time, the embodiments of the present disclosure can also be applied to electronic devices including more than three sensors, that is, the above-mentioned time synchronization method is also applicable to electronic devices with more than three sensors.
在上述时间同步处理方法的实现基础上,本公开实施例提供一种时间同步处理装置,图11为本公开实施例提供的一种时间同步处理装置的组成结构示意图,如图11所示,时间同步处理装置300包括第一获取模块301、对齐模块302和同步模块303,其中,Based on the implementation of the above-mentioned time synchronization processing method, an embodiment of the present disclosure provides a time synchronization processing device. FIG. 11 is a schematic diagram of the composition structure of a time synchronization processing device provided by an embodiment of the disclosure. As shown in FIG. The synchronization processing device 300 includes a first acquisition module 301, an alignment module 302, and a synchronization module 303, where:
第一获取模块301,用于分别获得两个不同的传感器采集的角速度信息;所述角速度信息为电子设备发生旋转运动时的角速度信息;所述两个不同的传感器均设置在所述电子设备上且刚性连接;The first acquisition module 301 is configured to obtain angular velocity information collected by two different sensors; the angular velocity information is the angular velocity information when the electronic device rotates; the two different sensors are both set on the electronic device And rigidly connected;
对齐模块302,用于对获得的两个角速度信息进行对齐处理,确定所述两个不同的传感器之间的延时时间信息;The alignment module 302 is configured to perform alignment processing on the two obtained angular velocity information, and determine the delay time information between the two different sensors;
同步模块303,用于根据所述延时时间信息对所述两个不同的传感器各自的测量结果进行时间同步处理。The synchronization module 303 is configured to perform time synchronization processing on the respective measurement results of the two different sensors according to the delay time information.
本公开实施例的时间同步处理装置,要求电子设备能够发生旋转运动,即要求电子设备最少只需要绕旋转轴的旋转,便可标定电子设备上不同的传感器之间的延时时间信息,而无需必须要求绕多轴的运动,降低了不同传感器时间同步的复杂度,能够适应不同场景的需求;并且本公开实施例也可以基于电子设备多轴旋转产生的旋转运动来标定延时时间,如此能够得到更加丰富的旋转信息,以提高时间同步的精确度;本公开实施例要求传感器能够独立获取角速度信息,便可以确定不同的传感器之间的延时时间信息,能够广泛的用于多种传感器之间的时间同步,具有普遍适应性;本公开实施例是基于软件来实现时间同步的方法,无需额外部署用于时间同步的专用硬件;本公开实施例根据实时获取的延时时间信息进行时间同步,能够实现在线时间同步处理;本公开实施例通过电子设备发生旋转运动时获取的角速度信息确定延时时间信息,不再是将延时时间信息当作常数处理,提高了时间同步的精确度。The time synchronization processing device of the embodiment of the present disclosure requires the electronic device to be capable of rotating motion, that is, the electronic device is required to rotate around the rotation axis at least to calibrate the delay time information between different sensors on the electronic device without It is necessary to require movement around multiple axes, which reduces the complexity of time synchronization of different sensors and can adapt to the needs of different scenarios; and the embodiments of the present disclosure can also calibrate the delay time based on the rotational movement generated by the multi-axis rotation of the electronic device. Obtain richer rotation information to improve the accuracy of time synchronization; the embodiments of the present disclosure require sensors to independently obtain angular velocity information to determine the delay time information between different sensors, which can be widely used in a variety of sensors. The time synchronization between the devices has universal adaptability; the embodiment of the present disclosure is a method for realizing time synchronization based on software, and there is no need to deploy additional dedicated hardware for time synchronization; the embodiment of the present disclosure performs time synchronization based on the delay time information obtained in real time , Can realize online time synchronization processing; embodiments of the present disclosure determine delay time information through angular velocity information obtained when the electronic device rotates, instead of treating the delay time information as a constant, and improve the accuracy of time synchronization.
在其他实施例中,第一获取模块301,用于获得位姿式传感器采集的位姿旋转矩阵信息;通过所述位姿旋转矩阵信息确定所述电子设备发生旋转运动时的角速度信息,其中,所述两个不同的传感器中的至少之一为位姿式传感器。In other embodiments, the first obtaining module 301 is configured to obtain the pose rotation matrix information collected by the pose sensor; the angular velocity information when the electronic device rotates is determined by the pose rotation matrix information, where: At least one of the two different sensors is a pose sensor.
在其他实施例中,第一获取模块301,用于获得陀螺式传感器采集的角速度信息,其中,所述两个不同的传感器中的至少之一为陀螺式传感器。In other embodiments, the first obtaining module 301 is configured to obtain angular velocity information collected by a gyro sensor, wherein at least one of the two different sensors is a gyro sensor.
在其他实施例中,所述对齐模块302,用于对所述角速度信息中的至少之一进行插值处理,以对齐所述两个角速度信息;根据对齐后的两个角速度信息,确定所述两个不同的传感器之间的延时时间信息。In other embodiments, the alignment module 302 is configured to perform interpolation processing on at least one of the angular velocity information to align the two angular velocity information; determine the two angular velocity information according to the aligned two angular velocity information Delay time information between two different sensors.
在其他实施例中,所述对齐模块302,用于在所述两个不同的传感器均为陀螺式传感器的情况下,对获得的所述两个陀螺式传感器各自采集的角速度信息中的至少之一进行插值处理,以对齐所述两个角速度信息。In other embodiments, the alignment module 302 is configured to perform at least one of the obtained angular velocity information collected by the two gyroscopic sensors when the two different sensors are both gyroscopic sensors. One performs interpolation processing to align the two angular velocity information.
在其他实施例中,所述对齐模块302,用于在所述两个不同的传感器均为位姿式传感器的情况下,对获得的所述两个位姿式传感器各自采集的位姿旋转矩阵信息中的至少之一进行插值处理,以对齐所述两个角速度信息。In other embodiments, the alignment module 302 is configured to, in a case where the two different sensors are both pose sensors, perform a pose rotation matrix for each of the obtained two pose sensors. At least one of the information is subjected to interpolation processing to align the two angular velocity information.
在其他实施例中,所述对齐模块302,用于在所述两个不同的传感器分别为位姿式传感器和陀螺式传感器的情况下,对获得的所述位姿式传感器采集的位姿旋转矩阵信息进行插值处理,以对齐所述两个角速度信息。In other embodiments, the alignment module 302 is configured to rotate the acquired pose collected by the pose sensor when the two different sensors are a pose sensor and a gyro sensor. The matrix information undergoes interpolation processing to align the two angular velocity information.
在其他实施例中,时间同步处理装置300还包括:第二获取模块304,用于通过所述对齐模块302对所述两个角速度信息进行对齐处理,确定所述两个不同的传感器之间的外参,所述外参包括所述两个不同的传感器各自对应的不同坐标轴之间的旋转参数和所述两个不同的传感器之间的误差参数。In other embodiments, the time synchronization processing device 300 further includes: a second acquisition module 304, configured to perform alignment processing on the two angular velocity information through the alignment module 302 to determine the difference between the two different sensors The external parameters include rotation parameters between different coordinate axes corresponding to the two different sensors and error parameters between the two different sensors.
在其他实施例中,时间同步处理装置300还包括:存储模块305,用于存储所述延时时 间信息;In other embodiments, the time synchronization processing device 300 further includes: a storage module 305, configured to store the delay time information;
所述同步模块,用于在所述电子设备处于非运动状态的情况下,根据所述存储模块305存储的所述延时时间信息,对所述两个不同的传感器各自的测量结果进行时间同步处理。The synchronization module is configured to perform time synchronization on the respective measurement results of the two different sensors according to the delay time information stored by the storage module 305 when the electronic device is in a non-motion state deal with.
在其他实施例中,所述对齐模块302,用于根据所述对齐后的两个角速度信息,确定所述两个不同的传感器在不同时刻对应的子误差方程;对所述不同时刻对应的子误差方程求和,得到最终误差方程;对所述最终误差方程进行最小值处理,得到所述延时时间信息。In other embodiments, the alignment module 302 is configured to determine the sub-error equations corresponding to the two different sensors at different times according to the two aligned angular velocity information; The error equations are summed to obtain the final error equation; the minimum value processing is performed on the final error equation to obtain the delay time information.
在其他实施例中,所述对齐模块302,用于对所述最终误差方程进行非线性化处理,得到第一最小化方程;对所述第一最小化方程的求解,直到满足预设第一阈值的情况下,获取所述第一最小化方程中的所述延时时间信息。In other embodiments, the alignment module 302 is configured to perform nonlinear processing on the final error equation to obtain a first minimization equation; the first minimization equation is solved until the preset first In the case of a threshold value, the delay time information in the first minimization equation is acquired.
在其他实施例中,所述对齐模块302,用于对所述最终误差方程进行迭代最近点处理,得到第二最小化方程;对所述第二最小化方程的求解,直到满足预设第二阈值的情况下,获取所述第二最小化方程中的所述延时时间信息。In other embodiments, the alignment module 302 is configured to perform iterative closest point processing on the final error equation to obtain a second minimization equation; the second minimization equation is solved until the preset second In the case of a threshold value, the delay time information in the second minimization equation is acquired.
在其他实施例中,时间同步处理装置300还包括:In other embodiments, the time synchronization processing apparatus 300 further includes:
融合模块307,用于对同步后的测量结果进行融合处理;The fusion module 307 is used to perform fusion processing on the synchronized measurement results;
执行模块308,用于根据融合处理的测量结果执行以下至少之一的操作:定位处理、测距处理、电子设备所在场景的目标检测、生成或更新地图。The execution module 308 is configured to perform at least one of the following operations according to the measurement result of the fusion processing: positioning processing, ranging processing, target detection of the scene where the electronic device is located, and generating or updating a map.
需要说明的是:上述实施例提供的时间同步处理装置在进行时间同步处理时,仅以上述各程序模块的划分进行举例说明,实际应用中,可以根据需要而将上述处理分配由不同的程序模块完成,即将装置的内部结构划分成不同的程序模块,以完成以上描述的全部或者部分处理。另外,上述实施例提供的时间同步处理装置与时间同步处理方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that when the time synchronization processing device provided in the above embodiment performs time synchronization processing, only the division of the above program modules is used as an example for illustration. In actual applications, the above processing can be allocated to different program modules according to needs. Complete, that is, divide the internal structure of the device into different program modules to complete all or part of the processing described above. In addition, the time synchronization processing device provided in the foregoing embodiment and the time synchronization processing method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, and will not be repeated here.
本公开实施例还提供一种电子设备,图12为本公开实施例提供的电子设备的组成结构示意图,如图12所示,电子设备至少包括处理器21和用于存储能够在处理器上运行的计算机程序的存储器23;处理器21用于运行所述计算机程序时,执行上述实施例提供的时间同步处理方法中的步骤。The embodiment of the present disclosure also provides an electronic device. FIG. 12 is a schematic diagram of the structure of the electronic device provided by the embodiment of the disclosure. As shown in FIG. 12, the electronic device at least includes a processor 21 and a storage device capable of running on the processor. The memory 23 of the computer program; the processor 21 is used to execute the steps in the time synchronization processing method provided in the above embodiment when the computer program is running.
本实施例中用于执行上述实施例提供的时间同步处理方法中的步骤的电子设备可以与设置有两个不同的传感器的电子设备相同或不同。In this embodiment, the electronic device used to execute the steps in the time synchronization processing method provided in the foregoing embodiment may be the same or different from the electronic device provided with two different sensors.
可选地,电子设备中还可包括通信接口24,通信接口24用于获取角速度信息和位姿旋转矩阵信息。电子设备中的各个组件通过总线系统25耦合在一起。可理解,总线系统25用于实现这些组件之间的连接通信。总线系统25除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图12中将各种总线都标为总线系统25。Optionally, the electronic device may further include a communication interface 24, which is used to obtain angular velocity information and pose rotation matrix information. The various components in the electronic device are coupled together through the bus system 25. It can be understood that the bus system 25 is used to implement connection and communication between these components. In addition to the data bus, the bus system 25 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clear description, various buses are marked as the bus system 25 in FIG. 12.
可以理解,存储器23可以是易失性存储器或非易失性存储器,也可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(ROM,Read Only Memory)、可编程只读存储器(PROM,Programmable Read-Only Memory)、可擦除可编程只读存储器(EPROM,Erasable Programmable Read-Only Memory)、电可擦除可编程只读存储器(EEPROM,Electrically Erasable Programmable Read-Only Memory)、磁性随机存取存储器(FRAM,ferromagnetic random access memory)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(CD-ROM,Compact Disc Read-Only Memory);磁表面存储器可以是磁盘存储器或磁带存储器。易失性存储器可以是随机存取存储器(RAM,Random Access Memory),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(SRAM,Static Random Access Memory)、同步静态随机存取存储器(SSRAM,Synchronous Static Random Access Memory)、动态随机存取存储器(DRAM,Dynamic Random Access Memory)、同步动态随机存取存储器(SDRAM,Synchronous Dynamic Random Access Memory)、双倍数据速率同步动态随机存取存储器(DDRSDRAM,Double Data Rate Synchronous Dynamic Random Access Memory)、增强型同步动态随机存取存储器(ESDRAM,Enhanced Synchronous Dynamic Random Access Memory)、同步连接动态随机存取存储器(SLDRAM,SyncLink Dynamic Random Access Memory)、直接内存总线随机存 取存储器(DRRAM,Direct Rambus Random Access Memory)。本发明实施例描述的存储器23旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 23 may be a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memory. Among them, the non-volatile memory can be a read only memory (ROM, Read Only Memory), a programmable read only memory (PROM, Programmable Read-Only Memory), an erasable programmable read only memory (EPROM, Erasable Programmable Read- Only Memory, Electrically Erasable Programmable Read-Only Memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), magnetic random access memory (FRAM, ferromagnetic random access memory), flash memory (Flash Memory), magnetic surface memory , CD-ROM, or CD-ROM (Compact Disc Read-Only Memory); magnetic surface memory can be magnetic disk storage or tape storage. The volatile memory may be random access memory (RAM, Random Access Memory), which is used as an external cache. By way of exemplary but not restrictive description, many forms of RAM are available, such as static random access memory (SRAM, Static Random Access Memory), synchronous static random access memory (SSRAM, Synchronous Static Random Access Memory), and dynamic random access Memory (DRAM, Dynamic Random Access Memory), Synchronous Dynamic Random Access Memory (SDRAM, Synchronous Dynamic Random Access Memory), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM, Double Data Rate Synchronous Dynamic Random Access Memory), enhanced -Type synchronous dynamic random access memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), synchronous connection dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), direct memory bus random access memory (DRRAM, Direct Rambus Random Access Memory) ). The memory 23 described in the embodiment of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.
上述本发明实施例揭示的方法可以应用于处理器21中,或者由处理器21实现。处理器21可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器21中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器21可以是通用处理器、数字信号处理器(DSP,Digital Signal Processor),或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。处理器21可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本发明实施例所公开的方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于存储器23,处理器21读取存储器23中的信息,结合其硬件完成前述方法的步骤。The method disclosed in the foregoing embodiment of the present invention may be applied to the processor 21 or implemented by the processor 21. The processor 21 may be an integrated circuit chip with signal processing capability. In the implementation process, the steps of the foregoing method can be completed by an integrated logic circuit of hardware in the processor 21 or instructions in the form of software. The aforementioned processor 21 may be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 21 may implement or execute various methods, steps, and logical block diagrams disclosed in the embodiments of the present invention. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of the present invention can be directly embodied as being executed and completed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, and the storage medium is located in the memory 23. The processor 21 reads the information in the memory 23 and completes the steps of the foregoing method in combination with its hardware.
本公开实施例所提供的几个方法或者设备实施例中所揭露的特征,在不导致执行逻辑错误或悖论的前提下可以任意组合,得到新的方法实施例或者设备实施例。The features disclosed in the several methods or device embodiments provided in the embodiments of the present disclosure can be combined arbitrarily without causing execution logic errors or paradoxes to obtain new method embodiments or device embodiments.
基于前述实施例,本公开实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被上述处理器执行时实现上述实施例中的时间同步处理中步骤。Based on the foregoing embodiment, the embodiment of the present disclosure provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by the foregoing processor, the steps in the time synchronization processing in the foregoing embodiment are implemented.
在本公开所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided in the present disclosure, it should be understood that the disclosed device and method may be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, such as: multiple units or components can be combined, or It can be integrated into another system, or some features can be ignored or not implemented. In addition, the coupling, or direct coupling, or communication connection between the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical, mechanical or other forms of.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本公开各实施例中的各功能单元可以全部集成在一个处理单元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, the functional units in the embodiments of the present disclosure can be all integrated into one processing unit, or each unit can be individually used as a unit, or two or more units can be integrated into one unit; The unit can be implemented in the form of hardware, or in the form of hardware plus software functional units.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。A person of ordinary skill in the art can understand that all or part of the steps in the above method embodiments can be implemented by a program instructing relevant hardware. The foregoing program can be stored in a computer readable storage medium. When the program is executed, it is executed. Including the steps of the foregoing method embodiment; and the foregoing storage medium includes: various media that can store program codes, such as a mobile storage device, ROM, RAM, magnetic disk, or optical disk.
或者,本公开上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本公开实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本公开各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Alternatively, if the aforementioned integrated unit of the present disclosure is implemented in the form of a software function module and sold or used as an independent product, it may also be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present disclosure can be embodied in the form of a software product in essence or a part that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for A computer device (which may be a personal computer, a server, or a network device, etc.) is allowed to execute all or part of the methods described in the various embodiments of the present disclosure. The aforementioned storage media include: removable storage devices, ROM, RAM, magnetic disks or optical disks and other media that can store program codes.
以上所述,仅为本公开的具体实施方式,但本公开的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应以所述权利要求的保护范围为准。The above are only specific implementations of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present disclosure. It should be covered within the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.

Claims (28)

  1. 一种时间同步处理方法,所述方法包括:A time synchronization processing method, the method includes:
    分别获得两个不同的传感器采集的角速度信息;所述角速度信息为电子设备发生旋转运动时的角速度信息,所述两个不同的传感器均设置在所述电子设备上且刚性连接;Obtaining angular velocity information collected by two different sensors; the angular velocity information is angular velocity information when the electronic device rotates, and the two different sensors are both arranged on the electronic device and rigidly connected;
    对获得的两个角速度信息进行对齐处理,确定所述两个不同的传感器之间的延时时间信息;Aligning the obtained two angular velocity information, and determining the delay time information between the two different sensors;
    根据所述延时时间信息对所述两个不同的传感器各自的测量结果进行时间同步处理。Perform time synchronization processing on the respective measurement results of the two different sensors according to the delay time information.
  2. 根据权利要求1所述的方法,其中,所述两个不同的传感器中的至少之一为位姿式传感器;所述分别获得两个不同的传感器采集的角速度信息,包括:The method according to claim 1, wherein at least one of the two different sensors is a pose sensor; the obtaining the angular velocity information collected by the two different sensors separately comprises:
    获得所述位姿式传感器采集的位姿旋转矩阵信息;通过所述位姿旋转矩阵信息确定所述电子设备发生旋转运动时的角速度信息。The pose rotation matrix information collected by the pose sensor is obtained; the angular velocity information when the electronic device rotates is determined by the pose rotation matrix information.
  3. 根据权利要求1或2所述的方法,其中,所述两个不同的传感器中的至少之一为陀螺式传感器;所述分别获得两个不同的传感器采集的角速度信息,包括:The method according to claim 1 or 2, wherein at least one of the two different sensors is a gyro sensor; the obtaining the angular velocity information collected by the two different sensors separately includes:
    获得所述陀螺式传感器采集的角速度信息。Obtain the angular velocity information collected by the gyro sensor.
  4. 根据权利要求1所述的方法,其中,所述对获得的两个角速度信息进行对齐处理,确定所述两个不同的传感器之间的延时时间信息,包括:The method according to claim 1, wherein the aligning the obtained two angular velocity information to determine the delay time information between the two different sensors comprises:
    对所述两个角速度信息中的至少之一进行插值处理,以对齐所述两个角速度信息;Performing interpolation processing on at least one of the two angular velocity information to align the two angular velocity information;
    根据对齐后的两个角速度信息,确定所述两个不同的传感器之间的延时时间信息。Determine the delay time information between the two different sensors according to the aligned two angular velocity information.
  5. 根据权利要求4所述的方法,其中,所述对所述两个角速度信息中的至少之一进行插值处理,包括:The method according to claim 4, wherein the performing interpolation processing on at least one of the two angular velocity information comprises:
    在所述两个不同的传感器均为陀螺式传感器的情况下,对获得的所述两个陀螺式传感器各自采集的角速度信息中的至少之一进行插值处理。In the case where the two different sensors are both gyro sensors, interpolation processing is performed on at least one of the obtained angular velocity information collected by the two gyro sensors.
  6. 根据权利要求4所述的方法,其中,所述对所述两个角速度信息中的至少之一进行插值处理,包括:The method according to claim 4, wherein the performing interpolation processing on at least one of the two angular velocity information comprises:
    在所述两个不同的传感器均为位姿式传感器的情况下,对获得的所述两个位姿式传感器各自采集的位姿旋转矩阵信息中的至少之一进行插值处理。In the case where the two different sensors are both pose sensors, interpolation processing is performed on at least one of the obtained pose rotation matrix information collected by the two pose sensors.
  7. 根据权利要求4所述的方法,其中,所述对所述两个角速度信息中的至少之一进行插值处理,包括:The method according to claim 4, wherein the performing interpolation processing on at least one of the two angular velocity information comprises:
    在所述两个不同的传感器分别为位姿式传感器和陀螺式传感器的情况下,对获得的所述位姿式传感器采集的位姿旋转矩阵信息进行插值处理。In the case where the two different sensors are a pose sensor and a gyro sensor, interpolation processing is performed on the obtained pose rotation matrix information collected by the pose sensor.
  8. 根据权利要求1-7任一项所述的方法,其中,在对获得的两个角速度信息进行对齐处理,确定所述两个不同的传感器之间的延时时间信息之后,所述方法还包括:The method according to any one of claims 1-7, wherein, after aligning the obtained two angular velocity information and determining the delay time information between the two different sensors, the method further comprises :
    通过对所述两个角速度信息进行对齐处理,确定所述两个不同的传感器之间的外参,所述外参包括所述两个不同的传感器各自对应的不同坐标轴之间的旋转参数和所述两个不同的传感器之间的误差参数。By aligning the two angular velocity information, the external parameters between the two different sensors are determined, and the external parameters include the rotation parameters and the rotation parameters between the different coordinate axes corresponding to the two different sensors. The error parameter between the two different sensors.
  9. 根据权利要求1-8任一项所述的方法,其中,在对获得的两个角速度信息进行对齐处理,确定所述两个不同的传感器之间的延时时间信息之后,所述方法还包括:The method according to any one of claims 1-8, wherein, after aligning the obtained two angular velocity information and determining the delay time information between the two different sensors, the method further comprises :
    存储所述延时时间信息;Storing the delay time information;
    在所述电子设备处于非运动状态的情况下,根据存储的所述延时时间信息,对所述两个不同的传感器各自的测量结果进行时间同步处理。When the electronic device is in a non-moving state, time synchronization processing is performed on the respective measurement results of the two different sensors according to the stored delay time information.
  10. 根据权利要求4所述的方法,其中,所述根据对齐后的两个角速度信息,确定 所述两个不同的传感器之间的延时时间信息,包括:The method according to claim 4, wherein the determining the delay time information between the two different sensors according to the aligned two angular velocity information includes:
    根据所述对齐后的两个角速度信息,确定所述两个不同的传感器在不同时刻对应的子误差方程;Determine the sub-error equations corresponding to the two different sensors at different times according to the two aligned angular velocity information;
    对所述不同时刻对应的子误差方程求和,得到最终误差方程;Sum the sub-error equations corresponding to the different times to obtain the final error equation;
    对所述最终误差方程进行最小值处理,得到所述延时时间信息。Perform minimum processing on the final error equation to obtain the delay time information.
  11. 根据权利要求10所述的方法,其中,所述对所述最终误差方程进行最小值处理,得到所述延时时间信息,包括:The method according to claim 10, wherein said performing minimum processing on said final error equation to obtain said delay time information comprises:
    对所述最终误差方程进行非线性化处理,得到第一最小化方程;Performing non-linear processing on the final error equation to obtain a first minimization equation;
    对所述第一最小化方程的求解,直到满足预设第一阈值的情况下,获取所述第一最小化方程中的所述延时时间信息。The first minimization equation is solved until the preset first threshold is satisfied, and the delay time information in the first minimization equation is acquired.
  12. 根据权利要求10所述的方法,其中,所述对所述最终误差方程进行最小值处理,得到所述延时时间信息,包括:The method according to claim 10, wherein said performing minimum processing on said final error equation to obtain said delay time information comprises:
    对所述最终误差方程进行迭代最近点处理,得到第二最小化方程;Performing iterative nearest point processing on the final error equation to obtain a second minimization equation;
    对所述第二最小化方程的求解,直到满足预设第二阈值的情况下,获取所述第二最小化方程中的所述延时时间信息。The second minimization equation is solved until the preset second threshold is satisfied, and the delay time information in the second minimization equation is acquired.
  13. 根据权利要求1-12任一项所述的方法,其中,在所述根据所述时间延迟信息对所述两个不同的传感器各自的测量结果进行时间同步处理之后,所述方法还包括:The method according to any one of claims 1-12, wherein after the time synchronization processing is performed on the respective measurement results of the two different sensors according to the time delay information, the method further comprises:
    对同步后的测量结果进行融合处理;Perform fusion processing on the synchronized measurement results;
    根据融合处理的测量结果执行以下至少之一的操作:定位处理、测距处理、电子设备所在场景的目标检测、生成或更新地图。Perform at least one of the following operations according to the measurement result of the fusion processing: positioning processing, ranging processing, target detection of the scene where the electronic device is located, and generating or updating a map.
  14. 一种时间同步处理装置,所述装置包括第一获取模块、对齐模块和同步模块,其中,A time synchronization processing device, the device includes a first acquisition module, an alignment module, and a synchronization module, wherein:
    所述第一获取模块,用于分别获得两个不同的传感器采集的角速度信息;所述角速度信息为电子设备发生旋转运动时的角速度信息,所述两个不同的传感器均设置在所述电子设备上且刚性连接;The first acquisition module is configured to obtain angular velocity information collected by two different sensors; the angular velocity information is angular velocity information when the electronic device rotates, and the two different sensors are both set on the electronic device Upper and rigid connection;
    所述对齐模块,用于对获得的两个角速度信息进行对齐处理,确定所述两个不同的传感器之间的延时时间信息;The alignment module is configured to perform alignment processing on the two obtained angular velocity information, and determine the delay time information between the two different sensors;
    所述同步模块,用于根据所述延时时间信息对所述两个不同的传感器各自的测量结果进行时间同步处理。The synchronization module is configured to perform time synchronization processing on the respective measurement results of the two different sensors according to the delay time information.
  15. 根据权利要求14所述的装置,其中,所述第一获取模块,用于获得位姿式传感器采集的位姿旋转矩阵信息;通过所述位姿旋转矩阵信息确定所述电子设备发生旋转运动时的角速度信息,其中,所述两个不同的传感器中的至少之一为位姿式传感器。The apparatus according to claim 14, wherein the first acquisition module is configured to acquire the pose rotation matrix information collected by the pose sensor; and determine when the electronic device rotates according to the pose rotation matrix information Angular velocity information, wherein at least one of the two different sensors is a pose sensor.
  16. 根据权利要求14或15所述的装置,其中,所述第一获取模块,用于获得陀螺式传感器采集的角速度信息,其中,所述两个不同的传感器中的至少之一为陀螺式传感器。The device according to claim 14 or 15, wherein the first acquisition module is configured to acquire angular velocity information collected by a gyro sensor, wherein at least one of the two different sensors is a gyro sensor.
  17. 根据权利要求14所述的装置,其中,所述对齐模块,用于对所述两个角速度信息中的至少之一进行插值处理,以对齐所述两个角速度信息;根据对齐后的两个角速度信息,确定所述两个不同的传感器之间的延时时间信息。The device according to claim 14, wherein the alignment module is configured to perform interpolation processing on at least one of the two angular velocity information to align the two angular velocity information; according to the aligned two angular velocity information Information to determine the delay time information between the two different sensors.
  18. 根据权利要求17所述的装置,其中,所述对齐模块,用于在所述两个不同的传感器均为陀螺式传感器的情况下,对获得的所述两个陀螺式传感器各自采集的角速度信息中的至少之一进行插值处理,以对齐所述两个角速度信息。The device according to claim 17, wherein the alignment module is configured to compare the obtained angular velocity information collected by the two gyroscopic sensors when the two different sensors are both gyroscopic sensors. At least one of them performs interpolation processing to align the two angular velocity information.
  19. 根据权利要求17所述的装置,其中,所述对齐模块,用于在所述两个不同的传感器均为位姿式传感器的情况下,对获得的所述两个位姿式传感器各自采集的位姿旋转矩阵信息中的至少之一进行插值处理,以对齐所述两个角速度信息。The device according to claim 17, wherein the alignment module is configured to, in the case that the two different sensors are both pose sensors, collect data collected by the two obtained pose sensors. At least one of the pose rotation matrix information undergoes interpolation processing to align the two angular velocity information.
  20. 根据权利要求17所述的装置,其中,所述对齐模块,用于在所述两个不同的传感器分别为位姿式传感器和陀螺式传感器的情况下,对获得的所述位姿式传感器采集的位姿旋转矩阵信息进行插值处理,以对齐所述两个角速度信息。The device according to claim 17, wherein the alignment module is configured to collect the obtained pose sensor when the two different sensors are a pose sensor and a gyro sensor. Perform interpolation processing on the posture rotation matrix information to align the two angular velocity information.
  21. 根据权利要求14-20任一项所述的装置,其中,所述装置还包括:The device according to any one of claims 14-20, wherein the device further comprises:
    第二获取模块,用于通过所述对齐模块对所述两个角速度信息进行对齐处理,确定所述两个不同的传感器之间的外参,所述外参包括所述两个不同的传感器各自对应的不同坐标轴之间的旋转参数和所述两个不同的传感器之间的误差参数。The second acquisition module is configured to align the two angular velocity information through the alignment module, and determine the external parameters between the two different sensors, and the external parameters include each of the two different sensors. Corresponding rotation parameters between different coordinate axes and error parameters between the two different sensors.
  22. 根据权利要求14-21任一项所述的装置,其中,所述装置还包括:The device according to any one of claims 14-21, wherein the device further comprises:
    存储模块,用于存储所述延时时间信息;A storage module for storing the delay time information;
    所述同步模块,用于在所述电子设备处于非运动状态的情况下,根据所述存储模块存储的所述延时时间信息,对所述两个不同的传感器各自的测量结果进行时间同步处理。The synchronization module is configured to perform time synchronization processing on the respective measurement results of the two different sensors according to the delay time information stored in the storage module when the electronic device is in a non-moving state .
  23. 根据权利要求17所述的装置,其中,所述对齐模块,用于根据所述对齐后的两个角速度信息,确定所述两个不同的传感器在不同时刻对应的子误差方程;对所述不同时刻对应的子误差方程求和,得到最终误差方程;对所述最终误差方程进行最小值处理,得到所述延时时间信息。The device according to claim 17, wherein the alignment module is configured to determine the sub-error equations corresponding to the two different sensors at different moments according to the aligned two angular velocity information; The sub-error equations corresponding to the moments are summed to obtain the final error equation; the minimum value processing is performed on the final error equation to obtain the delay time information.
  24. 根据权利要求23所述的装置,其中,所述对齐模块,用于对所述最终误差方程进行非线性化处理,得到第一最小化方程;对所述第一最小化方程的求解,直到满足预设第一阈值的情况下,获取所述第一最小化方程中的所述延时时间信息。The device according to claim 23, wherein the alignment module is configured to perform nonlinear processing on the final error equation to obtain a first minimization equation; the first minimization equation is solved until it is satisfied When the first threshold is preset, the delay time information in the first minimization equation is acquired.
  25. 根据权利要求23所述的装置,其中,所述对齐模块,用于对所述最终误差方程进行迭代最近点处理,得到第二最小化方程;对所述第二最小化方程的求解,直到满足预设第二阈值的情况下,获取所述第二最小化方程中的所述延时时间信息。The device according to claim 23, wherein the alignment module is configured to perform iterative closest point processing on the final error equation to obtain a second minimization equation; the second minimization equation is solved until it is satisfied When the second threshold is preset, the delay time information in the second minimization equation is acquired.
  26. 根据权利要求14-25任一项所述的装置,其中,所述装置还包括:The device according to any one of claims 14-25, wherein the device further comprises:
    融合模块,用于对同步后的测量结果进行融合处理;Fusion module, used for fusion processing of synchronized measurement results;
    执行模块,用于根据融合处理的测量结果执行以下至少之一的操作:The execution module is configured to perform at least one of the following operations according to the measurement result of the fusion processing:
    定位处理、测距处理、电子设备所在场景的目标检测、生成或更新地图。Positioning processing, ranging processing, target detection of the scene where the electronic device is located, generating or updating the map.
  27. 一种电子设备,所述电子设备至少包括处理器和用于存储能够在处理器上运行的计算机程序的存储器;所述处理器用于运行所述计算机程序时,执行如权利要求1至13任一项所述的方法。An electronic device comprising at least a processor and a memory for storing a computer program that can run on the processor; when the processor is used to run the computer program, it executes any one of claims 1 to 13 The method described in the item.
  28. 一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至13任一项所述的方法。A computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method according to any one of claims 1 to 13 is implemented.
PCT/CN2020/076836 2019-06-21 2020-02-26 Time synchronization processing method, electronic apparatus, and storage medium WO2020253260A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020217017070A KR20210084622A (en) 2019-06-21 2020-02-26 Time synchronization processing methods, electronic devices and storage media
JP2021531851A JP2022510418A (en) 2019-06-21 2020-02-26 Time synchronization processing method, electronic devices and storage media

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910545218.8A CN112113582A (en) 2019-06-21 2019-06-21 Time synchronization processing method, electronic device, and storage medium
CN201910545218.8 2019-06-21

Publications (1)

Publication Number Publication Date
WO2020253260A1 true WO2020253260A1 (en) 2020-12-24

Family

ID=73796638

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/076836 WO2020253260A1 (en) 2019-06-21 2020-02-26 Time synchronization processing method, electronic apparatus, and storage medium

Country Status (4)

Country Link
JP (1) JP2022510418A (en)
KR (1) KR20210084622A (en)
CN (1) CN112113582A (en)
WO (1) WO2020253260A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113310505A (en) * 2021-06-15 2021-08-27 苏州挚途科技有限公司 External parameter calibration method and device of sensor system and electronic equipment
CN113591015A (en) * 2021-07-30 2021-11-02 北京小狗吸尘器集团股份有限公司 Time delay calculation method and device, storage medium and electronic equipment
CN113848696A (en) * 2021-09-15 2021-12-28 北京易航远智科技有限公司 Multi-sensor time synchronization method based on position information
CN114217665A (en) * 2021-12-21 2022-03-22 清华大学 Camera and laser radar time synchronization method, device and storage medium
CN115235527A (en) * 2022-07-20 2022-10-25 上海木蚁机器人科技有限公司 Sensor external parameter calibration method and device and electronic equipment
CN115451932A (en) * 2022-09-16 2022-12-09 湖南航天机电设备与特种材料研究所 Multichannel gyroscope data synchronous acquisition and calculation method and system
CN115979277A (en) * 2023-02-22 2023-04-18 广州导远电子科技有限公司 Time synchronization method, device, electronic equipment and computer readable storage medium
CN117034201A (en) * 2023-10-08 2023-11-10 东营航空产业技术研究院 Multi-source real-time data fusion method

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113177440A (en) * 2021-04-09 2021-07-27 深圳市商汤科技有限公司 Image synchronization method and device, electronic equipment and computer storage medium
CN113610136A (en) * 2021-07-30 2021-11-05 深圳元戎启行科技有限公司 Sensor data synchronization method and device, computer equipment and storage medium
CN114413878B (en) * 2021-12-24 2024-02-13 苏州浪潮智能科技有限公司 Time calibration system, method, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103616710A (en) * 2013-12-17 2014-03-05 靳文瑞 Multi-sensor combined navigation time synchronizing system based on field programmable gate array (FPGA)
CN104009833A (en) * 2013-02-26 2014-08-27 赫克斯冈技术中心 Sensor synchronization method and sensor measuring system appertaining thereto
CN104501817A (en) * 2014-11-24 2015-04-08 李青花 Error elimination-based vehicle navigation system
CN108680196A (en) * 2018-04-28 2018-10-19 远形时空科技(北京)有限公司 A kind of time delay adjustment method, system and computer-readable medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002090151A (en) * 2000-09-14 2002-03-27 Japan Aviation Electronics Industry Ltd Sensor abnormality determination circuit and steering control device
CN107728617B (en) * 2017-09-27 2021-07-06 速感科技(北京)有限公司 Multi-view online calibration method, mobile robot and system
CN108871311B (en) * 2018-05-31 2021-01-19 北京字节跳动网络技术有限公司 Pose determination method and device
CN109029433B (en) * 2018-06-28 2020-12-11 东南大学 Method for calibrating external parameters and time sequence based on vision and inertial navigation fusion SLAM on mobile platform
CN109186596B (en) * 2018-08-14 2020-11-10 深圳清华大学研究院 IMU measurement data generation method, system, computer device and readable storage medium
CN109506617B (en) * 2018-12-28 2021-08-10 歌尔科技有限公司 Sensor data processing method, storage medium, and electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104009833A (en) * 2013-02-26 2014-08-27 赫克斯冈技术中心 Sensor synchronization method and sensor measuring system appertaining thereto
CN103616710A (en) * 2013-12-17 2014-03-05 靳文瑞 Multi-sensor combined navigation time synchronizing system based on field programmable gate array (FPGA)
CN104501817A (en) * 2014-11-24 2015-04-08 李青花 Error elimination-based vehicle navigation system
CN108680196A (en) * 2018-04-28 2018-10-19 远形时空科技(北京)有限公司 A kind of time delay adjustment method, system and computer-readable medium

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113310505A (en) * 2021-06-15 2021-08-27 苏州挚途科技有限公司 External parameter calibration method and device of sensor system and electronic equipment
CN113310505B (en) * 2021-06-15 2024-04-09 苏州挚途科技有限公司 External parameter calibration method and device of sensor system and electronic equipment
CN113591015A (en) * 2021-07-30 2021-11-02 北京小狗吸尘器集团股份有限公司 Time delay calculation method and device, storage medium and electronic equipment
CN113848696A (en) * 2021-09-15 2021-12-28 北京易航远智科技有限公司 Multi-sensor time synchronization method based on position information
CN113848696B (en) * 2021-09-15 2022-09-16 北京易航远智科技有限公司 Multi-sensor time synchronization method based on position information
CN114217665A (en) * 2021-12-21 2022-03-22 清华大学 Camera and laser radar time synchronization method, device and storage medium
CN115235527A (en) * 2022-07-20 2022-10-25 上海木蚁机器人科技有限公司 Sensor external parameter calibration method and device and electronic equipment
CN115451932A (en) * 2022-09-16 2022-12-09 湖南航天机电设备与特种材料研究所 Multichannel gyroscope data synchronous acquisition and calculation method and system
CN115451932B (en) * 2022-09-16 2024-05-24 湖南航天机电设备与特种材料研究所 Multichannel gyroscope data synchronous acquisition and calculation method and system
CN115979277A (en) * 2023-02-22 2023-04-18 广州导远电子科技有限公司 Time synchronization method, device, electronic equipment and computer readable storage medium
CN115979277B (en) * 2023-02-22 2023-06-02 广州导远电子科技有限公司 Time synchronization method, apparatus, electronic device, and computer-readable storage medium
CN117034201A (en) * 2023-10-08 2023-11-10 东营航空产业技术研究院 Multi-source real-time data fusion method

Also Published As

Publication number Publication date
JP2022510418A (en) 2022-01-26
CN112113582A (en) 2020-12-22
KR20210084622A (en) 2021-07-07

Similar Documents

Publication Publication Date Title
WO2020253260A1 (en) Time synchronization processing method, electronic apparatus, and storage medium
CN111156998B (en) Mobile robot positioning method based on RGB-D camera and IMU information fusion
Qin et al. Vins-mono: A robust and versatile monocular visual-inertial state estimator
Heng et al. Self-calibration and visual slam with a multi-camera system on a micro aerial vehicle
CN106803271B (en) Camera calibration method and device for visual navigation unmanned aerial vehicle
Schmid et al. Autonomous vision‐based micro air vehicle for indoor and outdoor navigation
US11205283B2 (en) Camera auto-calibration with gyroscope
US9243916B2 (en) Observability-constrained vision-aided inertial navigation
CN110207714B (en) Method for determining vehicle pose, vehicle-mounted system and vehicle
US10322819B2 (en) Autonomous system for taking moving images from a drone, with target tracking and improved target location
US20210183100A1 (en) Data processing method and apparatus
CN108981687B (en) Indoor positioning method with vision and inertia integration
CN106767785B (en) Navigation method and device of double-loop unmanned aerial vehicle
US20180075614A1 (en) Method of Depth Estimation Using a Camera and Inertial Sensor
US20220051031A1 (en) Moving object tracking method and apparatus
CN112116651B (en) Ground target positioning method and system based on monocular vision of unmanned aerial vehicle
Zhang et al. Vision-aided localization for ground robots
KR101985344B1 (en) Sliding windows based structure-less localization method using inertial and single optical sensor, recording medium and device for performing the method
WO2019191288A1 (en) Direct sparse visual-inertial odometry using dynamic marginalization
WO2021081774A1 (en) Parameter optimization method and apparatus, control device, and aircraft
CN110824453A (en) Unmanned aerial vehicle target motion estimation method based on image tracking and laser ranging
CN113551665A (en) High dynamic motion state sensing system and sensing method for motion carrier
Hinzmann et al. Flexible stereo: constrained, non-rigid, wide-baseline stereo vision for fixed-wing aerial platforms
WO2020019175A1 (en) Image processing method and apparatus, and photographing device and unmanned aerial vehicle
CN110503684A (en) Camera position and orientation estimation method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20827563

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021531851

Country of ref document: JP

Kind code of ref document: A

Ref document number: 20217017070

Country of ref document: KR

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20827563

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 25-05-2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20827563

Country of ref document: EP

Kind code of ref document: A1