EDU.gatech.cc.is.abstractrobot
Interface GoalSensor
- All Known Subinterfaces:
- SocSmall
- public interface GoalSensor
Provides an abstract interface to the goal sensing hardware of
a soccer robot.
Copyright
(c)1997, 1998 Tucker Balch
Method Summary |
Vec2 |
getOpponentsGoal(long timestamp)
Get a Vec2 that points to the opponent's goal. |
Vec2 |
getOurGoal(long timestamp)
Get a Vec2 that points to the team's goal. |
getOpponentsGoal
public Vec2 getOpponentsGoal(long timestamp)
- Get a Vec2 that points to the opponent's goal. This is the one
to get the ball across to score.
- Parameters:
timestamp
- only get new information
if timestamp > than last call or timestamp == -1.- Returns:
- the sensed location of the goal
- See Also:
Vec2
getOurGoal
public Vec2 getOurGoal(long timestamp)
- Get a Vec2 that points to the team's goal. This is the one
to defend.
- Parameters:
timestamp
- only get new information
if timestamp > than last call or timestamp == -1.- Returns:
- the sensed location of the goal
- See Also:
Vec2