Implementation of robot protocol