public class RobotAPI
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
com.asus.robotframework.API.ExtraMethod |
extra
B2B customer use only
|
LineFollower |
lineFollower |
MotionControl |
motion |
DialogSystem |
robot |
Utility |
utility |
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 motion/utility command
|
int |
cancelCommand(RobotCommand command)
Cancel specific robot motion/utility command
|
int |
cancelCommandAll()
Cancel all robot motion/utility commands
|
int |
cancelCommandBySerial(int serial)
Cancel specific robot motion/utility command by using the serial number.
|
static java.lang.String |
getVersion()
Get the robot api version string
|
static boolean |
isLoggable(int priority) |
void |
release()
Release all robot API resource
|
void |
setCallback(RobotCallback callback)
Set the callback to receive all the events from robot framework.
|
public final com.asus.robotframework.API.ExtraMethod extra
public final LineFollower lineFollower
public final MotionControl motion
public final DialogSystem robot
public final Utility utility
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 cancelCommand(RobotCommand 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 static boolean isLoggable(int priority)
public void release()
public void setCallback(RobotCallback callback)
callback
- the callback function