|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.robot.Robot
com.sun.robot.humanoid.Humanoid
public class Humanoid
Provides access to WowWee Robotics RS Media robot macros, servos and sensors.
| Field Summary | |
|---|---|
Servo |
ARM_LEFT_SERVO
Left Arm Grasping Servo. |
Servo |
ARM_RIGHT_SERVO
Right Arm Grasping Servo. |
Audio |
AUDIO
Audio recording and playback. |
Camera |
CAMERA
Snapshots, video recording and playback. |
Sensor |
FACE_DOWN_TILT
The robot lying face down. |
Head |
HEAD
Head control object. |
Servo |
HEAD_LR_SERVO
Used for Head Left, and Right movement. |
Servo |
HEAD_UP_DN_SERVO
Used for Head Up, Down movement. |
Servo |
HEAD_UPPER_BODY
Up, Down, Left, Right movement. |
Sensor |
HEARING_CENTER
Something is heard in front of the robot. |
Sensor |
HEARING_LEFT
Something is heard on the left side of the robot. |
Sensor |
HEARING_RIGHT
Something is heard on the right side of the robot. |
Interact |
INTERACT
Interaction macros with other robots. |
IRSensor |
IR_CENTER_CLOSE
Something is detected nearby in front of the robot. |
IRSensor |
IR_CENTER_FAR
Something is detected far away in front of the robot. |
IRSensor |
IR_FLINCH
Something is very close ot the robot. |
IRSensor |
IR_LEFT_CLOSE
Something is detected nearby on the left side of the robot. |
IRSensor |
IR_LEFT_FAR
Something is detected far away on the left side of the robot. |
IRSensor |
IR_RIGHT_CLOSE
Something is detected far away on the right side of the robot. |
IRSensor |
IR_RIGHT_FAR
Something is detected far away on the right side of the robot. |
Arm |
LEFT_ARM
Left arm control object. |
Servo |
LEFT_LEG_SERVO
Forward, Backward movement. |
Personality |
PERSONALITYMACRO
Animatronic macros. |
Arm |
RIGHT_ARM
Right arm control object. |
Servo |
RIGHT_LEG_SERVO
Forward, Backward movement. |
Servo |
SHOULDER_LEFT_SERVO
Up, Down movement. |
Servo |
SHOULDER_RIGHT_SERVO
Up, Down movement. |
Sensor |
TOUCH_LEFT_FOOT_BACK
Something is touching the back of the robot's left foot. |
Sensor |
TOUCH_LEFT_FOOT_FRONT
Something is touching the front of the robot's left foot. |
Sensor |
TOUCH_RIGHT_FOOT_BACK
Something is touching the back of the robot's right foot. |
Sensor |
TOUCH_RIGHT_FOOT_FRONT
Something is touching the front of the robot's right foot. |
Vision |
VISION
Vision color and object tracking system. |
Servo |
WAIST_LR_SERVO
Left and Right movement. |
Servo |
WAIST_SLR_SERVO
Tilt Left or Right. |
Servo |
WAIST_UP_DN_SERVO
Up, Down movement. |
Walk |
WALK
Walking control object. |
| Fields inherited from class com.sun.robot.Robot |
|---|
sensors, servos |
| Method Summary | |
|---|---|
boolean |
enableLED(boolean on)
LED. |
static Humanoid |
getInstance()
Returns a singleton instance of Humanoid |
void |
restoreDefaultPosition()
Restores the robot to it's default body posture. |
void |
shutdown()
Shuts down the robot. |
void |
sleep(int timeout)
Cause the robot to "sleep" for the specified time. |
boolean |
stop()
Stop all Robot movement. |
boolean |
stopAllMotors()
Stops all motors. |
void |
waitUntilStop()
Wait until the current macro or servo movement completes. |
void |
waitUntilStop(int maxWait)
Wait until the current macro or servo movement completes. |
| Methods inherited from class com.sun.robot.Robot |
|---|
addSensor, addServo, getSensor, getSensors, getServo, getServos |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final Personality PERSONALITYMACRO
public final Interact INTERACT
public final Arm LEFT_ARM
public final Head HEAD
public final Arm RIGHT_ARM
public final Walk WALK
public final Vision VISION
public final Sensor HEARING_LEFT
public final Sensor HEARING_CENTER
public final Sensor HEARING_RIGHT
public final IRSensor IR_LEFT_CLOSE
public final IRSensor IR_LEFT_FAR
public final IRSensor IR_CENTER_CLOSE
public final IRSensor IR_CENTER_FAR
public final IRSensor IR_RIGHT_CLOSE
public final IRSensor IR_RIGHT_FAR
public final IRSensor IR_FLINCH
public final Sensor TOUCH_LEFT_FOOT_FRONT
public final Sensor TOUCH_LEFT_FOOT_BACK
public final Sensor TOUCH_RIGHT_FOOT_FRONT
public final Sensor TOUCH_RIGHT_FOOT_BACK
public final Sensor FACE_DOWN_TILT
public final Audio AUDIO
public final Camera CAMERA
public final Servo HEAD_UP_DN_SERVO
public final Servo HEAD_LR_SERVO
public final Servo SHOULDER_LEFT_SERVO
public final Servo SHOULDER_RIGHT_SERVO
public final Servo ARM_LEFT_SERVO
public final Servo ARM_RIGHT_SERVO
public final Servo WAIST_UP_DN_SERVO
public final Servo WAIST_LR_SERVO
public final Servo WAIST_SLR_SERVO
public final Servo LEFT_LEG_SERVO
public final Servo RIGHT_LEG_SERVO
public final Servo HEAD_UPPER_BODY
| Method Detail |
|---|
public static Humanoid getInstance()
public void restoreDefaultPosition()
restoreDefaultPosition in class Robotpublic void sleep(int timeout)
sleep in class Robottimeout - The amount of time to sleep in relative milliseconds.public void waitUntilStop()
public void waitUntilStop(int maxWait)
maxWait - time in millisecondspublic boolean stop()
stop in class Robottrue if successful otherwise false.public boolean stopAllMotors()
stopAllMotors in class Robottrue if successful otherwise false.public void shutdown()
shutdown in class Robotpublic boolean enableLED(boolean on)
on - if true enables LED
true if the LEDs are successfully enabled.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||