public class PlannerEx4 extends Planner { // Constructor for the planner public PlannerEx4() { setTraceFileUserHeaderData("Sonar,EncLeft,EncRight"); } // Called when the planner receives a pose from the tracker public void receivedPoseFromTracker(Pose p) { // USE THIS CODE ON STATION 1 ONLY String data = "(" + p.x + "," + p.y + "," + p.angle + ")"; sendDataToStation(2, data); sendDataToStation(3, data); } // 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) { // USE THIS CODE ON STATIONS 2 AND 3 System.out.println("Received from Station " + stationId + ": " + data); } }