点亮

使用“on”命令,将一个或一组LED点亮至最大亮度。

原型:

/** * 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 - 版权所有