RLPark 1.0.0
Reinforcement Learning Framework in Java

WebcamRunnable.java

Go to the documentation of this file.
00001 package rlpark.plugin.opencv.runnables;
00002 
00003 import rlpark.plugin.opencv.FrameGrabber;
00004 import zephyr.plugin.core.api.Zephyr;
00005 import zephyr.plugin.core.api.synchronization.Clock;
00006 
00007 public class WebcamRunnable implements Runnable {
00008   private final Clock clock = new Clock();
00009   private final FrameGrabber webcam = new FrameGrabber(0);
00010 
00011   public WebcamRunnable() {
00012     Zephyr.advertise(clock, this);
00013   }
00014 
00015   @Override
00016   public void run() {
00017     while (clock.tick()) {
00018       webcam.grab();
00019     }
00020   }
00021 }
 All Classes Namespaces Files Functions Variables Enumerations
Zephyr
RLPark