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