-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathManipulatorCommonInterface_DataTypes_idl.py
138 lines (115 loc) · 5.49 KB
/
ManipulatorCommonInterface_DataTypes_idl.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# Python stubs generated by omniidl from idl/ManipulatorCommonInterface_DataTypes.idl
import omniORB, _omnipy
from omniORB import CORBA, PortableServer
_0_CORBA = CORBA
_omnipy.checkVersion(3,0, __file__)
# #include "BasicDataType.idl"
import BasicDataType_idl
_0_RTC = omniORB.openModule("RTC")
_0_RTC__POA = omniORB.openModule("RTC__POA")
#
# Start of module "JARA_ARM"
#
__name__ = "JARA_ARM"
_0_JARA_ARM = omniORB.openModule("JARA_ARM", r"idl/ManipulatorCommonInterface_DataTypes.idl")
_0_JARA_ARM__POA = omniORB.openModule("JARA_ARM__POA", r"idl/ManipulatorCommonInterface_DataTypes.idl")
# typedef ... DoubleSeq
class DoubleSeq:
_NP_RepositoryId = "IDL:JARA_ARM/DoubleSeq:1.0"
def __init__(self, *args, **kw):
raise RuntimeError("Cannot construct objects of this type.")
_0_JARA_ARM.DoubleSeq = DoubleSeq
_0_JARA_ARM._d_DoubleSeq = (omniORB.tcInternal.tv_sequence, omniORB.tcInternal.tv_double, 0)
_0_JARA_ARM._ad_DoubleSeq = (omniORB.tcInternal.tv_alias, DoubleSeq._NP_RepositoryId, "DoubleSeq", (omniORB.tcInternal.tv_sequence, omniORB.tcInternal.tv_double, 0))
_0_JARA_ARM._tc_DoubleSeq = omniORB.tcInternal.createTypeCode(_0_JARA_ARM._ad_DoubleSeq)
omniORB.registerType(DoubleSeq._NP_RepositoryId, _0_JARA_ARM._ad_DoubleSeq, _0_JARA_ARM._tc_DoubleSeq)
del DoubleSeq
# typedef ... JointPos
class JointPos:
_NP_RepositoryId = "IDL:JARA_ARM/JointPos:1.0"
def __init__(self, *args, **kw):
raise RuntimeError("Cannot construct objects of this type.")
_0_JARA_ARM.JointPos = JointPos
_0_JARA_ARM._d_JointPos = (omniORB.tcInternal.tv_sequence, omniORB.tcInternal.tv_double, 0)
_0_JARA_ARM._ad_JointPos = (omniORB.tcInternal.tv_alias, JointPos._NP_RepositoryId, "JointPos", (omniORB.tcInternal.tv_sequence, omniORB.tcInternal.tv_double, 0))
_0_JARA_ARM._tc_JointPos = omniORB.tcInternal.createTypeCode(_0_JARA_ARM._ad_JointPos)
omniORB.registerType(JointPos._NP_RepositoryId, _0_JARA_ARM._ad_JointPos, _0_JARA_ARM._tc_JointPos)
del JointPos
# struct LimitValue
_0_JARA_ARM.LimitValue = omniORB.newEmptyClass()
class LimitValue (omniORB.StructBase):
_NP_RepositoryId = "IDL:JARA_ARM/LimitValue:1.0"
def __init__(self, upper, lower):
self.upper = upper
self.lower = lower
_0_JARA_ARM.LimitValue = LimitValue
_0_JARA_ARM._d_LimitValue = (omniORB.tcInternal.tv_struct, LimitValue, LimitValue._NP_RepositoryId, "LimitValue", "upper", omniORB.tcInternal.tv_double, "lower", omniORB.tcInternal.tv_double)
_0_JARA_ARM._tc_LimitValue = omniORB.tcInternal.createTypeCode(_0_JARA_ARM._d_LimitValue)
omniORB.registerType(LimitValue._NP_RepositoryId, _0_JARA_ARM._d_LimitValue, _0_JARA_ARM._tc_LimitValue)
del LimitValue
# struct RETURN_ID
_0_JARA_ARM.RETURN_ID = omniORB.newEmptyClass()
class RETURN_ID (omniORB.StructBase):
_NP_RepositoryId = "IDL:JARA_ARM/RETURN_ID:1.0"
def __init__(self, id, comment):
self.id = id
self.comment = comment
_0_JARA_ARM.RETURN_ID = RETURN_ID
_0_JARA_ARM._d_RETURN_ID = (omniORB.tcInternal.tv_struct, RETURN_ID, RETURN_ID._NP_RepositoryId, "RETURN_ID", "id", omniORB.tcInternal.tv_long, "comment", (omniORB.tcInternal.tv_string,0))
_0_JARA_ARM._tc_RETURN_ID = omniORB.tcInternal.createTypeCode(_0_JARA_ARM._d_RETURN_ID)
omniORB.registerType(RETURN_ID._NP_RepositoryId, _0_JARA_ARM._d_RETURN_ID, _0_JARA_ARM._tc_RETURN_ID)
del RETURN_ID
_0_JARA_ARM.OK = 0
_0_JARA_ARM.NG = -1
_0_JARA_ARM.STATUS_ERR = -2
_0_JARA_ARM.VALUE_ERR = -3
_0_JARA_ARM.NOT_SV_ON_ERR = -4
_0_JARA_ARM.FULL_MOTION_QUEUE_ERR = -5
_0_JARA_ARM.NOT_IMPLEMENTED = -6
# struct TimedJointPos
_0_JARA_ARM.TimedJointPos = omniORB.newEmptyClass()
class TimedJointPos (omniORB.StructBase):
_NP_RepositoryId = "IDL:JARA_ARM/TimedJointPos:1.0"
def __init__(self, tm, pos):
self.tm = tm
self.pos = pos
_0_JARA_ARM.TimedJointPos = TimedJointPos
_0_JARA_ARM._d_TimedJointPos = (omniORB.tcInternal.tv_struct, TimedJointPos, TimedJointPos._NP_RepositoryId, "TimedJointPos", "tm", omniORB.typeMapping["IDL:RTC/Time:1.0"], "pos", omniORB.typeMapping["IDL:JARA_ARM/JointPos:1.0"])
_0_JARA_ARM._tc_TimedJointPos = omniORB.tcInternal.createTypeCode(_0_JARA_ARM._d_TimedJointPos)
omniORB.registerType(TimedJointPos._NP_RepositoryId, _0_JARA_ARM._d_TimedJointPos, _0_JARA_ARM._tc_TimedJointPos)
del TimedJointPos
# typedef ... ULONG
class ULONG:
_NP_RepositoryId = "IDL:JARA_ARM/ULONG:1.0"
def __init__(self, *args, **kw):
raise RuntimeError("Cannot construct objects of this type.")
_0_JARA_ARM.ULONG = ULONG
_0_JARA_ARM._d_ULONG = omniORB.tcInternal.tv_ulong
_0_JARA_ARM._ad_ULONG = (omniORB.tcInternal.tv_alias, ULONG._NP_RepositoryId, "ULONG", omniORB.tcInternal.tv_ulong)
_0_JARA_ARM._tc_ULONG = omniORB.tcInternal.createTypeCode(_0_JARA_ARM._ad_ULONG)
omniORB.registerType(ULONG._NP_RepositoryId, _0_JARA_ARM._ad_ULONG, _0_JARA_ARM._tc_ULONG)
del ULONG
def make_return_id(ret_id, comment):
if ret_id == "OK":
ret = _0_JARA_ARM.OK
elif ret_id == "NG":
ret = _0_JARA_ARM.NG
elif ret_id == "STATUS_ERR":
ret = _0_JARA_ARM.STATUS_ERR
elif ret_id == "VALUE_ERR":
ret = _0_JARA_ARM.VALUE_ERR
elif ret_id == "NOT_SV_ON_ERR":
ret = _0_JARA_ARM.NOT_SV_ON_ERR
elif ret_id == "FULL_MOTION_QUEUE_ERR":
ret = _0_JARA_ARM.FULL_MOTIAON_QUEUE_ERR
elif ret_id == "NOT_IMPLEMENTED":
ret = _0_JARA_ARM.NOT_IMPLEMENTED
else:
ret = ret_id
return _0_JARA_ARM.RETURN_ID(ret, comment)
#
# End of module "JARA_ARM"
#
__name__ = "ManipulatorCommonInterface_DataTypes_idl"
_exported_modules = ( "JARA_ARM", )
# The end.