dLife Home Page

Package dlife.vision.server

The dlife.vision.server.VisionServer streams video from a V4L (video for Linux) source to dLife.

See:
          Description

Class Summary
DatagramByteArrayInputStream A DatagramByteArrayInputStream pretends to be a ByteArrayInputStream reading directly from an array of DatagramPackets.
VideoFrame A VideoFrame constructs is useful in two different ways.
VideoFrameList A VideoFrameList keeps a list of VideoFrames which it constructs from DatagramPackets created within the dlife.vision.server.VideoFrame class.
VisionServer The VisionServer class is a server designed stream video data via UDP.
VisionServerDeviceList A VisionServerDeviceList is a useful object for storing device information about video devices on a given VisionServer.
VisionServerMap This class is used to store device information from a dLife VisionServer and map them to a server.
VisionServerMap.VideoSourceInfo A VideoSourceInfo contains information about the state of a VideoSourceDialog.
 

Package dlife.vision.server Description

The dlife.vision.server.VisionServer streams video from a V4L (video for Linux) source to dLife. This is useful for processing video from the Pioneer, Khepera and Hemisson robots. It can also be used to stream video from any V4L compatible device (e.g. a webcam) to dLife.

Installing the VisionServer

To install the VisionServer do the following on the Linux computer that will be streaming the video:

  1. Install the v4l4j package. More information about installing and testing v4l4j can be found on the v4l4j page.
  2. Download and unpack dlife.zip.
  3. Set an environment variable DLIFE_HOME to point to the location of the dLifeDist directory.
  4. Add the dLifeDist/ServerScripts directory to your PATH environment variable.
  5. Open the dlifeDist/ServerScripts/StartVisionServer script and ensure that the V4L4J_JAR and V4L4J_LIB variables point to the correct locations for your linux machine.

Starting the VisionServer

To start the VisionServer use a command like: DLifeVisionServer start 10005 /dev/video0. This command will start the server on port 10,005 streaming video from the V4L device /dev/video0.

Stopping and Restarting VisionServer

The DLifeVisionServer script can also be used to stop and restart the VisionServer if there are problems. The following commands will stop or restart the VisionServer:


dLife Home Page