Switch On

Switching a LED or group of LEDs to maximum intensity can be done with the "on" command.

Prototype:

/** * Set a LED or Group to maximum intensity * @param pName The name of the LED or Group. */ void on(const std::string& pName);

Python:

# Replace "127.0.0.1" with the IP of your NAO leds = ALProxy("ALLeds","127.0.0.1",9559) # The red light of the left foot leds.on("LFoot/Led/Red/Actuator/Value") # All the LEDs of both eyes leds.on("FaceLeds")

C++:

ALPtr<ALLedsProxy> leds = ALPtr<ALLedsProxy>(new ALLedsProxy(getParentBroker())); // The red LED of the left foot leds->on("LFoot/Led/Red/Actuator/Value"); // All the LEDs of both eyes leds->on("FaceLeds");





Copyright © 2010 Aldebaran-Robotics - All rights reserved