public final class MechIO extends Object
| Constructor and Description |
|---|
MechIO() |
| Modifier and Type | Method and Description |
|---|---|
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 RemoteRobot 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 Remote Robot.
|
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.
|
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 animationpublic static boolean saveAnimation(String filepath, Animation anim)
filepath - path to save the animationanim - the animation to savepublic static long currentTime()
public static void sleep(long milliseconds)
milliseconds - number of milliseconds to sleeppublic static void disconnect()
Copyright © 2011-2014. All Rights Reserved.