9 from rtc_handle10_11
import *
10 from CorbaNaming
import *
15 env =
RtmEnv(sys.argv, [
"localhost:2809"])
18 mgr_name = socket.gethostname()+
".host_cxt/manager.mgr" 20 manager = naming.resolve(mgr_name)._narrow(RTM.Manager)
22 listo = env.name_space[
"localhost:2809"].list_obj()
23 env.name_space[
'localhost:2809'].rtc_handles.keys()
25 ns = env.name_space[
'localhost:2809']
27 comp = ns.rtc_handles[
"PeriodicECSharedComposite0.rtc"]
28 config = comp.rtc_ref.get_configuration()
29 configset = config.get_configuration_sets()
30 config_data = configset[0].configuration_data
36 motor = ns.rtc_handles[
"Motor0.rtc"]
37 sensor = ns.rtc_handles[
"Sensor0.rtc"]
38 controller = ns.rtc_handles[
"Controller0.rtc"]
40 for i
in range(loop_count):
41 manager.create_component(
"PeriodicECSharedComposite?instance_name=aaa")
42 env.name_space[
"localhost:2809"].list_obj()
43 aaa=ns.rtc_handles[socket.gethostname()+
".host_cxt/aaa.rtc"]
44 org=aaa.rtc_ref.get_owned_organizations()[0]
45 org.set_members ([motor.rtc_ref,sensor.rtc_ref,controller.rtc_ref])
47 ret = org.remove_member(
"Motor0")
48 ret = org.remove_member(
"Sensor0")
49 ret = org.remove_member(
"Controller0")
CORBA Naming Service helper class.