public Agent() { // create the long range sensor longRangeSensor = new ProximitySensor(60, 0); // create the short range sensor for wall following shortRangeSensor = new ProximitySensor(5, 90); // create the movement interface movement = new Movement(this); random = new Random(); }
public Agent() { // create the short range sensor for wall following shortRangeSensor = new ProximitySensor(10, 10, 90); // Create the bumper sensor bumperSensor = new Bumper(12, 130); // create the movement interface movement = new Movement(); // create the cleaning module cleaner = new Cleaner(); random = new Random(); }