Use this code to control a robot over Wifi by connecting to an Ethernet Arduino via Processing.
Upload Arduino code to the Arduino (and install necessary libraries).
Run the Processing controller code to connect to the Arduino and control the robot.