Code for the robotics study