kaos.robots.breve
Class BreveBot
java.lang.Object
kaos.core.util.MethodCallRequestHandler
kaos.robots.core.KAoSRobot
kaos.robots.breve.BreveBot
- All Implemented Interfaces:
- KAoSObservable, ObserverManager, FeedbackReceiver, HashMapRequestReceiver, MobileRobot
public class BreveBot
- extends KAoSRobot
- implements MobileRobot
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, _learnedTasks, _learnedTaskVariables, _learning, _listeners, _logger, _messageReceiver, _myLocator, _nickName, _policyService, _port, _registeredWithKAoS, _registration, _reniaCallback, _sender, _subtasks, _taskName, _transportName |
Constructor Summary |
BreveBot(java.lang.String args)
|
Methods inherited from class kaos.robots.core.KAoSRobot |
assertNotLocatable, buildAID, buildConnectPanel, checkObligations, checkPermissionForAction, deregisterObserver, deregisterObserver, deregisterObserver, executeLearnedAction, ExtendTimeout, getActions, getActorID, getAgentDescription, getAgentDescriptionFromName, getAllAgents, getCurrentActions, getDetectedObjectObservable, getGPSCommPort, getLocator, getMTS, getPropertiesFromAID, getTimeoutPeriod, gpsIsAvailable, init, isRegisteredWithKAoS, makeActionAllowable, modifySpatialProperties, notify, onAborted, onAccepted, onCompleted, onRefused, onStarted, printDebugString, processHashMapRequest, processHashMapRequest, processHashMapRequest, processHashMapRequest, receiveKAoSStatus, registerObserver, registerObserver, registerObserver, registerObserver, registerWithKAoS, registerWithSpatialProperties, requestAction, sendMessage, sendRequestToKaa, setRegisteredWithKAoS, startLearning, stopLearning, updateTimeout |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PORT
public static final int PORT
- See Also:
- Constant Field Values
BreveBot
public BreveBot(java.lang.String args)
throws java.lang.Exception
- Throws:
java.lang.Exception
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)
TurnTo
public void TurnTo(java.util.HashMap properties)
- Description copied from interface:
MobileRobot
- TurnTo
- Specified by:
TurnTo
in interface MobileRobot
Stop
public void Stop()
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()
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()
main
public static void main(java.lang.String[] args)