public class ALRobotPosture extends ALProxy
Constructor and Description |
---|
ALRobotPosture(Session session) |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
applyPosture(java.lang.String postureName,
java.lang.Float maxSpeedFraction)
Set the angle of the joints of the robot to the choosen posture.
|
void |
clearStats() |
void |
exit()
Exits and unregisters the module.
|
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 |
getPosture()
Determine posture.
|
java.lang.String |
getPostureFamily()
Returns the posture family for example Standing, LyingBelly,...
|
java.util.List<java.lang.String> |
getPostureFamilyList()
Get the list of posture family names available.
|
java.util.List<java.lang.String> |
getPostureList()
Get the list of posture names available.
|
java.lang.String |
getUsage(java.lang.String name)
Gets the method usage string.
|
java.lang.Boolean |
goToPosture(java.lang.String postureName,
java.lang.Float maxSpeedFraction)
Make the robot go to the choosenposture.
|
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 |
setMaxTryNumber(java.lang.Integer pMaxTryNumber)
Set maximum of tries ongoToPosture fail.
|
void |
stop(java.lang.Integer id)
returns true if the method is currently running
|
void |
stopMove()
Stop the posture move.
|
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 ALRobotPosture(Session session) throws java.lang.Exception
java.lang.Exception
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 java.lang.String getPostureFamily() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.Boolean goToPosture(java.lang.String postureName, java.lang.Float maxSpeedFraction) throws CallError, java.lang.InterruptedException
postureName
- Name of the desired posture. Use getPostureList to get the list of posture name available.maxSpeedFraction
- A fraction.CallError
java.lang.InterruptedException
public java.lang.Boolean applyPosture(java.lang.String postureName, java.lang.Float maxSpeedFraction) throws CallError, java.lang.InterruptedException
postureName
- Name of the desired posture. Use getPostureList to get the list of posture name available.maxSpeedFraction
- A fraction.CallError
java.lang.InterruptedException
public void stopMove() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.util.List<java.lang.String> getPostureList() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.util.List<java.lang.String> getPostureFamilyList() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void setMaxTryNumber(java.lang.Integer pMaxTryNumber) throws CallError, java.lang.InterruptedException
pMaxTryNumber
- Number of retry if goToPosture fail.CallError
java.lang.InterruptedException
Aldebaran SDK for Java
Copyright 2006-2015 Aldebaran Robotics. All Rights Reserved.