public class ALPeoplePerception extends ALProxy
Constructor and Description |
---|
ALPeoplePerception(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.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 |
getMaximumBodyHeight()
Gets the current maximum body height used for human detection (3D mode only).
|
java.lang.Float |
getMaximumDetectionRange()
Gets the current maximum detection and tracking range.
|
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.Float |
getMinimumBodyHeight()
Gets the current minimum body height used for human detection (3D mode only).
|
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.Object |
getSubscribersInfo()
Gets the parameters given by the module.
|
java.lang.Float |
getTimeBeforePersonDisappears()
Gets the time after which a person, supposed not to be in the field of view of the camera disappears if it has not been detected.
|
java.lang.Float |
getTimeBeforeVisiblePersonDisappears()
Gets the time after which a person, supposed to be in the field of view of the camera disappears if it has not been detected.
|
java.lang.String |
getUsage(java.lang.String name)
Gets the method usage string.
|
java.lang.Boolean |
isFaceDetectionEnabled()
Gets the current status of face detection.
|
java.lang.Boolean |
isFastModeEnabled()
Gets the current status of fast mode.
|
java.lang.Boolean |
isGraphicalDisplayEnabled()
Gets the current status of graphical display in Choregraphe.
|
java.lang.Boolean |
isMovementDetectionEnabled()
Gets the current status of movement detection in Choregraphe.
|
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 |
resetPopulation()
Empties the tracked population.
|
void |
setFaceDetectionEnabled(java.lang.Boolean enable)
Turns face detection on or off.
|
void |
setFastModeEnabled(java.lang.Boolean enable)
Turns fast mode on or off.
|
void |
setGraphicalDisplayEnabled(java.lang.Boolean enable)
Turns graphical display in Choregraphe on or off.
|
void |
setMaximumBodyHeight(java.lang.Float height)
Sets the maximum human body height (3D mode only).
|
void |
setMaximumDetectionRange(java.lang.Float range)
Sets the maximum range for human detection and tracking.
|
void |
setMinimumBodyHeight(java.lang.Float height)
Sets the minimum human body height (3D mode only).
|
void |
setMovementDetectionEnabled(java.lang.Boolean enable)
Turns movement detection on or off.
|
void |
setTimeBeforePersonDisappears(java.lang.Float seconds)
Sets the time after which a person, supposed not to be in the field of view of the camera disappears if it has not been detected.
|
void |
setTimeBeforeVisiblePersonDisappears(java.lang.Float seconds)
Sets the time after which a person, supposed to be in the field of view of the camera disappears if it has not been detected.
|
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, setService
public ALPeoplePerception(Session session) throws java.lang.Exception
java.lang.Exception
public java.lang.Float getTimeBeforePersonDisappears() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.Boolean isMovementDetectionEnabled() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.Boolean isProcessing() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void setFastModeEnabled(java.lang.Boolean enable) throws CallError, java.lang.InterruptedException
enable
- True to turn it on, False to turn it off.CallError
java.lang.InterruptedException
public void setGraphicalDisplayEnabled(java.lang.Boolean enable) throws CallError, java.lang.InterruptedException
enable
- True to turn it on, False to turn it off.CallError
java.lang.InterruptedException
public java.lang.Float getMinimumBodyHeight() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void setMinimumBodyHeight(java.lang.Float height) throws CallError, java.lang.InterruptedException
height
- Minimum height in meters.CallError
java.lang.InterruptedException
public void setMaximumBodyHeight(java.lang.Float height) throws CallError, java.lang.InterruptedException
height
- Maximum height in meters.CallError
java.lang.InterruptedException
public void setMovementDetectionEnabled(java.lang.Boolean enable) throws CallError, java.lang.InterruptedException
enable
- True to turn it on, False to turn it off.CallError
java.lang.InterruptedException
public void setTimeBeforePersonDisappears(java.lang.Float seconds) throws CallError, java.lang.InterruptedException
seconds
- Time in seconds.CallError
java.lang.InterruptedException
public void setTimeBeforeVisiblePersonDisappears(java.lang.Float seconds) throws CallError, java.lang.InterruptedException
seconds
- Time in seconds.CallError
java.lang.InterruptedException
public java.lang.Float getMaximumBodyHeight() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.Float getTimeBeforeVisiblePersonDisappears() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void setFaceDetectionEnabled(java.lang.Boolean enable) throws CallError, java.lang.InterruptedException
enable
- True to turn it on, False to turn it off.CallError
java.lang.InterruptedException
public java.lang.Boolean isFaceDetectionEnabled() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.Float getMaximumDetectionRange() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.Boolean isFastModeEnabled() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.Boolean isGraphicalDisplayEnabled() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void resetPopulation() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void setMaximumDetectionRange(java.lang.Float range) throws CallError, java.lang.InterruptedException
range
- Maximum range in meters.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 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.CallError
java.lang.InterruptedException
public void subscribe(java.lang.String name) throws CallError, java.lang.InterruptedException
name
- Name of the module which subscribes.CallError
java.lang.InterruptedException
public void unsubscribe(java.lang.String name) throws CallError, java.lang.InterruptedException
name
- Name of the module which had subscribed.CallError
java.lang.InterruptedException
public 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).CallError
java.lang.InterruptedException
public 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.CallError
java.lang.InterruptedException
public java.lang.Integer getCurrentPeriod() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.Float getCurrentPrecision() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.Integer getMyPeriod(java.lang.String name) throws CallError, java.lang.InterruptedException
name
- Name of the module which has subscribed.CallError
java.lang.InterruptedException
public java.lang.Float getMyPrecision(java.lang.String name) throws CallError, java.lang.InterruptedException
name
- name of the module which has subscribedCallError
java.lang.InterruptedException
public java.lang.Object getSubscribersInfo() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.util.List<java.lang.String> getOutputNames() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.util.List<java.lang.String> getEventList() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.util.List<java.lang.String> getMemoryKeyList() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.Boolean isPaused() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
Aldebaran SDK for Java
Copyright 2006-2015 Aldebaran Robotics. All Rights Reserved.