Robot position in 2d simulator

hi, I’m writing the final work for my degree and I’m trying to get the position of the robots because I’m would to train a client to always stay in front of the opposing robot. How can I get this information?