Initialize infrared reception

To be able to receive infrared data you should call the following bound method:

/** * Function initReception * is called to initialyse receiving IR information from a remote control or a NAO * @param pRepeatThreshold : number which set the repetition threshold of buttons */ void initReception(const int& pRepeatThreshold);

Python example:

import naoqi from naoqi import ALProxy lirc=ALProxy("ALInfrared","127.0.0.1",9559) lirc.initReception(10);

The parameter pRepeatThreshold is only useful with some remote control. It avoids thousands of event reception if the remote control send the same button frame several time with only one tap! If you don't care about it, just set it to -1 and the default value will be set or it will keep the previous value if you already called this method:

lirc.initReception(-1);





Copyright © 2010 Aldebaran-Robotics - All rights reserved