kaos.robots.activmedia
Class AMptzCamera

java.lang.Object
  extended by kaos.robots.core.KAoSRobot
      extended by kaos.robots.activmedia.ActivMedia
          extended by kaos.robots.activmedia.AMptzCamera
All Implemented Interfaces:
Command, FeedbackReceiver, KAoSObservable, KAoSObserver, ObserverManager, CommRelay, MobileRobot, PTZCamera, VideoCamera

public class AMptzCamera
extends ActivMedia
implements PTZCamera, VideoCamera


Nested Class Summary
 
Nested classes/interfaces inherited from class kaos.robots.core.KAoSRobot
KAoSRobot.RequestHandlerThread
 
Field Summary
 
Fields inherited from class kaos.robots.core.KAoSRobot
_actorID, _address, _agentDescription, _classificationListeners, _connectBtn, _connected, _connectToCmb, _currentActions, _enablingClasses, _enforcer, _gpsIsAvailable, _gpsOrigin, _listeners, _locator, _logger, _messageReceiver, _msgTransportService, _myLocator, _nickName, _registeredWithKAoS, _reniaCallback, _sender
 
Constructor Summary
AMptzCamera()
           
 
Method Summary
 java.lang.String CaptureImage()
           
protected static void center()
           
 void CenterPTZCamera()
           
 java.awt.image.BufferedImage GetImage()
           
protected static int getPan()
           
 PTZPose getPosePTZCamera()
           
protected static int getTilt()
           
protected static int getZoom()
           
 SerializableBufferImage GrabFrameAsBuffer()
          CaptureImage
 void init(java.lang.String[] args)
           
protected static int initCamera()
           
static void main(java.lang.String[] args)
           
protected static void pan(double direction)
           
 void PanPTZCamera(java.util.HashMap properties)
           
protected static void panRel(double direction)
           
protected static void tilt(double direction)
           
 void TiltPTZCamera(java.util.HashMap properties)
           
protected static void tiltRel(double direction)
           
protected static void zoom(double direction)
           
 void ZoomPTZCamera(java.util.HashMap properties)
           
protected static void zoomRel(double direction)
           
 
Methods inherited from class kaos.robots.activmedia.ActivMedia
CommRelayMoveTo, CommRelayStop, connect, connectToRobotNative, connectToSimNative, disconnect, disconnectNative, GetCoordinate, getID, getMaxRotationalVelocityNative, GetMaxTranslationalVelocity, getMaxTranslationalVelocityNative, GetNamedLocationCoordinate, GetNamedLocations, GetPose, getTHNative, getXNative, getYNative, initNative, IsMoving, isMovingNative, IsTranslating, isTranslatingNative, IsTurning, isTurningNative, loadWorldNative, moveDistance, MoveDistance, MoveTo, moveToNative, moveToState, NameCurrentLocation, NameSpecifiedLocation, SearchDistance, setMaxMoveToSpeed, setMaxRotationalVelocityNative, SetMaxTranslationalVelocity, setMaxTranslationalVelocityNative, setOrigin, setOriginNative, setPose, SetRotationalVelocity, setRotationalVelocityNative, SetTranslationalVelocity, setTranslationalVelocityNative, Stop, stopNative, TurnRelative, turnRelNative, TurnTo, turnToNative, turnToState, update
 
Methods inherited from class kaos.robots.core.KAoSRobot
assertNotLocatable, buildAID, buildConnectPanel, buildKAoSPanel, checkObligations, deregisterObserver, deregisterObserver, deregisterObserver, equals, ExtendTimeout, getActions, getActorID, getAgentDescription, getAgentDescriptionFromName, getAllAgents, getCurrentActions, getDetectedObjectObservable, getGPSCommPort, getLocator, getMTS, getPropertiesFromAID, getTimeoutPeriod, gpsIsAvailable, hashCode, initialize, isRegisteredWithKAoS, makeActionAllowable, notify, onAborted, onAccepted, onCompleted, onRefused, onStarted, printDebugString, receiveKAoSStatus, receiveMessage, registerObserver, registerObserver, registerObserver, registerObserver, registerWithKAoS, requestAction, requestAction, requestAction, requestAction, requestAction, requestAction, requestAction, requestAction, requestAction, requestAction, sendMessage, sendRequestToKaa, setRegisteredWithKAoS, updateTimeout
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AMptzCamera

public AMptzCamera()
            throws AbortActionException
Throws:
AbortActionException
Method Detail

init

public void init(java.lang.String[] args)
Overrides:
init in class ActivMedia

CaptureImage

public java.lang.String CaptureImage()
                              throws java.lang.Exception
Throws:
java.lang.Exception

GrabFrameAsBuffer

public SerializableBufferImage GrabFrameAsBuffer()
                                          throws java.lang.Exception
Description copied from interface: VideoCamera
CaptureImage

Specified by:
GrabFrameAsBuffer in interface VideoCamera
Returns:
Buffer buffer of image
Throws:
java.lang.Exception

GetImage

public java.awt.image.BufferedImage GetImage()
                                      throws java.lang.Exception
Throws:
java.lang.Exception

PanPTZCamera

public void PanPTZCamera(java.util.HashMap properties)
Specified by:
PanPTZCamera in interface PTZCamera

TiltPTZCamera

public void TiltPTZCamera(java.util.HashMap properties)
Specified by:
TiltPTZCamera in interface PTZCamera

ZoomPTZCamera

public void ZoomPTZCamera(java.util.HashMap properties)
Specified by:
ZoomPTZCamera in interface PTZCamera

CenterPTZCamera

public void CenterPTZCamera()

getPosePTZCamera

public PTZPose getPosePTZCamera()

initCamera

protected static int initCamera()

pan

protected static void pan(double direction)

tilt

protected static void tilt(double direction)

zoom

protected static void zoom(double direction)

panRel

protected static void panRel(double direction)

tiltRel

protected static void tiltRel(double direction)

zoomRel

protected static void zoomRel(double direction)

center

protected static void center()

getPan

protected static int getPan()

getTilt

protected static int getTilt()

getZoom

protected static int getZoom()

main

public static void main(java.lang.String[] args)