/** * A shortcut for dispatching a goal as subgoal of the active goal,, * and waiting for the subgoal to be finished (without timout). * @param subgoal The new subgoal. * @throws GoalFailureException when the goal fails. */ public void dispatchSubgoalAndWait(IGoal subgoal) { dispatchSubgoalAndWait(subgoal, -1); }