OpenRTM_aist
OutPortConnector.py
Go to the documentation of this file.
1
#!/usr/bin/env python
2
# -*- coding: euc-jp -*-
3
4
5
20
21
import
OpenRTM_aist
22
import
RTC
23
24
44
class
OutPortConnector
(
OpenRTM_aist.ConnectorBase
):
45
"""
46
"""
47
48
56
def
__init__
(self, info):
57
self.
_rtcout
= OpenRTM_aist.Manager.instance().getLogbuf(
"OutPortConnector"
)
58
self.
_profile
= info
59
self.
_endian
=
None
60
return
61
62
69
def
__del__
(self):
70
pass
71
72
73
87
def
profile
(self):
88
self.
_rtcout
.RTC_TRACE(
"profile()"
)
89
return
self.
_profile
90
91
105
def
id
(self):
106
self.
_rtcout
.RTC_TRACE(
"id() = %s"
, self.
profile
().id)
107
return
self.
profile
().id
108
109
110
124
def
name
(self):
125
self.
_rtcout
.RTC_TRACE(
"name() = %s"
, self.
profile
().name)
126
return
self.
profile
().name
127
128
129
# void setConnectorInfo(ConnectorInfo info);
130
def
setConnectorInfo
(self, info):
131
self.
_profile
= info
132
133
if
self.
_profile
.properties.hasKey(
"serializer"
):
134
endian = self.
_profile
.properties.getProperty(
"serializer.cdr.endian"
)
135
if
not
endian:
136
self.
_rtcout
.RTC_ERROR(
"InPortConnector.setConnectorInfo(): endian is not supported."
)
137
return
RTC.RTC_ERROR
138
139
endian = OpenRTM_aist.split(endian,
","
)
# Maybe endian is ["little","big"]
140
endian = OpenRTM_aist.normalize(endian)
# Maybe self._endian is "little" or "big"
141
142
if
endian ==
"little"
:
143
self.
_endian
=
True
144
elif
endian ==
"big"
:
145
self.
_endian
=
False
146
else
:
147
self.
_endian
=
None
148
149
else
:
150
self.
_endian
=
True
# little endian
151
152
return
RTC.RTC_OK
OpenRTM_aist.OutPortConnector.OutPortConnector
I£îPortConnector base class.
Definition:
OutPortConnector.py:44
OpenRTM_aist.OutPortConnector.OutPortConnector.name
def name(self)
Getting Connector name.
Definition:
OutPortConnector.py:124
OpenRTM_aist.OutPortConnector.OutPortConnector.__del__
def __del__(self)
Destructor.
Definition:
OutPortConnector.py:69
OpenRTM_aist.OutPortConnector.OutPortConnector._endian
_endian
Definition:
OutPortConnector.py:59
OpenRTM_aist.OutPortConnector.OutPortConnector.id
def id(self)
Getting Connector ID.
Definition:
OutPortConnector.py:105
OpenRTM_aist.OutPortConnector.OutPortConnector.profile
def profile(self)
Getting ConnectorInfo.
Definition:
OutPortConnector.py:87
OpenRTM_aist.OutPortConnector.OutPortConnector._profile
_profile
Definition:
OutPortConnector.py:58
OpenRTM_aist.OutPortConnector.OutPortConnector.setConnectorInfo
def setConnectorInfo(self, info)
Definition:
OutPortConnector.py:130
OpenRTM_aist.OutPortConnector.OutPortConnector._rtcout
_rtcout
Definition:
OutPortConnector.py:57
OpenRTM_aist.ConnectorBase.ConnectorBase
Definition:
ConnectorBase.py:86
OpenRTM_aist.OutPortConnector.OutPortConnector.__init__
def __init__(self, info)
ConstructorOutPortConnector(ConnectorInfo& info);.
Definition:
OutPortConnector.py:56
OpenRTM_aist.ConnectorBase.ConnectorBase.profile
def profile(self)
Getting Profile.
Definition:
ConnectorBase.py:132
openrtm_aist_python
Author(s): Shinji Kurihara
autogenerated on Mon Feb 28 2022 23:01:06