|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdlife.robot.Controller
examples.dlife.vision.CokeCanTrackerV4L
public class CokeCanTrackerV4L
Controller that tracks the location of the Coke can in a video stream from a
DLifeVisionServer. This Controller uses several of the filters in
dlife.vision.filter to track the Coke can in the series of images in
the examples.dlife.vision.testImages.CokeCan directory. The Controller
indicates the location of the Coke can by drawing a dot on the "Raw Video"
window.
To run this example:
dlife.robot.gui.controlcenter
dLifeDist/examples/dlife/vision/CokeCanTrackerV4L.class as the
controller.
Controller is running it
will attempt to paint a light blue circle near the center of the Coke can in
the Raw Video window. Depending upon the lighting this may or may not work
well.
The source code for this class is contained in the file:
examples/dlife/vision/CokeCanTrackerV4L.java
| Constructor Summary | |
|---|---|
CokeCanTrackerV4L()
|
|
| Method Summary | |
|---|---|
void |
shutDown()
This method is invoked when the Shut Down button in the ControlCenter is clicked. |
void |
startUp(Robot myRobot)
This method is invoked automatically when the Start Up button in the ContolCenter is clicked. |
void |
step()
This method is invoked either once when the Step button is clicked or periodically when the Run button is clicked. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CokeCanTrackerV4L()
| Method Detail |
|---|
public void startUp(Robot myRobot)
throws VideoSourceCreationFailedException
dlife.robot.Controller
startUp in class ControllermyRobot - the Robot that this Controller will be controlling.
VideoSourceCreationFailedExceptionpublic void step()
dlife.robot.Controller
step in class Controllerpublic void shutDown()
dlife.robot.Controller
shutDown in class Controller
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||