dlife.vision.cameras
Class DLifeVisionServerCamera
java.lang.Object
java.util.Observable
dlife.robot.Device
dlife.vision.Camera
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:
- Ensure that the basic
dLife installation is done.
- Ensure that you have a
dlife.vision.server running.
- 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
|
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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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