kaos.robots.activmedia
Class Amigo
java.lang.Object
kaos.robots.core.KAoSRobot
kaos.robots.activmedia.ActivMedia
kaos.robots.activmedia.AMsonar
kaos.robots.activmedia.Amigo
- All Implemented Interfaces:
- Command, FeedbackReceiver, KAoSObservable, KAoSObserver, ObserverManager, CommRelay, MobileRobot, Sonar, VideoCamera
public class Amigo
- extends AMsonar
- implements VideoCamera
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()
|
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 |
_basePath
protected java.lang.String _basePath
Amigo
public Amigo()
throws AbortActionException
- Throws:
AbortActionException
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)