public class PlannerEx1 extends Planner { // ..... // Add your instance variables here // ..... // Constructor for the planner public PlannerEx1() { } // Called when the planner receives a pose from the tracker public void receivedPoseFromTracker(Pose p) { byte[] outData = new byte[6]; outData[0] = (byte)(p.x / 256); outData[1] = (byte)(p.x % 256); outData[2] = (byte)(p.y / 256); outData[3] = (byte)(p.y % 256); outData[4] = (byte)(p.angle / 256); outData[5] = (byte)(p.angle % 256); sendDataToRobot(outData); } // Called when the planner receives data from the robot public void receivedDataFromRobot(int[] data) { } // Called when the planner receives data from another station public void receivedDataFromStation(int stationId, int[] data) { } }