Fixed assignment of Variable

Fixed assignment of 'robotPos' variable