EDU.gatech.cc.is.abstractrobot
Interface BallSensor
- All Known Subinterfaces:
- SocSmall
- public interface BallSensor
Provides an interface to a soccer robot's ball sensor.
Copyright
(c)1997, 1998 Tucker Balch
Method Summary |
Vec2 |
getBall(long timestamp)
Get a Vec2 that points to the ball. |
int |
getJustScored(long timestamp)
Get an integer that indicates whether a scoring event
just occured. |
getBall
public Vec2 getBall(long timestamp)
- Get a Vec2 that points to the ball.
- Parameters:
timestamp
- only get new information
if timestamp > than last call or timestamp == -1.- Returns:
- the sensed location of the ball
- See Also:
Vec2
getJustScored
public int getJustScored(long timestamp)
- Get an integer that indicates whether a scoring event
just occured.
- Parameters:
timestamp
- only get new information
if timestamp > than last call or timestamp == -1.- Returns:
- 1 if team just scored, -1 if scored against,
0 otherwise.