Implemented a ranch protocol for robot commands.