RtmCompData.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 # -*- Python -*-
3 #
4 # @file RtmCompData.py
5 # @brief rtc-link component dict manager class
6 # @date $Date: 2007-01-21 13:20:47 $
7 # @author Tsuyoshi Tanabe, Noriaki Ando <n-ando@aist.go.jp>
8 #
9 # Copyright (C) 2004-2005
10 # Task-intelligence Research Group,
11 # Intelligent Systems Research Institute,
12 # National Institute of
13 # Advanced Industrial Science and Technology (AIST), Japan
14 # All rights reserved.
15 #
16 # $Id: RtmCompData.py 775 2008-07-28 16:14:45Z n-ando $
17 #
18 
19 #
20 # RtmCompData.py Created on: 2004/11/02
21 # Author : Tsuyoshi Tanabe
22 """
23  GUI用ディクショナリの管理クラス
24 """
25 #
26 # ディクショナリで管理するのは、fullpathに対するオブジェクトリファレンスのみに変更
27 #
28 
29 # dictionary format
30 # {'name-service name':{'fullpath':obj-ref}}
31 
32 
33 
34 import sys,os
35 import string
36 import mutex
37 from omniORB import CORBA
38 #import RtmParser as rtxml
39 
40 # RTM のimportは、PYTHONPATHにIDLスタブのあるディレクトリを追加する事。
41 import RTC
42 from RTM import *
43 from RtmDialog import *
44 
45 NAME_PATH_NUM = 6
46 
47 
48 #----------------------------------------------------------------------
50  """ディクショナリ管理クラス"""
51  def __init__(self, parent):
52  """クラスの初期化
53 
54  [引数]
55  parent -- 親クラス
56 
57  [戻り値]
58  void
59  """
60  self.parent = parent
61  self.dict = {}
62  self.default_ns = 'localhost'
63  default_dict = {}
64 
65  def __del__(self):
66  pass
67 
68 
69  def SplitTokenToFullpath(self, fullname):
70  """フルパス名称のトークン分割 [引数] fullname --
71 
72  [引数]
73  fullname -- '/'区切りのフルパス
74  5階層以上の文字列はエラー
75 
76  [戻り値]
77  key_list -- トークンのlist
78  """
79  key_list = string.splitfields(fullname,'/')
80  if len(key_list) > NAME_PATH_NUM:
81  print "Error: SplitTokenToFullpath: fullpath is too long(please set to 5 or less)"
82  key_list = None
83  return key_list
84 
85 
86  def ClearDictionary(self):
87  """ディクショナリの削除 [引数] void [戻り値] void
88 
89  [引数]
90  void
91 
92  [戻り値]
93  void
94  """
95  del self.dict
96  self.dict = None
97 
98  def GetInPortToRefCallback(self, fullpath):
99  """ディクショナリのオブジェクトリファレンスからInPortを取得 [引数] fullpath -- フルパス指定 [戻り値] inport_list -- インポートリスト
100 
101  [引数]
102  fullpath -- フルパス指定 [戻り値] inport_list -- インポートリスト
103 
104  [戻り値]
105  inport_list -- インポートリスト
106  """
107 # print " , ref :",ref
108  self.retlist = []
109  try:
110  ref = self.dict[fullpath]['objref']
111  ref = ref._narrow(RTC.RTObject)
112 
113  in_list = []
114  ret_list = []
115  in_list = ref._get_inports()
116  tmp = {}
117  n = 0
118  for inp in in_list:
119  inp = inp._narrow(InPort)
120  tmp = {}
121  tmp['ref'] = inp
122  prof = inp._get_profile()
123  tmp['name'] = prof.name
124  tmp['port_type'] = prof.port_type.name()
125 
126 # tmp['name'] = "in:test-dummy" + '%d'% n
127 # tmp['name'] = "in" + '%d'% n
128 # tmp['port_type'] = "RTM::TimedFloat:test-dummy"
129 # tmp['port_type'] = "RTM::TimedFloat"
130  ret_list.append(tmp)
131  n=n+1
132  except:
133  except_mess("GetObjRefToInPort error!:")
134  ret_list = []
135 
136  self.retlist = ret_list
137  return ret_list
138 
139  def GetOutPortToRefCallback(self, fullpath):
140  """ディクショナリのオブジェクトリファレンスからOutPortを取得 [引数] fullpath -- フルパス指定 [戻り値] outport_list -- アウトポートリスト
141 
142  [引数]
143  fullpath -- フルパス指定 [戻り値] outport_list -- アウトポートリスト
144 
145  [戻り値]
146  outport_list -- アウトポートリスト
147  """
148  self.retlist = []
149  try:
150  ref = self.dict[fullpath]['objref']
151  ref = ref._narrow(RTC.RTObject)
152 
153  out_list = []
154  out_list = ref._get_outports()
155  ret_list = []
156  tmp = {}
157  n=0
158  for outp in out_list:
159  outp = outp._narrow(OutPort)
160  tmp = {}
161  tmp['ref'] = outp
162  prof = outp._get_profile()
163  tmp['name'] = prof.name
164  tmp['port_type'] = prof.port_type.name()
165 
166 # tmp['name'] = "out:test-dummy" + '%d'% n
167 # tmp['port_type'] = "TimedFloat:test-dummy"
168  ret_list.append(tmp)
169  n=n+1
170  except:
171  except_mess("GetObjRefToOutPort error!:")
172  ret_list = []
173 
174  self.retlist = ret_list
175  return ret_list
176 
177 
178  def SetObjRefToFullpath(self, position, comp):
179  """ディクショナリにオブジェクトリファレンスを追加 [引数] position -- フルパス指定 comp -- objref,id,kind のディクショナリ [戻り値] void
180 
181  [引数]
182  position -- フルパス指定 comp -- objref,id,kind のディクショナリ [戻り値] void
183  comp -- objref,id,kind のディクショナリ [戻り値] void
184 
185  [戻り値]
186  void
187  """
188  if comp == None:
189  ref = None
190  comp = {}
191  comp['id'] = None
192  comp['kind'] = 'ns'
193  comp['bname'] = None
194  else:
195  ref = comp['objref']
196  if comp['kind'] == 'rtc':
197  if not self.dict.has_key(position):
198 # print 'check duplicate !!:',comp['objref']
199  try:
200  ref = ref._duplicate(ref)
201  except:
202  err_mess = 'duplicate exception!!:%s\n' % comp['objref']
203  except_mess(err_mess)
204  try:
205  ref = ref._narrow(RTC.RTObject)
206  except:
207  except_mess('SetObjRefToFullPath error!:')
208  ref = None
209  if comp['kind'] == 'mgr':
210  if not self.dict.has_key(position):
211 # print 'check duplicate !!:',comp['objref']
212  try:
213  ref = ref._duplicate(ref)
214  except:
215  ref = None
216  err_mess = 'duplicate exception!!:%s\n' % comp['objref']
217  except_mess(err_mess)
218 # try:
219 # ref = ref._narrow(RTCManager)
220 # except:
221 # print 'SetObjRefToFullPath: narrow error!'
222 # ref = None
223 
224  self.dict[position] = {}
225  self.dict[position]['objref'] = ref
226  self.dict[position]['id'] = comp['id']
227  self.dict[position]['kind'] = comp['kind']
228  self.dict[position]['bname'] = comp['bname']
229 
230 
231  def GetObjRefToFullpathCallback(self, position):
232  """ディクショナリからオブジェクトリファレンスを取得 [引数] position -- フルパス指定 [戻り値] ref -- オブジェクトリファレンス
233 
234  [引数]
235  position -- フルパス指定 [戻り値] ref -- オブジェクトリファレンス
236 
237  [戻り値]
238  ref -- オブジェクトリファレンス
239  """
240 
241  self.ret = None
242  if self.dict.has_key(position):
243  ref = self.dict[position]['objref']
244  else:
245  print "Error: GetObjRefToFullpath: fullpath error!"
246  ref = None
247 
248  self.ret = ref
249  return ref
250 
251  def GetKindToFullpathCallback(self, position):
252  """ディクショナリからKindを取得 [引数] position -- フルパス指定 [戻り値] kind -- Kind
253 
254  [引数]
255  position -- フルパス指定 [戻り値] kind -- Kind
256 
257  [戻り値]
258  kind -- Kind
259  """
260  kind_list = ['ns','host_cxt','mgr_cxt','mgr','cate_cxt','mod_cxt','rtc']
261 
262  self.ret = None
263  if self.dict.has_key(position):
264  kind = self.dict[position]['kind']
265  else:
266  print "Error: GetKindToFullpath: fullpath error!"
267  kind = 'unknown'
268 
269  if kind not in kind_list:
270  kind = 'unknown'
271 
272  self.ret = kind
273  return kind
274 
275  def GetIdToFullpathCallback(self, position):
276  """ディクショナリからIdを取得 [引数] position -- フルパス指定 [戻り値] Id -- Id
277 
278  [引数]
279  position -- フルパス指定 [戻り値] Id -- Id
280 
281  [戻り値]
282  Id -- Id
283  """
284 
285  self.ret = None
286  if self.dict.has_key(position):
287  Id = self.dict[position]['id']
288  else:
289  print "Error: GetIdToFullpath: fullpath error!"
290  Id = None
291 
292  self.ret = Id
293  return Id
294 
295  def GetBindingNameToFullpath(self, position):
296  """ディクショナリからBinding_nameを取得 [引数] position -- フルパス指定 [戻り値] bname -- binding name
297 
298  [引数]
299  position -- フルパス指定 [戻り値] bname -- binding name
300 
301  [戻り値]
302  bname -- binding name
303  """
304 
305  self.ret = None
306  if self.dict.has_key(position):
307  bname = self.dict[position]['bname']
308  else:
309  print "Error: GetBindingNameToFullpath: fullpath error!"
310  bname = None
311 
312  self.ret = bname
313  return bname
314 
315 
316 #----------------------------------------------------------------------
318  """ディクショナリのアクセス・クラス(ラッパー?) ここに、ディクショナリを使用するラッパーメソッドを記述する
319  ここに、ディクショナリを使用するラッパーメソッドを記述する
320  """
321  def __init__(self, parent):
322  """クラスの初期化
323 
324 
325  [引数]
326  parent -- 親クラス
327 
328  [戻り値]
329  void
330  """
331  RtmDictCore.__init__(self,parent)
332  self.parent = parent
333  self.Mutex = mutex.mutex()
334 
335  def GetCompStateCallback(self,fullpath):
336  self.ret2 = 0
337  tmp = 0
338  try:
339  ref = self.GetObjRefToFullpathCallback(fullpath)
340  ref = ref._narrow(RTC.RTObject)
341  except :
342  err_mess = 'GetCompState: obj-ref error:%s\n' % fullpath
343  except_mess(err_mess)
344  tmp = 0
345  self.ret2 = 0
346  return
347  try:
348  tmp_port = ref._get_rtc_state()
349  tmp_port = tmp_port._narrow(OutPort)
350  tmp = tmp_port.get()
351  tmp = tmp.value()
352  tmp = tmp.data
353  print "refresh state:",tmp
354  except :
355  err_mess = 'GetCompState: rtc_state error:%s\n' % fullpath
356  except_mess(err_mess)
357 # tmp = RTComponent.RTC_ERROR
358  tmp = 0
359 
360  self.ret2 = tmp
361  return tmp
362 
363  def GetCompState(self,fullpath):
364  self.Mutex.lock(self.GetCompStateCallback,fullpath)
365  self.Mutex.unlock()
366  return self.ret2
367 
368  def GetCompNameCallback(self,fullpath):
369  self.ret2 = ''
370  key_list = self.SplitTokenToFullpath(fullpath)
371  num = len(key_list)
372 
373  self.ret2 = key_list[num-1]
374  num = self.ret2.find('|')
375  self.ret2 = str(self.ret2[0:num])
376  return self.ret2
377 
378  def GetCompName(self,fullpath):
379  self.Mutex.lock(self.GetCompNameCallback,fullpath)
380  self.Mutex.unlock()
381  return self.ret2
382 
383  def GetCateNameCallback(self,fullpath):
384  self.ret2 = ''
385  key_list = self.SplitTokenToFullpath(fullpath)
386  num = len(key_list)
387 
388  for cate_str in key_list:
389  num = cate_str.find('|')
390  if num > 0:
391  if str(cate_str[num+1:]) == 'cate_cxt':
392  self.ret2 = str(cate_str[0:num])
393  return self.ret2
394 
395  def GetCateName(self,fullpath):
396  self.Mutex.lock(self.GetCateNameCallback,fullpath)
397  self.Mutex.unlock()
398  return self.ret2
399 
400  def GetObjRefToFullpath(self, position):
401  self.Mutex.lock(self.GetObjRefToFullpathCallback,position)
402  self.Mutex.unlock()
403  return self.ret
404 
405  def GetInPortToRef(self, fullpath):
406  self.Mutex.lock(self.GetInPortToRefCallback,fullpath)
407  self.Mutex.unlock()
408  return self.retlist
409 
410  def GetOutPortToRef(self, fullpath):
411  self.Mutex.lock(self.GetOutPortToRefCallback,fullpath)
412  self.Mutex.unlock()
413  return self.retlist
414 
415  def TreeListCompStartCallback(self,fullpath):
416  """TreeList上のコンポーネントをスタート ※SystemDraw用のメソッドと統廃合する可能性あり [引数] fullpath -- フルパス指定 [戻り値] void
417  ※SystemDraw用のメソッドと統廃合する可能性あり [引数] fullpath -- フルパス指定 [戻り値] void
418 
419  [引数]
420  fullpath -- フルパス指定 [戻り値] void
421 
422  [戻り値]
423  void
424  """
425  self.ret2 = RTM_OK
426  ret = RTM_OK
427  ref = self.GetObjRefToFullpathCallback(fullpath)
428  try:
429  ref = ref._narrow(RTC.RTObject)
430  ret = ref.rtc_start()
431  if ret != RTM_OK:
432  print "Error rtc_start(): ",fullpath
433  except:
434  except_mess('rtc_start error!:%s\n'%fullpath)
435  ret = RTM_ERR
436 
437  # すべてのSystemDraw画面の当該コンポーネントの色を変更する # parent:RtdFrame , drawWin:MDI子ウィンドウ(RtdSystemDraw) for sys_no in self.parent.drawWin.keys(): self.parent.drawWin[sys_no].changeCompColor(fullpath, 'active') # self.parent.drawWin[sys_no].changeCompColor(fullpath) self.ret2 = ret return ret def TreeListCompStart(self,fullpath): self.Mutex.lock(self.TreeListCompStartCallback,fullpath) self.Mutex.unlock() return self.ret2 def TreeListCompStopCallback(self,fullpath): """TreeList上のコンポーネントをストップ ※SystemDraw用のメソッドと統廃合する可能性あり [引数] fullpath -- フルパス指定 [戻り値] void """ self.ret2 = RTM_OK ret = RTM_OK ref = self.GetObjRefToFullpathCallback(fullpath) try: ref = ref._narrow(RTC.RTObject) ret = ref.rtc_stop() if ret != RTM_OK: print "Error rtc_stop(): ",fullpath except: except_mess('rtc_stop error!:%s\n'%fullpath) ret = RTM_ERR for sys_no in self.parent.drawWin.keys(): self.parent.drawWin[sys_no].changeCompColor(fullpath, 'inactive') # self.parent.drawWin[sys_no].changeCompColor(fullpath) self.ret2 = ret return ret def TreeListCompStop(self,fullpath): self.Mutex.lock(self.TreeListCompStopCallback,fullpath) self.Mutex.unlock() return self.ret2 def TreeListCompResetCallback(self,fullpath): """TreeList上のコンポーネントをリセット ※SystemDraw用のメソッドと統廃合する可能性あり [引数] fullpath -- フルパス指定 [戻り値] void """ self.ret2 = RTM_OK ret = RTM_OK ref = self.GetObjRefToFullpathCallback(fullpath) try: ref = ref._narrow(RTC.RTObject) ret = ref.rtc_reset() if ret != RTM_OK: print "Error rtc_reset(): ",fullpath except: except_mess('rtc_reset error!:%s\n'%fullpath) ret = RTM_ERR for sys_no in self.parent.drawWin.keys(): self.parent.drawWin[sys_no].changeCompColor(fullpath, 'inactive') # self.parent.drawWin[sys_no].changeCompColor(fullpath) self.ret2 = ret return ret def TreeListCompReset(self,fullpath): self.Mutex.lock(self.TreeListCompResetCallback,fullpath) self.Mutex.unlock() return self.ret2 def TreeListCompExitCallback(self,fullpath): """TreeList上のコンポーネントをExit ※SystemDraw用のメソッドと統廃合する可能性あり [引数] fullpath -- フルパス指定 [戻り値] void """ self.ret2 = RTM_OK ret = RTM_OK ref = self.GetObjRefToFullpathCallback(fullpath) try: ref = ref._narrow(RTC.RTObject) ret = ref.rtc_exit() if ret != RTM_OK: print "Error rtc_exit(): ",fullpath except: except_mess('rtc_exit error!:%s\n'%fullpath) ret = RTM_ERR for sys_no in self.parent.drawWin.keys(): self.parent.drawWin[sys_no].changeCompColor(fullpath, 'inactive') # self.parent.drawWin[sys_no].changeCompColor(fullpath) self.ret2 = ret return ret def TreeListCompExit(self,fullpath): self.Mutex.lock(self.TreeListCompExitCallback,fullpath) self.Mutex.unlock() return self.ret2 def TreeListCompKillCallback(self,fullpath): """TreeList上のコンポーネントをkill ※SystemDraw用のメソッドと統廃合する可能性あり [引数] fullpath -- フルパス指定 [戻り値] void """ self.ret2 = RTM_OK ret = RTM_OK ref = self.GetObjRefToFullpathCallback(fullpath) try: ref = ref._narrow(RTC.RTObject) ret = ref.rtc_kill() if ret != RTM_OK: print "Error rtc_kill(): ",fullpath except: except_mess('rtc_kill error!:%s\n'%fullpath) ret = RTM_ERR for sys_no in self.parent.drawWin.keys(): self.parent.drawWin[sys_no].changeCompColor(fullpath, 'inactive') # self.parent.drawWin[sys_no].changeCompColor(fullpath) self.ret2 = ret return ret def TreeListCompKill(self,fullpath): self.Mutex.lock(self.TreeListCompKillCallback,fullpath) self.Mutex.unlock() return self.ret2 def GetIdToFullpath(self,fullpath): self.Mutex.lock(self.GetIdToFullpathCallback,fullpath) self.Mutex.unlock() return self.ret def GetKindToFullpath(self,fullpath): self.Mutex.lock(self.GetKindToFullpathCallback,fullpath) self.Mutex.unlock() return self.ret def setCompBodyColor(self,fullpath, state): for sys_no in self.parent.drawWin.keys(): self.parent.drawWin[sys_no].changeCompColor(fullpath,state)
438  # parent:RtdFrame , drawWin:MDI子ウィンドウ(RtdSystemDraw)
439  for sys_no in self.parent.drawWin.keys():
440  self.parent.drawWin[sys_no].changeCompColor(fullpath, 'active')
441 # self.parent.drawWin[sys_no].changeCompColor(fullpath)
442 
443  self.ret2 = ret
444  return ret
445 
446  def TreeListCompStart(self,fullpath):
447  self.Mutex.lock(self.TreeListCompStartCallback,fullpath)
448  self.Mutex.unlock()
449  return self.ret2
450 
451  def TreeListCompStopCallback(self,fullpath):
452  """TreeList上のコンポーネントをストップ ※SystemDraw用のメソッドと統廃合する可能性あり [引数] fullpath -- フルパス指定 [戻り値] void
453  ※SystemDraw用のメソッドと統廃合する可能性あり [引数] fullpath -- フルパス指定 [戻り値] void
454 
455  [引数]
456  fullpath -- フルパス指定 [戻り値] void
457 
458  [戻り値]
459  void
460  """
461  self.ret2 = RTM_OK
462  ret = RTM_OK
463  ref = self.GetObjRefToFullpathCallback(fullpath)
464  try:
465  ref = ref._narrow(RTC.RTObject)
466  ret = ref.rtc_stop()
467  if ret != RTM_OK:
468  print "Error rtc_stop(): ",fullpath
469  except:
470  except_mess('rtc_stop error!:%s\n'%fullpath)
471  ret = RTM_ERR
472 
473  for sys_no in self.parent.drawWin.keys():
474  self.parent.drawWin[sys_no].changeCompColor(fullpath, 'inactive')
475 # self.parent.drawWin[sys_no].changeCompColor(fullpath)
476  self.ret2 = ret
477  return ret
478 
479  def TreeListCompStop(self,fullpath):
480  self.Mutex.lock(self.TreeListCompStopCallback,fullpath)
481  self.Mutex.unlock()
482  return self.ret2
483 
484  def TreeListCompResetCallback(self,fullpath):
485  """TreeList上のコンポーネントをリセット ※SystemDraw用のメソッドと統廃合する可能性あり [引数] fullpath -- フルパス指定 [戻り値] void
486  ※SystemDraw用のメソッドと統廃合する可能性あり [引数] fullpath -- フルパス指定 [戻り値] void
487 
488  [引数]
489  fullpath -- フルパス指定 [戻り値] void
490 
491  [戻り値]
492  void
493  """
494  self.ret2 = RTM_OK
495  ret = RTM_OK
496  ref = self.GetObjRefToFullpathCallback(fullpath)
497  try:
498  ref = ref._narrow(RTC.RTObject)
499  ret = ref.rtc_reset()
500  if ret != RTM_OK:
501  print "Error rtc_reset(): ",fullpath
502  except:
503  except_mess('rtc_reset error!:%s\n'%fullpath)
504  ret = RTM_ERR
505 
506  for sys_no in self.parent.drawWin.keys():
507  self.parent.drawWin[sys_no].changeCompColor(fullpath, 'inactive')
508 # self.parent.drawWin[sys_no].changeCompColor(fullpath)
509 
510  self.ret2 = ret
511  return ret
512 
513  def TreeListCompReset(self,fullpath):
514  self.Mutex.lock(self.TreeListCompResetCallback,fullpath)
515  self.Mutex.unlock()
516  return self.ret2
517 
518  def TreeListCompExitCallback(self,fullpath):
519  """TreeList上のコンポーネントをExit
520  ※SystemDraw用のメソッドと統廃合する可能性あり [引数] fullpath -- フルパス指定 [戻り値] void
521 
522  [引数]
523  fullpath -- フルパス指定 [戻り値] void
524 
525  [戻り値]
526  void
527  """
528  self.ret2 = RTM_OK
529  ret = RTM_OK
530  ref = self.GetObjRefToFullpathCallback(fullpath)
531  try:
532  ref = ref._narrow(RTC.RTObject)
533  ret = ref.rtc_exit()
534  if ret != RTM_OK:
535  print "Error rtc_exit(): ",fullpath
536  except:
537  except_mess('rtc_exit error!:%s\n'%fullpath)
538  ret = RTM_ERR
539 
540  for sys_no in self.parent.drawWin.keys():
541  self.parent.drawWin[sys_no].changeCompColor(fullpath, 'inactive')
542 # self.parent.drawWin[sys_no].changeCompColor(fullpath)
543 
544  self.ret2 = ret
545  return ret
546 
547  def TreeListCompExit(self,fullpath):
548  self.Mutex.lock(self.TreeListCompExitCallback,fullpath)
549  self.Mutex.unlock()
550  return self.ret2
551 
552  def TreeListCompKillCallback(self,fullpath):
553  """TreeList上のコンポーネントをkill
554  ※SystemDraw用のメソッドと統廃合する可能性あり [引数] fullpath -- フルパス指定 [戻り値] void
555 
556  [引数]
557  fullpath -- フルパス指定 [戻り値] void
558 
559  [戻り値]
560  void
561  """
562  self.ret2 = RTM_OK
563  ret = RTM_OK
564  ref = self.GetObjRefToFullpathCallback(fullpath)
565  try:
566  ref = ref._narrow(RTC.RTObject)
567  ret = ref.rtc_kill()
568  if ret != RTM_OK:
569  print "Error rtc_kill(): ",fullpath
570  except:
571  except_mess('rtc_kill error!:%s\n'%fullpath)
572  ret = RTM_ERR
573 
574  for sys_no in self.parent.drawWin.keys():
575  self.parent.drawWin[sys_no].changeCompColor(fullpath, 'inactive')
576 # self.parent.drawWin[sys_no].changeCompColor(fullpath)
577 
578  self.ret2 = ret
579  return ret
580 
581  def TreeListCompKill(self,fullpath):
582  self.Mutex.lock(self.TreeListCompKillCallback,fullpath)
583  self.Mutex.unlock()
584  return self.ret2
585 
586  def GetIdToFullpath(self,fullpath):
587  self.Mutex.lock(self.GetIdToFullpathCallback,fullpath)
588  self.Mutex.unlock()
589  return self.ret
590 
591  def GetKindToFullpath(self,fullpath):
592  self.Mutex.lock(self.GetKindToFullpathCallback,fullpath)
593  self.Mutex.unlock()
594  return self.ret
595 
596  def setCompBodyColor(self,fullpath, state):
597  for sys_no in self.parent.drawWin.keys():
598  self.parent.drawWin[sys_no].changeCompColor(fullpath,state)
def GetCompStateCallback(self, fullpath)
Definition: RtmCompData.py:335
def TreeListCompReset(self, fullpath)
Definition: RtmCompData.py:513
def TreeListCompExit(self, fullpath)
Definition: RtmCompData.py:547
def TreeListCompExitCallback(self, fullpath)
Definition: RtmCompData.py:518
def GetCompState(self, fullpath)
Definition: RtmCompData.py:363
def __init__(self, parent)
Definition: RtmCompData.py:51
def SplitTokenToFullpath(self, fullname)
Definition: RtmCompData.py:69
def SetObjRefToFullpath(self, position, comp)
Definition: RtmCompData.py:178
def GetCompNameCallback(self, fullpath)
Definition: RtmCompData.py:368
def TreeListCompStop(self, fullpath)
Definition: RtmCompData.py:479
def GetObjRefToFullpath(self, position)
Definition: RtmCompData.py:400
def setCompBodyColor(self, fullpath, state)
Definition: RtmCompData.py:596
def GetKindToFullpathCallback(self, position)
Definition: RtmCompData.py:251
def GetInPortToRefCallback(self, fullpath)
Definition: RtmCompData.py:98
def __init__(self, parent)
Definition: RtmCompData.py:321
def GetCompName(self, fullpath)
Definition: RtmCompData.py:378
def TreeListCompKill(self, fullpath)
Definition: RtmCompData.py:581
def GetIdToFullpath(self, fullpath)
Definition: RtmCompData.py:586
def GetObjRefToFullpathCallback(self, position)
Definition: RtmCompData.py:231
def GetOutPortToRefCallback(self, fullpath)
Definition: RtmCompData.py:139
def GetCateNameCallback(self, fullpath)
Definition: RtmCompData.py:383
def TreeListCompResetCallback(self, fullpath)
Definition: RtmCompData.py:484
def TreeListCompStopCallback(self, fullpath)
Definition: RtmCompData.py:451
def GetOutPortToRef(self, fullpath)
Definition: RtmCompData.py:410
def TreeListCompStart(self, fullpath)
Definition: RtmCompData.py:446
def GetKindToFullpath(self, fullpath)
Definition: RtmCompData.py:591
def TreeListCompKillCallback(self, fullpath)
Definition: RtmCompData.py:552
def TreeListCompStartCallback(self, fullpath)
Definition: RtmCompData.py:415
def GetBindingNameToFullpath(self, position)
Definition: RtmCompData.py:295
def GetInPortToRef(self, fullpath)
Definition: RtmCompData.py:405
def GetIdToFullpathCallback(self, position)
Definition: RtmCompData.py:275
def GetCateName(self, fullpath)
Definition: RtmCompData.py:395
def except_mess(mess)
Definition: RtmDialog.py:100


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Jun 6 2019 19:26:00