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