关闭

使用“off”命令,将一个或一组LED关闭至最小亮度。

原型:

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

Python:

# Replace "127.0.0.1" with the IP of your NAO leds = ALProxy("ALLeds","127.0.0.1",9559) # All LEDs off leds.off("AllLeds")

C++:

ALPtr<ALLedsProxy> leds = ALPtr<ALLedsProxy>(new ALLedsProxy(getParentBroker())); // All LEDs off leds->off("AllLeds");





Copyright © 2010 Aldebaran-Robotics - 版权所有