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