|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kaos.robots.core.KAoSRobot kaos.robots.activmedia.ActivMedia
public class ActivMedia
Nested Class Summary |
---|
Nested classes/interfaces inherited from class kaos.robots.core.KAoSRobot |
---|
KAoSRobot.RequestHandlerThread |
Field Summary |
---|
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 | |
---|---|
ActivMedia()
|
Method Summary | |
---|---|
void |
CommRelayMoveTo(java.util.HashMap properties)
CommRelayMoveTo |
void |
CommRelayStop()
CommRelayStop |
boolean |
connect()
This function is used to connect to robot |
protected static boolean |
connectToRobotNative()
|
protected static boolean |
connectToSimNative(int port)
|
void |
disconnect()
This function is used to disconnect from robot |
protected static void |
disconnectNative()
|
Coordinate |
GetCoordinate()
GetCoordinate |
java.lang.String |
getID()
Return the unique identifier of this observer. |
protected static double |
getMaxRotationalVelocityNative()
|
double |
GetMaxTranslationalVelocity()
|
protected static double |
getMaxTranslationalVelocityNative()
|
Coordinate |
GetNamedLocationCoordinate(java.util.HashMap properties)
|
java.util.Iterator |
GetNamedLocations()
|
Pose |
GetPose()
GetPose |
protected static double |
getTHNative()
|
protected static double |
getXNative()
|
protected static double |
getYNative()
|
void |
init(java.lang.String[] args)
|
protected static void |
initNative(int gui)
|
boolean |
IsMoving()
IsMoving |
protected static boolean |
isMovingNative()
|
boolean |
IsTranslating()
|
protected static boolean |
isTranslatingNative()
|
java.lang.Boolean |
IsTurning()
|
protected static boolean |
isTurningNative(double rate)
|
protected static void |
loadWorldNative(java.lang.String fname)
|
static void |
main(java.lang.String[] args)
|
protected static void |
moveDistance(double x)
|
void |
MoveDistance(java.util.HashMap properties)
|
void |
MoveTo(java.util.HashMap properties)
MoveTo |
protected static void |
moveToNative(int x,
int y)
|
protected static int |
moveToState()
|
void |
NameCurrentLocation(java.util.HashMap properties)
|
void |
NameSpecifiedLocation(java.util.HashMap properties)
|
void |
SearchDistance(java.util.HashMap properties)
|
protected static void |
setMaxMoveToSpeed(int speed)
|
protected static double |
setMaxRotationalVelocityNative(double v)
|
void |
SetMaxTranslationalVelocity(java.util.HashMap properties)
|
protected static double |
setMaxTranslationalVelocityNative(double v)
|
void |
setOrigin(java.util.HashMap properties)
|
protected static double |
setOriginNative(double x,
double y,
double th)
|
protected static void |
setPose(double x,
double y,
double th)
|
void |
SetRotationalVelocity(java.util.HashMap properties)
|
protected static double |
setRotationalVelocityNative(double v)
|
void |
SetTranslationalVelocity(java.util.HashMap properties)
|
protected static double |
setTranslationalVelocityNative(double v)
|
void |
Stop()
Stop |
protected static void |
stopNative()
|
void |
TurnRelative(java.util.HashMap properties)
|
protected static void |
turnRelNative(double degrees)
|
void |
TurnTo(java.util.HashMap properties)
TurnTo |
protected static void |
turnToNative(float x,
float y)
|
protected static int |
turnToState()
|
void |
update(java.lang.String observableID,
java.lang.String updateType,
java.lang.Object updateCondition,
java.lang.Object update)
Receive an update from the KAoSObservable when the KAoSObservable has a change or event to report. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActivMedia() throws AbortActionException
AbortActionException
Method Detail |
---|
public void init(java.lang.String[] args)
init
in class KAoSRobot
public boolean connect()
KAoSRobot
connect
in class KAoSRobot
public void disconnect()
KAoSRobot
disconnect
in class KAoSRobot
public void MoveTo(java.util.HashMap properties) throws AbortActionException
MobileRobot
MoveTo
in interface MobileRobot
AbortActionException
- with possible reasons:
unable to move
failed to find path
failed to get to goal
received stop commandpublic void TurnTo(java.util.HashMap properties) throws AbortActionException
MobileRobot
TurnTo
in interface MobileRobot
AbortActionException
- with possible reasons:
unable to movepublic void TurnRelative(java.util.HashMap properties) throws AbortActionException
AbortActionException
public void Stop() throws AbortActionException
MobileRobot
Stop
in interface MobileRobot
AbortActionException
- with possible reasons:
unable to stoppublic Coordinate GetCoordinate()
MobileRobot
GetCoordinate
in interface MobileRobot
public Pose GetPose()
MobileRobot
GetPose
in interface MobileRobot
public void setOrigin(java.util.HashMap properties)
public void NameCurrentLocation(java.util.HashMap properties)
public void NameSpecifiedLocation(java.util.HashMap properties)
public java.util.Iterator GetNamedLocations()
public Coordinate GetNamedLocationCoordinate(java.util.HashMap properties)
public boolean IsMoving()
MobileRobot
IsMoving
in interface MobileRobot
public java.lang.Boolean IsTurning()
public boolean IsTranslating()
public void SetMaxTranslationalVelocity(java.util.HashMap properties)
public void SetTranslationalVelocity(java.util.HashMap properties)
public void SetRotationalVelocity(java.util.HashMap properties)
public double GetMaxTranslationalVelocity()
public void MoveDistance(java.util.HashMap properties)
public void update(java.lang.String observableID, java.lang.String updateType, java.lang.Object updateCondition, java.lang.Object update)
KAoSObserver
update
in interface KAoSObserver
observableID
- String identifying the KAoSObservable sending the update.updateType
- String indicating type of update.update
- Object containing the update.public java.lang.String getID()
KAoSObserver
getID
in interface KAoSObserver
public void SearchDistance(java.util.HashMap properties)
public void CommRelayMoveTo(java.util.HashMap properties) throws java.lang.Exception
CommRelay
CommRelayMoveTo
in interface CommRelay
AbortActionException
- with possible reasons:
unable to move
failed to find path
failed to get to goal
received stop command
java.lang.Exception
public void CommRelayStop() throws java.lang.Exception
CommRelay
CommRelayStop
in interface CommRelay
AbortActionException
- with possible reasons:
unable to stop
java.lang.Exception
protected static void initNative(int gui)
protected static void loadWorldNative(java.lang.String fname)
protected static boolean connectToRobotNative()
protected static boolean connectToSimNative(int port)
protected static void moveDistance(double x)
protected static void moveToNative(int x, int y)
protected static int moveToState()
protected static int turnToState()
protected static void turnToNative(float x, float y)
protected static double getXNative()
protected static double getYNative()
protected static double getTHNative()
protected static boolean isMovingNative()
protected static boolean isTurningNative(double rate)
protected static boolean isTranslatingNative()
protected static void disconnectNative()
protected static void stopNative()
protected static double getMaxTranslationalVelocityNative()
protected static double setMaxTranslationalVelocityNative(double v)
protected static double setTranslationalVelocityNative(double v)
protected static double setRotationalVelocityNative(double v)
protected static void setPose(double x, double y, double th)
protected static double getMaxRotationalVelocityNative()
protected static double setMaxRotationalVelocityNative(double v)
protected static double setOriginNative(double x, double y, double th)
protected static void setMaxMoveToSpeed(int speed)
protected static void turnRelNative(double degrees)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |