7 from omniORB
import CORBA
19 orb = CORBA.ORB_init(sys.argv)
28 tkm.setObject(naming.resolve(
"TkMotorComp0.rtc"))
31 inobj = tkm.getObject()._narrow(RTC.RTObject)
32 pin = inobj.get_ports()
33 pin[0].disconnect_all()
37 sl.setObject(naming.resolve(
"SliderComp0.rtc"))
40 outobj = sl.getObject()._narrow(RTC.RTObject)
41 pout = outobj.get_ports()
42 pout[0].disconnect_all()
46 conprof = RTC.ConnectorProfile(
"connector0",
"", [pin[0],pout[0]], [])
59 ret = pin[0].connect(conprof)
62 eclistin = inobj.get_owned_contexts()
63 eclistin[0].activate_component(inobj)
66 eclistout = outobj.get_owned_contexts()
67 eclistout[0].activate_component(outobj)
71 if __name__ ==
"__main__":
def push_back(seq, elem)
Push the new element back to the CORBA sequence.
CORBA Naming Service helper class.
def newNV(name, value)
Create NameVale.