public class ALMotionRecorder extends ALProxy
| Constructor and Description |
|---|
ALMotionRecorder(Session session) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearStats() |
void |
dataChanged(java.lang.String dataName,
java.lang.Object data,
java.lang.String message)
Called by ALMemory when subcription data is updated.
|
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 |
getUsage(java.lang.String name)
Gets the method usage string.
|
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 |
startInteractiveRecording(java.util.List<java.lang.String> jointsToRecord,
java.lang.Integer nbPoses,
java.lang.Boolean extensionAllowed,
java.lang.Integer mode)
Start recording the motion in an interactive mode
|
void |
startPeriodicRecording(java.util.List<java.lang.String> jointsToRecord,
java.lang.Integer nbPoses,
java.lang.Boolean extensionAllowed,
java.lang.Float timeStep,
java.util.List<java.lang.String> jointsToReplay,
java.lang.Object replayData)
Start recording the motion in a periodic mode
|
void |
stop(java.lang.Integer id)
returns true if the method is currently running
|
java.lang.Object |
stopAndGetRecording()
Stop recording the motion and return data
|
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 ALMotionRecorder(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 void startInteractiveRecording(java.util.List<java.lang.String> jointsToRecord,
java.lang.Integer nbPoses,
java.lang.Boolean extensionAllowed,
java.lang.Integer mode)
throws CallError,
java.lang.InterruptedException
jointsToRecord - Names of joints that must be recordednbPoses - Default number of poses to recordextensionAllowed - Set to true to ignore nbPoses and keep recording new poses as long as record is not manually stoppedmode - Indicates which interactive mode must be used. 1 : Use right bumper to enslave and left bumper to store the pose (deprecated); 2 : Use chest button to store the poseCallErrorjava.lang.InterruptedExceptionpublic void startPeriodicRecording(java.util.List<java.lang.String> jointsToRecord,
java.lang.Integer nbPoses,
java.lang.Boolean extensionAllowed,
java.lang.Float timeStep,
java.util.List<java.lang.String> jointsToReplay,
java.lang.Object replayData)
throws CallError,
java.lang.InterruptedException
jointsToRecord - Names of joints that must be recordednbPoses - Default number of poses to recordextensionAllowed - set to true to ignore nbPoses and keep recording new poses as long as record is not manually stoppedtimeStep - Time in seconds to wait between two posesjointsToReplay - Names of joints that must be replayedreplayData - An ALValue holding data for replayed joints. It holds two ALValues. The first one is an ALValue where each line corresponds to a joint, and column elements are times of control points The second one is also an ALValue where each line corresponds to a joint, but column elements are arrays containing [float angle, Handle1, Handle2] elements, where Handle is [int InterpolationType, float dAngle, float dTime] describing the handle offsets relative to the angle and time of the point. The first bezier param describes the handle that controls the curve preceding the point, the second describes the curve following the point.CallErrorjava.lang.InterruptedExceptionpublic java.lang.Object stopAndGetRecording()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void dataChanged(java.lang.String dataName,
java.lang.Object data,
java.lang.String message)
throws CallError,
java.lang.InterruptedException
dataName - Name of the subscribed data.data - Value of the the subscribed datamessage - The message give when subscribing.CallErrorjava.lang.InterruptedExceptionAldebaran SDK for Java
Copyright 2006-2015 Aldebaran Robotics. All Rights Reserved.