kaos.robots.breve
Class BreveBot

java.lang.Object
  extended by kaos.robots.core.KAoSRobot
      extended by kaos.robots.breve.BreveBot
All Implemented Interfaces:
Command, FeedbackReceiver, KAoSObservable, ObserverManager, MobileRobot

public class BreveBot
extends KAoSRobot
implements MobileRobot


Nested Class Summary
 
Nested classes/interfaces inherited from class kaos.robots.core.KAoSRobot
KAoSRobot.RequestHandlerThread
 
Field Summary
static int PORT
           
 
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, _port, _registeredWithKAoS, _reniaCallback, _sender
 
Constructor Summary
BreveBot(java.lang.String args)
           
 
Method Summary
 boolean connect()
          This function is used to connect to robot
 boolean connect(java.lang.String target)
           
static BreveProxy connectToBreveProcess()
           
static BreveProxy connectToBreveProcess(int port)
           
 void disconnect()
          This function is used to disconnect from robot
static BreveProxy getBreveProxy()
           
 Coordinate GetCoordinate()
          GetCoordinate
 Coordinate GetCoordinate(java.util.HashMap properties)
           
 Coordinate GetNamedLocationCoordinate(java.util.HashMap properties)
           
 java.util.Iterator GetNamedLocations()
           
 Pose GetPose()
          GetPose
 boolean IsMoving()
          IsMoving
static void main(java.lang.String[] args)
           
 void MoveTo(java.util.HashMap properties)
          MoveTo
 void NameCurrentLocation(java.util.HashMap properties)
           
 void NameSpecifiedLocation(java.util.HashMap properties)
           
 void Stop()
          Stop
 void TurnTo(java.util.HashMap properties)
          TurnTo
 
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, 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

PORT

public static final int PORT
See Also:
Constant Field Values
Constructor Detail

BreveBot

public BreveBot(java.lang.String args)
         throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

connectToBreveProcess

public static BreveProxy connectToBreveProcess()
                                        throws java.io.IOException
Throws:
java.io.IOException

connectToBreveProcess

public static BreveProxy connectToBreveProcess(int port)
                                        throws java.io.IOException
Throws:
java.io.IOException

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

connect

public boolean connect(java.lang.String target)

disconnect

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

Specified by:
disconnect in class KAoSRobot

getBreveProxy

public static BreveProxy getBreveProxy()

MoveTo

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

Specified by:
MoveTo in interface MobileRobot

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

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)

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

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

main

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