ALInfrared API

NAOqi Sensors - Overview | API | Tutorial


Method list

As any module, this module inherits methods from ALModule API. It also has the following specific methods:

class ALInfraredProxy

Methods

void ALInfraredProxy::initReception(const int& RepeatThreshold)

Init IR reception (connect as a client to the LIRC daemon).

Parameters:
  • RepeatThreshold – keep-pressing threshold after which the repetition of a key is taken into consideration.
void ALInfraredProxy::send32(const std::string& Data_IR)

Send 4 octets by IR.

Parameters:
  • Data_IR – 32 bits number to send through IR, as a string.
void ALInfraredProxy::send32(const int& Octet1, const int& Octet2, const int& Octet3, const int& Octet4)

Send 4 octets by IR.

Parameters:
  • Octet1 – Octet 1 to send through IR.
  • Octet2 – Octet 2 to send through IR.
  • Octet3 – Octet 3 to send through IR.
  • Octet4 – Octet 4 to send through IR.
void ALInfraredProxy::send8(const int& Octet)

Send 1 octet by IR.

Parameters:
  • Octet – octet to send through IR.
void ALInfraredProxy::sendIpAddress(const std::string& IP)

Send an IP address by IR.

Parameters:
  • IP – IP address to send through IR.
void ALInfraredProxy::sendRemoteKey(const std::string& Remote, const std::string& Key)

Simulate a remote control (NAO as a remote control).

Parameters:
  • Remote – IR remote control name.
  • Key – IR remote control key name.
void ALInfraredProxy::sendRemoteKeyWithTime(const std::string& Remote, const std::string& Key, const int& TimeMs)

Simulate a remote control (NAO as a remote control).

Parameters:
  • Remote – IR remote control name.
  • Key – IR remote control key name.
  • TimeMs – The time in ms when the remote key must be send. 0 deals like sendRemoteKey