2D and 3D lidars