public class RobotAPI
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
RobotContacts |
contacts |
ExtraMethod |
extra
B2B customer use only
|
MotionControl |
motion |
DialogSystem |
robot |
Slam |
slam |
Utility |
utility |
VisionControl |
vision |
WheelLights |
wheelLights |
Constructor and Description |
---|
RobotAPI(android.app.Activity activity)
constructor with default callback
|
RobotAPI(android.app.Activity activity,
RobotCallback callback)
constructor with user defined callback
|
RobotAPI(android.content.Context context)
constructor with default callback
|
RobotAPI(android.content.Context context,
RobotCallback callback)
constructor with user defined callback
|
RobotAPI(android.app.Service service)
constructor with default callback
|
RobotAPI(android.app.Service service,
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.
|
static 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 final RobotContacts contacts
public final ExtraMethod extra
public final MotionControl motion
public final DialogSystem robot
public final Slam slam
public final Utility utility
public final VisionControl vision
public final WheelLights wheelLights
public RobotAPI(android.app.Activity activity)
activity
- this application selfpublic RobotAPI(android.app.Activity activity, RobotCallback callback)
activity
- this application selfcallback
- listener that will receive all the callbacks from the
RobotFramework.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 RobotAPI(android.app.Service service)
service
- this application selfpublic RobotAPI(android.app.Service service, RobotCallback callback)
service
- this application selfcallback
- 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 static java.lang.String getVersion()
public void release()
public void setCallback(RobotCallback callback)
callback
- the callback function