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, setService
public ALAnimatedSpeech(Session session) throws java.lang.Exception
java.lang.Exception
public java.lang.Boolean isBodyTalkEnabled() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void declareTagForAnimations(java.lang.Object tagsToAnimations) throws CallError, java.lang.InterruptedException
tagsToAnimations
- Map of Tags to Animations.CallError
java.lang.InterruptedException
public java.lang.Boolean isBodyLanguageEnabled() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void addTagsToWords(java.lang.Object tagsToWords) throws CallError, java.lang.InterruptedException
tagsToWords
- Map of tags to words.CallError
java.lang.InterruptedException
public java.lang.Boolean isStatsEnabled() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void clearStats() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.Boolean isTraceEnabled() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void exit() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.String version() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.Boolean ping() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.util.List<java.lang.String> getMethodList() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.Object getMethodHelp(java.lang.String methodName) throws CallError, java.lang.InterruptedException
methodName
- The name of the method.CallError
java.lang.InterruptedException
public java.lang.Object getModuleHelp() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public 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.CallError
java.lang.InterruptedException
public 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'CallError
java.lang.InterruptedException
public void stop(java.lang.Integer id) throws CallError, java.lang.InterruptedException
id
- the ID of the method to wait forCallError
java.lang.InterruptedException
public java.lang.String getBrokerName() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.String getUsage(java.lang.String name) throws CallError, java.lang.InterruptedException
name
- The name of the method.CallError
java.lang.InterruptedException
public 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").CallError
java.lang.InterruptedException
public 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.CallError
java.lang.InterruptedException
public void setBodyTalkEnabled(java.lang.Boolean enable) throws CallError, java.lang.InterruptedException
enable
- The boolean value: true to enable, false to disable.CallError
java.lang.InterruptedException
public void setBodyLanguageEnabled(java.lang.Boolean enable) throws CallError, java.lang.InterruptedException
enable
- The boolean value: true to enable, false to disable.CallError
java.lang.InterruptedException
public void setBodyLanguageModeFromStr(java.lang.String stringBodyLanguageMode) throws CallError, java.lang.InterruptedException
stringBodyLanguageMode
- The choosen body language mode.CallError
java.lang.InterruptedException
public void setBodyLanguageMode(java.lang.Integer bodyLanguageMode) throws CallError, java.lang.InterruptedException
bodyLanguageMode
- The choosen body language mode.CallError
java.lang.InterruptedException
public java.lang.String getBodyLanguageModeToStr() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.Integer getBodyLanguageMode() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void declareAnimationsPackage(java.lang.String animationsPackage) throws CallError, java.lang.InterruptedException
animationsPackage
- The new package that contains animations.CallError
java.lang.InterruptedException
Aldebaran SDK for Java
Copyright 2006-2015 Aldebaran Robotics. All Rights Reserved.