kaos.robots.activmedia
Class Amigo

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

public class Amigo
extends AMsonar
implements VideoCamera


Nested Class Summary
 
Nested classes/interfaces inherited from class kaos.robots.core.KAoSRobot
KAoSRobot.RequestHandlerThread
 
Field Summary
protected  java.lang.String _basePath
           
 
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
Amigo()
           
 
Method Summary
 void Beep()
           
 java.lang.String CaptureImage()
           
protected static boolean captureImageNative(java.lang.String filename)
           
 SerializableBufferImage GrabFrameAsBuffer()
          CaptureImage
 SerializableImage GrabFrameAsImage()
           
 java.lang.String GrabFrameAsString()
           
 void init(java.lang.String[] args)
           
protected static boolean initCameraNative()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class kaos.robots.activmedia.AMsonar
getLastSonarXNative, getLastSonarYNative, GetMaximumEffectiveSonarRange, GetNumberOfSonarSensors, GetSonarRange, getSonarRangeNative, GetSonarReading, isNewLastSonarNative, SetMaxEffectiveSonarRange, setMaxEffectiveSonarRange
 
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
 

Field Detail

_basePath

protected java.lang.String _basePath
Constructor Detail

Amigo

public Amigo()
      throws AbortActionException
Throws:
AbortActionException
Method Detail

init

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

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

GrabFrameAsImage

public SerializableImage GrabFrameAsImage()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

GrabFrameAsString

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

Beep

public void Beep()
          throws java.lang.Exception
Throws:
java.lang.Exception

initCameraNative

protected static boolean initCameraNative()

captureImageNative

protected static boolean captureImageNative(java.lang.String filename)

main

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