|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.robokind.client.basic.Robokind
public final class Robokind
Framework utility methods for the RoboKind Basic API
| Constructor Summary | |
|---|---|
Robokind()
|
|
| Method Summary | |
|---|---|
static RemoteAccelerometerServiceClient<HeaderRecord> |
connectAccelerometer()
Connects to the accelerometer controller. |
static RemoteAnimationPlayerClient |
connectAnimationPlayer()
Connects to the animation service. |
static RemoteImageServiceClient<CameraServiceConfig> |
connectCameraService()
Connects to the robot's cameras. |
static RemoteCompassServiceClient<HeaderRecord> |
connectCompass()
Connects to the compass controller. |
static RemoteGyroscopeServiceClient<HeaderRecord> |
connectGyroscope()
Connects to the gyroscope controller. |
static RemoteImageRegionServiceClient<FaceDetectServiceConfig> |
connectImageRegionService()
Connects to the robot's face-detection service. |
static RemoteRobot |
connectRobot()
Connects to the RobokindRobot for communicating with an avatar and robot. |
static RemoteGpioServiceClient<HeaderRecord> |
connectSensors()
Connects to the sensor controller. |
static RemoteSpeechServiceClient |
connectSpeechService()
Connects to the speech service. |
static long |
currentTime()
Gets the current time, in Unix format. |
static void |
disconnect()
Disconnects from the RobokindRobot. |
static Animation |
loadAnimation(String filepath)
Loads an animation from file. |
static boolean |
saveAnimation(String filepath,
Animation anim)
Saves an animation to disk. |
static void |
sleep(long milliseconds)
Halts program execution for the given number of milliseconds. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Robokind()
| Method Detail |
|---|
public static RemoteRobot connectRobot()
public static RemoteAnimationPlayerClient connectAnimationPlayer()
public static RemoteSpeechServiceClient connectSpeechService()
public static RemoteGpioServiceClient<HeaderRecord> connectSensors()
public static RemoteAccelerometerServiceClient<HeaderRecord> connectAccelerometer()
public static RemoteGyroscopeServiceClient<HeaderRecord> connectGyroscope()
public static RemoteCompassServiceClient<HeaderRecord> connectCompass()
public static RemoteImageServiceClient<CameraServiceConfig> connectCameraService()
public static RemoteImageRegionServiceClient<FaceDetectServiceConfig> connectImageRegionService()
public static Animation loadAnimation(String filepath)
filepath - path to the animation
public static boolean saveAnimation(String filepath,
Animation anim)
filepath - path to save the animationanim - the animation to save
public static long currentTime()
public static void sleep(long milliseconds)
milliseconds - number of milliseconds to sleeppublic static void disconnect()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||