00001 """autogenerated by genmsg_py from ListControllerTypesRequest.msg. Do not edit."""
00002 import roslib.message
00003 import struct
00004
00005
00006 class ListControllerTypesRequest(roslib.message.Message):
00007 _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
00008 _type = "pr2_mechanism_msgs/ListControllerTypesRequest"
00009 _has_header = False
00010 _full_text = """
00011
00012
00013
00014 """
00015 __slots__ = []
00016 _slot_types = []
00017
00018 def __init__(self, *args, **kwds):
00019 """
00020 Constructor. Any message fields that are implicitly/explicitly
00021 set to None will be assigned a default value. The recommend
00022 use is keyword arguments as this is more robust to future message
00023 changes. You cannot mix in-order arguments and keyword arguments.
00024
00025 The available fields are:
00026
00027
00028 @param args: complete set of field values, in .msg order
00029 @param kwds: use keyword arguments corresponding to message field names
00030 to set specific fields.
00031 """
00032 if args or kwds:
00033 super(ListControllerTypesRequest, self).__init__(*args, **kwds)
00034
00035 def _get_types(self):
00036 """
00037 internal API method
00038 """
00039 return self._slot_types
00040
00041 def serialize(self, buff):
00042 """
00043 serialize message into buffer
00044 @param buff: buffer
00045 @type buff: StringIO
00046 """
00047 try:
00048 pass
00049 except struct.error, se: self._check_types(se)
00050 except TypeError, te: self._check_types(te)
00051
00052 def deserialize(self, str):
00053 """
00054 unpack serialized message in str into this message instance
00055 @param str: byte array of serialized message
00056 @type str: str
00057 """
00058 try:
00059 end = 0
00060 return self
00061 except struct.error, e:
00062 raise roslib.message.DeserializationError(e)
00063
00064
00065 def serialize_numpy(self, buff, numpy):
00066 """
00067 serialize message with numpy array types into buffer
00068 @param buff: buffer
00069 @type buff: StringIO
00070 @param numpy: numpy python module
00071 @type numpy module
00072 """
00073 try:
00074 pass
00075 except struct.error, se: self._check_types(se)
00076 except TypeError, te: self._check_types(te)
00077
00078 def deserialize_numpy(self, str, numpy):
00079 """
00080 unpack serialized message in str into this message instance using numpy for array types
00081 @param str: byte array of serialized message
00082 @type str: str
00083 @param numpy: numpy python module
00084 @type numpy: module
00085 """
00086 try:
00087 end = 0
00088 return self
00089 except struct.error, e:
00090 raise roslib.message.DeserializationError(e)
00091
00092 _struct_I = roslib.message.struct_I
00093 """autogenerated by genmsg_py from ListControllerTypesResponse.msg. Do not edit."""
00094 import roslib.message
00095 import struct
00096
00097
00098 class ListControllerTypesResponse(roslib.message.Message):
00099 _md5sum = "80aee506387f88339842e9a93044c959"
00100 _type = "pr2_mechanism_msgs/ListControllerTypesResponse"
00101 _has_header = False
00102 _full_text = """string[] types
00103
00104 """
00105 __slots__ = ['types']
00106 _slot_types = ['string[]']
00107
00108 def __init__(self, *args, **kwds):
00109 """
00110 Constructor. Any message fields that are implicitly/explicitly
00111 set to None will be assigned a default value. The recommend
00112 use is keyword arguments as this is more robust to future message
00113 changes. You cannot mix in-order arguments and keyword arguments.
00114
00115 The available fields are:
00116 types
00117
00118 @param args: complete set of field values, in .msg order
00119 @param kwds: use keyword arguments corresponding to message field names
00120 to set specific fields.
00121 """
00122 if args or kwds:
00123 super(ListControllerTypesResponse, self).__init__(*args, **kwds)
00124
00125 if self.types is None:
00126 self.types = []
00127 else:
00128 self.types = []
00129
00130 def _get_types(self):
00131 """
00132 internal API method
00133 """
00134 return self._slot_types
00135
00136 def serialize(self, buff):
00137 """
00138 serialize message into buffer
00139 @param buff: buffer
00140 @type buff: StringIO
00141 """
00142 try:
00143 length = len(self.types)
00144 buff.write(_struct_I.pack(length))
00145 for val1 in self.types:
00146 length = len(val1)
00147 buff.write(struct.pack('<I%ss'%length, length, val1))
00148 except struct.error, se: self._check_types(se)
00149 except TypeError, te: self._check_types(te)
00150
00151 def deserialize(self, str):
00152 """
00153 unpack serialized message in str into this message instance
00154 @param str: byte array of serialized message
00155 @type str: str
00156 """
00157 try:
00158 end = 0
00159 start = end
00160 end += 4
00161 (length,) = _struct_I.unpack(str[start:end])
00162 self.types = []
00163 for i in xrange(0, length):
00164 start = end
00165 end += 4
00166 (length,) = _struct_I.unpack(str[start:end])
00167 start = end
00168 end += length
00169 val1 = str[start:end]
00170 self.types.append(val1)
00171 return self
00172 except struct.error, e:
00173 raise roslib.message.DeserializationError(e)
00174
00175
00176 def serialize_numpy(self, buff, numpy):
00177 """
00178 serialize message with numpy array types into buffer
00179 @param buff: buffer
00180 @type buff: StringIO
00181 @param numpy: numpy python module
00182 @type numpy module
00183 """
00184 try:
00185 length = len(self.types)
00186 buff.write(_struct_I.pack(length))
00187 for val1 in self.types:
00188 length = len(val1)
00189 buff.write(struct.pack('<I%ss'%length, length, val1))
00190 except struct.error, se: self._check_types(se)
00191 except TypeError, te: self._check_types(te)
00192
00193 def deserialize_numpy(self, str, numpy):
00194 """
00195 unpack serialized message in str into this message instance using numpy for array types
00196 @param str: byte array of serialized message
00197 @type str: str
00198 @param numpy: numpy python module
00199 @type numpy: module
00200 """
00201 try:
00202 end = 0
00203 start = end
00204 end += 4
00205 (length,) = _struct_I.unpack(str[start:end])
00206 self.types = []
00207 for i in xrange(0, length):
00208 start = end
00209 end += 4
00210 (length,) = _struct_I.unpack(str[start:end])
00211 start = end
00212 end += length
00213 val1 = str[start:end]
00214 self.types.append(val1)
00215 return self
00216 except struct.error, e:
00217 raise roslib.message.DeserializationError(e)
00218
00219 _struct_I = roslib.message.struct_I
00220 class ListControllerTypes(roslib.message.ServiceDefinition):
00221 _type = 'pr2_mechanism_msgs/ListControllerTypes'
00222 _md5sum = '80aee506387f88339842e9a93044c959'
00223 _request_class = ListControllerTypesRequest
00224 _response_class = ListControllerTypesResponse