Code for robot in robotics