An anti-collision algorithm for robotic search-and-rescue tasks in unknown dynamic environments