All Packages Class Hierarchy This Package Previous Next Index
Interface EDU.gatech.cc.is.abstractrobot.BallSensor
- public interface BallSensor
Provides an interface to a soccer robot's ball sensor.
Copyright
(c)1997, 1998 Tucker Balch
- Version:
- $Revision: 1.3 $
- Author:
- Tucker Balch
-
getBall(long)
- Get a Vec2 that points to the ball.
-
getJustScored(long)
- Get an integer that indicates whether a scoring event
just occured.
getBall
public abstract 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 abstract 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.
All Packages Class Hierarchy This Package Previous Next Index