EDU.gatech.cc.is.abstractrobot
Interface MultiCarry

All Known Subinterfaces:
RescueVan

public interface MultiCarry

The MultiCarry class provides an abstract interface to the hardware of a robot that can carry several things.

Copyright (c)1997, 1998 Tucker Balch


Method Summary
 void drop(long timestamp)
          Drop one object, in LIFO order.
 int getNumObjectsCarrying(long timestamp)
          Get the number of objects we are carrying.
 boolean pickup(long timestamp)
          Pick up the closest pickupable object.
 

Method Detail

getNumObjectsCarrying

public int getNumObjectsCarrying(long timestamp)
Get the number of objects we are carrying.
Parameters:
timestamp - only get new information if timestamp > than last call or timestamp == -1.
Returns:
number of objects.

pickup

public boolean pickup(long timestamp)
Pick up the closest pickupable object. Will fail if no object in range, or if full capacity.
Parameters:
timestamp - only get new information if timestamp > than last call or timestamp == -1.
Returns:
true if success, false otherwise.

drop

public void drop(long timestamp)
Drop one object, in LIFO order.
Parameters:
timestamp - only get new information if timestamp > than last call or timestamp == -1.
position - the desired position from 0 to 1.
Returns:
true if success, false otherwise.