public class ALInfrared extends ALProxy
Constructor and Description |
---|
ALInfrared(Session session) |
Modifier and Type | Method and Description |
---|---|
void |
clearStats() |
void |
confRemoteRecordSave()
Rewrite the LIRC daemon configuration file (lircd.conf) with everyremotes configuration concatenated, and reload it in LIRC daemons
|
void |
exit()
Exits and unregisters the module.
|
java.lang.String |
getBrokerName()
Gets the name of the parent broker.
|
java.lang.Object |
getMethodHelp(java.lang.String methodName)
Retrieves a method's description.
|
java.util.List<java.lang.String> |
getMethodList()
Retrieves the module's method list.
|
java.lang.Object |
getModuleHelp()
Retrieves the module's description.
|
java.lang.String |
getUsage(java.lang.String name)
Gets the method usage string.
|
void |
initReception(java.lang.Integer RepeatThreshold)
Init IR reception (connect as a client to the LIRC daemon).
|
java.lang.Boolean |
isRunning(java.lang.Integer id)
Returns true if the method is currently running.
|
java.lang.Boolean |
isStatsEnabled() |
java.lang.Boolean |
isTraceEnabled() |
java.lang.Boolean |
ping()
Just a ping.
|
void |
send32(java.lang.Integer Octet1,
java.lang.Integer Octet2,
java.lang.Integer Octet3,
java.lang.Integer Octet4)
Send 4 octets by IR.
|
void |
send32(java.lang.String Data_IR)
Send 4 octets by IR.
|
void |
send8(java.lang.Integer Octet)
Send 1 octet by IR.
|
void |
sendIpAddress(java.lang.String IP)
Send an IP by IR.
|
void |
sendRemoteKey(java.lang.String Remote,
java.lang.String Key)
Simulate a remote control (Nao as a remote control).
|
void |
sendRemoteKeyWithTime(java.lang.String Remote,
java.lang.String Key,
java.lang.Integer pTimeMs)
Simulate a remote control (Nao as a remote control).
|
void |
stop(java.lang.Integer id)
returns true if the method is currently running
|
java.lang.String |
version()
Returns the version of the module.
|
java.lang.Boolean |
wait(java.lang.Integer id,
java.lang.Integer timeoutPeriod)
Wait for the end of a long running method that was called using 'post'
|
call, connect, connect, disconnect, getNaoqiType, getService, isProxyReady, setService
public ALInfrared(Session session) throws java.lang.Exception
java.lang.Exception
public java.lang.Boolean isStatsEnabled() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void clearStats() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.Boolean isTraceEnabled() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void exit() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.String version() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.Boolean ping() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.util.List<java.lang.String> getMethodList() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.Object getMethodHelp(java.lang.String methodName) throws CallError, java.lang.InterruptedException
methodName
- The name of the method.CallError
java.lang.InterruptedException
public java.lang.Object getModuleHelp() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.Boolean wait(java.lang.Integer id, java.lang.Integer timeoutPeriod) throws CallError, java.lang.InterruptedException
id
- The ID of the method that was returned when calling the method using 'post'timeoutPeriod
- The timeout period in ms. To wait indefinately, use a timeoutPeriod of zero.CallError
java.lang.InterruptedException
public java.lang.Boolean isRunning(java.lang.Integer id) throws CallError, java.lang.InterruptedException
id
- The ID of the method that was returned when calling the method using 'post'CallError
java.lang.InterruptedException
public void stop(java.lang.Integer id) throws CallError, java.lang.InterruptedException
id
- the ID of the method to wait forCallError
java.lang.InterruptedException
public java.lang.String getBrokerName() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.String getUsage(java.lang.String name) throws CallError, java.lang.InterruptedException
name
- The name of the method.CallError
java.lang.InterruptedException
public void initReception(java.lang.Integer RepeatThreshold) throws CallError, java.lang.InterruptedException
RepeatThreshold
- Give the keep-pressing threshold after which the repetition of a key is taken into consideration.CallError
java.lang.InterruptedException
public void sendRemoteKey(java.lang.String Remote, java.lang.String Key) throws CallError, java.lang.InterruptedException
Remote
- IR remote control name.Key
- IR remote control key name.CallError
java.lang.InterruptedException
public void sendRemoteKeyWithTime(java.lang.String Remote, java.lang.String Key, java.lang.Integer pTimeMs) throws CallError, java.lang.InterruptedException
Remote
- IR remote control name.Key
- IR remote control key name.pTimeMs
- The time in ms when the remote key must be send. 0 deals like sendRemoteKeyCallError
java.lang.InterruptedException
public void sendIpAddress(java.lang.String IP) throws CallError, java.lang.InterruptedException
IP
- IP adress to send through IR.CallError
java.lang.InterruptedException
public void send8(java.lang.Integer Octet) throws CallError, java.lang.InterruptedException
Octet
- octet to send through IR.CallError
java.lang.InterruptedException
public void send32(java.lang.String Data_IR) throws CallError, java.lang.InterruptedException
Data_IR
- 4 octets to send through IR.CallError
java.lang.InterruptedException
public void send32(java.lang.Integer Octet1, java.lang.Integer Octet2, java.lang.Integer Octet3, java.lang.Integer Octet4) throws CallError, java.lang.InterruptedException
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.CallError
java.lang.InterruptedException
Aldebaran SDK for Java
Copyright 2006-2015 Aldebaran Robotics. All Rights Reserved.