Using PTAM on Android to detect obstacles