Design and implementation of wireless obstacle detection system for safe locomotion