public class ALEngagementZones extends ALProxy
| Constructor and Description |
|---|
ALEngagementZones(Session session) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearStats() |
java.lang.Integer |
computeEngagementZone(java.lang.Float x,
java.lang.Float y,
java.lang.Float z)
Computes the engagement zone in which an object is from its position in FRAME_ROBOT
|
java.lang.Integer |
computeEngagementZone(java.lang.Float xAngle,
java.lang.Float yAngle,
java.lang.Float distance,
java.lang.Object cameraPositionRobot)
Computes the engagement zone in which an object is from its anglular position in the camera image, its distance from the robot, and the position of the camera in FRAME_ROBOT
|
void |
exit()
Exits and unregisters the module.
|
java.lang.String |
getBrokerName()
Gets the name of the parent broker.
|
java.lang.Integer |
getCurrentPeriod()
Gets the current period.
|
java.lang.Float |
getCurrentPrecision()
Gets the current precision.
|
java.util.List<java.lang.String> |
getEventList()
Get the list of events updated in ALMemory.
|
java.lang.Float |
getFirstLimitDistance()
Get the first distance used for the delimitation of the engagement zones (nearest limit)
|
java.lang.Float |
getLimitAngle()
Get the angle used for the delimitation of the engagement zones
|
java.util.List<java.lang.String> |
getMemoryKeyList()
Get the list of events updated in ALMemory.
|
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.Integer |
getMyPeriod(java.lang.String name)
Gets the period for a specific subscription.
|
java.lang.Float |
getMyPrecision(java.lang.String name)
Gets the precision for a specific subscription.
|
java.util.List<java.lang.String> |
getOutputNames()
Get the list of values updated in ALMemory.
|
java.lang.Float |
getSecondLimitDistance()
Get the second distance used for the delimitation of the engagement zones (furthest limit)
|
java.lang.Object |
getSubscribersInfo()
Gets the parameters given by the module.
|
java.lang.String |
getUsage(java.lang.String name)
Gets the method usage string.
|
java.lang.Boolean |
isPaused()
Gets extractor pause status
|
java.lang.Boolean |
isProcessing()
Gets extractor running status
|
java.lang.Boolean |
isRunning(java.lang.Integer id)
Returns true if the method is currently running.
|
java.lang.Boolean |
isStatsEnabled() |
java.lang.Boolean |
isTraceEnabled() |
void |
pause(java.lang.Boolean status)
Changes the pause status of the extractor
|
java.lang.Boolean |
ping()
Just a ping.
|
void |
setFirstLimitDistance(java.lang.Float distance)
Set the first distance used for the delimitation of the engagement zones (nearest limit)
|
void |
setLimitAngle(java.lang.Float angle)
Set the angle used for the delimitation of the engagement zones
|
void |
setSecondLimitDistance(java.lang.Float distance)
Set the second distance used for the delimitation of the engagement zones (furthest limit)
|
void |
stop(java.lang.Integer id)
returns true if the method is currently running
|
void |
subscribe(java.lang.String name)
Subscribes to the extractor.
|
void |
subscribe(java.lang.String name,
java.lang.Integer period,
java.lang.Float precision)
Subscribes to the extractor.
|
void |
unsubscribe(java.lang.String name)
Unsubscribes from the extractor.
|
void |
updatePeriod(java.lang.String name,
java.lang.Integer period)
Updates the period if relevant.
|
void |
updatePrecision(java.lang.String name,
java.lang.Float precision)
Updates the precision if relevant.
|
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 ALEngagementZones(Session session) throws java.lang.Exception
java.lang.Exceptionpublic java.lang.Float getFirstLimitDistance()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean isProcessing()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Float getLimitAngle()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void setFirstLimitDistance(java.lang.Float distance)
throws CallError,
java.lang.InterruptedException
distance - New first distance (in meters) for delimitation (nearest limit), it should be positive and smaller than the second distanceCallErrorjava.lang.InterruptedExceptionpublic void setSecondLimitDistance(java.lang.Float distance)
throws CallError,
java.lang.InterruptedException
distance - New second distance (in meters) for delimitation (furthest limit), it should be positive and bigger than the first distanceCallErrorjava.lang.InterruptedExceptionpublic java.lang.Float getSecondLimitDistance()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void setLimitAngle(java.lang.Float angle)
throws CallError,
java.lang.InterruptedException
angle - New angle (in degrees) for delimitation, it should be below 180CallErrorjava.lang.InterruptedExceptionpublic java.lang.Integer computeEngagementZone(java.lang.Float x,
java.lang.Float y,
java.lang.Float z)
throws CallError,
java.lang.InterruptedException
x - X coordinate of the object in FRAME_ROBOTy - Y coordinate of the object in FRAME_ROBOTz - Z coordinate of the object in FRAME_ROBOTCallErrorjava.lang.InterruptedExceptionpublic java.lang.Integer computeEngagementZone(java.lang.Float xAngle,
java.lang.Float yAngle,
java.lang.Float distance,
java.lang.Object cameraPositionRobot)
throws CallError,
java.lang.InterruptedException
xAngle - X angular coordinate of the object in the imageyAngle - Y angular coordinate of the object in the imagedistance - distance of the object from the robotcameraPositionRobot - camera position in FRAME_ROBOTCallErrorjava.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 subscribe(java.lang.String name,
java.lang.Integer period,
java.lang.Float precision)
throws CallError,
java.lang.InterruptedException
name - Name of the module which subscribes.period - Refresh period (in milliseconds) if relevant.precision - Precision of the extractor if relevant.CallErrorjava.lang.InterruptedExceptionpublic void subscribe(java.lang.String name)
throws CallError,
java.lang.InterruptedException
name - Name of the module which subscribes.CallErrorjava.lang.InterruptedExceptionpublic void unsubscribe(java.lang.String name)
throws CallError,
java.lang.InterruptedException
name - Name of the module which had subscribed.CallErrorjava.lang.InterruptedExceptionpublic void updatePeriod(java.lang.String name,
java.lang.Integer period)
throws CallError,
java.lang.InterruptedException
name - Name of the module which has subscribed.period - Refresh period (in milliseconds).CallErrorjava.lang.InterruptedExceptionpublic void updatePrecision(java.lang.String name,
java.lang.Float precision)
throws CallError,
java.lang.InterruptedException
name - Name of the module which has subscribed.precision - Precision of the extractor.CallErrorjava.lang.InterruptedExceptionpublic java.lang.Integer getCurrentPeriod()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Float getCurrentPrecision()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Integer getMyPeriod(java.lang.String name)
throws CallError,
java.lang.InterruptedException
name - Name of the module which has subscribed.CallErrorjava.lang.InterruptedExceptionpublic java.lang.Float getMyPrecision(java.lang.String name)
throws CallError,
java.lang.InterruptedException
name - name of the module which has subscribedCallErrorjava.lang.InterruptedExceptionpublic java.lang.Object getSubscribersInfo()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.util.List<java.lang.String> getOutputNames()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.util.List<java.lang.String> getEventList()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.util.List<java.lang.String> getMemoryKeyList()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean isPaused()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionAldebaran SDK for Java
Copyright 2006-2015 Aldebaran Robotics. All Rights Reserved.