Collision Avoidance using Lidar Data on a Mobile Robot