public class ALLauncher extends ALProxy
| Constructor and Description |
|---|
ALLauncher(Session session) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearStats() |
void |
exit()
Exits and unregisters the module.
|
java.lang.String |
getBrokerName()
Gets the name of the parent broker.
|
java.util.List<java.lang.String> |
getGlobalModuleList()
get the list of modules loaded on the robot and connected on the robot
|
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 |
isModulePresent(java.lang.String strPartOfModuleName)
Tests the existence of an active module in the global system (in same executable or in another executable of the distributed system)
|
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 |
launchExecutable(java.lang.String moduleName)
runs an executable and connect it to current broker (executable)
|
java.util.List<java.lang.String> |
launchLocal(java.lang.String moduleName)
Loads dynamicaly a module
|
java.lang.Boolean |
launchPythonModule(java.lang.String moduleName)
Import a python module
|
java.lang.Boolean |
launchScript(java.lang.String moduleName)
runs a script connected the current broker
|
java.lang.Boolean |
ping()
Just a ping.
|
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 ALLauncher(Session session) throws java.lang.Exception
java.lang.Exceptionpublic 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 java.util.List<java.lang.String> launchLocal(java.lang.String moduleName)
throws CallError,
java.lang.InterruptedException
moduleName - the name of the module to launch or the name of the python script to evaluateCallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean launchExecutable(java.lang.String moduleName)
throws CallError,
java.lang.InterruptedException
moduleName - the name of the module to launch or the name of the script file to executeCallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean launchScript(java.lang.String moduleName)
throws CallError,
java.lang.InterruptedException
moduleName - the name of the script to launch (python)CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean launchPythonModule(java.lang.String moduleName)
throws CallError,
java.lang.InterruptedException
moduleName - the name of the module to launchCallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean isModulePresent(java.lang.String strPartOfModuleName)
throws CallError,
java.lang.InterruptedException
strPartOfModuleName - a part of the name of the module to test existenceCallErrorjava.lang.InterruptedExceptionAldebaran SDK for Java
Copyright 2006-2015 Aldebaran Robotics. All Rights Reserved.