added readout temperature script
This commit is contained in:
13
pykick/readout_temperatures.py
Normal file
13
pykick/readout_temperatures.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from naoqi import ALProxy
|
||||
from time import sleep
|
||||
# create proxy on ALMemory
|
||||
memProxy = ALProxy("ALMemory",'192.168.0.11',9559)
|
||||
|
||||
|
||||
while 1:
|
||||
#get data. Val can be int, float, list, string
|
||||
val = memProxy.getData("Device/SubDeviceList/Head/Temperature/Sensor/Value")
|
||||
print(val)
|
||||
sleep(1)
|
||||
|
||||
#print(val)
|
||||
Reference in New Issue
Block a user