WO2020154980A1 - Method for calibrating external parameters of detection device, data processing device and detection system - Google Patents

Method for calibrating external parameters of detection device, data processing device and detection system Download PDF

Info

Publication number
WO2020154980A1
WO2020154980A1 PCT/CN2019/073990 CN2019073990W WO2020154980A1 WO 2020154980 A1 WO2020154980 A1 WO 2020154980A1 CN 2019073990 W CN2019073990 W CN 2019073990W WO 2020154980 A1 WO2020154980 A1 WO 2020154980A1
Authority
WO
WIPO (PCT)
Prior art keywords
detection device
visible area
point cloud
offset parameter
movement
Prior art date
Application number
PCT/CN2019/073990
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 PCT/CN2019/073990 priority Critical patent/WO2020154980A1/en
Priority to CN201980005318.XA priority patent/CN111771140A/en
Publication of WO2020154980A1 publication Critical patent/WO2020154980A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • G01S17/02Systems using the reflection of electromagnetic waves other than radio waves
    • G01S17/06Systems determining position data of a target
    • G01S17/42Simultaneous measurement of distance and other co-ordinates
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S7/00Details of systems according to groups G01S13/00, G01S15/00, G01S17/00
    • G01S7/48Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S17/00
    • G01S7/497Means for monitoring or calibrating

Definitions

  • the invention relates to data processing technology, in particular to a method for calibrating external parameters of a detection device, a data processing device and a detection system.
  • Detection devices such as lidar can emit detection signals in different directions, and obtain depth information and reflectivity information of objects based on echoes in different directions.
  • the external parameter calibration method adopted includes indirect calibration by additionally setting a camera. In this way, the calibration process is complicated and the efficiency is low.
  • the embodiment of the present invention provides a method, a data processing device and a calibration system for a detection device parameter calibration, so as to calibrate the external parameters of the detection device with no overlap in the visible area, and improve the efficiency of the external parameter calibration.
  • an embodiment of the present invention provides a method for calibrating external parameters of a detection device, which is suitable for calibrating external parameters between a first detection device and a second detection device.
  • the first detection device and the second detection device are The visible areas of the devices do not overlap each other, the visible area of the first detection device after N moves and the visible area of the second detection device in the initial state overlap, and the N is greater than or equal to 1, and the method includes :
  • an embodiment of the present invention provides a detection data processing device, which includes at least a memory and a processor; the memory is connected to the processor through a communication bus, and is used to store computer instructions executable by the processor; The processor is used to read computer instructions from the memory to realize:
  • an embodiment of the present invention provides a detection system, including: a plurality of detection devices and the data processing device of the second aspect, the plurality of detection devices include a first detection device and a second detection device; A plurality of detection devices are installed on the same carrier, and the carrier includes a movable platform through which the detection device is driven to move.
  • the first detection device when calibrating the external parameters between the first detection device and the second detection device that do not overlap the visible areas, the first detection device is moved after N times.
  • the visible area overlaps with the visible area of the second detection device in the initial state, calculate the first offset parameter between the coordinate systems before and after the movement of the first detection device, and calculate the first detection device after N moves
  • the second offset parameter between the coordinate system of the first detection device and the coordinate system of the second detection device in the initial state, and then the first detection device and the second detection device are calculated according to the first offset parameter and the second offset parameter
  • Figure 1 is a block diagram of a detection device provided by an embodiment of the present invention.
  • FIG. 2 is a schematic structural diagram of a detection device using a coaxial optical path provided by an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a method for calibrating parameters of a detection device according to an embodiment of the present invention
  • FIG. 4 is a schematic flowchart of calculating a first offset parameter according to an embodiment of the present invention.
  • FIG. 5 is a schematic flowchart of calculating a second offset parameter according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of the relative positions of the first detection device and the second detection device provided by an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of the relative positions of the first detection device and the second detection device according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a data processing device provided by an embodiment of the present invention.
  • Fig. 9 is a schematic structural diagram of a detection system provided by an embodiment of the present invention.
  • Detection devices such as lidar can emit detection signals in different directions, and obtain depth information and reflectivity information of objects based on echoes in different directions.
  • the external parameter calibration method adopted includes indirect calibration by additionally setting a camera. In this way, the calibration process is complicated and the efficiency is low.
  • the embodiment of the present invention provides a method for calibrating the external parameters of the detection device, which is suitable for calibrating the external parameters between the detection devices (such as lidar) with non-overlapping visible areas.
  • the aforementioned detection device is used to sense external environmental information, for example, distance information, orientation information, reflection intensity information, speed information, etc. of environmental targets.
  • the detection device can detect the distance between the detection device and the detection device by measuring the time of light propagation between the detection device and the detection object, that is, the time-of-flight (TOF).
  • TOF time-of-flight
  • the detection device can also use other technologies to detect the distance from the detection device to the detection device, such as a ranging method based on phase shift measurement, or a ranging method based on frequency shift measurement. Do restrictions.
  • FIG. 1 is a block diagram of a detection device provided by an embodiment of the present invention. The working process of ranging will be described below with reference to the detection device 100 shown in FIG. 1 as an example.
  • the detection device 100 may include a transmitting circuit 110, a receiving circuit 120, a sampling circuit 130, and an arithmetic circuit 140.
  • the transmitting circuit 110 may emit a light pulse sequence (for example, a laser pulse sequence).
  • the receiving circuit 120 can receive the light pulse sequence (also called an echo signal) reflected by the detected object, and perform photoelectric conversion on the light pulse sequence to obtain an electrical signal. After processing the electrical signal, it can be output to Sampling circuit 130.
  • the sampling circuit 130 may sample the electrical signal to obtain the sampling result.
  • the arithmetic circuit 140 may determine the distance between the detection device 100 and the detected object based on the sampling result of the sampling circuit 130.
  • the detection device 100 may further include a control circuit 150, which can control other circuits, for example, can control the working time of each circuit and/or set parameters for each circuit.
  • a control circuit 150 can control other circuits, for example, can control the working time of each circuit and/or set parameters for each circuit.
  • the detection device shown in FIG. 1 includes a transmitting circuit, a receiving circuit, a sampling circuit, and an arithmetic circuit for emitting a beam for detection
  • the transmitting circuit, The number of any one of the receiving circuit, the sampling circuit, and the arithmetic circuit may also be at least two, which are used to emit at least two light beams in the same direction or in different directions; wherein, the at least two light paths may be emitted simultaneously , It can also be launched at different times.
  • the light-emitting chips in the at least two transmitting circuits are packaged in the same module.
  • each emitting circuit includes a laser emitting chip, and the laser emitting chips in the at least two emitting circuits can be packaged together and housed in the same packaging space.
  • the detection device 100 may further include a scanning module 160 for changing the propagation direction of at least one laser pulse sequence emitted by the transmitting circuit.
  • the module including the transmitting circuit 110, the receiving circuit 120, the sampling circuit 130, and the arithmetic circuit 140, or the module including the transmitting circuit 110, the receiving circuit 120, the sampling circuit 130, the arithmetic circuit 140, and the control circuit 150 may be referred to as the tester.
  • the distance measurement module 150 can be independent of other modules, for example, the scanning module 160.
  • the detection device can adopt a coaxial optical path, that is, the light beam emitted by the detection device and the reflected light beam share at least part of the optical path in the detection device.
  • a coaxial optical path that is, the light beam emitted by the detection device and the reflected light beam share at least part of the optical path in the detection device.
  • the detection device may also adopt an off-axis optical path, that is, the light beam emitted by the detection device and the reflected light beam are respectively transmitted along different optical paths in the detection device.
  • Fig. 2 shows a schematic diagram of an embodiment in which the detection device of the present invention adopts a coaxial optical path.
  • the detection device 200 includes a ranging module 210.
  • the ranging module 210 includes a transmitter 203 (which may include the above-mentioned transmitting circuit), a collimating element 204, a detector 205 (which may include the above-mentioned receiving circuit, sampling circuit, and arithmetic circuit), and an optical path. Change element 206.
  • the ranging module 210 is used to emit a light beam, receive the return light, and convert the return light into an electrical signal.
  • the transmitter 203 can be used to emit a light pulse sequence.
  • the transmitter 203 may emit a sequence of laser pulses.
  • the laser beam emitted by the transmitter 203 is a narrow-bandwidth beam with a wavelength outside the visible light range.
  • the collimating element 204 is arranged on the exit light path of the emitter, and is used to collimate the light beam emitted from the emitter 203, and collimate the light beam emitted from the emitter 203 into parallel light and output to the scanning module.
  • the collimating element is also used to condense at least a part of the return light reflected by the probe.
  • the collimating element 204 may be a collimating lens or other elements capable of collimating light beams.
  • the light path changing element 206 is used to combine the transmitting light path and the receiving light path in the detection device before the collimating element 204, so that the transmitting light path and the receiving light path can share the same collimating element, making the light path more compact.
  • the transmitter 203 and the detector 205 may use respective collimating elements, and the optical path changing element 206 may be arranged on the optical path behind the collimating element.
  • the light path changing element can use a small-area mirror to transmit The light path and the receiving light path are combined.
  • the optical path changing element may also use a reflector with a through hole, where the through hole is used to transmit the emitted light of the emitter 203 and the reflector is used to reflect the returned light to the detector 205. In this way, the shielding of the back light by the bracket of the small mirror in the case of using the small mirror can be reduced.
  • the optical path changing element deviates from the optical axis of the collimating element 204.
  • the optical path changing element may also be located on the optical axis of the collimating element 204.
  • the detection device 200 further includes a scanning module 202.
  • the scanning module 202 is placed on the exit light path of the distance measuring module 210.
  • the scanning module 202 is used to change the transmission direction of the collimated light beam 219 emitted by the collimating element 204 and project it to the external environment, and project the return light to the collimating element 204 .
  • the returned light is collected on the detector 205 via the collimating element 204.
  • the scanning module 202 may include at least one optical element for changing the propagation path of the light beam, wherein the optical element may change the propagation path of the light beam by reflecting, refracting, or diffracting the light beam.
  • the scanning module 202 includes a lens, a mirror, a prism, a galvanometer, a grating, a liquid crystal, an optical phased array (Optical Phased Array), or any combination of the foregoing optical elements.
  • at least part of the optical elements are moving.
  • a driving module is used to drive the at least part of the optical elements to move.
  • the moving optical elements can reflect, refract, or diffract the light beam to different directions at different times.
  • the multiple optical elements of the scanning module 202 may rotate or vibrate around a common axis 209, and each rotating or vibrating optical element is used to continuously change the propagation direction of the incident light beam.
  • the multiple optical elements of the scanning module 202 may rotate at different speeds or vibrate at different speeds.
  • at least part of the optical elements of the scanning module 202 may rotate at substantially the same rotation speed.
  • the multiple optical elements of the scanning module may also be rotated around different axes.
  • the multiple optical elements of the scanning module may also rotate in the same direction or in different directions; or vibrate in the same direction, or vibrate in different directions, which is not limited herein.
  • the scanning module 202 includes a first optical element 214 and a driver 216 connected to the first optical element 214.
  • the driver 216 is used to drive the first optical element 214 to rotate around the rotation axis 209 to change the first optical element 214.
  • the direction of the beam 219 is collimated.
  • the first optical element 214 projects the collimated beam 219 to different directions.
  • the angle between the direction of the collimated light beam 219 changed by the first optical element and the rotation axis 109 changes with the rotation of the first optical element 214.
  • the first optical element 214 includes a pair of opposed non-parallel surfaces through which the collimated light beam 219 passes.
  • the first optical element 214 includes a prism whose thickness varies in at least one radial direction.
  • the first optical element 214 includes a wedge-angle prism, and the collimated beam 219 is refracted.
  • the scanning module 202 further includes a second optical element 215, the second optical element 215 rotates around the rotation axis 209, and the rotation speed of the second optical element 215 is different from the rotation speed of the first optical element 214.
  • the second optical element 215 is used to change the direction of the light beam projected by the first optical element 214.
  • the second optical element 215 is connected to another driver 217, and the driver 217 drives the second optical element 215 to rotate.
  • the first optical element 214 and the second optical element 215 can be driven by the same or different drivers, so that the rotation speed and/or rotation of the first optical element 214 and the second optical element 215 are different, so as to project the collimated light beam 219 to the outside space.
  • the controller 218 controls the drivers 216 and 217 to drive the first optical element 214 and the second optical element 215, respectively.
  • the rotational speeds of the first optical element 214 and the second optical element 215 can be determined according to the expected scanning area and pattern in actual applications.
  • the drivers 216 and 217 may include motors or other drivers.
  • the second optical element 215 includes a pair of opposite non-parallel surfaces through which the light beam passes. In one embodiment, the second optical element 215 includes a prism whose thickness varies in at least one radial direction. In one embodiment, the second optical element 215 includes a wedge prism.
  • the scanning module 202 further includes a third optical element (not shown) and a driver for driving the third optical element to move.
  • the third optical element includes a pair of opposite non-parallel surfaces, and the light beam passes through the pair of surfaces.
  • the third optical element includes a prism whose thickness varies in at least one radial direction.
  • the third optical element includes a wedge prism. At least two of the first, second, and third optical elements rotate at different rotation speeds and/or rotation directions.
  • each optical element in the scanning module 202 can project light to different directions, such as directions 211 and 213, so that the space around the detection device 200 is scanned.
  • directions 211 and 213 the directions that the space around the detection device 200 is scanned.
  • the return light 212 reflected by the probe 201 is incident on the collimating element 204 after passing through the scanning module 202.
  • the detector 205 and the transmitter 203 are placed on the same side of the collimating element 204, and the detector 205 is used to convert at least part of the return light passing through the collimating element 204 into an electrical signal.
  • each optical element is coated with an anti-reflection coating.
  • the thickness of the antireflection film is equal to or close to the wavelength of the light beam emitted by the emitter 203, which can increase the intensity of the transmitted light beam.
  • a filter layer is plated on the surface of an element located on the beam propagation path in the detection device, or a filter is provided on the beam propagation path, for transmitting at least the wavelength band of the beam emitted by the transmitter, Reflect other bands to reduce the noise caused by ambient light to the receiver.
  • the transmitter 203 may include a laser diode through which nanosecond laser pulses are emitted.
  • the laser pulse receiving time can be determined, for example, the laser pulse receiving time can be determined by detecting the rising edge time and/or the falling edge time of the electrical signal pulse. In this way, the detection device 200 can use the pulse receiving time information and the pulse sending time information to calculate the TOF, so as to determine the distance between the detection object 201 and the detection device 200.
  • the distance and orientation detected by the detection device 200 can be used for remote sensing, obstacle avoidance, surveying and mapping, modeling, navigation, and the like.
  • the detection device of the embodiment of the present invention can be applied to a movable platform, and the detection device can be installed on the platform body of the movable platform.
  • a movable platform with a detection device can measure the external environment, for example, measuring the distance between the movable platform and an obstacle for obstacle avoidance and other purposes, and for two-dimensional or three-dimensional mapping of the external environment.
  • the movable platform includes at least one of an unmanned aerial vehicle, a car, a remote control car, a robot, and a camera.
  • the platform body When the detection device is applied to an unmanned aerial vehicle, the platform body is the fuselage of the unmanned aerial vehicle.
  • the platform body When the detection device is applied to a car, the platform body is the body of the car.
  • the car can be a self-driving car or a semi-self-driving car, and there is no restriction here.
  • the detection device When the detection device is applied to a remote control car, the platform body is the body of the remote control car.
  • the platform body When the detection device is applied to a robot, the platform body is a robot.
  • the detection device When the detection device is applied to a camera, the platform body is the camera itself.
  • Fig. 3 is a schematic flowchart of a method for calibrating external parameters of a detection device according to an embodiment of the present invention.
  • the method provided by the embodiment of the present invention is suitable for calibrating the external parameters between two detection devices.
  • the two detection devices as an example: the first detection device and the second detection device, the first detection device and The visible areas of the second detection device do not overlap each other.
  • the visible area of the first detection device after N moves and the visible area of the second detection device in the initial state overlap.
  • the N is greater than or equal to 1, refer to the figure As shown in 3, the method includes the following steps S101-S103:
  • the above-mentioned first offset parameter is a mutual conversion relationship parameter between the coordinate system before and after the movement of the first detection device, and is used to characterize the relative position relationship before and after the movement of the first detection device.
  • Lidar is a perceptual sensor that can obtain three-dimensional information of the scene.
  • the basic principle is to actively emit laser pulse signals to the detected object and receive the reflected laser pulse signals.
  • Calculate the depth information of the measured object obtain the angle information of the measured object relative to the lidar according to the emission direction of the lidar; combine the aforementioned depth information and angle information to obtain a large number of detection points, the data set of the detection points is called a point cloud
  • the three-dimensional information of the measured object relative to the lidar can be reconstructed.
  • the method of calculating the first offset parameter between the coordinate systems before and after each movement of the first detection device includes:
  • each time the first detection device moves it is set to satisfy the overlap between the visible area before the movement and the visible area after the movement, and the point cloud of the visible area before and after the movement of the first detection device
  • the satisfied relationship calculates the first offset parameter
  • FIG. 4 is a schematic flowchart of calculating a first offset parameter according to an embodiment of the present invention.
  • calculating the first offset parameter according to the acquired point cloud of the visible area before and after each movement includes the following steps S201-S202:
  • S201 Establish a first coordinate relationship function to be satisfied by the point cloud of the overlapping area of the visible area before and after the movement of the first detection device each time.
  • the point cloud includes three-dimensional coordinate data. Since the visible area before the movement of the first detection device and the visible area after the movement of the first detection device overlap during the movement, the visible area before the movement of the first detection device There are at least one set of point clouds in the point cloud of the viewing area and the point cloud of the moving viewing area that correspond to the same point in the actual three-dimensional space. Assuming that the set of point clouds are p i and q i , that is, it can be The point cloud p i of the viewing area and the point cloud q i of the visual area after moving correspond to the same point in the actual three-dimensional space. Based on this, the first coordinate relationship function is established, and the first coordinate relationship function is as follows:
  • the coefficients of the first coordinate relationship function are a parameter R and a parameter t respectively.
  • the parameter R is the first rotation matrix
  • t is the first translation matrix.
  • the first objective function is minimized, the parameter R and the parameter t are calculated, and then the first rotation matrix and the first translation matrix are obtained, where n is the total number of point clouds in the visible area obtained before the movement of the first detection device and The total number of point clouds in the visual area after the movement; and the first offset parameter between the coordinate systems before and after each movement of the first detection device obtained in this embodiment includes the first rotation matrix and the first translation matrix.
  • the above-mentioned method of minimizing the first objective function may be implemented using a nonlinear optimization method or a singular value decomposition (SVD) method.
  • SVD singular value decomposition
  • the first transfer matrix is obtained according to the first rotation matrix and the first offset matrix, and the obtained first transfer matrix ⁇ 1 is as follows Formula (3):
  • the first offset parameter obtained by the method provided in this embodiment may further include: a first transition matrix.
  • S102 Calculate a second offset parameter between the coordinate system of the first detection device after N moves and the coordinate system of the second detection device in the initial state.
  • the foregoing method of calculating the second offset parameter includes:
  • the second offset parameter is calculated from the point cloud of the visible area and the point cloud of the visible area of the second detection device in the initial state.
  • FIG. 5 is a schematic flowchart of calculating a second offset parameter according to an embodiment of the present invention.
  • the point cloud of the visible area after the first detection device moves N times and the point cloud of the visible area of the second detection device in the initial state are described above.
  • Calculating the second offset parameter includes the following steps S301-S302:
  • S301 Establish a second coordinate relationship function to be satisfied by the point cloud of the overlapping area of the visible area of the first detection device after N moves and the visible area of the second detection device in the initial state.
  • the visible area of the first detecting device after N moves and the visible area of the second detecting device in the initial state have an overlapping area, so the visible area of the first detecting device after N moves cloud point and the second detection means has at least one set point cloud corresponding to the actual three-dimensional space with the point, assuming the set point cloud X i and Y i in the visible region of the cloud point in an initial state, i.e., a first visual area detecting means after N times after moving cloud X i and a second detection means cloud point Y i viewable area in the initial state corresponds to the actual three-dimensional space with the point established based on this second coordinate
  • the relation function is as follows (4),
  • the coefficients of the above-mentioned second coordinate relationship function are the parameter R 0 and the parameter t 0 , the parameter R 0 is the second rotation matrix, and the parameter t 0 is the second translation matrix.
  • the second offset parameter obtained in this embodiment includes a second rotation matrix and a second translation matrix.
  • the above-mentioned method of minimizing the second objective function may also be implemented using a nonlinear optimization method or a singular value decomposition (SVD) method.
  • SVD singular value decomposition
  • the second transfer matrix ⁇ 0 is obtained according to the second rotation matrix and the second offset matrix, and the second transfer matrix is finally obtained.
  • the matrix ⁇ 0 is as follows (6),
  • the foregoing calculation of the external parameters between the first detection device and the second detection device according to the first offset parameter and the second offset parameter includes:
  • the external parameters between the first detection device and the second detection device characterize the relative positional relationship between the first detection device and the second detection device in space, and are used in subsequent processing operations such as point cloud fusion.
  • the visible area of the first detection device moves through N times and the initial state of the second detection device
  • the visible area of is overlapped, and a first transfer matrix is calculated for each movement of the first detection device; the visible area of the first detection device after three movements is compared with the visible area of the second detection device in the initial state
  • the visible area of the first detection device in the initial state is A0
  • the visible area of the first detection device after the first movement is the visible area A1
  • the visible area of the first detection device after the second movement The visible area is the visible area A2
  • the visible area of the first detection device after the third movement is the visible area A3
  • the visible area of the second detection device in the initial state is the visible area B0.
  • the first transition matrix ⁇ 1 is calculated from the point cloud of the area A0 and the point cloud of the visible area A1
  • the first transition matrix ⁇ 2 is calculated according to the point cloud of the visible area A1 and the point cloud of the visible area A2, according to the visible area
  • the first transition matrix ⁇ 3 is calculated from the point cloud of A2 and the point cloud of the visible area A3
  • the first detection device and the second detection device mentioned above in the embodiment of the present application start to rotate at the same time around the same central point when they move; this rotation can be realized by a movable platform (such as a car) driving the first detection device With the second detecting device turning or rotating in place, the specific rotation mode is not limited here.
  • the above-mentioned first detection device and the second detection device in the embodiment of the present application translate along the same straight line when moving; the translation may be realized by a movable platform (such as a car) driving the first detection device and the second detection device.
  • the detection device translates along the same straight line.
  • the movement modes satisfying the overlapping area between the visible area of the first detection device after N movement and the visible area of the second detection device in the initial state are applicable to the present invention, and the present invention does not affect the movement mode. Specific restrictions.
  • the first detection device rotates in a direction close to the second detection device; this way, the number of rotations will be reduced.
  • the first detection device 60 and the second detection device 70 are installed on the same straight line. At this time, no matter which direction the first detection device 60 rotates, it will eventually need to rotate through the same angle. After that, the visible area of the first detection device 60 overlaps with the visible area of the second detection device 70 in the initial state.
  • the angle between the first detection device 60 and the second detection device 70, the field of view angle of the first detection device 60 and the field of view angle of the second detection device 70 can be preliminarily determined before the rotation. Under the condition that the visible area before and after each rotation of a detection device 60 has overlapping areas, determine the number of rotations required for each rotation of the same angle, and then the first detection device 60 and the second detection device 70 rotate according to the number of rotations .
  • Fig. 8 is a schematic diagram of a data processing device provided by an embodiment of the present invention.
  • the data processing device 1000 includes at least a memory 1002 and a processor 1001; the memory 1002 is connected to the processor 1001 through a communication bus 1003, and is used to store computer instructions executable by the processor 1001;
  • the processor 1001 is configured to read computer instructions from the memory 1001 to implement the method for calibrating the external parameters of the detection device, and is suitable for calibrating the external parameters between the first detection device and the second detection device.
  • the visible area of the device and the second detection device do not overlap each other, the visible area of the first detection device after N moves and the visible area of the second detection device in the initial state overlap, the N Greater than or equal to 1, the method includes:
  • the processor 1001 is further configured to read computer instructions from the memory 1002 to implement:
  • the processor 1001 is further configured to read computer instructions from the memory 1002 to implement:
  • a first objective function is established according to the coefficients of the first coordinate relationship function, and the first objective function is minimized by obtaining the point cloud of the visible area before and after each movement, and the first rotation matrix and the first rotation matrix are calculated.
  • a translation matrix is established according to the coefficients of the first coordinate relationship function, and the first objective function is minimized by obtaining the point cloud of the visible area before and after each movement, and the first rotation matrix and the first rotation matrix are calculated.
  • the processor 1001 is further configured to read computer instructions from the memory 1002 to implement:
  • the first transfer matrix is calculated according to the first rotation matrix and the first translation matrix.
  • the processor 1001 is further configured to read computer instructions from the memory 1002 to implement:
  • the second offset parameter is calculated from the point cloud of the visible area and the point cloud of the visible area of the second detection device in the initial state.
  • the processor 1001 is further configured to read computer instructions from the memory 1002 to implement:
  • a second objective function is established according to the coefficients of the second coordinate relationship function, and the obtained point cloud of the visible area of the first detection device after N moves and the initial state of the second detection device.
  • the point cloud of the viewing area minimizes the second objective function, and the second rotation matrix and the second translation matrix are calculated.
  • the processor 1001 is further configured to read computer instructions from the memory 1002 to implement:
  • the second transfer matrix is calculated according to the second rotation matrix and the second translation matrix.
  • the processor 1001 is further configured to read computer instructions from the memory 1002 to implement:
  • the first detection device and the second detection device simultaneously start to rotate around the same center point.
  • the first detection device rotates in a direction approaching the second detection device.
  • the processor 1001 is further configured to read computer instructions from the memory 1002 to implement:
  • the external parameters between the first detection device and the second detection device calculate the first detection device and the other detectors The external parameters between.
  • both the first detection device and the second detection device include at least one of the following: lidar, millimeter wave radar, and ultrasonic radar.
  • the aforementioned data processing device is a host computer.
  • the aforementioned data processing device is provided in the detection device.
  • the embodiment of the present invention also provides a detection system. As shown in FIG. 9, it includes a plurality of detection devices and the above-mentioned data processing device 1000, and the plurality of detection devices includes a first detection device 60 and a second detection device 70 ( Only two detection devices are shown in the figure); the multiple detection devices are mounted on the same carrier (not shown in the figure), and the carrier includes: a movable platform through which the detection device is driven The device moves.
  • the above-mentioned movable platform includes any one of a vehicle, an aircraft, and a turntable.
  • the above-mentioned turntable may be installed on a vehicle or an aircraft, and the rotation of the turntable drives the rotation of the detection device for external parameter calibration.
  • the relevant part can refer to the part of the description of the method embodiment.
  • the device embodiments described above are merely illustrative.
  • the units described 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 it can be distributed to multiple network units.
  • Some or all of the modules can be selected according to actual needs to achieve the objectives of the solutions of the embodiments. Those of ordinary skill in the art can understand and implement it without creative work.

Abstract

A method for calibrating external parameters of a detection device, a data processing device and a detection system. Said method is suitable for calibrating external parameters between a first detection device (60) and a second detection device (70). View areas of the first detection device (60) and the second detection device (70) do not overlap each other. The view area of the first detection device (60) after N movements overlaps with the view area of the second detection device (70) in initial state, N being greater than or equal to 1. The method comprises: calculating a first offset parameter between coordinate systems of the first detection device (60) before and after each movement (S101); calculating a second offset parameter between the coordinate system of the first detection device (60) after N movements and the coordinate system of the second detection device (70) in the initial state (S102); and calculating external parameters between the first detection device (60) and the second detection device (70) according to the first offset parameter and the second offset parameter (S103). Hence, the efficiency in calibrating the external parameters of the detection devices may be improved.

Description

一种探测装置外参数标定方法、数据处理装置和探测系统Method for calibrating external parameters of detection device, data processing device and detection system 技术领域Technical field
本发明涉及数据处理技术,尤其涉及一种探测装置外参数标定方法、数据处理装置及探测系统。The invention relates to data processing technology, in particular to a method for calibrating external parameters of a detection device, a data processing device and a detection system.
背景技术Background technique
激光雷达等探测装置可以向不同方向发射探测信号,并根据不同方向的回波获取物体的深度信息、反射率信息等。当在同一设备上安装多个激光雷达时,为将不同的激光雷达采集的数据融合到同一坐标系下,需要对激光雷达进行外参数标定。相关技术中,针对于可视区域没有重叠的激光雷达,所采用的外参数标定方法有通过额外设置相机进行间接标定的方式,如此,存在标定过程复杂,效率较低的缺陷。Detection devices such as lidar can emit detection signals in different directions, and obtain depth information and reflectivity information of objects based on echoes in different directions. When multiple lidars are installed on the same device, in order to fuse the data collected by different lidars into the same coordinate system, it is necessary to calibrate the external parameters of the lidar. In related technologies, for lidars with no overlapping visible areas, the external parameter calibration method adopted includes indirect calibration by additionally setting a camera. In this way, the calibration process is complicated and the efficiency is low.
发明内容Summary of the invention
本发明实施例提供一种探测装置参数标定方法、数据处理装置和标定系统,以对可视区域没有重叠的探测装置进行外参数标定,提高外参数标定的效率。The embodiment of the present invention provides a method, a data processing device and a calibration system for a detection device parameter calibration, so as to calibrate the external parameters of the detection device with no overlap in the visible area, and improve the efficiency of the external parameter calibration.
第一方面,本发明实施例提供一种探测装置外参数标定方法,适用于对第一探测装置和第二探测装置之间的外参数进行标定,所述第一探测装置与所述第二探测装置的可视区域互不重叠,所述第一探测装置经过N次移动后的可视区域与第二探测装置在初始状态下的可视区域有重叠,所述N大于等于1,该方法包括:In the first aspect, an embodiment of the present invention provides a method for calibrating external parameters of a detection device, which is suitable for calibrating external parameters between a first detection device and a second detection device. The first detection device and the second detection device are The visible areas of the devices do not overlap each other, the visible area of the first detection device after N moves and the visible area of the second detection device in the initial state overlap, and the N is greater than or equal to 1, and the method includes :
计算所述第一探测装置每次移动前后的坐标系之间的第一偏移参数;Calculating the first offset parameter between the coordinate systems before and after each movement of the first detection device;
计算所述第一探测装置经过N次移动后的坐标系与所述第二探测装置在初始状态下的坐标系之间的第二偏移参数;Calculating a second offset parameter between the coordinate system of the first detection device after N moves and the coordinate system of the second detection device in the initial state;
根据所述第一偏移参数和所述第二偏移参数计算所述第一探测装置和所述第二探测装置之间的外参数。Calculating an external parameter between the first detection device and the second detection device according to the first offset parameter and the second offset parameter.
第二方面,本发明实施例提供一种探测数据处理装置,至少包括存储器和处理器;所述存储器通过通信总线和所述处理器连接,用于存储所述处理器可执行的计算机指令;所述处理器用于从所述存储器读取计算机指令以实现:In a second aspect, an embodiment of the present invention provides a detection data processing device, which includes at least a memory and a processor; the memory is connected to the processor through a communication bus, and is used to store computer instructions executable by the processor; The processor is used to read computer instructions from the memory to realize:
计算所述第一探测装置每次移动前后的坐标系之间的第一偏移参数;Calculating the first offset parameter between the coordinate systems before and after each movement of the first detection device;
计算所述第一探测装置经过N次移动后的坐标系与所述第二探测装置在初始状态下的坐标系之间的第二偏移参数;Calculating a second offset parameter between the coordinate system of the first detection device after N moves and the coordinate system of the second detection device in the initial state;
根据所述第一偏移参数和所述第二偏移参数计算所述第一探测装置和所述第二探测装置之间的外参数;所述第一探测装置与所述第二探测装置的可视区域互不重叠,所述第一探测装置经过N次移动后的可视区域与第二探测装置在初始状态下的可视区域有重叠,所述N大于等于1。Calculate the external parameters between the first detection device and the second detection device according to the first offset parameter and the second offset parameter; the difference between the first detection device and the second detection device The visible areas do not overlap each other, the visible area of the first detection device after N moves and the visible area of the second detection device in the initial state overlap, and the N is greater than or equal to 1.
第三方面,本发明实施例提供一种探测系统,包括:多个探测装置和第二方面所述的数据处理装置,所述多个探测装置包括第一探测装置和第二探测装置;所述多个探测装置安装于同一载体上,所述载体包括:可移动平台,通过所述可移动平台带动所述探测装置移动。In a third aspect, an embodiment of the present invention provides a detection system, including: a plurality of detection devices and the data processing device of the second aspect, the plurality of detection devices include a first detection device and a second detection device; A plurality of detection devices are installed on the same carrier, and the carrier includes a movable platform through which the detection device is driven to move.
由上述的技术方案可见,本实施例中,在对可视区域互不重叠的第一探测装置和第二探测装置之间的外参数标定时,通过使第一探测装置经过N次移动后的可视区域与第二探测装置的在初始状态下的可视区域有重叠,计算第一探测装置移动前后的坐标系之间的第一偏移参数,并计算第一探测装置经过N次移动后的坐标系与第二探测装置在初始状态下的坐标系之间的第二偏移参数,然后根据该第一偏移参数和第二偏移参数计算得到第一探测装置与第二探测装置之间的外参数;该方法可对可视区域没有重叠的探测装置进行外参数标定,提高外参数标定的效率。It can be seen from the above technical solution that, in this embodiment, when calibrating the external parameters between the first detection device and the second detection device that do not overlap the visible areas, the first detection device is moved after N times. The visible area overlaps with the visible area of the second detection device in the initial state, calculate the first offset parameter between the coordinate systems before and after the movement of the first detection device, and calculate the first detection device after N moves The second offset parameter between the coordinate system of the first detection device and the coordinate system of the second detection device in the initial state, and then the first detection device and the second detection device are calculated according to the first offset parameter and the second offset parameter This method can calibrate the external parameters of the detection device with no overlap in the visible area, and improve the efficiency of external parameter calibration.
附图说明Description of the drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions in the embodiments of the present invention more clearly, the following will briefly introduce the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings may be obtained based on these drawings without creative labor.
图1是本发明实施例提供的一种探测装置的框图;Figure 1 is a block diagram of a detection device provided by an embodiment of the present invention;
图2是本发明实施例提供的采用同轴光路的探测装置的结构示意图;2 is a schematic structural diagram of a detection device using a coaxial optical path provided by an embodiment of the present invention;
图3是本发明实施例提供的一种探测装置参数标定方法的流程示意图;FIG. 3 is a schematic flowchart of a method for calibrating parameters of a detection device according to an embodiment of the present invention;
图4是本发明实施例提供的计算第一偏移参数的流程示意图;FIG. 4 is a schematic flowchart of calculating a first offset parameter according to an embodiment of the present invention;
图5是本发明实施例提供的计算第二偏移参数的流程示意图;FIG. 5 is a schematic flowchart of calculating a second offset parameter according to an embodiment of the present invention;
图6是本发明实施例提供的第一探测装置与第二探测装置相对位置示意图;6 is a schematic diagram of the relative positions of the first detection device and the second detection device provided by an embodiment of the present invention;
图7是本发明实施例提供的第一探测装置与第二探测装置相对位置示意图;FIG. 7 is a schematic diagram of the relative positions of the first detection device and the second detection device according to an embodiment of the present invention;
图8是本发明实施例提供的一种数据处理装置的结构示意图;FIG. 8 is a schematic structural diagram of a data processing device provided by an embodiment of the present invention;
图9是本发明实施例提供的一种探测系统的结构示意图。Fig. 9 is a schematic structural diagram of a detection system provided by an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
激光雷达等探测装置可以向不同方向发射探测信号,并根据不同方向的回波获取物体的深度信息、反射率信息等。当在同一设备上安装多个激光雷达时,为将不同的激光雷达采集的数据融合到同一坐标系下,需要对 激光雷达进行外参数标定。相关技术中,针对于可视区域没有重叠的激光雷达,所采用的外参数标定方法有通过额外设置相机进行间接标定的方式,如此,存在标定过程复杂,效率较低的缺陷。Detection devices such as lidar can emit detection signals in different directions, and obtain depth information and reflectivity information of objects based on echoes in different directions. When multiple lidars are installed on the same device, in order to fuse the data collected by different lidars into the same coordinate system, it is necessary to calibrate the external parameters of the lidar. In related technologies, for lidars with no overlapping visible areas, the external parameter calibration method adopted includes indirect calibration by additionally setting a camera. In this way, the calibration process is complicated and the efficiency is low.
为此本发明实施例提供了一种探测装置外参数标定方法,适用于对可视区域不重叠的探测装置(如激光雷达)之间的外参数进行标定。For this reason, the embodiment of the present invention provides a method for calibrating the external parameters of the detection device, which is suitable for calibrating the external parameters between the detection devices (such as lidar) with non-overlapping visible areas.
在一种实施方式中,上述探测装置用于感测外部环境信息,例如,环境目标的距离信息、方位信息、反射强度信息、速度信息等。一种实现方式中,探测装置可以通过测量探测装置和探测物之间光传播的时间,即光飞行时间(Time-of-Flight,TOF),来探测探测物到探测装置的距离。或者,探测装置也可以通过其他技术来探测探测物到探测装置的距离,例如基于相位移动(phase shift)测量的测距方法,或者基于频率移动(frequency shift)测量的测距方法,在此不做限制。In one embodiment, the aforementioned detection device is used to sense external environmental information, for example, distance information, orientation information, reflection intensity information, speed information, etc. of environmental targets. In one implementation, the detection device can detect the distance between the detection device and the detection device by measuring the time of light propagation between the detection device and the detection object, that is, the time-of-flight (TOF). Alternatively, the detection device can also use other technologies to detect the distance from the detection device to the detection device, such as a ranging method based on phase shift measurement, or a ranging method based on frequency shift measurement. Do restrictions.
为了便于理解,图1是本发明实施例提供的一种探测装置的框图,以下将结合图1所示的探测装置100对测距的工作流程进行举例描述。For ease of understanding, FIG. 1 is a block diagram of a detection device provided by an embodiment of the present invention. The working process of ranging will be described below with reference to the detection device 100 shown in FIG. 1 as an example.
参见图1,探测装置100可以包括发射电路110、接收电路120、采样电路130和运算电路140。1, the detection device 100 may include a transmitting circuit 110, a receiving circuit 120, a sampling circuit 130, and an arithmetic circuit 140.
发射电路110可以发射光脉冲序列(例如激光脉冲序列)。接收电路120可以接收经过被探测物反射的光脉冲序列(也可以称之为回波信号),并对该光脉冲序列进行光电转换,以得到电信号,再对电信号进行处理之后可以输出给采样电路130。采样电路130可以对电信号进行采样,以获取采样结果。运算电路140可以基于采样电路130的采样结果,以确定探测装置100与被探测物之间的距离。The transmitting circuit 110 may emit a light pulse sequence (for example, a laser pulse sequence). The receiving circuit 120 can receive the light pulse sequence (also called an echo signal) reflected by the detected object, and perform photoelectric conversion on the light pulse sequence to obtain an electrical signal. After processing the electrical signal, it can be output to Sampling circuit 130. The sampling circuit 130 may sample the electrical signal to obtain the sampling result. The arithmetic circuit 140 may determine the distance between the detection device 100 and the detected object based on the sampling result of the sampling circuit 130.
可选地,该探测装置100还可以包括控制电路150,该控制电路150可以实现对其他电路的控制,例如,可以控制各个电路的工作时间和/或对各个电路进行参数设置等。Optionally, the detection device 100 may further include a control circuit 150, which can control other circuits, for example, can control the working time of each circuit and/or set parameters for each circuit.
应理解,虽然图1示出的探测装置中包括一个发射电路、一个接收电路、一个采样电路和一个运算电路,用于出射一路光束进行探测,但是本 申请实施例并不限于此,发射电路、接收电路、采样电路、运算电路中的任一种电路的数量也可以是至少两个,用于沿相同方向或分别沿不同方向出射至少两路光束;其中,该至少两束光路可以是同时出射,也可以是分别在不同时刻出射。一个示例中,该至少两个发射电路中的发光芯片封装在同一个模块中。例如,每个发射电路包括一个激光发射芯片,该至少两个发射电路中的激光发射芯片可以封装到一起,容置在同一个封装空间中。It should be understood that although the detection device shown in FIG. 1 includes a transmitting circuit, a receiving circuit, a sampling circuit, and an arithmetic circuit for emitting a beam for detection, the embodiment of the present application is not limited to this. The transmitting circuit, The number of any one of the receiving circuit, the sampling circuit, and the arithmetic circuit may also be at least two, which are used to emit at least two light beams in the same direction or in different directions; wherein, the at least two light paths may be emitted simultaneously , It can also be launched at different times. In an example, the light-emitting chips in the at least two transmitting circuits are packaged in the same module. For example, each emitting circuit includes a laser emitting chip, and the laser emitting chips in the at least two emitting circuits can be packaged together and housed in the same packaging space.
在一些实施例中,除了图1所示的电路,探测装置100还可以包括扫描模块160,用于将发射电路出射的至少一路激光脉冲序列改变传播方向出射。In some embodiments, in addition to the circuit shown in FIG. 1, the detection device 100 may further include a scanning module 160 for changing the propagation direction of at least one laser pulse sequence emitted by the transmitting circuit.
其中,可以将包括发射电路110、接收电路120、采样电路130和运算电路140的模块,或者,包括发射电路110、接收电路120、采样电路130、运算电路140和控制电路150的模块称为测距模块,该测距模块150可以独立于其他模块,例如,扫描模块160。Among them, the module including the transmitting circuit 110, the receiving circuit 120, the sampling circuit 130, and the arithmetic circuit 140, or the module including the transmitting circuit 110, the receiving circuit 120, the sampling circuit 130, the arithmetic circuit 140, and the control circuit 150 may be referred to as the tester. The distance measurement module 150 can be independent of other modules, for example, the scanning module 160.
探测装置中可以采用同轴光路,也即探测装置出射的光束和经反射回来的光束在探测装置内共用至少部分光路。例如,发射电路出射的至少一路激光脉冲序列经扫描模块改变传播方向出射后,经探测物反射回来的激光脉冲序列经过扫描模块后入射至接收电路。或者,探测装置也可以采用异轴光路,也即探测装置出射的光束和经反射回来的光束在探测装置内分别沿不同的光路传输。图2示出了本发明的探测装置采用同轴光路的一种实施例的示意图。The detection device can adopt a coaxial optical path, that is, the light beam emitted by the detection device and the reflected light beam share at least part of the optical path in the detection device. For example, after at least one laser pulse sequence emitted by the transmitter circuit changes its propagation direction and exits through the scanning module, the laser pulse sequence reflected by the probe passes through the scanning module and then enters the receiving circuit. Alternatively, the detection device may also adopt an off-axis optical path, that is, the light beam emitted by the detection device and the reflected light beam are respectively transmitted along different optical paths in the detection device. Fig. 2 shows a schematic diagram of an embodiment in which the detection device of the present invention adopts a coaxial optical path.
探测装置200包括测距模块210,测距模块210包括发射器203(可以包括上述的发射电路)、准直元件204、探测器205(可以包括上述的接收电路、采样电路和运算电路)和光路改变元件206。测距模块210用于发射光束,且接收回光,将回光转换为电信号。其中,发射器203可以用于发射光脉冲序列。在一个实施例中,发射器203可以发射激光脉冲序列。可选的,发射器203发射出的激光束为波长在可见光范围之外的窄带宽光束。准直元件204设置于发射器的出射光路上,用于准直从发射器203发 出的光束,将发射器203发出的光束准直为平行光出射至扫描模块。准直元件还用于会聚经探测物反射的回光的至少一部分。该准直元件204可以是准直透镜或者是其他能够准直光束的元件。The detection device 200 includes a ranging module 210. The ranging module 210 includes a transmitter 203 (which may include the above-mentioned transmitting circuit), a collimating element 204, a detector 205 (which may include the above-mentioned receiving circuit, sampling circuit, and arithmetic circuit), and an optical path. Change element 206. The ranging module 210 is used to emit a light beam, receive the return light, and convert the return light into an electrical signal. Among them, the transmitter 203 can be used to emit a light pulse sequence. In one embodiment, the transmitter 203 may emit a sequence of laser pulses. Optionally, the laser beam emitted by the transmitter 203 is a narrow-bandwidth beam with a wavelength outside the visible light range. The collimating element 204 is arranged on the exit light path of the emitter, and is used to collimate the light beam emitted from the emitter 203, and collimate the light beam emitted from the emitter 203 into parallel light and output to the scanning module. The collimating element is also used to condense at least a part of the return light reflected by the probe. The collimating element 204 may be a collimating lens or other elements capable of collimating light beams.
在图2所示实施例中,通过光路改变元件206来将探测装置内的发射光路和接收光路在准直元件204之前合并,使得发射光路和接收光路可以共用同一个准直元件,使得光路更加紧凑。在其他的一些实现方式中,也可以是发射器203和探测器205分别使用各自的准直元件,将光路改变元件206设置在准直元件之后的光路上。In the embodiment shown in FIG. 2, the light path changing element 206 is used to combine the transmitting light path and the receiving light path in the detection device before the collimating element 204, so that the transmitting light path and the receiving light path can share the same collimating element, making the light path more compact. In some other implementation manners, the transmitter 203 and the detector 205 may use respective collimating elements, and the optical path changing element 206 may be arranged on the optical path behind the collimating element.
在图2所示实施例中,由于发射器203出射的光束的光束孔径较小,探测装置所接收到的回光的光束孔径较大,所以光路改变元件可以采用小面积的反射镜来将发射光路和接收光路合并。在其他的一些实现方式中,光路改变元件也可以采用带通孔的反射镜,其中该通孔用于透射发射器203的出射光,反射镜用于将回光反射至探测器205。这样可以减小采用小反射镜的情况中小反射镜的支架会对回光的遮挡。In the embodiment shown in FIG. 2, since the beam aperture of the light beam emitted by the transmitter 203 is small, and the beam aperture of the return light received by the detection device is relatively large, the light path changing element can use a small-area mirror to transmit The light path and the receiving light path are combined. In some other implementation manners, the optical path changing element may also use a reflector with a through hole, where the through hole is used to transmit the emitted light of the emitter 203 and the reflector is used to reflect the returned light to the detector 205. In this way, the shielding of the back light by the bracket of the small mirror in the case of using the small mirror can be reduced.
在图2所示实施例中,光路改变元件偏离了准直元件204的光轴。在其他的一些实现方式中,光路改变元件也可以位于准直元件204的光轴上。In the embodiment shown in FIG. 2, the optical path changing element deviates from the optical axis of the collimating element 204. In some other implementation manners, the optical path changing element may also be located on the optical axis of the collimating element 204.
探测装置200还包括扫描模块202。扫描模块202放置于测距模块210的出射光路上,扫描模块202用于改变经准直元件204出射的准直光束219的传输方向并投射至外界环境,并将回光投射至准直元件204。回光经准直元件204汇聚到探测器205上。The detection device 200 further includes a scanning module 202. The scanning module 202 is placed on the exit light path of the distance measuring module 210. The scanning module 202 is used to change the transmission direction of the collimated light beam 219 emitted by the collimating element 204 and project it to the external environment, and project the return light to the collimating element 204 . The returned light is collected on the detector 205 via the collimating element 204.
在一个实施例中,扫描模块202可以包括至少一个光学元件,用于改变光束的传播路径,其中,该光学元件可以通过对光束进行反射、折射、衍射等等方式来改变光束传播路径。例如,扫描模块202包括透镜、反射镜、棱镜、振镜、光栅、液晶、光学相控阵(Optical Phased Array)或上述光学元件的任意组合。一个示例中,至少部分光学元件是运动的,例如通过驱动模块来驱动该至少部分光学元件进行运动,该运动的光学元件可以在不同时刻将光束反射、折射或衍射至不同的方向。在一些实施例中, 扫描模块202的多个光学元件可以绕共同的轴209旋转或振动,每个旋转或振动的光学元件用于不断改变入射光束的传播方向。在一个实施例中,扫描模块202的多个光学元件可以以不同的转速旋转,或以不同的速度振动。在另在一个实施例中,扫描模块202的至少部分光学元件可以以基本相同的转速旋转。在一些实施例中,扫描模块的多个光学元件也可以是绕不同的轴旋转。在一些实施例中,扫描模块的多个光学元件也可以是以相同的方向旋转,或以不同的方向旋转;或者沿相同的方向振动,或者沿不同的方向振动,在此不作限制。In an embodiment, the scanning module 202 may include at least one optical element for changing the propagation path of the light beam, wherein the optical element may change the propagation path of the light beam by reflecting, refracting, or diffracting the light beam. For example, the scanning module 202 includes a lens, a mirror, a prism, a galvanometer, a grating, a liquid crystal, an optical phased array (Optical Phased Array), or any combination of the foregoing optical elements. In an example, at least part of the optical elements are moving. For example, a driving module is used to drive the at least part of the optical elements to move. The moving optical elements can reflect, refract, or diffract the light beam to different directions at different times. In some embodiments, the multiple optical elements of the scanning module 202 may rotate or vibrate around a common axis 209, and each rotating or vibrating optical element is used to continuously change the propagation direction of the incident light beam. In one embodiment, the multiple optical elements of the scanning module 202 may rotate at different speeds or vibrate at different speeds. In another embodiment, at least part of the optical elements of the scanning module 202 may rotate at substantially the same rotation speed. In some embodiments, the multiple optical elements of the scanning module may also be rotated around different axes. In some embodiments, the multiple optical elements of the scanning module may also rotate in the same direction or in different directions; or vibrate in the same direction, or vibrate in different directions, which is not limited herein.
在一个实施例中,扫描模块202包括第一光学元件214和与第一光学元件214连接的驱动器216,驱动器216用于驱动第一光学元件214绕转动轴209转动,使第一光学元件214改变准直光束219的方向。第一光学元件214将准直光束219投射至不同的方向。在一个实施例中,准直光束219经第一光学元件改变后的方向与转动轴109的夹角随着第一光学元件214的转动而变化。在一个实施例中,第一光学元件214包括相对的非平行的一对表面,准直光束219穿过该对表面。在一个实施例中,第一光学元件214包括厚度沿至少一个径向变化的棱镜。在一个实施例中,第一光学元件214包括楔角棱镜,对准直光束219进行折射。In one embodiment, the scanning module 202 includes a first optical element 214 and a driver 216 connected to the first optical element 214. The driver 216 is used to drive the first optical element 214 to rotate around the rotation axis 209 to change the first optical element 214. The direction of the beam 219 is collimated. The first optical element 214 projects the collimated beam 219 to different directions. In one embodiment, the angle between the direction of the collimated light beam 219 changed by the first optical element and the rotation axis 109 changes with the rotation of the first optical element 214. In one embodiment, the first optical element 214 includes a pair of opposed non-parallel surfaces through which the collimated light beam 219 passes. In one embodiment, the first optical element 214 includes a prism whose thickness varies in at least one radial direction. In one embodiment, the first optical element 214 includes a wedge-angle prism, and the collimated beam 219 is refracted.
在一个实施例中,扫描模块202还包括第二光学元件215,第二光学元件215绕转动轴209转动,第二光学元件215的转动速度与第一光学元件214的转动速度不同。第二光学元件215用于改变第一光学元件214投射的光束的方向。在一个实施例中,第二光学元件215与另一驱动器217连接,驱动器217驱动第二光学元件215转动。第一光学元件214和第二光学元件215可以由相同或不同的驱动器驱动,使第一光学元件214和第二光学元件215的转速和/或转向不同,从而将准直光束219投射至外界空间不同的方向,可以扫描较大的空间范围。在一个实施例中,控制器218控制驱动器216和217,分别驱动第一光学元件214和第二光学元件215。第一光学元件214和第二光学元件215的转速可以根据实际应用中预期扫 描的区域和样式确定。驱动器216和217可以包括电机或其他驱动器。In one embodiment, the scanning module 202 further includes a second optical element 215, the second optical element 215 rotates around the rotation axis 209, and the rotation speed of the second optical element 215 is different from the rotation speed of the first optical element 214. The second optical element 215 is used to change the direction of the light beam projected by the first optical element 214. In one embodiment, the second optical element 215 is connected to another driver 217, and the driver 217 drives the second optical element 215 to rotate. The first optical element 214 and the second optical element 215 can be driven by the same or different drivers, so that the rotation speed and/or rotation of the first optical element 214 and the second optical element 215 are different, so as to project the collimated light beam 219 to the outside space. Different directions can scan a larger space. In one embodiment, the controller 218 controls the drivers 216 and 217 to drive the first optical element 214 and the second optical element 215, respectively. The rotational speeds of the first optical element 214 and the second optical element 215 can be determined according to the expected scanning area and pattern in actual applications. The drivers 216 and 217 may include motors or other drivers.
在一个实施例中,第二光学元件215包括相对的非平行的一对表面,光束穿过该对表面。在一个实施例中,第二光学元件215包括厚度沿至少一个径向变化的棱镜。在一个实施例中,第二光学元件215包括楔角棱镜。In one embodiment, the second optical element 215 includes a pair of opposite non-parallel surfaces through which the light beam passes. In one embodiment, the second optical element 215 includes a prism whose thickness varies in at least one radial direction. In one embodiment, the second optical element 215 includes a wedge prism.
在一个实施例中,扫描模块202还包括第三光学元件(图未示)和用于驱动第三光学元件运动的驱动器。可选地,该第三光学元件包括相对的非平行的一对表面,光束穿过该对表面。在一个实施例中,第三光学元件包括厚度沿至少一个径向变化的棱镜。在一个实施例中,第三光学元件包括楔角棱镜。第一、第二和第三光学元件中的至少两个光学元件以不同的转速和/或转向转动。In one embodiment, the scanning module 202 further includes a third optical element (not shown) and a driver for driving the third optical element to move. Optionally, the third optical element includes a pair of opposite non-parallel surfaces, and the light beam passes through the pair of surfaces. In one embodiment, the third optical element includes a prism whose thickness varies in at least one radial direction. In one embodiment, the third optical element includes a wedge prism. At least two of the first, second, and third optical elements rotate at different rotation speeds and/or rotation directions.
扫描模块202中的各光学元件旋转可以将光投射至不同的方向,例如方向211和213,如此对探测装置200周围的空间进行扫描。当扫描模块202投射出的光211打到探测物201时,一部分光被探测物201沿与投射的光211相反的方向反射至探测装置200。探测物201反射的回光212经过扫描模块202后入射至准直元件204。The rotation of each optical element in the scanning module 202 can project light to different directions, such as directions 211 and 213, so that the space around the detection device 200 is scanned. When the light 211 projected by the scanning module 202 hits the detection object 201, a part of the light is reflected by the detection object 201 to the detection device 200 in a direction opposite to the projected light 211. The return light 212 reflected by the probe 201 is incident on the collimating element 204 after passing through the scanning module 202.
探测器205与发射器203放置于准直元件204的同一侧,探测器205用于将穿过准直元件204的至少部分回光转换为电信号。The detector 205 and the transmitter 203 are placed on the same side of the collimating element 204, and the detector 205 is used to convert at least part of the return light passing through the collimating element 204 into an electrical signal.
在一个实施例中,各光学元件上镀有增透膜。可选的,增透膜的厚度与发射器203发射出的光束的波长相等或接近,能够增加透射光束的强度。In one embodiment, each optical element is coated with an anti-reflection coating. Optionally, the thickness of the antireflection film is equal to or close to the wavelength of the light beam emitted by the emitter 203, which can increase the intensity of the transmitted light beam.
在一个实施例中,探测装置中位于光束传播路径上的一个元件表面上镀有滤光层,或者在光束传播路径上设置有滤光器,用于至少透射发射器所出射的光束所在波段,反射其他波段,以减少环境光给接收器带来的噪音。In an embodiment, a filter layer is plated on the surface of an element located on the beam propagation path in the detection device, or a filter is provided on the beam propagation path, for transmitting at least the wavelength band of the beam emitted by the transmitter, Reflect other bands to reduce the noise caused by ambient light to the receiver.
在一些实施例中,发射器203可以包括激光二极管,通过激光二极管发射纳秒级别的激光脉冲。进一步地,可以确定激光脉冲接收时间,例如,通过探测电信号脉冲的上升沿时间和/或下降沿时间确定激光脉冲接收时间。如此,探测装置200可以利用脉冲接收时间信息和脉冲发出时间信息 计算TOF,从而确定探测物201到探测装置200的距离。In some embodiments, the transmitter 203 may include a laser diode through which nanosecond laser pulses are emitted. Further, the laser pulse receiving time can be determined, for example, the laser pulse receiving time can be determined by detecting the rising edge time and/or the falling edge time of the electrical signal pulse. In this way, the detection device 200 can use the pulse receiving time information and the pulse sending time information to calculate the TOF, so as to determine the distance between the detection object 201 and the detection device 200.
探测装置200探测到的距离和方位可以用于遥感、避障、测绘、建模、导航等。在一种实施方式中,本发明实施方式的探测装置可应用于可移动平台,探测装置可安装在可移动平台的平台本体。具有探测装置的可移动平台可对外部环境进行测量,例如,测量可移动平台与障碍物的距离用于避障等用途,和对外部环境进行二维或三维的测绘。在某些实施方式中,可移动平台包括无人飞行器、汽车、遥控车、机器人、相机中的至少一种。当探测装置应用于无人飞行器时,平台本体为无人飞行器的机身。当探测装置应用于汽车时,平台本体为汽车的车身。该汽车可以是自动驾驶汽车或者半自动驾驶汽车,在此不做限制。当探测装置应用于遥控车时,平台本体为遥控车的车身。当探测装置应用于机器人时,平台本体为机器人。当探测装置应用于相机时,平台本体为相机本身。The distance and orientation detected by the detection device 200 can be used for remote sensing, obstacle avoidance, surveying and mapping, modeling, navigation, and the like. In one embodiment, the detection device of the embodiment of the present invention can be applied to a movable platform, and the detection device can be installed on the platform body of the movable platform. A movable platform with a detection device can measure the external environment, for example, measuring the distance between the movable platform and an obstacle for obstacle avoidance and other purposes, and for two-dimensional or three-dimensional mapping of the external environment. In some embodiments, the movable platform includes at least one of an unmanned aerial vehicle, a car, a remote control car, a robot, and a camera. When the detection device is applied to an unmanned aerial vehicle, the platform body is the fuselage of the unmanned aerial vehicle. When the detection device is applied to a car, the platform body is the body of the car. The car can be a self-driving car or a semi-self-driving car, and there is no restriction here. When the detection device is applied to a remote control car, the platform body is the body of the remote control car. When the detection device is applied to a robot, the platform body is a robot. When the detection device is applied to a camera, the platform body is the camera itself.
图3是本发明实施例提供的一种探测装置外参数标定方法的流程示意图。本发明实施例所提供的方法,适用于对两个探测装置之间的外参数进行标定,以两个探测装置分别为:第一探测装置和第二探测装置为例,该第一探测装置与第二探测装置的可视区域互不重叠,第一探测装置经过N次移动后的可视区域与第二探测装置在初始状态下的可视区域有重叠,所述N大于等于1,参照图3所示,该方法包括如下步骤S101-S103:Fig. 3 is a schematic flowchart of a method for calibrating external parameters of a detection device according to an embodiment of the present invention. The method provided by the embodiment of the present invention is suitable for calibrating the external parameters between two detection devices. Taking the two detection devices as an example: the first detection device and the second detection device, the first detection device and The visible areas of the second detection device do not overlap each other. The visible area of the first detection device after N moves and the visible area of the second detection device in the initial state overlap. The N is greater than or equal to 1, refer to the figure As shown in 3, the method includes the following steps S101-S103:
S101、计算所述第一探测装置每次移动前后的坐标系之间的第一偏移参数。S101. Calculate a first offset parameter between the coordinate systems before and after each movement of the first detection device.
上述的第一偏移参数为第一探测装置移动前的坐标系与移动后的坐标系之间的相互转换的关系参数,用于表征第一探测装置移动前后的相对位置关系。The above-mentioned first offset parameter is a mutual conversion relationship parameter between the coordinate system before and after the movement of the first detection device, and is used to characterize the relative position relationship before and after the movement of the first detection device.
以上述的第一探测装置、第二探测装置为激光雷达为例,激光雷达是一种感知传感器,可以获得场景的三维信息。其基本原理为主动对被探测对象发射激光脉冲信号,并接收其反射回来的激光脉冲信号,根据发射的激光脉冲信号和接收的反射回来的激光脉冲信号之间的时间差和激光脉冲 信号的传播速度,计算被测对象的深度信息;根据激光雷达的发射方向,获得被测对象相对激光雷达的角度信息;结合前述深度信息和角度信息得到海量的探测点,该探测点的数据集称为点云,基于点云即可以重建被测对象相对激光雷达的空间三维信息。Taking the above-mentioned first detection device and second detection device as Lidar as an example, Lidar is a perceptual sensor that can obtain three-dimensional information of the scene. The basic principle is to actively emit laser pulse signals to the detected object and receive the reflected laser pulse signals. According to the time difference between the emitted laser pulse signal and the received reflected laser pulse signal and the propagation speed of the laser pulse signal , Calculate the depth information of the measured object; obtain the angle information of the measured object relative to the lidar according to the emission direction of the lidar; combine the aforementioned depth information and angle information to obtain a large number of detection points, the data set of the detection points is called a point cloud Based on the point cloud, the three-dimensional information of the measured object relative to the lidar can be reconstructed.
本发明一实施例中,上述步骤S101中,计算所述第一探测装置每次移动前后的坐标系之间的第一偏移参数的方式,包括:In an embodiment of the present invention, in the foregoing step S101, the method of calculating the first offset parameter between the coordinate systems before and after each movement of the first detection device includes:
分别获取所述第一探测装置在每次移动前后的可视区域的点云,根据获取的所述每次移动前后的可视区域的点云计算所述第一偏移参数;其中,所述第一探测装置在每次移动前后的可视区域有重叠区域。Obtain the point cloud of the visible area of the first detection device before and after each movement respectively, and calculate the first offset parameter according to the obtained point cloud of the visible area before and after each movement; wherein, The visible area of the first detection device before and after each movement has an overlapping area.
本实施例中,设置第一探测装置在每次移动时,满足移动前的可视区域与移动后的可视区域有重叠区域,进而可以根据第一探测装置移动前后的可视区域的点云所满足的关系计算第一偏移参数。In this embodiment, each time the first detection device moves, it is set to satisfy the overlap between the visible area before the movement and the visible area after the movement, and the point cloud of the visible area before and after the movement of the first detection device The satisfied relationship calculates the first offset parameter.
图4是本发明实施例提供的计算第一偏移参数的流程示意图。参照图4所示,本实施例中,上述根据获取的每次移动前后的可视区域的点云计算第一偏移参数,包括如下步骤S201-S202:FIG. 4 is a schematic flowchart of calculating a first offset parameter according to an embodiment of the present invention. Referring to FIG. 4, in this embodiment, calculating the first offset parameter according to the acquired point cloud of the visible area before and after each movement includes the following steps S201-S202:
S201、建立所述第一探测装置每次移动前的可视区域和移动后的可视区域的重叠区域的点云所要满足的第一坐标关系函数。S201: Establish a first coordinate relationship function to be satisfied by the point cloud of the overlapping area of the visible area before and after the movement of the first detection device each time.
本实施例中点云包括三维坐标数据,由于在移动过程中第一探测装置移动前的可视区域与第一探测装置移动后的可视区域有重叠区域,因此第一探测装置移动前的可视区域的点云中和移动后的可视区域的点云中存在有至少一组点云对应于实际三维空间中的同一点,假设该组点云为p i和q i,即移动前可视区域的点云p i和移动后可视区域的点云q i对应于实际三维空间中的同一点,基于此建立第一坐标关系函数,该第一坐标关系函数如下式(1), In this embodiment, the point cloud includes three-dimensional coordinate data. Since the visible area before the movement of the first detection device and the visible area after the movement of the first detection device overlap during the movement, the visible area before the movement of the first detection device There are at least one set of point clouds in the point cloud of the viewing area and the point cloud of the moving viewing area that correspond to the same point in the actual three-dimensional space. Assuming that the set of point clouds are p i and q i , that is, it can be The point cloud p i of the viewing area and the point cloud q i of the visual area after moving correspond to the same point in the actual three-dimensional space. Based on this, the first coordinate relationship function is established, and the first coordinate relationship function is as follows:
Figure PCTCN2019073990-appb-000001
Figure PCTCN2019073990-appb-000001
其中,上述第一坐标关系函数的系数分别为参数R和参数t,该参数R 为第一旋转矩阵,t为第一平移矩阵。Wherein, the coefficients of the first coordinate relationship function are a parameter R and a parameter t respectively. The parameter R is the first rotation matrix, and t is the first translation matrix.
S202、根据所述第一坐标关系函数的系数建立第一目标函数,通过获取的所述每次移动前后的可视区域的点云将所述第一目标函数最小化,计算得到第一旋转矩阵和第一平移矩阵。S202. Establish a first objective function according to the coefficients of the first coordinate relationship function, and minimize the first objective function through the acquired point cloud of the visible area before and after each movement, and calculate a first rotation matrix And the first translation matrix.
上述根据第一坐标关系函数的系数R和t建立的第一目标函数,如下式(2),The above-mentioned first objective function established based on the coefficients R and t of the first coordinate relationship function is as follows:
Figure PCTCN2019073990-appb-000002
Figure PCTCN2019073990-appb-000002
最小化该第一目标函数,计算得到参数R和参数t,进而得到第一旋转矩阵和第一平移矩阵,其中,n为获取的第一探测装置移动前的可视区域的点云的总数以及移动后的可视区域的点云的总数;进而本实施例中得到的第一探测装置每次移动前后的坐标系之间的第一偏移参数包括第一旋转矩阵和第一平移矩阵。The first objective function is minimized, the parameter R and the parameter t are calculated, and then the first rotation matrix and the first translation matrix are obtained, where n is the total number of point clouds in the visible area obtained before the movement of the first detection device and The total number of point clouds in the visual area after the movement; and the first offset parameter between the coordinate systems before and after each movement of the first detection device obtained in this embodiment includes the first rotation matrix and the first translation matrix.
可选的,上述将第一目标函数最小化的方法可以采用非线性优化方法或者采用奇异值分解(singular value decomposition,SVD)的方法实现。Optionally, the above-mentioned method of minimizing the first objective function may be implemented using a nonlinear optimization method or a singular value decomposition (SVD) method.
一可选的实施例中,上述在计算得到第一旋转矩阵和第一偏移矩阵以后,根据该第一旋转矩阵和第一偏移矩阵得到第一转移矩阵,得到的第一转移矩阵α1如下式(3):In an optional embodiment, after the first rotation matrix and the first offset matrix are calculated, the first transfer matrix is obtained according to the first rotation matrix and the first offset matrix, and the obtained first transfer matrix α1 is as follows Formula (3):
Figure PCTCN2019073990-appb-000003
Figure PCTCN2019073990-appb-000003
进而通过本实施例中所提供的方法得到的第一偏移参数,还可以包括:第一转移矩阵。Furthermore, the first offset parameter obtained by the method provided in this embodiment may further include: a first transition matrix.
S102、计算所述第一探测装置经过N次移动后的坐标系与所述第二探测装置在初始状态下的坐标系之间的第二偏移参数。S102: Calculate a second offset parameter between the coordinate system of the first detection device after N moves and the coordinate system of the second detection device in the initial state.
本实施例中,上述计算第二偏移参数的方式,包括:In this embodiment, the foregoing method of calculating the second offset parameter includes:
获取所述第一探测装置经过N次移动后的可视区域的点云与所述第二探测装置在初始状态下的可视区域的点云,根据所述第一探测装置经过N 次移动后的可视区域的点云与所述第二探测装置在初始状态下的可视区域的点云计算所述第二偏移参数。Obtain the point cloud of the visible area of the first detection device after N movements and the point cloud of the visible area of the second detection device in the initial state, according to the point cloud of the first detection device after N movements The second offset parameter is calculated from the point cloud of the visible area and the point cloud of the visible area of the second detection device in the initial state.
图5是本发明实施例提供的计算第二偏移参数的流程示意图。参照图5所示,本发明实施例中,上述根据所述第一探测装置经过N次移动后的可视区域的点云与所述第二探测装置在初始状态下的可视区域的点云计算所述第二偏移参数,包括如下步骤S301-S302:FIG. 5 is a schematic flowchart of calculating a second offset parameter according to an embodiment of the present invention. Referring to FIG. 5, in the embodiment of the present invention, the point cloud of the visible area after the first detection device moves N times and the point cloud of the visible area of the second detection device in the initial state are described above. Calculating the second offset parameter includes the following steps S301-S302:
S301、建立所述第一探测装置经过N次移动后的可视区域和所述第二探测装置在初始状态下的可视区域的重叠区域的点云所要满足的第二坐标关系函数。S301: Establish a second coordinate relationship function to be satisfied by the point cloud of the overlapping area of the visible area of the first detection device after N moves and the visible area of the second detection device in the initial state.
本实施例中,第一探测装置经过N次移动后的可视区域与第二探测装置在初始状态下的可视区域有重叠区域,因此第一探测装置经过N次移动后的可视区域的点云中和第二探测装置在初始状态下的可视区域的点云中至少有一组点云对应于实际三维空间中的同一点,假设该组点云为X i和Y i,即第一探测装置经过N次移动后的可视区域的点云X i和第二探测装置在初始状态下的可视区域的点云Y i对应于实际三维空间中的同一点,基于此建立第二坐标关系函数,如下式(4), In this embodiment, the visible area of the first detecting device after N moves and the visible area of the second detecting device in the initial state have an overlapping area, so the visible area of the first detecting device after N moves cloud point and the second detection means has at least one set point cloud corresponding to the actual three-dimensional space with the point, assuming the set point cloud X i and Y i in the visible region of the cloud point in an initial state, i.e., a first visual area detecting means after N times after moving cloud X i and a second detection means cloud point Y i viewable area in the initial state corresponds to the actual three-dimensional space with the point established based on this second coordinate The relation function is as follows (4),
X i=R 0Y i+t 0      (4) X i =R 0 Y i +t 0 (4)
其中,上述第二坐标关系函数的系数为参数R 0和参数t 0,该参数R 0为第二旋转矩阵,该参数t 0为第二平移矩阵。 Wherein, the coefficients of the above-mentioned second coordinate relationship function are the parameter R 0 and the parameter t 0 , the parameter R 0 is the second rotation matrix, and the parameter t 0 is the second translation matrix.
S302、根据所述第二坐标关系函数的系数建立第二目标函数,通过获取的所述第一探测装置经过N次移动后的可视区域的点云与所述第二探测装置在初始状态下的可视区域的点云将所述第二目标函数最小化,计算得到第二旋转矩阵和第二平移矩阵。S302. Establish a second objective function according to the coefficients of the second coordinate relationship function, and obtain the point cloud of the visible area of the first detection device after N moves and the second detection device in the initial state The point cloud of the visible area minimizes the second objective function, and the second rotation matrix and the second translation matrix are calculated.
上述根据第二坐标关系函数的系数R 0和t 0建立的第二目标函数,如下式(5), The above-mentioned second objective function established based on the coefficients R 0 and t 0 of the second coordinate relation function is as follows:
Figure PCTCN2019073990-appb-000004
Figure PCTCN2019073990-appb-000004
最小化上述第二目标函数,计算得到参数R 0和参数t 0,即得到第二旋转矩阵和第二平移矩阵,其中,n为获取的第一探测装置N次移动后的可视区域的点云的总数以及获取的第二探测装置在初始状态下的可视区域的点云的总数;进而本实施例中得到的第二偏移参数包括第二旋转矩阵和第二平移矩阵。 Minimize the above-mentioned second objective function, calculate the parameter R 0 and the parameter t 0 to obtain the second rotation matrix and the second translation matrix, where n is the point of the visible area obtained after the first detection device moves N times The total number of clouds and the acquired total number of point clouds in the visible area of the second detection device in the initial state; furthermore, the second offset parameter obtained in this embodiment includes a second rotation matrix and a second translation matrix.
可选的,上述将第二目标函数最小化的方法也可以采用非线性优化方法或者采用奇异值分解(singular value decomposition,SVD)的方法实现。Optionally, the above-mentioned method of minimizing the second objective function may also be implemented using a nonlinear optimization method or a singular value decomposition (SVD) method.
一可选的实施例中,上述在计算得到第二旋转矩阵和第二偏移矩阵以后,根据该第二旋转矩阵和第二偏移矩阵得到第二转移矩阵β0,最终可得到的第二转移矩阵β0如下式(6),In an optional embodiment, after the second rotation matrix and the second offset matrix are calculated, the second transfer matrix β0 is obtained according to the second rotation matrix and the second offset matrix, and the second transfer matrix is finally obtained. The matrix β0 is as follows (6),
Figure PCTCN2019073990-appb-000005
Figure PCTCN2019073990-appb-000005
S103、根据所述第一偏移参数和所述第二偏移参数计算所述第一探测装置和所述第二探测装置之间的外参数。S103. Calculate an external parameter between the first detection device and the second detection device according to the first offset parameter and the second offset parameter.
本实施例中,上述根据第一偏移参数和第二偏移参数计算所述第一探测装置和第二探测装置之间的外参数,包括:In this embodiment, the foregoing calculation of the external parameters between the first detection device and the second detection device according to the first offset parameter and the second offset parameter includes:
将所述第一探测装置每次移动计算得到的第一偏移参数分别相乘,然后与所述第二偏移参数相乘,得到所述第一探测装置与所述第二探测装置之间的外参数。Multiply the first offset parameter calculated for each movement of the first detection device, and then multiply it with the second offset parameter to obtain the difference between the first detection device and the second detection device The external parameters.
其中,第一探测装置与第二探测装置之间的外参数表征了第一探测装置与第二探测装置在空间中的相对位置关系,用于后续的点云融合等处理操作中。Wherein, the external parameters between the first detection device and the second detection device characterize the relative positional relationship between the first detection device and the second detection device in space, and are used in subsequent processing operations such as point cloud fusion.
以第一偏移参数为第一偏移矩阵,第二偏移参数为第二偏移矩阵为例,当第一探测装置经过N次移动后的可视区域与第二探测装置的初始状态下的可视区域有重叠,第一探测装置的每次移动都会计算得到一个第一转移矩阵;以第一探测装置经过三次移动后的可视区域与第二探测装置在初始状态下的可视区域重叠为例,第一探测装置在初始状态下的可视区域为A0, 第一探测装置经过第一次移动后的可视区域为可视区域A1,第一探测装置经过第二次移动后的可视区域为可视区域A2,第一探测装置经过第三次移动后的可视区域为可视区域A3,第二探测装置在初始状态下的可视区域为可视区域B0,根据可视区域A0的点云与可视区域A1的点云计算得到第一转移矩阵为α1,根据可视区域A1的点云与可视区域A2的点云计算得到第一转移矩阵α2,根据可视区域A2的点云与可视区域A3的点云计算得到第一转移矩阵α3,根据可视区域A3的点云与第二探测装置在初始状态下的可视区域B0的点云计算得到第二转移矩阵β0,根据上述计算得到的第一转移矩阵和第二转移矩阵得到第一探测装置与第二探测装置之间的转移矩阵T:T=α1·α1·α1·β0。Taking the first offset parameter as the first offset matrix and the second offset parameter as the second offset matrix as an example, when the visible area of the first detection device moves through N times and the initial state of the second detection device The visible area of is overlapped, and a first transfer matrix is calculated for each movement of the first detection device; the visible area of the first detection device after three movements is compared with the visible area of the second detection device in the initial state For example, the visible area of the first detection device in the initial state is A0, the visible area of the first detection device after the first movement is the visible area A1, and the visible area of the first detection device after the second movement The visible area is the visible area A2, the visible area of the first detection device after the third movement is the visible area A3, and the visible area of the second detection device in the initial state is the visible area B0. The first transition matrix α1 is calculated from the point cloud of the area A0 and the point cloud of the visible area A1, and the first transition matrix α2 is calculated according to the point cloud of the visible area A1 and the point cloud of the visible area A2, according to the visible area The first transition matrix α3 is calculated from the point cloud of A2 and the point cloud of the visible area A3, and the second transition is calculated according to the point cloud of the visible area A3 and the point cloud of the visible area B0 of the second detection device in the initial state Matrix β0, according to the first transfer matrix and the second transfer matrix obtained by the above calculation, the transfer matrix T between the first detection device and the second detection device is obtained: T=α1·α1·α1·β0.
可选的,本申请实施例中上述的第一探测装置与第二探测装置在移动时围绕同一中心点同时启动旋转;该旋转的实现方式可以是可移动平台(如汽车)带动第一探测装置和第二探测装置转弯或者原地旋转等,具体旋转的方式在此不作限定。Optionally, the first detection device and the second detection device mentioned above in the embodiment of the present application start to rotate at the same time around the same central point when they move; this rotation can be realized by a movable platform (such as a car) driving the first detection device With the second detecting device turning or rotating in place, the specific rotation mode is not limited here.
可选的,本申请实施例中上述的第一探测装置与第二探测装置在移动时是沿同一直线平移;平移的实现方式可以是可移动平台(如汽车)带动第一探测装置和第二探测装置沿同一直线平移。Optionally, the above-mentioned first detection device and the second detection device in the embodiment of the present application translate along the same straight line when moving; the translation may be realized by a movable platform (such as a car) driving the first detection device and the second detection device. The detection device translates along the same straight line.
需要说明的是,满足第一探测装置经过N次移动后的可视区域与第二探测装置在初始状态下的可视区域有重叠区域的移动方式均适用于本发明,本发明对移动方式不作具体限定。It should be noted that the movement modes satisfying the overlapping area between the visible area of the first detection device after N movement and the visible area of the second detection device in the initial state are applicable to the present invention, and the present invention does not affect the movement mode. Specific restrictions.
可选的,按照第一探测装置经过N次旋转后的可视区域与第二探测装置的初始状态下的可视区域有重叠计算第一探测装置与第二探测装置之间的外参数时,当第一探测装置与第二探测装置的安装位置不在同一条直线上时,此时第一探测装置向靠近第二探测装置的方向旋转;如此,会减少旋转的次数。例如,针对图6所示的场景,第一探测装置60与第二探测装置70安装于同一条直线上,此时第一探测装置60无论朝向哪一方向旋转,最终都需要旋转经过相同的角度后,第一探测装置60的可视区域与第二探 测装置70的在初始状态下的可视区域发生重叠。再例如,针对图7所示的场景,此时第一探测装置60向靠近第二探测装置70的方向(逆时针方向)旋转时,最终旋转经过的角度会比向远离第二探测装置的方向(顺时针方向)旋转经过的角度小。Optionally, when calculating the external parameters between the first detection device and the second detection device according to the overlap between the visible area of the first detection device after N rotations and the visible area of the second detection device in the initial state, When the installation positions of the first detection device and the second detection device are not on the same straight line, the first detection device rotates in a direction close to the second detection device; this way, the number of rotations will be reduced. For example, for the scene shown in FIG. 6, the first detection device 60 and the second detection device 70 are installed on the same straight line. At this time, no matter which direction the first detection device 60 rotates, it will eventually need to rotate through the same angle. After that, the visible area of the first detection device 60 overlaps with the visible area of the second detection device 70 in the initial state. For another example, for the scene shown in FIG. 7, when the first detection device 60 rotates in a direction closer to the second detection device 70 (counterclockwise), the final rotation through an angle will be greater than the direction away from the second detection device. (Clockwise) The angle of rotation is small.
可选的,在旋转之前可以预先根据第一探测装置60和第二探测装置70之间的夹角、第一探测装置60的视场角和第二探测装置70的视场角,在满足第一探测装置60每次旋转前后的可视区域有重叠区域的条件下,确定每次旋转同样角度时所需的旋转次数,然后第一探测装置60和第二探测装置70根据该旋转次数进行旋转。Optionally, the angle between the first detection device 60 and the second detection device 70, the field of view angle of the first detection device 60 and the field of view angle of the second detection device 70 can be preliminarily determined before the rotation. Under the condition that the visible area before and after each rotation of a detection device 60 has overlapping areas, determine the number of rotations required for each rotation of the same angle, and then the first detection device 60 and the second detection device 70 rotate according to the number of rotations .
图8为本发明实施例提供的一种数据处理装置的示意图。参照图8所示,该数据处理装置1000至少包括存储器1002和处理器1001;所述存储器1002通过通信总线1003和所述处理器1001连接,用于存储所述处理器1001可执行的计算机指令;所述处理器1001用于从所述存储器1001读取计算机指令以实现探测装置外参数标定方法,适用于对第一探测装置和第二探测装置之间的外参数进行标定,所述第一探测装置与所述第二探测装置的可视区域互不重叠,所述第一探测装置经过N次移动后的可视区域与第二探测装置在初始状态下的可视区域有重叠,所述N大于等于1,该方法包括:Fig. 8 is a schematic diagram of a data processing device provided by an embodiment of the present invention. Referring to FIG. 8, the data processing device 1000 includes at least a memory 1002 and a processor 1001; the memory 1002 is connected to the processor 1001 through a communication bus 1003, and is used to store computer instructions executable by the processor 1001; The processor 1001 is configured to read computer instructions from the memory 1001 to implement the method for calibrating the external parameters of the detection device, and is suitable for calibrating the external parameters between the first detection device and the second detection device. The visible area of the device and the second detection device do not overlap each other, the visible area of the first detection device after N moves and the visible area of the second detection device in the initial state overlap, the N Greater than or equal to 1, the method includes:
计算所述第一探测装置每次移动前后的坐标系之间的第一偏移参数;Calculating the first offset parameter between the coordinate systems before and after each movement of the first detection device;
计算所述第一探测装置经过N次移动后的坐标系与所述第二探测装置在初始状态下的坐标系之间的第二偏移参数;Calculating a second offset parameter between the coordinate system of the first detection device after N moves and the coordinate system of the second detection device in the initial state;
根据所述第一偏移参数和所述第二偏移参数计算所述第一探测装置和所述第二探测装置之间的外参数。Calculating an external parameter between the first detection device and the second detection device according to the first offset parameter and the second offset parameter.
可选的,所述处理器1001还用于从所述存储器1002读取计算机指令以实现:Optionally, the processor 1001 is further configured to read computer instructions from the memory 1002 to implement:
分别获取所述第一探测装置在每次移动前后的可视区域的点云,根据获取的所述每次移动前后的可视区域的点云计算所述第一偏移参数;其中, 所述第一探测装置在每次移动前后的可视区域有重叠区域。Obtain the point cloud of the visible area of the first detection device before and after each movement respectively, and calculate the first offset parameter according to the obtained point cloud of the visible area before and after each movement; wherein, The visible area of the first detection device before and after each movement has an overlapping area.
可选的,所述处理器1001还用于从所述存储器1002读取计算机指令以实现:Optionally, the processor 1001 is further configured to read computer instructions from the memory 1002 to implement:
建立所述第一探测装置每次移动前的可视区域和移动后的可视区域的重叠区域的点云所要满足的第一坐标关系函数;Establishing a first coordinate relationship function to be satisfied by the point cloud of the overlapping area of the visible area before the movement of the first detection device and the visible area after the movement;
根据所述第一坐标关系函数的系数建立第一目标函数,通过获取的所述每次移动前后的可视区域的点云将所述第一目标函数最小化,计算得到第一旋转矩阵和第一平移矩阵。A first objective function is established according to the coefficients of the first coordinate relationship function, and the first objective function is minimized by obtaining the point cloud of the visible area before and after each movement, and the first rotation matrix and the first rotation matrix are calculated. A translation matrix.
可选的,所述处理器1001还用于从所述存储器1002读取计算机指令以实现:Optionally, the processor 1001 is further configured to read computer instructions from the memory 1002 to implement:
根据所述第一旋转矩阵和第一平移矩阵计算得到第一转移矩阵。The first transfer matrix is calculated according to the first rotation matrix and the first translation matrix.
可选的,所述处理器1001还用于从所述存储器1002读取计算机指令以实现:Optionally, the processor 1001 is further configured to read computer instructions from the memory 1002 to implement:
获取所述第一探测装置经过N次移动后的可视区域的点云与所述第二探测装置在初始状态下的可视区域的点云,根据所述第一探测装置经过N次移动后的可视区域的点云与所述第二探测装置在初始状态下的可视区域的点云计算所述第二偏移参数。Obtain the point cloud of the visible area of the first detection device after N moves and the point cloud of the visible area of the second detection device in the initial state, according to the point cloud of the first detection device after N moves The second offset parameter is calculated from the point cloud of the visible area and the point cloud of the visible area of the second detection device in the initial state.
可选的,所述处理器1001还用于从所述存储器1002读取计算机指令以实现:Optionally, the processor 1001 is further configured to read computer instructions from the memory 1002 to implement:
建立所述第一探测装置经过N次移动后的可视区域和第二探测装置在初始状态下的可视区域的重叠区域的点云所要满足的第二坐标关系函数;Establishing a second coordinate relationship function to be satisfied by the point cloud of the overlapping area of the visible area of the first detection device after N moves and the visible area of the second detection device in the initial state;
根据所述第二坐标关系函数的系数建立第二目标函数,通过获取的所述第一探测装置经过N次移动后的可视区域的点云与所述第二探测装置在初始状态下的可视区域的点云将所述第二目标函数最小化,计算得到第二旋转矩阵和第二平移矩阵。A second objective function is established according to the coefficients of the second coordinate relationship function, and the obtained point cloud of the visible area of the first detection device after N moves and the initial state of the second detection device The point cloud of the viewing area minimizes the second objective function, and the second rotation matrix and the second translation matrix are calculated.
可选的,所述处理器1001还用于从所述存储器1002读取计算机指令以实现:Optionally, the processor 1001 is further configured to read computer instructions from the memory 1002 to implement:
根据所述第二旋转矩阵和第二平移矩阵计算得到第二转移矩阵。The second transfer matrix is calculated according to the second rotation matrix and the second translation matrix.
可选的,所述处理器1001还用于从所述存储器1002读取计算机指令以实现:Optionally, the processor 1001 is further configured to read computer instructions from the memory 1002 to implement:
将所述第一探测装置每次移动计算得到的第一偏移参数分别相乘,然后与所述第二偏移参数相乘,得到所述第一探测装置与所述第二探测装置之间的外参数。Multiply the first offset parameter calculated for each movement of the first detection device, and then multiply it with the second offset parameter to obtain the difference between the first detection device and the second detection device The external parameters.
可选的,所述第一探测装置和所述第二探测装置围绕同一个中心点同时启动旋转。Optionally, the first detection device and the second detection device simultaneously start to rotate around the same center point.
可选的,所述第一探测装置向靠近所述第二探测装置的方向旋转。Optionally, the first detection device rotates in a direction approaching the second detection device.
可选的,所述处理器1001还用于从所述存储器1002读取计算机指令以实现:Optionally, the processor 1001 is further configured to read computer instructions from the memory 1002 to implement:
根据所述第一探测装置与所述第二探测装置之间的外参数,和所述第二探测装置与其他探测器之间的外参数,计算所述第一探测装置与所述其他探测器之间的外参数。According to the external parameters between the first detection device and the second detection device, and the external parameters between the second detection device and other detectors, calculate the first detection device and the other detectors The external parameters between.
可选的,所述第一探测装置和所述第二探测装置均包括以下至少一种:激光雷达、毫米波雷达、超声波雷达。Optionally, both the first detection device and the second detection device include at least one of the following: lidar, millimeter wave radar, and ultrasonic radar.
可选的,上述的数据处理装置为上位机。Optionally, the aforementioned data processing device is a host computer.
可选的,上述的数据处理装置设置在探测装置中。Optionally, the aforementioned data processing device is provided in the detection device.
本发明实施例还提供了一种探测系统,参照图9所示,包括多个探测装置和上述的数据处理装置1000,所述多个探测装置包括第一探测装置60和第二探测装置70(图中仅示出了两个探测装置);所述多个探测装置安装于同一载体(图中未示出)上,所述载体包括:可移动平台,通过所述可移动平台带动所述探测装置移动。The embodiment of the present invention also provides a detection system. As shown in FIG. 9, it includes a plurality of detection devices and the above-mentioned data processing device 1000, and the plurality of detection devices includes a first detection device 60 and a second detection device 70 ( Only two detection devices are shown in the figure); the multiple detection devices are mounted on the same carrier (not shown in the figure), and the carrier includes: a movable platform through which the detection device is driven The device moves.
可选的,上述的可移动平台包括:车辆、飞行器和转台中的任意一种。上述的转台可以是安装于车辆或者飞行器上,通过转台的转动带动探测装置的转动进行外参数标定。Optionally, the above-mentioned movable platform includes any one of a vehicle, an aircraft, and a turntable. The above-mentioned turntable may be installed on a vehicle or an aircraft, and the rotation of the turntable drives the rotation of the detection device for external parameter calibration.
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。As for the device embodiment, since it basically corresponds to the method embodiment, the relevant part can refer to the part of the description of the method embodiment. The device embodiments described above are merely illustrative. The units described 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 it can be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the objectives of the solutions of the embodiments. Those of ordinary skill in the art can understand and implement it without creative work.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply one of these entities or operations. There is any such actual relationship or order between. The terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device including a series of elements includes not only those elements, but also other elements not explicitly listed Elements, or also include elements inherent to such processes, methods, articles, or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other same elements in the process, method, article, or equipment that includes the element.
以上对本发明实施例所提供的方法和装置进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The methods and devices provided by the embodiments of the present invention are described in detail above. Specific examples are used in this article to illustrate the principles and implementations of the present invention. The descriptions of the above embodiments are only used to help understand the methods and methods of the present invention. Core idea; At the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, the content of this specification should not be construed as limiting the present invention .

Claims (25)

  1. 一种探测装置外参数标定方法,其特征在于,适用于对第一探测装置和第二探测装置之间的外参数进行标定,所述第一探测装置与所述第二探测装置的可视区域互不重叠,所述第一探测装置经过N次移动后的可视区域与第二探测装置在初始状态下的可视区域有重叠,所述N大于等于1,该方法包括:A method for calibrating external parameters of a detection device, characterized in that it is suitable for calibrating external parameters between a first detection device and a second detection device, and the visible area of the first detection device and the second detection device Do not overlap each other, the visible area of the first detection device after N moves and the visible area of the second detection device in the initial state overlap, and the N is greater than or equal to 1. The method includes:
    计算所述第一探测装置每次移动前后的坐标系之间的第一偏移参数;Calculating the first offset parameter between the coordinate systems before and after each movement of the first detection device;
    计算所述第一探测装置经过N次移动后的坐标系与所述第二探测装置在初始状态下的坐标系之间的第二偏移参数;Calculating a second offset parameter between the coordinate system of the first detection device after N moves and the coordinate system of the second detection device in the initial state;
    根据所述第一偏移参数和所述第二偏移参数计算所述第一探测装置和所述第二探测装置之间的外参数。Calculating an external parameter between the first detection device and the second detection device according to the first offset parameter and the second offset parameter.
  2. 根据权利要求1所述的方法,其特征在于,所述计算所述第一探测装置每次移动前后的坐标系之间的第一偏移参数,包括:The method according to claim 1, wherein the calculating the first offset parameter between the coordinate systems before and after each movement of the first detection device comprises:
    分别获取所述第一探测装置在每次移动前后的可视区域的点云,根据获取的所述每次移动前后的可视区域的点云计算所述第一偏移参数;其中,所述第一探测装置在每次移动前后的可视区域有重叠区域。Obtain the point cloud of the visible area of the first detection device before and after each movement respectively, and calculate the first offset parameter according to the obtained point cloud of the visible area before and after each movement; wherein, The visible area of the first detection device before and after each movement has an overlapping area.
  3. 根据权利要求2所述的方法,其特征在于,所述根据获取的所述每次移动前后的可视区域的点云计算所述第一偏移参数,包括:The method according to claim 2, wherein the calculating the first offset parameter according to the acquired point cloud of the visible area before and after each movement comprises:
    建立所述第一探测装置每次移动前的可视区域和移动后的可视区域的重叠区域的点云所要满足的第一坐标关系函数;Establishing a first coordinate relationship function to be satisfied by the point cloud of the overlapping area of the visible area before the movement of the first detection device and the visible area after the movement;
    根据所述第一坐标关系函数的系数建立第一目标函数,通过获取的所述每次移动前后的可视区域的点云将所述第一目标函数最小化,计算得到第一旋转矩阵和第一平移矩阵。A first objective function is established according to the coefficients of the first coordinate relationship function, and the first objective function is minimized by obtaining the point cloud of the visible area before and after each movement, and the first rotation matrix and the first rotation matrix are calculated. A translation matrix.
  4. 根据权利要求3所述的方法,其特征在于,在所述计算得到第一转移矩阵和第一平移矩阵后,还包括:The method according to claim 3, wherein after the first transition matrix and the first translation matrix are obtained by the calculation, the method further comprises:
    根据所述第一旋转矩阵和第一平移矩阵计算得到第一转移矩阵。The first transfer matrix is calculated according to the first rotation matrix and the first translation matrix.
  5. 根据权利要求1所述的方法,其特征在于,所述计算所述第一探测 装置经过N次移动后的坐标系与所述第二探测装置在初始状态下的坐标系之间的第二偏移参数,包括:The method according to claim 1, wherein the calculating the second deviation between the coordinate system of the first detection device after N moves and the coordinate system of the second detection device in the initial state Shift parameters, including:
    获取所述第一探测装置经过N次移动后的可视区域的点云与所述第二探测装置在初始状态下的可视区域的点云,根据所述第一探测装置经过N次移动后的可视区域的点云与所述第二探测装置在初始状态下的可视区域的点云计算所述第二偏移参数。Obtain the point cloud of the visible area of the first detection device after N moves and the point cloud of the visible area of the second detection device in the initial state, according to the point cloud of the first detection device after N moves The second offset parameter is calculated from the point cloud of the visible area and the point cloud of the visible area of the second detection device in the initial state.
  6. 根据权利要求5所述的方法,其特征在于,所述根据所述第一探测装置经过N次移动后的可视区域的点云与所述第二探测装置在初始状态下的可视区域的点云计算所述第二偏移参数,包括:The method according to claim 5, wherein the point cloud according to the visible area of the first detection device after N moves and the comparison of the visible area of the second detection device in the initial state Point cloud calculation of the second offset parameter includes:
    建立所述第一探测装置经过N次移动后的可视区域和第二探测装置在初始状态下的可视区域的重叠区域的点云所要满足的第二坐标关系函数;Establishing a second coordinate relationship function to be satisfied by the point cloud of the overlapping area of the visible area of the first detection device after N moves and the visible area of the second detection device in the initial state;
    根据所述第二坐标关系函数的系数建立第二目标函数,通过获取的所述第一探测装置经过N次移动后的可视区域的点云与所述第二探测装置在初始状态下的可视区域的点云将所述第二目标函数最小化,计算得到第二旋转矩阵和第二平移矩阵。A second objective function is established according to the coefficients of the second coordinate relationship function, and the obtained point cloud of the visible area of the first detection device after N moves and the initial state of the second detection device The point cloud of the viewing area minimizes the second objective function, and the second rotation matrix and the second translation matrix are calculated.
  7. 根据权利要求5所述的方法,其特征在于,在所述计算得到第二旋转矩阵和第二平移矩阵后,还包括:The method according to claim 5, characterized in that, after the second rotation matrix and the second translation matrix are obtained by the calculation, the method further comprises:
    根据所述第二旋转矩阵和第二平移矩阵计算得到第二转移矩阵。The second transfer matrix is calculated according to the second rotation matrix and the second translation matrix.
  8. 根据权利要求1所述的方法,其特征在于,所述依据所述第一偏移参数和第二偏移参数计算所述第一探测装置与所述第二探测装置之间的外参数,包括:The method according to claim 1, wherein the calculating an external parameter between the first detection device and the second detection device according to the first offset parameter and the second offset parameter comprises :
    将所述第一探测装置每次移动计算得到的第一偏移参数分别相乘,然后与所述第二偏移参数相乘,得到所述第一探测装置与所述第二探测装置之间的外参数。Multiply the first offset parameter calculated for each movement of the first detection device, and then multiply it with the second offset parameter to obtain the difference between the first detection device and the second detection device The external parameters.
  9. 根据权利要求1所述的方法,其特征在于,所述第一探测装置和所述第二探测装置围绕同一个中心点同时启动旋转。The method according to claim 1, wherein the first detection device and the second detection device simultaneously start to rotate around the same center point.
  10. 根据权利要求1所述的方法,其特征在于,所述第一探测装置向 靠近所述第二探测装置的方向旋转。The method according to claim 1, wherein the first detection device rotates toward the second detection device.
  11. 根据权利要求1所述的方法,其特征在于,还包括:The method according to claim 1, further comprising:
    根据所述第一探测装置与所述第二探测装置之间的外参数,和所述第二探测装置与其他探测装置之间的外参数,计算所述第一探测装置与所述其他探测装置之间的外参数。According to the external parameters between the first detection device and the second detection device, and the external parameters between the second detection device and other detection devices, calculate the first detection device and the other detection devices The external parameters between.
  12. 一种数据处理装置,其特征在于,至少包括存储器和处理器;所述存储器通过通信总线和所述处理器连接,用于存储所述处理器可执行的计算机指令;所述处理器用于从所述存储器读取计算机指令以实现探测装置外参数标定方法,适用于对第一探测装置和第二探测装置之间的外参数进行标定,所述第一探测装置与所述第二探测装置的可视区域互不重叠,所述第一探测装置经过N次移动后的可视区域与第二探测装置在初始状态下的可视区域有重叠,所述N大于等于1,该方法包括:A data processing device, characterized in that it includes at least a memory and a processor; the memory is connected to the processor through a communication bus, and is used to store computer instructions executable by the processor; The memory reads computer instructions to implement the method for calibrating the external parameters of the detection device, which is suitable for calibrating the external parameters between the first detection device and the second detection device. The viewing areas do not overlap each other, and the viewing area of the first detection device after N moves is overlapped with the viewing area of the second detection device in the initial state, and the N is greater than or equal to 1. The method includes:
    计算所述第一探测装置每次移动前后的坐标系之间的第一偏移参数;Calculating the first offset parameter between the coordinate systems before and after each movement of the first detection device;
    计算所述第一探测装置经过N次移动后的坐标系与所述第二探测装置在初始状态下的坐标系之间的第二偏移参数;Calculating a second offset parameter between the coordinate system of the first detection device after N moves and the coordinate system of the second detection device in the initial state;
    根据所述第一偏移参数和所述第二偏移参数计算所述第一探测装置和所述第二探测装置之间的外参数。Calculating an external parameter between the first detection device and the second detection device according to the first offset parameter and the second offset parameter.
  13. 根据权利要求12所述的装置,其特征在于,所述处理器还用于从所述存储器读取计算机指令以实现:The device according to claim 12, wherein the processor is further configured to read computer instructions from the memory to implement:
    分别获取所述第一探测装置在每次移动前后的可视区域的点云,根据获取的所述每次移动前后的可视区域的点云计算所述第一偏移参数;其中,所述第一探测装置在每次移动前后的可视区域有重叠区域。Obtain the point cloud of the visible area of the first detection device before and after each movement respectively, and calculate the first offset parameter according to the obtained point cloud of the visible area before and after each movement; wherein, The visible area of the first detection device before and after each movement has an overlapping area.
  14. 根据权利要求13所述的装置,其特征在于,所述处理器还用于从所述存储器读取计算机指令以实现:The device according to claim 13, wherein the processor is further configured to read computer instructions from the memory to implement:
    建立所述第一探测装置每次移动前的可视区域和移动后的可视区域的重叠区域的点云所要满足的第一坐标关系函数;Establishing a first coordinate relationship function to be satisfied by the point cloud of the overlapping area of the visible area before the movement of the first detection device and the visible area after the movement;
    根据所述第一坐标关系函数的系数建立第一目标函数,将所述第一目 标函数最小化,计算得到第一旋转矩阵和第一平移矩阵。A first objective function is established according to the coefficients of the first coordinate relationship function, the first objective function is minimized, and the first rotation matrix and the first translation matrix are calculated.
  15. 根据权利要求14所述的装置,其特征在于,所述处理器还用于从所述存储器读取计算机指令以实现:The device according to claim 14, wherein the processor is further configured to read computer instructions from the memory to implement:
    根据所述第一旋转矩阵和第一平移矩阵计算得到第一转移矩阵。The first transfer matrix is calculated according to the first rotation matrix and the first translation matrix.
  16. 根据权利要求12所述的装置,其特征在于,所述处理器还用于从所述存储器读取计算机指令以实现:The device according to claim 12, wherein the processor is further configured to read computer instructions from the memory to implement:
    获取所述第一探测装置经过N次移动后的可视区域的点云与所述第二探测装置在初始状态下的可视区域的点云,根据所述第一探测装置经过N次移动后的可视区域的点云与所述第二探测装置在初始状态下的可视区域的点云计算所述第二偏移参数。Obtain the point cloud of the visible area of the first detection device after N moves and the point cloud of the visible area of the second detection device in the initial state, according to the point cloud of the first detection device after N moves The second offset parameter is calculated from the point cloud of the visible area and the point cloud of the visible area of the second detection device in the initial state.
  17. 根据权利要求16所述的装置,其特征在于,所述处理器还用于从所述存储器读取计算机指令以实现:The device according to claim 16, wherein the processor is further configured to read computer instructions from the memory to implement:
    建立所述第一探测装置经过N次移动后的可视区域和第二探测装置在初始状态下的可视区域的重叠区域的点云所要满足的第二坐标关系函数;Establishing a second coordinate relationship function to be satisfied by the point cloud of the overlapping area of the visible area of the first detection device after N moves and the visible area of the second detection device in the initial state;
    根据所述第二坐标关系函数的系数建立第二目标函数,所述第二目标函数最小化,计算得到第二旋转矩阵和第二平移矩阵。A second objective function is established according to the coefficients of the second coordinate relationship function, the second objective function is minimized, and a second rotation matrix and a second translation matrix are calculated.
  18. 根据权利要求16所述的装置,其特征在于,所述处理器还用于从所述存储器读取计算机指令以实现:The device according to claim 16, wherein the processor is further configured to read computer instructions from the memory to implement:
    根据所述第二旋转矩阵和第二平移矩阵计算得到第二转移矩阵。The second transfer matrix is calculated according to the second rotation matrix and the second translation matrix.
  19. 根据权利要求12所述的装置,其特征在于,所述处理器还用于从所述存储器读取计算机指令以实现:The device according to claim 12, wherein the processor is further configured to read computer instructions from the memory to implement:
    将所述第一探测装置每次移动计算得到的第一偏移参数分别相乘,然后与所述第二偏移参数相乘,得到所述第一探测装置与所述第二探测装置之间的外参数。Multiply the first offset parameter calculated for each movement of the first detection device, and then multiply it with the second offset parameter to obtain the difference between the first detection device and the second detection device The external parameters.
  20. 根据权利要求12所述的装置,其特征在于,所述第一探测装置和所述第二探测装置围绕同一个中心点同时启动旋转。The device according to claim 12, wherein the first detection device and the second detection device simultaneously start to rotate around the same center point.
  21. 根据权利要求12所述的装置,其特征在于,所述第一探测装置向 靠近所述第二探测装置的方向旋转。The device according to claim 12, wherein the first detecting device rotates toward the second detecting device.
  22. 根据权利要求12所述的装置,其特征在于,所述处理器还用于从所述存储器读取计算机指令以实现:The device according to claim 12, wherein the processor is further configured to read computer instructions from the memory to implement:
    根据所述第一探测装置与所述第二探测装置之间的外参数,和所述第二探测装置与其他探测器之间的外参数,计算所述第一探测装置与所述其他探测器之间的外参数。According to the external parameters between the first detection device and the second detection device, and the external parameters between the second detection device and other detectors, calculate the first detection device and the other detectors The external parameters between.
  23. 根据权利要求12所述的装置,其特征在于,所述第一探测装置和所述第二探测装置均包括以下至少一种:激光雷达、毫米波雷达、超声波雷达。The device according to claim 12, wherein the first detection device and the second detection device both comprise at least one of the following: lidar, millimeter wave radar, and ultrasonic radar.
  24. 一种探测系统,其特征在于,包括:多个探测装置和权利要求12-23任一所述的数据处理装置,所述多个探测装置包括第一探测装置和第二探测装置;所述多个探测装置安装于同一载体上,所述载体包括:可移动平台,通过所述可移动平台带动所述探测装置移动。A detection system, comprising: a plurality of detection devices and the data processing device of any one of claims 12-23, the plurality of detection devices including a first detection device and a second detection device; The two detection devices are installed on the same carrier, and the carrier includes a movable platform through which the detection device is driven to move.
  25. 根据权利要求24所述的系统,其特征在于,所述可移动平台包括:车辆、飞行器和转台中的任意一种。The system according to claim 24, wherein the movable platform comprises any one of a vehicle, an aircraft, and a turntable.
PCT/CN2019/073990 2019-01-30 2019-01-30 Method for calibrating external parameters of detection device, data processing device and detection system WO2020154980A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2019/073990 WO2020154980A1 (en) 2019-01-30 2019-01-30 Method for calibrating external parameters of detection device, data processing device and detection system
CN201980005318.XA CN111771140A (en) 2019-01-30 2019-01-30 Detection device external parameter calibration method, data processing device and detection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/073990 WO2020154980A1 (en) 2019-01-30 2019-01-30 Method for calibrating external parameters of detection device, data processing device and detection system

Publications (1)

Publication Number Publication Date
WO2020154980A1 true WO2020154980A1 (en) 2020-08-06

Family

ID=71840661

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/073990 WO2020154980A1 (en) 2019-01-30 2019-01-30 Method for calibrating external parameters of detection device, data processing device and detection system

Country Status (2)

Country Link
CN (1) CN111771140A (en)
WO (1) WO2020154980A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112462350B (en) * 2020-12-10 2023-04-04 苏州一径科技有限公司 Radar calibration method and device, electronic equipment and storage medium
WO2022257138A1 (en) * 2021-06-11 2022-12-15 深圳市大疆创新科技有限公司 Calibration method and apparatus, and laser radar, detection system and storage medium
CN114646932B (en) * 2022-05-23 2022-10-21 深圳元戎启行科技有限公司 Radar external parameter calibration method and device based on external radar and computer equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107229043A (en) * 2017-05-22 2017-10-03 中国农业科学院农业资源与农业区划研究所 A kind of range sensor external parameters calibration method and system
CN108020825A (en) * 2016-11-03 2018-05-11 岭纬公司 Laser radar, Laser video camera head, the fusion calibration system of video camera and method
CN108226906A (en) * 2017-11-29 2018-06-29 深圳市易成自动驾驶技术有限公司 A kind of scaling method, device and computer readable storage medium
CN109001711A (en) * 2018-06-05 2018-12-14 北京智行者科技有限公司 Multi-line laser radar scaling method
US20180372852A1 (en) * 2017-06-22 2018-12-27 Baidu Online Network Technology (Beijing) Co., Ltd. Method and apparatus for calibration between laser radar and camera, device and storage medium
CN109215083A (en) * 2017-07-06 2019-01-15 华为技术有限公司 The method and apparatus of the calibrating external parameters of onboard sensor

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7643135B1 (en) * 2008-12-05 2010-01-05 Leica Geosystems Ag Telescope based calibration of a three dimensional optical scanner
CN101922974B (en) * 2010-08-31 2012-02-01 中国科学院西安光学精密机械研究所 Automatic calibration device and method for laser parameter performance test
CN107796370B (en) * 2016-08-30 2020-09-08 北京四维图新科技股份有限公司 Method and device for acquiring conversion parameters and mobile mapping system
WO2018218629A1 (en) * 2017-06-01 2018-12-06 深圳市大疆创新科技有限公司 Laser radar-based detection method and device and probing equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108020825A (en) * 2016-11-03 2018-05-11 岭纬公司 Laser radar, Laser video camera head, the fusion calibration system of video camera and method
CN107229043A (en) * 2017-05-22 2017-10-03 中国农业科学院农业资源与农业区划研究所 A kind of range sensor external parameters calibration method and system
US20180372852A1 (en) * 2017-06-22 2018-12-27 Baidu Online Network Technology (Beijing) Co., Ltd. Method and apparatus for calibration between laser radar and camera, device and storage medium
CN109215083A (en) * 2017-07-06 2019-01-15 华为技术有限公司 The method and apparatus of the calibrating external parameters of onboard sensor
CN108226906A (en) * 2017-11-29 2018-06-29 深圳市易成自动驾驶技术有限公司 A kind of scaling method, device and computer readable storage medium
CN109001711A (en) * 2018-06-05 2018-12-14 北京智行者科技有限公司 Multi-line laser radar scaling method

Also Published As

Publication number Publication date
CN111771140A (en) 2020-10-13

Similar Documents

Publication Publication Date Title
CN210038146U (en) Distance measurement module, distance measurement device and movable platform
CN111902730B (en) Calibration plate, depth parameter calibration method, detection device and calibration system
WO2020154980A1 (en) Method for calibrating external parameters of detection device, data processing device and detection system
CN210142187U (en) Distance detection device
WO2020082363A1 (en) Environment sensing system and mobile platform
CN209356678U (en) Range unit
US20220120899A1 (en) Ranging device and mobile platform
CN210199305U (en) Scanning module, range unit and movable platform
WO2020177076A1 (en) Detection apparatus initial-state calibration method and apparatus
WO2020237663A1 (en) Multi-channel lidar point cloud interpolation method and ranging apparatus
WO2020133384A1 (en) Laser ranging device and mobile platform
US20220082665A1 (en) Ranging apparatus and method for controlling scanning field of view thereof
US20210341588A1 (en) Ranging device and mobile platform
US20210333374A1 (en) Ranging apparatus and mobile platform
US20210333399A1 (en) Detection method, detection device, and lidar
WO2020142909A1 (en) Data synchronization method, distributed radar system and mobile platform
WO2020147121A1 (en) Rainfall measurement method, detection device, readable storage medium
WO2021026766A1 (en) Motor rotation speed control method and device for scanning module, and distance measurement device
US20210333369A1 (en) Ranging system and mobile platform
WO2020107379A1 (en) Reflectivity correction method for use in ranging apparatus, and ranging apparatus
WO2020133038A1 (en) Detection system and mobile platform provided with detection system
WO2022226984A1 (en) Method for controlling scanning field of view, ranging apparatus and movable platform
WO2020142879A1 (en) Data processing method, detection device, data processing device and movable platform
WO2020142893A1 (en) Radar access detection method, circuit and movable platform
WO2020150961A1 (en) Detection device and movable platform

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: 19913089

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19913089

Country of ref document: EP

Kind code of ref document: A1