3 rtm.nshost =
"localhost" 12 mgr.load(
"VideoCapture")
13 mgr.load(
"CameraImageViewer")
15 vc = mgr.create(
"VideoCapture")
16 civ = mgr.create(
"CameraImageViewer")
18 ccs =
rtm.narrow(vc.service(
"service0"),
"CameraCaptureService",
"Img")
27 mgr.load(
"VideoCapture")
29 mgr.load(
"CameraImageViewer")
31 vc = mgr.create(
"VideoCapture")
32 r2g = mgr.create(
"RGB2Gray")
33 civ = mgr.create(
"CameraImageViewer")
45 mgr.load(
"VideoCapture")
46 mgr.load(
"JpegEncoder")
47 mgr.load(
"JpegDecoder")
48 mgr.load(
"CameraImageViewer")
50 vc = mgr.create(
"VideoCapture")
51 je = mgr.create(
"JpegEncoder")
52 jd = mgr.create(
"JpegDecoder")
53 civ = mgr.create(
"CameraImageViewer")
64 print "jpeg quality 95 -> 30" 65 je.setProperty(
"quality",
"30")
71 mgr.load(
"VideoCapture")
72 mgr.load(
"ResizeImage")
73 mgr.load(
"CameraImageViewer")
75 vc = mgr.create(
"VideoCapture")
76 ri = mgr.create(
"ResizeImage")
77 civ = mgr.create(
"CameraImageViewer")
79 ri.setProperty(
"scale",
"0.5")
89 global vc, rg2, ri, je, jd, civ
91 mgr.load(
"VideoCapture")
93 mgr.load(
"ResizeImage")
94 mgr.load(
"JpegEncoder")
95 mgr.load(
"JpegDecoder")
96 mgr.load(
"CameraImageViewer")
98 vc = mgr.create(
"VideoCapture")
99 r2g = mgr.create(
"RGB2Gray")
100 ri = mgr.create(
"ResizeImage")
101 je = mgr.create(
"JpegEncoder")
102 jd = mgr.create(
"JpegDecoder")
103 civ = mgr.create(
"CameraImageViewer")
105 ri.setProperty(
"scale",
"0.5")
def narrow(ior, klass, package="OpenHRP")
narrow ior
def serializeComponents(rtcs, stopEC=True)
set up execution context of the first RTC so that RTCs are executed sequentially
def findRTCmanager(hostname=None, rnc=None)
get RTCmanager
def connectPorts(outP, inPs, subscription="flush", dataflow="Push", bufferlength=1, rate=1000)
connect ports
def initCORBA()
initialize ORB