public class Utility
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
Utility.BlueLightMode |
static interface |
Utility.CapEventType |
static interface |
Utility.PlayAction |
static interface |
Utility.SensorType
Those types are used for SensorManager.
|
Modifier and Type | Method and Description |
---|---|
int |
followFace(boolean enablePreview,
boolean largePreview)
Ask robot follow the face
There are two "onResult" callback during followFace processing:
1.
|
int |
followObject()
Ask robot to follow object
|
boolean |
getScreenBlueLightFilterEnable()
Gets the setting of screen blue light filter enable
|
java.lang.String |
getScreenBlueLightFilterMode()
Gets the level of screen blue light filter mode
|
int |
lookAtUser(float doa)
Ask robot to look at user in robot front
|
int |
playAction(int number)
Perform predefined actions by turning neck and wheels.
|
int |
setScreenBlueLightFilterMode(java.lang.String mode)
Sets the screen blue light filter mode
|
int |
trackFace(boolean enablePreview,
boolean largePreview)
Ask robot track the face
There are two "onResult" callback during trackFace processing:
1.
|
int |
walkAround()
Deprecated.
|
public int followFace(boolean enablePreview, boolean largePreview)
enablePreview
- set enable/disable camera preview window for debuglargePreview
- set enable/disable full screen preview, it works only when enablePreview is truepublic int followObject()
public boolean getScreenBlueLightFilterEnable()
public java.lang.String getScreenBlueLightFilterMode()
public int lookAtUser(float doa)
doa
- direction of arrivalpublic int playAction(int number)
Utility.PlayAction
to set action number, naming with loop will be incessant replay.
Use RobotAPI.cancelCommandBySerial(int)
,
RobotAPI.cancelCommand(int)
(int)} or
RobotAPI.cancelCommandAll()
(int)} to cancel action.number
- number of predefined actionUtility.PlayAction
public int setScreenBlueLightFilterMode(java.lang.String mode)
mode
- The level of blue light filter mode. The sequence of levels is
"RdStrong", "Rd03", "Rd02", "Rd01", "RdWeak", and "DEF".
The "RdStrong" is highest level, and "DEF" is used to cancel blue
light filter mode.Utility.BlueLightMode
public int trackFace(boolean enablePreview, boolean largePreview)
enablePreview
- set enable/disable camera preview window for debuglargePreview
- set enable/disable full screen preview, it works only when enablePreview is true@Deprecated public int walkAround()