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