public class ALLeds extends ALProxy
Modifier and Type | Method and Description |
---|---|
void |
clearStats() |
void |
createGroup(java.lang.String groupName,
java.util.List<java.lang.String> ledNames)
Makes a group name for ease of setting multiple LEDs.
|
void |
earLedsSetAngle(java.lang.Integer degrees,
java.lang.Float duration,
java.lang.Boolean leaveOnAtEnd)
An animation to show a direction with the ears.
|
void |
exit()
Exits and unregisters the module.
|
void |
fade(java.lang.String name,
java.lang.Float intensity,
java.lang.Float duration)
Sets the intensity of a LED or Group of LEDs within a given time.
|
void |
fadeListRGB(java.lang.String name,
java.lang.Object rgbList,
java.lang.Object timeList)
Chain a list of color for a device, as the motion.doMove command.
|
void |
fadeRGB(java.lang.String name,
java.lang.Float red,
java.lang.Float green,
java.lang.Float blue,
java.lang.Float duration)
Sets the color of an RGB led.
|
void |
fadeRGB(java.lang.String name,
java.lang.Integer rgb,
java.lang.Float duration)
Sets the color of an RGB led.
|
void |
fadeRGB(java.lang.String name,
java.lang.String colorName,
java.lang.Float duration)
Sets the color of an RGB led.
|
java.lang.String |
getBrokerName()
Gets the name of the parent broker.
|
java.lang.Object |
getIntensity(java.lang.String name)
Gets the intensity of a LED or device
|
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.util.List<java.lang.String> |
listGroup(java.lang.String groupName)
Lists the devices in the group.
|
java.util.List<java.lang.String> |
listGroups()
Lists available group names.
|
java.util.List<java.lang.String> |
listLED(java.lang.String name)
Lists the devices aliased by a short LED name.
|
java.util.List<java.lang.String> |
listLEDs()
Lists the short LED names.
|
void |
off(java.lang.String name)
Switch to a minimum intensity a LED or Group of LEDs.
|
void |
on(java.lang.String name)
Switch to a maximum intensity a LED or Group of LEDs.
|
java.lang.Boolean |
ping()
Just a ping.
|
void |
randomEyes(java.lang.Float duration)
Launch a random animation in eyes
|
void |
rasta(java.lang.Float duration)
Launch a green/yellow/red rasta animation on all body.
|
void |
reset(java.lang.String name)
Resets the state of the leds to default (for ex, eye LEDs are white and fully on by default).
|
void |
rotateEyes(java.lang.Integer rgb,
java.lang.Float timeForRotation,
java.lang.Float totalDuration)
Launch a rotation using the leds of the eyes.
|
void |
setIntensity(java.lang.String name,
java.lang.Float intensity)
Sets the intensity of a LED or Group of LEDs.
|
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, setService
public ALLeds(Session session) throws java.lang.Exception
java.lang.Exception
public void setIntensity(java.lang.String name, java.lang.Float intensity) throws CallError, java.lang.InterruptedException
name
- The name of the LED or Group.intensity
- The intensity of the LED or Group (a value between 0 and 1).CallError
java.lang.InterruptedException
public void on(java.lang.String name) throws CallError, java.lang.InterruptedException
name
- The name of the LED or Group.CallError
java.lang.InterruptedException
public void rotateEyes(java.lang.Integer rgb, java.lang.Float timeForRotation, java.lang.Float totalDuration) throws CallError, java.lang.InterruptedException
rgb
- the RGB value led, RGB as seen in hexa-decimal: 0x00RRGGBB.timeForRotation
- Approximate time to make one turn.totalDuration
- Approximate duration of the animation in seconds.CallError
java.lang.InterruptedException
public void randomEyes(java.lang.Float duration) throws CallError, java.lang.InterruptedException
duration
- Approximate duration of the animation in seconds.CallError
java.lang.InterruptedException
public void rasta(java.lang.Float duration) throws CallError, java.lang.InterruptedException
duration
- Approximate duration of the animation in seconds.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 createGroup(java.lang.String groupName, java.util.List<java.lang.String> ledNames) throws CallError, java.lang.InterruptedException
groupName
- The name of the group.ledNames
- A vector of the names of the LEDs in the group.CallError
java.lang.InterruptedException
public void earLedsSetAngle(java.lang.Integer degrees, java.lang.Float duration, java.lang.Boolean leaveOnAtEnd) throws CallError, java.lang.InterruptedException
degrees
- The angle you want to show in degrees (int). 0 is up, 90 is forwards, 180 is down and 270 is back.duration
- The duration in seconds of the animation.leaveOnAtEnd
- If true the last led is left on at the end of the animation.CallError
java.lang.InterruptedException
public void fade(java.lang.String name, java.lang.Float intensity, java.lang.Float duration) throws CallError, java.lang.InterruptedException
name
- The name of the LED or Group.intensity
- The intensity of the LED or Group (a value between 0 and 1).duration
- The duration of the fade in secondsCallError
java.lang.InterruptedException
public void fadeListRGB(java.lang.String name, java.lang.Object rgbList, java.lang.Object timeList) throws CallError, java.lang.InterruptedException
name
- The name of the LED or Group.rgbList
- List of RGB led value, RGB as seen in hexa-decimal: 0x00RRGGBB.timeList
- List of time to go to given intensity.CallError
java.lang.InterruptedException
public void fadeRGB(java.lang.String name, java.lang.Float red, java.lang.Float green, java.lang.Float blue, java.lang.Float duration) throws CallError, java.lang.InterruptedException
name
- The name of the LED or Group.red
- the intensity of red channel (0-1).green
- the intensity of green channel (0-1).blue
- the intensity of blue channel (0-1).duration
- Time used to fade in seconds.CallError
java.lang.InterruptedException
public void fadeRGB(java.lang.String name, java.lang.String colorName, java.lang.Float duration) throws CallError, java.lang.InterruptedException
name
- The name of the LED or Group.colorName
- the name of the color (supported colors: "white", "red", "green", "blue", "yellow", "magenta", "cyan")duration
- Time used to fade in seconds.CallError
java.lang.InterruptedException
public void fadeRGB(java.lang.String name, java.lang.Integer rgb, java.lang.Float duration) throws CallError, java.lang.InterruptedException
name
- The name of the LED or Group.rgb
- The RGB value led, RGB as seen in hexa-decimal: 0x00RRGGBB.duration
- Time used to fade in seconds.CallError
java.lang.InterruptedException
public void reset(java.lang.String name) throws CallError, java.lang.InterruptedException
name
- The name of the LED or Group (for now, only "AllLeds" are implemented).CallError
java.lang.InterruptedException
public java.lang.Object getIntensity(java.lang.String name) throws CallError, java.lang.InterruptedException
name
- The name of the LED or Group.CallError
java.lang.InterruptedException
public java.util.List<java.lang.String> listLEDs() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.util.List<java.lang.String> listLED(java.lang.String name) throws CallError, java.lang.InterruptedException
name
- The name of the LED to listCallError
java.lang.InterruptedException
public java.util.List<java.lang.String> listGroup(java.lang.String groupName) throws CallError, java.lang.InterruptedException
groupName
- The name of the Group.CallError
java.lang.InterruptedException
public java.util.List<java.lang.String> listGroups() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
Aldebaran SDK for Java
Copyright 2006-2015 Aldebaran Robotics. All Rights Reserved.