Go to the documentation of this file.00001 """autogenerated by genpy from openraveros/env_closefiguresRequest.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_closefiguresRequest(genpy.Message):
00009 _md5sum = "0b013b888eedf6cc323fab4ef38b6347"
00010 _type = "openraveros/env_closefiguresRequest"
00011 _has_header = False
00012 _full_text = """
00013
00014
00015
00016 uint64[] figureids
00017
00018 """
00019 __slots__ = ['figureids']
00020 _slot_types = ['uint64[]']
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 figureids
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(env_closefiguresRequest, self).__init__(*args, **kwds)
00038
00039 if self.figureids is None:
00040 self.figureids = []
00041 else:
00042 self.figureids = []
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 length = len(self.figureids)
00057 buff.write(_struct_I.pack(length))
00058 pattern = '<%sQ'%length
00059 buff.write(struct.pack(pattern, *self.figureids))
00060 except struct.error as se: self._check_types(se)
00061 except TypeError as te: self._check_types(te)
00062
00063 def deserialize(self, str):
00064 """
00065 unpack serialized message in str into this message instance
00066 :param str: byte array of serialized message, ``str``
00067 """
00068 try:
00069 end = 0
00070 start = end
00071 end += 4
00072 (length,) = _struct_I.unpack(str[start:end])
00073 pattern = '<%sQ'%length
00074 start = end
00075 end += struct.calcsize(pattern)
00076 self.figureids = struct.unpack(pattern, str[start:end])
00077 return self
00078 except struct.error as e:
00079 raise genpy.DeserializationError(e)
00080
00081
00082 def serialize_numpy(self, buff, numpy):
00083 """
00084 serialize message with numpy array types into buffer
00085 :param buff: buffer, ``StringIO``
00086 :param numpy: numpy python module
00087 """
00088 try:
00089 length = len(self.figureids)
00090 buff.write(_struct_I.pack(length))
00091 pattern = '<%sQ'%length
00092 buff.write(self.figureids.tostring())
00093 except struct.error as se: self._check_types(se)
00094 except TypeError as te: self._check_types(te)
00095
00096 def deserialize_numpy(self, str, numpy):
00097 """
00098 unpack serialized message in str into this message instance using numpy for array types
00099 :param str: byte array of serialized message, ``str``
00100 :param numpy: numpy python module
00101 """
00102 try:
00103 end = 0
00104 start = end
00105 end += 4
00106 (length,) = _struct_I.unpack(str[start:end])
00107 pattern = '<%sQ'%length
00108 start = end
00109 end += struct.calcsize(pattern)
00110 self.figureids = numpy.frombuffer(str[start:end], dtype=numpy.uint64, count=length)
00111 return self
00112 except struct.error as e:
00113 raise genpy.DeserializationError(e)
00114
00115 _struct_I = genpy.struct_I
00116 """autogenerated by genpy from openraveros/env_closefiguresResponse.msg. Do not edit."""
00117 import sys
00118 python3 = True if sys.hexversion > 0x03000000 else False
00119 import genpy
00120 import struct
00121
00122
00123 class env_closefiguresResponse(genpy.Message):
00124 _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
00125 _type = "openraveros/env_closefiguresResponse"
00126 _has_header = False
00127 _full_text = """
00128
00129 """
00130 __slots__ = []
00131 _slot_types = []
00132
00133 def __init__(self, *args, **kwds):
00134 """
00135 Constructor. Any message fields that are implicitly/explicitly
00136 set to None will be assigned a default value. The recommend
00137 use is keyword arguments as this is more robust to future message
00138 changes. You cannot mix in-order arguments and keyword arguments.
00139
00140 The available fields are:
00141
00142
00143 :param args: complete set of field values, in .msg order
00144 :param kwds: use keyword arguments corresponding to message field names
00145 to set specific fields.
00146 """
00147 if args or kwds:
00148 super(env_closefiguresResponse, self).__init__(*args, **kwds)
00149
00150 def _get_types(self):
00151 """
00152 internal API method
00153 """
00154 return self._slot_types
00155
00156 def serialize(self, buff):
00157 """
00158 serialize message into buffer
00159 :param buff: buffer, ``StringIO``
00160 """
00161 try:
00162 pass
00163 except struct.error as se: self._check_types(se)
00164 except TypeError as te: self._check_types(te)
00165
00166 def deserialize(self, str):
00167 """
00168 unpack serialized message in str into this message instance
00169 :param str: byte array of serialized message, ``str``
00170 """
00171 try:
00172 end = 0
00173 return self
00174 except struct.error as e:
00175 raise genpy.DeserializationError(e)
00176
00177
00178 def serialize_numpy(self, buff, numpy):
00179 """
00180 serialize message with numpy array types into buffer
00181 :param buff: buffer, ``StringIO``
00182 :param numpy: numpy python module
00183 """
00184 try:
00185 pass
00186 except struct.error as se: self._check_types(se)
00187 except TypeError as te: self._check_types(te)
00188
00189 def deserialize_numpy(self, str, numpy):
00190 """
00191 unpack serialized message in str into this message instance using numpy for array types
00192 :param str: byte array of serialized message, ``str``
00193 :param numpy: numpy python module
00194 """
00195 try:
00196 end = 0
00197 return self
00198 except struct.error as e:
00199 raise genpy.DeserializationError(e)
00200
00201 _struct_I = genpy.struct_I
00202 class env_closefigures(object):
00203 _type = 'openraveros/env_closefigures'
00204 _md5sum = '0b013b888eedf6cc323fab4ef38b6347'
00205 _request_class = env_closefiguresRequest
00206 _response_class = env_closefiguresResponse