ALInfrared API

NAOqi Sensors - Overview | API | Tutorial


Namespace : AL

#include <alproxies/alinfraredproxy.h>

Method list

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

class ALInfraredProxy

Deprecated methods

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 bytes by IR.

Parameters:
  • Data_IR – 32 bits number to send through IR, as a string.
void ALInfraredProxy::send32(const int& Byte1, const int& Byte2, const int& Byte3, const int& Byte4)

Send 4 bytes by IR.

Parameters:
  • Byte1 – Byte 1 to send through IR.
  • Byte2 – Byte 2 to send through IR.
  • Byte3 – Byte 3 to send through IR.
  • Byte4 – Byte 4 to send through IR.
void ALInfraredProxy::send8(const int& Byte)

Send 1 byte by IR.

Parameters:
  • Byte – byte 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 (the robot 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 (the robot 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
void ALInfraredProxy::confRemoteRecordSave(void)

Deprecated since version 1.22: due to technical improvements, this method is not useful anymore. Do not use.