Added basic logic for obstacle type detection