public class DebuggerPlatform extends BasePlatform
knowledge, self, status| Constructor and Description |
|---|
DebuggerPlatform()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
analyze()
Analyzes the platform.
|
double |
getAccuracy()
Returns the accuracy in meters
|
String |
getId()
Gets the unique id of the platform.
|
double |
getMinSensorRange()
Get sensor radius
|
double |
getMoveSpeed()
Gets the movement speed
|
String |
getName()
Gets the name of the platform
|
Position |
getPosition()
Returns the current GPS position
|
double |
getPositionAccuracy()
Returns the position accuracy in meters
|
int |
home()
Returns to the home location.
|
int |
land()
Requests the platform to land.
|
int |
move(Position target,
double proximity)
Initializes a move to the target position.
|
int |
rotate(Axes target)
Initializes a rotate along x, y, z axes.
|
int |
sense()
Gets results from the platform's sensors.
|
void |
setMoveSpeed(double speed)
Sets move speed
|
void |
stopMove()
Stops moving
|
int |
takeoff()
Takes off.
|
assume, initpublic int analyze()
throws ai.madara.exceptions.MadaraDeadObjectException,
GamsDeadObjectException
ai.madara.exceptions.MadaraDeadObjectExceptionGamsDeadObjectExceptionpublic double getAccuracy()
throws ai.madara.exceptions.MadaraDeadObjectException,
GamsDeadObjectException
ai.madara.exceptions.MadaraDeadObjectExceptionGamsDeadObjectExceptionpublic double getPositionAccuracy()
throws ai.madara.exceptions.MadaraDeadObjectException,
GamsDeadObjectException
ai.madara.exceptions.MadaraDeadObjectExceptionGamsDeadObjectExceptionpublic Position getPosition() throws ai.madara.exceptions.MadaraDeadObjectException, GamsDeadObjectException
ai.madara.exceptions.MadaraDeadObjectExceptionGamsDeadObjectExceptionpublic int home()
throws ai.madara.exceptions.MadaraDeadObjectException,
GamsDeadObjectException
ai.madara.exceptions.MadaraDeadObjectExceptionGamsDeadObjectExceptionpublic int land()
throws ai.madara.exceptions.MadaraDeadObjectException,
GamsDeadObjectException
ai.madara.exceptions.MadaraDeadObjectExceptionGamsDeadObjectExceptionpublic int move(Position target, double proximity) throws ai.madara.exceptions.MadaraDeadObjectException, GamsDeadObjectException
target - the new position to move toproximity - the minimum distance between current position
and target position that terminates the move.ai.madara.exceptions.MadaraDeadObjectExceptionGamsDeadObjectExceptionpublic int rotate(Axes target) throws ai.madara.exceptions.MadaraDeadObjectException, GamsDeadObjectException
target - the new extrinsic rotation anglesai.madara.exceptions.MadaraDeadObjectExceptionGamsDeadObjectExceptionpublic double getMinSensorRange()
throws ai.madara.exceptions.MadaraDeadObjectException
ai.madara.exceptions.MadaraDeadObjectExceptionpublic double getMoveSpeed()
throws ai.madara.exceptions.MadaraDeadObjectException,
GamsDeadObjectException
ai.madara.exceptions.MadaraDeadObjectExceptionGamsDeadObjectExceptionpublic String getId()
public String getName()
public int sense()
throws ai.madara.exceptions.MadaraDeadObjectException,
GamsDeadObjectException
ai.madara.exceptions.MadaraDeadObjectExceptionGamsDeadObjectExceptionpublic void setMoveSpeed(double speed)
throws ai.madara.exceptions.MadaraDeadObjectException
speed - new speed in meters/secondai.madara.exceptions.MadaraDeadObjectExceptionpublic int takeoff()
throws ai.madara.exceptions.MadaraDeadObjectException,
GamsDeadObjectException
ai.madara.exceptions.MadaraDeadObjectExceptionGamsDeadObjectExceptionpublic void stopMove()
throws ai.madara.exceptions.MadaraDeadObjectException,
GamsDeadObjectException
ai.madara.exceptions.MadaraDeadObjectExceptionGamsDeadObjectExceptionCopyright © 2018. All rights reserved.