Beispiel #1
0
  /** Make the Robot navigate to the closest node to the basket, then process to defend. */
  public void start() {
    navigator.defineRestrictions(true);

    // node 69 should be the tile just in front of basket
    navigator.travelPath(navigator.searchNode(69));
    robotCtrl.turnTo(90);
    robotCtrl.goToIntersect();
    robotCtrl.turn(180);
    deployMechanism();
    robotCtrl.goBackward(25);
  }