17 global bridge, seq, seq_svc, hgc
19 bridge =
findRTC(
"HRP4C(Robot)0")
21 ms.load(
"SequencePlayer")
22 seq = ms.create(
"SequencePlayer",
"seq")
23 seq_svc =
narrow(seq.service(
"service0"),
"SequencePlayerService")
32 print "creating components" 35 print "connecting components" 38 print "activating components" 40 print "initialized successfully" 43 seq_svc.loadPattern(basename, tm)
44 seq_svc.waitInterpolation()
46 if __name__ ==
'__main__':
def findRTC(name, rnc=None)
get RT component
def loadPattern(basename, tm=1.0)
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