I'm working on some energy computation about the sounds perceived by the Nao robot.
I'm using naoqi 2-1-4
and the following snippet of code to show the values:
import time
from naoqi import ALProxy
robotIP = "194.119.214.185"
port = 9559
soundDevice = ALProxy("ALAudioDevice", robotIP, port)
soundDevice.enableEnergyComputation()
try:
header = 'Left\t\t\t\tRight\t\t\t\tFront\t\t\t\tRear'
fmt = '{Left:.2f}\t\t\t\t{Right:.2f}\t\t\t\t{Front:.2f}\t\t\t\t{Rear:.2f}'
while True:
time.sleep(0.5)
left = soundDevice.getLeftMicEnergy()
right = soundDevice.getRightMicEnergy()
front = soundDevice.getFrontMicEnergy()
rear = soundDevice.getRearMicEnergy()
print header
print fmt.format(Left=left,Right=right,
Front=front,Rear=rear)
except KeyboardInterrupt:
print "Stopped by user."
I was not able to understand what is the nature of this values.
I've looked into this code from this page (at the bottom. Yeah I know it's c++ code but I could not find more, I assume that is the same concept, except for the language) and found in a comment that the RMS power
is calculated.
I can't understand how are these values possible (tried to express them in dB but they made no sense anyway).
Does anyone have any idea of what these values stand for? How can I relate them to some "real" measuring units?
By the way here is a list of all methods.
Thanks in advance