OpenRTM_aist
test
test_RTCUtil.py
Go to the documentation of this file.
1
#!/usr/bin/env python
2
# -*- Python -*-
3
4
#
5
# @file test_RTCUtil.py
6
# @brief test for RTComponent utils
7
# @date $Date: 2007/09/11 $
8
# @author Shinji Kurihara
9
#
10
# Copyright (C) 2007
11
# Task-intelligence Research Group,
12
# Intelligent Systems Research Institute,
13
# National Institute of
14
# Advanced Industrial Science and Technology (AIST), Japan
15
# All rights reserved.
16
17
18
import
sys
19
sys.path.insert(1,
"../"
)
20
21
import
unittest
22
import
OpenRTM_aist
23
import
RTC, RTC__POA
24
25
from
RTCUtil
import
*
26
from
omniORB
import
CORBA
27
28
#class test(RTC__POA.DataFlowParticipant):
29
class
test
(
OpenRTM_aist.RTObject_impl
):
30
def
__init__
(self):
31
self.
orb
= CORBA.ORB_init()
32
self.
poa
= self.
orb
.resolve_initial_references(
"RootPOA"
)
33
OpenRTM_aist.RTObject_impl.__init__(self, orb=self.
orb
, poa=self.
poa
)
34
poaManager = self.
poa
._get_the_POAManager()
35
poaManager.activate()
36
37
38
class
TestRTCUtil
(unittest.TestCase):
39
def
setUp
(self):
40
pass
41
42
def
tearDown
(self):
43
OpenRTM_aist.Manager.instance().shutdownManager()
44
return
45
46
def
test_isDataFlowComponent
(self):
47
dfp_i =
test
()
48
dfp = dfp_i._this()
49
print(
isDataFlowComponent
(dfp))
50
51
def
test_isFsmParticipant
(self):
52
dfp_i =
test
()
53
dfp = dfp_i._this()
54
print(
isFsmParticipant
(dfp))
55
56
57
def
test_isFsmObject
(self):
58
dfp_i =
test
()
59
dfp = dfp_i._this()
60
print(
isFsmObject
(dfp))
61
62
63
def
test_isMultiModeObject
(self):
64
dfp_i =
test
()
65
dfp = dfp_i._this()
66
print(
isMultiModeObject
(dfp))
67
68
69
70
71
if
__name__ ==
'__main__'
:
72
unittest.main()
test_RTCUtil.test
Definition:
test_RTCUtil.py:29
test_RTCUtil.TestRTCUtil.setUp
def setUp(self)
Definition:
test_RTCUtil.py:39
test_RTCUtil.test.__init__
def __init__(self)
Definition:
test_RTCUtil.py:30
OpenRTM_aist.RTCUtil.isMultiModeObject
def isMultiModeObject(obj)
Definition:
RTCUtil.py:112
test_RTCUtil.TestRTCUtil.test_isFsmObject
def test_isFsmObject(self)
Definition:
test_RTCUtil.py:57
OpenRTM_aist.RTCUtil.isFsmObject
def isFsmObject(obj)
Definition:
RTCUtil.py:89
test_RTCUtil.TestRTCUtil.test_isDataFlowComponent
def test_isDataFlowComponent(self)
Definition:
test_RTCUtil.py:46
test_RTCUtil.test.orb
orb
Definition:
test_RTCUtil.py:31
test_RTCUtil.TestRTCUtil
Definition:
test_RTCUtil.py:38
OpenRTM_aist.RTCUtil.isFsmParticipant
def isFsmParticipant(obj)
Definition:
RTCUtil.py:66
OpenRTM_aist.RTCUtil.isDataFlowComponent
def isDataFlowComponent(obj)
Definition:
RTCUtil.py:42
test_RTCUtil.TestRTCUtil.test_isMultiModeObject
def test_isMultiModeObject(self)
Definition:
test_RTCUtil.py:63
OpenRTM_aist.RTObject.RTObject_impl
Definition:
RTObject.py:68
test_RTCUtil.TestRTCUtil.tearDown
def tearDown(self)
Definition:
test_RTCUtil.py:42
test_RTCUtil.TestRTCUtil.test_isFsmParticipant
def test_isFsmParticipant(self)
Definition:
test_RTCUtil.py:51
test_RTCUtil.test.poa
poa
Definition:
test_RTCUtil.py:32
openrtm_aist_python
Author(s): Shinji Kurihara
autogenerated on Mon Apr 21 2025 02:45:07