Go to the documentation of this file.00001 import hrp
00002
00003 import jp.go.aist.hrp.simulator.ViewSimulatorHelper as ViewSimulatorHelper
00004 import jp.go.aist.hrp.simulator.CameraSequenceHolder as CameraSequenceHolder
00005 import jp.go.aist.hrp.simulator.ImageData as ImageData
00006 obj = hrp.findObject("ViewSimulator")
00007 view = ViewSimulatorHelper.narrow(obj)
00008 csh = CameraSequenceHolder()
00009 view.getCameraSequence(csh)
00010
00011 data = csh.value[0].getImageData()
00012 print "camera0"
00013 print len(data.longData)
00014 print len(data.octetData)
00015 print len(data.floatData)
00016 for i in range(0, 240):
00017 print data.longData[i*320]
00018
00019 data = csh.value[1].getImageData()
00020 print "camera1"
00021 print len(data.longData)
00022 print len(data.octetData)
00023 print len(data.floatData)
00024
00025
00026
00027 print "finished"
00028
00029