from rtc_handle import *
env = RtmEnv(sys.argv, "localhost:9876")
rtc_list = env.list_rtc()


aho1 = env.rtc_handles['sample0_py.rtc']
aho2 = env.rtc_handles['frm_ctrl0.rtc']
aho3 = env.rtc_handles['vel_7dof0.rtc']
baka1 = IOConnector([aho1.outports['frame'], aho2.inports['ref_frm']])

baka2 = IOConnector([aho1.outports['frame']])
baka3 = IOConnector([aho2.inports['ref_frm']])

baka4 = ServiceConnector([aho1.services['prov']])
baka5 = ServiceConnector([aho1.services['cons']])

par1 = IOConnector([aho1.outports['frame']])
par2 = IOConnector([aho2.outports['vel']])
baka6 = IOConnector([aho2.outports['vel'],aho3.inports['vel']])