kaos.robots.er1
Class ER1

java.lang.Object
  extended by kaos.robots.core.KAoSRobot
      extended by kaos.robots.er1.ER1
All Implemented Interfaces:
Command, FeedbackReceiver, KAoSObservable, ObserverManager, Emailer, MobileRobot, VideoCamera

public class ER1
extends KAoSRobot
implements Emailer, MobileRobot, VideoCamera


Nested Class Summary
 
Nested classes/interfaces inherited from class kaos.robots.core.KAoSRobot
KAoSRobot.RequestHandlerThread
 
Field Summary
protected  javax.swing.JTextField _address
           
protected  java.lang.String _basePath
           
 javax.swing.JComboBox _connectToCmb
           
protected  javax.swing.JTextField _port
           
protected  java.lang.String recvMsg
           
 
Fields inherited from class kaos.robots.core.KAoSRobot
_actorID, _agentDescription, _classificationListeners, _currentActions, _enablingClasses, _enforcer, _gpsIsAvailable, _gpsOrigin, _listeners, _locator, _logger, _messageReceiver, _msgTransportService, _myLocator, _nickName, _registeredWithKAoS, _reniaCallback, _sender
 
Constructor Summary
ER1()
           
 
Method Summary
 javax.swing.JPanel buildConnectPanel()
           
 java.lang.String CaptureImage()
           
 boolean connect()
          This function is used to connect to robot
 boolean connectToRobot()
           
 boolean connectToRobot(java.lang.String host, java.lang.String port)
           
 void disconnect()
          This function is used to disconnect from robot
 void EmailCommunication(java.util.HashMap properties)
          EmailCommunication
 Coordinate GetCoordinate()
          GetCoordinate
 Coordinate GetCoordinate(java.util.HashMap properties)
           
 Coordinate GetNamedLocationCoordinate(java.util.HashMap properties)
           
 java.util.Iterator GetNamedLocations()
           
 Pose GetPose()
          GetPose
 SerializableBufferImage GrabFrameAsBuffer()
          CaptureImage
 boolean IsMoving()
          IsMoving
static void main(java.lang.String[] args)
           
 void MoveTo(java.util.HashMap properties)
          MoveTo
protected  void moveToNative()
           
 void NameCurrentLocation(java.util.HashMap properties)
           
 void NameSpecifiedLocation(java.util.HashMap properties)
           
 void PagerCommunication(java.util.HashMap properties)
           
 void SpeechCommunication()
           
 void SpeechCommunication(java.util.HashMap properties)
           
 void Stop()
          Stop
protected  void stopNative()
           
 void TurnTo(java.util.HashMap properties)
          TurnTo
protected  void turnToNative()
           
 
Methods inherited from class kaos.robots.core.KAoSRobot
assertNotLocatable, buildAID, buildKAoSPanel, checkObligations, deregisterObserver, deregisterObserver, deregisterObserver, equals, ExtendTimeout, getActions, getActorID, getAgentDescription, getAgentDescriptionFromName, getAllAgents, getCurrentActions, getDetectedObjectObservable, getGPSCommPort, getLocator, getMTS, getPropertiesFromAID, getTimeoutPeriod, gpsIsAvailable, hashCode, init, 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

_connectToCmb

public javax.swing.JComboBox _connectToCmb

_address

protected javax.swing.JTextField _address

_port

protected javax.swing.JTextField _port

recvMsg

protected java.lang.String recvMsg

_basePath

protected java.lang.String _basePath
Constructor Detail

ER1

public ER1()
    throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

connect

public boolean connect()
Description copied from class: KAoSRobot
This function is used to connect to robot

Specified by:
connect in class KAoSRobot
Returns:
boolean indicating true if successful and false if failed

connectToRobot

public boolean connectToRobot()

connectToRobot

public boolean connectToRobot(java.lang.String host,
                              java.lang.String port)

disconnect

public void disconnect()
Description copied from class: KAoSRobot
This function is used to disconnect from robot

Specified by:
disconnect in class KAoSRobot

MoveTo

public void MoveTo(java.util.HashMap properties)
Description copied from interface: MobileRobot
MoveTo

Specified by:
MoveTo in interface MobileRobot

turnToNative

protected void turnToNative()

moveToNative

protected void moveToNative()

TurnTo

public void TurnTo(java.util.HashMap properties)
Description copied from interface: MobileRobot
TurnTo

Specified by:
TurnTo in interface MobileRobot

Stop

public void Stop()
Description copied from interface: MobileRobot
Stop

Specified by:
Stop in interface MobileRobot

stopNative

protected void stopNative()

GetPose

public Pose GetPose()
Description copied from interface: MobileRobot
GetPose

Specified by:
GetPose in interface MobileRobot
Returns:
Pose containing X in meters Y in meters TH in degrees

GetCoordinate

public Coordinate GetCoordinate()
Description copied from interface: MobileRobot
GetCoordinate

Specified by:
GetCoordinate in interface MobileRobot
Returns:
Coordinate containing X in meters Y in meters

GetCoordinate

public Coordinate GetCoordinate(java.util.HashMap properties)

NameCurrentLocation

public void NameCurrentLocation(java.util.HashMap properties)

NameSpecifiedLocation

public void NameSpecifiedLocation(java.util.HashMap properties)

GetNamedLocations

public java.util.Iterator GetNamedLocations()

GetNamedLocationCoordinate

public Coordinate GetNamedLocationCoordinate(java.util.HashMap properties)

IsMoving

public boolean IsMoving()
Description copied from interface: MobileRobot
IsMoving

Specified by:
IsMoving in interface MobileRobot
Returns:
boolean where: true = moving false = not moving

EmailCommunication

public void EmailCommunication(java.util.HashMap properties)
Description copied from interface: Emailer
EmailCommunication

Specified by:
EmailCommunication in interface Emailer

PagerCommunication

public void PagerCommunication(java.util.HashMap properties)

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

CaptureImage

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

SpeechCommunication

public void SpeechCommunication(java.util.HashMap properties)

SpeechCommunication

public void SpeechCommunication()

buildConnectPanel

public javax.swing.JPanel buildConnectPanel()
Overrides:
buildConnectPanel in class KAoSRobot

main

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