Encoders For Obstacle detection