visit
It’s critical that we familiarise with the coordinate system of LiDAR to process point clouds generated by the sensor mounted on an autonomous car. In this post, we will look into the coordinate system that is used by LiDARs.
LIDAR — Light Detection and Ranging — is used to find the precise distance of objects in relation to us. When a laser pulse is emitted, its time-of-shooting and direction are registered. The laser pulse travels through the air until it hits an obstacle which reflects some of the energy. The time-of-acquisition and power received are registered by the sensor after receiving the portion of energy. The spherical coordinates of the obstacle are calculated using time-of-acquisition which is returned by the sensor along with power received(as reflectance) after each scan. As LiDAR sensor returns reading in spherical coordinates, let’s brush up with the spherical coordinate system.As you can see from the above diagram, the azimuth angle is in X-Y plane measured from X-axis and polar angle is in Z-Y plane measured from Z axis. From the above diagram, we can get the following equations for converting a Cartesian coordinate to spherical coordinates.
We can derive cartesian coordinates from spherical coordinates using below equations.
Cartesian coordinates can be derived from the following equations.
The Cartesian coordinate system is easy to manipulate and hence most of the time we need to convert spherical coordinates to a Cartesian system using the above equations. So a computation is necessary to convert the spherical data from the sensor to Cartesian coordinates using the above equations. Drivers of LiDAR sensors usually do that for us. For example, Velodyne LiDARs sensors provide a ROS package- for converting the coordinate system.
A car coordinate system with LiDAR mounted on it. Above diagram shows the Cartesian coordinate system of a sensor mounted on a car. So in this post, we learned on how a LiDAR calculates the distance and the coordinate system involved.