A multipurpose autonomous robot for target recognition in unknown environments