|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public int getNumObjectsCarrying(long timestamp)
timestamp
- only get new information
if timestamp > than last call or timestamp == -1.public boolean pickup(long timestamp)
timestamp
- only get new information
if timestamp > than last call or timestamp == -1.public void drop(long timestamp)
timestamp
- only get new information
if timestamp > than last call or timestamp == -1.position
- the desired position from 0 to 1.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |