20 from omniORB
import CORBA, PortableServer
22 import OpenRTM, OpenRTM__POA
31 print "update_status: ", status_kind,
", ", hint
35 orb = CORBA.ORB_init(sys.argv)
36 poa = orb.resolve_initial_references(
"RootPOA")
37 poa._get_the_POAManager().activate()
40 oid = poa.servant_to_id(servant)
41 provider = poa.id_to_reference(oid)
43 rtc = naming.resolve(
"ConsoleIn0.rtc")._narrow(RTC.RTObject)
44 config = rtc.get_configuration()
49 id = OpenRTM_aist.toTypename(servant)
50 sprof = SDOPackage.ServiceProfile(
"test_id", id,
53 ret = config.add_service_profile(sprof)
55 print "If you exit program, please input 'q'." 57 ret = config.remove_service_profile(
"test_id")
58 print "test program end. ret : ", ret
62 if __name__ ==
'__main__':
CORBA Naming Service helper class.
def update_status(self, status_kind, hint)
def newNV(name, value)
Create NameVale.