00001 """autogenerated by genpy from vrep_common/simRosGetJointMatrixRequest.msg. Do not edit."""
00002 import sys
00003 python3 = True if sys.hexversion > 0x03000000 else False
00004 import genpy
00005 import struct
00006
00007
00008 class simRosGetJointMatrixRequest(genpy.Message):
00009 _md5sum = "92535b678299d2bdda959704e78c275e"
00010 _type = "vrep_common/simRosGetJointMatrixRequest"
00011 _has_header = False
00012 _full_text = """
00013
00014
00015
00016 int32 handle
00017
00018 """
00019 __slots__ = ['handle']
00020 _slot_types = ['int32']
00021
00022 def __init__(self, *args, **kwds):
00023 """
00024 Constructor. Any message fields that are implicitly/explicitly
00025 set to None will be assigned a default value. The recommend
00026 use is keyword arguments as this is more robust to future message
00027 changes. You cannot mix in-order arguments and keyword arguments.
00028
00029 The available fields are:
00030 handle
00031
00032 :param args: complete set of field values, in .msg order
00033 :param kwds: use keyword arguments corresponding to message field names
00034 to set specific fields.
00035 """
00036 if args or kwds:
00037 super(simRosGetJointMatrixRequest, self).__init__(*args, **kwds)
00038
00039 if self.handle is None:
00040 self.handle = 0
00041 else:
00042 self.handle = 0
00043
00044 def _get_types(self):
00045 """
00046 internal API method
00047 """
00048 return self._slot_types
00049
00050 def serialize(self, buff):
00051 """
00052 serialize message into buffer
00053 :param buff: buffer, ``StringIO``
00054 """
00055 try:
00056 buff.write(_struct_i.pack(self.handle))
00057 except struct.error as se: self._check_types(se)
00058 except TypeError as te: self._check_types(te)
00059
00060 def deserialize(self, str):
00061 """
00062 unpack serialized message in str into this message instance
00063 :param str: byte array of serialized message, ``str``
00064 """
00065 try:
00066 end = 0
00067 start = end
00068 end += 4
00069 (self.handle,) = _struct_i.unpack(str[start:end])
00070 return self
00071 except struct.error as e:
00072 raise genpy.DeserializationError(e)
00073
00074
00075 def serialize_numpy(self, buff, numpy):
00076 """
00077 serialize message with numpy array types into buffer
00078 :param buff: buffer, ``StringIO``
00079 :param numpy: numpy python module
00080 """
00081 try:
00082 buff.write(_struct_i.pack(self.handle))
00083 except struct.error as se: self._check_types(se)
00084 except TypeError as te: self._check_types(te)
00085
00086 def deserialize_numpy(self, str, numpy):
00087 """
00088 unpack serialized message in str into this message instance using numpy for array types
00089 :param str: byte array of serialized message, ``str``
00090 :param numpy: numpy python module
00091 """
00092 try:
00093 end = 0
00094 start = end
00095 end += 4
00096 (self.handle,) = _struct_i.unpack(str[start:end])
00097 return self
00098 except struct.error as e:
00099 raise genpy.DeserializationError(e)
00100
00101 _struct_I = genpy.struct_I
00102 _struct_i = struct.Struct("<i")
00103 """autogenerated by genpy from vrep_common/simRosGetJointMatrixResponse.msg. Do not edit."""
00104 import sys
00105 python3 = True if sys.hexversion > 0x03000000 else False
00106 import genpy
00107 import struct
00108
00109 import geometry_msgs.msg
00110 import std_msgs.msg
00111
00112 class simRosGetJointMatrixResponse(genpy.Message):
00113 _md5sum = "ea4c0896312fb5454e09fdc654d37fab"
00114 _type = "vrep_common/simRosGetJointMatrixResponse"
00115 _has_header = False
00116 _full_text = """int32 result
00117 geometry_msgs/TransformStamped transform
00118
00119
00120 ================================================================================
00121 MSG: geometry_msgs/TransformStamped
00122 # This expresses a transform from coordinate frame header.frame_id
00123 # to the coordinate frame child_frame_id
00124 #
00125 # This message is mostly used by the
00126 # <a href="http://www.ros.org/wiki/tf">tf</a> package.
00127 # See it's documentation for more information.
00128
00129 Header header
00130 string child_frame_id # the frame id of the child frame
00131 Transform transform
00132
00133 ================================================================================
00134 MSG: std_msgs/Header
00135 # Standard metadata for higher-level stamped data types.
00136 # This is generally used to communicate timestamped data
00137 # in a particular coordinate frame.
00138 #
00139 # sequence ID: consecutively increasing ID
00140 uint32 seq
00141 #Two-integer timestamp that is expressed as:
00142 # * stamp.secs: seconds (stamp_secs) since epoch
00143 # * stamp.nsecs: nanoseconds since stamp_secs
00144 # time-handling sugar is provided by the client library
00145 time stamp
00146 #Frame this data is associated with
00147 # 0: no frame
00148 # 1: global frame
00149 string frame_id
00150
00151 ================================================================================
00152 MSG: geometry_msgs/Transform
00153 # This represents the transform between two coordinate frames in free space.
00154
00155 Vector3 translation
00156 Quaternion rotation
00157
00158 ================================================================================
00159 MSG: geometry_msgs/Vector3
00160 # This represents a vector in free space.
00161
00162 float64 x
00163 float64 y
00164 float64 z
00165 ================================================================================
00166 MSG: geometry_msgs/Quaternion
00167 # This represents an orientation in free space in quaternion form.
00168
00169 float64 x
00170 float64 y
00171 float64 z
00172 float64 w
00173
00174 """
00175 __slots__ = ['result','transform']
00176 _slot_types = ['int32','geometry_msgs/TransformStamped']
00177
00178 def __init__(self, *args, **kwds):
00179 """
00180 Constructor. Any message fields that are implicitly/explicitly
00181 set to None will be assigned a default value. The recommend
00182 use is keyword arguments as this is more robust to future message
00183 changes. You cannot mix in-order arguments and keyword arguments.
00184
00185 The available fields are:
00186 result,transform
00187
00188 :param args: complete set of field values, in .msg order
00189 :param kwds: use keyword arguments corresponding to message field names
00190 to set specific fields.
00191 """
00192 if args or kwds:
00193 super(simRosGetJointMatrixResponse, self).__init__(*args, **kwds)
00194
00195 if self.result is None:
00196 self.result = 0
00197 if self.transform is None:
00198 self.transform = geometry_msgs.msg.TransformStamped()
00199 else:
00200 self.result = 0
00201 self.transform = geometry_msgs.msg.TransformStamped()
00202
00203 def _get_types(self):
00204 """
00205 internal API method
00206 """
00207 return self._slot_types
00208
00209 def serialize(self, buff):
00210 """
00211 serialize message into buffer
00212 :param buff: buffer, ``StringIO``
00213 """
00214 try:
00215 _x = self
00216 buff.write(_struct_i3I.pack(_x.result, _x.transform.header.seq, _x.transform.header.stamp.secs, _x.transform.header.stamp.nsecs))
00217 _x = self.transform.header.frame_id
00218 length = len(_x)
00219 if python3 or type(_x) == unicode:
00220 _x = _x.encode('utf-8')
00221 length = len(_x)
00222 buff.write(struct.pack('<I%ss'%length, length, _x))
00223 _x = self.transform.child_frame_id
00224 length = len(_x)
00225 if python3 or type(_x) == unicode:
00226 _x = _x.encode('utf-8')
00227 length = len(_x)
00228 buff.write(struct.pack('<I%ss'%length, length, _x))
00229 _x = self
00230 buff.write(_struct_7d.pack(_x.transform.transform.translation.x, _x.transform.transform.translation.y, _x.transform.transform.translation.z, _x.transform.transform.rotation.x, _x.transform.transform.rotation.y, _x.transform.transform.rotation.z, _x.transform.transform.rotation.w))
00231 except struct.error as se: self._check_types(se)
00232 except TypeError as te: self._check_types(te)
00233
00234 def deserialize(self, str):
00235 """
00236 unpack serialized message in str into this message instance
00237 :param str: byte array of serialized message, ``str``
00238 """
00239 try:
00240 if self.transform is None:
00241 self.transform = geometry_msgs.msg.TransformStamped()
00242 end = 0
00243 _x = self
00244 start = end
00245 end += 16
00246 (_x.result, _x.transform.header.seq, _x.transform.header.stamp.secs, _x.transform.header.stamp.nsecs,) = _struct_i3I.unpack(str[start:end])
00247 start = end
00248 end += 4
00249 (length,) = _struct_I.unpack(str[start:end])
00250 start = end
00251 end += length
00252 if python3:
00253 self.transform.header.frame_id = str[start:end].decode('utf-8')
00254 else:
00255 self.transform.header.frame_id = str[start:end]
00256 start = end
00257 end += 4
00258 (length,) = _struct_I.unpack(str[start:end])
00259 start = end
00260 end += length
00261 if python3:
00262 self.transform.child_frame_id = str[start:end].decode('utf-8')
00263 else:
00264 self.transform.child_frame_id = str[start:end]
00265 _x = self
00266 start = end
00267 end += 56
00268 (_x.transform.transform.translation.x, _x.transform.transform.translation.y, _x.transform.transform.translation.z, _x.transform.transform.rotation.x, _x.transform.transform.rotation.y, _x.transform.transform.rotation.z, _x.transform.transform.rotation.w,) = _struct_7d.unpack(str[start:end])
00269 return self
00270 except struct.error as e:
00271 raise genpy.DeserializationError(e)
00272
00273
00274 def serialize_numpy(self, buff, numpy):
00275 """
00276 serialize message with numpy array types into buffer
00277 :param buff: buffer, ``StringIO``
00278 :param numpy: numpy python module
00279 """
00280 try:
00281 _x = self
00282 buff.write(_struct_i3I.pack(_x.result, _x.transform.header.seq, _x.transform.header.stamp.secs, _x.transform.header.stamp.nsecs))
00283 _x = self.transform.header.frame_id
00284 length = len(_x)
00285 if python3 or type(_x) == unicode:
00286 _x = _x.encode('utf-8')
00287 length = len(_x)
00288 buff.write(struct.pack('<I%ss'%length, length, _x))
00289 _x = self.transform.child_frame_id
00290 length = len(_x)
00291 if python3 or type(_x) == unicode:
00292 _x = _x.encode('utf-8')
00293 length = len(_x)
00294 buff.write(struct.pack('<I%ss'%length, length, _x))
00295 _x = self
00296 buff.write(_struct_7d.pack(_x.transform.transform.translation.x, _x.transform.transform.translation.y, _x.transform.transform.translation.z, _x.transform.transform.rotation.x, _x.transform.transform.rotation.y, _x.transform.transform.rotation.z, _x.transform.transform.rotation.w))
00297 except struct.error as se: self._check_types(se)
00298 except TypeError as te: self._check_types(te)
00299
00300 def deserialize_numpy(self, str, numpy):
00301 """
00302 unpack serialized message in str into this message instance using numpy for array types
00303 :param str: byte array of serialized message, ``str``
00304 :param numpy: numpy python module
00305 """
00306 try:
00307 if self.transform is None:
00308 self.transform = geometry_msgs.msg.TransformStamped()
00309 end = 0
00310 _x = self
00311 start = end
00312 end += 16
00313 (_x.result, _x.transform.header.seq, _x.transform.header.stamp.secs, _x.transform.header.stamp.nsecs,) = _struct_i3I.unpack(str[start:end])
00314 start = end
00315 end += 4
00316 (length,) = _struct_I.unpack(str[start:end])
00317 start = end
00318 end += length
00319 if python3:
00320 self.transform.header.frame_id = str[start:end].decode('utf-8')
00321 else:
00322 self.transform.header.frame_id = str[start:end]
00323 start = end
00324 end += 4
00325 (length,) = _struct_I.unpack(str[start:end])
00326 start = end
00327 end += length
00328 if python3:
00329 self.transform.child_frame_id = str[start:end].decode('utf-8')
00330 else:
00331 self.transform.child_frame_id = str[start:end]
00332 _x = self
00333 start = end
00334 end += 56
00335 (_x.transform.transform.translation.x, _x.transform.transform.translation.y, _x.transform.transform.translation.z, _x.transform.transform.rotation.x, _x.transform.transform.rotation.y, _x.transform.transform.rotation.z, _x.transform.transform.rotation.w,) = _struct_7d.unpack(str[start:end])
00336 return self
00337 except struct.error as e:
00338 raise genpy.DeserializationError(e)
00339
00340 _struct_I = genpy.struct_I
00341 _struct_i3I = struct.Struct("<i3I")
00342 _struct_7d = struct.Struct("<7d")
00343 class simRosGetJointMatrix(object):
00344 _type = 'vrep_common/simRosGetJointMatrix'
00345 _md5sum = 'a4cf19b442f7dd0e7c71aebcc49e75d2'
00346 _request_class = simRosGetJointMatrixRequest
00347 _response_class = simRosGetJointMatrixResponse