Object detection for collision avoidance from lidar point clouds