public class ALAnimatedSpeech extends ALProxy
| Constructor and Description |
|---|
ALAnimatedSpeech(Session session) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTagsToWords(java.lang.Object tagsToWords)
Add some new links between tags and words.
|
void |
clearStats() |
void |
declareAnimationsPackage(java.lang.String animationsPackage)
Add a new package that contains animations.
|
void |
declareTagForAnimations(java.lang.Object tagsToAnimations)
Declare some tags with the associated animations.
|
void |
exit()
Exits and unregisters the module.
|
java.lang.Integer |
getBodyLanguageMode()
Set the current body language mode.
3 modes exist: BODY_LANGUAGE_MODE_DISABLED,BODY_LANGUAGE_MODE_RANDOM and BODY_LANGUAGE_MODE_CONTEXTUAL
(see BodyLanguageMode enum for more details)
|
java.lang.String |
getBodyLanguageModeToStr()
Set the current body language mode.
3 modes exist: "disabled", "random" and "contextual"
(see BodyLanguageMode enum for more details)
|
java.lang.String |
getBrokerName()
Gets the name of the parent broker.
|
java.lang.Object |
getMethodHelp(java.lang.String methodName)
Retrieves a method's description.
|
java.util.List<java.lang.String> |
getMethodList()
Retrieves the module's method list.
|
java.lang.Object |
getModuleHelp()
Retrieves the module's description.
|
java.lang.String |
getUsage(java.lang.String name)
Gets the method usage string.
|
java.lang.Boolean |
isBodyLanguageEnabled()
DEPRECATED since 1.22: use getBodyLanguageMode instead.Indicate if the body language is enabled or not.
|
java.lang.Boolean |
isBodyTalkEnabled()
DEPRECATED since 1.18: use getBodyLanguageMode instead.Indicate if the body talk is enabled or not.
|
java.lang.Boolean |
isRunning(java.lang.Integer id)
Returns true if the method is currently running.
|
java.lang.Boolean |
isStatsEnabled() |
java.lang.Boolean |
isTraceEnabled() |
java.lang.Boolean |
ping()
Just a ping.
|
void |
say(java.lang.String text)
Say the annotated text given in parameter and animate it with animations inserted in the text.
|
void |
say(java.lang.String text,
java.lang.Object configuration)
Say the annotated text given in parameter and animate it with animations inserted in the text.
|
void |
setBodyLanguageEnabled(java.lang.Boolean enable)
DEPRECATED since 1.22: use setBodyLanguageMode instead.Enable or disable the automatic body language on the speech.If it is enabled, anywhere you have not annotate your text with animation,the robot will fill the gap with automatically calculated gestures.If it is disabled, the robot will move only where you annotate it withanimations.
|
void |
setBodyLanguageMode(java.lang.Integer bodyLanguageMode)
Set the current body language mode.
3 modes exist: BODY_LANGUAGE_MODE_DISABLED,BODY_LANGUAGE_MODE_RANDOM and BODY_LANGUAGE_MODE_CONTEXTUAL
(see BodyLanguageMode enum for more details)
|
void |
setBodyLanguageModeFromStr(java.lang.String stringBodyLanguageMode)
Set the current body language mode.
3 modes exist: "disabled", "random" and "contextual"
(see BodyLanguageMode enum for more details)
|
void |
setBodyTalkEnabled(java.lang.Boolean enable)
DEPRECATED since 1.18: use setBodyLanguageMode instead.Enable or disable the automatic body talk on the speech.If it is enabled, anywhere you have not annotate your text with animation,the robot will fill the gap with automatically calculated gestures.If it is disabled, the robot will move only where you annotate it withanimations.
|
void |
stop(java.lang.Integer id)
returns true if the method is currently running
|
java.lang.String |
version()
Returns the version of the module.
|
java.lang.Boolean |
wait(java.lang.Integer id,
java.lang.Integer timeoutPeriod)
Wait for the end of a long running method that was called using 'post'
|
call, connect, connect, disconnect, getNaoqiType, getService, isProxyReady, setServicepublic ALAnimatedSpeech(Session session) throws java.lang.Exception
java.lang.Exceptionpublic java.lang.Boolean isBodyTalkEnabled()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void declareTagForAnimations(java.lang.Object tagsToAnimations)
throws CallError,
java.lang.InterruptedException
tagsToAnimations - Map of Tags to Animations.CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean isBodyLanguageEnabled()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void addTagsToWords(java.lang.Object tagsToWords)
throws CallError,
java.lang.InterruptedException
tagsToWords - Map of tags to words.CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean isStatsEnabled()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void clearStats()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean isTraceEnabled()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void exit()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.String version()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean ping()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.util.List<java.lang.String> getMethodList()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Object getMethodHelp(java.lang.String methodName)
throws CallError,
java.lang.InterruptedException
methodName - The name of the method.CallErrorjava.lang.InterruptedExceptionpublic java.lang.Object getModuleHelp()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean wait(java.lang.Integer id,
java.lang.Integer timeoutPeriod)
throws CallError,
java.lang.InterruptedException
id - The ID of the method that was returned when calling the method using 'post'timeoutPeriod - The timeout period in ms. To wait indefinately, use a timeoutPeriod of zero.CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean isRunning(java.lang.Integer id)
throws CallError,
java.lang.InterruptedException
id - The ID of the method that was returned when calling the method using 'post'CallErrorjava.lang.InterruptedExceptionpublic void stop(java.lang.Integer id)
throws CallError,
java.lang.InterruptedException
id - the ID of the method to wait forCallErrorjava.lang.InterruptedExceptionpublic java.lang.String getBrokerName()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.String getUsage(java.lang.String name)
throws CallError,
java.lang.InterruptedException
name - The name of the method.CallErrorjava.lang.InterruptedExceptionpublic void say(java.lang.String text)
throws CallError,
java.lang.InterruptedException
text - An annotated text (for example: "Hello. ^start(Hey_1) My name is NAO").CallErrorjava.lang.InterruptedExceptionpublic void say(java.lang.String text,
java.lang.Object configuration)
throws CallError,
java.lang.InterruptedException
text - An annotated text (for example: "Hello. ^start(Hey_1) My name is NAO").configuration - The animated speech configuration.CallErrorjava.lang.InterruptedExceptionpublic void setBodyTalkEnabled(java.lang.Boolean enable)
throws CallError,
java.lang.InterruptedException
enable - The boolean value: true to enable, false to disable.CallErrorjava.lang.InterruptedExceptionpublic void setBodyLanguageEnabled(java.lang.Boolean enable)
throws CallError,
java.lang.InterruptedException
enable - The boolean value: true to enable, false to disable.CallErrorjava.lang.InterruptedExceptionpublic void setBodyLanguageModeFromStr(java.lang.String stringBodyLanguageMode)
throws CallError,
java.lang.InterruptedException
stringBodyLanguageMode - The choosen body language mode.CallErrorjava.lang.InterruptedExceptionpublic void setBodyLanguageMode(java.lang.Integer bodyLanguageMode)
throws CallError,
java.lang.InterruptedException
bodyLanguageMode - The choosen body language mode.CallErrorjava.lang.InterruptedExceptionpublic java.lang.String getBodyLanguageModeToStr()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Integer getBodyLanguageMode()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void declareAnimationsPackage(java.lang.String animationsPackage)
throws CallError,
java.lang.InterruptedException
animationsPackage - The new package that contains animations.CallErrorjava.lang.InterruptedExceptionAldebaran SDK for Java
Copyright 2006-2015 Aldebaran Robotics. All Rights Reserved.