$search
00001 """autogenerated by genmsg_py from NullifyDemandRequest.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 00006 class NullifyDemandRequest(roslib.message.Message): 00007 _md5sum = "e776288d81b4da212263a7a8b3f035b3" 00008 _type = "sr_robot_msgs/NullifyDemandRequest" 00009 _has_header = False #flag to mark the presence of a Header object 00010 _full_text = """ 00011 00012 00013 00014 00015 bool nullify_demand 00016 00017 """ 00018 __slots__ = ['nullify_demand'] 00019 _slot_types = ['bool'] 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 nullify_demand 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(NullifyDemandRequest, self).__init__(*args, **kwds) 00037 #message fields cannot be None, assign default values for those that are 00038 if self.nullify_demand is None: 00039 self.nullify_demand = False 00040 else: 00041 self.nullify_demand = False 00042 00043 def _get_types(self): 00044 """ 00045 internal API method 00046 """ 00047 return self._slot_types 00048 00049 def serialize(self, buff): 00050 """ 00051 serialize message into buffer 00052 @param buff: buffer 00053 @type buff: StringIO 00054 """ 00055 try: 00056 buff.write(_struct_B.pack(self.nullify_demand)) 00057 except struct.error as se: self._check_types(se) 00058 except TypeError as te: self._check_types(te) 00059 00060 def deserialize(self, str): 00061 """ 00062 unpack serialized message in str into this message instance 00063 @param str: byte array of serialized message 00064 @type str: str 00065 """ 00066 try: 00067 end = 0 00068 start = end 00069 end += 1 00070 (self.nullify_demand,) = _struct_B.unpack(str[start:end]) 00071 self.nullify_demand = bool(self.nullify_demand) 00072 return self 00073 except struct.error as e: 00074 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00075 00076 00077 def serialize_numpy(self, buff, numpy): 00078 """ 00079 serialize message with numpy array types into buffer 00080 @param buff: buffer 00081 @type buff: StringIO 00082 @param numpy: numpy python module 00083 @type numpy module 00084 """ 00085 try: 00086 buff.write(_struct_B.pack(self.nullify_demand)) 00087 except struct.error as se: self._check_types(se) 00088 except TypeError as te: self._check_types(te) 00089 00090 def deserialize_numpy(self, str, numpy): 00091 """ 00092 unpack serialized message in str into this message instance using numpy for array types 00093 @param str: byte array of serialized message 00094 @type str: str 00095 @param numpy: numpy python module 00096 @type numpy: module 00097 """ 00098 try: 00099 end = 0 00100 start = end 00101 end += 1 00102 (self.nullify_demand,) = _struct_B.unpack(str[start:end]) 00103 self.nullify_demand = bool(self.nullify_demand) 00104 return self 00105 except struct.error as e: 00106 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00107 00108 _struct_I = roslib.message.struct_I 00109 _struct_B = struct.Struct("<B") 00110 """autogenerated by genmsg_py from NullifyDemandResponse.msg. Do not edit.""" 00111 import roslib.message 00112 import struct 00113 00114 00115 class NullifyDemandResponse(roslib.message.Message): 00116 _md5sum = "d41d8cd98f00b204e9800998ecf8427e" 00117 _type = "sr_robot_msgs/NullifyDemandResponse" 00118 _has_header = False #flag to mark the presence of a Header object 00119 _full_text = """ 00120 00121 """ 00122 __slots__ = [] 00123 _slot_types = [] 00124 00125 def __init__(self, *args, **kwds): 00126 """ 00127 Constructor. Any message fields that are implicitly/explicitly 00128 set to None will be assigned a default value. The recommend 00129 use is keyword arguments as this is more robust to future message 00130 changes. You cannot mix in-order arguments and keyword arguments. 00131 00132 The available fields are: 00133 00134 00135 @param args: complete set of field values, in .msg order 00136 @param kwds: use keyword arguments corresponding to message field names 00137 to set specific fields. 00138 """ 00139 if args or kwds: 00140 super(NullifyDemandResponse, self).__init__(*args, **kwds) 00141 00142 def _get_types(self): 00143 """ 00144 internal API method 00145 """ 00146 return self._slot_types 00147 00148 def serialize(self, buff): 00149 """ 00150 serialize message into buffer 00151 @param buff: buffer 00152 @type buff: 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 00163 @type str: str 00164 """ 00165 try: 00166 end = 0 00167 return self 00168 except struct.error as e: 00169 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00170 00171 00172 def serialize_numpy(self, buff, numpy): 00173 """ 00174 serialize message with numpy array types into buffer 00175 @param buff: buffer 00176 @type buff: StringIO 00177 @param numpy: numpy python module 00178 @type numpy module 00179 """ 00180 try: 00181 pass 00182 except struct.error as se: self._check_types(se) 00183 except TypeError as te: self._check_types(te) 00184 00185 def deserialize_numpy(self, str, numpy): 00186 """ 00187 unpack serialized message in str into this message instance using numpy for array types 00188 @param str: byte array of serialized message 00189 @type str: str 00190 @param numpy: numpy python module 00191 @type numpy: module 00192 """ 00193 try: 00194 end = 0 00195 return self 00196 except struct.error as e: 00197 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00198 00199 _struct_I = roslib.message.struct_I 00200 class NullifyDemand(roslib.message.ServiceDefinition): 00201 _type = 'sr_robot_msgs/NullifyDemand' 00202 _md5sum = 'e776288d81b4da212263a7a8b3f035b3' 00203 _request_class = NullifyDemandRequest 00204 _response_class = NullifyDemandResponse