Defining and identifying obstacles