SMS dit: Local and global artificial potential functions in the control of mobile robots