Overview

This module works with Linux Infrared Remote Control (LIRC) in order to emit/receive IR remotes keys or to emit/receive IR information to/from an other Nao.

Methods

void initReception (const int& RepeatThreshold)

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

RepeatThreshold

Give the keep-pressing threshold after which the repetition of a key is taken into consideration.

void sendRemoteKey (const string& Remote, const string& Key)

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

Remote

IR remote control name.

Key

IR remote control key name.

void sendIpAddress (const string& IP)

Send an IP by IR.

IP

IP adress to send through IR.

void send8 (const int& Octet)

Send 1 octet by IR.

Octet

octet to send through IR.

void send32 (const string& Data_IR)

Send 4 octets by IR.

Data_IR

4 octets to send through IR.

void send32 (const int& Octet1, const int& Octet2, const int& Octet3, const int& Octet4)

Send 4 octets by IR.

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 confRemoteRecordSave ()

Rewrite the LIRC daemon configuration file (lircd.conf) with everyremotes configuration concatenated, and reload it in LIRC daemons

void confRemoteRecordStart (const string& Rm_name)

Start remote record process.

Rm_name

Name of the remote control to reccord.

string confRemoteRecordNext ()

Called when the user click on NEXT.

Returns

Returns the last message given by irrecord (lirc program to record IR remote control).

string confRemoteRecordAddKey (const string& Keyname)

Called during polling in order to update further information.

Keyname

Name of the next remote control key to reccord.

Returns

Returns the last message given by irrecord (LIRC program to record IR remote controls).

string confRemoteRecordGetStatus ()

Called when the user validate a new key name.

Returns

Returns the last message given by irrecord (LIRC program to record IR remote controls).

string confRemoteRecordCancel ()

Kill irrecord (LIRC program to record IR remote controls).

Returns

Returns "#BEGIN#" to tell the web page to start from the beginning.


Methods inherited from ALModule

void exit ()

Exits and unregisters the module.

string version ()

Returns the version of the module.

Returns

A string containing the version of the module.

bool ping ()

Just a ping. Always returns true

Returns

returns true

vector<string> getMethodList ()

Retrieves the module's method list.

Returns

An array of method names.

AL::ALValue getMethodHelp (const string& methodName)

Retrieves a method's description.

methodName

The name of the method.

Returns

A structure containing the method's description.

AL::ALValue getModuleHelp ()

Retrieves the module's description.

Returns

A structure describing the module.

string getBrokerName ()

Gets the name of the parent broker.

Returns

The name of the parent broker.

string getUsage (const string& name)

Gets the method usage string. This summarise how to use the method.

name

The name of the method.

Returns

A string that summarises the usage of the method.


Copyright © 2010 Aldebaran Robotics - All rights reserved