dLife Home Page

dlife.vision.cameras
Class DLifeVisionServerCamera

java.lang.Object
  extended by java.util.Observable
      extended by dlife.robot.Device
          extended by dlife.vision.Camera
              extended by dlife.vision.cameras.DLifeVisionServerCamera
All Implemented Interfaces:
Observer

public class DLifeVisionServerCamera
extends Camera

A Camera that displays streaming video from a dLife vision server.

To launch an DlifeVisionServerCamera in Stand Alone mode:

  1. Ensure that the basic dLife installation is done.
  2. Ensure that you have a dlife.vision.server running.
  3. Double click the: dlifeDist/UserScripts/DLifeVisionServerCamera file (Mac/Linux) or the dlifeDist/UserScripts/DLifeVisionServerCamera.bat file (Windows).

Version:
Sep 23, 2010
Author:
Grant Braught, Dickinson College

Field Summary
 
Fields inherited from class dlife.vision.Camera
BOTH_VIDEO, FILTERED_VIDEO, RAW_VIDEO
 
Fields inherited from class dlife.robot.Device
DEFAULT_GUI_UPDATE_DELAY, DEFAULT_READ_DELAY, myRobot, readCount
 
Constructor Summary
DLifeVisionServerCamera()
          Construct a new DLifeVisionServerCamera that prompts the user to choose an image to use.
DLifeVisionServerCamera(String host, int tcpPort, int udpPort, String dev, String input, String std, int width, int height, int quality)
          Construct a new DLifeVisionServerCamera using the provided configuration parameters.
 
Method Summary
static void main(String[] args)
          Display the GUI for a Camera that streams video from a dLife vision server.
 
Methods inherited from class dlife.vision.Camera
addFilter, clearDrawing, createGUIObjects, drawCircle, drawLine, drawOval, drawRectangle, drawString, freeze, getFilterManager, getFilters, getHeight, getSeekLocation, getVideoDisplay, getVideoSource, getWidth, insertFilter, pause, play, readStateFromRobot, removeFilter, removeFilter, rewind, seek, setFilters, shutDown, startUp, stepBackward, stepForward, update
 
Methods inherited from class dlife.robot.Device
getAutoRead, getGUI, getGUIUpdateDelay, getReadDelay, getRobot, getSensorReadCount, getSensorReadRate, setAutoRead, setGUIUpdateDelay, setReadDelay, setRobot, startAutoReadTimer, stopAutoReadTimer
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLifeVisionServerCamera

public DLifeVisionServerCamera()
                        throws VideoSourceCreationFailedException
Construct a new DLifeVisionServerCamera that prompts the user to choose an image to use.

Throws:
VideoSourceCreationFailedException

DLifeVisionServerCamera

public DLifeVisionServerCamera(String host,
                               int tcpPort,
                               int udpPort,
                               String dev,
                               String input,
                               String std,
                               int width,
                               int height,
                               int quality)
Construct a new DLifeVisionServerCamera using the provided configuration parameters.

Parameters:
host - ip or hostname for the dLife vision server.
tcpPort - the port for the dLife vision server.
udpPort - the port on which you will receive the streamed video.
dev - the video device from which the server should stream the video (E.g. /dev/video0)
input - the input on the video device to be used.
std - the video standard to be used.
width - the width of the streamed video.
height - the height of the streamed video.
quality - the quality of the streamed video.
Method Detail

main

public static void main(String[] args)
                 throws VideoSourceCreationFailedException
Display the GUI for a Camera that streams video from a dLife vision server. The user is asked for the information necessary to connect to the server and to configure the video stream.

Parameters:
args - none
Throws:
VideoSourceCreationFailedException

dLife Home Page