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