|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnao.motion.RedBallFinder
public class RedBallFinder
Uses the in-built ball tracking to locate red balls and then attempts to align the ball ready for picking or kicking.
Constructor Summary | |
---|---|
RedBallFinder(ExtendedNao nao)
|
Method Summary | |
---|---|
boolean |
alignBall(double targetX,
double targetY)
Given a visible ball, walk towards the ball and align it with the specified target point. |
boolean |
lookAround()
Look around for the ball (using the head only). |
boolean |
wanderAround()
Wander randomly around looking for the ball. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RedBallFinder(ExtendedNao nao)
Method Detail |
---|
public boolean lookAround()
public boolean wanderAround()
public boolean alignBall(double targetX, double targetY)
targetX
- The desired X co-ordinate of the ball after alignment (in metres)targetY
- The desired Y co-ordinate of the ball after alignment (in metres)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |