Combining foot placement prediction with obstacle detection to detect tripping