Vehicles can be equipped with computing devices, networks, sensors and controllers to acquire information regarding the vehicle's environment and to operate the vehicle based on the information. Vehicle sensors can provide data concerning routes to be traveled and objects to be avoided in the vehicle's environment. Operation of the vehicle can rely upon acquiring accurate and timely information regarding objects in a vehicle's environment while the vehicle is being operated on a roadway.
Vehicles can be equipped to operate in both autonomous and occupant piloted mode. By a semi- or fully-autonomous mode, we mean a mode of operation wherein a vehicle can be piloted partly or entirely by a computing device as part of an information system having sensors and controllers. The vehicle can be occupied or unoccupied, but in either case the vehicle can be partly or completely piloted without assistance of an occupant. For purposes of this disclosure, an autonomous mode is defined as one in which each of vehicle propulsion (e.g., via a powertrain including an internal combustion engine and/or electric motor), braking, and steering are controlled by one or more vehicle computers; in a semi-autonomous mode the vehicle computer(s) control(s) one or two of vehicle propulsion, braking, and steering. In a non-autonomous vehicle, none of these are controlled by a computer.
A computing device in a vehicle can be programmed to acquire data regarding the external environment of a vehicle and to use the data to determine a vehicle path upon which to operate a vehicle in autonomous or semi-autonomous mode. A vehicle can operate on a roadway based on a vehicle path by determining commands to direct the vehicle's powertrain, braking, and steering components to operate the vehicle to travel along the path. The data regarding the external environment can include the location of one or more moving objects such as vehicles and pedestrians, etc., in an environment around a vehicle and can be used by a computing device in the vehicle to operate the vehicle.
Operating the vehicle based on acquiring data regarding the external environment can depend upon acquiring the data using vehicle sensors. Vehicle sensors can include lidar sensors, radar sensors, and video sensors operating at one or more of visible light or infrared light frequency ranges. Vehicle sensor can also include one or more of a global positioning system (GPS), an inertial measurement unit (IMU) and wheel encoders. Acquiring accurate data regarding an environment around a vehicle using vehicle sensors can depend upon accurately calibrating the vehicle sensors to ensure that the acquired data can be accurately combined. Calibrating the vehicle sensors means that data from each sensor is compared to an independently determined measurement, for example an external target with ground truth data regarding the locations and size of the target measured by a human operator or, as discussed herein, one or more measurements of objects located in an environment around a vehicle measured by one or more other sensors and can include converting the data from each vehicle sensor into global coordinates. In this fashion data regarding objects viewed by two or more calibrated sensors can be accurately combined as the same object, for example. Objects viewed by the vehicle sensors can include other vehicles and pedestrians, for example.
Disclosed herein is method including receiving initialization data for vehicle sensors including a first sensor, a second sensor and a third sensor, wherein the first sensor and the second sensor are a same type of sensor, and wherein initialization data is measurement of a common location on a fiducial target, determining a common coordinate system by a pair-wise evaluation of the initialization data between the first and second sensors and acquiring first, second, and third sensor data from the first, second, and third sensors respectively. The first, second, and third sensor data can be translated into the common coordinate system, errors in the first, second and third sensor data can be determined based on the common coordinate system and a transformation can be determined to correct the errors. One or more of the first, second, and third sensors can be calibrated with respect to the common coordinate system based on the determined transformation to remove the errors and a vehicle can be operated based on first, second, and third sensor data acquired by calibrated first, second and third sensors. Pair-wise evaluation of initialization data can include comparing the initialization data between one or more of the first and second sensors, the first and third sensors, and the second and third sensors.
Determining initialization data can be based on one or more of a global positioning system (GPS), an inertial measurement unit (IMU), and wheel encoders. Determining the common coordinate system can be based on acquiring sensor data that includes detecting a fiducial target in each of first and second sensor initialization data. Determining the common coordinate system can be based on third sensor initialization data by determining a location of fiducial data in the third sensor initialization data. A common feature in the first, second and third sensor data can be determined, wherein the common feature can be determined by locating an object in an environment around a vehicle with machine vision techniques. The error can be determined by comparing the locations of the object in each of the first, second, and third sensor data. The transformation can be determined based on minimizing the errors between the locations of the object in first, second, and third sensor data. The transformation can be updated and the first, second, and third sensors can be re-calibrated periodically as the vehicle is operated. The transformation can include translations in x, y, and z linear coordinates and rotations in roll, pitch, and yaw angular coordinates. The common coordinate system can be determined based on determining physical alignment data and data regarding fields of view of the first and second sensors. The transformations can minimize six-axis errors between first and second sensors. Operating the vehicle can be based on locating one or more objects in first, second and third sensor data. Determining errors in the first, second and third sensor data can include first decoupling the orientation and translation.
Further disclosed is a computer readable medium, storing program instructions for executing some or all of the above method steps. Further disclosed is a computer programmed for executing some or all of the above method steps, including a computer apparatus, programmed to receive initialization data for vehicle sensors including a first sensor, a second sensor and a third sensor, wherein the first sensor and the second sensor are a same type of sensor, and wherein initialization data is measurement of a common location on a fiducial target, determine a common coordinate system by a pair-wise evaluation of the initialization data between the first and second sensors and acquire first, second, and third sensor data from the first, second, and third sensors respectively. The first, second, and third sensor data can be translated into the common coordinate system, errors in the first, second and third sensor data can be determined based on the common coordinate system and a transformation can be determined to correct the errors. One or more of the first, second, and third sensors can be calibrated with respect to the common coordinate system based on the determined transformation to remove the errors and a vehicle can be operated based on first, second, and third sensor data acquired by calibrated first, second and third sensors. Pair-wise evaluation of initialization data can include comparing the initialization data between one or more of the first and second sensors, the first and third sensors, and the second and third sensors.
The computer can be further programmed to determine initialization data can be based on one or more of a global positioning system (GPS), an inertial measurement unit (IMU), and wheel encoders. Determining the common coordinate system can be based on acquiring sensor data that includes detecting a fiducial target in each of first and second sensor initialization data. Determining the common coordinate system can be based on third sensor initialization data by determining a location of fiducial data in the third sensor initialization data. A common feature in the first, second and third sensor data can be determined, wherein the common feature can be determined by locating an object in an environment around a vehicle with machine vision techniques. The error can be determined by comparing the locations of the object in each of the first, second, and third sensor data. The transformation can be determined based on minimizing the errors between the locations of the object in first, second, and third sensor data. The transformation can be updated and the first, second, and third sensors can be re-calibrated periodically as the vehicle is operated. The transformation can include translations in x, y, and z linear coordinates and rotations in roll, pitch, and yaw angular coordinates. The common coordinate system can be determined based on determining physical alignment data and data regarding fields of view of the first and second sensors. The transformations can minimize six-axis errors between first and second sensors. Determining errors in the first, second and third sensor data can include first decoupling the orientation and translation.
The computing device 115 includes a processor and a memory such as are known. Further, the memory includes one or more forms of computer-readable media, and stores instructions executable by the processor for performing various operations, including as disclosed herein. For example, the computing device 115 may include programming to operate one or more of vehicle brakes, propulsion (e.g., control of acceleration in the vehicle 110 by controlling one or more of an internal combustion engine, electric motor, hybrid engine, etc.), steering, climate control, interior and/or exterior lights, etc., as well as to determine whether and when the computing device 115, as opposed to a human operator, is to control such operations.
The computing device 115 may include or be communicatively coupled to, e.g., via a vehicle communications bus as described further below, more than one computing device, e.g., controllers or the like included in the vehicle 110 for monitoring and/or controlling various vehicle components, e.g., a powertrain controller 112, a brake controller 113, a steering controller 114, etc. The computing device 115 is generally arranged for communications on a vehicle communication network, e.g., including a bus in the vehicle 110 such as a controller area network (CAN) or the like; the vehicle 110 network can additionally or alternatively include wired or wireless communication mechanisms such as are known, e.g., Ethernet or other communication protocols.
Via the vehicle network, the computing device 115 may transmit messages to various devices in the vehicle and/or receive messages from the various devices, e.g., controllers, actuators, sensors, etc., including sensors 116. Alternatively, or additionally, in cases where the computing device 115 actually comprises multiple devices, the vehicle communication network may be used for communications between devices represented as the computing device 115 in this disclosure. Further, as mentioned below, various controllers or sensing elements such as sensors 116 may provide data to the computing device 115 via the vehicle communication network.
In addition, the computing device 115 may be configured for communicating through a vehicle-to-infrastructure (V-to-I) interface 111 with a remote server computer 120, e.g., a cloud server, via a network 130, which, as described below, includes hardware, firmware, and software that permits computing device 115 to communicate with a remote server computer 120 via a network 130 such as wireless Internet (Wi-Fi) or cellular networks. The computing device 115 may be configured for communicating through a vehicle-to-infrastructure (V-to-I) interface 111 with a remote server computer 120 via an edge computing device, where an edge computing device is defined as a computing device configured to be in communication with sensors and vehicles 110 local to a portion of a roadway, parking lot or parking structure, etc. V-to-I interface 111 may accordingly include processors, memory, transceivers, etc., configured to utilize various wired and/or wireless networking technologies, e.g., cellular, BLUETOOTH® and wired and/or wireless packet networks. Computing device 115 may be configured for communicating with other vehicles 110 through V-to-I interface 111 using vehicle-to-vehicle (V-to-V) networks, e.g., according to Dedicated Short Range Communications (DSRC) and/or the like, e.g., formed on an ad hoc basis among nearby vehicles 110 or formed through infrastructure-based networks. The computing device 115 also includes nonvolatile memory such as is known. Computing device 115 can log information by storing the information in nonvolatile memory for later retrieval and transmittal via the vehicle communication network and a vehicle to infrastructure (V-to-I) interface 111 to a server computer 120 or user mobile device 160.
As already mentioned, generally included in instructions stored in the memory and executable by the processor of the computing device 115 is programming for operating one or more vehicle 110 components, e.g., braking, steering, propulsion, etc., without intervention of a human operator. Using data received in the computing device 115, e.g., the sensor data from the sensors 116, the server computer 120, etc., the computing device 115 may make various determinations and/or control various vehicle 110 components and/or operations without a driver to operate the vehicle 110. For example, the computing device 115 may include programming to regulate vehicle 110 operational behaviors (i.e., physical manifestations of vehicle 110 operation) such as speed, acceleration, deceleration, steering, etc., as well as tactical behaviors (i.e., control of operational behaviors typically in a manner intended to achieve safe and efficient traversal of a route) such as a distance between vehicles and/or amount of time between vehicles, lane-change, minimum gap between vehicles, left-turn-across-path minimum, time-to-arrival at a particular location and intersection (without signal) minimum time-to-arrival to cross the intersection.
Controllers, as that term is used herein, include computing devices that typically are programmed to monitor and/or control a specific vehicle subsystem. Examples include a powertrain controller 112, a brake controller 113, and a steering controller 114. A controller may be an electronic control unit (ECU) such as is known, possibly including additional programming as described herein. The controllers may communicatively be connected to and receive instructions from the computing device 115 to actuate the subsystem according to the instructions. For example, the brake controller 113 may receive instructions from the computing device 115 to operate the brakes of the vehicle 110.
The one or more controllers 112, 113, 114 for the vehicle 110 may include known electronic control units (ECUs) or the like including, as non-limiting examples, one or more powertrain controllers 112, one or more brake controllers 113, and one or more steering controllers 114. Each of the controllers 112, 113, 114 may include respective processors and memories and one or more actuators. The controllers 112, 113, 114 may be programmed and connected to a vehicle 110 communications bus, such as a controller area network (CAN) bus or local interconnect network (LIN) bus, to receive instructions from the computing device 115 and control actuators based on the instructions.
Sensors 116 may include a variety of devices known to provide data via the vehicle communications bus. For example, a radar fixed to a front bumper (not shown) of the vehicle 110 may provide a distance from the vehicle 110 to a next vehicle in front of the vehicle 110, or a global positioning system (GPS) sensor disposed in the vehicle 110 may provide geographical coordinates of the vehicle 110. The distance(s) provided by the radar and/or other sensors 116 and/or the geographical coordinates provided by the GPS sensor may be used by the computing device 115 to operate the vehicle 110 autonomously or semi-autonomously, for example.
The vehicle 110 is generally a land-based vehicle 110 capable of autonomous and/or semi-autonomous operation and having three or more wheels, e.g., a passenger car, light truck, etc. The vehicle 110 includes one or more sensors 116, the V-to-I interface 111, the computing device 115 and one or more controllers 112, 113, 114. The sensors 116 may collect data related to the vehicle 110 and the environment in which the vehicle 110 is operating. By way of example, and not limitation, sensors 116 may include, e.g., altimeters, cameras, LIDAR, radar, ultrasonic sensors, infrared sensors, pressure sensors, accelerometers, gyroscopes, temperature sensors, pressure sensors, hall sensors, optical sensors, voltage sensors, current sensors, mechanical sensors such as switches, etc. The sensors 116 may be used to sense the environment in which the vehicle 110 is operating, e.g., sensors 116 can detect phenomena such as weather conditions (precipitation, external ambient temperature, etc.), the grade of a road, the location of a road (e.g., using road edges, lane markings, etc.), or locations of target objects such as neighboring vehicles 110. The sensors 116 may further be used to collect data including dynamic vehicle 110 data related to operations of the vehicle 110 such as velocity, yaw rate, steering angle, engine speed, brake pressure, oil pressure, the power level applied to controllers 112, 113, 114 in the vehicle 110, connectivity between components, and accurate and timely performance of components of the vehicle 110.
Combining sensor data from sensors of different modalities can be enabled by first converting the data from each sensor into a common coordinate system. A common coordinate system can be based on a global coordinate system such as latitude, longitude and altitude, where six-axis DoF data can be expressed as translations in x, y, and z linear coordinates and rotations in roll, pitch, and yaw angular coordinates with respect to the x, y, and z axes respectively, where the x, y, and z axes are defined with respect to the earth's surface. Lidar and video sensors are calibrated with respect to a common coordinate system, where the common coordinate system is defined with respect to a location on the vehicle 110, instead of a global coordinate system because they are mounted on a moving vehicle 110 that is in motion with respect to the global coordinate system. To transform sensor data into a common coordinate system, the sensor can be first aligned, where alignment refers to mechanically arranging the sensor with respect to the platform. Mounting lidar and video sensors 204, 206, 208 in a sensor housing 202 can permit initial mechanical alignment of lidar and video sensors 204, 206, 208 prior to the housing 202 being mounted on the vehicle 110. In examples where the lidar and video sensors 204, 206, 208 are mounted in a distributed fashion on the vehicle 110 as discussed above the lidar and video sensors 204, 206, 208 can be initially mechanically aligned following mounting on the vehicle 110.
Following initial mechanical alignment, sensors can be calibrated, where calibration is defined as determining where a sensor field of view is located with respect to a common coordinate system. In spite of initial mechanical alignment of lidar and video sensors 204, 206, 208, differences in six-axis degree of freedom (DoF) alignment of lidar and video sensors 204, 206, 208 can require that lidar and video sensors 204, 206, 208 be calibrated to permit sensor data to be combined in a common coordinate system. In addition, normal misalignment due to wear, vibration and drift in sensor components can require that lidar and video sensors 204, 206, 208 be re-aligned periodically to ensure accurate sensor fusion. Techniques described herein improve multi-modal sensor calibration and re-calibration in a common coordinate system by determining errors between pairs of sensors and determining transformations that calibrate sensors on the fly while a vehicle 110 is operating without operator intervention or the use of external fiducial markers, referred to herein as fiducial targets. Errors are defined as differences in measured locations of objects including fiducial targets in sensor data acquired by two or more sensors.
Techniques described herein determines a transformation {RL
In
R
L
L
=(RC
t
C
L
=−(RL
Once all of the pair-wise relative position combinations have been initialized, a computing device 115 in a vehicle 110 can begin sensing the environment and acquiring lidar data on the fly from the perspective of each lidar sensor 204, 206 independently. Note that this technique is not limited to a vehicle 110 and can be applied to any mobile platform equipped with multi-modal sensors including drones, boats, etc. As new lidar data becomes available this technique takes the new lidar data and learns a better estimate of extrinsic calibration parameters by minimizing error or mis-alignment between the new lidar data and previous estimates of the calibration parameters. Assessment of error or mis-alignment is done by comparing distances between corresponding detections where correspondence is simplified to be computed through nearest neighbor associations. This association is valid provided our initialization estimates or previous estimates are good enough to bring data from the sensors close to but not into exact alignment.
Mathematically, the problem of online learning extrinsic calibration parameters based on corrections to errors, or mis-alignments of sensor fields of view and previous estimates of the parameters is formalized as:
Here, the first term is measuring error or mis-alignment through sum of distances between object detection representations, while the second and third terms ΔF: {SO(3), SO(3)}→+ and ∥·
:
→
+ constrain updates to R and t, respectively, to vary smoothly from its previous estimates, where SO(3) denotes a special orthogonal group in three dimensions that corresponds to rotations in three space. The first term measuring error of miss-alignment can be described as:
where the terms y1
ΔF(R,RL
This function measures the distance between two rotations and has the property of being differentiable in the manifold of SO(3). One thing to note is that log: RN×N→RN×N is the matrix logarithm with inverse mapping exp: RN×N→RN×N and Tr is the matrix trace. Further regarding equation (3), the search space is over the special Euclidean group denoted by SE(3), where SE(3) is a special Euclidian group in three dimensions and corresponds to a standard three dimensional vector space, and the scalar parameters λ1, λ2∈[0, 1] are weighting factors for each of the corresponding terms.
Techniques discussed herein simplify a solution to equation (3) by first decoupling the orientation and translation. This can be achieved by first centering the signature detection representations. Here, we denote the centered detection representations as
Equation (6) can be solved by an iterative algorithm to solve (6) for rotations in the Riemannian manifold R∈SO(3) that consists of matrix exponentiated gradient descent updates. The solution for equation (7) is closed and can be obtained by computing the gradient of equation (7), setting it equal to zero and then solving for t.
After updating the calibration parameters between lidar sensors L1 and L2 the update can be propagated based on the cycle consistency constraint to the calibration parameters of the remaining multi-modal combinations (i.e., L1-to-C1 and L2-to-C1), where calibration parameters are estimates of sensor error or mis-alignment. Such an update is propagated by alternating between updating {RC
Techniques described herein improve sensor calibration by handling difficulties associated to alignment of data of multiple modalities and/or multiple resolutions. Examples of these difficulties include finding features invariant to each modality and finding techniques to either down sample the modality of higher resolution or super-resolving the modality of lower resolution to make comparisons by matching sensor resolutions. Techniques describe herein use spatial and temporal data to constraint alignments which in general yields better estimates of calibration parameters. In addition, techniques described herein are capable of both doing online or real-time verification of the calibration parameters and correcting for mis-calibrations without human intervention or fiducial targets 300 placed in the scene after initial calibration. Techniques described herein are cheap from a computational standpoint and offer an algorithmic solution to mass deployment scalability and use components already available in most autonomous vehicles 110 and traffic infrastructure systems 100.
Process 500 begins at block 502, where a computing device 115 acquires initial calibration data from two or more vehicle sensors, where at least two of the sensors are of the same type. Initial calibration data can be acquired to include a fiducial target 300 in the fields of view of the two or more sensors. The fiducial data can be determined by processing the acquired data from the fiducial target 300 using machine vision techniques as discussed above in relation to
At block 504 the computing device 115 processes the acquired data to determine locations of features corresponding to the fiducial target 300 using machine vision techniques. The feature locations are converted from pixel coordinates relative to each sensor into a common coordinate system based on initial alignment data. The sensors can then be initially calibrated by modifying the transformations that convert pixel locations to six-axis common coordinate locations to cause the common feature on the fiducial targets 300, as defined above in relation to
At block 506 sensor data is acquired for two or more sensors and features determined in sensor data using machine vision techniques acquired by each of the sensors as translated into common coordinates using the initial transforms determined at block 504. The features determined in sensor data can be the locations of objects in an environment around a vehicle 110, including other vehicles and pedestrians, for example.
At block 508 errors are determined by comparing the six-axis locations of features in common coordinates between pairs of sensors.
At block 510 the errors are used to determine six-axis transformations that can be used to calibrate the sensors based on calculating updates to the calibration transformations based on equations (1)-(9), above. This process can be repeated periodically to re-calibrate the two or more sensors periodically as the vehicle 110 is operated on roadways to compensate for mis-calibration of the sensors caused by vibration, shock, or other causes of sensor misalignment that can occur.
At block 512 common coordinate locations of objects including other vehicles and pedestrians can be used to operate the vehicle 110. For example, common coordinate locations of objects can be provided to a computer that autonomously or semi-autonomously operates the vehicle 110, e.g., according to known techniques. For example, vehicle 110 can determine a vehicle path upon which to operate the vehicle 110 which avoids contact or near-contact with the determined objects. Vehicle 110 can operate on the vehicle path by controlling vehicle powertrain, steering, and brakes to cause the vehicle 110 to travel along the path and thereby avoid contact with the determined objects. Following block 512 process 500 ends.
Computing devices such as those discussed herein generally each include commands executable by one or more computing devices such as those identified above, and for carrying out blocks or steps of processes described above. For example, process blocks discussed above may be embodied as computer-executable commands.
Computer-executable commands may be compiled or interpreted from computer programs created using a variety of programming languages and/or technologies, including, without limitation, and either alone or in combination, Java™, C, C++, Python, Julia, SCALA, Visual Basic, Java Script, Perl, HTML, etc. In general, a processor (e.g., a microprocessor) receives commands, e.g., from a memory, a computer-readable medium, etc., and executes these commands, thereby performing one or more processes, including one or more of the processes described herein. Such commands and other data may be stored in files and transmitted using a variety of computer-readable media. A file in a computing device is generally a collection of data stored on a computer readable medium, such as a storage medium, a random access memory, etc.
A computer-readable medium includes any medium that participates in providing data (e.g., commands), which may be read by a computer. Such a medium may take many forms, including, but not limited to, non-volatile media, volatile media, etc. Non-volatile media include, for example, optical or magnetic disks and other persistent memory. Volatile media include dynamic random access memory (DRAM), which typically constitutes a main memory. Common forms of computer-readable media include, for example, a floppy disk, a flexible disk, hard disk, magnetic tape, any other magnetic medium, a CD-ROM, DVD, any other optical medium, punch cards, paper tape, any other physical medium with patterns of holes, a RAM, a PROM, an EPROM, a FLASH-EEPROM, any other memory chip or cartridge, or any other medium from which a computer can read.
All terms used in the claims are intended to be given their plain and ordinary meanings as understood by those skilled in the art unless an explicit indication to the contrary in made herein. In particular, use of the singular articles such as “a,” “the,” “said,” etc. should be read to recite one or more of the indicated elements unless a claim recites an explicit limitation to the contrary.
The term “exemplary” is used herein in the sense of signifying an example, e.g., a reference to an “exemplary widget” should be read as simply referring to an example of a widget.
The adverb “approximately” modifying a value or result means that a shape, structure, measurement, value, determination, calculation, etc. may deviate from an exactly described geometry, distance, measurement, value, determination, calculation, etc., because of imperfections in materials, machining, manufacturing, sensor measurements, computations, processing time, communications time, etc.
In the drawings, the same reference numbers indicate the same elements. Further, some or all of these elements could be changed. With regard to the media, processes, systems, methods, etc. described herein, it should be understood that, although the steps or blocks of such processes, etc., have been described as occurring according to a certain ordered sequence, such processes could be practiced with the described steps performed in an order other than the order described herein. It further should be understood that certain steps could be performed simultaneously, that other steps could be added, or that certain steps described herein could be omitted. In other words, the descriptions of processes herein are provided for the purpose of illustrating certain embodiments, and should in no way be construed so as to limit the claimed invention.