ALLeds

Overview | API

What it does

This module allows you to control NAO’s LEDs (Light Emitting Diode).

It provides simple ways of setting or fading the intensity of a LED or a group of LEDs:

It also provides animations:

And useful methods to manage groups and lists:

# Example showing how to list the devices in a group
proxy.listGroup("FaceLeds")

How it works

Colors

  • Ear LEDs are blue.
  • Eye, Chest and Feet LEDs are RGB Fullcolour, so it is possible to combine the three primary colors (red, green and blue) in order to obtain different colors.

Intensity

It is possible to control the LEDs intensity (between 0 and 100%).

LED positions

../../_images/robot_lights_NaoLedLocations.png

Getting started

To control a group of LEDs:

To control a LED:

List of Group Names

Group names can be used to trigger all of the devices in the group.

  • AllLeds,
  • AllLedsBlue
  • AllLedsGreen
  • AllLedsRed
  • ChestLeds
  • EarLeds
  • FaceLed0
  • FaceLed1
  • FaceLed2
  • FaceLed3
  • FaceLed4
  • FaceLed5
  • FaceLed6
  • FaceLed7
  • FaceLedLeft0
  • FaceLedLeft1
  • FaceLedLeft2
  • FaceLedLeft3
  • FaceLedLeft4
  • FaceLedLeft5
  • FaceLedLeft6
  • FaceLedLeft7
  • FaceLedRight0
  • FaceLedRight1
  • FaceLedRight2
  • FaceLedRight3
  • FaceLedRight4
  • FaceLedRight5
  • FaceLedRight6
  • FaceLedRight7
  • FaceLeds
  • FaceLedsBottom
  • FaceLedsExternal
  • FaceLedsInternal
  • FaceLedsLeftBottom
  • FaceLedsLeftExternal
  • FaceLedsLeftInternal
  • FaceLedsLeftTop
  • FaceLedsRightBottom
  • FaceLedsRightExternal
  • FaceLedsRightInternal
  • FaceLedsRightTop
  • FaceLedsTop
  • FeetLeds
  • LeftEarLeds
  • LeftEarLedsBack
  • LeftEarLedsEven
  • LeftEarLedsFront
  • LeftEarLedsOdd
  • LeftFaceLeds
  • LeftFaceLedsBlue
  • LeftFaceLedsGreen
  • LeftFaceLedsRed
  • LeftFootLeds
  • RightEarLeds
  • RightEarLedsBack
  • RightEarLedsEven
  • RightEarLedsFront
  • RightEarLedsOdd
  • RightFaceLeds
  • RightFaceLedsBlue
  • RightFaceLedsGreen
  • RightFaceLedsRed
  • RightFootLeds

List of LED Names

Left Ear: 10 Blue LEDs

  • Ears/Led/Left/0Deg
  • Ears/Led/Left/36Deg
  • Ears/Led/Left/72Deg
  • Ears/Led/Left/108Deg
  • Ears/Led/Left/144Deg
  • Ears/Led/Left/180Deg
  • Ears/Led/Left/216Deg
  • Ears/Led/Left/252Deg
  • Ears/Led/Left/288Deg
  • Ears/Led/Left/324Deg

Right Ear: 10 Blue LEDs

  • Ears/Led/Right/0Deg
  • Ears/Led/Right/36Deg
  • Ears/Led/Right/72Deg
  • Ears/Led/Right/108Deg
  • Ears/Led/Right/144Deg
  • Ears/Led/Right/180Deg
  • Ears/Led/Right/216Deg
  • Ears/Led/Right/252Deg
  • Ears/Led/Right/288Deg
  • Ears/Led/Right/324Deg

Left Eye: 8 Red, 8 Green and 8 Blue LEDs

  • Face/Led/Red/Left/0Deg
  • Face/Led/Red/Left/45Deg
  • Face/Led/Red/Left/90Deg
  • Face/Led/Red/Left/135Deg
  • Face/Led/Red/Left/180Deg
  • Face/Led/Red/Left/225Deg
  • Face/Led/Red/Left/270Deg
  • Face/Led/Red/Left/315Deg
  • Face/Led/Green/Left/0Deg
  • Face/Led/Green/Left/45Deg
  • Face/Led/Green/Left/90Deg
  • Face/Led/Green/Left/135Deg
  • Face/Led/Green/Left/180Deg
  • Face/Led/Green/Left/225Deg
  • Face/Led/Green/Left/270Deg
  • Face/Led/Green/Left/315Deg
  • Face/Led/Blue/Left/0Deg
  • Face/Led/Blue/Left/45Deg
  • Face/Led/Blue/Left/90Deg
  • Face/Led/Blue/Left/135Deg
  • Face/Led/Blue/Left/180Deg
  • Face/Led/Blue/Left/225Deg
  • Face/Led/Blue/Left/270Deg
  • Face/Led/Blue/Left/315Deg

Right Eye: 8 Red, 8 Green and 8 Blue LEDs

  • Face/Led/Red/Right/0Deg
  • Face/Led/Red/Right/45Deg
  • Face/Led/Red/Right/90Deg
  • Face/Led/Red/Right/135Deg
  • Face/Led/Red/Right/180Deg
  • Face/Led/Red/Right/225Deg
  • Face/Led/Red/Right/270Deg
  • Face/Led/Red/Right/315Deg
  • Face/Led/Green/Right/0Deg
  • Face/Led/Green/Right/45Deg
  • Face/Led/Green/Right/90Deg
  • Face/Led/Green/Right/135Deg
  • Face/Led/Green/Right/180Deg
  • Face/Led/Green/Right/225Deg
  • Face/Led/Green/Right/270Deg
  • Face/Led/Green/Right/315Deg
  • Face/Led/Blue/Right/0Deg
  • Face/Led/Blue/Right/45Deg
  • Face/Led/Blue/Right/90Deg
  • Face/Led/Blue/Right/135Deg
  • Face/Led/Blue/Right/180Deg
  • Face/Led/Blue/Right/225Deg
  • Face/Led/Blue/Right/270Deg
  • Face/Led/Blue/Right/315Deg

Chest Button: One LED of each color

  • ChestBoard/Led/Red
  • ChestBoard/Led/Green
  • ChestBoard/Led/Blue

Left foot: One LED of each color

  • LFoot/LED/Red
  • LFoot/LED/Green
  • LFoot/LED/Blue

Right foot: One LED of each color

  • RFoot/LED/Red
  • RFoot/LED/Green
  • RFoot/LED/Blue