org.robokind.basic
Class Robokind

java.lang.Object
  extended by org.robokind.basic.Robokind

public final class Robokind
extends Object

Framework utility methods for the RoboKind Basic API

Author:
Matthew Stevenson

Constructor Summary
Robokind()
           
 
Method Summary
static org.robokind.api.animation.messaging.RemoteAnimationPlayerClient connectAnimationPlayer()
           
static org.robokind.api.motion.messaging.RemoteRobot connectRobot()
          Connects to the RobokindRobot for communicating with an avatar and robot.
static org.robokind.api.sensor.gpio.RemoteGpioService<org.robokind.avrogen.sensor.HeaderRecord> connectSensors()
           
static org.robokind.api.speech.messaging.RemoteSpeechServiceClient connectSpeechService()
           
static long currentTime()
           
static void disconnect()
          Disconnects from the RobokindRobot.
static org.robokind.api.animation.Animation loadAnimation(String filepath)
          Loads an animation from file.
static boolean saveAnimation(String filepath, org.robokind.api.animation.Animation anim)
           
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

Robokind

public Robokind()
Method Detail

connectRobot

public static org.robokind.api.motion.messaging.RemoteRobot connectRobot()
Connects to the RobokindRobot for communicating with an avatar and robot.

Returns:
RobokindRobot object for controlling an avatar and robot

connectAnimationPlayer

public static org.robokind.api.animation.messaging.RemoteAnimationPlayerClient connectAnimationPlayer()

connectSpeechService

public static org.robokind.api.speech.messaging.RemoteSpeechServiceClient connectSpeechService()

connectSensors

public static org.robokind.api.sensor.gpio.RemoteGpioService<org.robokind.avrogen.sensor.HeaderRecord> connectSensors()

loadAnimation

public static org.robokind.api.animation.Animation loadAnimation(String filepath)
Loads an animation from file.

Parameters:
filepath - path to the animation
Returns:
Animation object loaded from the file

saveAnimation

public static boolean saveAnimation(String filepath,
                                    org.robokind.api.animation.Animation anim)

currentTime

public static long currentTime()

sleep

public static void sleep(long milliseconds)
Halts program execution for the given number of milliseconds.

Parameters:
milliseconds - number of milliseconds to sleep

disconnect

public static void disconnect()
Disconnects from the RobokindRobot.



Copyright © 2011-2013. All Rights Reserved.