@Override public P getLastTrajectoryPoint() { return trajectoryPoints.getLast(); }
@Override public F getLastTrajectoryPoint() { return trajectoryPoints.getLast(); }
/** * Poll the most recent available command. * After calling this method, no new command will be available. * @param commandClassToPoll Used to know what type of command is to be polled. * @return the new command to be processed, returns null if there is no new available command. */ public <C extends Command<C, ?>> C pollNewestCommand(Class<C> commandClassToPoll) { return ((RecyclingArrayList<C>) pollNewCommands(commandClassToPoll)).getLast(); }