public class RobotAPI
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
RobotContacts |
contacts |
MotionControl |
motion |
DialogSystem |
robot |
Slam |
slam |
Utility |
utility |
VisionControl |
vision |
WheelLights |
wheelLights |
Constructor and Description |
---|
RobotAPI(android.content.Context context)
constructor with default callback
|
RobotAPI(android.content.Context context,
RobotCallback callback)
constructor with user defined callback
|
Modifier and Type | Method and Description |
---|---|
int |
cancelCommand(int command)
Cancel specific robot command
|
int |
cancelCommandAll()
Cancel all robot commands
|
int |
cancelCommandBySerial(int serial)
Cancel specific command by using the serial number.
|
java.lang.String |
getVersion()
Get the robot api version string
|
void |
release()
Release all robot API resource
|
void |
setCallback(RobotCallback callback)
Set the callback to receive all the events from robot framework.
|
public RobotContacts contacts
public MotionControl motion
public DialogSystem robot
public Slam slam
public Utility utility
public VisionControl vision
public WheelLights wheelLights
public RobotAPI(android.content.Context context)
context
- context of the application package implementing this classpublic RobotAPI(android.content.Context context, RobotCallback callback)
context
- context of the application package implementing this classcallback
- listener that will receive all the callbacks from the
RobotFramework.public int cancelCommand(int command)
command
- specifies the command to cancelpublic int cancelCommandAll()
public int cancelCommandBySerial(int serial)
serial
- specifies the command serial to cancelpublic java.lang.String getVersion()
public void release()
public void setCallback(RobotCallback callback)
callback
- the callback function